* osabi.c (gdbarch_init_osabi): Reformat error message with better
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e481341f
JB
12003-12-13 Jim Blandy <jimb@redhat.com>
2
3 * osabi.c (gdbarch_init_osabi): Reformat error message with better
4 line breaks.
5
f614e9d9
MK
62003-12-13 Mark Kettenis <kettenis@gnu.org>
7
8 * blockframe.c (inside_main_func): Reformat. Introduce new local
9 variables to prevent long lines. Update comments to reflect
10 reality.
11
503ff15d
KB
122003-12-12 Kevin Buettner <kevinb@redhat.com>
13
14 From David Mosberger <davidm@hpl.hp.com>:
15 * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
16 with a single unw_dyn_info_t pointer.
17 (libunwind_find_dyn_list): Likewise.
18 * libunwind-frame.h: Likewise.
19 * ia64-tdep.c (ia64_find_unwind_table): Switch to using
20 UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
21 entire unwind-table at once. Support for this table format has
22 been added to libunwind v0.95.
23 (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
24 (ia64_get_dyn_info_list): Adjust for interface change for
25 libunwind_find_dyn_list().
26
468d015d
JJ
272003-12-12 Jeff Johnston <jjohnstn@redhat.com>
28
29 * breakpoint.c (breakpoint_enabled): New function to test whether
30 breakpoint is active and enabled.
31 (insert_bp_location, insert_breakpoints): Call new function to test
32 for enabled breakpoint.
33 (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
34 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
35 (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
36 (disable_watchpoints_before_interactive_call_start)
37 (breakpoint_re_set_one): Ditto.
38 (bpstat_stop_status): Use new function and simplify test.
39
f82de61c
MK
402003-12-11 Mark Kettenis <kettenis@gnu.org>
41
42 * observer.c (observer_test_first_observer)
43 (observer_test_second_observer, observer_test_third_observer):
44 Don't define as `static'.
45 (observer_test_first_notification_function)
46 (observer_test_second_notification_function)
47 (observer_test_third_notification_function): Likewise.
48
9db7c108
MK
492003-12-10 Mark Kettenis <kettenis@gnu.org>
50
51 * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
52 of (0).
53
8bfdb672
DD
542003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
55
56 * MAINTAINERS (write after approval): Add myself.
57
454d0511
DD
582003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
59
60 * config/h8300/tm-h8300.h (h8300hmode): Remove.
61 (h8300hmode): Likewise.
62 (h8300smode): Likewise.
63 (h8300sxmode): Likewise.
64 (h8300_normal_mode): Likewise.
65 (GDB_TARGET_IS_H8300): Likewise.
66 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
67 * h8300-tdep.c (is_h8300hmode): New function.
68 (is_h8300smode): New function.
69 (is_h8300sxmode): New function.
70 (is_h8300_normal_mode): New function.
71 (BINWORD): Use new functions.
72 (h8300_examine_prologue): Likewise.
73 (h8300_print_register): Likewise.
74 (h8300_print_registers_info): Likewise.
75 (h8300_register_type): Likewise.
76 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
77 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
78 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
79 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
80
7ae4c3a5
JB
812003-12-10 J. Brobecker <brobecker@gnat.com>
82
83 * frame.c (select_frame): Get the current frame PC using
84 get_frame_address_in_block() instead of get_frame_pc().
85 * stack.c (get_frame_language): Likewise.
86
9b74d5d3
KB
872003-12-08 Kevin Buettner <kevinb@redhat.com>
88
89 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
90 remote_desc more than once.
91
e7ebf6d6
AC
922003-12-07 Andrew Cagney <cagney@redhat.com>
93
94 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
95 directly calling strcmp equivalents. Add disclaimer.
96
8ccc1287
AC
972003-12-06 Andrew Cagney <cagney@redhat.com>
98
99 * remote.c (remote_fetch_registers): For short packets, explicitly
100 supply a zero value. Use regcache_raw_supply. Fix suggested by
101 Jonathan Larmour.
102
32edc941
JJ
1032003-12-05 Jeff Johnston <jjohnstn@redhat.com>
104
105 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
106 format to be the i387 extended float format which is used for
107 long doubles stored in memory.
108
2af2aeb0
MK
1092003-12-05 Mark Kettenis <kettenis@gnu.org>
110
111 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
112 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
113 column instead of translating it.
114
362ff856
MC
1152003-12-04 Michael Chastain <mec.gnu@mindspring.com>
116
117 Partial fix for PR c++/1465.
118 Fix for PR c++/1377.
119 * cp-support.h (cp_lookup_rtti_type): New function.
120 * cp-support.c (cp_lookup_rtti_type): New function.
121 * gnu-v2-abi.c: Update copyright years.
122 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
123 * gnu-v3-abi.c: Update copyright years.
124 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
125
149d821b
JB
1262003-12-04 J. Brobecker <brobecker@gnat.com>
127
128 * stabsread.c (read_type): Save a reference to types that are defined
129 as cross references to other types.
130
77f091dd
RM
1312003-12-02 Roland McGrath <roland@redhat.com>
132
133 * thread-db.c (enable_thread_event): Change return type to
134 td_err_e. Return TD_OK or error code.
135 (enable_thread_event_reporting): Update callers.
136
59659be2
ILT
1372003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
138
139 * NEWS: Mention new C++ demangler code.
140
56d0d96a
AC
1412003-12-03 Andrew Cagney <cagney@redhat.com>
142
143 * ppc-linux-nat.c (store_register, fetch_register): Convert
144 between ptrace and regcache's wordsize.
145 (ppc_register_u_addr): Use the ptrace wordsize.
146
251a3ae3
KB
1472003-12-02 Kevin Buettner <kevinb@redhat.com>
148
149 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
150
188dd5d6
DJ
1512003-12-02 Daniel Jacobowitz <drow@mvista.com>
152
153 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
154 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
155 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
156 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
157 Delete.
158 (dwarf2_read_section): Remove offset and size arguments. Use
159 bfd_get_section_size_before_reloc and sectp->filepos.
160 (dwarf2_has_info): Clear section variables instead of offsets.
161 (dwarf2_locate_sections): Don't initialize the deleted variables.
162 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
163 (dwarf2_build_psymtabs_easy): Likewise.
164 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
165 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
166 declarations.
167 (dwarf2_read_section): Update prototype.
168 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
169 Use bfd_get_section_size_before_reloc instead of global size
170 variables.
171
013be872
MC
1722003-12-01 Michael Chastain <mec.gnu@mindspring.com>
173
174 * dwarfread.c: Update documentation on the state of dwarf-1.
175
5994185b
AC
1762003-12-01 Andrew Cagney <cagney@redhat.com>
177
0748d941
AC
178 Obsolete old MIPS SVr3 and SVr4 systems.
179 * NEWS: Mention obsoleted systems.
180 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
181 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
182 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
183 obsolete.
184 * config/mips/decstation.mh: Mark as obsolete.
185 * config/mips/littlemips.mh: Mark as obsolete.
186 * config/mips/nm-mips.h: Mark as obsolete.
187 * config/mips/xm-mips.h: Mark as obsolete.
188 * config/mips/news-mips.mh: Mark as obsolete.
189 * config/mips/nm-news-mips.h: Mark as obsolete.
190 * config/mips/riscos.mh: Mark as obsolete.
191 * config/mips/nm-riscos.h: Mark as obsolete.
192 * config/mips/xm-riscos.h: Mark as obsolete.
193 * config/mips/mipsv4.mt: Mark as obsolete.
194 * config/mips/tm-mipsv4.h: Mark as obsolete.
195 * config/mips/xm-mipsv4.h: Mark as obsolete.
196
5994185b
AC
197 Obsolete old m68k systems.
198 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
199 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
200 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
201 m680[01]0-sun-sunos3* as obsolete.
202 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
203 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
204 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
205 * config/m68k/sun3os4.mh: Mark file obsolete.
206 * config/m68k/xm-sun3os4.h: Mark file obsolete.
207 * config/m68k/sun3os3.mh: Mark file obsolete.
208 * config/m68k/nm-sun3.h: Mark file obsolete.
209 * config/m68k/xm-sun3.h: Mark file obsolete.
210 * config/m68k/sun2os4.mh: Mark file obsolete.
211 * config/m68k/sun2os3.mh: Mark file obsolete.
212 * config/m68k/nm-sun2.h: Mark file obsolete.
213 * config/m68k/xm-sun2.h: Mark file obsolete.
214 * config/m68k/m68kv4.mh: Mark file obsolete.
215 * config/m68k/nm-sysv4.h: Mark file obsolete.
216 * config/m68k/xm-m68kv4.h: Mark file obsolete.
217 * config/m68k/m68klynx.mh: Mark file obsolete.
218 * config/m68k/nm-m68klynx.h: Mark file obsolete.
219 * config/m68k/dpx2.mh: Mark file obsolete.
220 * config/m68k/xm-dpx2.h: Mark file obsolete.
221 * config/m68k/nm-dpx2.h: Mark file obsolete.
222 * config/m68k/delta68.mh: Mark file obsolete.
223 * config/m68k/xm-delta68.h: Mark file obsolete.
224 * config/m68k/nm-delta68.h: Mark file obsolete.
225 * config/m68k/3b1.mh: Mark file obsolete.
226 * config/m68k/xm-3b1.h: Mark file obsolete.
227 * config/m68k/sun3os4.mt: Mark file obsolete.
228 * config/m68k/tm-sun3os4.h: Mark file obsolete.
229 * config/m68k/sun3os3.mt: Mark file obsolete.
230 * config/m68k/tm-sun3.h: Mark file obsolete.
231 * config/m68k/sun2os4.mt: Mark file obsolete.
232 * config/m68k/tm-sun2os4.h: Mark file obsolete.
233 * config/m68k/sun2os3.mt: Mark file obsolete.
234 * config/m68k/tm-sun2.h: Mark file obsolete.
235 * config/m68k/m68kv4.mt: Mark file obsolete.
236 * config/m68k/tm-m68kv4.h: Mark file obsolete.
237 * config/m68k/m68klynx.mt: Mark file obsolete.
238 * config/m68k/tm-m68klynx.h: Mark file obsolete.
239 * config/m68k/dpx2.mt: Mark file obsolete.
240 * config/m68k/tm-dpx2.h: Mark file obsolete.
241 * config/m68k/delta68.mt: Mark file obsolete.
242 * config/m68k/tm-delta68.h: Mark file obsolete.
243 * config/m68k/3b1.mt: Mark file obsolete.
244 * config/m68k/tm-3b1.h: Mark file obsolete.
245
720aa428
MK
2462003-11-29 Mark Kettenis <kettenis@gnu.org>
247
248 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
249 (x86_64_reg_class): Remove enum.
250 (merge_classes, classify_argument, examine_argument): Remove
251 functions.
252 (INT_REGS, SSE_REGS): Remove macros.
253 (x86_64_push_arguments): Remove function.
254 (amd64_push_arguments): New function.
255 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
256 x86_64_push_arguments.
257
35883a3f
MK
2582003-11-28 Mark Kettenis <kettenis@gnu.org>
259
260 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
261 zero. Reorganize code a bit.
262
597684c5
MK
2632003-11-27 Mark Kettenis <kettenis@gnu.org>
264
3e74aeed
MK
265 * dwarf2-frame.c: Fix another comment.
266
efb1c01c
MK
267 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
268 (x86_64_use_struct_convention, x86_64_extract_return_value,
269 x86_64_store_return_value): Remove.
270 (amd64_reg_class): New enum.
271 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
272 amd64_return_value): New functions.
273 (x86_64_init_abi): Don't set extract_return_value,
274 store_return_value and use_struct_convention. Set return_value to
275 amd64_return_value.
276 * i387-tdep.h (i387_return_value): New prototype.
277 * i387-tdep.c (i387_return_value): New function.
278
e4e9607c
MK
279 * dwarf2-frame.c: Fix some comments and whitespace problems.
280
13739f4d
MK
281 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
282 "gdb_assert.h" and "gdb_string.h".
283 (i386nbsd_r_reg_offset): Rename from regmap.
284 (SIZEOF_STRUCT_REG): Remove.
285 (i386nbsd_supply_reg, fetch_core_registers,
286 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
287 Remove.
288 (i386nbsd_aout_supply_regset,
289 i386nbsd_aout_regset_from_core_section): New functions.
290 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
291 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
292 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
293 initialize TDEP->sc_num_regs.
294 (i386nbsdaout_init_abi): New function.
295 (i386nbsdelf_init_abi): Remove initialization of
296 TDEP->num_xmm_regs. Don't set num_regs here.
297 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
298 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
299
597684c5
MK
300 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
301 .note.netbsdcore.procinfo section to recognize NetBSD core files.
302
37e79b6b
MC
3032003-11-26 Michael Chastain <mec.gnu@mindspring.com>
304
305 * cp-abi.c: Update copyright years.
306
24557e30
AC
3072003-11-25 Andrew Cagney <cagney@redhat.com>
308
309 * thread-db.c (enable_thread_event): New function. Ensure that BP
310 is a code address.
311 (enable_thread_event_reporting): Use enable_thread_event.
77f091dd 312
78c63a3b
MS
3132003-11-25 Michael Snyder <msnyder@redhat.com>
314
315 * mips-tdep.c (mips_o64_extract_return_value): Correct for
316 NUM_REGS (see changes 2003-06-21).
317 (mips_eabi_extract_return_value): Ditto.
318
aff6338a
AC
3192003-11-25 Andrew Cagney <cagney@redhat.com>
320
321 * infrun.c: Don't include "exec.h".
322 (handle_inferior_event): Pass current_target, instead of exec_ops,
323 to SOLIB_ADD. Add comments.
324 * Makefile.in (infrun.o): Update dependencies.
325
9e08b29b
DJ
3262003-11-24 Daniel Jacobowitz <drow@mvista.com>
327
328 * NEWS: Mention improved location expression support.
329
603942cc
AC
3302003-11-23 Andrew Cagney <cagney@redhat.com>
331
332 * Makefile.in (infrun.o): Update dependencies.
333 * infrun.c: Include "exec.h".
334 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
335
66c57289
AC
3362003-11-23 Andrew Cagney <cagney@redhat.com>
337
dd3ecc14
AC
338 * frame.c (frame_unwind_signed_register): Delete function.
339 * frame.h (frame_unwind_register_signed): Delete declaration.
340 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
341
eec1a560
AC
342 * arch-utils.h (generic_cannot_extract_struct_value_address):
343 Delete declaration.
344
cb137aa5
AC
345 * defs.h (DEPRECATED_STREQN): Rename STREQN.
346 (DEPRECATED_STREQ): Rename STREQ.
347 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
348 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
349 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
350 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
351 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
352 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
353 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
354 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
355 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 356
cb137aa5 357 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
358 * elfread.c (elf_symtab_read): Delete STREQ from comment.
359
29dfb2ac
AC
3602003-11-22 Andrew Cagney <cagney@redhat.com>
361
213cc0ad
AC
362 * frame.c (deprecated_frame_xmalloc): Delete function.
363 (deprecated_set_frame_extra_info_hack): Delete function.
364 (deprecated_set_frame_saved_regs_hack): Delete function.
365 * frame.h (deprecated_frame_xmalloc): Delete declaration.
366 (deprecated_set_frame_extra_info_hack): Delete declaration.
367 (deprecated_set_frame_saved_regs_hack): Delete declaration.
368 * mcore-tdep.c (analyze_dummy_frame): Instead of
369 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
370 and deprecated_set_frame_extra_info_hack use
371 deprecated_frame_xmalloc_with_cleanup.
372 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
373 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
374 deprecated_set_frame_saved_regs_hack.
375
35bb18ac
AC
376 * mips-tdep.c (mips_frame_chain): Delete call to
377 deprecated_inside_entry_file.
378
38a7ce4b
AC
379 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
380 (deprecated_set_frame_prev_hack): Delete declaration.
381 * frame.c (deprecated_set_frame_next_hack): Delete function.
382 (deprecated_set_frame_prev_hack): Delete function.
383 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
384 "deprecated_set_frame_next_hack" and
385 "deprecated_set_frame_prev_hack".
386 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
387
47ebcfbe
AC
388 * mips-tdep.c (mips_register_convertible): Delete function.
389 (mips_register_convert_to_virtual): Delete function.
390 (mips_register_convert_to_raw): Delete function.
391 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
392 "deprecated_register_convert_to_virtual", or
393 "deprecated_register_convert_to_raw".
394 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
395 32/64 cooked to raw register conversions.
396
2a9264f1 397 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 398 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
399 (struct frame_info): Delete member "context".
400 * frame.h (deprecated_get_frame_context): Delete declaration.
401 (deprecated_set_frame_context): Delete declaration.
402
7af6341f
AC
403 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
404 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
405 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
406 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
407
10a08821
AC
408 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
409 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
410 mips_regsize.
411 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
412 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
413 * config/mips/tm-irix5.h: Update copyright.
414 (SIGFRAME_REG_SIZE): Delete macro.
415
00d33403
AC
416 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
417 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
418 declaration.
419 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
420 * infcall.c (call_function_by_hand): Delete #ifdef
421 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
422 * infcmd.c (print_return_value): Ditto.
423
74da7425
AC
424 * mips-tdep.c (skip_prologue_using_sal): New function.
425 (mips32_skip_prologue, mips16_skip_prologue): Use
426 skip_prologue_using_sal to get an upper bound on the search.
427
369864a4
AC
428 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
429 #if 0'ed macro.
430 * infrun.c (step_into_function): Delete #ifdef
431 PROLOGUE_FIRSTLINE_OVERLAP code.
432 * symtab.c (find_function_start_sal): Ditto.
433
a5a12285
AC
434 * remote-rdp.c: Update copyright.
435 (rdp_init): #if 0 references to "target_byte_order".
436
29dfb2ac
AC
437 * mips-tdep.c (mips_o32_store_return_value): Delete function.
438 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
439 (mips_o32_extract_return_value): Delete function.
440 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
441 (mips_n32n64_extract_return_value): Delete function.
442 (mips_n32n64_store_return_value): Delete function.
443 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
444 instead of "store_return_value", "extract_return_value", and
445 "use_struct_convention".
446 (mips_n32n64_use_struct_convention): Delete function.
447
3a3da38c
KB
4482003-11-21 Kevin Buettner <kevinb@redhat.com>
449
450 * frv-tdep.c (frv_frame_this_id): Eliminate call to
451 inside_entry_func().
452
c5e656c1
MK
4532003-11-20 Mark Kettenis <kettenis@gnu.org>
454
455 * i386-tdep.c (i386_extract_return_value,
456 i386_store_return_value): Add gdbarch argument. Use it instead of
457 determining it from REGCACHE. Remove recursive call for
458 structures with a single member.
459 (i386_use_struct_convention): Remove.
460 (i386_reg_struct_return_p): New function.
461 (i386_return_value): New function.
462 (i386_gdbarch_init): Set return_value, don't set
463 extract_return_value, store_return_value and
464 use_struct_convention.
465 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
466
515cc92e
JB
4672003-11-20 Jim Blandy <jimb@redhat.com>
468
469 * osabi.c (_initialize_gdb_osabi): Don't return before registering
470 the 'set osabi' and 'show osabi' commands.
471
3f1d7f16
MK
4722003-11-19 Mark Kettenis <kettenis@gnu.org>
473
474 * frame.c (get_prev_frame): Use result from
475 get_frame_address_in_block instead of get_frame_pc as argument to
476 inside_main_func. Fixes PR backtrace/1435.
477
667e784f
AC
4782003-11-19 Andrew Cagney <cagney@redhat.com>
479
480 * stack.c (return_command): Handle "void", "legacy" and "unknown
481 location" return values separatly.
482 * values.c (using_struct_return): Return 0 for a "void" return
483 type. Mention "register_value_being_returned".
484 (register_value_being_returned): Mention "using_struct_return".
485
4cecd739
DJ
4862003-11-19 Daniel Jacobowitz <drow@mvista.com>
487
488 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
489 (frame_base_offset): Delete.
490 (read_func_scope): Delete call to decode_locdesc.
491 (decode_locdesc): Update comments. Don't set the removed variables.
492 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
493 DW_OP_fbreg support.
494
6b992462
DJ
4952003-11-18 Daniel Jacobowitz <drow@mvista.com>
496
497 * dwarf2read.c (optimized_out, islocal): Remove.
498 (decode_locdesc): Update comments. Don't set optimized_out
499 or islocal.
500
968d1cb4
JJ
5012003-11-17 Jeff Johnston <jjohnstn@redhat.com>
502 David Mosberger <davidm@hpl.hp.com>
503
504 * ia64-tdep.c: Include elf.h.
77f091dd 505 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
968d1cb4
JJ
506 libunwind-ia64.h.
507 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
508 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
509 (ia64_is_fpreg, ia64_access_reg): Ditto.
510 (ia64_access_fpreg, ia64_access_mem): Ditto.
511 (get_kernel_table): Ditto.
512 (ia64_find_unwind_table): Ditto.
513 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
514 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
515 (ia64_libunwind_frame_prev_register): Ditto.
516 (ia64_libunwind_frame_sniffer): Ditto.
517 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
77f091dd
RM
518 sniffer. Register libunwind functions needed by generic
519 libunwind frame code using libunwind_frame_set_descr().
968d1cb4 520
d29caefc
DJ
5212003-11-16 Daniel Jacobowitz <drow@mvista.com>
522
523 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
524 bp_shlib_disabled breakpoint if there is a shared library mapped
525 at its expected address.
526
691c0433
AC
5272003-11-16 Andrew Cagney <cagney@redhat.com>
528
96cb1c2f
AC
529 * configure.tgt: Delete mips*tx39*-elf*.
530 * config/mips/tm-tx39.h: Delete file.
531 * config/mips/tx39.mt: Delete file.
532 * config/mips/tx39.mt: Delete file.
533
691c0433
AC
534 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
535 * remote-mips.c (common_open): Instead of
536 "mips_read_register_type" and "mips_set_processor_type_command"
537 call "deprecated_mips_set_processor_regs_hack".
538 * config/mips/tm-mips.h (mips_read_processor_type): Delete
539 declaration.
540 (mips_set_processor_type_command): Delete declaration.
541 * mips-tdep.c (mips_gdbarch_init): Update comment.
542 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
543 (mips_set_processor_type): Delete function.
544 (NUM_MIPS_PROCESSOR_REGS): Define.
545 (mips_show_processor_type_command): Delete function.
546 (mips_set_processor_type_command): Delete function.
547 (tmp_mips_processor_type): Delete.
548 (mips_processor_type): Delete.
549 (mips_processor_type_table): Delete.
550 (mips_r3051_reg_names): Delete.
551 (mips_r3081_reg_names): Delete.
552 (mips_lsi33k_reg_names): Delete.
553 (mips_processor_reg_names): Delete.
554 (mips_read_processor_type): Delete function.
555 (deprecated_mips_set_processor_regs_hack): New function.
556 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
557 (mips_register_name): Get the processor names from the tdep.
558 (mips_tx39_reg_names): New array.
559 (mips_generic_reg_names): Wire to a standard set of names.
77f091dd 560 (mips_gdbarch_init): Set "mips_processor_reg_names".
691c0433
AC
561 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
562 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
563 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
564
56cea623
AC
5652003-11-16 Andrew Cagney <cagney@redhat.com>
566
567 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
568 (mips_fpa0_regnum, mips_regnum): New function.
569 (mips_gdbarch_init): Fill in the "regnum" fields.
570 * mips-tdep.h (struct mips_regnum): Define.
571 (mips_regnum): Declare.
572 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
573 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
574 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
575 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
576 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
577 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
578 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
579 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
580 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
581 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
582 * remote-mips.c: Include "mips-tdep.h". Update.
583 * mipsnbsd-tdep.c: Update.
584 * mipsv4-nat.c: Update.
585 * mips-tdep.c: Update.
586 * mips-nat.c: Update.
587 * mips-linux-tdep.c: Update.
588 * mips-linux-nat.c: Update.
589 * irix5-nat.c: Update.
590 * dve3900-rom.c: Include "mips-tdep.h". Update.
591 (ignore_packet): Supress GCC warning.
592 * config/mips/nm-riscos.h: Update.
593
719ec221
AC
5942003-11-16 Andrew Cagney <cagney@redhat.com>
595
596 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
597 register_size.
598 (mips_register_raw_size): Delete function.
599 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
600 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
601 Check and set "mips64_transfers_32bit_regs_p".
602 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
603 (mips_register_convertible): Check the architecture's
604 "mips64_transfers_32bit_regs_p".
605 (set_mips64_transfers_32bit_regs): New function.
606 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
607 "set remote-mips64-transfers-32bit-regs" command. Specify
608 set_mips64_transfers_32bit_regs as the set function.
56cea623 609 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 610
20187ed5
MK
6112003-11-16 Mark Kettenis <kettenis@gnu.org>
612
613 * i386-tdep.h (i386_supply_gregset): Provide prototype.
614 * i386-tdep.c (i386_supply_gregset): Make public.
615
6771c427
AC
6162003-11-16 Andrew Cagney <cagney@redhat.com>
617
618 * mips-tdep.c (mips_register_byte): Delete function.
619 (mips_gdbarch_init): Do not set "deprecated_register_byte".
620 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
621 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
622 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
623
c8048956
MK
6242003-11-16 Mark Kettenis <kettenis@gnu.org>
625
626 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
627
cc8a868a
AC
6282003-11-16 Andrew Cagney <cagney@redhat.com>
629
630 * config/mips/linux64.mt: Delete file.
631 * config/mips/tm-linux64.h: Delete file.
632 * config/mips/tm-mips64.h: Delete file.
633 * config/mips/embed64.mt: Delete file.
634 * config/djgpp/fnchange.lst: Update.
635 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
636 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
637 * config/mips/tm-irix6.h: Update copyright. Include
638 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
639 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
640 "OP_LDGPR".
641
5ef80fb0
AC
6422003-11-15 Andrew Cagney <cagney@redhat.com>
643
644 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
645 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
646 n32 registers 64 bit.
647 (mips_register_raw_size, mips_register_byte): For pseudo
648 registers, use the register's pseudo size and not the
649 corresponding raw register's size.
650 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
651 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
652 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
653 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
654
4246e332
AC
6552003-11-15 Andrew Cagney <cagney@redhat.com>
656
8fa9cfa1
AC
657 * mips-tdep.c (struct gdbarch_tdep): Delete member
658 gdb_target_is_mips64.
659 (GDB_TARGET_IS_MIPS64): Delete macro.
660 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
661 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
662 (mips_addr_bits_remove): Simplify.
663
c73e8f27
AC
664 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
665 register_size.
666
4246e332
AC
667 Replace MIPS_REGSIZE with mips_regsize.
668 * mips-tdep.c (mips_regsize): New function.
669 * mips-tdep.h (mips_regsize): Declare.
670 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
671 (SIZEOF_STRUCT_REG): Update.
672 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
673 (mipsnbsd_fill_reg): Update.
674 (mipsnbsd_supply_fpreg): Update.
675 (mipsnbsd_fill_fpreg): Update.
676 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
677 * mips-tdep.c (mips_register_raw_size): Update.
678 (mips_register_type): Update.
679 (SIGFRAME_BASE): Update.
680 (SIGFRAME_PC_OFF): Update.
681 (SIGFRAME_REGSAVE_OFF): Update.
682 (SIGFRAME_FPREGSAVE_OFF): Update.
683 (SIGFRAME_REG_SIZE): Update.
684 (mips32_heuristic_proc_desc): Update.
685 (print_gp_register_row): Update.
686 (mips_dump_tdep): Do not print MIPS_REGSIZE.
687 * irix5-nat.c (supply_gregset): Update.
688 (fetch_core_registers): Update.
689 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
690 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
691 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
692 (MIPS_REGISTER_BYTE): Update.
693 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
694
5e044b1e
AC
6952003-11-15 Andrew Cagney <cagney@redhat.com>
696
697 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
698 USE_REGISTER_NOT_ARG.
699 * stabsread.c (define_symbol): Update.
700
3a16a68c
AC
7012003-11-15 Andrew Cagney <cagney@redhat.com>
702
703 * bcache.h (deprecated_bcache): Declare.
704 (bcache): Make returned buffer constant.
705 * bcache.c (deprecated_bcache): New function.
706 (bcache_data): New function.
707 (bcache): Call bcache data.
708 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
709 (add_psymbol_with_dem_name_to_list): Ditto.
710
bb41a796
MK
7112003-11-15 Mark Kettenis <kettenis@gnu.org>
712
713 * glibc-tdep.h (struct gdbarch): Declare opaque.
714 (glibc_skip_solib_resolver): Adjust prototype.
715 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
716 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
717 (arm_linux_init_abi): Set skip_solib_resolver.
718 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
719 (i386_linux_init_abi): Set skip_solib_resolver.
720 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
721 (arm_linux_skip_solib_resolver): Remove prototype.
722 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
723 (i386_linux_skip_solib_resolver): Remove prototype.
724
4c8c40e6
MK
7252003-11-14 Mark Kettenis <kettenis@gnu.org>
726
727 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
728 function.
729 * gdbarch.c, gdbarch.h: Regenerate.
730 * infrun.c (handle_inferior_event): Call
731 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
732 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
733 definition.
734 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
735 prototype.
736
0e5d83e3
JJ
7372003-11-14 Jeff Johnston <jjohnstn@redhat.com>
738
739 * libunwind-frame.c: New file.
740 * libunwind-frame.h: New file.
741 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
742 * configure.in: Add --with-libunwind option support. Define
77f091dd 743 HAVE_LIBUNWIND if libunwind support selected / defaulted.
0e5d83e3
JJ
744 Also check for libunwind.h and libunwind-ia64.h headers.
745 * configure: Regenerated.
746 * Makefile.in: Add support for libunwind-frame.o.
747 * config.in: Regenerated.
748
287a334e 7492003-11-14 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 750
287a334e
JJ
751 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
752 set up the ia64 linux native target method for getting the kernel
753 unwind table.
754 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
755 * inftarg.c (child_xfer_partial): Enable section of code to
756 handle TARGET_OBJECT_UNWIND_TABLE.
757 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
758
140be7b8
ILT
7592003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
760
761 * config/arm/nbsd.mt (TM_FILE): Define.
762 * config/arm/tm-nbsd.h: New file.
763
0a90bcdd
AC
7642003-11-14 Andrew Cagney <cagney@redhat.com>
765
766 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
767 * ppc-sysv-tdep.c: Include "objfiles.h".
768 (ppc64_sysv_abi_push_dummy_call): Provide the
769 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
770
771 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
772 "name_of_malloc" to ".malloc".
773
087f1027
MK
7742003-11-13 Mark Kettenis <kettenis@gnu.org>
775
776 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
777
3882f37a
DC
7782003-11-13 David Carlton <carlton@kealia.com>
779
780 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
781
a8cf2722
AC
7822003-11-13 Andrew Cagney <cagney@redhat.com>
783
784 * arch-utils.h (selected_architecture_name): Declare.
785 (selected_byte_order): Declare.
786 * arch-utils.c (selected_byte_order): New function.
787 (selected_architecture_name): New function.
788 (target_architecture_auto): Make static.
789 (set_architecture_string): Make static.
790 (target_byte_order): Make static.
791 (target_byte_order_auto): Make static.
792 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
793 non-multi-arch definition.
794 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
795 (target_byte_order, target_architecture): Delete declaration.
796 (target_byte_order_auto, target_architecture_auto): Ditto.
797 * gdbarch.h: Re-generate.
798 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
799 "selected_byte_order".
77f091dd 800
475b6ddd
AC
8012003-11-13 Andrew Cagney <cagney@redhat.com>
802
803 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
804
a22286a9
JB
8052003-11-13 Jim Blandy <jimb@redhat.com>
806
807 * cp-namespace.c: Doc fix.
808
7bb11558
MS
8092003-11-12 Michael Snyder <msnyder@redhat.com>
810
39add00a
MS
811 * sh64_tdep.c: Regularize some names.
812 (sh_sh64_register_name): Rename to sh64_register_name.
813 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
814 (sh_sh64_register_byte): Rename to sh64_register_byte.
77f091dd 815 (sh_sh64_build_float_register_type):
39add00a 816 Rename to sh64_build_float_register_type.
77f091dd 817 (sh_sh64_register_convert_to_virtual):
39add00a 818 Rename to sh64_register_convert_to_virtual.
77f091dd 819 (sh_sh64_register_convert_to_raw):
39add00a
MS
820 Rename to sh64_register_convert_to_raw.
821
77f091dd
RM
822 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
823 sh64_media_reg_base_num, sh64_compact_reg_base_num,
2a314ed5 824 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd
RM
825 sh64_extract_return_value, sh64_show_media_regs,
826 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
2a314ed5 827 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
77f091dd 828 sh64_pseudo_register_read, sh64_pseudo_register_write,
2a314ed5
MS
829 sh64_do_pseudo_register, sh_compact_print_registers_info):
830 Delete unused variable 'tdep'.
831
7bb11558
MS
832 * sh64-tdep.c: Coding standard and spelling comment fixes.
833 (sh64_extract_return_value): Replace deprecated_store_floating
834 with store_typed_floating.
77f091dd 835 (sh_sh64_register_convert_to_raw): Replace
7bb11558
MS
836 deprecated_store_floating with store_typed_floating.
837 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
838 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
839 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd 840 sh64_extract_struct_value_address, sh64_pop_frame,
7bb11558 841 sh64_extract_return_value, sh64_store_return_value,
77f091dd 842 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
7bb11558
MS
843 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
844 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
845 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
846 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
847 deprecated_register_virtual_type, deprecated_register_raw_size,
77f091dd 848 deprecated_max_register_raw_size, or
7bb11558
MS
849 deprecated_max_register_virtual_size. Instead, just set
850 gdbarch_register_type.
39add00a
MS
851 (sh_sh64_register_raw_size): Delete.
852 (sh_sh64_register_virtual_size): Delete.
7bb11558 853
e7c27a73
DJ
8542003-11-12 Daniel Jacobowitz <drow@mvista.com>
855
856 * dwarf2read.c (struct dwarf2_cu): New type.
857
858 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
859 dwarf2_cu structure to pass down.
860
861 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
862 (add_partial_enumeration, locate_pdi_sibling, process_die)
863 (read_file_scope, read_func_scope)
864 (read_lexical_block_scope, dwarf2_get_pc_bounds)
865 (dwarf2_add_field, dwarf2_attach_fields_to_type)
866 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
867 (read_structure_scope, read_enumeration, read_array_type)
868 (read_common_block, read_namespace, read_tag_pointer_type)
869 (read_tag_ptr_to_member_type, read_tag_reference_type)
870 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
871 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
872 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
873 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
874 (read_full_die. read_attribute_value, read_attribute)
875 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
876 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
877 (die_containing_type, type_at_offset, tag_type_to_type)
878 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
879 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
880
1640b821
DJ
8812003-11-12 Daniel Jacobowitz <drow@mvista.com>
882
883 PR breakpoints/1450
884 * breakpoint.c (insert_bp_location): Fix a logic error by returning
885 0 after a catchpoint fails.
886
d7891507
MC
8872003-11-11 Michael Chastain <mec.gnu@mindspring.com>
888
889 * mips-tdep.c (msymbol_size): Delete.
890
f594e5e9
MC
8912003-11-07 Michael Chastain <mec@shout.net>
892
893 * symtab.h (struct minimal_symbol): Add size.
894 * dbxread.c: Use it.
895 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
896 Rename to record_minimal_symbol.
897 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
898 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
899 (install_minimal_symbols): Ditto.
900 * objfiles.c (terminate_minimal_symbol_table): Ditto.
901 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
902 * m68hc11-tdep.c: Ditto.
903 * mips-tdep.c: Ditto.
904 * sh64-tdep.c: Ditto.
905
68e39e73
MC
9062003-11-10 Michael Chastain <mec.gnu@mindspring.com>
907
908 * MAINTAINERS: Change my e-mail address.
909
b60eb90d
AC
9102003-11-10 Andrew Cagney <cagney@redhat.com>
911
963e2bb7
AC
912 * gdbarch.sh (return_value): Replace "inval" and "outval" with
913 "readbuf" and "writebuf".
914 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
915 * d10v-tdep.c (d10v_return_value): Ditto.
916 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
917 (ppc_sysv_abi_broken_return_value): Ditto.
918 (ppc64_sysv_abi_return_value): Ditto.
919 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
920 (ppc_sysv_abi_return_value): Ditto.
921 (ppc_sysv_abi_broken_return_value): Ditto.
922 (ppc64_sysv_abi_return_value): Ditto.
923 * values.c (register_value_being_returned): Update call.
924 * stack.c (return_command): Update call.
925 * gdbarch.h, gdbarch.c: Re-generate.
926
8aa91c1e
AC
927 * target.h (struct target_ops): Order xfer buffer parameters "read
928 write" not "write read".
929 * bfd-target.c (target_bfd_xfer_partial): Update.
930 * remote.c (remote_xfer_partial): Update.
931 * inftarg.c (child_xfer_partial): Update.
932 * target.c (default_xfer_partial): Update.
933 (target_read_partial, target_write_partial): Update.
934 (debug_to_xfer_partial): Update.
935
100bcc3f
AC
936 * arch-utils.h, arch-utils.c: Fix typo in comment.
937
b60eb90d
AC
938 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
939 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
940 (set_gdbarch_from_file): Call
941 "deprecated_current_gdbarch_select_hack".
b60eb90d 942
bf922ad9
AC
9432003-11-09 Andrew Cagney <cagney@redhat.com>
944
ebdba546
AC
945 * arch-utils.c (gdbarch_update_p): New function.
946 * gdbarch.sh (gdbarch_update_p): Delete function.
947 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 948 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
949 * gdbarch.c: Re-generate.
950
7de2341d
AC
951 * gdbarch.sh (clear_gdbarch_swap): Delete function.
952 (swapout_gdbarch_swap): Delete function.
953 (swapin_gdbarch_swap): Delete function.
954 (init_gdbarch_swap): Delete function.
955 (initialize_non_multiarch): Delete function.
956 (current_gdbarch_swap_in_hack): New function.
957 (current_gdbarch_swap_out_hack): New function.
958 (current_gdbarch_swap_init_hack): New function.
959 * gdbarch.c: Re-generate.
960
db446970
AC
961 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
962 parameter to "current_gdbarch". Add comment explaining why.
963 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
964 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
965 * gdbarch.c: Re-generate.
77f091dd 966
341e3d11
AC
967 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
968 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
969 * config/s390/xm-linux.h: Delete file.
970 * config/m88k/xm-delta88v4.h: Delete stray.
971
bf922ad9
AC
972 * Makefile.in (arch-utils.o): Update dependencies.
973 * arch-utils.c: Include "osabi.h".
974 (gdbarch_info_fill): New function.
975 * arch-utils.h (gdbarch_info_fill): Declare.
976 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
977 * gdbarch.c: Re-generate.
978
a3640c75
MK
9792003-11-09 Mark Kettenis <kettenis@gnu.org>
980 David S. Miller <davem@redhat.com>
981
982 * glibc-tdep.c, glibc-tdep.h: New files.
983 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
984 * config/i386/linux.mt (TDEPFILES): Likewise.
985 * i386-linux-tdep.c (glibc-tdep.h): Include.
986 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
987 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
988 * arm-linux-tdep.c (glibc-tdep.h): Include.
989 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
990 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
991 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
992 (glibc_tdep_h): Define.
993 (glibc-tdep.o): Add dependencies.
994 (arm-linux-tdep.o): Update dependencies.
995 (i386-linux-tdep.o): Likewise.
996
e60e0ab2
AC
9972003-11-09 Andrew Cagney <cagney@redhat.com>
998
999 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1000 * config/mips/nm-irix6.h: Delete file.
1001 * config/mips/nm-linux.h: Update copyright.
1002 (MIPS_GNULINUX_TARGET): Delete macro.
1003 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1004 * config/mips/xm-irix6.h: Delete file.
1005 * config/mips/linux.mh (XM_FILE): Delete definition.
1006 * config/mips/xm-linux.h: Delete file.
1007
181555e9
AC
10082003-11-09 Andrew Cagney <cagney@redhat.com>
1009
1010 * d10v-tdep.c (d10v_return_value): New function.
1011 (d10v_use_struct_convention): Delete function.
1012 (d10v_store_return_value): Delete function.
1013 (d10v_extract_struct_value_address): Delete function.
1014 (d10v_gdbarch_init): Set "return_value" instead of
1015 "extract_return_value", "store_return_value",
1016 "extract_struct_value_address", and "use_struct_convention".
1017 (RET1_REGNUM): Delete const.
1018
dea0c52f
MK
10192003-11-09 Mark Kettenis <kettenis@gnu.org>
1020
1021 From David S. Miller <davem@redhat.com>:
1022 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1023 * gdbarch.c, gdbarch.h: Regenerated.
1024 * arch-utils.c (generic_skip_solib_resolver): New function.
1025 * arch-utils.h (generic_skip_solib_resolver): New prototype.
1026 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1027
6314a349
AC
10282003-11-07 Andrew Cagney <cagney@redhat.com>
1029
1030 * top.c (print_gdb_version): Replace STREQ with strcmp.
1031 * valops.c (value_struct_elt_for_reference): Ditto.
1032 (value_struct_elt_for_reference): Ditto.
1033 * symtab.c (gdb_mangle_name): Ditto.
1034 (find_line_symtab): Ditto.
1035 * symmisc.c (maintenance_print_symbols): Ditto.
1036 * symfile.c (symbol_file_command): Ditto.
1037 * stabsread.c (define_symbol, read_type): Ditto.
1038 (cleanup_undefined_types, scan_file_globals): Ditto.
1039 * solib.c (solib_map_sections): Ditto.
1040 * solib-svr4.c (bfd_lookup_symbol): Ditto.
1041 * rs6000-tdep.c (skip_prologue): Ditto.
1042 * p-valprint.c (pascal_value_print): Ditto.
1043 (pascal_object_is_vtbl_ptr_type): Ditto.
1044 * objfiles.c (in_plt_section): Ditto.
1045 * minsyms.c (lookup_minimal_symbol): Ditto.
1046 (compact_minimal_symbols): Ditto.
1047 (find_solib_trampoline_target): Ditto.
1048 * mdebugread.c (parse_type): Ditto.
1049 * language.c (set_language_command): Ditto.
1050 (set_type_command, set_range_command): Ditto.
1051 * f-lang.c (add_common_block): Ditto.
1052 (add_common_block): Ditto.
1053 (find_first_common_named): Ditto.
1054 (patch_all_commons_by_name): Ditto.
1055 * elfread.c (elf_locate_sections): Ditto.
1056 (elf_locate_sections): Ditto.
1057 (elfstab_offset_sections): Ditto.
1058 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1059 * dbxread.c (add_old_header_file): Ditto.
1060 (find_corresponding_bincl_psymtab): Ditto.
1061 (read_dbx_symtab, process_one_symbol): Ditto.
1062 * coffread.c (patch_opaque_types): Ditto.
1063 * cli/cli-decode.c (delete_cmd): Ditto.
1064 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1065 * c-typeprint.c (c_type_print_base): Ditto.
1066 * breakpoint.c (bpstat_stop_status): Ditto.
1067 (clear_command, breakpoint_re_set_one): Ditto.
1068
49df298f
AC
10692003-11-07 Andrew Cagney <cagney@redhat.com>
1070
1071 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1072 * bcache.c (struct bstring): Make "length" an unsigned short, add
1073 "half_hash".
1074 (struct bcache): Add "half_hash_error_count".
1075 (bcache): Compute and save the "half_hash". Compare the
1076 "half_hash" before comparing the length. Update
1077 half_hash_error_count.
1078
f168dd80
AC
10792003-11-07 Andrew Cagney <cagney@redhat.com>
1080
1081 * inftarg.c (child_xfer_partial): New function
1082 (init_child_ops): Set "to_xfer_partial".
1083
05580c65
AC
10842003-11-07 Andrew Cagney <cagney@redhat.com>
1085
1086 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1087 set "return_value" instead of "use_struct_convention".
1088 (ppc_linux_use_struct_convention): Delete function.
1089 (ppc_linux_return_value): New function.
1090 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1091 (ppc_sysv_abi_broken_return_value): New function.
1092 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1093 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1094 static.
1095 (ppc_sysv_abi_extract_return_value): Delete function.
1096 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1097 (ppc_sysv_abi_store_return_value): Delete function.
1098 (ppc_sysv_abi_broken_store_return_value): Delete function.
1099 (ppc_sysv_abi_use_struct_convention): Delete function.
1100 (ppc64_sysv_abi_use_struct_convention): Delete function.
1101 (ppc64_sysv_abi_extract_return_value): Delete function.
1102 (ppc64_sysv_abi_store_return_value): Delete function.
1103 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1104 (ppcnbsd_init_abi): Set "return_value", instead of
1105 "use_struct_convention", "extract_return_value", and
1106 "store_return_value".
1107 (ppcnbsd_use_struct_convention): Delete function.
1108 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1109 (ppc_sysv_abi_return_value): Declare.
1110 (ppc_sysv_abi_broken_return_value): Declare.
1111 (ppc_sysv_abi_use_struct_convention): Delete.
1112 (ppc_sysv_abi_store_return_value): Delete.
1113 (ppc_sysv_abi_extract_return_value): Delete.
1114 (ppc_sysv_abi_broken_store_return_value): Delete.
1115 (ppc_sysv_abi_broken_extract_return_value): Delete.
1116 (ppc64_sysv_abi_use_struct_convention): Delete.
1117 (ppc64_sysv_abi_extract_return_value): Delete.
1118 (ppc64_sysv_abi_store_return_value): Delete.
1119 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1120 set "return_value" instead of "extract_return_value",
1121 "store_return_value", and "use_struct_convention".
1122
1763fba4
MK
11232003-11-07 Mark Kettenis <kettenis@gnu.org>
1124
22c7ba1a
MK
1125 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1126
1763fba4
MK
1127 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1128 fscanf.
1129
fc07cc2d
MK
11302003-11-07 Mark Kettenis <kettenis@gnu.org>
1131
1132 * fbsd-proc.c: Fix formatting.
1133
6a748db6
KB
11342003-11-06 Kevin Buettner <kevinb@redhat.com>
1135
1136 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1137 Define.
1138 (new_variant): Set name for iacc0_regnum.
1139 (frv_register_name): Accommodate pseudo-registers.
1140 (frv_register_type): Add case for iacc0_regnum.
1141 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1142 (frv_gdbarch_init): Set number of pseudo registers. Establish
1143 pseudo-register read/write methods.
1144
bf896cb0
AC
11452003-11-06 Andrew Cagney <cagney@redhat.com>
1146
1147 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1148 * top.c (command_line_input): Ditto.
1149 * objc-exp.y (yylex): Ditto.
1150 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1151 * jv-exp.y (yylex): Ditto.
1152 * f-exp.y (yylex): Ditto.
1153 * event-top.c (command_line_handler): Ditto.
1154 * environ.c (get_in_environ): Ditto.
1155 (set_in_environ): Ditto.
1156 * dwarfread.c (handle_producer): Ditto.
1157 * dbxread.c (process_one_symbol): Ditto.
1158 * c-typeprint.c (c_type_print_base): Ditto.
1159 * c-exp.y (yylex): Ditto.
1160
0b603eba
AC
11612003-11-06 Andrew Cagney <cagney@redhat.com>
1162 Jeff Johnston <jjohnstn@redhat.com>
1163
1164 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1165 (init_dummy_target): Set "to_xfer_partial".
1166
9cedbfec
AC
11672003-11-06 Andrew Cagney <cagney@redhat.com>
1168
1169 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1170 REGISTER_CONVENTION.
1171
26bb91f3
DJ
11722003-11-06 Daniel Jacobowitz <drow@mvista.com>
1173
1174 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1175 static.
1176
0bde7532
DJ
11772003-11-06 Daniel Jacobowitz <drow@mvista.com>
1178
1179 * breakpoint.c (remove_breakpoint): Take an bp_location
1180 instead of a breakpoint argument. Check the bp_location's type.
1181 Fix a reversed condition for hardware breakpoints.
1182
1183 (insert_bp_location): Update call to remove_breakpoint.
1184 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1185 (remove_hw_watchpoints): Likewise.
1186 (reattach_breakpoints): Likewise.
1187 (detach_breakpoints): Likewise.
1188 (delete_breakpoint): Likewise.
1189
075f6582
DJ
11902003-11-06 Daniel Jacobowitz <drow@mvista.com>
1191
1192 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1193 (beakpoint_init_inferior): Likewise.
1194 (breakpoint_here_p): Likewise. Only check addresses for software
1195 or hardware breakpoints.
1196 (breakpoint_inserted_here_p): Likewise.
1197 (breakpoint_thread_match): Likewise. Correct comment.
1198 (bpstat_have_active_hw_watchpoints): Likewise.
1199 (check_duplicates): Likewise.
1200
879bfdc2
DJ
12012003-11-06 Daniel Jacobowitz <drow@mvista.com>
1202
1203 * breakpoints.c (insert_bp_location): New function, broken out
1204 from insert_breakpoints. Work on an bp_location instead of a
1205 breakpoint.
1206 (insert_breakpoints): Use it.
1207
cf3a9e5b
DJ
12082003-11-06 Daniel Jacobowitz <drow@mvista.com>
1209
1210 * breakpoint.h (struct bp_location): Add section.
1211 (struct breakpoint): Remove section.
1212 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1213 (breakpoint_here_p, breakpoint_inserted_here_p)
1214 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1215 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1216 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1217 section through loc.
1218
ffce0d52
DJ
12192003-11-06 Daniel Jacobowitz <drow@mvista.com>
1220
1221 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1222 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1223
e049a4b5
DJ
12242003-11-06 Daniel Jacobowitz <drow@mvista.com>
1225
1226 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1227 arguments. Initialize owner and type for the new breakpoint
1228 location item.
1229 (set_raw_breakpoint): Update call to allocate_bp_location.
1230
7cc221ef
DJ
12312003-11-06 Daniel Jacobowitz <drow@mvista.com>
1232
1233 * breakpoint.h (struct bp_location): Add a chain pointer.
1234 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1235 macros.
1236 (bp_location_chain): New variable.
1237 (allocate_bp_location): New function.
1238 (set_raw_breakpoint): Use it.
1239 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1240
5cab636d
DJ
12412003-11-06 Daniel Jacobowitz <drow@mvista.com>
1242
1243 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1244 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1245 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1246 * breakpoint.c (condition_command, read_memory_nobpt)
1247 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1248 (reattach_breakpoints, update_breakpoints_after_exec)
1249 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1250 (breakpoint_init_inferior, breakpoint_here_p)
1251 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1252 (breakpoint_thread_match, bpstat_stop_status)
1253 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1254 (describe_other_breakpoints, check_duplicates)
1255 (make_breakpoint_permanent, create_thread_event_breakpoint)
1256 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1257 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1258 (watch_command_1, print_one_exception_catchpoint)
1259 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1260 use the breakpoint's ->loc.
1261 (set_raw_breakpoint): Likewise. Initialize ->loc.
1262 (delete_breakpoint): Likewise. Free ->loc.
1263
7be0c536
AC
12642003-11-05 Andrew Cagney <cagney@redhat.com>
1265
4c7d882e
AC
1266 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1267 macro.
1268 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1269 * config/i386/tm-cygwin.h
1270 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1271 * config/powerpc/tm-linux.h
1272 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1273 (at_subroutine_call_instruction_target): Delete declaration.
1274 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1275 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1276 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1277
7be0c536
AC
1278 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1279 "struct bfd_section" and "struct bfd".
1280 * target.h (struct section_table): Ditto.
1281 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1282 * solib-svr4.c (elf_locate_base): Ditto.
1283 * pa64solib.c (dld_cache_t): Ditto.
1284 * objfiles.h (struct obj_section): Ditto.
1285 * objfiles.c (add_to_objfile_sections): Ditto.
1286 * exec.c (bfdsec_to_vmap): Ditto.
1287 (add_to_section_table): Ditto.
1288 (build_section_table): Ditto.
1289 * corelow.c (get_core_register_section): Ditto.
1290 * coffread.c (find_linenos): Ditto.
1291 * elfread.c (elf_interpreter): Delete #if0'd function.
1292
1293 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1294 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1295 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1296 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1297
1298 * arch-utils.h (generic_cannot_extract_struct_value_address):
1299 Delete declaration.
1300 * wince.c (_initialize_wince): Fix multi-line string.
1301 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1302
d8fe84e3
EZ
13032003-11-05 Elena Zannoni <ezannoni@redhat.com>
1304
1305 * top.c (execute_command): Fix broken logic for command execution
1306 while inferior is running in async mode.
1307
cbdfc7c0
MK
13082003-11-06 Mark Kettenis <kettenis@gnu.org>
1309
1310 * dwarf2-frame.c (execute_cfa_program): Mark register as
1311 REG_SAVED_REG for DW_CFA_register opcode.
1312
dac94105
MK
13132003-11-05 Mark Kettenis <kettenis@gnu.org>
1314
1315 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1316 %rsp, %rip and %eflags to match ABI-change.
1317
85bf2b91
JJ
13182003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1319
1320 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
77f091dd
RM
1321 (ia64_gdbarch_init): Don't bother calculating the os.
1322 Instead use the gdbarch_info struct and look at the osabi field.
1323 Also use gdbarch_list_lookup_by_info() to look for a
1324 candidate gdbarch.
85bf2b91 1325
cd31fb03
KB
13262003-11-05 Kevin Buettner <kevinb@redhat.com>
1327
1328 * frv-tdep.c (frv_register_byte): Delete.
1329 (frv_extract_return_value, frv_store_return_value)
1330 (frv_extract_struct_value_address): Don't call frv_register_byte().
1331 Convert to non-deprecated form.
1332 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1333 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1334 set_gdbarch_deprecated_store_return_value(), and
1335 set_gdbarch_deprecated_extract_struct_value_address() into
1336 non-deprecated forms.
1337
0a056982
AC
13382003-11-05 Andrew Cagney <cagney@redhat.com>
1339
1340 * mips-tdep.c (mips_dump_tdep): Do not print
1341 PRINT_EXTRA_FRAME_INFO.
1342 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1343 Rename PRINT_EXTRA_FRAME_INFO.
1344 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1345 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1346 (mips_print_extra_frame_info): Delete declaration.
1347 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1348
29e0a062
EZ
13492003-11-05 Elena Zannoni <ezannoni@redhat.com>
1350
1351 * coffread.c (coff_symtab_read): Remove passing of info parameter
1352 to prim_record_minimal_symbol_and_info.
1353
8af580fc
EZ
13542003-11-05 Elena Zannoni <ezannoni@redhat.com>
1355
1356 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1357 (decode_base_type): Delete ifdeffed out code.
1358
507836c0
AC
13592003-11-04 Andrew Cagney <cagney@redhat.com>
1360
1361 * symtab.c (find_active_alias): Delete function.
1362 (lookup_block_symbol): Delete alias code.
1363 * stabsread.c (resolve_live_range): Delete function.
1364 (add_live_range): Delete function.
1365 (resolve_symbol_reference): Delete function.
1366 (define_symbol): Delete live range and alias code.
1367 (scan_file_globals): Delete alias code.
1368 * symtab.h (SYMBOL_RANGES): Delete macro.
1369 (struct range_list): Delete structure.
1370 (struct symbol): Delete field "ranges".
1371 (SYMBOL_ALIASES): Delete macro.
1372 (struct alias_list): Delete structure.
1373 (struct symbol): Delete field "aliases".
1374
1083b3bc
MS
13752003-11-04 Michael Snyder <msnyder@redhat.com>
1376
77f091dd 1377 * MAINTAINERS: Remove myself as owner of breakpoints and
1083b3bc
MS
1378 of sparc/solaris.
1379
474e5826
CV
13802003-11-03 Corinna Vinschen <vinschen@redhat.com>
1381
1382 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1383 (sh_sh4al_dsp_register_name): Ditto.
1384 (sh4_nofpu_show_regs): Ditto.
1385 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1386 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1387
2160782c
AC
13882003-11-03 Andrew Cagney <cagney@redhat.com>
1389
1390 * bcache.c: Include "gdb_assert.h".
1391 (struct bcache): Add fields "expand_count" and
1392 "expand_hash_count".
1393 (expand_hash_table): Update the expand counts.
1394 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1395 on object sizes and hashes.
1396 * Makefile.in (bcache.o): Update dependencies.
1397
85302095
AC
13982003-11-03 Andrew Cagney <cagney@redhat.com>
1399
1400 * exec.c (xfer_memory): Eliminate xfer_fn.
1401
526eef89
KB
14022003-10-31 Kevin Buettner <kevinb@redhat.com>
1403
1404 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1405 (opcodes/frv-desc.h): Include.
1406 (iacc0h_regnum, iacc0l_regnum): Define.
1407 (last_spr_regnum, frv_num_regs): Update.
1408 (new_variant): Don't supply default names for holes in the SPRs.
1409 Supply names for iacc0h_regnum and iacc0l_regnum.
1410 (frv_register_type): Use symbolic constants first_fpr_regnum and
1411 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1412 builtin_type_int instead of builtin_type_int32.
1413 (frv_register_sim_regno): New function.
1414 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1415 * Makefile.in (gdb_sim_frv_h): Define.
1416 (frv-tdep.o): Update dependencies.
1417
9e815ec2
AC
14182003-10-31 Andrew Cagney <cagney@redhat.com>
1419
1420 * avr-tdep.c (avr_frame_this_id): Do not call
1421 deprecated_inside_entry_file.
1422 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1423 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1424 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1425 * arm-tdep.c (arm_prologue_this_id): Ditto.
1426 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1427
e372db49
JB
14282003-10-31 Jim Blandy <jimb@redhat.com>
1429
1430 * elfread.c (elf_symtab_read): Allocate correct number of tail
1431 elements to sectinfo structure. (Fix from Woody LaRue.)
1432
e8bcf01f
AC
14332003-10-31 Andrew Cagney <cagney@redhat.com>
1434
1435 * stack.c (return_command): Use get_frame_type, instead of
1436 CALL_DUMMY_HAS_COMPLETED.
1437 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1438 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1439
4c05fe53
MK
14402003-10-31 Mark Kettenis <kettenis@gnu.org>
1441
1442 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1443 explicitly specify size of array.
1444 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1445 TDEP->sc_num_regs.
1446
c8b91b89
AC
14472003-10-31 Andrew Cagney <cagney@redhat.com>
1448
1449 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1450 function.
1451 (s390_gdbarch_init): Set extract_struct_value_address.
1452 * arch-utils.c (generic_cannot_extract_struct_value_address):
1453 Delete function.
1454 * arch-utils.h (generic_cannot_extract_struct_value_address):
1455 Delete definition.
1456
fdfb6fc8
MK
14572003-10-31 Mark Kettenis <kettenis@gnu.org>
1458
1459 * i386-linux-nat.c (fetch_core_registers): Remove.
1460 (linux_elf_core_fns): Remove.
1461 (_initialize_i386_linux_nat): Remove.
1462
2f4950cd
AC
14632003-10-31 Andrew Cagney <cagney@redhat.com>
1464
1465 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1466 "exec.h".
1467 (exec_entry_point): New function.
1468 (enable_break): Create a "tmp_bfd_target", use that and
1469 entry_point_address when computing the relocation offset.
1470 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1471 * Makefile.in (solib-svr4.o): Update dependencies.
1472
bba2d28d
AC
14732003-10-31 Andrew Cagney <cagney@redhat.com>
1474
1475 * defs.h (XZALLOC): Define.
1476 * target.h (struct target_ops): Add "to_data";
1477 * bfd-target.h, bfd-target.c: New files.
1478 * Makefile.in (SFILES): Add "bfd-target.c".
1479 (COMMON_OBS): Add "bfd-target.o".
1480 (bfd-target.o): Specify dependencies.
1481 (bfd_target_h): Define.
1482 * defs.h (XZALLOC): Define.
1483
6066c3de
AC
14842003-10-31 Andrew Cagney <cagney@redhat.com>
1485
1486 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1487 adjust_breakpoint_address.
1488 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1489 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1490 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1491 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1492
4b8a223f
AC
14932003-10-31 Andrew Cagney <cagney@redhat.com>
1494
1495 * target.h (struct target_ops): Replace "to_read_partial" and
1496 "to_write_partial" with "to_xfer_partial". Update comments.
1497 * target.c (debug_to_write_partial): Delete function.
1498 (debug_to_xfer_partial): Replace debug_to_read_partial.
1499 (add_target, update_current_target, setup_target_debug): Set
1500 "to_xfer_partial" instead of "to_read_partial" and
1501 "to_write_partial".
1502 (default_xfer_partial): Replace "default_write_partial".
1503 (default_read_partial): Delete.
1504 (target_read_partial, target_write_partial): Call
1505 "to_xfer_partial".
1506 * remote.c (init_remote_ops): Set "to_xfer_partial".
1507 (init_remote_async_ops): Ditto.
1508 (remote_xfer_partial): Replace "remote_read_partial".
1509
66a72d25
MK
15102003-10-31 Mark Kettenis <kettenis@gnu.org>
1511
1512 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1513 registers in `fxsave' format.
1514 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1515
9a12a2a0
MK
15162003-10-30 Mark Kettenis <kettenis@gnu.org>
1517
e9f1aad5
MK
1518 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1519 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1520 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1521
bb489b3c
MK
1522 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1523 specify size of array.
1524 (i386_linux_init_abi): Remove initialization of
1525 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1526 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1527
da285bc4
MK
1528 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1529 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1530 core-regset.o.
1531
9a12a2a0
MK
1532 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1533 the ELF header.
1534
0e24ac5d
MK
15352003-10-29 Mark Kettenis <kettenis@gnu.org>
1536
6d6d8e9c
MK
1537 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1538 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1539 core-regset.o.
1540
25e60c9b
MK
1541 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1542
0e24ac5d
MK
1543 * corelow.c: Include "arch-utils.h", "regset.h" and
1544 "gdb_assert.h".
1545 (core_gdbarch): New variable.
1546 (sniff_core_bfd): Don't sniff if we have support for register sets
1547 in CORE_GDBARCH.
1548 (core_close): Reset CORE_GDBARCH.
1549 (core_open): Initialize CORE_GDBARCH.
1550 (get_core_register_section): Use register sets if they are
1551 supported by CORE_GDBARCH.
1552 (get_core_registers): Don't print error message if we have support
1553 for register sets in CORE_GDBARCH.
1554
0a0a4ac3
AC
15552003-10-29 Andrew Cagney <cagney@redhat.com>
1556
1557 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1558 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1559
7b097ae3
MK
15602003-10-29 Mark Kettenis <kettenis@gnu.org>
1561
1562 * objfiles.h (clear_objfile_data): New prototype.
1563 * objfiles.c (clear_objfile_data): New function.
1564 * symfile.c (reread_symbols): Clear per-objfile data.
1565
46f45a4a 15662003-10-28 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 1567
46f45a4a
JJ
1568 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1569 printf_unfiltered instead of printf_filtered for output messages.
1570 (add_symbol_file_command): Ditto.
1571 (reread_symbols): Ditto.
1572 (overlay_auto_command): Ditto.
1573 (overlay_manual_command): Ditto.
1574 (overlay_off_command): Ditto.
1575
2b026650
MK
15762003-10-27 Mark Kettenis <kettenis@gnu.org>
1577
1578 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1579 (gdbarch_from_bfd): New function.
1580 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1581 deprecated_select_gdbarch_hack.
1582 * arch-utils.h (gdbarch_from_bfd): New prototype.
1583
0bcad584 15842003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1585
1586 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1587 arch_info. Use warning instead of fprintf_filtered. Do not use
1588 deprecated bfd_printable_arch_mach.
1589
7f398216
KB
15902003-10-26 Kevin Buettner <kevinb@redhat.com>
1591
1592 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1593 Delete.
1594 (frv_register_type): Rename from frv_register_virtual_type. Add
1595 ``struct gdbarch *'' parameter.
1596 (frv_gdbarch_init): Delete calls to the following functions:
1597 set_gdbarch_deprecated_size(),
1598 set_gdbarch_deprecated_register_bytes(),
1599 set_gdbarch_deprecated_register_raw_size(),
1600 set_gdbarch_deprecated_max_register_raw_size(),
1601 set_gdbarch_deprecated_register_virtual_size(),
1602 set_gdbarch_deprecated_max_register_virtual_size(),
1603 set_gdbarch_deprecated_register_virtual_size(),
1604 set_gdbarch_deprecated_register_virtual_type().
1605 Add call to function set_gdbarch_register_type().
1606
bcf48cc7
MK
16072003-10-26 Mark Kettenis <kettenis@gnu.org>
1608
6c7de422
MK
1609 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1610 FDOFF_REGNUM): Remove defines.
1611 * win32-nat.c (do_child_fetch_inferior_registers): Include
1612 "i387-tdep.h".
3e685d41 1613 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1614 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1615 undefine I387_ST0_REGNUM.
1616
f783586b
MK
1617 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1618 * x86-64-tdep.c (x86_64_store_return_value): Use
1619 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1620
bcf48cc7
MK
1621 Change register numbers to enumartion values.
1622 * i386-tdep.h (enum i386_regnum): New.
1623 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1624 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1625 I386_ST0_REGNUM): Remove defines.
1626 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1627 I386_EDI_REGNUM): Remove defines.
1628
b6591e8b
AC
16292003-10-24 Andrew Cagney <cagney@redhat.com>
1630
1631 * target.c: Include "gdbcore.h".
1632 (get_target_memory, get_target_memory_unsigned): New functions.
1633 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1634 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1635 Use get_target_memory_unsigned.
1636 * Makefile.in (target.o): Update dependencies.
1637
5f724446
AC
16382003-10-24 Andrew Cagney <cagney@redhat.com>
1639
ce2826aa
AC
1640 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1641 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1642 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1643 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1644 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1645
5f724446
AC
1646 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1647 (can_run_code_for): Use the OO term "singleton".
1648
fc70c2a0
AC
16492003-10-23 Andrew Cagney <cagney@redhat.com>
1650
1651 * Makefile.in (stack.o): Add $(regcache_h).
1652 * stack.c: Include "regcache.h"
1653 (return_command): Rewrite. Use get_frame_id and
1654 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1655 about unhandled return-values.
1656 * value.h (set_return_value): Delete declaration.
1657 * values.c (set_return_value): Delete function.
1658
4afcc598
JJ
16592003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1660
1661 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1662 (pseudo_regs): Add comment regarding register stack registers.
1663 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1664 (floatformat_valid): New static routine.
1665 (floatformat_ia64_ext): Add name field and set up is_valid routine
1666 to floatformat_valid().
1667 (examine_prologue): For the previous cfm, use
1668 frame_unwind_register()
1669 if the cfm is not stored in a register-stack register. Save the
1670 previous cfm value in the prev_cfm field. Add debug output.
1671 (ia64_frame_this_id): Use frame_id_build_special() to also register
1672 the bsp. Add debug output.
1673 (ia64_sigtramp_frame_this_id): Ditto.
1674 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1675 registers and also add some checks for framelessness before accepting
1676 current register values for fields such as return address. For cfm,
1677 use the cached prev_cfm field if available. Add comment to explain
1678 PSR logic. Add debug output.
1679 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1680 as part of initialization.
1681 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1682 calculated. Cache the bsp and cfm values.
1683 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1684 instead of using ia64_frame_prev_register() which doesn't expect most
1685 registers to be saved. The saved values for bsp and sp
1686 can be taken from the cache. Add debug output.
1687 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1688 the bsp.
1689
6cfae0bc
JB
16902003-10-23 Jim Blandy <jimb@redhat.com>
1691
1692 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1693 architecture the current arch can run code for --- but not if it's
1694 a superset.
1695 (can_run_code_for): New function.
1696
fcd182f9
JW
16972003-10-22 James E Wilson <wilson@specifixinc.com>
1698
1699 * MAINTAINERS: Move myself from paper trail section back to write
1700 after approval section.
1701
4646aa9d
AC
17022003-10-22 Andrew Cagney <cagney@redhat.com>
1703
1704 * exec.h: New file.
1705 * win32-nat.c: Include "exec.h".
1706 * solib.c: Include "exec.h".
1707 * target.h (build_section_table): Delete declaration.
1708 * somsolib.c: Include "exec.h".
1709 (exec_ops): Delete extern declaration.
1710 * rs6000-nat.c: Update copyright. Include "exec.h".
1711 (exec_ops): Delete extern declaration.
1712 * pa64solib.c: Update copyright. Include "exec.h".
1713 (exec_ops): Delete extern declaration.
1714 * exec.c: Update copyright. Include "exec.h".
1715 * corelow.c: Update dependencies. Include "exec.h".
1716 * Makefile.in (exec_h): Define.
1717 (exec.o, somsolib.o): Update dependencies.
1718 (pa64solib.o, corelow.o): Update dependencies.
1719
0088c768
AC
17202003-10-22 Andrew Cagney <cagney@redhat.com>
1721
1722 * target.c: Include "gdb_assert.h" (target_read): Call
1723 "target_read_partial", not "target_write_partial".
1724 (default_read_partial, default_write_partial): New function.
1725 (target_read_partial, target_write_partial): Simplify, assume that
1726 there is always a read/write method.
1727 (update_current_target, add_target): Always set "to_read_partial"
1728 and "to_write_partial".
1729 (target_write, target_read): Fail on a zero byte transfer.
1730 * Makefile.in (target.o): Update dependencies.
1731 * target.h: Update copyright date.
1732 (target_object): Fix typo.
1733
e2d0e7eb
AC
17342003-10-22 Andrew Cagney <cagney@redhat.com>
1735
1736 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1737 multi-arch method, add "targ" parameter.
77f091dd 1738 (struct target_ops): Declare.
e2d0e7eb
AC
1739 * gdbarch.h, gdbarch.c: Re-generate.
1740 * Makefile.in (c-valprint.o): Update dependencies.
1741 * arch-utils.h: Update copyright.
1742 (convert_from_func_ptr_addr_identity): Declare.
1743 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1744 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1745 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1746 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1747 * infcall.c (find_function_addr, call_function_by_hand): Update.
1748 * c-valprint.c: Include "target.h".
1749 (print_function_pointer_address): Update.
1750
f1c07ab0
AC
17512003-10-22 Andrew Cagney <cagney@redhat.com>
1752
1753 * target.c (target_close): New function.
1754 (debug_to_close): Use "target_close".
1755 (push_target): Use "target_close".
1756 (unpush_target): Use "target_close".
1757 (pop_target): Use "target_close".
1758 * target.h (struct target_ops): Add "to_xclose".
1759 (target_open): Delete macro. Move comment to "to_open".
1760 (target_close): Replace macro with function that takes a target.
1761 * top.c (quit_target): Pass "current_target" to "target_close".
1762
5520a790
EZ
17632003-10-21 Elena Zannoni <ezannoni@redhat.com>
1764
1765 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1766 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1767 * symtab.h (lookup_minimal_symbol_text): Update.
1768 * breakpoint.c (create_overlay_event_breakpoint,
1769 create_longjmp_breakpoint): Update callers.
1770 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1771 * symtab.c (find_pc_sect_line): Ditto.
1772
caa92b73
AC
17732003-10-21 Andrew Cagney <cagney@redhat.com>
1774
1775 * target.c (errno): Delete extern declaration.
1776
aa2a9a3c
JJ
17772003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1778
1779 * ia64-tdep.c: Change all occurrences of
1780 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1781 (ia64_frame_prev_register): Minor whitespace change.
1782
4beec2b7
MC
17832003-10-20 Michael Chastain <mec@shout.net>
1784
1785 * config/djgpp/fnchange.lst: Add lines for:
1786 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1787 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1788 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1789 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1790 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1791 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1792 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1793
92ad9cd9
AC
17942003-10-20 Andrew Cagney <cagney@redhat.com>
1795
1796 * values.c (register_value_being_returned): Update comments. Use
1797 "gdbarch_return_value" when available.
1798 (using_struct_return): Ditto.
1799 (set_return_value): Ditto. Use "gdbarch_return_value" when
1800 available.. Print a warning, and not an error, when an unhandled
1801 return type is encountered.
1802 * infcmd.c: Include "gdb_assert.h".
1803 (print_return_value): When gdbarch_return_value_p, and using
1804 struct return, assume that the value is not available.
1805 * defs.h (return_value_convention): Define.
1806 * gdbarch.sh (gdbarch_return_value): New predicate method.
1807 * gdbarch.h, gdbarch.c: Re-generate
1808 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1809
198beae2
AC
18102003-10-20 Andrew Cagney <cagney@redhat.com>
1811
1812 * symtab.c: Replace "struct sec" with "struct bfd_section".
1813 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1814
24d693a6 18152003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1816
1817 * config/djgpp/fnchange.lst: Add lines for:
1818 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1819 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1820 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1821
21ad8dc3
MK
18222003-10-19 Mark Kettenis <kettenis@gnu.org>
1823
1824 * amd64fbsd-nat.c (fetch_inferior_registers,
1825 store_inferior_registers): Remove functions.
1826 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1827
cced5e27
MK
18282003-10-18 Mark Kettenis <kettenis@gnu.org>
1829
1830 Add NetBSD/amd64 native configuration:
1831 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1832 * amd64nbsd-tdep.c: New file.
1833 * amd64nbsd-nat.c: New file.
1834 * amd64bsd-nat.c: New file.
1835 * config/i386/nbsd64.mh: New file.
1836 * config/i386/nbsd64.mt: New file.
1837 * configure.host: Add x86_64-*-netbsd*.
1838 * configure.tgt: Add x86_64-*-netbsd*.
1839 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1840 New targets.
1841 * NEWS (New native configurations): Mention NetBSD/amd64.
1842
666de3fd
MC
18432003-10-17 Michael Chastain <mec@shout.net>
1844
1845 * config/djgpp/fnchange.lst: Remove dead lines for:
1846 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1847 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1848 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1849 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1850 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1851 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1852 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1853 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1854 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1855 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1856 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1857 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1858 gdb/config/sparc/tm-sparclite.h,
1859 gdb/gdbtk/generic/ChangeLog-2001,
1860 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1861 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1862 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1863 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1864 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1865 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1866 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1867 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1868 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1869 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1870 itcl/iwidgets3.0.0/demos/fileselectionbox,
1871 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1872 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1873 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1874 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1875 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1876 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1877 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1878 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1879 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1880 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1881 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1882 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1883 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1884 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1885 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1886 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1887 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1888 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1889 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1890 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1891 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1892 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1893 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1894 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1895 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1896 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1897 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1898 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1899 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1900 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1901 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1902 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1903 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1904 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1905 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1906 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1907 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1908 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1909 itcl/iwidgets3.0.0/demos/scrolledframe,
1910 itcl/iwidgets3.0.0/demos/scrolledhtml,
1911 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1912 itcl/iwidgets3.0.0/demos/scrolledtext,
1913 itcl/iwidgets3.0.0/demos/selectionbox,
1914 itcl/iwidgets3.0.0/demos/selectiondialog,
1915 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1916 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1917 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1918 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1919 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1920 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1921 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1922 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1923 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1924 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1925 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1926 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1927 itcl/iwidgets3.0.0/doc/selectionbox.n,
1928 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1929 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1930 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1931 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1932 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1933 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1934 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1935 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1936 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1937 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1938 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1939 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1940 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1941 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1942 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1943 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1944 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1945 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1946 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1947 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1948 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1949 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1950 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1951 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1952 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1953 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1954 itcl/iwidgets3.0.0/tests/selectionbox.test,
1955 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1956 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1957 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1958 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1959 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1960 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1961 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1962 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1963 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1964 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1965 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1966 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1967 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1968 tk/mac/tkMacProjects.sit.hqx.
1969
1e3ff5ad
AC
19702003-10-17 Andrew Cagney <cagney@redhat.com>
1971
8db32d44
AC
1972 * target.c (target_section_by_addr): New function.
1973 (do_xfer_memory): Use "target_section_by_addr".
1974 * target.h (target_section_by_addr): Declare.
1975
1e3ff5ad
AC
1976 * target.h (struct target_ops): Add "to_read_partial" and
1977 "to_write_partial", delete "to_query".
1978 (target_read_partial, target_write_partial): Declare.
1979 (target_read, target_write): Declare.
1980 (target_query): Delete macro.
1981 * target.c (target_read_partial): New function.
1982 (target_write_partial, target_read, target_write): New function.
1983 (update_current_target): Delete inheritance of "to_query". Add
1984 comments about "to_read_partial" and "to_write_partial".
1985 (debug_to_partial_read, debug_to_partial_write): New functions.
1986 (debug_to_query): Delete function.
1987 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1988 instead of "to_query".
1989 * remote.c (remote_read_partial): Replace "remote_query".
1990 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1991 (init_remote_async_ops): Ditto.
1992 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1993 "target_read_partial" instead of "target_query".
1994 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1995 Use "target_read_partial" instead of "target_query".
1996
48c66725
JJ
19972003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1998
1999 * frame.h (struct frame_id): Add new field: special_addr.
2000 (frame_id_build_special): New prototype.
2001 * frame.c (frame_id_build_special): New function.
2002 (frame_id_build): Change to call frame_id_build_special().
77f091dd
RM
2003 (frame_id_eq): Change to also test special_addr field.
2004 (frame_id_inner): Update comment.
48c66725 2005
7998dfc3
AC
20062003-10-17 Andrew Cagney <cagney@redhat.com>
2007
2008 * target.c (update_current_target): Perform the target cleanup.
2009 Put the target stack beneath the squashed "current_target".
2010 (add_target): Delete disabled call to "cleanup_target".
2011 (cleanup_target): Delete function.
2012 (push_target, unpush_target): Do not call "cleanup_target".
2013
9c04404e 20142003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
2015
2016 * target.c (target_stack): Change to a static target_ops.
2017 (update_current_target): Walk the "struct target_ops" stack.
2018 (pop_target, do_xfer_memory, target_info): Ditto.
2019 (find_target_beneath): Ditto.
2020 (push_target): Rewrite to use the "struct target_ops" stack.
2021 (unpush_target): Ditto.
2022 * target.h (struct target_stack_item): Delete definition.
2023 (target_stack): Delete declaration.
2024 (struct target_ops): Add field "beneath".
2025
c98a2b49 20262003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
2027
2028 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2029 declaration.
2030 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
2031 (h8300_examine_prologue): Use h8300_normal_mode flag
2032 (h8300_gdbarch_init): Set architecture info for normal mode
2033
506fb367
DJ
20342003-10-16 Daniel Jacobowitz <drow@mvista.com>
2035
2036 * remote.c (remote_protocol_vcont): New variable.
2037 (set_remote_protocol_vcont_packet_cmd): New function.
2038 (show_remote_protocol_vcont_packet_cmd): New function.
2039 (init_all_packet_configs): Handle remote_protocol_vcont.
2040 (remote_vcont_probe): New function.
2041 (remote_vcont_resume): New function.
2042 (remote_resume): Use it.
2043 (remote_async_resume): Call remote_resume.
2044 (_initialize_remote): Add verbose-resume packet commands.
2045
65815ea1
AC
20462003-10-16 Andrew Cagney <cagney@redhat.com>
2047
2048 * infrun.c (handle_inferior_event): Add comment about
2049 "frame_id_inner" being too weak.
2050
40324f1b
EZ
20512003-10-16 Elena Zannoni <ezannoni@redhat.com>
2052
2053 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2054 second parameter, which is always null. Remove
2055 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2056 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2057 accordingly.
2058 * somsolib.c (som_solib_create_inferior_hook,
2059 som_solib_desire_dynamic_linker_symbols): Update callers.
2060 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
2061
20622003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2063
2064 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2065 debug interface, SDI (Scalable Debug Interface).
2066 * NEWS: Mention m32r SDI protocol was supported.
2067 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2068 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2069
51931cbb
JJ
20702003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2071
2072 * ia64-linux-tdep.c: Include gdbcore.h.
2073 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2074 (ia64_linux_sigcontext_register_addr): Find the address of the
2075 sigcontext area stored in the sigframe instead of using
77f091dd 2076 a magic offset constant.
51931cbb 2077
84e7fd53
AC
20782003-10-15 Andrew Cagney <cagney@redhat.com>
2079
2080 * remote.c (remote_search): Delete function.
2081 * target.h (target_search): Delete disabled macro.
2082 (struct target_ops): Delete disabled field "to_search".
2083
0f4d7c52
KB
20842003-10-14 Kevin Buettner <kevinb@redhat.com>
2085
2086 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2087 instead of deprecated_inside_entry_file().
2088
2e952408
CV
20892003-10-14 Corinna Vinschen <vinschen@redhat.com>
2090
2091 * sh-tdep.c: Fix copy/paste hangover in comment.
2092 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2093 mode.
2094 (sh3e_sh4_extract_return_value): Ditto.
2095
7e86466e
RH
20962003-10-13 Richard Henderson <rth@redhat.com>
2097
2098 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2099 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2100 match c_val_print a bit closer.
2101
46a16dba
KB
21022003-10-13 Kevin Buettner <kevinb@redhat.com>
2103
2104 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2105 (frv_gdbarch_adjust_breakpoint_address): New function.
2106 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2107 method.
2108
76897487
KB
21092003-10-13 Kevin Buettner <kevinb@redhat.com>
2110
2111 * breakpoint.h (struct breakpoint): Add new member
2112 ``requested_address''.
2113 * breakpoint.c (breakpoint_adjustment_warning)
2114 (adjust_breakpoint_address): New static functions.
2115 (print_it_typical): Issue warning if breakpoint's address is different
2116 from its requested address.
2117 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2118 (breakpoint_re_set_one): Set breakpoint's
2119 ``requested_address'' field. Set ``address'' field to the
2120 result of calling adjust_breakpoint_address() on the requested
2121 address.
2122
a1131521
KB
21232003-10-13 Kevin Buettner <kevinb@redhat.com>
2124
2125 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2126 * gdbarch.h, gdbarch.c: Regenerate.
2127
6ce6d90f
MK
21282003-10-11 Mark Kettenis <kettenis@gnu.org>
2129
155c1d33
MK
2130 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2131 TDEP->sc_num_regs.
2132
8a96bc77
MK
2133 * i386fbsd-tdep.c: New file.
2134 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2135 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2136 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2137 i386bsd-tdep.c.
2138 (_initialize_i386fbsd_tdep): New function.
2139 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2140 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2141 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2142 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2143 TDEP->sc_num_regs.
2144 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2145 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2146 to initialize TDEP->sc_num_regs.
2147 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2148 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2149 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2150 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2151 FreeBSD ELF OS/ABI's here.
2152 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2153 (i386fbsd-tdep.o): New target.
2154 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2155 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2156
477f40d1
MK
2157 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2158 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2159 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2160 in initialization of TDEP->sc_num_regs.
2161
c6b33596
MK
2162 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2163 (x86_64_init_abi): Initialize regset_from_core_section if
2164 appropriate.
2165
8446b36a
MK
2166 * i386-tdep.c (i386_regset_from_core_section): New function.
2167 (i386_gdbarch_init): Initialize regset_from_core_section if
2168 appropriate.
2169 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2170
c783cbd6
MK
2171 * i386-tdep.h (struct regset): Declare opaque.
2172
6ce6d90f
MK
2173 * gdbarch.sh (regset_from_core_section): New method.
2174 (struct regset): Declare opaque.
2175 * gdbarch.c, gdbarch.h: Regenerated.
2176
b98ed7be
AM
21772003-10-11 Alan Modra <amodra@bigpond.net.au>
2178
2179 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2180 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2181 Correct test for pc within section.
2182
f6214256
MK
21832003-10-11 Mark Kettenis <kettenis@gnu.org>
2184
2185 * gdbarch.sh: Remove trailing whitepsace from comments.
2186
a8f4cde1
RM
21872003-10-08 Roland McGrath <roland@redhat.com>
2188
2189 * gcore.c (make_mem_sec): Function removed, folded into ...
2190 (gcore_create_callback): ... here. To omit a section, clear its
2191 SEC_LOAD bit rather than zeroing its size.
2192 Omit read-only sections only if they correspond to a known disk file.
2193 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2194
74276724
MS
21952003-10-10 Michael Snyder <msnyder@redhat.com>
2196
2197 * d10v-tdep.c: Fix typo in comment.
2198
e754ae69
AC
21992003-10-10 Andrew Cagney <cagney@redhat.com>
2200
2201 * rs6000-tdep.c (e500_store_return_value): Delete function.
2202 (e500_extract_return_value): Delete function.
2203 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2204 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2205 "ppc_sysv_abi_restore_return_value" where applicable.
2206 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2207 (ppc_sysv_abi_extract_return_value): Declare.
2208 (ppc_sysv_abi_broken_store_return_value): Declare.
2209 (ppc_sysv_abi_broken_extract_return_value): Declare.
2210 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2211 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2212 start of file.
2213 (do_ppc_sysv_return_value): New function.
2214 (ppc_sysv_abi_extract_return_value): New function.
2215 (ppc_sysv_abi_store_return_value): New function.
2216 (ppc_sysv_abi_broken_extract_return_value): New function.
2217 (ppc_sysv_abi_broken_store_return_value): New function.
2218 (ppc_sysv_abi_use_struct_convention): Call
2219 do_ppc_sysv_return_value.
2220
8d4ce20a
JB
22212003-10-10 J. Brobecker <brobecker@gnat.com>
2222
2223 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2224 to lookup the main function symbol.
2225
afce3d2a
CV
22262003-10-10 Corinna Vinschen <vinschen@redhat.com>
2227
2228 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2229 types correctly.
2230 (sh_push_dummy_call_fpu): Fix argument passing rules.
2231 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2232 float types.
2233 (sh3e_sh4_store_return_value): Ditto.
2234
7fe958be
EZ
22352003-10-10 Elena Zannoni <ezannoni@redhat.com>
2236
2237 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2238 comment.
2239
3f997a97
CV
22402003-10-10 Corinna Vinschen <vinschen@redhat.com>
2241
2242 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2243 more readable code. Accomodate passing of bitfields.
2244
8be9034a
AC
22452003-10-10 Andrew Cagney <cagney@redhat.com>
2246
2247 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2248 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2249 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2250 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2251 (ppc64_sysv_abi_push_dummy_call): New function.
2252 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2253 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2254 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2255
85a453d5
KI
22562003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2257
2258 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2259 * README: Ditto.
2260 * d10v-tdep.c: Ditto.
2261 * h8300-tdep.c: Ditto.
2262 * remote-e7000.c: Ditto.
2263 * remote-hms.c: Ditto.
2264 * ser-e7kpc.c: Ditto.
2265 * sh-stub.c: Ditto.
2266 * sh-tdep.c: Ditto.
2267 * sh-tdep.h: Ditto.
2268 * sh3-rom.c: Ditto.
2269 * sh64-tdep.c: Ditto.
2270 * top.c: Ditto.
2271 * wince.c: Ditto.
2272 * config/d10v/d10v.mt: Ditto.
2273 * config/sh/embed.mt: Ditto.
2274 * config/sh/linux.mt: Ditto.
2275 * config/sh/tm-linux.h: Ditto.
2276 * config/sh/tm-sh.h: Ditto.
2277 * config/sh/wince.mt: Ditto.
2278
221c12ff
AC
22792003-10-09 Andrew Cagney <cagney@redhat.com>
2280
2281 * ppc-tdep.h (struct type): Declare opaque.
2282 * x86-64-tdep.h (struct regcache): Declare opaque.
2283 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2284 coding style.
2285
ef5200c1
AC
22862003-10-09 Andrew Cagney <cagney@redhat.com>
2287
2288 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2289 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2290 (SOFTWARE_SINGLE_STEP_P): Ditto.
2291 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2292 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2293 (SOFTWARE_SINGLE_STEP_P): Ditto.
2294 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2295 software_single_step to rs6000_software_single_step.
a8f4cde1 2296
9644bbdd
AC
22972003-10-09 Andrew Cagney <cagney@redhat.com>
2298
2299 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2300
db72fa6b
MS
23012003-10-09 Michael Snyder <msnyder@redhat.com>
2302
f3efb16c
MS
2303 * frame.h: Fix typo in comment.
2304 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2305 * d10v-tdep.c: Random whitespace/comment tweaks.
2306
9a5cef92
EZ
23072003-10-09 Elena Zannoni <ezannoni@redhat.com>
2308
2309 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2310 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2311 on stack.
a8f4cde1 2312
9a5cef92
EZ
2313 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2314 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2315 in detail.
a8f4cde1 2316
0f317a0c
DJ
23172003-10-09 Daniel Jacobowitz <drow@mvista.com>
2318
2319 * remote-mips.c (mips_initialize): Remove unneeded call to
2320 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2321
bbab2f46
DJ
23222003-10-09 Daniel Jacobowitz <drow@mvista.com>
2323
2324 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2325 a memory pointer.
2326
550950b8
JJ
23272003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2328
2329 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2330 for any lwp we resume.
2331 (running_callback): Add lwps that have pending status events
2332 against them to be considered running.
2333
15c69bc7
KI
23342003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2335
2336 * m32r-tdep.c : Include "dis-asm.h".
2337 * Makefile.in (m32r-tdep.o): Update dependencies.
2338
51065942
JB
23392003-10-06 J. Brobecker <brobecker@gnat.com>
2340
2341 * completer.h (get_gdb_completer_word_break_characters): Delete.
2342 * completer.c: include language.h.
2343 (gdb_completer_word_break_characters): Delete.
2344 (get_gdb_completer_word_break_characters): Delete.
2345 (location_completer): Use the word break characters of the current
2346 language.
2347 (complete_line): Likewise.
2348 (line_completion_function): Likewise.
2349 (skip_quoted_chars): Likewise.
2350 * Makefile.in (completer.o): Add dependency on language.h.
2351 * top.c (init_main): Set the readline word break characters
2352 to GDB's default word break characters.
2353
6084f43a
JB
23542003-10-06 J. Brobecker <brobecker@gnat.com>
2355
2356 * language.h (language_defn): new field, la_word_break_characters.
2357 * language.c (unknown_language_defn): Set new field to
2358 default_word_break_characters.
2359 (auto_language_defn): Likewise.
2360 (local_language_defn): Likewise.
2361 * ada-lang.c (ada_language_defn): Likewise.
2362 * c-lang.c (c_language_defn): Likewise.
2363 (cplus_language_defn): Likewise.
2364 (asm_language_defn): Likewise.
2365 (minimal_language_defn): Likewise.
2366 * f-lang.c (f_language_defn): Likewise.
2367 * jv-lang.c (java_language_defn): Likewise.
2368 * m2-lang.c (m2_language_defn): Likewise.
2369 * objc-lang.c (objc_language_defn): Likewise.
2370 * p-lang.c (pascal_language_defn): Likewise.
2371 * scm-lang.c (scm_language_defn): Likewise.
2372
944fcfab
AC
23732003-10-06 Andrew Cagney <cagney@redhat.com>
2374
2375 * ppc-sysv-tdep.c: Re-indent.
2376
9f0a5303
JB
23772003-10-06 J. Brobecker <brobecker@gnat.com>
2378
2379 * language.h (default_word_break_characters): Add prototype.
2380 * language.c (default_word_break_characters): New function.
2381
7270b6ed
AS
23822003-10-06 Andreas Schwab <schwab@suse.de>
2383
2384 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2385 with %eax.
2386
a5d61f66
AC
23872003-10-06 Andrew Cagney <cagney@redhat.com>
2388
2389 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2390 "h8500-tdep.c".
2391 (z8k-tdep.o): Delete custom build rule.
2392
28a86f5c
AC
23932003-10-06 Andrew Cagney <cagney@redhat.com>
2394
1bfd8a83
AC
2395 * Makefile.in: Update all dependencies.
2396
17144ef8
AC
2397 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2398 No longer list PA as as obsolete candidate. List m32r as
2399 broken instead of obsolete.
a8f4cde1 2400
a5679ae5
AC
2401 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2402 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2403 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2404 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2405 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2406 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2407 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2408 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2409 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2410 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2411 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2412 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2413 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2414 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2415 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2416 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2417 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2418 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2419 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2420 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2421 * config/z8k/z8k.mt: Ditto.
2422
4a8269c0
AC
2423 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2424 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2425 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2426 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2427 sparclite were removed.
2428 * configure.host, configure.tgt: Remove corresponding tuples.
2429
41989fcd
AC
2430 * breakpoint.c, breakpoint.h: Remove obsolete code.
2431 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2432 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2433 * stabsread.h, xcoffread.c: Ditto.
2434
28a86f5c
AC
2435 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2436 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2437 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2438 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2439
4efdaa0d
DL
24402003-10-06 David Lecomber <dsl@sources.redhat.com>
2441
2442 * f-valprint.c: Reformatting
2443
ae53de43
MK
24442003-10-06 Mark Kettenis <kettenis@gnu.org>
2445
a8bb57e7
MK
2446 * x86-64-tdep.c: Remove duplicate comment.
2447
ae53de43
MK
2448 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2449 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2450 names for return values. This fixes a bug since we looked at %rbx
2451 instead of %rdx.
2452
473f17b0
MK
24532003-10-05 Mark Kettenis <kettenis@gnu.org>
2454
2c261fae
MK
2455 * x86-64-tdep.c: Include "regset.h".
2456
473f17b0
MK
2457 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2458 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2459 sizeof_fpregset.
2460 * i386-tdep.c: Include "regset.h".
2461 (i386_supply_gregset): New function.
2462 (i386_supply_fpregset): New function.
2463 (i386_gdbarch_init): Initialze register set-related members of
2464 TDEP.
2465 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2466 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2467
afd48b75
AC
24682003-10-03 Andrew Cagney <cagney@redhat.com>
2469
2470 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2471 set extract_return_value, store_return_value and
2472 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2473 ppc64_sysv_abi_store_return_value and
2474 ppc64_sysv_abi_use_struct_convention.
2475 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2476 (ppc64_sysv_abi_store_return_value): Declare.
2477 (ppc64_sysv_abi_use_struct_convention): Declare.
2478 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2479 (ppc64_sysv_abi_extract_return_value): New function.
2480 (ppc64_sysv_abi_store_return_value): New function.
2481 (ppc64_sysv_abi_use_struct_convention): New function.
2482 (ppc64_sysv_abi_return_value): New function.
2483
9b540880
AC
24842003-10-03 Andrew Cagney <cagney@redhat.com>
2485
2486 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2487 convert a descriptor to a function when it's in the ".opd"
2488 section.
2489
8748518b
CV
24902003-10-03 Corinna Vinschen <vinschen@redhat.com>
2491
2492 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2493 reg_size to keep GCC silent.
2494
0fd85043
CV
24952003-10-03 Corinna Vinschen <vinschen@redhat.com>
2496
2497 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2498 base for DW_EH_PE_textrel encodings.
2499 (read_encoded_value): Add a DW_EH_PE_textrel case.
2500 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2501 section.
2502
37b517aa
MK
25032003-10-03 Mark Kettenis <kettenis@gnu.org>
2504
2505 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2506
12c266ea
AC
25072003-10-02 Andrew Cagney <cagney@redhat.com>
2508
2509 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2510 REGISTER_RAW_SIZE.
2511 * gdbarch.h, gdbarch.c: Re-generate.
2512 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2513 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2514 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2515 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2516 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2517 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2518 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2519 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2520 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2521 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2522 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2523 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2524 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2525 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2526 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2527 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2528
78ba4af6
JB
25292003-10-02 Jim Blandy <jimb@redhat.com>
2530
2531 * dwarf2read.c (struct die_info): Doc fix.
2532
617daa0e
CV
25332003-10-02 Corinna Vinschen <vinschen@redhat.com>
2534
2535 * sh-tdep.c: Running thru gdb_indent.sh.
2536
e5e33cd9
CV
25372003-10-02 Corinna Vinschen <vinschen@redhat.com>
2538
2539 * sh-tdep.c (sh_justify_value_in_reg): New function.
2540 (sh_stack_allocsize): Ditto.
2541 (flt_argreg_array): New array used for floating point argument
2542 passing.
2543 (sh_init_flt_argreg): New function.
a8f4cde1 2544 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2545 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2546 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2547 Fix argument passing strategy.
2548 (sh_push_dummy_call_nofpu): Ditto.
2549
5fe830e4
AC
25502003-10-01 Andrew Cagney <cagney@redhat.com>
2551
2552 * value.h (register_value_being_returned): Declare. Replace
2553 "value_being_returned".
2554 * infcall.c (call_function_by_hand): Use
2555 register_value_being_returned.
2556 * infcmd.c (print_return_value): Call
2557 "register_value_being_returned", handle struct return locally.
2558 * values.c (register_value_being_returned): New function. Replace
2559 "value_being_returned".
a8f4cde1 2560
5fe830e4 25612003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2562
2563 * linux-proc.c (linux_do_registers): New function.
2564 (linux_make_note_section): Use linux_do_registers in case of
2565 single threaded inferior programs.
2566
64f395bf
AC
25672003-10-01 Andrew Cagney <cagney@redhat.com>
2568
2569 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2570 use STRUCT_ADDR. When not using "struct return convention", pass
2571 "0" to "value_being_returned". Add FIXMEs.
2572 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2573 value_being_returned. Add comments.
2574 * values.c (value_being_returned): Add fixme.
2575 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2576 (hppa_value_returned_from_stack): Add FIXME.
2577
639d11d3
DC
25782003-09-30 David Carlton <carlton@kealia.com>
2579
2580 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2581 'has_children' and 'next' by 'child' and 'sibling'.
2582 (read_comp_unit): Rework algorithm, breaking body into
2583 read_die_and_children and read_die_and_siblings.
2584 (read_die_and_children, read_die_and_siblings): New.
2585 (read_full_die): Add 'has_children' argument; set it instead of
2586 the die's 'has_children' field. Minor formatting cleanup.
2587 (free_die_list): Use die->child and die->sibling instead of
2588 die->next.
2589 (dump_die_list): Ditto.
2590 (sibling_die): Use die->sibling.
2591 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2592 'has_children' and 'next' fields.
a8f4cde1
RM
2593 (process_die, read_file_scope, read_func_scope)
2594 (read_lexical_block_scope, read_structure_scope)
2595 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2596 (read_namespace, read_subroutine_type, dump_die): Ditto.
2597
5bffac25
AC
25982003-09-30 Andrew Cagney <cagney@redhat.com>
2599
2600 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2601 to 224, not 220.
2602
f30992d4
AC
26032003-09-30 Andrew Cagney <cagney@redhat.com>
2604
2605 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2606 REGISTER_VIRTUAL_SIZE.
2607 * gdbarch.h, gdbarch.c: Regenerate.
2608 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2609 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2610 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2611
2e092625
AC
26122003-09-29 Andrew Cagney <cagney@redhat.com>
2613
2614 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2615 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2616 * gdbarch.h, gdbarch.c: Regenerate.
2617 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2618 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2619
2620 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2621 * remote-vxmips.c (vx_read_register): Ditto.
2622 * remote-vx68.c (vx_read_register): Ditto.
2623 * gnu-nat.c (inf_validate_procs): Ditto.
2624
7a5dd6ee
JB
26252003-09-29 J. Brobecker <brobecker@gnat.com>
2626
2627 * infcall.c (call_function_by_hand): Fix build failure
2628 introduced in the previous change to this file.
2629
1fe43d45
AC
26302003-09-29 Andrew Cagney <cagney@redhat.com>
2631
2632 * NEWS: Mention Objective-C.
2633
e28a332c
JG
26342003-09-29 Jerome Guitton <guitton@act-europe.fr>
2635
2636 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2637 test if the register has been saved on the stack.
2638 (arm_scan_prologue_cache): When analysing the instruction
2639 "str lr, [sp, #-4]", save the address where lr has been stored.
2640
9ff63c35
AC
26412003-09-28 Andrew Cagney <cagney@redhat.com>
2642
7f5f525d
AC
2643 * frame.c (frame_read_unsigned_register): Delete function.
2644 * frame.h (frame_read_unsigned_register): Delete declaration.
2645 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2646 get_frame_register_unsigned.
2647 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2648 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2649 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2650
7f5f525d
AC
2651 * frame.h (frame_read_register): Delete declaration.
2652 * frame.c (frame_read_register): Delete function.
2653 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2654 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2655 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2656 * mips-tdep.c (mips_register_to_value): Ditto.
2657 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2658 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2659
2660 * frame.c (frame_read_signed_register): Delete function.
2661 (frame_read_unsigned_register): Update comments.
2662 * frame.h (frame_read_signed_register): Delete declaration.
2663 * h8300-tdep.c (h8300_print_register): Use
2664 get_frame_register_signed.
2665 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2666
9ff63c35
AC
2667 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2668 Rename VALUE_RETURNED_FROM_STACK.
2669 * infcmd.c (print_return_value): Update.
2670 * infcall.c (call_function_by_hand): Update.
2671
41d041d6
MK
26722003-09-28 Mark Kettenis <kettenis@gnu.org>
2673
2674 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2675 regcache argument and reverse the order of the other two
2676 arguments. Remove local regcache variable. Determine
2677 architecture from REGCACHE. Update comments.
2678 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2679 reverse the order of the other two arguments. Remove local
2680 regcache variable. Determine architecture from REGCACHE. Update
2681 comments.
2682 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2683 prototypes. Update comments.
2684 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2685 comment.
2686 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2687 Update.
2688 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2689 * i386-interix-nat.c (supply_fpregset): Update.
2690 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2691 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2692 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2693 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2694 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2695 Update.
2696 * i386obsd-tdep.c (fetch_core_registers): Update.
2697 * i386v4-nat.c (supply_fpregset): Update.
2698 * x86-64-linux-nat.c (supply_fpregset): Update.
2699 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2700
1cb97e17
MK
27012003-09-27 Mark Kettenis <kettenis@gnu.org>
2702
5716833c
MK
2703 * i386-tdep.h: Put opaque declarations in alphabetical
2704 order. Remove spurious whitespace.
2705 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2706 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2707 * i386-tdep.c (MM0_REGNUM): Remove define.
2708 (i386_mmx_regnum_p): Add gdbarch argument.
2709 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2710 Rewrite using new macro definitions for FPU/SSE registers.
2711 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2712 definitions from i387-tdep.h.
2713 (i386_register_name): Update.
2714 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2715 new macro definitions for FPU/SSE registers.
2716 (i386_extract_return_value): Determine whether floating-point
2717 registers are present by examining REGCACHE's architecture.
2718 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2719 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2720 FPU/SSE registers.
2721 (i386_register_type): Update.
2722 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2723 definitions for FPU registers. Use REGCACHE's architecture to
2724 determine the appropriate register numbers.
2725 (i386_pseudo_register_read, i386_pseudo_register_write,
2726 i386_register_reggroup_p): Update.
2727 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2728 TDEP->mm0_regnum.
2729 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2730 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2731 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2732 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2733 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2734 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2735 *' to `void *'.
2736 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2737 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2738 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2739 definitions for FPU/SSE registers.
2740 (FXSAVE_MXCSR_ADDR): New define.
2741 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2742 TDEP->mm0_regnum.
2743 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2744 (I387_ST0_REGNUM): Define.
2745
41d35cb0
MK
2746 * regcache.h (get_regcache_arch): New prototype.
2747 * regcache.c (get_regcache_arch): New function.
2748
54e74f72
MK
2749 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2750 whitespace.
2751
1cb97e17
MK
2752 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2753 Initialize using ARRAY_SIZE.
2754
0968aa8c
AC
27552003-09-27 Andrew Cagney <cagney@redhat.com>
2756
2757 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2758 "init_frame_pc_default".
2759 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2760 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2761 * vax-tdep.c (vax_gdbarch_init): Update.
2762 * v850-tdep.c (v850_gdbarch_init): Update.
2763 * sh64-tdep.c (sh64_gdbarch_init): Update.
2764 * s390-tdep.c (s390_gdbarch_init): Update.
2765 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2766 * mcore-tdep.c (mcore_gdbarch_init): Update.
2767 * h8300-tdep.c (h8300_gdbarch_init): Update.
2768 * cris-tdep.c (cris_gdbarch_init): Update.
2769 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2770
54c84734
MK
27712003-09-26 Mark Kettenis <kettenis@gnu.org>
2772
2773 * regset.h: New file.
2774 * Makefile.in (regset_h): Add.
2775
1b1d3794
AC
27762003-09-25 Andrew Cagney <cagney@redhat.com>
2777
2778 * frame.h (deprecated_frame_saved_regs): Rename
2779 get_frame_saved_regs.
2780 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2781 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2782 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2783 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2784 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2785
e6beb428
AC
27862003-09-25 Andrew Cagney <cagney@redhat.com>
2787
2788 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2789 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2790 and Java.
2791 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2792 arm*-*-* do not use the new frame code.
2793
710122da
DC
27942003-09-25 David Carlton <carlton@kealia.com>
2795
2796 * c-exp.y: Remove 'register' declarations.
2797 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2798
79c2c32d
DC
27992003-09-25 David Carlton <carlton@kealia.com>
2800
2801 * c-exp.y: Include cp-support.h. Add qualified_type.
2802 (yylex): Delete nested type hack; add comments.
2803 * cp-namespace.c (cp_lookup_nested_type): New function.
2804 * cp-support.h: Declare cp_lookup_nested_type.
2805 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2806 instead of value_struct_elt_for_reference.
2807 * valops.c: Include cp-support.h.
2808 (value_aggregate_elt): New function.
2809 (value_namespace_elt): Ditto.
2810 (value_struct_elt_for_reference): Make static.
2811 * value.h: Delete declaration of value_struct_elt_for_reference;
2812 add declaration for value_aggregate_elt.
2813 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2814 (valops.o): Ditto.
2815
898c62f5
DJ
28162003-09-25 Daniel Jacobowitz <drow@mvista.com>
2817
2818 * stack.c: Include "reggroups.h".
2819 (frame_info): Only display registers in all_reggroup.
2820 * Makefile.in (stack.o): Update dependencies.
2821
28cd8767
JG
28222003-09-25 Jerome Guitton <guitton@act-europe.fr>
2823
2824 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2825 "add ip, sp #n" in the prologue.
2826 (arm_scan_prologue): Ditto.
2827
a4ab2b5d
JG
28282003-09-25 Jerome Guitton <guitton@act-europe.fr>
2829
2830 * MAINTAINERS (write after approval): Add myself.
2831
3f244638
AS
28322003-09-25 Andreas Schwab <schwab@suse.de>
2833
2834 * m68k-tdep.c: Include "dwarf2-frame.h".
2835 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2836 * Makefile.in (m68k-tdep.o): Update dependencies.
2837
1c0159e0
CV
28382003-09-25 Corinna Vinschen <vinschen@redhat.com>
2839
2840 * sh-tdep.c (struct frame_extra_info): Remove.
2841 (struct sh_frame_cache): New structure.
2842 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2843 (GET_TARGET_REG): Ditto but target register.
2844 (GET_PUSHED_REG): Remove.
2845 (IS_MOV_ARG_TO_REG): New macro.
2846 (IS_MOV_ARG_TO_IND_R14): New macro.
2847 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2848 (IS_MOVW_PCREL_TO_REG): New macro.
2849 (IS_MOVL_PCREL_TO_REG): New macro.
2850 (IS_SUB_REG_FROM_SP): New macro.
2851 (IS_ARG_MOV): Remove.
2852 (IS_MOV_TO_R14): Remove.
2853 (IS_RESTORE_FP): New macro.
2854 (IS_RTS): New macro.
2855 (IS_LDS): New macro.
2856 (IS_MOV_FP_SP): New macro.
2857 (IS_ADD_REG_TO_FP): New macro.
2858 (IS_ADD_IMM_FP): New macro.
2859 (sh_skip_prologue_hard_way): Remove.
2860 (sh_saved_pc_after_call): Remove.
2861 (sh_frame_chain): Remove.
2862 (sh_find_callers_reg): Remove.
a8f4cde1 2863 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2864 (sh_fp_frame_init_saved_regs): Remove.
2865 (sh_init_extra_frame_info): Remove.
2866 (sh_analyze_prologue): New function.
2867 (sh_skip_prologue): Remove deprecated code. Rely on new function
2868 sh_analyze_prologue when after_prologue fails.
2869 (sh_frame_saved_pc): Remove.
2870 (sh_alloc_frame_cache): New function.
2871 (sh_frame_cache): Ditto.
2872 (sh_frame_prev_register): Ditto.
2873 (sh_frame_this_id): Ditto.
2874 (sh_frame_unwind): New structure defining the heuristic frame
2875 sniffer interface.
2876 (sh_frame_sniffer): New function.
2877 (sh_unwind_sp): Ditto.
2878 (sh_unwind_pc): Ditto.
2879 (sh_unwind_dummy_id): Ditto.
2880 (sh_frame_base_address): Ditto.
2881 (sh_frame_base): New structure defining new frame base code.
2882 (sh_in_function_epilogue_p): New function.
2883 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2884 code and to call all new code instead. Initialize dwarf2 and
2885 heuristic frame sniffer.
2886
5f9769d1
PH
28872003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2888
a8f4cde1
RM
2889 * parser-defs.h (struct exp_descriptor): New definition, containing
2890 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2891 evaluating expressions.
2892 (exp_descriptor_standard): Declare new variable.
2893 (print_subexp): Make global and declare here (from expprint.c).
2894 (dump_subexp): Ditto.
2895 (dump_subexp_body_standard): Declare.
2896 (operator_length_standard): Declare.
2897 (op_name_standard): Declare.
2898 (print_subexp): Declare.
2899 (print_subexp_standard): Declare.
2900
2901 * language.h (struct language_defn): Add la_exp_desc field to hold
2902 pointer to table for language-specific operators.
2903 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2904
2905 * parse.c (operator_length): Move most code to new
5f9769d1 2906 operator_length_standard function. Use language-specific information.
a8f4cde1 2907 (operator_length_standard): New function taking most code from
5f9769d1
PH
2908 operator_length.
2909 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2910
2911 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2912 and OP_EXTENDED_LAST.
a8f4cde1
RM
2913
2914 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2915 Make global; remove static declaration.
2916 Move most code to print_subexp_standard.
a8f4cde1 2917 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2918 print_subexp.
2919 (op_name): Add expression to argument signature.
a8f4cde1 2920 Use langauge-specific op_name.
5f9769d1
PH
2921 Move most code to op_name_standard.
2922 (op_name_standard): New function, containing code formerly in op_name.
2923 (dump_subexp): Use new version of op_name function.
2924 Use language-specific dump_subexp_body, and move most existing code to
2925 dump_subexp_body_standard.
2926 (dump_raw_expression): Use new op_name interface.
2927 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2928 (dump_subexp_body_standard): New function, containing code formerly
2929 in dump_subexp_body.
a8f4cde1 2930
5f9769d1
PH
2931 * language.c (unknown_language): Add default la_exp_desc field and
2932 remove evaluate_exp field.
2933 (auto_language): Ditto.
2934 (local_language): Ditto.
2935 * f-lang.c (f_language_defn): Ditto.
2936 * c-lang.c (c_language_defn): Ditto.
2937 (cplus_language_defn): Ditto.
2938 (asm_language_defn): Ditto.
2939 (minimal_language_defn): Ditto.
2940 * p-lang.c (pascal_language_defn): Ditto.
2941 * m2-lang.c (m2_language_defn): Ditto.
2942 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2943
2944 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2945 Java-specific expression evaluator.
2946 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2947 field.
a8f4cde1 2948 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2949 Scheme-specific expression evaluator.
2950 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2951 field.
2952 * objc-lang.c (print_object_command): Take evaluate_exp from the
2953 la_exp_desc field.
a8f4cde1 2954
5f9769d1 2955 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2956
2957 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2958 la_exp_desc's type.
2959 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2960
24daaebc
PH
29612003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2962
2963 * parser-defs.h (operator_length): Declare.
a8f4cde1 2964
24daaebc
PH
2965 * parse.c (length_of_subexp): Use operator_length to get operator
2966 lengths and arities for operators.
2967 Move most code to new operator_length function.
a8f4cde1 2968 (operator_length): New function absorbing most code from
24daaebc
PH
2969 length_of_subexp.
2970 (prefixify_subexp): Remove large case and use operator_length instead.
2971 (parse_exp_1): Use renamings:
a8f4cde1 2972 dump_prefix_expression => dump_raw_expression and
24daaebc 2973 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2974
24daaebc
PH
2975 * expression.h (dump_prefix_expression): Rename to ...
2976 (dump_raw_expression): New name.
2977 (dump_postfix_expression): Rename to ...
2978 (dump_prefix_expression): New name.
a8f4cde1 2979
24daaebc
PH
2980 * expprint.c (dump_subexp): Make global. Add comment.
2981 Move most existing code to dump_subexp_body.
2982 (dump_subexp_body): New function.
2983 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2984 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2985 work before the expression is prefixified.
2986 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2987 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2988 that's what it does.
a8f4cde1 2989 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2990 prefixified expression.
2991 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2992
8c2957c4
JB
29932003-09-22 Jim Blandy <jimb@redhat.com>
2994
2995 * dwarf2read.c (read_array_type): When building the type for an
2996 array of unspecified length, make sure to choose the upper bound
2997 so that the array's total length comes out to be zero --- that's
2998 how we represent such arrays.
2999
592e3010
MC
30002003-09-22 Michael Chastain <mec@shout.net>
3001
3002 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3003
365c70b1
JJ
30042003-09-22 Jeff Johnston <jjohnstn@redhat.com>
3005
3006 * top.c (quit_force): Fix indirect call to quit_target so
3007 a struct qt_args pointer is passed.
3008
5d6eb653
AC
30092003-09-22 Andrew Cagney <cagney@redhat.com>
3010
3011 * arch-utils.h (init_frame_pc_noop): Delete declaration.
3012 * arch-utils.c (init_frame_pc_noop): Delete function.
3013 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3014 "init_frame_pc".
3015 * mips-tdep.c (mips_gdbarch_init): Ditto.
3016 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3017 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3018 declaration.
3019 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3020 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3021 declaration.
3022 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3023
b222a67f
AG
30242003-09-22 Anthony Green <green@redhat.com>
3025
3026 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3027 declaration.
3028
d5b5ac79
AC
30292003-09-20 Andrew Cagney <cagney@redhat.com>
3030
deafb061
AC
3031 * breakpoint.c: Eliminate ARGSUSED.
3032 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3033 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3034 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3035 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3036 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3037 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3038 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3039 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3040 * wince.c, remote-vx.c: Ditto.
3041
d5b5ac79
AC
3042 * cli/cli-script.c: Remove "register" attributes.
3043 * config/pa/tm-hppa.h: Ditto.
3044 * cli/cli-decode.c: Ditto.
3045 * cli/cli-cmds.c: Ditto.
3046
c6316faa
AC
30472003-09-19 Andrew Cagney <cagney@redhat.com>
3048
3049 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3050 DEPRECATED_NPC_REGNUM.
3051 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3052
f4f99b11
CF
30532003-09-19 Christopher Faylor <cgf@redhat.com>
3054
3055 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3056
1708f284
JB
30572003-09-19 Jim Blandy <jimb@redhat.com>
3058
3059 * macrotab.c (macro_include): Use the correct comparison to find
3060 the appropriate place for this inclusion in the list.
3061
b9fbf434
AC
30622003-09-19 Andrew Cagney <cagney@redhat.com>
3063
3064 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3065 (DEPRECATED_HPUX_TEXT_END): Define.
3066 (deprecated_hpux_text_end): Declare.
3067 (struct target_ops): Declare opaque.
3068 * hppah-nat.c (text_end): Make static.
3069 (deprecated_hpux_text_end): New function.
3070 * exec.c (text_end): Delete global variable.
3071 (NEED_TEXT_START_END): Do not define.
3072 (exec_file_attach): Replace code computing "text_end" code with
3073 call to DEPRECATED_HPUX_TEXT_END.
3074
5b03f266
AC
30752003-09-19 Andrew Cagney <cagney@redhat.com>
3076
3077 * utils.c (align_up, align_down): New functions.
3078 * defs.h (align_up, align_down): Declare.
3079 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3080 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3081 and "align_down".
3082 (round_up, round_down): Delete functions.
3083 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3084 "align_down".
3085 (ROUND_DOWN, ROUND_UP): Delete macros.
3086 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3087 * h8300-tdep.c: Replace "round_up" and "round_down" with
3088 "align_up" and "align_down".
3089 (round_up, round_down): Delete macros.
3090 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3091 "align_down".
3092 (ROUND_UP, ROUND_DOWN): Delete macros.
3093
51db5742
JB
30942003-09-18 J. Brobecker <brobecker@gnat.com>
3095
3096 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3097 hard-coded constant. Use the proper machine name instead.
3098
77949794
AC
30992003-09-17 Andrew Cagney <cagney@redhat.com>
3100
3101 * sparc-tdep.c (legacy_register_name): Delete function.
3102 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3103 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3104 * infcmd.c (gdb_register_name): Delete variable.
3105 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3106 REGISTER_NAME and "tm.h".
3107 * gdbarch.h, gdbarch.c: Regenerate.
3108 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3109 REGISTER_NAMES in comments.
3110 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3111 * m68klinux-nat.c (regmap): Ditto.
3112
b55c33cc
JB
31132003-09-17 Jim Blandy <jimb@redhat.com>
3114
3115 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3116
957e27ac
AC
31172003-09-17 Andrew Cagney <cagney@redhat.com>
3118
3119 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3120 (ppcnbsd_init_abi): Set "use_struct_convention" to
3121 "ppcnbsd_use_struct_convention".
3122
192cb3d4
MK
31232003-09-17 Mark Kettenis <kettenis@gnu.org>
3124
3125 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3126 * gdbarch.h, gdbarch.c: Regenerate.
3127 (stabs_argument_has_addr): New architecture method.
3128 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3129 * arch-utils.c: Include "buildsym.h".
3130 (default_stabs_argument_has_addr): New function.
3131 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3132 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3133
efe59759
AC
31342003-09-17 Andrew Cagney <cagney@redhat.com>
3135
3136 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3137 * gdbarch.h, gdbarch.c: Regenerate.
3138 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3139 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3140 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3141 * sparcnbsd-tdep.c: Update.
a8f4cde1 3142
62700349
AC
31432003-09-17 Andrew Cagney <cagney@redhat.com>
3144
3145 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3146 * gdbarch.h, gdbarch.c: Regenerate.
3147 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3148 * d10v-tdep.c, frame.c: Update.
3149 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3150 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3151 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3152 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3153 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3154 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3155 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3156 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3157 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3158 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3159 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3160 * config/pa/nm-hppah.h: Update.
3161
b9ff3018
AC
31622003-09-16 Andrew Cagney <cagney@redhat.com>
3163
3164 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3165 "use_struct_convention" to "ppc_linux_use_struct_convention".
3166 (ppc_linux_use_struct_convention): New function.
3167 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3168 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3169 "rs6000_use_struct_convention".
3170 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3171 declaration.
3172 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3173 Delete function.
3174
aa1ee363
AC
31752003-09-16 Andrew Cagney <cagney@redhat.com>
3176
3177 * buildsym.c: Remove more occurances of "register".
3178 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3179 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3180 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3181 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3182 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3183 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3184 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3185 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3186
f2ea0907
CV
31872003-09-16 Corinna Vinschen <vinschen@redhat.com>
3188
3189 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3190 numbers to enumeration values.
3191 * sh-tdep.c: Accomodate above change.
3192 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3193 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3194 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3195 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3196 (IS_FPUSH): Rename from IS_FMOV.
3197 (sh_extract_struct_value_address): Remove useless comment.
3198 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3199 instead of own local values.
3200 (sh_dump_tdep): Remove.
3201 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3202 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3203
1c704f11
AC
32042003-09-15 Andrew Cagney <cagney@redhat.com>
3205
3206 * doublest.c (convert_floatformat_to_doublest): No longer need to
3207 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3208
ac79b88b
DJ
32092003-09-15 Daniel Jacobowitz <drow@mvista.com>
3210
3211 * values.c (unpack_double): Call floatformat_is_valid.
3212
1c671366
MK
32132003-09-15 Mark Kettenis <kettenis@gnu.org>
3214
de5227fb
MK
3215 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3216 ps_strings into a long.
3217
1c671366
MK
3218 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3219 _initialize_am64fbsd_nat.
3220
a604369a
KB
32212003-09-15 Kevin Buettner <kevinb@redhat.com>
3222
3223 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3224 associated with DW_AT_ranges attribute is out of bounds.
3225
b3cacbee
DL
32262003-09-15 David Lecomber <dsl@sources.redhat.com>
3227
3228 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3229
d0f37bb2
MC
32302003-09-14 Michael Chastain <mec@shout.net>
3231
3232 * config/m68k/nm-apollo68v.h: Delete.
3233 * config/m68k/xm-apollo68v.h: Delete.
3234
69517000
AC
32352003-09-14 Andrew Cagney <cagney@redhat.com>
3236
3237 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3238 * dcache.c: Update copyrights and descriptions.
3239 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3240
ef8b349d
AC
32412003-09-14 Andrew Cagney <cagney@redhat.com>
3242
3243 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3244 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3245
52f0bd74
AC
32462003-09-14 Andrew Cagney <cagney@redhat.com>
3247
3248 * alpha-nat.c: Remove some occurances of "register".
3249 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3250 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3251 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3252 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3253 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3254 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3255 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3256 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3257 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3258 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3259 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3260 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3261 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3262 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3263 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3264 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3265 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3266 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3267 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3268 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3269 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3270 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3271
4a4b3fed
AC
32722003-09-13 Andrew Cagney <cagney@redhat.com>
3273
3274 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3275 * ppc-tdep.h (struct regcache): Declare opaque.
3276 * objfiles.h (struct objfile_data): Declare opaque.
3277 * cp-support.h (struct objfile): Declare opaque.
3278 * linux-nat.h (target_waitstatus): Declare opaque.
3279
2110b94f
MK
32802003-09-14 Mark Kettenis <kettenis@gnu.org>
3281
1c671366
MK
3282 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3283 (stabs_argument_has_addr): New architecture method.
3284 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3285 * arch-utils.c: Include "buildsym.h".
3286 (default_stabs_argument_has_addr): New function.
3287 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3288 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3289
2110b94f
MK
3290 * cris-tdep.c (cris_gdbarch_init): Set
3291 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3292 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3293 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3294 * mips-tdep.c (mips_gdbarch_init): Likewise.
3295 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3296 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3297
48436ce6
AC
32982003-09-13 Andrew Cagney <cagney@redhat.com>
3299
3300 * values.c (using_struct_return): Delete "function" and "funcaddr"
3301 parameters.
3302 * value.h (using_struct_return): Update declaration.
3303 * infcmd.c (finish_command_continuation): Update.
3304 (finish_command): Update.
3305 * infcall.c (call_function_by_hand): Update.
3306 * eval.c (evaluate_subexp_standard): Update.
3307
403d9909
CF
33082003-09-13 Christopher Faylor <cgf@redhat.com>
3309
3310 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3311 SSE registers since gdb will not operate correctly without this.
3312 Restore include file ordering munged in previous change.
3313 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3314
ebf7d56b
MK
33152003-09-13 Mark Kettenis <kettenis@gnu.org>
3316
8e823e25
MK
3317 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3318 REG_STRUCT_HAS_ADDR.
3319 * gdbarch.c, gdbarch.h: Updated.
3320 * infcall.c (call_function_by_hand): Update.
3321 * stabsread.c (define_symbol): Updated.
a8f4cde1 3322
ebf7d56b
MK
3323 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3324
d3f13f72
CF
33252003-09-12 Christopher Faylor <cgf@redhat.com>
3326
3327 * win32-nat.c: Reorganize so that defines used by target headers are
3328 actually defined by the system headers.
3329 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3330 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3331
14f75137
JB
33322003-09-12 Jim Blandy <jimb@redhat.com>
3333
d646061f
JB
3334 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3335 the file has no .data, .bss, or .rodata sections. Instead wait
3336 until we see a variable alleged to live in one of those sections.
3337
2a13f9bc
JB
3338 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3339 .bss section, presume that any variables we find live in the
3340 .rodata section.
3341
4f49b26b
JB
3342 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3343 offsets for global and static variables.
3344
14f75137
JB
3345 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3346 symbol types are, by definition, in the .data section, so it is
3347 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3348 If there is no .data section, there should be no N_DATA or N_DATA
3349 | N_EXT symbols.
3350
212c460c
MK
33512003-09-12 Mark Kettenis <kettenis@gnu.org>
3352
3353 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3354 (amd64fbsd_sigcontext_addr): Rewrite.
3355 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3356 with correct values.
3357 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3358 (amd64fbsd_init_abi): Fix typo.
3359
68856ea3
AC
33602003-09-12 Andrew Cagney <cagney@redhat.com>
3361
3362 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3363 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3364
627b3ba2
AC
33652003-09-12 Andrew Cagney <cagney@redhat.com>
3366
3367 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3368 "entry_file_highpc". Update comments.
3369 * defs.h (deprecated_inside_entry_file): Rename
3370 "inside_entry_file".
3371 * blockframe.c (deprecated_inside_entry_file): Rename
3372 "inside_entry_file".
3373 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3374 * vax-tdep.c (vax_frame_chain): Update.
3375 * sh64-tdep.c (sh64_frame_chain): Update.
3376 * sh-tdep.c (sh_frame_chain): Update.
3377 * rs6000-tdep.c (rs6000_frame_chain): Update.
3378 * ns32k-tdep.c (ns32k_frame_chain): Update.
3379 * mips-tdep.c (mips_frame_chain): Update.
3380 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3381 * m32r-tdep.c (m32r_frame_this_id): Update.
3382 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3383 * frv-tdep.c (frv_frame_this_id): Update.
3384 * d10v-tdep.c (d10v_frame_this_id): Update.
3385 * cris-tdep.c (cris_frame_chain): Update.
3386 * blockframe.c (legacy_frame_chain_valid): Update.
3387 * avr-tdep.c (avr_frame_this_id): Update.
3388 * arm-tdep.c (arm_prologue_this_id): Update.
3389 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3390 * objfiles.c (objfile_relocate): Update.
3391 * mipsread.c (mipscoff_symfile_read): Update.
3392 (mipscoff_symfile_read): Update.
3393 * mdebugread.c (parse_partial_symbols): Update.
3394 * dwarfread.c (read_file_scope): Update.
3395 * dwarf2read.c (read_file_scope): Update.
3396 * dbxread.c (read_dbx_symtab): Update.
3397 (read_dbx_symtab): Update.
3398 * coffread.c (complete_symtab): Update.
3399
b0abbc58
JJ
34002003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3401
3402 * top.c (quit_target): New static helper function.
3403 (quit_force): Moved code to quit_target(). Call quit_target()
3404 via catch_errors() to catch errors during quit.
3405
a1632d59
DC
34062003-09-11 David Carlton <carlton@kealia.com>
3407
3408 * buildsym.c (finish_block): Use allocate_block to allocate the
3409 block.
3410 * mdebugread.c (new_block): Add FIXME.
3411
5c4e30ca
DC
34122003-09-11 David Carlton <carlton@kealia.com>
3413
3414 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3415 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3416 (recursive_dump_type): Ditto.
3417 * printcmd.c (print_formatted): Ditto.
3418 * typeprint.c (print_type_scalar): Ditto.
3419 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3420 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3421 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3422 maint_cplus_cmd_list.
3423 * cp-support.c: Make maint_cplus_cmd_list extern.
3424 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3425 command.h.
3426 (lookup_symbol_file): Look in possible namespace blocks when
3427 appropriate.
3428 (initialize_namespace_symtab): New.
3429 (get_possible_namespace_block, free_namespace_block)
3430 (check_possible_namespace_symbols)
3431 (check_possible_namespace_symbols_loop)
3432 (check_one_possible_namespace_symbol)
3433 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3434 (_initialize_cp_namespace): Ditto.
3435 * block.h: Declare allocate_block.
3436 * block.c (allocate_block): New.
3437 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3438 allocate_block.
3439 * symfile.h: Update declaration of add_psymbol_to_list.
3440 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3441 question.
3442 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3443 scan_partial_symbols_call.
3444 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3445 helper functions.
3446 (add_partial_symbol): If necessary, scan mangled names for names
3447 of namespaces.
3448 (add_partial_namespace): Add NAMESPACE argument; generate partial
3449 symbols associated to namespaces.
3450 (add_partial_enumeration): Add NAMESPACE argument.
3451 (new_symbol): Allow namespace syms.
3452 (read_namespace): Generate namespace syms.
3453 * objfiles.h: Add opaque declaration of struct symtab.
3454 (struct objfile): Add cp_namespace_symtab member.
3455 * objfiles.c (allocate_objfile): Set
3456 objfile->cp_namespace_symtab.
3457 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3458 dictionary_h, command_h.
3459
33a7c2fc
AC
34602003-09-11 Andrew Cagney <cagney@redhat.com>
3461
3462 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3463 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3464 near the function's end.
3465 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3466 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3467 regcache_raw_write_signed to set SP_REGNUM.
3468
63cd24fe
EZ
34692003-09-11 Elena Zannoni <ezannoni@redhat.com>
3470
3471 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3472 orig_addrs is set up properly.
3473
f27dd7fd
AC
34742003-09-11 Andrew Cagney <cagney@redhat.com>
3475
3476 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3477 * gdbarch.h, gdbarch.c: Re-generate.
3478 * infcall.c (call_function_by_hand): Update.
3479 * hppa-tdep.c (hppa_push_arguments): Update.
3480 * ada-lang.c (place_on_stack): Update.
3481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3482 * sparc-tdep.c (sparc_gdbarch_init): Update.
3483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3484 * hppa-tdep.c (hppa_gdbarch_init): Update.
3485 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3486 stack_align.
3487
f630a401
DJ
34882003-09-11 Daniel Jacobowitz <drow@mvista.com>
3489
3490 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3491 register do need a frame.
3492
0ddabb4c
AC
34932003-09-11 Andrew Cagney <cagney@redhat.com>
3494
3495 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3496 buildable since GDB 5.0.
3497 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3498 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3499 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3500 * irix4-nat.c: Delete file.
3501 * config/mips/irix4.mh: Delete file.
3502 * config/mips/irix3.mh: Delete file.
3503 * config/mips/irix3.mt: Delete file.
3504 * config/mips/tm-irix3.h: Delete file.
3505 * config/mips/nm-irix3.h: Delete file.
3506 * config/mips/xm-irix3.h: Delete file.
3507 * config/mips/nm-irix4.h: Delete file.
3508 * config/mips/xm-irix4.h: Delete file.
3509 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3510
fde2cceb
JB
35112003-09-10 J. Brobecker <brobecker@gnat.com>
3512
3513 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3514 * Makefile.in (hppa-tdep.o): Update dependencies.
3515
66f667f5
JW
35162003-09-10 James E Wilson <wilson@specifixinc.com>
3517
ef5fd69f
JW
3518 * MAINTAINERS: Change my e-mail address. Move to paper trail
3519 section.
66f667f5 3520
53e8aaea
KB
35212003-09-10 Kevin Buettner <kevinb@redhat.com>
3522
3523 * MAINTAINERS (frv): New ISA entry.
3524
dcc6aaff
KB
35252003-09-10 Kevin Buettner <kevinb@redhat.com>
3526
3527 * frv-tdep.c (dis-asm.h): Include.
3528 * Makefile.in (frv-tdep.o): Update dependencies.
3529
932644f0
JJ
35302003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3531
3532 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3533 Fix typo for high range of floating registers.
3534
91c24f0a
DC
35352003-09-09 David Carlton <carlton@kealia.com>
3536
3537 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3538 highpc initialization here out of scan_partial_symbols.
3539 (scan_partial_symbols): Restructure into a recursive version,
3540 calling add_partial_namespace and add_partial_enumeration when
3541 appropriate.
3542 (add_partial_namespace): New.
3543 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3544
c9263853
AC
35452003-09-09 Andrew Cagney <cagney@redhat.com>
3546
e56a0ecc
AC
3547 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3548 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3549 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3551
794a477a
AC
3552 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3553 (rs6000_push_dummy_call): Set the "TOC" register.
3554
c9263853
AC
3555 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3556 methods "max_register_raw_size", "max_register_virtual_size" or
3557 "register_virtual_size".
3558
afa7d0b2
ILT
35592003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3560
3561 * MAINTAINERS: Update my e-mail address.
3562
7a41266b
AC
35632003-09-09 Andrew Cagney <cagney@redhat.com>
3564
3565 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3566 (rs6000_push_dummy_call): Store the struct return address.
3567 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3568
77b2b6d4
AC
35692003-09-09 Andrew Cagney <cagney@redhat.com>
3570
3571 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3572 "ppc_sysv_abi_push_arguments".
3573 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3574 "ppc_sysv_abi_push_arguments".
3575 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3576 instead of "push_arguments".
3577 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3578
e8a7b686
AC
35792003-09-09 Andrew Cagney <cagney@redhat.com>
3580
3581 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3582 instead of CALL_DUMMY_ADDRESS.
3583
f86f5ca3
PH
35842003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3585
3586 * p-lang.c: Eliminate "register".
3587 * c-lang.c: Ditto.
3588 * expprint.c: Ditto.
3589 * f-lang.c: Ditto.
3590 * jv-lang.c: Ditto.
3591 * language.c: Ditto.
3592 * m2-lang.c: Ditto.
3593 * parse.c: Ditto.
3594 * scm-lang.c: Ditto.
3595 * objc-lang.c: Ditto.
3596
83ee270e
NC
35972003-09-09 Nick Clifton <nickc@redhat.com>
3598
3599 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3600
a89aa300
AC
36012003-09-04 Andrew Cagney <cagney@redhat.com>
3602
3603 * avr-tdep.c: Include "dis-asm.h".
3604 * cris-tdep.c: Include "dis-asm.h".
3605 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3606 instead of corresponding typedef.
3607 * h8300-tdep.c: Include "dis-asm.h".
3608 * ia64-tdep.c: Include "dis-asm.h".
3609 * i386-tdep.c: Include "dis-asm.h".
3610 (i386_print_insn): Use "struct disassemble_info" instead of
3611 corresponding typedef.
3612 * m68k-tdep.c: Include "dis-asm.h".
3613 * mcore-tdep.c: Include "dis-asm.h".
3614 * mips-tdep.c: Include "dis-asm.h".
3615 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3616 instead of corresponding typedef.
3617 * ns32k-tdep.c: Include "dis-asm.h".
3618 * s390-tdep.c: Include "dis-asm.h".
3619 * sparc-tdep.c: Include "dis-asm.h".
3620 * vax-tdep.c: Include "dis-asm.h".
3621 * v850-tdep.c: Include "dis-asm.h".
3622 * mn10300-tdep.c: Include "dis-asm.h".
3623 * rs6000-tdep.c: Include "dis-asm.h".
3624 * xstormy16-tdep.c: Include "dis-asm.h".
3625 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3626 print_insn_xstormy16.
3627 * Makefile.in (v850-tdep.o): Update dependencies.
3628 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3629 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3630 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3631 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3632 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3633 (gdbarch_h): Remove $(dis_asm_h).
3634 * disasm.c: Include "dis-asm.h".
3635 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3636 corresponding typedef.
3637 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3638 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3639 * gdbarch.sh: Do not include "dis-asm.h".
3640 (struct disassemble_info): Declare opaque.
3641 (TARGET_PRINT_INSN): Update declaration.
3642 * gdbarch.h, gdbarch.c: Re-generate.
3643
88a82a65
AC
36442003-09-08 Andrew Cagney <cagney@redhat.com>
3645
3646 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3647 CALL_DUMMY_ADDRESS, change to a predicate.
3648 * gdbarch.h, gdbarch.c: Re-generate.
3649 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3650 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3651 * infcall.c (call_function_by_hand): Ditto.
3652 * sparc-tdep.c (sparc_push_return_address): Ditto.
3653 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3654 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3655 CALL_DUMMY_ADDRESS with entry_point_address.
3656 * v850-tdep.c (v850_push_return_address): Ditto.
3657 * s390-tdep.c (s390_push_return_address): Ditto.
3658 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3659 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3660 * mcore-tdep.c (mcore_push_return_address): Ditto.
3661 * cris-tdep.c (cris_push_return_address): Ditto.
3662 * arm-tdep.c (arm_push_return_address): Ditto.
3663
3e2c4033
AC
36642003-09-08 Andrew Cagney <cagney@redhat.com>
3665
3666 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3667 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3668 and REG_UNMODIFIED to REG_SAME_VALUE.
3669 (execute_cfa_program): Update.
3670 (dwarf2_frame_cache): Update. Initialize table to
3671 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3672 location.
3673 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3674
39efb398
AC
36752003-09-08 Andrew Cagney <cagney@redhat.com>
3676
3677 * gnu-nat.c: Remove "inline" function attribute.
3678 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3679
f5cb5aca
KB
36802003-09-08 Kevin Buettner <kevinb@redhat.com>
3681
3682 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3683 target.
3684
1cb761c7
KB
36852003-09-08 Kevin Buettner <kevinb@redhat.com>
3686
3687 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3688 (frame_extra_info): Rename this struct to frv_unwind_cache.
3689 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3690 Add fields ``prev_sp'' and ``base''.
3691 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3692 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3693 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3694 Delete.
3695 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3696 Revise all callers. Fill in the unwind cache argument and make
3697 other adjustments to account for new frame mechanisms.
3698 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3699 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3700 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3701 (frv_frame_unwind, frv_frame_base): New structs.
3702 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3703 additional arguments expected by this method and adjust function
3704 body accordingly.
3705 (frv_gdbarch_init): Remove calls to the following functions:
3706 set_gdbarch_deprecated_init_frame_pc(),
3707 set_gdbarch_deprecated_saved_pc_after_call(),
3708 set_gdbarch_deprecated_frame_chain(),
3709 set_gdbarch_deprecated_frame_saved_pc(),
3710 set_gdbarch_deprecated_frame_init_saved_regs(),
3711 set_gdbarch_deprecated_push_arguments(),
3712 set_gdbarch_deprecated_push_return_address(),
3713 set_gdbarch_deprecated_pop_frame(),
3714 set_gdbarch_deprecated_call_dummy_words(),
3715 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3716 set_gdbarch_deprecated_init_extra_frame_info(),
3717 set_gdbarch_deprecated_dummy_write_sp(), and
3718 set_gdbarch_deprecated_pc_in_call_dummy().
3719 Add calls to the following functions:
3720 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3721 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3722 frame_base_set_default().
3723 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3724
68f6cf99
MK
37252003-09-09 Mark Kettenis <kettenis@gnu.org>
3726
3727 * dwarf2-frame.c (read_encoded_value): Add support for
3728 DW_EH_PE_aligned encoding.
3729
73b65bb0
DJ
37302003-09-08 Daniel Jacobowitz <drow@mvista.com>
3731
3732 * infrun.c (normal_stop): Don't print a message if the inferior
3733 has exited.
3734
7c8a5605
JB
37352003-09-08 Jim Blandy <jimb@redhat.com>
3736
3737 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3738 * dbxread.c: #include "gdb_assert.h".
3739 (read_dbx_symtab): If the objfile has no .data section, use the
3740 section index for the .bss section instead.
3741
7dd88986
DJ
37422003-09-08 Daniel Jacobowitz <drow@mvista.com>
3743
3744 * frame.c (deprecated_safe_get_selected_frame): New function.
3745 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3746 * findvar.c (read_var_value): Call it.
3747
55ff77ac
CV
37482003-09-08 Corinna Vinschen <vinschen@redhat.com>
3749
3750 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3751 (sh64-tdep.o): Add dependencies.
3752 * configure.tgt: Add FIXME to sh-*-linux*.
3753 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3754 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3755 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3756 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3757 * sh64-tdep.c: New file, containing all sh64 related code from
3758 sh-tdep.c.
3759 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3760 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3761 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3762 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3763 * config/sh/wince.mt (TDEPFILES): Ditto.
3764
bfb39158
DJ
37652003-09-07 Daniel Jacobowitz <drow@mvista.com>
3766
3767 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3768 (stop_wait_callback): Handle !lp->signalled also.
3769 (lin_lwp_has_pending, flush_callback): New functions.
3770 (lin_lwp_wait): Call flush_callback.
3771 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3772 (linux_proc_pending_signals): New function.
3773 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3774
9407de8e
DJ
37752003-09-07 Daniel Jacobowitz <drow@mvista.com>
3776
3777 From Nick Kelsey <nickk@ubicom.com>:
3778 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3779 when the stop PC is at the beginning of a function also.
3780
2ef47cd0
DJ
37812003-09-06 Daniel Jacobowitz <drow@mvista.com>
3782
3783 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3784 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3785
6f4492c8
MK
37862003-09-06 Mark Kettenis <kettenis@gnu.org>
3787
3788 * sol-thread.c: Include "gdb_string.h".
3789
d3420b2f
MK
37902003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3791
3792 * gcore.c: Reorder include files in alphabetical order. Include
3793 "gdb_assert.h". Various coding style fixes.
3794 (derive_stack_segment, derive_heap_segment): Replace check for
3795 non-null BOTTOM and TOP with gdb_assert.
3796 (derive_heap_segment): Replace check for successful creation of
3797 ZERO with gdb_assert.
3798 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3799
5220ea4c
AC
38002003-09-04 Andrew Cagney <cagney@redhat.com>
3801
3802 * thread-db.c (verbose_dlsym): New function.
3803 (thread_db_load): Use verbose_dlsym
3804 (thread_db_new_objfile): Print that libthread_db was loaded, and
3805 that thread debugging was enabled.
3806
6e8c2c06
AC
38072003-09-04 Andrew Cagney <cagney@redhat.com>
3808
3809 * configure.tgt: Add "mips64*-*-*" target. Delete
3810 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3811 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3812 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3813 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3814 mips*-sony-*, and mips64*-*-elf* targets.
3815 * config/mips/embedl.mt: Delete file.
3816 * config/mips/embedl64.mt: Delete file.
3817 * config/mips/mips.mt: Delete file.
3818 * config/mips/mips64.mt: Delete file.
3819 * config/mips/tm-embed.h: Delete file.
3820 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3821 * config/mips/embed64.mt: Delete out-of-date comment.
3822
3a3bc038
AC
38232003-09-04 Andrew Cagney <cagney@redhat.com>
3824
3825 * hppa-tdep.c (hppa_gdbarch_init): Set
3826 "have_nonsteppable_watchpoint".
3827 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3828 * mips-tdep.c (mips_dump_tdep): Do not print
3829 HAVE_NONSTEPPABLE_WATCHPOINT.
3830 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3831 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3832 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3833 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3834
a957e642
CV
38352003-09-04 Corinna Vinschen <vinschen@redhat.com>
3836
3837 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3838 unused code. Add comment.
3839
a6fbcf2f
CV
38402003-09-04 Corinna Vinschen <vinschen@redhat.com>
3841
3842 * breakpoint.c (watchpoint_check): Check for pc being in an
3843 epilogue if watchpoint frame couldn't be found.
3844
c14a44d5
AC
38452003-09-04 Andrew Cagney <cagney@redhat.com>
3846
3847 * Makefile.in: Re-generate all dependencies.
3848
f6c40618
AC
38492003-09-03 Andrew Cagney <cagney@redhat.com>
3850
3851 * arch-utils.h (legacy_print_insn): Delete declaration.
3852 * arch-utils.c (legacy_print_insn): Delete function.
3853 * disasm.c (deprecated_tm_print_insn_info): Delete.
3854 (_initialize_disasm): Delete function, contained code initializing
3855 deprecated_tm_print_insn_info.
3856 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3857 (deprecated_tm_print_insn_info): Delete.
3858 (TARGET_PRINT_INSN): Do not provide a default.
3859 * gdbarch.h, gdbarch.c: Re-generate.
3860
242e8be5
AC
38612003-09-03 Andrew Cagney <cagney@redhat.com>
3862
3863 * disasm.c (fprintf_disasm): New function.
3864 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3865 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3866 reverts 2003-08-14 change.
3867 (_initialize_disasm): Call "init_disassemble_info", instead of
3868 INIT_DISASSEMBLE_INFO_NO_ARCH.
3869
3ffc3dda
MS
38702003-09-03 Michael Snyder <msnyder@redhat.com>
3871
3872 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3873
52d16ba8
AC
38742003-09-03 Andrew Cagney <cagney@redhat.com>
3875
3876 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3877 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3878 * symfile.c (syms_from_objfile): Update.
3879 (reread_symbols): `Update
3880 * exec.c (exec_file_attach): Update.
3881 (exec_file_attach): Update.
3882 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3883 2003-08-29 change.
3884 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3885
eb5492fa
DJ
38862003-09-03 Daniel Jacobowitz <drow@mvista.com>
3887
3888 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3889 trad-frame.h.
3890 (arm_get_cache): Delete macro.
3891 (struct arm_prologue_cache): Update comments. Make saved_regs into
3892 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3893 to prev_sp.
3894 (thumb_scan_prologue): Update for cache changes. Don't call
3895 DEPRECATED_PC_IN_CALL_DUMMY.
3896 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3897 argument and use it in desperation search for our prologue. Do not
3898 search past the specified PC.
3899 (arm_make_prologue_cache): Simplify.
3900
3901 (arm_prologue_this_id, arm_prologue_prev_register)
3902 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3903 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3904 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3905 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3906 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3907
3908 (arm_frame_chain_valid, arm_find_callers_reg)
3909 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3910 (arm_pop_frame): Delete obsolete methods.
3911 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3912
3913 (arm_gdbarch_init): Update for new frame methods. Register prologue
3914 and sigtramp unwinders. Set the default frame base method.
3915
3916 * Makefile.in (arm-tdep.o): Update dependencies.
3917 * varobj.c (find_frame_addr_in_frame_chain): Call
3918 get_frame_base_address.
3919 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3920
24de872b
DJ
39212003-09-03 Daniel Jacobowitz <drow@mvista.com>
3922
3923 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3924 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3925 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3926 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3927 Take NEXT_FRAME and CACHE arguments. Call
3928 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3929 Set unwound_pc in CACHE instead of modifying the frame argument.
3930 Don't bother checking the frame type when looking for sigtramp
3931 frames.
3932 (arm_make_prologue_cache, arm_frame_chain)
3933 (arm_init_extra_frame_info): New functions.
3934
9b8d791a
DJ
39352003-09-03 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * arm-tdep.c (arm_get_cache): Define.
3938 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3939 unwound_sp, unwound_pc, and saved_regs.
3940 (thumb_scan_prologue): Take a cache instead of the frame.
3941 (arm_scan_prologue): Likewise.
3942 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3943 instead of a temporary frame.
3944 (arm_init_extra_frame_info): Allocate and use a cache.
3945 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3946
7ee3275f
AC
39472003-09-03 Andrew Cagney <cagney@redhat.com>
3948
3949 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3950 * config/mips/wince.mt (TM_CLIBS): Ditto.
3951 * config/sh/wince.mt (TM_CLIBS): Ditto.
3952 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3953 * config/sparc/sp64.mt (CC): Delete.
3954
57b29be7
AC
39552003-09-03 Andrew Cagney <cagney@redhat.com>
3956
3957 * defs.h: Do not include "arch-utils.h".
3958 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3959 GDB_MULTI_ARCH_PURE.
3960 * configure.in (GDB_MULTI_ARCH): Do not define.
3961 * configure, config.in: Regenerate.
3962 * configure.tgt: Do not set variable "gdb_multi_arch".
3963 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3964 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3965 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3966 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3967 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3968 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3969 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3970 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3971 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3972 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3973 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3974 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3975 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3976 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3977 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3978 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3979 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3980 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3981
12e035e2
MC
39822003-08-30 Michael Chastain <mec@shout.net>
3983
3984 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3985 * config/m68k/nm-hp300hpux.h: Delete.
3986 * config/m68k/tm-hp300hpux.h: Delete.
3987 * config/m68k/xm-hp300hpux.h: Delete.
3988 * config/m68k/xm-hp300bsd.h: Delete.
3989 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3990 tm-hp300hpux.h, xm-hp300hpux.h.
3991 * somsolib.c: Remove comment about hp300 shared libraries.
3992
bda34dc2
MK
39932003-08-31 Mark Kettenis <kettenis@gnu.org>
3994
5bca7895
MK
3995 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3996 Only define PTRACE_GET_THREAD_AREA is not already defined.
3997 Various style fixes in code and comments and some additional
3998 spelling fixes in comments. Move after functions dealing with
3999 debug registers.
4000 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4001 Fix coding-style.
4002
bda34dc2
MK
4003 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4004 frame_unwind_register_unsigned instead of
4005 frame_unwind_unsigned_register.
4006
c890192f
MK
40072003-08-30 Mark Kettenis <kettenis@gnu.org>
4008
4009 * configure.in: Search for gethostbyname in libnsl.
4010 * configure: Regenerated.
4011
60fac5b8
MK
40122003-08-29 Mark Kettenis <kettenis@gnu.org>
4013
e294916c
MK
4014 * configure.in: Remove redundant AC_MSG_RESULT in check for
4015 uintptr_t in stdint.h.
4016 * configure: Regenerated.
4017
c40d267a
MK
4018 * amd64-nat.h (struct regcache): Add opaque declaration.
4019
60fac5b8
MK
4020 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4021 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4022 Change "register array" to "register cache" in comments.
4023 (x86_64_linux_gregset64_reg_offset): New variable.
4024 (GETREGS_SUPPLIES): Remove macro.
4025 (supply_gregset): Call amd64_supply_native_gregset instead of
4026 x86_64_linux_supply_gregset.
4027 (fill_gregset): Rename `regno' to `regnum'. Call
4028 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4029 (store_regs): Rename `regno' to `regnum'.
4030 (store_fpregs): Rename `regno' to `regnum'.
4031 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
4032 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4033 Reorganize function a bit.
4034 (store_inferior_registers): Rename `regno' to `regnum'. Use
4035 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4036 Reorganize function a bit.
4037 (_initialize_x86_64_linux_nat): New function.
4038 * config/i386/x86-64linux.mh.
4039
546143b6
AC
40402003-08-29 Andrew Cagney <cagney@redhat.com>
4041
4042 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4043 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4044 (target_remove_watchpoint): Delete macro.
4045 (target_insert_watchpoint): Delete macro.
4046 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4047 (remote_mips_stopped_by_watchpoint): Delete declaration.
4048 (remote_mips_remove_watchpoint): Delete declaration.
4049 (remote_mips_set_watchpoint): Delete declaration.
4050 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4051 * remote-mips.c (_initialize_remote_mips): Set
4052 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4053 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4054 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4055 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4056 (mips_stopped_by_watchpoint): Rename
4057 remote_mips_stopped_by_watchpoint.
4058 (mips_can_hardware_watchpoint): Rename
4059 remote_mips_can_use_hardware_watchpoint, update function
4060 signature.
4061
7bace51b
MK
40622003-08-29 Mark Kettenis <kettenis@gnu.org>
4063
b0f5c6f2
MK
4064 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4065 USER_DS. We haven't given them a register number yet.
4066
2a6d284d
MK
4067 * amd64-nat.h: New file.
4068 * amd64-nat.c: New file.
4069 * amd64fbsd-nat.c: Include "amd64-nat.h".
4070 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4071 (amd64fbsd32_r_reg_offset): New variable.
4072 (supply_gregset): Simply call amd64_supply_native_gregset.
4073 (fill_gregset): Rename `regno' to `regnum'. Simply call
4074 amd64_collect_native_gregset.
4075 (fill_fpregset): Rename `regno' to `regnum'.
4076 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4077 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4078 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4079 `fpregset_t'. Call amd64_supply_native_gregset instead of
4080 supply_gregset. Call x86_64_supply_fxsave instead of
4081 supply_fpregset.
4082 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4083 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4084 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4085 `fpregset_t'. Call amd64_collect_native_gregset instead of
4086 fill_gregset. Call x86_64_collect_fxsave instead of
4087 fill_fpregset.
4088 (_initialize_am64fbsd_nat): Initialize
4089 amd64_native_gregset32_reg_offset and
4090 amd64_native_gregset64_reg_offset.
4091 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4092
a16d75cc
MK
4093 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4094 null pointer. Fix typo in comment.
4095
7bace51b
MK
4096 * regcache.c (supply_register): Reimplement to call
4097 regcache_raw_supply.
4098 (regcache_collect): Reimplement by calling regcache_raw_collect.
4099
9a661b68
MK
41002003-08-28 Mark Kettenis <kettenis@gnu.org>
4101
4102 * regcache.c (register_buffer): Consitify first argument.
4103 (regcache_raw_supply, regcache_raw_collect): New
4104 functions.
4105
e94cc8fa
DJ
41062003-08-28 Daniel Jacobowitz <drow@mvista.com>
4107
4108 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4109 by Nathan J. Williams.
4110
c64bd0ce
DJ
41112003-08-28 Daniel Jacobowitz <drow@mvista.com>
4112
4113 * lin-lwp.c (wait_lwp): New function, copied from
4114 stop_wait_callback. Clean up.
4115 (stop_wait_callback): Use wait_lwp.
4116
e5ab0dce
AC
41172003-08-28 Andrew Cagney <cagney@redhat.com>
4118
4119 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4120 flavour and disassembler options.
4121 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4122 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4123 deprecated_tm_print_insn_info.
a8f4cde1 4124
a788de9b
AC
41252003-08-27 Andrew Cagney <cagney@redhat.com>
4126
4127 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4128 Use target_read_memory.
4129 (s390_get_frame_info): Update. Do not reference
4130 deprecated_tm_print_insn_info.
4131 (s390_check_function_end, s390_is_sigreturn): Ditto.
4132
36482093
AC
41332003-08-27 Andrew Cagney <cagney@redhat.com>
4134
4135 * Makefile.in (cris-tdep.o): Update dependencies.
4136 * cris-tdep.c: Include "gdb_assert.h".
4137 (cris_gdbarch_init): Set print_insn.
4138 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4139 (cris_delayed_get_disassembler): Simplify, directly call the
4140 disassembler returned by cris_get_disassembler.
4141 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4142 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4143 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4144 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4145 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4146 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4147 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4148 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4149 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4150 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4151 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4152 (gdb_print_insn_sparc): Delete function.
4153 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4154 deprecated_tm_print_insn_info.
4155 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4156 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4157 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4159 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4160 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4161 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4162 (s390_gdbarch_init): Set print_insn.
4163
0285512f
AC
41642003-08-27 Andrew Cagney <cagney@redhat.com>
4165
4166 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4167 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4168 * infcall.c (call_function_by_hand): Convert the entry point
4169 address into a code address.
4170
cdcd5552
AC
41712003-08-27 Andrew Cagney <cagney@redhat.com>
4172
4173 * dsrec.c: Include "gdb_string.h".
4174 * Makefile.in (dsrec.o): Update dependencies.
4175
e85cddad
MC
41762003-08-27 Michael Chastain <mec@shout.net>
4177
4178 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4179
8bbfbb23
AC
41802003-08-27 Andrew Cagney <cagney@redhat.com>
4181
4182 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4183 (alpha_osf1_init_abi): Do not set call_dummy_address.
4184
ba058b66
DC
41852003-08-27 David Carlton <carlton@kealia.com>
4186
4187 From Randolph Chung <tausq@debian.org>:
4188 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4189 compiles with -Wformat-nonliteral -Werror.
4190
87f84c9d
JB
41912003-08-26 Jim Blandy <jimb@redhat.com>
4192
4193 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4194 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4195 bfd_lookup_symbol, since we only want symbols in code sections.
4196 (look_for_base): Pass zero as the SECT_FLAGS argument to
4197 bfd_lookup_symbol, since we're not concerned about which section
4198 the symbol is in.
4199
102d615a
JJ
42002003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4201
4202 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4203 we are frameless or the return address register is already known.
102d615a 4204
cc7ad3ea
AC
42052003-08-26 Andrew Cagney <cagney@redhat.com>
4206
4207 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4208 in size. Add comments.
4209
af8b88dd
JJ
42102003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4211
4212 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4213 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4214
e0a4f5a1
JM
42152003-08-26 Jason Merrill <jason@redhat.com>
4216
4217 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4218 case out of #ifdef MIPS block.
4219
4ae9ee8e
DJ
42202003-08-25 Daniel Jacobowitz <drow@mvista.com>
4221
4222 PR java/1322
4223 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4224 available before calling SECT_OFF_TEXT.
3c164570 4225 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4226
004d836a
JJ
42272003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4228
a8f4cde1 4229 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4230 bof, and nat0-nat127 as pseudo-registers.
4231 (ia64_frame_cache): New struct used to cache frame info.
4232 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4233 register grouping so registers without names are still saved and
004d836a 4234 restored.
a8f4cde1 4235 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4236 pseudo values.
4237 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4238 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4239 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4240 ia64_frame_cache.
4241 (examine_prologue): Change prototype to add next_frame pointer.
4242 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4243 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4244 alloc insn and if equal, mark as not frameless. At end of routine,
4245 if not frameless, calculate registers for the previous frame and store
4246 in the cache, if a cache is provided.
4247 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4248 and pass 0 for next_frame.
4249 (ia64_store_return_value): Change to use convert_typed_floating()
4250 instead of calling ia64_convert_to_raw().
4251 (ia64_extract_return_value): Change to use convert_typed_floating()
4252 instead of calling ia64_convert_to_virtual().
4253 (ia64_frame_cache): New routine to support new frame model.
4254 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4255 (ia64_frame_sniffer): Ditto.
4256 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4257 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4258 (ia64_sigtramp_frame_prev_register): Ditto.
4259 (ia64_sigtramp_frame_sniffer): Ditto.
4260 (ia64_frame_base_address): Ditto.
4261 (ia64_extract_struct_value_address): Change to issue error message.
4262 (ia64_frame_align): New routine to align sp.
4263 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4264 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4265 ia64_push_dummy_call().
4266 (ia64_push_return_address): Ditto.
4267 (ia64_unwind_dummy_id): New function.
4268 (ia64_unwind_pc): Ditto.
4269 (ia64_convert_register_p): Ditto.
4270 (ia64_register_to_value): Ditto.
4271 (ia64_value_to_register): Ditto.
4272 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4273 (ia64_register_byte, ia64_register_raw_size): Ditto.
4274 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4275 (ia64_saved_pc_after_call): Ditto.
4276 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4277 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4278 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4279 (ia64_register_convert_to_raw): Ditto.
4280 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4281 (ia64_init_extra_frame_info): Ditto.
4282 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4283 (ia64_gdbarch_init): Remove registering of deprecated functions that
4284 are no longer used. Add registration of new gdbarch functions.
4285 Remove registering deprecated_write_sp. Replace
4286 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4287 Delete set_gdbarch_deprecated_register_convertible(),
4288 set_gdbarch_deprecated_register_convert_to_virtual(), and
4289 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4290 set_gdbarch_deprecated_register_size(),
4291 set_gdbarch_deprecated_register_bytes(),
4292 set_gdbarch_pcregnum(),
4293 set_gdbarch_deprecated_register_byte(),
4294 set_gdbarch_deprecated_register_raw_size(),
4295 set_gdbarch_deprecated_max_register_raw_size(),
4296 set_gdbarch_deprecated_register_virtual_size(),
4297 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4298 Replace set_gdbarch_deprecated_extract_return_value() with
4299 set_gdbarch_extract_return_value(). Remove calls to:
4300 set_gdbarch_deprecated_saved_pc_after_call();
4301 set_gdbarch_deprecated_frame_chain(),
4302 set_gdbarch_deprecated_frame_saved_pc(),
4303 set_gdbarch_deprecated_frame_init_saved_regs(),
4304 set_gdbarch_deprecated_get_saved_register(),
4305 set_gdbarch_deprecated_call_dummy_words(),
4306 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4307 set_gdbarch_deprecated_init_extra_frame_info(),
4308 set_gdbarch_deprecated_frame_args_address(),
4309 set_gdbarch_deprecated_frame_locals_address(),
4310 and set_gdbarch_deprecated_dummy_write_sp().
4311 Add set_gdbarch_convert_register_p(),
4312 set_gdbarch_register_to_value(),
4313 set_gdbarch_value_to_register(),
4314 set_gdbarch_push_dummy_call(),
4315 set_gdbarch_frame_align(),
4316 set_gdbarch_unwind_dummy_id(),
4317 set_gdbarch_unwind_pc(),
4318 frame_unwind_append_sniffer(),
4319 frame_unwind_append_sniffer(),
4320 and frame_base_set_default().
4321
aede7613
CD
43222003-08-25 Chris Demetriou <cgd@broadcom.com>
4323
4324 * configure.tgt: Document need for special "mipsisa64" handling.
4325 (mipsisa64*-*-linux64): Handle as target linux64.
4326 (mipsisa64*-*-*): Handle as target embed64.
4327
43c3a82e
MC
43282003-08-18 Michael Chastain <mec@shout.net>
4329
4330 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4331 objfile bug.
4332
6564f77d
MK
43332003-08-24 Mark Kettenis <kettenis@gnu.org>
4334
2de139ba
MK
4335 * i387-tdep.h: Update copyright date.
4336 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4337
6564f77d
MK
4338 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4339 CFLAGS games to reflect reality.
4340
42cf1509
AC
43412003-08-24 Andrew Cagney <cagney@redhat.com>
4342
4343 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4344 GDB_MULTI_ARCH is always non-zero.
4345 * osabi.c (_initialize_gdb_osabi): Ditto.
4346 (gdbarch_init_osabi): Ditto.
4347 * sparc-tdep.c: Ditto for #if code.
4348
0485f6ad
MK
43492003-08-23 Mark Kettenis <kettenis@gnu.org>
4350
4351 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4352 Update comments.
4353 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4354 comments.
4355 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4356 x86_64_supply_fxsave.
4357 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4358 x86_64_supply_fxsave.
4359 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4360 x86_64_supply_fxsave.
4361
c7716133
AJ
43622003-08-23 Andreas Jaeger <aj@suse.de>
4363
4364 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4365 i387_supply_fxsave.
4366
ed504bdf
MK
43672003-08-23 Mark Kettenis <kettenis@gnu.org>
4368
4369 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4370 i387_supply_register.
4371 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4372 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4373 i387_supply_fsave.
4374 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4375 i387_supply_fxsave.
4376 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4377 i387_supply_fsave.
4378 * i386bsd-nat.c (supply_fpregset): Adjust call to
4379 i387_supply_fsave.
4380 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4381 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4382 supply_fpregset.
4383 (store_inferior_registers): Remove extraneous whitespace. Call
4384 i387_fill_fsave instead of fill_fpregset.
4385 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4386 (supply_fpregset): Likewise.
4387 * i386v4-nat.c (supply_fpregset): Adjust call to
4388 i387_supply_fsave.
4389 * i386-interix-nat.c (supply_fpregset): Adjust call to
4390 i387_supply_fsave.
4391 * i386-linux-nat.c (supply_fpregset): Adjust call to
4392 i387_supply_fsave.
4393 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4394 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4395 i387supply_fsave and i387_supply_fxsave.
4396 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4397 Incorporate code from `i387_supply_register.
4398 (i387_supply_register): Remove.
4399 (i387_supply_fxsave): Add `regnum' argument.
4400 Update comments.
4401 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4402 prototype.
4403 (i387_supply_register): remove prototype.
4404 Update comments.
a8f4cde1 4405
4be5d520
MC
44062003-08-22 Michael Chastain <mec@shout.net>
4407
4408 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4409 Add lines for files in gdb/testsuite/gdb.cp/* that are
4410 still not 8.3 unique.
4411
7ed85d26
DJ
44122003-08-22 Daniel Jacobowitz <drow@mvista.com>
4413
4414 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4415 TYPE_VPTR_FIELDNO is valid.
4416
eb0d3137
MK
44172003-08-19 Mark Kettenis <kettenis@gnu.org>
4418
4419 * utils.c (set_width_command): Remove prototypes.
4420 (set_screen_size): New prototype.
4421 (init_page_info): Simplify by fetching the screen size from
4422 Readline. Call set_screen_size.
4423 (set_screen_size): New function.
4424 (set_width): Add missing whitespace in comment.
4425 (set_width_command): Call set_screen_size.
4426 (set_height_command): New function.
4427 (initialize_utils): Fix formatting. Make "set height" command
4428 call set_height_command. Remove redundant code that turns off
4429 pagination if output isn't a terminal. Remove redundant call to
4430 set_width_command.
a8f4cde1 4431
7e6d0ac8
MK
44322003-08-22 Mark Kettenis <kettenis@gnu.org>
4433
3567a8ea
MK
4434 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4435 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4436 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4437 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4438 `case' keyword.
4439 (sparc64_register_info): Give the reister with number
4440 SPARC64_STATE_REGNUM a name.
4441 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4442 %asi and %ccr.
4443 (sparc64_push_dummy_call): Take BIAS into account when checking
4444 stcak alignment.
4445 (sparc_software_single_step): Remove assertions that check whether
4446 NPC and NNPC were zero.
4447 (sparc_supply_rwindow): Make public. Merge functionality with
4448 sparc64_supply_rwindow.
4449 (sparc_fill_rwindow): Make public. Merge functionality with
4450 sparc64_fill_rwindow.
4451 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4452 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4453 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4454 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4455 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4456
7e6d0ac8
MK
4457 * reggroups.c: Add whitespace after declarations of local
4458 variables in functions.
4459
72e5f484
MC
44602003-08-21 Michael Chastain <mec@shout.net>
4461
4462 * gdbtypes.h: Change array bound type from an int to enum.
4463
435ac228
AC
44642003-08-21 Andrew Cagney <cagney@redhat.com>
4465
4466 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4467 * config/sparc/tm-sparc.h: Ditto.
4468 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4469 unconditionally.
4470 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4471
0d0e1a63
MK
44722003-07-13 Mark Kettenis <kettenis@gnu.org>
4473
4474 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4475 (register_objfile_data, set_objfile_data, objfile_data): New
4476 prototypes.
4477 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4478 prototypes.
4479 (allocate_objfile): Call objfile_alloc_data.
4480 (free_objfile): Call objfile_free_data.
4481 (struct objfile_data): New.
4482 (struct objfile_data_registration): New.
4483 (struct objfile_data_registry): New.
4484 (objfile_data_registry): New variable.
4485 (register_objfile_data): New function.
4486 (objfile_alloc_data, objfile_free_data): New functions.
4487 (set_objfile_data, objfile_data): New functions.
4488 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4489 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4490 (_initialize_dwarf2_frame): New function and prototype.
4491
d90cf509
AC
44922003-08-21 Andrew Cagney <cagney@redhat.com>
4493
4494 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4495 a specific architecture.
4496 * arch-utils.h (set_architecture_from_arch_mach): Delete
4497 declaration.
4498 (target_architecture_hook): Delete declaration.
4499 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4500 (default_float_format): Assume GDB_MULTI_ARCH.
4501 (default_double_format): Assume GDB_MULTI_ARCH.
4502 (set_endian_from_file): Delete function.
4503 (arch_ok): Delete function.
4504 (set_arch): Delete function.
4505 (set_architecture_from_arch_mach): Delete function.
4506 (set_architecture_from_file): Delete function.
4507 (set_architecture): Assume GDB_MULTI_ARCH.
4508 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4509
8b39fe56
MK
45102003-08-21 Mark Kettenis <kettenis@gnu.org>
4511
4512 Rewrite FreeBSD/sparc64 native configuration.
4513 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4514 * sparc64fbsd-nat.c: New file.
4515 * sparc64fbsd-tdep.c: New file.
4516 * sparc64-tdep.c sparc64-tdep.h: New files.
4517 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4518 sparc64fbsd-tdep.o): New dependencies.
4519 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4520 and sparc64fbsd-tdep.c.
4521 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4522 * config/sparc/fbsd.mh: Remove copyright notice.
4523 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4524 sparcbsd-nat.o.
4525 * config/sparc/fbsd.mt: Remove copyright notice.
4526 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4527 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4528 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4529 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4530 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4531 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4532 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4533 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4534 "sparc/tm-sp64.h".
4535 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4536 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4537
a7f19c79
MC
45382003-08-21 Michael Chastain <mec@shout.net>
4539
4540 * symtab.h: Add doco on the space critical structures and
4541 some measurements of space usage.
4542
da08ea5b
MS
45432003-08-21 Michael Snyder <msnyder@redhat.com>
4544
4545 * tracepoint.c (trace_dump_command): Trace break address
4546 is subject to DECR_PC_AFTER_BREAK.
4547 (set_traceframe_context): Make "trace_line" an int.
4548 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4549
6df2bf50
MS
45502003-08-20 Michael Snyder <msnyder@redhat.com>
4551
4552 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4553 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4554 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4555 argument passing.
a8f4cde1 4556 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4557 functions, replace sh_push_dummy_call.
4558 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4559
0955bbf0
MC
45602003-08-20 Michael Chastain <mec@shout.net>
4561
4562 * gdbtypes.h (struct main_type): Rearrange to save space.
4563
260a4188
MS
45642003-08-20 Michael Snyder <msnyder@redhat.com>
4565
4566 * trad-frame.c: Comment typo fix.
4567
8baa6f92
KB
45682003-08-20 Michael Snyder <msnyder@redhat.com>
4569 Kevin Buettner <kevinb@redhat.com>
4570
4571 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4572 (frv_frame_init_saved_regs): Add declaration.
4573 (frame_extra_info): Add new field ``saved_regs''.
4574 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4575 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4576 Update frame related code.
4577 (frv_extract_struct_value_address): Adjust formatting.
4578 * Makefile.in (frv-tdep.o): Update dependencies.
4579 * config/frv/tm-frv.h (target_insert_watchpoint)
4580 (target_remove_watchpoint, target_insert_hw_breakpoint)
4581 (target_remove_hw_breakpoint): Delete these macros.
4582 (remote_insert_watchpoint, remote_remove_watchpoint)
4583 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4584 these declarations.
4585
87193939
MC
45862003-08-20 Michael Chastain <mec@shout.net>
4587
4588 * defs.h (ENUM_BITFIELD): New macro.
4589 * symtab.h (ENUM_BITFIELD): Use it.
4590 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4591
062103ba
SA
45922003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4593
4594 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4595
8b148df9
AC
45962003-08-18 Andrew Cagney <cagney@redhat.com>
4597
4598 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4599 * gdbarch.h, gdbarch.c: Re-generate.
4600 * infcall.c (call_function_by_hand): Adjust the SP by
4601 frame_red_zone_size before allocating any stack space.
4602 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4603 * x86-64-tdep.c (x86_64_frame_align): New function.
4604 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4605
4606 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4607 Remove code adjusting SP so that it skips over the Red Zone.
4608
954a4db8
MK
46092003-08-18 Mark Kettenis <kettenis@gnu.org>
4610
4611 * NEWS (New native configurations): Mention FreeBSD/amd64.
4612
1a241548
AC
46132003-08-18 Andrew Cagney <cagney@redhat.com>
4614
4615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4616 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4617 "m68k_frame_p".
4618 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4619
f82b2acd
MK
46202003-08-18 Mark Kettenis <kettenis@gnu.org>
4621
4622 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4623
4056d258
ML
46242003-08-18 Michal Ludvig <mludvig@suse.cz>
4625
4626 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4627 Define.
4628 * i386-linux-nat.c: Include "linux-nat.h".
4629 (child_post_startup_inferior): New function.
a8f4cde1 4630
99ab4326
MK
46312003-08-18 Mark Kettenis <kettenis@gnu.org>
4632
4633 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4634 at the start of a frameless function. This probably fixes PR
4635 backtrace/1338.
4636
c8d5f0d6
MC
46372003-08-17 Michael Chastain <mec@shout.net>
4638
4639 * symfile.c (find_sym_fns): Remove special case for apollo target.
4640
9016a515
DJ
46412003-08-17 Daniel Jacobowitz <drow@mvista.com>
4642
4643 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4644 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4645 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4646 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4647 (linux_supports_tracevforkdone): New function.
4648 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4649 TRACEVFORKDONE.
4650 (child_follow_fork): Handle vfork.
4651 (linux_handle_extended_wait): Likewise. Also handle exec.
4652 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4653 * NEWS: Mention fork tracing.
4654
c538c11c
DJ
46552003-08-17 Daniel Jacobowitz <drow@mvista.com>
4656
4657 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4658
4de4c07c
DJ
46592003-08-17 Daniel Jacobowitz <drow@mvista.com>
4660
4661 * Makefile.in (i386-linux-nat.o): Update dependencies.
4662 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4663 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4664 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4665 * i386-linux-nat.c: Include "linux-nat.h".
4666 (child_post_startup_inferior): New function.
4667 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4668 * infptrace.c (kill_inferior): Wrap in #ifdef.
4669 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4670 attaching to each LWP.
4671 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4672 (init_lin_lwp_ops): Fill in some more operations.
4673 * linux-nat.h (linux_enable_event_reporting)
4674 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4675 prototypes.
4676 * linux-nat.c (linux_enable_event_reporting): New function.
4677 (child_post_attach, linux_child_post_startup_inferior)
4678 (child_post_startup_inferior, child_follow_fork)
4679 (linux_handle_extended_wait, kill_inferior): New functions.
4680
7996bcec
AC
46812003-08-16 Andrew Cagney <cagney@redhat.com>
4682
4683 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4684 * gdbarch.h, gdbarch.c: Re-generate.
4685
3d48a7a0
MK
46862003-08-16 Mark Kettenis <kettenis@gnu.org>
4687
4688 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4689
7989c619
AC
46902003-08-16 Andrew Cagney <cagney@redhat.com>
4691
4692 * NEWS: Mention that "set prompt-escape-char" was deleted.
4693 * top.c (get_prompt_1): Delete function.
4694 (gdb_prompt_escape):
4695 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4696 prompt-escape-char" command.
4697 (MAX_PROMPT_SIZE): Delete macro.
4698 (get_prompt): Simplify, do not call get_prompt_1.
4699
07978cd8
AC
47002003-08-16 Andrew Cagney <cagney@redhat.com>
4701
4702 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4703 -Werror. -Wformat-nonliteral problems.
4704
3ff7cf9e
JB
47052003-08-15 J. Brobecker <brobecker@gnat.com>
4706
4707 Further multiarching work mostly for hppa64-*-hpux11:
4708 * hppa-tdep.h: New file.
4709 * hppa-tdep.c: #include hppa-tdep.c.
4710 (hppa32_num_regs): Renamed from hppa_num_regs.
4711 (hppa64_num_regs): New constant.
4712 (hppa64_call_dummy_breakpoint_offset): New constant.
4713 (hppa32_call_dummy_length): New constant.
4714 (hppa64_call_dummy_length): New constant.
4715 (hppa32_stack_align): Make name 32bit explicit.
4716 (hppa32_register_virtual_type): Likewise.
4717 (hppa32_extract_return_value): Likewise.
4718 (hppa32_use_struct_convention): Likewise.
4719 (hppa32_store_return_value): Likewise.
4720 (hppa64_register_virtual_type): New function.
4721 (hppa64_extract_return_value): New function.
4722 (hppa64_use_struct_convention): New function.
4723 (hppa64_store_return_value): New function.
4724 (hppa_frame_locals_address): Remove declaration, function does
4725 not exist anymore.
4726 (hppa_register_byte): Add support for PA64 ABI.
4727 (hppa_gdbarch_init): Add support for PA64 ABI.
4728 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4729 Make name 32bit explicit.
4730 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4731 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4732 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4733 (hppa64_hpux_frame_base_before_sigtramp): New function.
4734 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4735 * config/pa/tm-hppa64.h: Remove macros that are no longer
4736 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4737 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4738 * config/pa/tm-hppah.h: Update function calls in macros
4739 following the function renaming in hppa-hpux-tdep.c.
4740 * Makefile.in (hppa_tdep_h): New variable.
4741 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4742
5d05ca6d
MS
47432003-08-14 Michael Snyder <msnyder@redhat.com>
4744
4745 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4746
37ba2569
JB
47472003-08-13 J. Brobecker <brobecker@gnat.com>
4748
4749 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4750 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4751 routine.
4752
aed7f26a
MS
47532003-08-13 Michael Snyder <msnyder@redhat.com>
4754
4755 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4756 (frv_saved_pc_after_call): Use deprecated ftype.
4757 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4758 (frv_remote_translate_xfer_address): Remove.
4759 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4760
752d4ac1
JB
47612003-08-13 J. Brobecker <brobecker@gnat.com>
4762
4763 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4764 initialization after the common gdbarch initialization, not before.
4765
1426ac1d
JB
47662003-08-13 J. Brobecker <brobecker@gnat.com>
4767
4768 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4769 (ADDR_BITS_REMOVE): Remove, redundant.
4770
b6fbdd1d
JB
47712003-08-13 J. Brobecker <brobecker@gnat.com>
4772
4773 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4774 gdbarch method to clear the 2 low bits of text addresses.
4775
44160db3
AC
47762003-08-12 Andrew Cagney <cagney@redhat.com>
4777
4778 * Makefile.in (dsrec.o): Update dependencies.
4779 * dsrec.c: Include "gdb_assert.h".
4780 (make_srec): Use snprintf instead of sprintf, use a literal format
4781 string.
4782
bcf7d3ca
AC
47832003-08-12 Andrew Cagney <cagney@redhat.com>
4784
4785 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4786 FRAME_OBSTACK_ZALLOC.
4787
49ed40de
KB
47882003-08-12 Kevin Buettner <kevinb@redhat.com>
4789
4790 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4791 SSE registers.
4792
b246147c
MK
47932003-08-10 Mark Kettenis <kettenis@gnu.org>
4794
4795 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4796 amd64fbsd_sc_reg_offset): Add extern declarations.
4797 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4798 declarations.
4799
d95fdc0d
BE
48002003-08-11 Ben Elliston <bje@wasabisystems.com>
4801
4802 * MAINTAINERS (write after approval): Update my mail address.
4803
cf6a0e73
AC
48042003-08-10 Andrew Cagney <cagney@redhat.com>
4805
4806 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4807
f837910f
MK
48082003-08-10 Mark Kettenis <kettenis@gnu.org>
4809
e2dbbd2d
MK
4810 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4811 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4812 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4813 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4814 i386bsd_sc_reg_offset): Add extern declarations.
4815 * i386obsd-nat.c: Include "i386-tdep.h"
4816 (_initialize_i386obsd_nat): Remove extern declarations.
4817 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4818 declarations.
4819 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4820 declarations.
4821
f837910f
MK
4822 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4823 instead of frame_read_register.
4824 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4825 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4826 SP_REGNUM.
4827 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4828 instead of frame_unwind_unsigned_register. Use
4829 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4830 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4831 instead of read_register. Use builtin_type_void_data_ptr instead
4832 of builtin_type_void_func_ptr when extracting the address of the
4833 jmp_buf.
4834 (i386_extract_return_value, i386_store_return_value,
4835 i386_pseudo_register_read, i386_pseudo_register_write): Use
4836 register_size instead REGISTER_RAW_SIZE.
4837
edcf254d
AC
48382003-08-10 Andrew Cagney <cagney@redhat.com>
4839
4840 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4841 sprintf. Make "name" constant.
4842
26604a34
MK
48432003-08-10 Mark Kettenis <kettenis@gnu.org>
4844
192285c6
MK
4845 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4846 instead of frame_read_register.
f837910f
MK
4847 (i387_print_float_info): Use get_frame_register and
4848 get_frame_register_unsigned instead of frame_register_read.
192285c6 4849
f0925262
MK
4850 * i386fbsd-nat.c: Include "i386-tdep.h".
4851 (child_resume): Make `eflags' an ULONGEST. Use
4852 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4853 instead of register_read and register_write.
4854
a144416f
MK
4855 * i386bsd-nat.c (fetch_inferior_registers,
4856 store_inferior_registers): Don't use && at the end of a line.
4857 (_initialize_i386bsd_nat): Fix typo.
4858
fec74868
MK
4859 * frame.c (_initialize_frame): Add missing backslash.
4860
87232496
MK
4861 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4862 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4863 and supply_register instead of manipulating the register buffer
4864 directly.
4865
c9b9de0b
MK
4866 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4867 * config/i386/nm-i386sol2.h
4868 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4869
26604a34
MK
4870 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4871 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4872 instructions that GCC likes to mingle into the prologue. Fixes
4873 gdb/1253 and gdb/1255.
4874
25d29d70
AC
48752003-08-09 Andrew Cagney <cagney@redhat.com>
4876
4877 Fix GDB PR cli/926.
4878 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4879 * command.h (add_setshow_uinteger_cmd): Declare.
4880 * frame.c (set_backtrace_cmd): New function.
4881 (show_backtrace_cmd): New function.
4882 * frame.c (_initialize_frame): Replace "set/show
4883 backtrace-below-main" with "set/show backtrace past-main". Add
4884 command "set/show backtrace limit".
4885 (backtrace_past_main): Rename "backtrace_below_main".
4886 (backtrace_limit): New variable.
4887 (get_prev_frame): Update. Check the backtrace_limit.
4888
9ebf4acf
AC
48892003-08-09 Andrew Cagney <cagney@redhat.com>
4890
4891 * defs.h (xstrprintf): Declare.
4892 * utils.c (xstrprintf): New function.
4893 * breakpoint.c (insert_breakpoints): Replace sprintf and
4894 non-literal format strings, with xstrprintf and cleanups.
4895 (delete_breakpoint,breakpoint_re_set): Ditto.
4896 (commands_command, insert_breakpoints): Ditto.
4897 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4898 (break_at_finish_command_1): Ditto.
4899
3771659b
AC
49002003-08-09 Andrew Cagney <cagney@redhat.com>
4901
4902 * MAINTAINERS (language support): List Adam Fedor as Objective C
4903 maintainer.
4904
b4263afa
JB
49052003-08-08 J. Brobecker <brobecker@gnat.com>
4906
4907 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4908 are now multiarched.
4909
d84defb1
JB
49102003-08-08 J. Brobecker <brobecker@gnat.com>
4911
4912 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4913 longer necessary now that hppa64 is partially multiarch'ed.
4914
f786f615
AC
49152003-08-08 Andrew Cagney <cagney@redhat.com>
4916
4917 * interps.c (interp_set): Check for a NULL "old_interp".
4918
c938e9b0
L
49192003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4920
4921 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4922 (install-only): Support DESTDIR.
4923 (uninstall): Likewise.
4924 (install-gdbtk): Likewise.
4925
9a146a11
EZ
49262003-08-08 Elena Zannoni <ezannoni@redhat.com>
4927
4928 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4929 contains something meaningful at all times.
4930
4931Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4932
62599e99 4933 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4934
56296155
BC
4935Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4936
62599e99 4937 * MAINTAINERS (write after approval): Added self.
56296155 4938
9710e734
AC
49392003-08-07 Andrew Cagney <cagney@redhat.com>
4940
4941 * inferior.h (AT_SYMBOL): Define.
4942 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4943 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4944 * mips-tdep.c (mips_call_dummy_address): Delete function.
4945 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4946 set call_dummy_address.
4947
98b3ab73
AC
49482003-08-07 Andrew Cagney <cagney@redhat.com>
4949
4950 * language.c (op_error): Delete function.
4951 (binop_type_check): Delete function.
4952 * language.h (type_op_error, range_op_error): Delete macros.
4953 (op_error): Delete declaration.
4954
2fcf52f0
AC
49552003-08-07 Andrew Cagney <cagney@redhat.com>
4956
4957 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4958
abd4220e 49592003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4960
abd4220e 4961 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4962 (x86_64_push_arguments): Skip the red zone.
abd4220e 4963
9dd5f34f
AC
49642003-08-05 Andrew Cagney <cagney@redhat.com>
4965
4966 * reggroups.c (reggroup_next): Check for the final entry.
4967
e5e78edc
AC
49682003-08-04 Andrew Cagney <cagney@redhat.com>
4969
ab4e3d93
AC
4970 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4971 * cli/cli-script.c (define_command): Call query directly, instead
4972 of passing it a buffer.
4973 * ocd.c (ocd_error): Pass error a constant format string.
4974 * remote-mips.c (mips_error): Use fputs_filtered.
4975
1062ca82
AC
4976 * solib-svr4.c (_initialize_svr4_solib): Update
4977 register_gdbarch_data call.
4978 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4979
fcc1c85c
AC
4980 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4981 (register_gdbarch_data): Delete "free" parameter. Update
4982 comments.
4983 * gdbarch.h, gdbarch.c: Re-generate.
4984 * reggroups.c (_initialize_reggroup): Update.
4985 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4986 * frame-base.c (_initialize_frame_base): Update.
4987 * frame-unwind.c (_initialize_frame_unwind): Update.
4988 * user-regs.c (_initialize_user_regs): Update.
4989 * remote.c (_initialize_remote): Update.
4990 * regcache.c (_initialize_regcache): Update.
4991
116f06ea
AC
4992 * regcache.c (xfree_regcache_descr): Delete function.
4993 (_initialize_regcache): Update call to register_gdbarch_data.
4994 (init_regcache_descr, init_legacy_regcache_descr): Use
4995 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4996
e5e78edc
AC
4997 * remote.c (free_remote_state): Delete function.
4998 (_initialize_remote): Update register_gdbarch_data.
4999 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5000 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5001
6c7d17ba
AC
50022003-08-04 Andrew Cagney <cagney@redhat.com>
5003
5004 * reggroups.c (struct reggroup_el): Define.
5005 (struct reggroups): Delete field "nr_group". Replace array
5006 "group" with a "first" to "last" linked list.
5007 (reggroups_init): Update. Allocate using gdbarch's obstack.
5008 (reggroups_free): Delete function.
5009 (add_group): Update. Add "el" parameter.
5010 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5011 (default_groups): Update.
5012 (reggroup_next): Replace reggroups.
5013 (reggroups_dump): Update.
5014 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5015 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5016 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5017
89b7795b
DJ
50182003-08-04 Daniel Jacobowitz <drow@mvista.com>
5019
5020 * Makefile.in (tui-interp.o): Update dependencies.
5021
306d9ac5
DC
50222003-08-04 David Carlton <carlton@kealia.com>
5023
5024 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5025 to internal_error call.
5026 * source.c (forward_search_command): Add "%s" format argument.
5027 (reverse_search_command): Ditto.
5028 * top.c (quit_confirm): Ditto.
5029 * cli/cli-setshow.c (do_setshow_command): Ditto.
5030 * cp-valprint.c (cp_print_class_method): Replace
5031 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5032 (cp_print_class_member): Ditto.
5033 * event-top.c (command_line_handler): Ditto.
5034 * linux-proc.c (linux_info_proc_cmd): Ditto.
5035 * p-typeprint.c (pascal_type_print_base): Ditto.
5036 * p-valprint.c (pascal_object_print_class_method): Ditto.
5037 (pascal_object_print_class_member): Ditto.
5038 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5039 * remote.c (remote_cisco_section_offsets): Ditto.
5040 * top.c (command_line_input): Ditto.
5041 * utils.c (vwarning,error_stream,quit): Ditto.
5042 * valprint.c (print_floating,print_binary_chars)
5043 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5044
57bfe177
AC
50452003-08-04 Andrew Cagney <cagney@redhat.com>
5046
5047 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5048
e546b999
AC
50492003-08-02 Andrew Cagney <cagney@redhat.com>
5050
5051 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5052 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5053 amd64fbsd-nat.c.
5054
91092ee5
AC
50552003-08-02 Andrew Cagney <cagney@redhat.com>
5056
5057 * Makefile.in: Update all dependencies and definitions.
5058
889f28e2
AF
50592003-08-02 Adam Fedor <fedor@gnu.org>
5060
5061 * linespec.c (is_objc_method_format): New function
5062 (decode_line_1, locate_first_half): Use it.
5063 Fixes PR objc/1298
5064
880bc914
AC
50652003-08-01 Andrew Cagney <cagney@redhat.com>
5066
5067 * NEWS: Mention that m32r is multi-arch.
5068 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5069 * configure.tgt: Recognize m32r-*-*.
5070 * config/m32r/tm-m32r.h: Delete file.
5071 * config/m32r/m32r.mt: New file.
a8f4cde1 5072 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
5073 gethostname succeeds, in order to avoid a compilation
5074 warning.
5075 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5076 compiler warning.
5077
19f59343
MS
50782003-08-01 Michael Snyder <msnyder@redhat.com>
5079
5080 * sh-tdep.c (sh_frame_align): New gdbarch method.
5081 (sh_gdbarch_init): Set up frame_align method.
5082
4e7d7511
MS
50832003-07-31 Michael Snyder <msnyder@redhat.com>
5084
5085 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5086 which is already covered by the new frames infrastructure.
5087
63022984
AC
50882003-07-31 Andrew Cagney <cagney@redhat.com>
5089
5090 * user-regs.c (struct user_reg): Add "next" link.
5091 (struct user_regs): Replace "user" with "first" and "last" links.
5092 (append_user_reg): Add pre-allocated "reg" parameter.
5093 (builtin_user_regs): Provide initial value for "last".
5094 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5095 (user_regs_init): Allocate memory from the gdbarch obstack.
5096 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5097 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5098 linked list.
5099 (usernum_to_user_reg): New function.
5100 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5101 (value_of_user_reg): Use usernum_to_user_reg.
5102 (user_regs_free): Delete function.
5103 (_initialize_user_regs): Update register_gdbarch_data call.
5104
7cf6e574
DJ
51052003-07-31 Daniel Jacobowitz <drow@mvista.com>
5106
5107 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5108
c48a845b
MS
51092003-07-30 Michael Snyder <msnyder@redhat.com>
5110
4e7d7511 5111 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 5112 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
5113 value_being_returned.
5114 * infcmd.c (print_return_value): Pass zero as struct_addr.
5115 * values.c (value_being_returned): If struct_addr is passed,
5116 use it instead of trying to recover it from the inferior.
5117
f0d8db19
KB
51182003-07-30 Kevin Buettner <kevinb@redhat.com>
5119
5120 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5121 the prologue analyzer won't need to attempt to extract the pc
5122 value from the woefully incomplete dummy frame.
5123 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5124 possible. Disable code which modifies the frame.
5125
e5c113a1
AC
51262003-07-28 Andrew Cagney <cagney@redhat.com>
5127
5128 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5129 to level 2.
5130 (annotate_breakpoints_table, annotate_record): Ditto.
5131 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5132 (annotate_field_name_end, annotate_field_value): Ditto.
5133 (annotate_field_end, annotate_frame_source_begin): Ditto.
5134 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5135 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5136 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5137 (annotate_frame_address_end, annotate_frame_address): Ditto.
5138 (annotate_frame_args, annotate_frame_end): Ditto.
5139 (annotate_frame_where, annotate_arg_begin): Ditto.
5140 (annotate_arg_name_end, annotate_arg_value): Ditto.
5141 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5142 (annotate_function_call, annotate_signal_name): Ditto.
5143 (annotate_signal_string, annotate_signal_name_end): Ditto.
5144 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5145 (annotate_value_begin, annotate_value_history_value): Ditto.
5146 (annotate_value_history_end, annotate_value_end): Ditto.
5147 (annotate_display_begin, annotate_display_number_end): Ditto.
5148 (annotate_display_format, annotate_display_expression): Ditto.
5149 (annotate_display_expression_end, annotate_display_value): Ditto.
5150 (annotate_display_end, annotate_array_section_begin): Ditto.
5151 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5152 (annotate_elt, annotate_array_section_end): Ditto.
5153
bb1db049
AC
51542003-07-28 Andrew Cagney <cagney@redhat.com>
5155
5156 * regcache.c (struct regcache_descr): Update comments on
5157 nr_raw_registers.
5158 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5159 sizeof_raw_register_valid_p.
5160 (init_regcache_descr): Set nr_raw_registers and
5161 sizeof_raw_register_valid_p before calling
5162 init_legacy_regcache_descr.
5163
20e6603c
AC
51642003-07-28 Andrew Cagney <cagney@redhat.com>
5165
5166 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5167 MOD NUM_REGS.
5168
db742940
DJ
51692003-07-28 Daniel Jacobowitz <drow@mvista.com>
5170
5171 * thread.c (info_threads_command): Use get_selected_frame ().
5172 Check that there is at least one non-sentinel frame.
5173
ce7f4371
SC
51742003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5175
5176 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5177 (m68hc11_pop_frame): Remove.
5178 (m68hc11_frame_saved_pc): Remove.
5179 (m68hc11_frame_chain): Remove.
5180 (m68hc11_frame_init_saved_regs): Remove.
5181 (m68hc11_init_extra_frame_info): Remove.
5182 (m68hc11_store_struct_return): Remove.
5183 (m68hc11_saved_pc_after_call): Remove.
5184
1ea653ae
SC
51852003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5186
5187 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5188 frame unwind information.
5189 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5190 and adapted for frame unwinding.
5191 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5192 (m68hc11_unwind_pc): New function.
5193 (m68hc11_frame_unwind_cache): New function to analyze frames.
5194 (m68hc11_frame_this_id): New function to create new frame struct.
5195 (m68hc11_frame_prev_register): New function to unwind a register from
5196 the frame.
5197 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5198 (m68hc11_frame_p): New function for the above.
5199 (m68hc11_frame_base_address): New function to return fp of frame.
5200 (m68hc11_frame_args_address): Update for frame.
5201 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5202 (m68hc11_unwind_sp): New function.
5203 (m68hc11_unwind_dummy_id): New function.
5204 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5205 calls.
5206
c8a7f6ac
SC
52072003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5208
5209 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5210 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5211 when we are beyond the current pc.
5212
3dc990bf
SC
52132003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5214
5215 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5216 from m68hc11_push_arguments.
5217 (m68hc11_push_arguments): Remove.
5218 (m68hc11_push_return_address): Remove.
5219 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5220 handlers; remove deprecated_extra_stack_alignment_needed.
5221
222e5d1d
AC
52222003-07-27 Andrew Cagney <cagney@redhat.com>
5223
5224 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5225 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5226 REAL_PC and not the pointer.
5227 * hppa-hpux-tdep.c: Include frame.h
5228
a7e9a47e
AC
52292003-07-27 Andrew Cagney <cagney@redhat.com>
5230
5231 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5232 GDB_MULTI_ACH_PARTIAL.
5233
7e3dd49e
AC
52342003-07-27 Andrew Cagney <cagney@redhat.com>
5235
5236 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5237 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5238 operator at start and not end of line.
5239 (decode_prologue): Ditto.
5240 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5241 frame_unwind_register_unsigned instead of
5242 frame_unwind_unsigned_register.
5243 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5244 read_register.
5245 (m32r_push_dummy_call): Use register_size instead of
5246 REGISTER_RAW_SIZE.
5247 (m32r_frame_sniffer): Replace m32r_frame_p.
5248 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5249 * m32r-rom.c (report_transfer_performance): Delete extern
5250 declaration.
5251 (m32r_load, m32r_upload_command): Use print_transfer_performance
5252 instead of report_transfer_performance.
5253 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5254 / add_show_from_set.
5255
0880807f
AC
52562003-07-26 Andrew Cagney <cagney@redhat.com>
5257
5258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5259 store_return_value and extract_struct_value_address.
5260
64ae9269
DJ
52612003-07-26 Daniel Jacobowitz <drow@mvista.com>
5262
5263 PR c++/1267
5264 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5265 NULL, default to the section containing PC.
5266
e286caf2
SC
52672003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5268
5269 * NEWS: Mention "regs" deprecated for m68hc11 too.
5270
5271 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5272 (m68hc11_print_register): New function to print out one register.
5273 (m68hc11_print_registers_info): New function to print registers.
5274 (show_regs): Deprecate and use the above.
5275 (m68hc11_gdbarch_init): Install the print_registers_info.
5276
705b278b
JJ
52772003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5278
5279 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5280 that we have a SIGTRAP before returning non-zero.
5281
63cd4198
EZ
52822003-07-23 Michal Ludvig <mludvig@suse.cz>
5283 Elena Zannoni <ezannoni@redhat.com>
5284
a8f4cde1 5285 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5286 find_function_start_sal() returns empty record.
5287
6926787d
AS
52882003-07-23 Andreas Schwab <schwab@suse.de>
5289
5290 * ia64-tdep.c (ia64_print_insn): New function.
5291 (ia64_gdbarch_init): Set print_insn to it.
5292 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5293 deprecated_tm_print_insn_info.
5294
708cc1b6
MS
52952003-07-22 Michael Snyder <msnyder@redhat.com>
5296
5297 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5298 handle 8-bit returns (long long).
5299 (h8300h_extract_return_value): Ditto.
5300 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5301
aebd7893
AC
53022003-07-22 Andrew Cagney <cagney@redhat.com>
5303
5304 * gdbarch.c Include "gdb_obstack.h".
5305 (struct gdbarch): Add an "obstack".
5306 (alloc_gdbarch_data): Allocate the gdbarch data using
5307 GDBARCH_OBSTACK_CALLOC.
5308 (free_gdbarch_data): Delete function.
5309 (gdbarch_obstack_zalloc): New function.
5310 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5311 Assert that the architecture is not initialized.
5312 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5313 vector from the obstack.
5314 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5315 architecture obstack.
5316 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5317 (set_gdbarch_data): Assert that the data is not initialized.
5318 (struct gdbarch_data): Delete member "free".
5319 (register_gdbarch_data): Do not initialize "free".
5320 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5321
153721e6
AC
53222003-07-22 Andrew Cagney <cagney@redhat.com>
5323
5324 * configure.in (build_warnings): Add -Wformat-nonliteral.
5325 * configure: Re-generate.
5326
c193f044 53272003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5328
5329 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5330
c3228f12
EZ
53312003-07-22 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * findvar.c (read_var_value): Remove case for thread local storage
5334 variables. It is now entirely handled by the dwarf2 location
5335 expression code.
5336 * printcmd.c (address_info): Ditto.
5337 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5338 enumeration value.
5339 (struct symbol): Remove objfile field, which was used by
5340 LOC_THREAD_LOCAL_STATIC only.
5341 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5342 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5343 usage of objfile pointer.
5344 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5345 thread local variables.
5346 Add include of objfiles.h.
5347 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5348 storage variables.
5349 * Makefile.in (dwarf2loc.o): Update dependencies.
5350
aef9bcd2
AC
53512003-07-22 Andrew Cagney <cagney@redhat.com>
5352
5353 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5354 get_frame_base.
5355 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5356 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5357 (struct value): Add opaque declaration.
5358 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5359
d95a8903
AC
53602003-07-21 Andrew Cagney <cagney@redhat.com>
5361
5362 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5363 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5364
4db73d49
SC
53652003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5366
a8f4cde1 5367 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5368 regcache_cooked_read_unsigned instead of read_register.
5369 (m68hc11_saved_pc_after_call): Likewise.
5370 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5371 instead of write_register.
5372 (m68hc11_register_type): New function.
5373 (m68hc11_register_virtual_type): Remove.
5374 (m68hc11_store_return_value): Convert to use the regcache.
5375 (m68hc11_extract_struct_value_address): Likewise.
5376 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5377 m68hc11_register_type; undeprecate store_return_value and
5378 extract_struct_value_address.
5379
ef2b8fcd
SC
53802003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5381
5382 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5383 and translate to use regcache.
5384 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5385
625b0b97
AC
53862003-07-18 Andrew Cagney <cagney@redhat.com>
5387
5388 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5389 * gdbarch.h, gdbarch.c: Re-generate.
5390 * i386-tdep.c (i386_gdbarch_init): Do not set
5391 DWARF2_BUILD_FRAME_INFO.
5392 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5393 unconditionally.
5394 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5395 DWARF2_BUILD_FRAME_INFO.
5396
22b0d388
AC
53972003-07-18 Andrew Cagney <cagney@redhat.com>
5398
5399 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5400 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5401
1ce5d6dd
AC
54022003-07-18 Andrew Cagney <cagney@redhat.com>
5403
5404 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5405 frame_unwind_address_in_block, instead of frame_pc_unwind.
5406 (dwarf2_frame_cache): Ditto.
5407
e6e5e94c
AC
54082003-07-18 Andrew Cagney <cagney@redhat.com>
5409
5410 * user-regs.h (struct gdbarch): Declare opaque.
5411 * ui-out.h (struct ui_file): Declare opaque.
5412 * dwarf2-frame.h (struct frame_info): Declare opaque.
5413
5483d879
KW
54142003-07-18 Kris Warkentin <kewarken@qnx.com>
5415
5416 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5417 #include "...".
5418 (procfs_meminfo): Change strerror to safe_strerror.
5419 (procfs_can_run): Remove K&R badness.
5420
278a7cf7
MS
54212003-07-17 Michael Snyder <msnyder@redhat.com>
5422
5423 * remote-sim.c: Comment typo fix.
5424
606e3b82
AC
54252003-07-17 Andrew Cagney <cagney@redhat.com>
5426
5427 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5428 configure.
5429 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5430 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5431 GDB_MULTI_ARCH_PARTIAL.
5432
c43af07c
EZ
54332003-07-17 Elena Zannoni <ezannoni@redhat.com>
5434
5435 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5436 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5437 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5438
3b85b0f1
TR
54392003-07-16 Theodore A. Roth <troth@openavr.org>
5440
5441 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5442 found.
5443 (avr_frame_unwind_cache): Don't unwind FP for main.
5444 Update a comment.
5445 Save the computed prev_sp.
5446 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5447 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5448 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5449
336d1bba
AC
54502003-07-16 Andrew Cagney <cagney@redhat.com>
5451
5452 * frame-base.h (frame_base_p_ftype): Delete definition.
5453 (frame_base_append_predicate): Delete declaration.
5454 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5455 (frame_unwind_append_predicate): Delete declaration.
5456 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5457 (append_predicate): Delete parameter "p".
5458 (frame_unwind_append_predicate): Delete function.
5459 (frame_unwind_append_sniffer): Update call to append_predicate.
5460 (frame_unwind_free): Delete function.
5461 (_initialize_frame_unwind): Pass NULL as "free" to
5462 register_gdbarch_data.
5463 (frame_unwind_init): Append the dummy_frame_sniffer.
5464 (frame_unwind_find_by_frame): Simplify.
5465 * frame-base.c (struct frame_base_table): Delete field "p".
5466 (append_predicate): Delete parameter "p".
5467 (frame_base_append_predicate): Delete function.
5468 (frame_base_append_sniffer): Update call to append_predicate.
5469 (frame_base_free): Delete function.
5470 (frame_base_find_by_frame): Simplify.
5471 (_initialize_frame_base): Pass NULL as "free" to
5472 register_gdbarch_data.
5473 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5474 (x86_64_sigtramp_frame_sniffer): Replace
5475 "x86_64_sigtramp_frame_p".
5476 (x86_64_init_abi): Set the frame unwind sniffers.
5477 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5478 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5479 (m68k_gdbarch_init): Set the frame unwind sniffers.
5480 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5481 "i386_sigtramp_frame_p".
5482 (i386_frame_sniffer): Replace "i386_frame_p".
5483 (i386_gdbarch_init): Set the frame unwind sniffers.
5484 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5485 (avr_gdbarch_init): Set the frame unwind sniffers.
5486 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5487 "alpha_sigtramp_frame_p"
5488 (alpha_heuristic_frame_sniffer): Replace
5489 "alpha_heuristic_frame_p".
5490 (alpha_gdbarch_init): Set the frame unwind sniffers.
5491 (alpha_dwarf2_init_abi): Ditto.
5492 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5493 "alpha_debug_frame_p".
5494 (alpha_mdebug_frame_base_sniffer): Replace
5495 "alpha_mdebug_frame_base_p".
5496 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5497 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5498 (d10v_gdbarch_init): Set the frame unwind sniffer.
5499 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5500 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5501 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5502 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5503 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5504 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5505
48db5a3c
CV
55062003-07-16 Michael Snyder <msnyder@redhat.com>
5507
5508 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5509 should go thru sh_dsp_register_sim_regno, else the dsp regs
5510 will not get the right values.
5511
55122003-07-16 Corinna Vinschen <vinschen@redhat.com>
5513
5514 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5515 deprecated_store_floating by call to store_typed_floating.
5516 (sh_sh4_register_convert_to_raw): Substitute call to
5517 deprecated_extract_floating by call to extract_typed_floating.
5518
55192003-07-16 Corinna Vinschen <vinschen@redhat.com>
5520
5521 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5522
55232003-07-16 Corinna Vinschen <vinschen@redhat.com>
5524
5525 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5526 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5527 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5528 as possible.
5529 (do_pseudo_register): Remove.
5530 (sh_push_dummy_code): New function.
5531 (sh64_store_struct_return): Rename from sh_store_struct_return.
5532 Only called for sh64 now.
5533 (sh_extract_struct_value_address): Regcache'ify.
5534 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5535 and accomodate new tasks.
5536 (sh64_push_return_address): Rename from sh_push_return_address.
5537 Only called for sh64 now.
5538 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5539 Regcache'ify.
5540 (sh3e_sh4_extract_return_value): Regcache'ify.
5541 (sh_default_store_return_value): Ditto.
5542 (sh3e_sh4_store_return_value): Ditto.
5543 (sh_default_register_byte): Remove.
5544 (sh_sh4_register_byte): Remove.
5545 (sh_default_register_raw_size): Remove.
5546 (sh_sh4_register_raw_size): Remove.
5547 (sh_register_virtual_size): Remove.
5548 (sh_sh3e_register_virtual_type): Remove.
5549 (sh_sh3e_register_type): New function.
5550 (sh_sh4_register_virtual_type): Remove.
5551 (sh_sh4_register_type): New function.
5552 (sh_default_register_virtual_type): Remove.
5553 (sh_default_register_type): New function.
5554 (do_fv_register_info): Add parameters to accomodate call from
5555 sh_print_registers_info.
5556 (do_dr_register_info): Ditto.
5557 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5558 Add parameters to accomodate call from sh_print_registers_info.
5559 (sh_do_fp_register): Ditto.
5560 (sh64_do_pseudo_register): Call do_dr_register_info,
5561 do_fv_register_info and sh_do_fp_register with default parameters.
5562 (sh_do_register): Add parameters to accomodate call from
5563 sh_print_registers_info.
5564 (sh_print_register): Ditto.
5565 (sh_print_registers_info): Rename from sh_do_registers_info.
5566 Add parameters to be used as gdbarch_print_registers_info
5567 implementation. Accomodate removed do_pseudo_register function
5568 pointer.
5569 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5570 function pointer. Call sh_print_register with default parameters.
5571 (sh64_do_registers_info): Call sh_print_registers_info instead of
5572 sh_do_registers_info.
5573 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5574 detection of deprecated vs. non-deprecated functionality.
5575 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5576 function pointer assignments by direct function calls.
5577
e8a89fe2
AC
55782003-07-15 Andrew Cagney <cagney@redhat.com>
5579
5580 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5581 (frame_register_unwind, create_new_frame): Ditto.
5582 (legacy_get_prev_frame, get_frame_type): Ditto.
5583 (get_frame_base_address): Use frame_base_find_by_frame.
5584 (get_frame_locals_address): Use frame_base_find_by_frame.
5585 (get_frame_args_address): Use frame_base_find_by_frame.
5586 * frame-base.h (frame_base_sniffer_ftype): Declare.
5587 (frame_base_append_sniffer): Declare.
5588 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5589 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5590 (frame_base_append_sniffer): New function.
5591 (frame_base_append_predicate): Add a NULL sniffer.
5592 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5593 (struct frame_base_table): Add "sniffer".
5594 (frame_base_free): Free the "sniffer" table.
5595 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5596 (frame_unwind_append_sniffer): Declare.
5597 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5598 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5599 (struct frame_unwind_table): Add "sniffer", delete "middle".
5600 (append_predicate): Add "sniffer" parameter, append the sniffer.
5601 (frame_unwind_init): Update append_predicate call.
5602 (frame_unwind_append_sniffer): New function.
5603 (frame_unwind_append_predicate): Update append_predicate call.
5604 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5605
0714963c
AC
56062003-07-15 Andrew Cagney <cagney@redhat.com>
5607
5608 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5609 before code inhibiting repeated unwind attempts. Add to
5610 commentary on that test's problems.
5611 * blockframe.c (inside_main_func): Look for "main" in the minimal
5612 symbol table.
5613 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5614 identical.
5615
d9170e22
AC
56162003-07-15 Andrew Cagney <cagney@redhat.com>
5617
5618 * complaints.c (struct explanation): Define.
5619 (struct complaints): Change type of "explanation" to "struct
5620 explanation".
5621 (symfile_explanations): Convert to a "struct explanation" table.
5622 (vcomplaint): Update.
5623
eba29c8c
ML
56242003-07-15 Michal Ludvig <mludvig@suse.cz>
5625
5626 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5627 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5628 x86_64_linux_(fill,supply)_gregset functions.
5629 * x86-64-linux-tdep.c (USER_*): New defines.
5630 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5631 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5632 New functions.
5633 (fetch_core_registers): Ditto.
5634 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5635 * x86-64-linux-tdep.h: New file.
5636 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5637 and core-regset.o.
5638 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5639
68cc0bfb
MK
56402003-07-13 Mark Kettenis <kettenis@gnu.org>
5641
88a115f7
MK
5642 * x86-64-tdep.c (x86_64_store_return_value): Use
5643 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5644
68cc0bfb
MK
5645 * configure.host: Add x86_64-*-freebsd*.
5646 * configure.tgt: Add x86_64-*-freebsd*.
5647 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5648 * amd64fbsd-nat.c: New file.
5649 * amd64fbsd-tdep.c: New file.
5650 * config/i386/nm-fbsd64.h: New file.
5651 * config/i386/fbsd64.mh: New file.
5652 * config/i386/fbsd64.mt: New file.
5653
138e7be5
MK
56542003-07-11 Mark Kettenis <kettenis@gnu.org>
5655
5656 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5657 `sc_regs_offset' and `sc_fpregs_offset'.
5658 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5659 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5660 (alpha_sigtramp_register_address): Rewrite to use new members of
5661 `struct gdbarch_tdep'.
5662 (alpha_gdbarch_init): Initialize new members of struct
5663 gdbarch_tdep'.
5664 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5665 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5666 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5667 (alphafbsd_pc_in_sigtramp): Implement.
5668 (alphafbsd_sigtramp_offset): New function.
5669 (alphafbsd_sigcontext_addr): New function.
5670 (alphafbsd_init_abi): Initialize signal trampoline related members
5671 of `struct gdbarch_tdep'.
5672 (_initialize_alphafbsd_tdep): Add prototype.
5673
95303a68
TR
56742003-07-11 Theodore A. Roth <troth@openavr.org>
5675
ba292e4c
TR
5676 * Makefile.in (install-only): Quote sed expression when generating
5677 transformed_name.
95303a68 5678
6896c0c7
RH
56792003-07-11 Richard Henderson <rth@redhat.com>
5680
5681 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5682 * dwarf2-frame.c: Include complaints.h.
5683 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5684 variable initialization; return NULL on error.
5685 (decode_frame_entry): New.
5686
8edd5d01
AC
56872003-07-11 Andrew Cagney <cagney@redhat.com>
5688
c4a09524
AC
5689 * frame.h (frame_address_in_block): Delete declaration.
5690 * blockframe.c (frame_address_in_block): Delete function.
5691 (get_frame_block): Use get_frame_address_in_block.
5692 (block_innermost_frame): Ditto.
5693 * stack.c (print_frame, backtrace_command_1): Ditto.
5694
8edd5d01
AC
5695 * frame.h (get_frame_address_in_block): Declare.
5696 (frame_unwind_address_in_block): Declare.
5697 * frame.c (frame_unwind_address_in_block): New function.
5698 (get_frame_address_in_block): New function.
5699
f7968451
AC
57002003-07-10 Andrew Cagney <cagney@redhat.com>
5701
5702 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5703 pre-default. Note: re-generate has no effect.
a8f4cde1 5704
ae99b398
AC
57052003-07-10 Andrew Cagney <cagney@redhat.com>
5706
5707 * gdbarch.sh: When a variable, but not a function, compare against
5708 0. Fix problem in previous patch.
5709 * gdbarch.c: Re-generate.
a8f4cde1 5710
956ac328
AC
57112003-07-10 Andrew Cagney <cagney@redhat.com>
5712
5713 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5714 functions against NULL, not 0.
5715 * gdbarch.c: Re-generate.
a8f4cde1 5716
287c3240
FF
57172003-07-10 Fred Fish <fnf@ninemoons.com>
5718
5719 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5720 null string instead of a null pointer.
5721 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5722
32f63c4b
MS
57232003-07-09 Michael Snyder <msnyder@redhat.com>
5724
5725 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5726
402ecd56
MK
57272003-07-09 Mark Kettenis <kettenis@gnu.org>
5728
5729 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5730 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5731 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5732 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5733 * x86-64-tdep.c: ... from here.
5734
c481dac7
AS
57352003-07-09 Andreas Schwab <schwab@suse.de>
5736
5737 * m68k-tdep.h (enum struct_return): Define.
5738 (struct gdbarch_tdep): Add struct_return.
5739 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5740 bytes are padded to the right, not to the left. Pass struct value
5741 address in register %a1, not on stack.
5742 (m68k_use_struct_convention): New function.
5743 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5744 struct_return in tdep to pcc_struct_return.
5745 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5746 reg_struct_return.
5747
a8f4cde1 57482003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5749
a8f4cde1 5750 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5751
96a4ee76
AC
57522003-07-09 Andrew Cagney <cagney@redhat.com>
5753
5754 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5755 Add comments about the checks.
5756
1517c6d1
AC
57572003-07-08 Andrew Cagney <cagney@redhat.com>
5758
5759 * Makefile.in: Make dependency section headers consistent.
5760 (config_h): Move to $BUILD headers section.
5761 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5762 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5763 (ada-exp.tab.c): Move to YACC/LEX section.
5764 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5765 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5766
dc5dd1eb
KW
57672003-07-08 Kris Warkentin <kewarken@qnx.com>
5768
5769 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5770 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5771 of strerror with safe_strerror, use ISO C function definitions,
5772 and replace instances of sprintf with snprintf.
dc5dd1eb 5773
612dde91
AC
57742003-07-07 Andrew Cagney <cagney@redhat.com>
5775
5776 * frame.c (get_prev_frame): Enable check for identical frames.
5777 Update comments. Update error messages.
5778
492c11d3
JB
57792003-07-07 Joel Brobecker <brobecker@gnat.com>
5780
5781 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5782
376a5a49
JB
57832003-07-07 Joel Brobecker <brobecker@gnat.com>
5784
5785 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5786 sort_symtab_syms, no longer necessary.
5787
22b4a9ad
JB
57882003-07-07 Joel Brobecker <brobecker@gnat.com>
5789
5790 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5791
5bbcb741
JB
57922003-07-07 Joel Brobecker <brobecker@gnat.com>
5793
5794 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5795 (mips_register_byte): Likewise.
5796
c139e7d9
DJ
57972003-07-07 Daniel Jacobowitz <drow@mvista.com>
5798
5799 * Makefile.in (sparc_tdep_h): New.
5800 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5801 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5802 * sparc-linux-nat.c: Include "sparc-tdep.h".
5803 * sparc-nat.c: Likewise.
5804 * sparc-tdep.c: Likewise.
5805 * sparc64nbsd-nat.c: Likewise.
5806 * sparcnbsd-nat.c: Likewise.
5807 * sparcnbsd-tdep.c: Likewise.
5808 * sparc-tdep.h: New file.
5809 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5810 and sparc_npc_regnum.
5811
fd8f87c5
DJ
58122003-07-07 Daniel Jacobowitz <drow@mvista.com>
5813
5814 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5815 (mips_linux_cannot_store_register): List supported instead of
5816 unsupported registers.
5817
13adf674
DJ
58182003-07-07 Daniel Jacobowitz <drow@mvista.com>
5819
5820 * disasm.c (dump_insns): Separate instructions from addresses.
5821
8de307e0
AS
58222003-07-07 Andreas Schwab <schwab@suse.de>
5823
5824 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5825 dependencies.
5826 * m68k-tdep.c (NUM_FREGS): Delete.
5827 (SIG_PC_FP_OFFSET): Delete.
5828 (TARGET_M68K): Delete.
5829 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5830 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5831 P_MOVEL_SP, P_MOVEML_SP): Define.
5832 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5833 P_TRAP): Delete.
5834 (m68k_register_raw_size): Delete.
5835 (m68k_register_virtual_size): Delete.
5836 (m68k_register_type): Renamed from m68k_register_virtual_type and
5837 add gdbarch argument.
5838 (m68k_store_struct_return): Delete.
5839 (m68k_deprecated_extract_return_value): Delete.
5840 (m68k_deprecated_extract_struct_value_address): Delete.
5841 (m68k_frame_chain): Delete.
5842 (m68k_frame_saved_pc): Delete.
5843 (m68k_fix_call_dummy): Delete.
5844 (m68k_push_dummy_frame): Delete.
5845 (m68k_pop_frame): Delete.
5846 (m68k_extract_return_value): New function.
5847 (m68k_store_return_value): Rewrite using regcache.
5848 (m68k_extract_struct_value_address): Rewrite using regcache.
5849 (m68k_push_dummy_call): New function.
5850 (struct m68k_frame_cache): Define.
5851 (m68k_alloc_frame_cache): New function.
5852 (m68k_analyze_frame_setup): New function.
5853 (m68k_analyze_register_saves): New function.
5854 (m68k_analyze_prologue): New function.
5855 (m68k_skip_prologue): Rewrite using above functions.
5856 (m68k_unwind_pc): New function.
5857 (m68k_frame_cache): New function.
5858 (m68k_frame_this_id): New function.
5859 (m68k_frame_prev_register): New function.
5860 (m68k_frame_unwind): New variable.
5861 (m68k_frame_p): New function.
5862 (m68k_sigtramp_frame_cache): New function.
5863 (m68k_sigtramp_frame_this_id): New function.
5864 (m68k_sigtramp_frame_prev_register): New function.
5865 (m68k_sigtramp_frame_unwind): New variable.
5866 (m68k_sigtramp_frame_p): New function.
5867 (m68k_frame_base_address): New function.
5868 (m68k_frame_base): New function.
5869 (m68k_unwind_dummy_id): New function.
5870 (fill_gregset): Use regcache_collect.
5871 (fill_fpregset): Likewise.
5872 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5873 defined.
5874 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5875 deprecated_init_frame_pc, deprecated_store_struct_return,
5876 deprecated_extract_return_value, deprecated_store_return_value,
5877 deprecated_frame_chain, deprecated_frame_saved_pc,
5878 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5879 deprecated_register_virtual_size,
5880 deprecated_max_register_raw_size,
5881 deprecated_max_register_virtual_size,
5882 deprecated_register_virtual_type, deprecated_register_size,
5883 deprecated_register_byte, deprecated_register_bytes,
5884 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5885 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5886 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5887 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5888 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5889 deprecated_push_dummy_frame, deprecated_pop_frame,
5890 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5891 only if SYSCALL_TRAP is defined. Set extract_return_value,
5892 store_return_value, extract_struct_value_address, register_type,
5893 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5894 predicates.
5895 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5896 M68K_MAX_REGISTER_SIZE): Define.
5897 (struct m68k_sigtramp_info): Define.
5898 (struct gdbarch_tdep): Add get_sigtramp_info.
5899 * m68klinux-nat.c (fetch_register): Use register_size instead of
5900 REGISTER_RAW_SIZE. Don't put assignment in if.
5901 (store_register): Likewise.
5902 (fetch_inferior_registers): Likewise.
5903 (store_inferior_registers): Likewise.
5904 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5905 (m68k_linux_frame_saved_pc): Delete.
5906 (m68k_linux_sigcontext_reg_offset,
5907 m68k_linux_ucontext_reg_offset): Define.
5908 (m68k_linux_get_sigtramp_info): New function.
5909 (m68k_linux_extract_return_value): Rewrite using regcache.
5910 (m68k_linux_store_return_value): Likewise.
5911 (m68k_linux_extract_struct_value_address): Likewise.
5912 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5913 Don't set deprecated_frame_saved_pc,
5914 deprecated_extract_return_value, deprecated_store_return_value,
5915 deprecated_extract_struct_value_address. Set
5916 extract_return_value, store_return_value,
5917 extract_struct_value_address.
5918
eb8bc282
AC
59192003-07-07 Andrew Cagney <cagney@redhat.com>
5920
5921 * expprint.c: Include "user-regs.h" instead of "frame.h".
5922 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5923 frame_map_regnum_to_name.
5924 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5925 (frame_map_name_to_regnum): Simplify, call
5926 user_reg_map_name_to_regnum.
5927 (frame_map_regnum_to_name): Simplify, call
5928 user_reg_map_regnum_to_name.
5929 (frame_register_unwind): Update.
5930 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5931 (_initialize_frame_reg): Call user_reg_add_builtin.
5932 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5933 (value_of_register): Use value_of_user_reg.
5934 * eval.c (evaluate_subexp_standard): Update.
5935 * parse.c (write_dollar_variable): Update.
5936 * d10v-tdep.c (d10v_print_registers_info): Update.
5937 * infcmd.c (registers_info): Update.
5938 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5939 (builtin_regs_h): Delete macro.
5940 (user_regs_h): Define.
5941 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5942 (builtin-regs.o): Delete target.
5943 (user-regs.o): Specify dependencies.
5944 (expprint.o): Update dependencies.
5945 (findvar.o): Update dependencies.
5946 (frame.o): Update dependencies.
5947 (std-regs.o): Update dependencies.
5948
9f476a01
CF
59492003-07-06 Christopher Faylor <cgf@redhat.com>
5950
5951 * win32-nat.c (solib_symbols_add): Use one variable for all section
5952 address stuff. Pass variable rather than address of variable to
5953 safe_symbol_file_add.
5954
a731b831
AS
59552003-07-06 Andreas Schwab <schwab@suse.de>
5956
5957 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5958
9f83329d
JB
59592003-07-04 Joel Brobecker <brobecker@gnat.com>
5960
5961 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5962
27e28cc5
KW
59632003-07-04 Kris Warkentin <kewarken@qnx.com>
5964
5965 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5966
59672003-07-04 Kris Warkentin <kewarken@qnx.com>
5968
5969 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5970 * config/i386/nto.mh: New file.
5971 * config/i386/nm-nto.h: New file.
5972 * configure.host: Add i[3456]86-*-nto*.
5973
100f2e98
JB
59742003-07-03 Joel Brobecker <brobecker@gnat.com>
5975
5976 * remote-vx.c (vx_add_symbols): Fix compilation error.
5977
e23457df
AC
59782003-07-03 Andrew Cagney <cagney@redhat.com>
5979
5980 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5981 * gdbarch.h, gdbarch.c: Re-generate.
5982 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5983 (legacy_register_name): Declare.
5984 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5985 (REGISTER_NAME): Define.
5986 * sparc-tdep.c (legacy_register_name): New function.
5987 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5988 (REGISTER_NAME): Define.
5989 (hppa64_register_name): Declare.
5990 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5991 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5992 (hppa64_register_name): New function.
5993 (hppa_register_name): New function.
5994 * arch-utils.c (legacy_register_name): Delete.
5995 * arch-utils.h (legacy_register_name): Delete.
5996
38caaeec
DJ
59972003-07-03 Daniel Jacobowitz <drow@mvista.com>
5998
5999 * cli/cli-interp.c (cli_interpreter_resume): Update the
6000 cli_uiout's stream to gdb_stdout.
6001
dadd712e
AC
60022003-07-03 Andrew Cagney <cagney@redhat.com>
6003
6004 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6005 predicate.
6006 * gdbarch.h, gdbarch.c: Re-generate.
6007 * regcache.c (init_regcache_descr): Use legacy code when either
6008 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6009
c7f1390e
DJ
60102003-07-02 Daniel Jacobowitz <drow@mvista.com>
6011
6012 * NEWS: Move "set logging" entry into GDB 6.0 section.
6013
4bc8c588
JB
60142003-07-02 Jim Blandy <jimb@redhat.com>
6015
a9dd42f1
JB
6016 * s390-tdep.c (struct frame_extra_info): new member:
6017 'stack_bought_valid'.
6018 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6019 initialize fextra_info->stack_bought.
6020 (s390_frameless_function_invocation): Don't trust the value of
6021 fextra_info_ptr->stack_bought unless
6022 fextra_info->stack_bought_valid is set.
6023
4bc8c588
JB
6024 New S390 prologue analyzer.
6025 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6026 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6027 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6028 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6029 compute_x_addr, s390_on_stack, s390_store,
6030 s390_get_signal_frame_info): New functions.
6031 (S390_NUM_SPILL_SLOTS): New macro.
6032 (s390_get_frame_info): Rewritten.
6033 (is_arg_reg): Deleted.
6034
6035 Break out the decoding of S/390 instructions into separate
6036 functions, to make it more legible, and easier to check
6037 against the spec.
6038 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6039 is_rx, is_rxe): New functions.
6040 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6041 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6042 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6043 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6044 enums for opcode values. (Is this an improvement?)
6045
fd13a04a
AC
60462003-07-02 Andrew Cagney <cagney@redhat.com>
6047
6048 * i386-tdep.c: Revert change committed as part of trad-frame code
6049 below.
6050
3f8091c1
DJ
60512003-07-02 Daniel Jacobowitz <drow@mvista.com>
6052
6053 * breakpoint.c (insert_catchpoint): Make static.
6054
8dd5115e
AS
60552003-07-02 Andreas Schwab <schwab@suse.de>
6056
6057 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6058 former ia64_push_arguments and ia64_push_return_address, and use
6059 regcache functions instead of read/write_register.
6060 (ia64_gdbarch_init): Set push_dummy_call instead of
6061 deprecated_push_arguments and deprecated_push_return_address.
6062
a2229c23
AJ
60632003-07-01 Andreas Jaeger <aj@suse.de>
6064
6065 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6066 before the call.
6067 Set %rax only to number of SSE registers used.
6068
3b3850e8
AC
60692003-07-01 Andrew Cagney <cagney@redhat.com>
6070
6071 * trad-frame.h: Update comments, a -1 .addr is reserved.
6072 (trad_frame_value_p, trad_frame_addr_p): Declare.
6073 (trad_frame_reg_p): Declare.
6074 (trad_frame_set_value): Rename trad_frame_register_value.
6075 (trad_frame_set_unknown): Declare.
6076 * trad-frame.c (trad_frame_realreg_p): New function.
6077 (trad_frame_addr_p, trad_frame_value_p): New function.
6078 (trad_frame_set_unknown): New function.
6079 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6080 (trad_frame_prev_register): Use trad_frame_realreg_p,
6081 trad_frame_addr_p and trad_frame_value_p.
6082 (trad_frame_set_value): Rename trad_frame_register_value.
6083 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6084 and trad_frame_set_value.
a2229c23 6085
4d819d0e
JB
60862003-06-30 Jim Blandy <jimb@redhat.com>
6087
6088 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6089 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6090 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6091 for 16 registers, and then 32 more bytes.
6092 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6093 New macros.
6094 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6095 Move up in the file, since it's now used by is_simple_arg.
6096 (is_simple_arg): Don't assume registers are four bytes long.
6097 Exclude all double arguments. Extended floats are not simple
6098 args.
6099 (is_power_of_two): New function.
6100 (pass_by_copy_ref): Call is_power_of_two, and check that the
6101 length fits in a register, rather than listing all the acceptable
6102 sizes. Extended floats are not passed by reference.
6103 (s390_push_arguments): Don't assume registers are four bytes long.
6104 Reserve an argument register to point to the buffer for structures
6105 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6106 S390_STACK_FRAME_OVERHEAD.
6107
1ad828f1
AS
61082003-06-30 Andreas Schwab <schwab@suse.de>
6109
6110 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6111 format error message.
6112
39b00981
JB
61132003-06-30 Joel Brobecker <brobecker@gnat.com>
6114
6115 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6116
b2a7f303
DC
61172003-06-30 David Carlton <carlton@kealia.com>
6118
6119 Band-aid for PR c++/1245.
6120 * Makefile.in (cp-support.o): Depend on complaints_h.
6121 * cp-support.c: Include complaints.h. Add declaration for
6122 find_last_component.
6123 (cp_find_first_component): Separate code into
6124 cp_find_first_component_aux.
6125 (cp_find_first_component_aux): Call demangled_name_complaint.
6126 (demangled_name_complaint): New.
6127
a257b5bb
AC
61282003-06-30 Andrew Cagney <cagney@redhat.com>
6129
6130 * remote.c (remote_write_bytes): Explicitly compute and then use
6131 the payload size. Update comments to reflect. Fixes problem of
6132 GDB not sending small packets as found by Fred Fish.
6133
0a2cfde4
AC
61342003-06-30 Andrew Cagney <cagney@redhat.com>
6135
6136 * remote.c (remote_async_wait): Fix -Wformat problem.
6137
3fcb8548
AC
61382003-06-29 Andrew Cagney <cagney@redhat.com>
6139
6140 * remote.c (remote_wait): Call error, and not warning, when the
6141 packet is corrupt.
6142 (remote_async_wait): Ditto.
6143
9f9970a3
DJ
61442003-06-29 Daniel Jacobowitz <drow@mvista.com>
6145
6146 * sparc-tdep.c (sparc_y_regnum): Make external again.
6147
83a8ccca
DJ
61482003-06-29 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * cli/cli-logging.c (pop_output_files): Add void to function
6151 definition.
6152
d2cf594a
AC
61532003-06-29 Andrew Cagney <cagney@redhat.com>
6154
6155 * frame.c (frame_register_unwind): Use unsigned char when dumping
6156 the buffer contents.
6157
0fac0b41
DJ
61582003-06-28 Daniel Jacobowitz <drow@mvista.com>
6159
6160 * cli/cli-logging.c: New file.
6161 * cli-out.c (struct ui_out_data): Add original_stream.
6162 (cli_redirect): New function.
6163 (cli_ui_out_impl): Add cli_redirect.
6164 (cli_out_new): Initialize original_stream.
6165 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6166 (uo_redirect, ui_out_redirect): New.
6167 * ui-out.h (struct ui_out_impl): Add redirect member.
6168 (redirect_ftype): New.
6169 (ui_out_redirect): Add prototype.
6170 * Makefile.in: Add rules for cli-logging.c.
6171 * NEWS: Mention "set logging".
6172
88a07d7c
EZ
61732003-06-27 Elena Zannoni <ezannoni@redhat.com>
6174
6175 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6176
4eb58876
AC
61772003-06-27 Andrew Cagney <cagney@redhat.com>
6178
6179 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6180 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6181 * avr-tdep.c (avr_call_dummy_address): Delete function.
6182 (avr_gdbarch_init): Do not set call_dummy_address.
6183
1549f619
EZ
61842003-06-27 Elena Zannoni <ezannoni@redhat.com>
6185
6186 * symfile.c (syms_from_objfile): Move variables to inner block.
6187 Move the checks for the non-mainline case a bit earlier to avoid
6188 doing some useless computations.
6189
3cb3398d
EZ
61902003-06-27 Elena Zannoni <ezannoni@redhat.com>
6191
6192 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6193
3799ccc6
EZ
61942003-06-26 Elena Zannoni <ezannoni@redhat.com>
6195
6196 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6197 sections.
6198
ce1f6491
MC
61992003-06-26 Michael Chastain <mec@shout.net>
6200
6201 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6202 gdb/testsuite/gdb.c++/pr-1210.exp.
6203
d958dfd0
AC
62042003-06-26 Andrew Cagney <cagney@redhat.com>
6205
6206 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6207 altivec_expression.h and altivec_registers.h.
6208
d31431ed
AC
62092003-06-26 Andrew Cagney <cagney@redhat.com>
6210
6211 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6212 info->mach when MIPS16. Patch suggested by Fred Fish.
6213
714b1282
AC
62142003-06-26 Andrew Cagney <cagney@redhat.com>
6215
6216 * utils.c (internal_vproblem): Print the problem to a reason
6217 buffer and then pass to query. Make the msg variable more local.
6218
42efa47a
AC
62192003-06-26 Andrew Cagney <cagney@redhat.com>
6220
6221 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6222 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6223 * gdbarch.h, gdbarch.c: Re-generate.
6224 * frame-base.c (default_frame_args_address): Update. Use
6225 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6226 not available.
6227 (default_frame_locals_address): Ditto for
6228 DEPRECATED_FRAME_LOCALS_ADDRESS.
6229 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6230 (vax_frame_num_args): Update.
6231 (vax_gdbarch_init): Update.
6232 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6233 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6234 * mcore-tdep.c (mcore_gdbarch_init): Update.
6235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6236 * ia64-tdep.c (ia64_gdbarch_init): Update.
6237 * symtab.h (address_class): Update comments.
6238 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6239 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6240 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6241 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6242 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6243 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6244 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6245 * alpha-mdebug-tdep.c: Update.
6246 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6247
8ffd9b1b
AJ
62482003-06-26 Andreas Jaeger <aj@suse.de>
6249
6250 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6251 of SSE registers so that varargs functions work. Rework handling
6252 of passing arguments on the stack.
6253 (x86_64_store_return_value): Return double and float values in SSE
6254 register.
6255
e8ac10a6
MC
62562003-06-24 Michael Chastain <mec@shout.net>
6257
6258 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6259 the "constructor breakpoints ignored" bug.
6260
986af8e6
DC
62612003-06-25 David Carlton <carlton@kealia.com>
6262
6263 * MAINTAINERS: Update e-mail address.
6264
d64558a5
JB
62652003-06-24 Jim Blandy <jimb@redhat.com>
6266
e538d2d7
JB
6267 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6268
02631ec0
JB
6269 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6270 function.
6271 (ppc_linux_init_abi): Register it as the
6272 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6273
e716d87a
JB
6274 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6275 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6276 method.
6277
d64558a5
JB
6278 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6279 (ppc64_standard_linkage_target): Use it.
6280
449a5da4
AC
62812003-06-23 Andrew Cagney <cagney@redhat.com>
6282
6283 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6284 for 0 "int0" and 4 "int32" sized registers.
6285 * gdbtypes.c (builtin_type_int0): Define.
6286 (build_gdbtypes): Initialize builtin_type_int0.
6287 * gdbtypes.h (builtin_type_int0): Declare.
6288
b2a02dda
SC
62892003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6290
6291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6292 as characters are unsigned.
6293
fba3138e
DJ
62942003-06-22 Daniel Jacobowitz <drow@mvista.com>
6295
6296 PR gdb/1179
6297 * dwarfread.c (struct_type): Skip static fields without crashing.
6298
f6c8180b
AC
62992003-06-22 Andrew Cagney <cagney@redhat.com>
6300
6301 GDB 6.0 branch created.
f2c06f52
AC
6302 * README: Update.
6303 * PROBLEMS: Update. Empty.
6304 * NEWS: Update.
f6c8180b 6305
ae822768
DJ
63062003-06-22 Daniel Jacobowitz <drow@mvista.com>
6307
6308 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6309 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6310
261de166
AC
63112003-06-22 Andrew Cagney <cagney@redhat.com>
6312
6313 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6314 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6315 Velikov.
6316
30e94205
DJ
63172003-06-22 Daniel Jacobowitz <drow@mvista.com>
6318
6319 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6320 compilers.
6321
9e14d721
DJ
63222003-06-21 Daniel Jacobowitz <drow@mvista.com>
6323
6324 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6325 argument of val_print.
6326 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6327 to the address argument of baseclass_offset or target_read_memory.
6328 Do add it to the argument of cp_print_value_fields.
6329
a4b8ebc8
AC
63302003-06-21 Andrew Cagney <cagney@redhat.com>
6331
6332 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6333 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6334 instead of 0..NUM_REGS.
6335 (mips_register_reggroup_p): New function.
6336 (mips_pseudo_register_write): New function.
6337 (mips_pseudo_register_read): New function.
6338 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6339 based on the register's type.
6340 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6341 cooked.
6342 (mips_get_saved_register): Simplify. Assert that REGNO is a
6343 pseudo / cooked.
6344 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6345 (mips_register_type): Replace mips_register_virtual_type. Map
6346 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6347 when available.
6348 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6349 that the register is cooked / virtual.
6350 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6351 Only get the extra info when needed.
6352 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6353 (mips32_heuristic_proc_desc): Fetch the cooked register.
6354 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6355 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6356 (mips_print_register): Use gdbarch_register_type, instead of
6357 REGISTER_VIRTUAL_TYPE.
6358 (print_gp_register_row): Use gdbarch_register_type, instead of
6359 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6360 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6361 Print the pseudo / cooked registers.
6362 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6363 Print the pseudo / cooked registers.
6364 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6365 REG_NUM is pseudo / cooked.
6366 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6367 (mips_n32n64_xfer_return_value): Ditto.
6368 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6369 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6370 (mips_register_sim_regno): New function.
6371 (mips_gdbarch_init): Set deprecated_register_byte,
6372 register_group_p, pseudo_register_write, pseudo_register_read,
6373 register_sim_regno, and num_pseudo_regs. Set register_type,
6374 instead of register_virtual_type.
6375 * Makefile.in (mips-tdep.o): Update dependencies.
6376 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6377 REGISTER_VIRTUAL_TYPE.
6378 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6379 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6380 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6381 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6382 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6383
325ed089
DJ
63842003-06-21 Daniel Jacobowitz <drow@mvista.com>
6385
6386 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6387 * cli/cli-cmds.c: Include "gdb_vfork.h".
6388 (shell_escape): Use vfork.
6389
f0e7d0e8
AC
63902003-06-21 Andrew Cagney <cagney@redhat.com>
6391
c57bb9fa
AC
6392 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6393 32 bit floating-point register saves.
6394
6e51443a
AC
6395 * frame.h (deprecated_unwind_get_saved_register): Delete.
6396 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6397 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6398 and deprecated_get_next_frame_hack instead of
6399 deprecated_unwind_get_saved_register.
6400
ed183c7c
AC
6401 * mips-tdep.c (mips_dump_tdep): Do not print
6402 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6403
f0e7d0e8
AC
6404 * frame.c (get_frame_register): New function.
6405 (frame_unwind_register_signed): New function.
6406 (get_frame_register_signed): New function.
6407 (frame_unwind_register_unsigned): New function.
6408 (get_frame_register_unsigned): New function.
6409 * frame.h: Add comments on naming schema.
6410 (get_frame_register, frame_unwind_register_signed): Declare.
6411 (get_frame_register_signed, get_frame_register_signed): Declare.
6412 (frame_unwind_register_unsigned): Declare.
6413 (get_frame_register_unsigned): Declare.
6414
2224d941
TR
64152003-06-20 Theodore A. Roth <troth@openavr.org>
6416
6417 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6418
8619218d
TR
64192003-06-20 Theodore A. Roth <troth@openavr.org>
6420
6421 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6422 (avr_read_sp): Ditto.
6423
0b1b50c0
DJ
64242003-06-20 Daniel Jacobowitz <drow@mvista.com>
6425
6426 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6427 * config/arm/nm-linux.h: Likewise.
6428 * config/arm/tm-linux.h: Likewise.
6429 * config/ia64/nm-linux.h: Likewise.
6430 * config/ia64/tm-ia64.h: Likewise.
6431 * config/s390/tm-linux.h: Likewise.
6432 * config/s390/tm-s390.h: Likewise.
6433 * s390-nat.c: Likewise.
6434 * s390-tdep.c: Likewise.
6435
6436 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6437 * config/ia64/linux.mt: Likewise.
6438 * config/m68k/linux.mh: Likewise.
6439 * config/mips/linux.mt: Likewise.
6440 * config/powerpc/linux.mh: Likewise.
6441 * config/sh/linux.mt: Likewise.
6442
c8c18e65
KW
64432003-06-19 Kris Warkentin <kewarken@qnx.com>
6444
6445 * solib.c (solib_open): Change tests for whether to search
6446 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6447 comments.
6448
dcccef2e
TR
64492003-06-19 Theodore A. Roth <troth@openavr.org>
6450
6451 * avr-tdep.c (avr_frame_address): Delete function.
6452 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6453 set_gdbarch_frame_args_address.
6454
5861a190
AC
64552003-06-19 Andrew Cagney <cagney@redhat.com>
6456
6457 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6458 (REGISTER_CONVERT_FROM_TYPE): Delete.
6459 (mips_register_convert_to_type): Delete declaration.
6460 (mips_register_convert_from_type): Delete declaration.
6461 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6462 kernel/.
6463
0274a8ce
MS
64642003-06-19 Michael Snyder <msnyder@redhat.com>
6465
6466 * linux-nat.h: New file.
6467 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6468 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6469 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6470 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6471 (linux_make_note_section): Iterate over lwps instead of threads.
6472 (linux_do_thread_registers): Use lwp instead of merged pid.
6473 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6474 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6475 Add dependency on linux_nat_h.
6476
adf5f719
TR
64772003-06-19 Theodore A. Roth <troth@openavr.org>
6478
6479 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6480
6766a268
DJ
64812003-06-19 Daniel Jacobowitz <drow@mvista.com>
6482
6483 * varobj.c (get_type, get_target_type): Use check_typedef.
6484
1171114a
DJ
64852003-06-19 Daniel Jacobowitz <drow@mvista.com>
6486
6487 * breakpoint.c (insert_catchpoint): Call internal_error.
6488
adcf68a2
TR
64892003-06-19 Theodore A. Roth <troth@openavr.org>
6490
6491 * avr-tdep.c (avr_push_dummy_code): Delete function.
6492 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6493
ea67f13b
DJ
64942003-06-19 Daniel Jacobowitz <drow@mvista.com>
6495
6496 * arch-utils.c (default_prepare_to_proceed): Remove.
6497 (generic_prepare_to_proceed): Remove.
6498 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6499 (generic_prepare_to_proceed): Remove prototype.
6500 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6501 * gdbarch.c: Regenerate.
6502 * gdbarch.h: Regenerate.
6503 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6504 * hppah-nat.c (hppa_switched_threads): Remove.
6505 * infrun.c (prepare_to_proceed): New static function, copied from
6506 generic_prepare_to_proceed. Remove select_it argument.
6507 (proceed): Call prepare_to_proceed.
6508 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6509 variables.
6510 (ptrace_wait): Don't set the removed variables.
6511 (hppa_switched_threads): Remove.
6512 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6513 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6514 (lin_lwp_prepare_to_proceed): Remove prototype.
6515 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6516 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6517
4add8633
TR
65182003-06-18 Theodore A. Roth <troth@openavr.org>
6519
6520 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6521 trad-frame.h.
6522 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6523 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6524 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6525 (AVR_PROLOGUE_*): Enumerate prologue types.
6526 (struct frame_extra_info): Remove.
6527 (struct avr_unwind_cache): Define.
6528 (avr_write_sp): Delete function.
6529 (avr_read_fp): Ditto.
6530 (avr_init_extra_frame_info): Ditto.
6531 (avr_pop_frame): Ditto.
6532 (avr_frame_saved_pc): Ditto.
6533 (avr_saved_pc_after_call): Ditto.
6534 (avr_push_return_address): Ditto.
6535 (avr_frame_chain): Ditto.
6536 (avr_store_struct_return): Ditto.
6537 (avr_push_arguments): Ditto.
6538 (avr_scan_prologue): Update comments. Changed to set up the info for
6539 cache unwinding. Now returns end of prologue PC.
6540 (avr_skip_prologue): Better handling of functions lacking a prologue
6541 by using avr_scan_prologue.
6542 (avr_scan_arg_moves): New function.
6543 (avr_saved_regs_unwinder): Ditto.
6544 (avr_frame_unwind_cache): Ditto.
6545 (avr_unwind_pc): Ditto.
6546 (avr_frame_this_id): Ditto.
6547 (avr_frame_prev_register): Ditto.
6548 (avr_frame_p): Ditto.
6549 (avr_frame_base_address ): Ditto.
6550 (avr_unwind_dummy_id): Ditto.
6551 (avr_push_dummy_code): Ditto.
6552 (push_stack_item): Ditto.
6553 (pop_stack_item): Ditto.
6554 (avr_push_dummy_call): Ditto.
6555 (struct stack_item): Define.
6556 (avr_frame_unwind): Declare structure.
6557 (avr_frame_base): Ditto.
6558 (avr_gdbarch_init): Remove calls to
6559 set_gdbarch_deprecated_init_frame_pc,
6560 set_gdbarch_deprecated_target_read_fp,
6561 set_gdbarch_deprecated_dummy_write_sp,
6562 set_gdbarch_deprecated_fp_regnum,
6563 set_gdbarch_deprecated_push_arguments,
6564 set_gdbarch_deprecated_push_return_address,
6565 set_gdbarch_deprecated_pop_frame,
6566 set_gdbarch_deprecated_store_struct_return,
6567 set_gdbarch_deprecated_frame_init_saved_regs,
6568 set_gdbarch_deprecated_init_extra_frame_info,
6569 set_gdbarch_deprecated_frame_chain,
6570 set_gdbarch_deprecated_frame_saved_pc,
6571 set_gdbarch_deprecated_saved_pc_after_call.
6572 Add calls to set_gdbarch_push_dummy_call,
6573 set_gdbarch_push_dummy_code,
6574 frame_unwind_append_predicate,
6575 frame_base_set_default,
6576 set_gdbarch_unwind_dummy_id,
6577 set_gdbarch_unwind_pc.
6578 Wrap a long line.
6579
7be04a68
MS
65802003-06-18 Corinna Vinschen <vinschen@redhat.com>
6581
6582 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6583 registers for H8/300S.
6584 (h8300_print_registers_info): Ditto.
8ffd9b1b 6585 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6586
ae087d01
DJ
65872003-06-18 Daniel Jacobowitz <drow@mvista.com>
6588
6589 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6590 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6591 (lin_lwp_wait): Likewise. Update comments.
6592 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6593 (pull_pid_from_list, linux_record_stopped_pid): New.
6594
07d8f827
SC
65952003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6596
6597 * ada-lang.c (scan_discrim_bound): Name first argument.
6598 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6599 declared by ALL_BLOCK_SYMBOLS.
6600
7cb47b14
SC
66012003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6602
6603 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6604 ("regcache.h"): Include it.
6605 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6606
6ad8ae5c
DJ
66072003-06-17 Daniel Jacobowitz <drow@mvista.com>
6608
6609 * NEWS: Mention gdbserver detach change and "disconnect" command.
6610 * infcmd.c (disconnect_command): New function.
6611 (_initialize_infcmd): Add ``disconnect'' command.
6612 * remote.c (remote_async_detach): Delete.
6613 (remote_detach): Merge remote_async_detach.
6614 (remote_disconnect): New.
6615 (init_remote_ops): Set to_disconnect.
6616 (init_remote_cisco_ops): Likewise.
6617 (init_remote_async_ops): Likewise. Use remote_detach.
6618 * target.c (cleanup_target): Default to_disconnect.
6619 (update_current_target): Inherit to_disconnect.
6620 (target_disconnect, debug_to_disconnect): New functions.
6621 (setup_target_debug): Set to_disconnect.
6622 * target.h (struct target_ops): Add to_disconnect.
6623 (target_disconnect): Add prototype.
6624
687595f9
DJ
66252003-06-17 Daniel Jacobowitz <drow@mvista.com>
6626
6627 * breakpoint.c (insert_catchpoint): New function.
6628 (insert_breakpoints): Use catch_exceptions to call
6629 insert_catchpoint. Disable catchpoints if they fail to insert.
6630
29239a8f
DJ
66312003-06-17 Daniel Jacobowitz <drow@mvista.com>
6632
6633 * symfile.c (reread_symbols): Clear sym_private.
6634
2cdf3c63
AC
66352003-06-17 Andrew Cagney <cagney@redhat.com>
6636
6637 * trad-frame.h (struct frame_info): Add opaque declaration.
6638 * remote-fileio.h (struct cmd_list_element): Add opaque
6639 declaration.
6640 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6641 comments.
6642
cf0e1e0d
DJ
66432003-06-17 Daniel Jacobowitz <drow@mvista.com>
6644
6645 * remote.c (remote_prepare_to_store): Replace call to
6646 deprecated_read_register_bytes with multiple regcache_raw_read
6647 calls.
6648
192cdb19
KW
66492003-06-17 Kris Warkentin <kewarken@qnx.com>
6650
6651 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6652 (nto_find_and_open_solib): Likewise.
6653 (nto_init_solib_absolute_prefix): Likewise.
6654 (_initialize_nto_tdep): Fix indentation.
6655
89929b45
KW
66562003-06-17 Kris Warkentin <kewarken@qnx.com>
6657
6658 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6659
46019f27
KW
66602003-06-17 Kris Warkentin <kewarken@qnx.com>
6661
6662 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6663
1a38736e
JB
66642003-06-17 Jim Blandy <jimb@redhat.com>
6665
6666 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6667
3605c34a
TR
66682003-06-16 Theodore A. Roth <troth@openavr.org>
6669
6670 * avr-tdep.c (avr_extract_return_value): New function.
6671 (avr_gdbarch_init): Set extract_return_value method.
6672
870b3035
AC
66732003-06-16 Andrew Cagney <cagney@redhat.com>
6674
6675 * frame.h (deprecated_get_next_frame_hack): Declare.
6676 * frame.c (legacy_saved_regs_prev_register): Only require
6677 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6678 there are always saved regs.
6679 (deprecated_generic_get_saved_register): Do not require
6680 DEPRECATED_FRAME_INIT_SAVED_REGS.
6681 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6682 use frame ID unwind instead.
6683 (deprecated_get_next_frame_hack): New function.
6684
63d47a7d
CV
66852003-06-16 Corinna Vinschen <vinschen@redhat.com>
6686
6687 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6688 (h8300_push_dummy_call): ...this function. Some minor optimization.
6689 (h8300_push_return_address): Remove.
6690 (h8300_gdbarch_init): Remove calls to
6691 set_gdbarch_deprecated_dummy_write_sp,
6692 set_gdbarch_deprecated_push_arguments and
6693 set_gdbarch_deprecated_push_return_address.
6694 Add call to set_gdbarch_push_dummy_call.
6695
4bb1dc5e
CV
66962003-06-16 Corinna Vinschen <vinschen@redhat.com>
6697
6698 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6699 (E_PSEUDO_EXR_REGNUM): Ditto.
6700 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6701 registers into safe registers.
4bb1dc5e
CV
6702 (h8300_skip_prologue): Check for stm instruction to push registers
6703 used for register variables onto stack.
6704 (gdb_print_insn_h8300): Remove.
6705 (h8300_examine_prologue): Add a comment.
6706 (h8300_register_name): Take pseudo registers into account.
6707 (h8300s_register_name): Ditto.
6708 (h8300sx_register_name): Ditto.
6709 (h8300_print_register): Ditto.
6710 (h8300_print_registers_info): Define "nice" printing order.
6711 (h8300_saved_pc_after_call): Take pseudo registers into account.
6712 (h8300_register_type): Ditto. Return type used for remote connection
6713 when requesting real CCR or EXR register, return actual type when
6714 requesting pseudo CCR or EXR.
6715 (h8300_pseudo_register_read): New function.
6716 (h8300_pseudo_register_write): Ditto.
6717 (h8300_dbg_reg_to_regnum): Ditto.
6718 (h8300s_dbg_reg_to_regnum): Ditto.
6719 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6720 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6721 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6722 set_gdbarch_print_insn architecture dependent.
6723 Call set_gdbarch_pseudo_register_read and
6724 set_gdbarch_pseudo_register_write.
6725 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6726
a59fe496
AC
67272003-06-16 Andrew Cagney <cagney@redhat.com>
6728
6729 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6730 * gdbarch.h, gdbarch.c: Re-generate.
6731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6732 * s390-tdep.c (s390_gdbarch_init): Update.
6733 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6734 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6735 * mips-tdep.c (mips_gdbarch_init): Update.
6736 * mcore-tdep.c (mcore_gdbarch_init): Update.
6737 * cris-tdep.c (cris_gdbarch_init): Update.
6738 * infcall.c (call_function_by_hand): Update.
6739 * ia64-tdep.c (ia64_push_arguments): Update comment.
6740 * frame.c (legacy_get_prev_frame): Do not assume
6741 SAVE_DUMMY_FRAME_TOS_P.
6742 * dummy-frame.c (find_dummy_frame): Update comment.
6743
6f4e5a41
AC
67442003-06-16 Andrew Cagney <cagney@redhat.com>
6745
6746 * regcache.c (do_cooked_read): Do not use register_valid_p.
6747
72fab697
TR
67482003-06-15 Theodore A. Roth <troth@openavr.org>
6749
6750 * avr-tdep.c (avr_register_type): Remove a blank line.
6751 (avr_scan_prologue): Correct some comments.
6752
e3d8b004
TR
67532003-06-15 Theodore A. Roth <troth@openavr.org>
6754
6755 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6756 prologue types.
8ffd9b1b 6757 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6758 option.
6759 Add code to scan -mcall-prologues for mega devices.
6760
866b76ea
TR
67612003-06-15 Theodore A. Roth <troth@openavr.org>
6762
6763 * avr-tdep.c (avr_register_byte): Delete function.
6764 (avr_register_raw_size): Delete function.
6765 (avr_register_virtual_size): Delete function.
6766 (avr_register_virtual_type): Delete function.
6767 (avr_register_type): New function.
6768 (avr_address_to_pointer): Remove unused code.
6769 (avr_read_fp): Need to read FP as two separate bytes due to change to
6770 avr_register_type() usage.
6771 (avr_gdbarch_init): Don't set deprecated_register_size.
6772 Don't set deprecated_register_bytes.
6773 Don't set deprecated_register_byte.
6774 Don't set deprecated_register_raw_size.
6775 Don't set deprecated_max_register_raw_size.
6776 Don't set deprecated_register_virtual_size.
6777 Don't set deprecated_max_register_virtual_size.
6778 Don't set deprecated_register_virtual_type.
6779 Set register_type method.
6780
3993f6b1
DJ
67812003-06-15 Daniel Jacobowitz <drow@mvista.com>
6782
6783 * Makefile.in (linux-nat.o): Add rule.
6784 * linux-nat.c: New file.
6785 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6786 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6787 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6788 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6789 * config/arm/linux.mh (NATDEPFILES): Likewise.
6790 * config/i386/linux.mh (NATDEPFILES): Likewise.
6791 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6792 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6793 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6794 * config/mips/linux.mh (NATDEPFILES): Likewise.
6795 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6796 * config/s390/s390.mh (NATDEPFILES): Likewise.
6797 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6798
786a90bb
MK
67992003-06-15 Mark Kettenis <kettenis@gnu.org>
6800
6801 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6802 replace out-of-date comment.
6803
3bd3f01e
AC
68042003-06-15 Andrew Cagney <cagney@redhat.com>
6805
6806 * rdi-share/host.h (Fail): Change to a varargs function.
6807 * remote-rdi.c (Fail): Update.
8ffd9b1b 6808
de5b9bb9
MK
68092003-06-15 Mark Kettenis <kettenis@gnu.org>
6810
6811 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6812 (i386_convert_register_p, i386_register_to_value,
6813 i386_register_from_value): Handle types longer than 8 bytes.
6814
d532c08f
MK
68152003-06-15 Mark Kettenis <kettenis@gnu.org>
6816
6817 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6818 Move floating-point code to new function in i387-tdep.c.
6819 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6820 New functions containing code moved here from i386-tdep.c.
6821 * i387-tdep.h: Add opaque declaration for `struct type'.
6822 (i387_register_to_value, i387_value_to_register): New prototypes.
6823 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6824 (x86_64_init_abi): Set convert_register_p, register_to_value and
6825 value_to_register here.
8ffd9b1b 6826
42c466d7
AC
68272003-06-14 Andrew Cagney <cagney@redhat.com>
6828
6829 * mips-tdep.c (mips_register_to_value): Make static.
6830 (mips_value_to_register): Make static.
6831 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6832 * ia64-tdep.c (ia64_register_raw_size): Make static.
6833 (ia64_register_virtual_size): Make static.
6834 (ia64_register_byte): Make static.
6835 * i387-tdep.c: Include "i387-tdep.h".
6836 (print_387_control_word): Delete function.
6837 (print_387_status_word): Delete function.
6838 (print_387_status_bits): Delete function.
6839 (print_387_control_bits): Delete function.
6840 * Makefile.in (i387-tdep.o): Update dependencies.
6841 * rdi-share/host.h (Fail): Declare.
6842 * remote-rdi.c (Fail): Update to match declaration.
6843
2a9cda49
AC
68442003-06-14 Andrew Cagney <cagney@redhat.com>
6845
6846 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6847 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6848 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6849 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6850 * README: Delete reference to remote-array.
6851 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6852 (remote-array.o): Delete target.
6853 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6854 * remote-array.c: Delete file.
6855
ff2e87ac
AC
68562003-06-14 Andrew Cagney <cagney@redhat.com>
6857 Mark Kettenis <kettenis@gnu.org>
6858
6859 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6860 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6861 parameter with "frame".
6862 * gdbarch.h, gdbarch.c: Re-generate.
6863 * frame.h (put_frame_register): Declare.
6864 * frame.c (put_frame_register): New function.
6865 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6866 (legacy_register_to_value): Rewrite, use "frame" to get the
6867 register value.
6868 (legacy_value_to_register): Rewrite, use "frame" to find the
6869 register's location before storing.
6870 * arch-utils.h (legacy_convert_register_p): Update.
6871 (legacy_register_to_value, legacy_value_to_register): Update.
6872 * findvar.c (value_from_register): Rewrite, eliminate use of
6873 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6874 "frame" to REGISTER_TO_VALUE.
6875 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6876 lval_reg_frame_relative + lval_register branch of the switch. Do
6877 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6878 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6879 I386_EDI_REGNUM): New defines.
6880 (i386_next_regnum, i386_convert_register_p,
6881 i386_register_to_value, i386_value_to_register): New functions.
6882 (i386_register_convertible, i386_register_convert_to_virtual,
6883 i386_convert_to_raw): Remove functions.
6884 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6885 value_to_register instead of register_convertible,
6886 register_convert_to_virtual and register_convert_to_raw.
6887 * mips-tdep.c (mips_convert_register_p): New function.
6888 (mips_value_to_register): Replace mips_register_convert_from_type.
6889 (mips_register_to_value): Replace mips_register_convert_to_type.
6890 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6891 register_to_value.
6892 * alpha-tdep.c (alpha_convert_register_p): Update.
6893 (alpha_value_to_register): Update, store the register.
6894 (alpha_register_to_value): Update, fetch the register.
6895
98be1e77
TR
68962003-06-14 Theodore A. Roth <troth@openavr.org>
6897
6898 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6899 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6900 Don't set deprecated_call_dummy_words.
6901 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6902 Don't set remote_translate_xfer_address.
6903 (avr_io_reg_read_command): Remove commented out debug printf.
6904 Wrap a long line.
6905
57bc6122
TR
69062003-06-14 Theodore A. Roth <troth@openavr.org>
6907
6908 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6909 causes gdb to seg fault.
6910
eb01fc62
DJ
69112003-06-14 Daniel Jacobowitz <drow@mvista.com>
6912
6913 * sparc-nat.c (fetch_inferior_registers): Correct
6914 a reference to "registers".
6915
3b3e6bee
DJ
69162003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6917
6918 * Makefile.in (exc_request_U_h): Define
6919 (exc_request_S_h): Likewise.
6920 (msg_reply_S_h): Likewise.
6921 (msg_U_h): Likewise.
6922 (notify_S_h): Likewise.
6923 (process_reply_S_h): Likewise.
6924 (gnu-nat.o): Depend on gdb_obstack_h
6925 * gnu-nat.c: Include "gdb_obstack.h".
6926
b8de8283
AC
69272003-06-13 Andrew Cagney <cagney@redhat.com>
6928
6929 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6930 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6931
f3be58bc
AC
69322003-06-13 Andrew Cagney <cagney@redhat.com>
6933
6934 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6935 when deprecated REGISTER macros can be deleted.
6936 * gdbarch.h, gdbarch.c: Re-generate.
6937
4c0122c8
JB
69382003-06-13 Jim Blandy <jimb@redhat.com>
6939
6940 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6941 Linux entry point symbols for _dl_debug_state, too.
6942
3e210248
AC
69432003-06-13 Andrew Cagney <cagney@redhat.com>
6944
6945 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6946 available, do not use the FP register, and always save the TOS.
6947 * dummy-frame.c (dummy_frame_this_id): Do not assert
6948 SAVE_DUMMY_FRAME_TOS.
6949 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6950 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6951 (i386_push_dummy_call): Add 8 to the returned SP.
6952 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6953 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6954 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6955 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6956 (x86_64_push_dummy_call): Return "sp + 16".
6957 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6958 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6959 save_dummy_frame_tos.
6960
0b65af49
JB
69612003-06-13 Jim Blandy <jimb@redhat.com>
6962
6963 * frv-tdep.c (frv_use_struct_convention): Delete static
6964 declaration for function deleted in my change of 2003-06-12.
6965
4ea2465e
TR
69662003-06-13 Theodore A. Roth <troth@openavr.org>
6967
6968 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6969 (avr_pointer_to_address): Shift code addrs left 1 bit.
6970 (avr_convert_from_func_ptr_addr): Delete function since operation is
6971 better handled by avr_address_to_pointer and avr_pointer_to_address.
6972 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6973
1581182a
MK
69742003-06-13 Mark Kettenis <kettenis@gnu.org>
6975
6976 From Kelley Cook <kelleycook@wideopenwest.com>:
6977 * configure.host: Accept i[34567]86 variants.
6978 * configure.tgt: Likewise.
6979 * nlm/configure.in: Likewise.
6980 * nlm/configure: Regenerated.
6981
7aa1783e
RE
69822003-06-13 Richard Earnshaw <rearnsha@arm.com>
6983
6984 * arm-tdep.c (solib-svr4.h): Dont' include it.
6985 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6986 * arm-linux-tdep.c: ... here. Make static.
6987 (arm_linux_init_abi): Register it.
6988 (solib-svr4.h): Include it.
6989 * Makefile.in: Update dependencies.
6990 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6991 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6992
0261a0d0
CV
69932003-06-13 Corinna Vinschen <vinschen@redhat.com>
6994
6995 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6996 indicate registers used for return values.
6997 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6998 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6999 members.
7000 (h8300_init_extra_frame_info): Ditto.
7001 (h8300_frame_locals_address): Removed.
7002 (h8300_frame_args_address): Removed.
7003 (h8300_extract_return_value): Use new regcache structure. Only care
7004 for 16 bit CPUs.
7005 (h8300h_extract_return_value): Same function for 32 bit CPUs.
7006 (h8300_store_return_value): Use new regcache structure. Only care
7007 for 16 bit CPUs.
7008 (h8300h_store_return_value): Same function for 32 bit CPUs.
7009 (h8300_store_struct_return): Removed.
7010 (h8300_extract_struct_value_address): Use new regcache structure.
7011 (h8300h_extract_struct_value_address): Removed.
7012 (h8300_push_dummy_code): New function.
7013 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7014 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
7015 set_gdbarch_store_return_value architecture dependent.
7016 Call set_gdbarch_push_dummy_code and
7017 set_gdbarch_extract_struct_value_address.
7018 Remove calls to set_gdbarch_frame_args_address,
7019 set_gdbarch_frame_locals_address,
7020 set_gdbarch_deprecated_store_struct_return,
7021 set_gdbarch_deprecated_extract_return_value,
7022 set_gdbarch_deprecated_extract_struct_value_address,
7023 set_gdbarch_deprecated_call_dummy_words and
7024 set_gdbarch_deprecated_sizeof_call_dummy_words.
7025
055c394a
CV
70262003-06-13 Corinna Vinschen <vinschen@redhat.com>
7027
7028 * h8300-tdep.c (h8300_register_byte): Remove.
7029 (h8300h_register_byte): Remove.
7030 (h8300_register_virtual_type): Remove. Substitute by...
7031 (h8300_register_type): New function.
7032 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7033 (h8300h_extract_struct_value_address): Ditto.
7034 (h8300_gdbarch_init): Drop calls to
7035 set_gdbarch_deprecated_register_byte and
7036 set_gdbarch_deprecated_register_virtual_type.
7037 Add call to set_gdbarch_register_type.
7038
9c04cab7
AC
70392003-06-13 Andrew Cagney <cagney@redhat.com>
7040
7041 * gdbarch.sh: Update comments on registers.
7042 (deprecated_register_byte): Rename register_byte.
7043 (deprecated_register_raw_size): Rename register_raw_size.
7044 (deprecated_register_virtual_size): Rename register_virtual_size.
7045 (deprecated_register_virtual_type): Rename register_virtual_type.
7046 * gdbarch.h, gdbarch.c: Re-generate.
7047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7048 * vax-tdep.c (vax_gdbarch_init): Update.
7049 * v850-tdep.c (v850_gdbarch_init): Update.
7050 * sparc-tdep.c (sparc_gdbarch_init): Update.
7051 * sh-tdep.c (sh_gdbarch_init): Update.
7052 * s390-tdep.c (s390_gdbarch_init): Update.
7053 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7054 * ns32k-tdep.c: Update.
7055 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7056 * mips-tdep.c (mips_gdbarch_init): Update.
7057 * mcore-tdep.c (mcore_gdbarch_init): Update.
7058 * m68k-tdep.c (m68k_gdbarch_init): Update.
7059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7060 * ia64-tdep.c (ia64_gdbarch_init): Update.
7061 * hppa-tdep.c (hppa_gdbarch_init): Update.
7062 * h8300-tdep.c (h8300_gdbarch_init): Update.
7063 * frv-tdep.c (frv_gdbarch_init): Update.
7064 * cris-tdep.c (cris_gdbarch_init): Update.
7065 * avr-tdep.c (avr_gdbarch_init): Update.
7066 * alpha-tdep.c (alpha_gdbarch_init): Update.
7067 * arm-tdep.c (arm_gdbarch_init): Update.
7068
b060cbea
AC
70692003-06-13 Andrew Cagney <cagney@redhat.com>
7070
7071 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7072 mips_o32_use_struct_convention with always_use_struct_convention.
7073
0fc9922a
DC
70742003-06-12 David Carlton <carlton@kealia.com>
7075
7076 * cp-namespace.c (cp_set_block_scope): Comment out
7077 processing_has_namespace_info branch.
7078
1fd35568
JB
70792003-06-12 Jim Blandy <jimb@redhat.com>
7080
f470a70a
JB
7081 Recognize and skip 64-bit PowerPC Linux linkage functions.
7082 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7083 insn_pattern, insns_match_pattern, d_field, ds_field): New
7084 functions, macros, and types for working with PPC instructions.
7085 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7086 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7087 ppc64_skip_trampoline_code): New functions, variables, and macros
7088 for recognizing and skipping linkage functions.
7089 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7090 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7091
49ff75ad
JB
7092 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7093 register offsets for both the 32- and 64-bit interfaces.
7094
bd918c83
JB
7095 Actually finish the job started by my change of 2003-05-29.
7096 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7097 other #definition of this.
7098 (ppc_linux_skip_trampoline_code): Remove declaration.
7099 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7100 static.
7101 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7102 method for GDBARCH.
7103
7104 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7105 'long' on ppc64-*-linux*.
7106
f8c59253
JB
7107 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7108 isn't #defined, assume the register doesn't exist: act as if
7109 tdep->ppc_mq_regnum were -1.
7110
8fbb30b1
JB
7111 * configure.host, configure.tgt: Add entries for
7112 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7113 powerpc/linux.mt.
7114 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7115 New files.
7116
1fd35568
JB
7117 * arch-utils.c (always_use_struct_convention): New function.
7118 * arch-utils.h (always_use_struct_convention): New prototype.
7119 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7120 (alpha_gdbarch_init): Register always_use_struct_convention,
7121 instead of alpha_use_struct_convention.
7122 * cris-tdep.c (cris_use_struct_convention): Delete.
7123 (cris_gdbarch_init): Register always_use_struct_convention,
7124 instead of cris_use_struct_convention.
7125 * frv-tdep.c (frv_use_struct_convention): Delete.
7126 (frv_gdbarch_init): Register always_use_struct_convention,
7127 instead of frv_use_struct_convention.
7128 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7129 (h8300_gdbarch_init): Register always_use_struct_convention,
7130 instead of h8300_use_struct_convention.
e3305dd9 7131 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
7132 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7133 instead of mips_o32_use_struct_convention.
7134
e14e6e9c
AC
71352003-06-12 Andrew Cagney <cagney@redhat.com>
7136
7137 * wince.c: Include "mips-tdep.h".
7138 * mips-tdep.h (mips_next_pc): Declare.
7139 * mcore-tdep.c: Make more local functions static.
7140 * Makefile.in (wince.o): Update dependencies.
7141
2335f48e
DC
71422003-06-12 David Carlton <carlton@kealia.com>
7143
7144 * symtab.c (lookup_symbol_aux_minsyms): Replace
7145 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7146 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7147 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7148 SYMBOL_NATURAL_NAME.
7149
f70a7d61
AS
71502003-06-12 Andreas Schwab <schwab@suse.de>
7151
7152 * Makefile.in (tuiDisassem.o): Update dependencies.
7153
b6429628
DC
71542003-06-12 David Carlton <carlton@bactrian.org>
7155
7156 * symtab.h: Delete declaration of make_symbol_overload_list.
7157 Add declaration of lookup_partial_symbol.
7158 * symtab.c (remove_params): Move to cp-support.c.
7159 (overload_list_add_symbol, make_symbol_overload_list)
7160 (sym_return_val_size, sym_return_val_index): Ditto.
7161 (lookup_partial_symbol): Make extern.
7162 * cp-support.h: Add declaration of make_symbol_overload_list.
7163 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7164 symtab.h, and block.h.
7165 (remove_params): Move here from symtab.c.
7166 (overload_list_add_symbol, make_symbol_overload_list)
7167 (sym_return_val_size, sym_return_val_index): Ditto.
7168 * valops.c: Include cp-support.h.
7169 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7170 frame_h, and block_h.
7171 (valops.o): Depend on cp_support_h.
7172
084edea5
CV
71732003-06-12 Corinna Vinschen <vinschen@redhat.com>
7174
7175 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7176 substitute by NUM_REGS throughout.
7177 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7178 (h8300s_register_name): New function for H8S registers.
7179 (h8300sx_register_name): Ditto for H8SX registers.
7180 (h8300_print_register): Revise register printing, avoid depending
7181 on 32 bit long.
0261a0d0 7182 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7183 (h8300h_register_byte): New function for any other architecture.
7184 (h8300_register_raw_size): Remove.
7185 (h8300_register_virtual_type): Revise to return actually useful
7186 type.
7187 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7188 (h8300h_extract_struct_value_address): New function for any other
7189 architecture.
7190 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7191 set_gdbarch_register_name, set_gdbarch_register_byte,
7192 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7193 Remove calls to set_gdbarch_deprecated_register_size,
7194 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7195 set_gdbarch_deprecated_max_register_raw_size,
7196 set_gdbarch_register_virtual_size and
7197 set_gdbarch_deprecated_max_register_virtual_size entirely.
7198 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7199 set_gdbarch_long_double_bit.
7200
06194148
JJ
72012003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7202
8ffd9b1b
AJ
7203 * doublest.c (convert_doublest_to_floatformat): When dealing
7204 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7205 processing a full 32 bits of mantissa.
7206
de4f826b
DC
72072003-06-11 David Carlton <carlton@bactrian.org>
7208
7209 * dictionary.h: New.
7210 * dictionary.c: New.
7211 * block.h: Add opaque declaration for struct dictionary.
7212 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7213 'sym' members.
7214 (BLOCK_DICT): New macro.
7215 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7216 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7217 BLOCK_SHOULD_SORT.
7218 (ALL_BLOCK_SYMBOLS): Update definition.
7219 * Makefile.in (SFILES): Add dictionary.c.
7220 (dictionary_h): New.
7221 (COMMON_OBS): Add dictionary.o.
7222 (dictionary.o): New.
7223 (ada-lang.o): Depend on dictionary_h.
7224 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7225 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7226 (mi-cmd-stack.o): Ditto.
7227 (gdbtk-cmds.o): Update dependencies.
7228 (gdbtk-stack.o): Ditto.
7229 * ada-lang.c: Include dictionary.h.
7230 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7231 (fill_in_ada_prototype, debug_print_block): Ditto.
7232 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7233 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7234 'is_sorted'.
7235 * mdebugread.c: Include dictionary.h.
7236 (struct parse_stack): Delete 'maxsyms' member.
7237 (parse_symbol): Update calls to new_block. Delete calls to
7238 shrink_block. Use dictionary methods.
7239 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7240 Update calls to new_symtab. Don't maintain maxsyms data.
7241 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7242 (add_symbol): Just call dict_add_symbol.
7243 (new_symtab): Delete 'maxsyms' argument.
7244 (new_symtab): Update calls to new_block.
7245 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7246 (shrink_block): Delete function.
7247 (fixup_sigtramp): Update call to new_block. Add symbol via
7248 dict_add_symbol.
7249 * jv-lang.c: Include dictionary.h.
7250 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7251 appropriately. Set class_symtab->free_func. Make sure the
7252 blockvector is big enough to hold two blocks.
7253 (add_class_symtab_symbol): Use dictionary methods.
7254 (free_class_block): New function.
7255 (type_from_class): Replace explicit iteration by
7256 ALL_BLOCK_SYMBOLS.
7257 * symtab.h (struct symtab): Replace 'free_ptr' method by
7258 'free_func'.
7259 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7260 sort_symtab_syms.
7261 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7262 sort_symtab_syms.
7263 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7264 Include dictionary.h.
7265 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7266 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7267 sort_symtab_syms.
7268 * objfiles.c: Include dictionary.h.
7269 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7270 * buildsym.c: Include dictionary.h.
7271 (finish_block): Use dictionary methods.
7272 (end_symtab): Set free_func to NULL, not free_ptr.
7273 * tracepoint.c: Include dictionary.h.
7274 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7275 (scope_info): Ditto.
7276 * stack.c: Include dictionary.h.
7277 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7278 (print_block_frame_labels, print_frame_arg_vars)
7279 (print_frame_args): Ditto.
7280 * symmisc.c (free_symtab_block): Use dictionary methods.
7281 (dump_symtab): Ditto.
7282 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7283 Include dictionary.h.
7284 * symfile.h: Delete declarations of sort_block_syms,
7285 sort_symtab_syms.
7286 * symfile.c (sort_block_syms): Delete.
7287 (sort_symtab_syms): Delete.
7288 * symtab.c: Include dictionary.h.
7289 (lookup_block_symbol): Use dictionary iterators.
7290 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7291 (search_symbols, make_symbol_completion_list): Ditto.
7292 (make_symbol_overload_list): Ditto.
7293 * valops.c (value_of_local): Use dict_empty.
7294 Include dictionary.h.
7295
a31f978c
JB
72962003-06-11 J. Brobecker <brobecker@gnat.com>
7297
7298 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7299
526e70c0
DC
73002003-06-11 David Carlton <carlton@bactrian.org>
7301
7302 * block.h (BLOCK_SHOULD_SORT): Delete.
7303 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7304 blocks.
7305 * ada-lang.c (ada_add_block_symbols): Ditto.
7306 * symfile.c (sort_block_syms): Delete.
7307 (sort_symtab_syms): Ditto.
7308 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7309 declarations.
7310 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7311 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7312 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7313 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7314 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7315 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7316 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7317
33c08150
JJ
73182003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7319
8ffd9b1b 7320 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7321 bits to 128.
7322
781a750d
AC
73232003-06-11 Andrew Cagney <cagney@redhat.com>
7324
7325 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7326 REGISTER_CONVERTIBLE.
7327 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7328 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7329 * gdbarch.h, gdbarch.c: Re-generate.
7330 * arch-utils.h (deprecated_register_convertible_not): Rename
7331 generic_register_convertible_not.
7332 * arch-utils.c (deprecated_register_convertible_not): Rename
7333 generic_register_convertible.
7334 (legacy_convert_register_p, legacy_register_to_value): Update.
7335 * sh-tdep.c (sh64_push_arguments): Update.
7336 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7337 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7338 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7339 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7340 * arch-utils.c (legacy_value_to_register): Update.
7341 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7342 (rs6000_register_convert_to_raw): Make parameter "from" const.
7343 * mips-tdep.c (mips_gdbarch_init): Update.
7344 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7345 * infcmd.c (default_print_registers_info): Update.
7346 * ia64-tdep.c (ia64_gdbarch_init): Update.
7347 (ia64_register_convert_to_raw): Make parameter "from" const.
7348 * i386-tdep.c (i386_gdbarch_init): Update.
7349 (i386_register_convert_to_raw): Update.
7350
cd90e54f
AC
73512003-06-11 Andrew Cagney <cagney@redhat.com>
7352
7353 * remote-fileio.c: Include "remote-fileio.h".
7354 * Makefile.in (remote-fileio.o): Update dependencies.
7355 (remote_fileio_h): Fix typo.
7356
a78f21af
AC
73572003-06-11 Andrew Cagney <cagney@redhat.com>
7358
7359 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7360 (xstormy16_save_dummy_frame_tos): Make static.
7361 (_initialize_xstormy16_tdep): Add declaration.
7362 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7363 * v850-tdep.c: Make local functions static.
7364 (_initialize_v850_tdep): Add declaration.
7365 * sparc-tdep.c: Make local functions static.
7366 (_initialize_sparc_tdep): Add declaration.
7367 * sh-tdep.c: Make local functions static.
7368 (_initialize_sh_tdep): Add declaration.
7369 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7370 * s390-tdep.c: Make local functions static.
7371 (_initialize_s390_tdep): Add declaration.
7372 * dbxread.c (find_stab_function_addr): Make static.
7373 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7374 * ocd.c (_initialize_remote_ocd): Add declaration.
7375 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7376 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7377 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7378 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7379 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7380 * remote-array.c (_initialize_array): Add declaration.
7381 (_initialize_remote_monitors): Add declaration.
7382 * remote-mips.c: Make local functions static.
7383 (_initialize_remote_mips): Add declaration.
7384 * mcore-tdep.c: Make all local functions static.
7385 (_initialize_mcore_tdep): Add declaration.
7386 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7387 * abug-rom.c (_initialize_abug_rom): Add declaration.
7388 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7389 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7390 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7391 * remote-est.c (_initialize_est): Add declaration.
7392 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7393 (m68hc11_call_dummy_address): Make static.
7394 * ia64-tdep.c: Make local functions static.
7395 (_initialize_ia64_tdep): Add declaration.
7396 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7397 * monitor.c (monitor_wait_filter): Make static.
7398 (_initialize_remote_monitors): Add declaration.
7399 * remote-hms.c (_initialize_remote_hms): Add declaration.
7400 * remote-e7000.c (fetch_regs_from_dump): Make static.
7401 (expect_n): Make static.
7402 (_initialize_remote_e7000): Add declaration.
7403 * ser-e7kpc.c: Always include "defs.h".
7404 (_initialize_ser_e7000pc): Add declaration.
7405 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7406 * cris-tdep.c: Make all but one function static.
7407 (_initialize_cris_tdep): Add declaration.
7408 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7409 * solib.c (update_solib_list): Make static.
7410 (_initialize_solib): Add declaration.
7411 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7412 (_initialize_avr_tdep): Add declaration.
7413 * remote-rdi.c (voiddummy): Make static.
7414 (_initialize_remote_rdi): Add declaration.
7415 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7416 * remote-rdp.c (send_rdp): Make static.
7417 (_initialize_remote_rdp): Add declaration.
7418 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7419
cbcdb1f5
CV
74202003-06-11 Corinna Vinschen <vinschen@redhat.com>
7421
7422 * remote-fileio.c: Make ari happy.
7423
a191ea8d
JB
74242003-06-10 J. Brobecker <brobecker@gnat.com>
7425
7426 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7427 fetching the trailing bytes of the buffer we are about to write.
7428
0ef75e11
AC
74292003-06-10 Andrew Cagney <cagney@redhat.com>
7430
7431 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7432 * Makefile.in (remote-fileio.o): Update dependencies.
7433 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7434 include <setjmp.h>, or <sys/types.h> conditional on USG.
7435 (remote_fio_jmp_buf): Delete global variable.
7436
449092f6 74372003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7438 Martin M. Hunt <hunt@redhat.com>
449092f6 7439
559fa028
AC
7440 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7441 (SFILES): Add remote-fileio.c.
7442 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7443 dependencies for building remote.o.
449092f6
CV
7444 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7445 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7446 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7447 static storage class.
7448 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7449 'F' packet.
7450 (_initialize_remote): Call initialize_remote_fileio().
7451 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7452 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7453 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7454 (captured_main): Initialize new ui_files.
7455 * ui-file.c: Add read and fgets input functions.
7456 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7457 (null_file_read): New function.
7458 (ui_file_read): New function.
7459 (set_ui_file_read): New function.
7460 (stdio_file_read): New function.
7461 * ui-file.h: New type ui_file_read_ftype.
7462 (set_ui_file_read): Declare.
7463 (ui_file_read): Declare.
7464
248de703
AC
74652003-06-09 Andrew Cagney <cagney@redhat.com>
7466
7467 * frame.h (deprecated_unwind_get_saved_register): Rename
7468 generic_unwind_get_saved_register, update comments.
7469 * mips-tdep.c (mips_get_saved_register): Update.
7470 * frame.c (deprecated_unwind_get_saved_register): Update.
7471
0ed8aa57
AC
74722003-06-09 Andrew Cagney <cagney@redhat.com>
7473
7474 * vax-tdep.c (vax_frame_locals_address): Delete function.
7475 (vax_gdbarch_init): Do not set frame_locals_address.
7476 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7477 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7478 * s390-tdep.c (s390_frame_args_address): Delete function.
7479 (s390_gdbarch_init): Do not set frame_args_address or
7480 frame_locals_address.
7481 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7482 (ns32k_gdbarch_init): Do not set frame_locals_address.
7483 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7484 (hppa_frame_locals_address): Delete function.
7485 (hppa_gdbarch_init): Do not set frame_args_address, or
7486 frame_locals_address.
7487 * arm-tdep.c (arm_frame_args_address): Delete.
7488 (arm_frame_locals_address): Delete.
7489 (arm_gdbarch_init): Do not set frame_args_address, or
7490 frame_locals_address.
7491
983a287a
AC
74922003-06-09 Andrew Cagney <cagney@redhat.com>
7493
7494 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7495 * gdbarch.h, gdbarch.c: Re-generate.
7496 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7497 * arch-utils.c (frame_num_args_unknown): Delete function.
7498 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7499 (frame_info): Use FRAME_NUM_ARGS_P.
7500 * arm-tdep.c (arm_frame_num_args): Delete function.
7501 (arm_gdbarch_init): Do not set frame_num_args.
7502 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7503 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7504 (hppa_gdbarch_init): Do not set frame_num_args.
7505 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7506 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7507 frame_num_args to default frame_num_args_unknown.
7508 * v850-tdep.c (v850_gdbarch_init): Ditto.
7509 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7510 * sh-tdep.c (sh_gdbarch_init): Ditto.
7511 * s390-tdep.c (s390_gdbarch_init): Ditto.
7512 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7513 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7514 * mips-tdep.c (mips_gdbarch_init): Ditto.
7515 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7516 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7518 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7519 * i386-tdep.c (i386_gdbarch_init): Ditto.
7520 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7521 * frv-tdep.c (frv_gdbarch_init): Ditto.
7522 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7523 * cris-tdep.c (cris_gdbarch_init): Ditto.
7524 * avr-tdep.c (avr_gdbarch_init): Ditto.
7525 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7526
8d3b0994
AC
75272003-06-09 Andrew Cagney <cagney@redhat.com>
7528
7529 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7530 (print_frame_args): Moved to "stack.c".
7531 * stack.c: Include "gdb_assert.h".
7532 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7533 (print_frame_args): Moved from "printcmd.c".
7534 * frame.h (print_frame_args): Delete declaration.
7535 * Makefile.in (stack.o): Update dependencies.
7536
25e3a86b
AC
75372003-06-08 Andrew Cagney <cagney@redhat.com>
7538
7539 * frame.c (get_prev_frame): Remove reference to
7540 frame_args_address_correct in comments.
7541 * frame-base.c (default_frame_args_address): Delete code
7542 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7543 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7544 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7545 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7546 (vax_frame_args_address_correct): Delete declaration.
7547
a9e5fdc2
AC
75482003-06-08 Andrew Cagney <cagney@redhat.com>
7549
7550 * gdbarch.sh (UNWIND_SP): Add.
7551 * gdbarch.h, gdbarch.c: Re-generate.
7552 * frame.c (frame_sp_unwind): New function.
7553 (get_frame_sp): New function.
7554 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7555 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7556 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7557 value.
7558 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7559 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7560
8983bd83
AC
75612003-06-08 Andrew Cagney <cagney@redhat.com>
7562
7fec2c59
AC
7563 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7564 REMOTE_BREAKPOINT.
7565 * remote.c: Update.
7566 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7567 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7568 * config/m68k/tm-sun3.h: Update.
7569 * config/m68k/tm-m68klynx.h: Update.
7570 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7571
8983bd83
AC
7572 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7573 trad_frame". Update comments.
7574 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7575 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7576 (trad_frame_register_value, trad_frame_prev_register): Update.
7577
b9362cc7
AC
75782003-06-08 Andrew Cagney <cagney@redhat.com>
7579
7580 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7581 from GCC's acinclude.m4.
7582 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7583 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7584 * main.c (error_init): Delete declaration.
7585 * defs.h (error_init): Declare.
7586 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7587 (rs6000_convert_from_func_ptr_addr): Make static.
7588 (_initialize_rs6000_tdep): Add declaration.
7589 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7590 (show_commands, set_verbose, show_history): Delete declaration.
7591 * top.h (set_verbose): Add declaration.
7592 (show_history, set_history, show_commands): Add declaration.
7593 (do_restore_instream_cleanup): Add declaration.
7594 * objc-lang.c (specialcmp): Make static.
7595 (print_object_command): Make static.
7596 (find_objc_msgsend): Make static.
7597 (find_objc_msgcall_submethod_helper): Make static.
7598 (find_objc_msgcall_submethod): Make static.
7599 (_initialize_objc_language): Add declaration.
7600 (find_implementation_from_class): Make static.
7601 (find_implementation): Make static.
7602 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7603 * objc-lang.h (lookup_struct_typedef): Add declaration.
7604 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7605 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7606 (do_restore_user_call_depth): Make static.
7607 (do_restore_instream_cleanup): Delete declaration.
7608 (dont_repeat): Delete declaration.
7609 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7610 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7611 * reggroups.c (_initialize_reggroup): Add declaration.
7612 * cp-support.c (_initialize_cp_support): Add declaration.
7613 * cp-abi.c (_initialize_cp_abi): Add declaration.
7614 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7615 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7616 (_initialize_gnu_v3_abi): Add declaration.
7617 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7618 (_initialize_gnu_v2_abi): Add declaration.
7619 * frame-base.c (_initialize_frame_base): Add declaration.
7620 * doublest.c (floatformat_from_length): Make static.
7621 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7622 * frame.c (create_sentinel_frame): Make static.
7623 (_initialize_frame): Add declaration.
7624 * top.c (do_catch_errors): Make static.
7625 (gdb_rl_operate_and_get_next_completion): Make static.
7626 * typeprint.c: Include "typeprint.h".
7627 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7628 (sentinel_frame_this_id): Make static.
7629 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7630 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7631 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7632 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7633 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7634 * maint.c (maintenance_print_architecture): Make static.
7635 * signals/signals.c (_initialize_signals): Add declaration.
7636 * std-regs.c (_initialize_frame_reg): Add declaration.
7637 * jv-exp.y (push_variable): ISO C definition.
7638 (push_qualified_expression_name): Ditto.
7639 * memattr.c (_initialize_mem): Add declaration.
7640 * remote.c (remote_check_watch_resources): Make static.
7641 (remote_stopped_by_watchpoint): Make static.
7642 (remote_stopped_data_address): Make static.
7643 * d10v-tdep.c (nr_dmap_regs): Make static.
7644 (a0_regnum): Make static.
7645 (d10v_frame_unwind_cache): Make static.
7646 (d10v_frame_p): Make static.
7647 * osabi.c (show_osabi): Make static.
7648 (_initialize_gdb_osabi): Add extern declaration.
7649 * gdbtypes.c (make_qualified_type): Make static.
7650 (safe_parse_type): Make static.
7651 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7652 * macrotab.c (macro_bcache_free): Make static.
7653 * interps.c (interp_set_quiet): Make static.
7654 (interpreter_exec_cmd): Make static.
7655 * stack.h (select_frame_command): New file.
7656 * stack.c: Include "stack.h".
7657 (select_frame_command_wrapper): Delete function.
7658 (select_frame_command): Make global.
7659 * infcall.c: Include "infcall.h".
7660 * linespec.c: Include "linespec.h".
7661 * symfile.c (sections_overlap): Make static.
7662 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7663 * charset.c (_initialize_charset): Add missing prototype.
7664 * regcache.c (init_legacy_regcache_descr): Make static.
7665 (do_regcache_xfree): Make static.
7666 (regcache_xfer_part): Make static.
7667 (_initialize_regcache): Add missing prototype.
7668 * breakpoint.c (parse_breakpoint_sals): Make static.
7669 (breakpoint_sals_to_pc): Make static.
7670 * interps.h (clear_interpreter_hooks): ISO C declaration.
7671 * Makefile.in (stack_h): Define.
7672 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7673 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7674
a0f267c7
AC
76752003-06-08 Andrew Cagney <cagney@redhat.com>
7676
7677 * Makefile.in (d10v-tdep.o): Update dependencies.
7678 (SFILES): Add trad-frame.c.
7679 (trad_frame_h): Define.
7680 (COMMON_OBS): Add trad-frame.o.
7681 (trad-frame.o): Specify dependencies.
7682 * d10v-tdep.c: Include "trad-frame.h".
7683 (saved_regs_unwinder): Delete function.
7684 (d10v_frame_prev_register): Use trad_frame_prev_register.
7685 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7686 trad_frame", delete "regs" and "prev_sp".
7687 (prologue_find_regs): Use trad-frame.
7688 * trad-frame.h, trad-frame.c: New files.
7689
4538b4f4
MK
76902003-06-08 Mark Kettenis <kettenis@gnu.org>
7691
7692 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7693
a0273b2f
AF
76942003-06-07 Adam Fedor <fedor@gnu.org>
7695
7696 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7697 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7698 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7699 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7700 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7701 Use it.
7702
3a6c3343
AC
77032003-06-07 Andrew Cagney <cagney@redhat.com>
7704
7705 * symfile.h: Re-indent, clean up comments.
7706
b46e02f6
AC
77072003-06-07 Andrew Cagney <cagney@redhat.com>
7708
7709 * inferior.h (deprecated_write_sp): Replace
7710 generic_target_write_sp.
7711 * regcache.c (deprecated_write_sp): Replace
7712 generic_target_write_sp.
7713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7714 * vax-tdep.c (vax_gdbarch_init): Update.
7715 * v850-tdep.c (v850_gdbarch_init): Update.
7716 * sparc-tdep.c (sparc_gdbarch_init): Update.
7717 * sh-tdep.c (sh_gdbarch_init): Update.
7718 * s390-tdep.c (s390_gdbarch_init): Update.
7719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7720 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7721 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7722 * mcore-tdep.c (mcore_gdbarch_init): Update.
7723 * m68k-tdep.c (m68k_gdbarch_init): Update.
7724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7725 * ia64-tdep.c (ia64_gdbarch_init): Update.
7726 * h8300-tdep.c (h8300_gdbarch_init): Update.
7727 * frv-tdep.c (frv_gdbarch_init): Update.
7728 * cris-tdep.c (cris_gdbarch_init): Update.
7729 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7730
a42e117c
AC
77312003-06-07 Andrew Cagney <cagney@redhat.com>
7732
7733 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7734 Assert that PC_REGNUM is valid.
7735 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7736
bd1ce8ba
AC
77372003-06-07 Andrew Cagney <cagney@redhat.com>
7738
7739 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7740 * gdbarch.h, gdbarch.c: Regenerate.
7741 * mn10300-tdep.c: Include "gdb_assert.h".
7742 (mn10300_read_fp): New function.
7743 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7744 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7745 * ia64-tdep.c: Include "gdb_assert.h".
7746 (ia64_read_fp): New function.
7747 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7748 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7749 * regcache.c (generic_target_read_sp): Delete function.
7750 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7751 * inferior.h (generic_target_read_sp): Delete declaration.
7752 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7753 generic_target_read_sp.
7754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7755 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7756 * sh-tdep.c (sh_gdbarch_init): Ditto.
7757 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7758 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7759
ec5cbaec
AC
77602003-06-07 Andrew Cagney <cagney@redhat.com>
7761
7762 * gdbarch.sh: Comment each field of startup_gdbarch.
7763 * gdbarch.h, gdbarch.c: Re-generate.
7764
cde9ea48
AC
77652003-06-07 Andrew Cagney <cagney@redhat.com>
7766
7767 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769 * regcache.c: Update comments on read_pc et.al.
7770 (generic_target_read_pc): Delete function.
7771 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7772 * inferior.h (generic_target_read_pc): Delete declaration.
7773 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7774 generic_target_read_pc.
7775 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7776 * sh-tdep.c (sh_gdbarch_init): Ditto.
7777 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7779
9a90a780
AC
77802003-06-07 Andrew Cagney <cagney@redhat.com>
7781
7782 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7783 "index" with "special_local_sect". Use strcmp instead of STREQ.
7784 Append period to coments.
7785
a39a16c4
MM
77862003-06-06 Mark Mitchell <mark@codesourcery.com>
7787
7788 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7789 (elfstab_offset_sections): Likewise.
7790 * gdb-stabs.h (stab_section_info): Likewise.
7791 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7792 * objfiles.c (objfile_relocate): Likewise.
7793 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7794 * remote.c (get_offsets): Likewise.
7795 (remote_cisco_objfile_relocate): Likewise.
7796 * somread.c (som_symfile_offsets): Likewise.
7797 * symfile.c (alloc_section_addr_info): New function.
7798 (build_section_addr_info_from_section_tab): Use it.
7799 (free_section_addr_info): Adjust.
7800 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7801 (syms_from_objfile): Allocate local_addr dynamically.
7802 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7803 dynamically.
7804 (add_symbol_file_command): Allocate sect_opts dynamically.
7805 (reread_symbols): Avoid use of SECT_OFF_MAX.
7806 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7807 (alloc_section_addr_info): Declare it.
7808 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7809 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7810 dynamically.
7811 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7812
20c6c2f8
AC
78132003-06-06 Andrew Cagney <cagney@redhat.com>
7814
7815 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7816 (d10v_frame_unwind_cache): Do not set "return_pc".
7817
884a26c8
MS
78182003-06-06 Michael Snyder <msnyder@redhat.com>
7819
7820 * h8300-tdep.c: Make tidy (long lines).
7821
088ce440
ML
78222003-06-06 Michal Ludvig <mludvig@suse.cz>
7823
8ffd9b1b 7824 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7825 to regcache_collect().
7826
7d773d96
JB
78272003-06-05 J. Brobecker <brobecker@gnat.com>
7828
7829 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7830 pc_in_sigtramp multiarch method.
7831 (hppa_hpux_som_init_abi): Use it.
7832 (hppa_hpux_elf_init_abi): Likewise.
7833 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7834 macro has been multiarched.
7835 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7836 macro here, as hppa64 isn't multiarched yet.
7837
1df6926e
AC
78382003-06-05 Andrew Cagney <cagney@redhat.com>
7839
7840 * Makefile.in (value_h): Add $(frame_h).
7841 * value.h: Include "frame.h".
7842 (struct value): Replace "frame_addr" with "frame_id".
7843 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7844 * values.c (allocate_value): Use VALUE_FRAME_ID.
7845 (value_copy): Use VALUE_FRAME_ID.
7846 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7847 * valops.c (value_assign): Update. Use frame_find_by_id.
7848
6b53acc6
ML
78492003-06-05 Michal Ludvig <mludvig@suse.cz>
7850
7851 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7852 in each pass.
7853
4d9850d3
JJ
78542003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7855
7856 * thread-db.c (check_event): For create/death event breakpoints,
7857 loop through all messages to ensure that we read the message
7858 corresponding to the breakpoint we are at.
7859
8efca6ba
MS
78602003-06-04 Michael Snyder <msnyder@redhat.com>
7861
7862 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7863
0912c7f2
MK
78642003-06-04 Mark Kettenis <kettenis@gnu.org>
7865
7866 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7867 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7868 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7869 when handling .eh_frame sections.
7870
4e370325
JB
78712003-06-04 J. Brobecker <brobecker@gnat.com>
7872
7873 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7874 prepare_to_proceed procedure instead of the hppa-specific one.
7875 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7876
b757528f 78772003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7878
b757528f
JJ
7879 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7880 * config.in: Regenerated.
7881 * configure.in: Add test for syscall function and check for
7882 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7883 * configure: Regenerated.
7884 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7885 <sys/syscall.h>.
7886 (kill_lwp): New function that uses tkill syscall or
7887 uses kill, depending on whether threading model is nptl or not.
7888 All callers of kill() changed to use kill_lwp().
7889 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7890 see if all threads have already exited in the nptl model.
7891 (stop_and_resume_callback): New callback function used by the
7892 lin_lwp_wait thread exit handling code.
7893 (stop_wait_callback): Check for threads already having exited and
7894 delete such threads fromt the lwp list when discovered.
7895 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7896
b757528f
JJ
7897 Roland McGrath <roland@redhat.com>
7898 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7899 nptl libthread_db.
7900
087779b1
RH
79012003-06-03 Richard Henderson <rth@redhat.com>
7902
b21fd293
RH
7903 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7904 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7905 (alpha_sigtramp_frame_prev_register): Likewise.
7906 (alpha_heuristic_frame_prev_register): Likewise.
7907 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7908
8ffd9b1b 7909 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7910 alpha-specific register id names.
7911 (alpha_mdebug_frame_unwind_cache): Likewise.
7912 (alpha_mdebug_frame_prev_register): Likewise.
7913
baa490c4
RH
79142003-06-03 Richard Henderson <rth@redhat.com>
7915
7916 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7917 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7918 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7919 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7920 unwind routines.
7921 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7922 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7923 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7924
7925 * alpha-linux-tdep.c: Remove unnecessary includes.
7926 * Makefile.in (alpha-linux-tdep.o): Update.
7927
79282003-06-03 Richard Henderson <rth@redhat.com>
7929
7930 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7931 (alphabsd_fill_fpreg): Likewise.
7932
f534e522
JB
79332003-06-03 J. Brobecker <brobecker@gnat.com>
7934
7935 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7936 references to struct frame_info fields by calls to the equivalent
7937 accessors. Necessary now that frame_info is opaque.
7938
4035536b
JB
79392003-06-03 J. Brobecker <brobecker@gnat.com>
7940
7941 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7942 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7943 structure, field no longer exists.
7944
0bd79c5c
JB
79452003-06-03 J. Brobecker <brobecker@gnat.com>
7946
7947 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7948 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7949
37bb6d9f
JB
79502003-06-03 J. Brobecker <brobecker@gnat.com>
7951
7952 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7953 references to struct frame_info fields by calls to the equivalent
7954 accessors. Necessary now that frame_info is opaque.
7955
852ee05c
JB
79562003-06-03 J. Brobecker <brobecker@gnat.com>
7957
7958 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7959 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7960 structure, field no longer exists.
7961
7d58c67d
TR
79622003-06-03 Theodore A. Roth <troth@openavr.org>
7963
8ffd9b1b 7964 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7965 accumulation of the size of all registers instead of blindly using
7966 DEPRECATED_REGISTER_BYTES.
7967
0a48e7e8
MS
79682003-06-03 Michael Snyder <msnyder@redhat.com>
7969
7970 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7971 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7972 for h8300sx.
7973
9798ab0d
JB
79742003-06-03 J. Brobecker <brobecker@gnat.com>
7975
7976 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7977 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7978
00b037e2
AC
79792003-06-03 Andrew Cagney <cagney@redhat.com>
7980
7981 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7982 (sparc_convert_to_raw): Delete function.
7983 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7984 register_convert_to_virtual.
7985
043b2f77
JJ
79862003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7987
7988 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7989 layer if not dealing with a statically-linked threaded program.
7990
f43caff8
KW
79912003-06-03 Kris Warkentin <kewarken@qnx.com>
7992
7993 * solib.c (solib_open): Update comment to reflect actual search order.
7994
ae1e7417
AC
79952003-06-03 Andrew Cagney <cagney@redhat.com>
7996
7997 * frame.c (get_frame_memory_signed): New function.
7998 (get_frame_memory, get_frame_memory_unsigned): New function.
7999 (get_frame_arch): New function.
8000 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8001 (get_frame_memory, get_frame_unsigned_memory): Declare.
8002 * d10v-tdep.c (d10v_frame_unwind_cache): Use
8003 get_frame_memory_unsigned and get_frame_arch.
8004 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8005
cb123844
RG
80062003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
8007
8008 * MAINTAINERS (write after approval): Add myself.
8009
1bb792e9
JB
80102003-06-03 Jim Blandy <jimb@redhat.com>
8011
8012 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8013 elements of gregset_t are 64 bits each, but access registers
8014 are still 32 bits, so they're packed two per gregset_t
8015 element. Unpack/pack them properly.
8016
aee8d8ba
DC
80172003-06-02 David Carlton <carlton@bactrian.org>
8018
8019 * linespec.c (find_methods): Break out code into
8020 add_matching_methods and add_constructors.
8021 (add_matching_methods): New.
8022 (add_constructors): Ditto.
8023
bf7488d2
AC
80242003-06-02 Andrew Cagney <cagney@redhat.com>
8025
bf7488d2
AC
8026 * sparc-tdep.c (sparc_print_registers): Delete call to
8027 REGISTER_CONVERTIBLE.
8028 (sparc_gdbarch_init): Do not set register_convertible.
8029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8030 * frv-tdep.c (frv_gdbarch_init): Ditto.
8031 * cris-tdep.c (cris_gdbarch_init): Ditto.
8032
adedef68
EZ
80332003-06-02 Elena Zannoni <ezannoni@redhat.com>
8034
8ffd9b1b 8035 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
8036 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8037 (syms_from_objfile): Ditto.
8038
650fcc91
AS
80392003-06-03 Andreas Schwab <schwab@suse.de>
8040
8041 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8042 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8043
df4a182b
RH
80442003-06-02 Richard Henderson <rth@redhat.com>
8045
8046 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8047 a member of all_reggroup.
8048
c483c494
RH
80492003-06-02 Richard Henderson <rth@redhat.com>
8050
8051 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8052 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8053 (alpha_lds, alpha_sts): New.
8054 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 8055 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
8056 restructure and fail for type sizes other than 4 or 8.
8057 (alpha_value_to_register): Similarly.
8058 (alpha_extract_return_value): Use alpha_sts.
8059 (alpha_store_return_value): Use alpha_lds.
8060 (alpha_gdbarch_init): Update hooks.
8061
b38b6be2
RH
80622003-06-02 Richard Henderson <rth@redhat.com>
8063
8064 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8065 regnum identifiers.
8066 (alpha_sigtramp_register_address): Likewise.
8067
98a8e1e5
RH
80682003-06-02 Richard Henderson <rth@redhat.com>
8069
8070 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8071 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8072 * alpha-tdep.h: Declare them.
8073
8074 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8075 Remove zerobuf. Don't error on UNIQUE.
8076 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8077 (ALPHA_REGSET_UNIQUE): Provide default.
8078 (supply_gregset): Use alpha_supply_int_regs.
8079 (fill_gregset): Use alpha_fill_int_regs.
8080 (supply_fpregset): Use alpha_supply_fp_regs.
8081 (fill_fpregset): Use alpha_fill_fp_regs.
8082 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8083 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8084 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8085 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8086 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8087 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8088
67dfac52
RH
80892003-06-02 Richard Henderson <rth@redhat.com>
8090
f75d70cc
RH
8091 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8092
67dfac52
RH
8093 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8094 (alpha_store_return_value): Likewise.
8095
0cf566ec
DC
80962003-06-02 David Carlton <carlton@math.stanford.edu>
8097
8098 * block.c (contained_in): Add 'const' to arguments.
8099 (block_function): Ditto.
8100 * block.h: Update declarations for block_function and
8101 contained_in.
8102
cdef89d0
DC
81032003-06-02 David Carlton <carlton@math.stanford.edu>
8104
8105 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8106 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8107 * p-valprint.c (pascal_val_print): Ditto.
8108 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8109
72667056
RH
81102003-06-02 Richard Henderson <rth@redhat.com>
8111
98a8e1e5
RH
8112 * alpha-tdep.c (alpha_push_dummy_call): Use
8113 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 8114
8ffd9b1b 8115 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
8116 sign-extension of 32-bit values.
8117 (alpha_store_return_value): Similarly.
0ede8eca 8118
98a8e1e5
RH
8119 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8120 (alpha_extract_return_value): Likewise.
8121 (alpha_store_return_value): Likewise.
7b5e1cb3 8122
98a8e1e5
RH
8123 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8124 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 8125
98a8e1e5
RH
8126 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8127 (alpha_extract_struct_value_address): Likewise.
8128 (alpha_store_return_value): Likewise.
8129 (alpha_store_struct_return): Remove.
8130 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 8131
98a8e1e5
RH
8132 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8133 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8134 macros where appropriate.
8135 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8136 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8137
98a8e1e5
RH
8138 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8139 for SP, GP; void_func_ptr for PC; non-language-specific types
8140 for all others.
8141 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8142
6dd77b81
RH
81432003-06-02 Richard Henderson <rth@redhat.com>
8144
8145 * top.h (lim_at_start): Declare.
8146 * main.c (captured_main): Set it.
8147 * top.c (lim_at_start): Define.
8148 (command_loop): Use it instead of &environ.
8149 * event-top.c (command_handler): Likewise.
8150
f4dbdb54
JT
81512003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8152
8153 * mipsnbsd-tdep.c: Update copyright years.
8154 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8155
8f285956
RH
81562003-06-01 Richard Henderson <rth@redhat.com>
8157
98a8e1e5
RH
8158 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8159 (alpha-linux-tdep.o): Update dependencies.
8160 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8161 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8162
615967cb
RH
81632003-06-01 Richard Henderson <rth@redhat.com>
8164
98a8e1e5
RH
8165 * alpha-tdep.c (alpha_register_reggroup_p): New.
8166 (alpha_gdbarch_init): Register it.
615967cb 8167
b59661bd
AC
81682003-06-02 Andrew Cagney <cagney@redhat.com>
8169
8170 * dwarfread.c: Eliminate "register"
8171 (decode_die_type): Eliminate assignment within "if".
8172 (struct_type, decode_array_element_type): Ditto.
8173 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8174 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8175 (decode_modified_type, completedieinfo): Ditto.
8176 * block.c: Eliminate "register".
8177 (blockvector_for_pc_sect): Eliminate assignment within "if".
8178 * cp-support.h (struct symbol): Opaque declaration.
8179 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8180
5ef165c2
RH
81812003-06-01 Richard Henderson <rth@redhat.com>
8182
98a8e1e5
RH
8183 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8184 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8185
143985b7
AF
81862003-06-01 Adam Fedor <fedor@gnu.org>
8187
8188 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8189 * gdbarch.[ch]: Regenerate.
8190 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8191 (hppa_gdbarch_init): Set it in the gdbarch vector.
8192 * i386-tdep.c (i386_fetch_pointer_argument): New
8193 (i386_gdbarch_init): Set it into gdbarch.
8194 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8195 (rs6000_gdbarch_init): Set it in gdbarch.
8196 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8197 (sparc_gdbarch_init): Set it in gdbarch.
8198
ae0167b9
AC
81992003-06-01 Andrew Cagney <cagney@redhat.com>
8200
7c0b4a20
AC
8201 * defs.h (extract_address): Delete declaration.
8202 * findvar.c (extract_address): Delete function.
8203 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8204 extract_address with the inline equivalent,
8205 extract_unsigned_integer.
8206 (xstormy16_extract_struct_value_address): Ditto.
8207 (xstormy16_pointer_to_address): Ditto.
8208 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8209 * v850-tdep.c (v850_push_arguments): Ditto.
8210 (v850_extract_return_value): Ditto.
8211 (v850_extract_struct_value_address): Ditto.
8212 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8213 (sparcnbsd_get_longjmp_target_64): Ditto.
8214 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8215 (get_longjmp_target): Ditto.
8216 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8217 (sh64_extract_struct_value_address): Ditto.
8218 (sh_push_arguments): Ditto.
8219 (sh64_push_arguments): Ditto.
8220 * remote-vxsparc.c (vx_read_register): Ditto.
8221 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8222 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8223 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8224 * mipsv4-nat.c (get_longjmp_target): Ditto.
8225 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8226 * mips-nat.c (get_longjmp_target): Ditto.
8227 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8228 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8229 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8230 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8231 * irix5-nat.c (get_longjmp_target): Ditto.
8232 * irix4-nat.c (get_longjmp_target): Ditto.
8233 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8234 (ia64_push_arguments): Ditto.
8235 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8236 * h8300-tdep.c (h8300_push_arguments): Ditto.
8237 (h8300_store_return_value): Ditto.
8238 (h8300_extract_struct_value_address): Ditto.
8239 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8240 (frv_push_arguments): Ditto.
8241 * avr-tdep.c (avr_pointer_to_address): Ditto.
8242 (avr_push_arguments): Ditto.
8243 * arm-tdep.c (arm_push_dummy_call): Ditto.
8244 (arm_get_longjmp_target): Ditto.
8245 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8246 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8247 (alpha_get_longjmp_target): Ditto.
8248
ae0167b9
AC
8249 * solib-irix.c (extract_mips_address): Inline extract_address,
8250 replacing it with extract_signed_integer.
8251 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8252 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8253 (first_link_map_member, open_symbol_file_object): Ditto.
8254 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8255 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8256 (LM_NEXT, LM_NAME): Ditto.
8257
44d88583
RH
82582003-06-01 Richard Henderson <rth@redhat.com>
8259
98a8e1e5
RH
8260 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8261 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8262 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8263 (alpha_cannot_store_register): Likewise.
8264 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8265 * alpha-nat.c (supply_gregset): Likewise.
8266 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8267
310e9b6a
AC
82682003-06-01 Andrew Cagney <cagney@redhat.com>
8269
8270 * infcall.c (call_function_by_hand): Update comment on
8271 DEPRECATED_DUMMY_WRITE_SP.
8272
8273 * mips-tdep.c (mips_gdbarch_init): Do not set
8274 deprecated_dummy_write_sp.
8275 (mips_eabi_push_dummy_call): Set the SP register.
8276 (mips_o64_push_dummy_call): Set the SP register.
8277 (mips_o32_push_dummy_call): Set the SP register.
8278 (mips_n32n64_push_dummy_call): Set the SP register.
8279
5ab84872
RH
82802003-06-01 Richard Henderson <rth@redhat.com>
8281
98a8e1e5
RH
8282 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8283 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8284 (supply_gregset): Likewise.
8285 * alpha-tdep.c (alpha_store_return_value): Likewise.
8286 (alpha_get_longjmp_target): Likewise.
8287 (alpha_register_name): Constify array.
8288 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8289 deprecated_register_size, deprecated_register_bytes,
8290 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8291 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8292 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8293
09cc52fd
RH
82942003-06-01 Richard Henderson <rth@redhat.com>
8295
8296 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8297 from arg_reg_buffer to regcache to avoid double conversion.
8298
c7f16359
MK
82992003-06-01 Mark Kettenis <kettenis@gnu.org>
8300
8301 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8302 SP_REGNUM.
8303 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8304 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8305
7131cb6e
RH
83062003-06-01 Richard Henderson <rth@redhat.com>
8307
98a8e1e5
RH
8308 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8309 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8310
f3e0f90b
RH
83112003-06-01 Richard Henderson <rth@redhat.com>
8312
98a8e1e5
RH
8313 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8314 not overlapping PC_REGNUM.
f3e0f90b 8315
c88e30c0
RH
83162003-06-01 Richard Henderson <rth@redhat.com>
8317
98a8e1e5
RH
8318 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8319 alpha_push_arguments. Don't dump argument register data to
8320 the target stack. Fix float and 128-bit long double semantics.
8321 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8322 (alpha_fix_call_dummy): Remove.
8323 (alpha_call_dummy_words): Remove.
8324 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8325
f1a559ae
RH
83262003-06-01 Richard Henderson <rth@redhat.com>
8327
8328 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8329
5e045346
AC
83302003-06-01 Andrew Cagney <cagney@redhat.com>
8331
95404a3e
AC
8332 * mips-tdep.c (is_mips16_addr): New function.
8333 (make_mips16_addr, unmake_mips16_addr): New functions.
8334 (pc_is_mips16, mips_fetch_instruction): Use.
8335 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8336 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8337 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8338 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8339 TARGET_MIPS.
8340 * config/mips/tm-mips.h: Update copyright.
8341 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8342 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8343 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8344 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8345 (TM_PRINT_INSN_MACH): Delete.
8346 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8347
5e045346
AC
8348 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8349 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8350 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8351 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8352 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8353 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8354 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8355 mips*-*-riscos* and mips*-*-sysv* onto mips.
8356 * config/mips/mips64.mt: New file.
8357 * config/mips/mips.mt: New file.
8358 * config/mips/littlemips.mt: Delete file.
8359 * config/mips/decstation.mt: Delete file.
8360 * config/mips/vr4300el.mt: Delete file.
8361 * config/mips/vr5000el.mt: Delete file.
8362 * config/mips/vr5000.mt: Delete file.
8363 * config/mips/vr4100.mt: Delete file.
8364 * config/mips/vr4xxxel.mt: Delete file.
8365 * config/mips/vr4300.mt: Delete file.
8366 * config/mips/vr4xxx.mt: Delete file.
8367 * config/mips/bigmips.mt: Delete file.
8368 * config/mips/bigmips64.mt: Delete file.
8369 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8370 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8371 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8372 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8373 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8374 "tm-bigmips.h".
8375 * config/mips/tm-irix3.h: Ditto.
8376 * config/mips/tm-mipsv4.h: Ditto.
8377 * config/mips/tm-embed.h: Ditto.
8378 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8379 "tm-bigmips64.h".
8380 * config/mips/tm-vr5000el.h: Delete file.
8381 * config/mips/tm-tx39l.h: Delete file.
8382 * config/mips/tm-vr4300el.h: Delete file.
8383 * config/mips/tm-vr4xxxel.h: Delete file.
8384 * config/mips/tm-vr4300.h: Delete file.
8385 * config/mips/tm-vr4100.h: Delete file.
8386 * config/mips/tm-vr4xxx.h: Delete file.
8387 * config/mips/tm-vr5000.h: Delete file.
8388 * config/mips/tm-embedl64.h: Delete file.
8389 * config/mips/tm-embedl.h: Delete file.
8390 * config/mips/tm-embed64.h: Delete file.
8391 * config/mips/tm-bigmips64.h: Delete file.
8392 * config/mips/tm-bigmips.h: Delete file.
8393
2473a4a9
MK
83942003-06-01 Mark Kettenis <kettenis@gnu.org>
8395
97a5b208
MK
8396 Fix gdb/1216.
8397 * shnbsd-nat.c: Include "sh-tdep.h".
8398
2473a4a9
MK
8399 From Richard Henderson <rth@redhat.com>:
8400 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8401
e0f7ec59
AC
84022003-05-31 Andrew Cagney <cagney@redhat.com>
8403
8404 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8405 forward declaration.
8406 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8407 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8408 (mips_find_saved_regs): Use set_reg_offset.
8409 (mips_frame_init_saved_regs): Delete function.
8410 (mips_pop_frame): Call mips_find_saved_regs instead of
8411 DEPRECATED_FRAME_INIT_SAVED_REGS.
8412
68dcc709
AC
84132003-05-31 Andrew Cagney <cagney@redhat.com>
8414
8415 * mips-tdep.c (mips_gdbarch_init): Do not set
8416 deprecated_max_register_raw_size, register_virtual_size, and
8417 deprecated_max_register_virtual_size.
8418
cfc14b3a
MK
84192003-05-31 Mark Kettenis <kettenis@gnu.org>
8420
6405b0a6
MK
8421 * i386-tdep.c: Include "dwarf2-frame.h".
8422 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8423 * Makefile.in (i386-tdep.o): Update dependencies.
8424
cfc14b3a
MK
8425 * dwarf2-frame.c, dwarf2-frame.h: New files.
8426 * Makefile.in (SFILES): Add dwarf2-frame.c.
8427 (dwarf2_frame_h): Define.
8428 (COMMON_OBS): Add dwarf2-frame.o.
8429 (dwarf2-frame.o): Add dependencies.
8430
6a2751d2
AJ
84312003-05-31 Andreas Jaeger <aj@suse.de>
8432
8433 * x86-64-linux-nat.c: Fix comment.
8434
1c3545ae
MK
84352003-05-31 Mark Kettenis <kettenis@gnu.org>
8436
10f93086
MK
8437 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8438 function signature.
8439
1c3545ae
MK
8440 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8441 have a sigcontext_addr handler.
8442 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8443 sigcontext_addr handler.
8444
e11c53d2
AC
84452003-05-31 Andrew Cagney <cagney@redhat.com>
8446
8447 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8448 (print_fp_register_row): Replace do_fp_register_row.
8449 (mips_print_fp_register): Add "file" and "frame" parameters.
8450 (mips_print_register): Add "file" and "frame" parameters.
8451 (mips_print_registers_info): Replace mips_do_registers_info.
8452 (mips_gdbarch_init): Set print_registers_info instead of
8453 deprecated_do_registers_info.
8454 (mips_read_fp_register_single): Add "frame" parameter.
8455 (mips_read_fp_register_double): Add "frame" parameter.
8456
a3386186
MK
84572003-05-31 Mark Kettenis <kettenis@gnu.org>
8458
70913449
MK
8459 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8460 Fixes a bug where GDB would print the wrong register names for
8461 targets without SSE.
8462
2b5e0749
MK
8463 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8464 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8465 registers.
8466
8467 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8468 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8469 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8470 TDEP->sc_sp_offset.
8471
a3386186
MK
8472 From Michal Ludvig <mludvig@suse.cz>:
8473 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8474 and `sc_num_regs'.
8475 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8476 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8477 I386_ST0_REGNUM): Move here from...
8478 * i386-tdep.c: ... here.
8479 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8480 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8481 registers if possible.
8482 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8483 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8484 Remove variables.
8485 (i386bsd_sc_reg_offset): New variable.
8486 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8487 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8488 TDEP->sc_sp_offset.
8489 (i386fbsd_sc_reg_offset): New variable.
8490 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8491 TDEP->sc_num_regs.
8492 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8493 variables.
8494 (i386fbsd4_sc_reg_offset): New variable.
8495 (i3864bsd4_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 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8499 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8500 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8501 Remove variables.
8502 (i386nbsd_sc_reg_offset): New variable.
8503 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8504 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8505 TDEP->sc_sp_offset.
8506 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8507 Remove variables.
8508 (i386obsd_sc_reg_offset): New variable.
8509 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8510 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8511 TDEP->sc_sp_offset.
8512 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8513 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8514 for frame pointer offset in `struct sigcontext'.
8515
25ab4790
AC
85162003-05-31 Andrew Cagney <cagney@redhat.com>
8517
8518 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8519 architecture methods call_dummy_words, sizeof_call_dummy_words,
8520 push_return_address, store_struct_return, and fix_call_dummy. Set
8521 push_dummy_call instead of deprecated_push_arguments.
8522 (mips_store_struct_return): Delete function.
8523 (mips_fix_call_dummy): Delete function.
8524 (mips_push_return_address): Delete function.
8525 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8526 RA_REGNUM and T9_REGNUM.
8527 (mips_n32n64_push_dummy_call): Ditto for
8528 mips_n32n64_push_arguments.
8529 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8530 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8531
6a65450a
AC
85322003-05-31 Andrew Cagney <cagney@redhat.com>
8533
8534 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8535 "dummy_addr" to "bp_addr".
8536 * infcall.c (call_function_by_hand): Pass "funaddr" to
8537 gdbarch_push_dummy_call.
8538 * gdbarch.h, gdbarch.c: Re-generate.
8539 * i386-tdep.c (i386_push_dummy_call): Update.
8540 * arm-tdep.c (arm_push_dummy_call): Update.
8541 * d10v-tdep.c (d10v_push_dummy_call): Update.
8542
c4f35dd8
MK
85432003-05-31 Mark Kettenis <kettenis@gnu.org>
8544
8545 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8546 variable declarations.
8547 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8548 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8549 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8550 x86_64_init_frame_pc, x86_64_init_frame_pc,
8551 x86_64_function_has_prologue): Remove prototypes.
8552 (X86_64_NUM_GREGS): New define.
8553 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8554 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8555 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8556 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8557 XMM1_REGNUM): Remove defines.
8558 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8559 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8560 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8561 X86_64_XMM1_REGNUM): New defines.
8562 (struct x86_64_register_info): Renamed from `struct
8563 register_info'. Remove `size' member.
8564 (x86_64_register_info_table): Remove variable.
8565 (x86_64_register_info): New variable.
8566 (X86_64_NUM_REGS): New define.
8567 (X86_64_NUM_GREGS): Remove define.
8568 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8569 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8570 Remove variables.
8571 (x86_54_dwarf2_reg_to_regnum): Remove function.
8572 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8573 (x86_64_dwarf_reg_to_regnum): New function.
8574 (x86_64_register_name): Rewrite.
8575 (x86_64_register_raw_size): Remove function.
8576 (x86_64_register_byte_table): Remove variable.
8577 (x86_64_register_byte): Remove function.
8578 (x86_64_register_virtual_type): Remove function.
8579 (x86_64_register_type): New function.
8580 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8581 x86_64_register_convert_to_raw): Remove functions.
8582 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8583 (x86_64_use_struct_convention): Make static. Adjust for renamed
8584 defines.
8585 (x86_64_frame_init_saved_regs): Remove function.
8586 (x86_64_push_arguments): Make static. Change to accept a regcache
8587 as argument.
8588 (x86_64_store_return_value, x86_64_extract_return_value): Make
8589 static. Rewrite based on i386 counterparts.
8590 (x86_64_push_dummy_call): New function.
8591 (X86_64_NUM_SAVED_REGS): New define.
8592 (x86_64_register_number): Remove function.
8593 (x86_64_store_struct_return): Remove function.
8594 (x86_64_frameless_function_invocation,
8595 x86_64_function_has_prologue): Remove functions.
8596 (PROLOG_BUFSIZE): Remove define.
8597 (struct x86_64_frame_cache): New structure.
8598 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8599 x86_64_frame_cache, x86_64_frame_this_id,
8600 x86_64_frame_prev_register, x86_64_frame_p,
8601 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8602 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8603 functions.
8604 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8605 variables.
8606 (x86_64_skip_prologue): Rewrite in terms of
8607 x86_64_analyze_prologue.
8608 (x86_64_frame_base_address): New function.
8609 (x86_64_frame_base): New variable.
8610 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8611 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8612 set deprecated_fp_regnum, deprecated_register_size,
8613 deprecated_register_bytes, register_raw_size, register_byte,
8614 register_virtual_type, register_convertiable,
8615 register_convert_to_virtual, convert_to_raw,
8616 deprecated_get_saved_register, deprecated_target_read_fp,
8617 deprecated_push_arguments, deprecated_push_return_address,
8618 deprecated_pop_frame, deprecated_store_struct_return,
8619 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8620 frameless_function_invocation, deprecated_frame_saved_pc,
8621 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8622 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8623 deprecated_init_frame_pc and virtual_frame_pointer. Call
8624 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8625 and x86_64_frame_p. Call frame_base_set_default to register
8626 x86_64_frame_base.
8627 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8628 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8629 (_initialize_x86_64_tdep): Remove function.
8630 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8631 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8632 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8633 define.
8634 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8635 (x86_64_linux_sigcontext_addr): Rewrite.
8636 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8637 x86_64_linux_frame_saved_pc): Remove functions.
8638 (x86_64_linux_pc_in_sigtramp): Renamed from
8639 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8640 trampoline.
8641 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8642 Remove_functions.
8643 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8644 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8645 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8646 (x86_64_regmap): Rename to regmap.
8647 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8648 x86_64_num_gregs.
8649 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8650 x86_64_regmap.
8651 (x86_64_fxsave_offset): Remove function.
8652 (supply_fpregset): Simply call x86_64_supply_fxsave.
8653 (fill_fpregset): Simply call x86_64_fill_fxsave.
8654 (fetch_inferior_registers, store_inferior_registers): Avoid
8655 asignment in if-statement.
8656 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8657 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8658 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8659 (fetch_core_registers): Remove function.
8660 (linux_elf_core_fns): Remove.
8661 (offsetoff): Don't define.
8662 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8663 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8664 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8665 add core-regset.o.
8666 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8667 protection against multiple includes instead of NM_X86_64_h. Add
8668 various comments. Include "config/nm-linux.h". Don't include
8669 <signal.h>.
8670 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8671 GET_THREAD_SIGNALS): Remove defines.
8672 (x86_64_register_u_addr, kernel_u_size,
8673 lin_thread_get_thread_signals): Remove prototypes.
8674 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8675 [HAVE_LINK_H]: Don't include "solib.h".
8676 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8677 * config/i386/tm-x86-64linux.h: Fix comments.
8678 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8679 x86-64-tdep.o): Update dependencies.
8680
c25083af
AC
86812003-05-30 Andrew Cagney <cagney@redhat.com>
8682
c8f55a7b
AC
8683 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8684 Change parameter type to a "struct regcache *".
8685
c25083af
AC
8686 * gdbarch.sh: Regardless of the multi-arch level, always define
8687 the macro when not already defined.
8688 * gdbarch.h, gdbarch.c: Re-generate.
8689
fbe586ae
RH
86902003-05-30 Richard Henderson <rth@redhat.com>
8691
8692 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8693 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8694 (alpha_mdebug_frame_this_id): Likewise.
8695 (alpha_mdebug_frame_prev_register): Likewise.
8696 (alpha_mdebug_frame_base_address): Likewise.
8697 (alpha_mdebug_frame_locals_address): Likewise.
8698 (alpha_mdebug_frame_args_address): Likewise.
8699 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8700 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8701 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8702 loop increment.
8703 (alpha_heuristic_frame_this_id): Make static.
8704 (alpha_heuristic_frame_prev_register): Likewise.
8705 (alpha_heuristic_frame_base_address): Likewise.
8706 * alpha-tdep.h: Update.
8707
acd5c798
MK
87082003-05-30 Mark Kettenis <kettenis@gnu.org>
8709
8710 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8711 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8712 defenitions.
8713 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8714 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8715 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8716 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8717 I386_ST0_REGNUM): New defines.
8718 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8719 codestream_get): Remove define.
8720 (codestream_next_addr, condestream_addr, condestream_buf,
8721 codestream_off, codestream_cnt): Remove variables.
8722 (codestream_fill, codestream_seek, codestream_read): Remove
8723 functions.
8724 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8725 functionality.
8726 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8727 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8728 i386_frame_saved_pc, i386_saved_pc_after_call,
8729 i386_frame_num_args, i386_frame_init_saved_regs,
8730 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8731 i386_push_arguments): Remove functions.
8732 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8733 functionality. Use i386_analyze_prologue instead of
8734 i386_get_frame_setup.
8735 (I386_NUM_SAVED_REGS): New define.
8736 (struct i386_frame_cache): New structure.
8737 (i386_alloc_frame_cache, i386_analyze_struct_return,
8738 i386_skip_probe, i386_analyze_frame_setup,
8739 i386_analyze_register_saves, i386_analyze_prologue,
8740 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8741 i386_frame_prev_register, i386_sigtramp_frame_cache,
8742 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8743 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8744 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8745 New functions.
8746 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8747 New variables.
8748 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8749 I386_EAX_REGNUM and I386_EDX_REGNUM.
8750 (i386_extract_return_value, i386_store_return_value): Use
8751 I386_ST0_REGNUM where appropriate.
8752 (i386_extract_struct_value_address): Rewrite to use extract_address.
8753 (i386_svr4_pc_in_sigtramp): Add comment.
8754 (i386_svr4_sigcontext_addr): Rewrite.
8755 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8756 TDEP->sc_sp_offset.
8757 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8758 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8759 of new defines. Set push_dummy_call, don't set
8760 deprecated_push_arguments, deprecated_push_return_address,
8761 deprecated_pop_frame. Don't set parm_boundary. Don't set
8762 deprecated_frame_chain, deprecated_frame_saved_pc,
8763 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8764 save_dummy_frame_tos, unwind_pc. Call
8765 frame_unwind_append_predicate and frame_base_set_default. Don't
8766 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8767 Don't set frameless_function_invocation. Don't set
8768 deprecated_register_bytes, deprecated_register_size,
8769 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8770 * i386-linux-tdep.c: Fix formatting in some comments.
8771 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8772 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8773 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8774 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8775 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8776 redundant parentheses.
8777 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8778 (i386_linux_sigcontext_addr): Use it. Rewrite.
8779 (find_minsym_and_objfile): Change name of second argument.
8780 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8781 changed. Use frame_pc_unwind instead of
8782 DEPRECATED_SAVED_PC_AFTER_CALL.
8783 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8784 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8785 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8786 unwinder.
8787 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8788 "dummy-frame.h".
8789 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8790 (_initialize_i386_cygwin_tdep): New prototype.
8791 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8792 deprecated_frame_chain_valid.
8793 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8794 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8795 Rely on the SVR4 defaults.
8796 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8797 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8798
c89b70f1
AC
87992003-05-30 Andrew Cagney <cagney@redhat.com>
8800
8801 * infcall.c (call_function_by_hand): Always call
8802 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8803
85b32d22
RH
88042003-05-30 Richard Henderson <rth@redhat.com>
8805
c89b70f1
AC
8806 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8807 increment.
85b32d22 8808
bfe51b1e
JB
88092003-05-29 Jim Blandy <jimb@redhat.com>
8810
8811 Use gdbarch methods for solib stuff on PowerPC Linux.
8812 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8813 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8814 show through.
8815 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8816 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8817 giving the same effect as the #definitions above.
8818
1abf022c
AF
88192003-05-29 Adam Fedor <fedor@gnu.org>
8820
8821 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8822 (find_implementation_from_class): Replace it with the standard
8823 case i.e. do nothing.
8824
d2427a71
RH
88252003-05-29 Richard Henderson <rth@redhat.com>
8826
8827 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8828 (alpha_linux_sigtramp_offset): Use it. Make static.
8829 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8830 update for new frame model.
8831 * alpha-mdebug-tdep.c: New file.
8832 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8833 (alpha_osf1_init_abi): Install it.
8834 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8835 (linked_proc_desc_table): Remove.
8836 (alpha_frame_past_sigtramp_frame): Remove.
8837 (alpha_dynamic_sigtramp_offset): Remove.
8838 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8839 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8840 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8841 (push_sigtramp_desc): Remove.
8842 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8843 (alpha_cannot_store_register): Likewise.
8844 (alpha_sigcontext_addr): Remove.
8845 (alpha_find_saved_regs): Remove.
8846 (alpha_frame_init_saved_regs): Remove.
8847 (alpha_init_frame_pc_first): Remove.
8848 (read_next_frame_reg): Remove.
8849 (alpha_frame_saved_pc): Remove.
8850 (alpha_saved_pc_after_call): Remove.
8851 (temp_proc_desc, temp_saved_regs): Remove.
8852 (alpha_about_to_return): Remove.
8853 (cached_proc_desc): Remove.
8854 (alpha_frame_chain): Remove.
8855 (alpha_print_extra_frame_info): Remove.
8856 (alpha_init_extra_frame_info): Remove.
8857 (alpha_frame_locals_address): Remove.
8858 (alpha_frame_args_address): Remove.
8859 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8860 (alpha_push_dummy_frame): Remove.
8861 (alpha_pop_frame): Remove.
8862 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8863 (alpha_read_insn): New.
8864 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8865 for different insn encodings.
8866 (alpha_in_lenient_prologue): Remove.
8867 (struct alpha_sigtramp_unwind_cache): New.
8868 (alpha_sigtramp_frame_unwind_cache): New.
8869 (alpha_sigtramp_register_address): New.
8870 (alpha_sigtramp_frame_this_id): New.
8871 (alpha_sigtramp_frame_prev_register): New.
8872 (alpha_sigtramp_frame_unwind): New.
8873 (alpha_sigtramp_frame_p): New.
8874 (struct alpha_heuristic_unwind_cache): New.
8875 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8876 don't count nop insns that occur between functions.
8877 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8878 heuristic_proc_desc, but without the mdebug wrapping.
8879 (alpha_heuristic_frame_this_id): New.
8880 (alpha_heuristic_frame_prev_register): New.
8881 (alpha_heuristic_frame_unwind): New.
8882 (alpha_heuristic_frame_p): New.
8883 (alpha_heuristic_frame_base_address): New.
8884 (alpha_heuristic_frame_base): New.
8885 (alpha_unwind_dummy_id): New.
8886 (alpha_unwind_pc): New.
8887 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8888 frame related deprecated initializations; install replacements.
8889 (alpha_dump_tdep): Remove.
8890 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8891 (alpha_read_insn, alpha_after_prologue,
8892 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8893 alpha_heuristic_frame_prev_register,
8894 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8895 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8896 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8897 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8898
93ec1121
AC
88992003-05-29 Andrew Cagney <cagney@redhat.com>
8900
8901 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8902 dependant on the availability of ASSERT_FUNCTION.
8903 (ASSERT_FUNCTION): Do not define when there is no function name.
8904
98f08d3d
KB
89052003-05-29 Kevin Buettner <kevinb@redhat.com>
8906
8907 From Jimi X <jimix@watson.ibm.com>:
8908 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8909
0897f59b
JB
89102003-05-28 Jim Blandy <jimb@redhat.com>
8911
8912 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8913 argument to ptrace to int; the system headers should give it the
8914 right type, and pointers don't fit in ints on powerpc64-*-*.
8915
14898363
L
89162003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8917
8918 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8919 DW_TAG_catch_block.
8920
a7a48797
EZ
89212003-05-26 Elena Zannoni <ezannoni@redhat.com>
8922
8923 * stabsread.c (dbx_lookup_type): Make static.
8924 (read_type): Ditto.
8925 (add_undefined_type): Ditto.
8926 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8927 not export.
8928
f5479e9c
EZ
89292003-05-26 Elena Zannoni <ezannoni@redhat.com>
8930
8931 * hpread.c (hpread_has_name): Make static.
8932 (hpread_psymtab_to_symtab): Ditto.
8933 (file_exists): Ditto.
8934 (hpread_call_pxdb): Ditto.
8935 (hpread_pxdb_needed): Ditto.
8936 (hpread_quick_traverse): Ditto.
8937 (hpread_get_header): Ditto.
8938 (hpread_get_lntt): Ditto.
8939 (hpread_get_slt): Ditto.
8940 (class_of): Ditto.
8941
eb2e12d7
AS
89422003-05-25 Andreas Schwab <schwab@suse.de>
8943
78bf922a
AS
8944 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8945 stack_align and deprecated_extra_stack_alignment_needed.
8946 (m68k_stack_align): Delete.
8947
eb2e12d7
AS
8948 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8949 (m68k_register_virtual_size): Likewise.
8950 (altos_skip_prologue): Remove obsolete function.
8951 (isi_frame_num_args): Likewise.
8952 (news_frame_num_args): Likewise.
8953 (m68k_fix_call_dummy): Make static.
8954 (m68k_push_dummy_frame): Likewise.
8955 (m68k_pop_frame): Likewise.
8956 (m68k_skip_prologue): Likewise.
8957 (m68k_frame_init_saved_regs): Likewise.
8958 (m68k_saved_pc_after_call): Likewise.
8959 (m68k_get_longjmp_target): Make multi-arch.
8960 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8961 structure. Register m68k_get_longjmp_target if enabled.
8962 * m68k-tdep.h (struct gdbarch_tdep): Define.
8963 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8964
8965 * Makefile.in (config.status): Also depend on configure.tgt
8966 and configure.host.
8967 (m68klinux-tdep.o): Update dependencies.
8968 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8969 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8970 (M68K_LINUX_JB_PC): Define.
8971 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8972 and take additional parameter.
8973 (m68k_linux_sigtramp_saved_pc): Update.
8974 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8975 m68k_linux_pc_in_sigtramp, in_plt_section,
8976 find_solib_trampoline_target.
8977 * config/m68k/tm-linux.h: Don't include any tm headers.
8978 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8979 (JB_ELEMENT_SIZE): Likewise.
8980 (JB_PC): Likewise.
8981 (GET_LONGJMP_TARGET): Likewise.
8982 (IN_SIGTRAMP): Likewise.
8983 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8984
eb2c22dc
MK
89852003-05-25 Mark Kettenis <kettenis@gnu.org>
8986
8987 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8988 (sparc32_push_arguments): Re-implement by calling
8989 sparc32_do_push_arguments.
8990
44b7b84e
MK
89912003-05-25 Mark Kettenis <kettenis@gnu.org>
8992
8993 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8994 SPARC_O1_REGNUM): New defines.
8995 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8996 (sparc32_store_return_value): New function.
8997 (sparc_extract_struct_value_address): Rewrite to operate on a
8998 regcache.
8999 (sparc_gdbarch_init): Don't set
9000 deprecated_extract_struct_value_address. Set
9001 extract_struct_value_address instead. Don't set
9002 deprecated_extract_return_value and deprecated_store_return_value
9003 for 32-bit targets. Set extract_return_value and
9004 store_return_value instead.
9005 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 9006 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
9007 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9008 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9009 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9010 (sparc_store_return_value): Remove prototype.
9011 (sparc32_store_return_value): New prototype.
9012 (sparc32_extract_return_value, sparc_extract_struct_value_address):
9013 Adjust prototypes.
9014
f6ad61e3
MK
90152003-05-24 Mark Kettenis <kettenis@gnu.org>
9016
9017 * sparcnbsd-tdep.c: Include "gdb_string.h".
9018
b276f1bb
AC
90192003-05-23 Andrew Cagney <cagney@redhat.com>
9020
9021 * p-valprint.c (pascal_val_print): Replace extract_address with
9022 the inline equivalent extract_unsigned_integer.
9023 * jv-valprint.c (java_value_print): Ditto.
9024 * ada-valprint.c (ada_val_print_1): Ditto.
9025 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9026
e76c5fcc
TR
90272003-05-23 Theodore A. Roth <troth@openavr.org>
9028
9029 * blockframe.c (frameless_look_for_prologue): Remove unused
9030 after_prologue variable.
9031
2cdd89cb
MK
90322003-05-23 Mark Kettenis <kettenis@gnu.org>
9033
9034 * blockframe.c (get_pc_function_start): Rewrite to avoid
9035 asignments in if-statements.
9036
182d43bc
EZ
90372003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
9038
9039 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 9040 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
9041 files, don't relocate absolute symbols (and do use mst_abs).
9042
e8f3fcdd
AC
90432003-05-23 Andrew Cagney <cagney@redhat.com>
9044
9045 * objc-lang.c: Include "gdb_assert.h".
9046 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9047 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9048 (gdb_check, gdb_check_fatal): Delete functions.
9049 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9050 gdb_assert.
9051 (parse_selector, parse_method, find_methods, find_imps): Ditto.
9052 * Makefile.in (objc-lang.o): Update dependencies.
9053
3c23e6fb
ILT
90542003-05-22 Ian Lance Taylor <ian@airs.com>
9055
9056 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9057 with fprintf_filtered, not fprintf_unfiltered.
9058
af1342ab
AC
90592003-05-22 Andrew Cagney <cagney@redhat.com>
9060
9061 * stack.c (frame_info): Inline extract_address, replacing it with
9062 extract_unsigned_integer.
9063 * findvar.c (unsigned_pointer_to_address): Ditto.
9064 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9065 * dwarf2expr.c (dwarf2_read_address): Ditto.
9066 * frame.c (frame_pc_unwind): Update comment.
9067 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9068
47e242ec
JJ
90692003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9070
9071 * infptrace.c (detach): Call print_sys_errmsg rather than
9072 perror_with_name to issue warning message when errno is non-zero
9073 after calling ptrace detach.
9074
e2ac8128
JB
90752003-05-21 J. Brobecker <brobecker@gnat.com>
9076
9077 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9078 macro definitions from here...
9079 * hppa-tdep.c: ...to there.
9080
92b3541e
KB
90812003-05-20 Kevin Buettner <kevinb@redhat.com>
9082
9083 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9084 register_ptrace_addr(). Fix all callers.
9085
55809acb
AS
90862003-05-21 Andreas Schwab <schwab@suse.de>
9087
9088 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9089 dependencies.
9090 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9091 end.
9092 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9093 (_initialize_m68k_linux_tdep): New function.
9094 (m68k_linux_frame_saved_pc): Make static.
9095 (m68k_linux_extract_return_value): Likewise.
9096 (m68k_linux_store_return_value): Likewise.
9097 (m68k_linux_extract_struct_value_address): Likewise.
9098 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9099 Remove.
9100 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9101 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9102 (DEPRECATED_FRAME_SAVED_PC): Remove.
9103
0fbc10f7
KW
91042003-05-20 Kris Warkentin <kewarken@qnx.com>
9105
9106 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9107 regset numbering rather than our own.
9108
58da2eb2
DC
91092003-05-19 David Carlton <carlton@bactrian.org>
9110
9111 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9112
1fcb5155
DC
91132003-05-19 David Carlton <carlton@bactrian.org>
9114
9115 Partial fix for PR c++/827.
9116 * cp-support.h: Include symtab.h.
9117 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9118 * cp-namespace.c: Update contributors.
9119 (cp_lookup_symbol_nonlocal): New.
9120 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9121 (lookup_symbol_file): Ditto.
9122 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9123 * block.h: Declare block_scope, block_using, block_global_block.
9124 * block.c (block_scope): New.
9125 (block_using, block_global_block): Ditto.
9126 * Makefile.in (cp_support_h): Depend on symtab_h.
9127 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9128
5f9a71c3
DC
91292003-05-19 David Carlton <carlton@bactrian.org>
9130
9131 * language.h (struct language_defn): Add 'la_value_of_this'
9132 and 'la_lookup_symbol_nonlocal' members.
9133 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9134 lookup_symbol_static, lookup_symbol_global,
9135 lookup_symbol_aux_block.
9136 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9137 if we should search fields of this and how to do static/global
9138 lookup.
9139 (lookup_symbol_aux_block): Make extern.
9140 (basic_lookup_symbol_nonlocal): New.
9141 (lookup_symbol_static, lookup_symbol_global): Ditto.
9142 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9143 'la_lookup_symbol_nonlocal' members.
9144 * c-lang.c (c_language_defn, cplus_language_defn)
9145 (asm_language_defn, minimal_language_defn): Ditto.
9146 * jv-lang.c (java_language_defn): Ditto.
9147 * language.c (unknown_language_defn, auto_language_defn)
9148 (local_language_defn): Ditto.
9149 * m2-lang.c (m2_language_defn): Ditto.
9150 * objc-lang.c (objc_language_defn): Ditto.
9151 * scm-lang.c (scm_language_defn): Ditto.
9152 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9153 * p-lang.c (pascal_language_defn): Ditto for both.
9154 * Makefile.in (f-lang.o): Depend on value_h.
9155 (p-lang.o): Ditto.
9156
89a9d1b1
DC
91572003-05-19 David Carlton <carlton@bactrian.org>
9158
9159 * block.h: Declare block_static_block.
9160 * block.c (block_static_block): New.
9161 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9162 lookup_symbol_aux_local, calling block_static_block instead.
9163 (lookup_symbol_aux_local): Delete 'static_block' argument.
9164
eed3f8ab
DC
91652003-05-19 David Carlton <carlton@bactrian.org>
9166
9167 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9168
a09d8bda
ML
91692003-05-19 Michal Ludvig <mludvig@suse.cz>
9170
9171 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9172 register numbers mapping.
9173
69636828
AF
91742003-05-18 Adam Fedor <fedor@gnu.org>
9175
9176 * symtab.c (completion_list_objc_symbol): New function.
9177 (make_symbol_completion_list): Use it to add ObjC symbols
9178 when looking though the list.
9179 (language_search_unquoted_string): New function.
9180 (make_file_symbol_completion_list): Use it.
9181
55baeb84
AS
91822003-05-18 Andreas Schwab <schwab@suse.de>
9183
d0b45d99
AS
9184 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9185 dependencies.
9186 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9187 as m68k_linux_extract_return_value.
9188 (DEPRECATED_STORE_RETURN_VALUE): Define as
9189 m68k_linux_store_return_value.
9190 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9191 m68k_linux_extract_struct_value_address.
9192 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9193 get_next_frame, get_frame_base, get_frame_pc.
9194 (m68k_linux_frame_saved_pc): Use get_frame_base.
9195 (m68k_linux_extract_return_value): New function.
9196 (m68k_linux_store_return_value): New function.
9197 (m68k_linux_extract_struct_value_address): New function.
9198 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9199
55baeb84
AS
9200 * c-exp.y (typebase): Remove duplicate occurence of
9201 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9202 of lookup_signed_typename.
55baeb84 9203
b6b08ebf
MK
92042003-05-18 Mark Kettenis <kettenis@gnu.org>
9205
9206 * dwarf2loc.c (find_location_expression): Change type of second
9207 argument to `size_t *'.
9208 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9209 for size variable.
9210
5ad1c190
DC
92112003-05-18 David Carlton <carlton@bactrian.org>
9212
9213 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9214 'linkage_name'. Add comment.
9215 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9216 'linkage_name'.
9217 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9218 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9219 (lookup_block_symbol): Ditto.
9220
b8b527c5
AC
92212003-05-16 Andrew Cagney <cagney@redhat.com>
9222
9223 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9224 * gdbarch.h, gdbarch.c: Re-generate.
9225 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9226 * TODO (REGISTER_BYTES): Delete reference.
9227 * alpha-tdep.c (alpha_gdbarch_init): Update.
9228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9229 * x86-64-tdep.c (x86_64_init_abi): Update.
9230 * vax-tdep.c (vax_gdbarch_init): Update.
9231 * v850-tdep.c (v850_gdbarch_init): Update.
9232 * sparc-tdep.c (sparc_gdbarch_init): Update.
9233 * sh-tdep.c (sh_gdbarch_init): Update.
9234 * s390-tdep.c (s390_gdbarch_init): Update.
9235 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9236 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9237 (ns32k_gdbarch_init_32382): Update.
9238 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9239 * mcore-tdep.c (mcore_gdbarch_init): Update.
9240 * m68k-tdep.c (m68k_gdbarch_init): Update.
9241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9242 * ia64-tdep.c (ia64_gdbarch_init): Update.
9243 * i386-tdep.c (i386_gdbarch_init): Update.
9244 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9245 * hppa-tdep.c (hppa_gdbarch_init): Update.
9246 * h8300-tdep.c (h8300_gdbarch_init): Update.
9247 * frv-tdep.c (frv_gdbarch_init): Update.
9248 * cris-tdep.c (cris_gdbarch_init): Update.
9249 * avr-tdep.c (avr_gdbarch_init): Update.
9250 * arm-tdep.c (arm_gdbarch_init): Update.
9251 * sparc-tdep.c (sparc_pop_frame): Update.
9252 * rs6000-tdep.c (rs6000_pop_frame): Update.
9253 * remote.c (init_remote_state): Update.
9254 (remote_prepare_to_store): Update.
9255 * remote-vx.c (vx_prepare_to_store): Update.
9256 * remote-sds.c (sds_fetch_registers): Update.
9257 (sds_prepare_to_store): Update.
9258 * remote-array.c: Update.
9259 * regcache.c (init_legacy_regcache_descr): Update.
9260 (init_regcache_descr): Update.
9261 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9262 (mips_o64_extract_return_value): Update.
9263 * irix5-nat.c (fetch_core_registers): Update.
9264 * irix4-nat.c (fetch_core_registers): Update.
9265 * i386-tdep.h: Update.
9266 * hppa-tdep.c (pa_do_registers_info): Update.
9267 (pa_do_strcat_registers_info): Update.
9268 * cris-tdep.c (cris_register_bytes_ok): Update.
9269 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9270 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9271 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9272 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9273 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9274 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9275 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9276 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9277 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9278 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9279 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9280 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9281 (REGISTER_BYTES_OK): Update.
9282 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9283 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9284
ee2842e2
ILT
92852003-05-16 Ian Lance Taylor <ian@airs.com>
9286
9287 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9288 (vax_print_insn, print_insn_arg): Remove static functions.
9289 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9290 print_insn_vax from opcodes library.
9291 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9292
973177d3
AC
92932003-05-15 Andrew Cagney <cagney@redhat.com>
9294
aaab4dba
AC
9295 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9296 * target.h (memory_breakpoint_from_pc): Delete declaration.
9297 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9298 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9299 * monitor.c (monitor_insert_breakpoint): Use
9300 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9301 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9302 * gdbarch.h, gdbarch.c: Re-generate.
9303 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9304 (sparc_gdbarch_init): Set breakpoint_from_pc to
9305 sparc_breakpoint_from_pc.
9306 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9307 (BREAKPOINT_FROM_PC): Define.
9308 (sparc_breakpoint_from_pc): Declare.
9309 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9310 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9311 (BREAKPOINT_FROM_PC): Define.
9312 (BREAKPOINT): Delete macro.
9313 * target.h: Update comment.
9314 * s390-tdep.c (s390_gdbarch_init): Update comments.
9315 * remote.c: Update comments.
9316 * remote-mips.c: Update comments.
9317 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9318 * mem-break.c: Update comment.
9319 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9320 (ia64_memory_insert_breakpoint): Update.
9321 * config/sparc/tm-sparc.h: Update comment.
9322 * config/pa/tm-hppa64.h: Update comment.
9323 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9324 (rs6000_breakpoint_from_pc): Update.
9325 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9326 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9327 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9328 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9329 (mips_breakpoint_from_pc): Update.
9330 (mips_dump_tdep): Update.
9331
e06963ff
AC
9332 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9333 * minsyms.c (lookup_minimal_symbol): Inline
9334 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9335
973177d3
AC
9336 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9337 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9338 * p-lang.c (pascal_printstr): Ditto.
9339 * objc-lang.c (objc_printstr): Ditto.
9340 * m2-lang.c (m2_printstr): Ditto.
9341 * jv-valprint.c (java_print_value_fields): Ditto.
9342 * f-lang.c (f_printstr): Ditto.
9343 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9344 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9345 for repeat_count_threshold.
9346 * Makefile.in (cp-valprint.o): Update dependencies.
9347
5ea2bd7f 93482003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9349
5ea2bd7f
JJ
9350 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9351 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9352 they start with mov r2,r12. Support skipping over indirect stores
9353 of the input registers. Upon hitting a non-nop branch instruction
9354 or predicated instruction, bail out by setting lim_pc to the current
9355 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9356 beyond our calculated value and we have trust_limit set,
9357 use the lim_pc value.
9358
cc8c88f3
AC
93592003-05-15 Andrew Cagney <cagney@redhat.com>
9360
9361 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9362 generic_find_dummy_frame.
9363 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9364 (deprecated_generic_find_dummy_frame): Update.
9365 (deprecated_read_register_dummy): Update.
9366 * frame.c (deprecated_generic_get_saved_register): Update.
9367
909cd28e
TR
93682003-05-15 Theodore A. Roth <troth@openavr.org>
9369
9370 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9371 (avr_gdbarch_init): Set breakpoint_from_pc method.
9372
b923b08d
AC
93732003-05-15 Andrew Cagney <cagney@redhat.com>
9374
9375 * regcache.c (build_regcache): Set deprecated_register_valid
9376 directly.
9377 (deprecated_grub_regcache_for_register_valid): Delete function.
9378 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9379 declaration.
9380
ae2f03ac 93812003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9382
9383 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9384 * symtab.c (lookup_symbol_aux): Delete calls to
9385 lookup_symbol_aux_minsyms.
9386 (lookup_symbol_aux_minsyms): Comment out function and
9387 prototype. Delete lookup by mangled name.
ae2f03ac 9388
18ec9831
KB
93892003-05-14 Kevin Buettner <kevinb@redhat.com>
9390
9391 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9392 correctly indicate an empty stack and ``stack_allocated'' to the
9393 indicate the number of elements initially allocated.
9394 (dwarf_expr_grow_stack): Simplify method for computing new
9395 stack size. Don't loop infinitely if ``stack_len'' is zero.
9396 (execute_stack_op): Move ``ctx->in_reg'' initialization
9397 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9398 be used in conjuction with DW_OP_piece. Revise error message
9399 accordingly.
9400
de18ac1f
TR
94012003-05-14 Theodore A. Roth <troth@openavr.org>
9402
9403 * MAINTAINERS: Update my email address.
9404 * avr-tdep.c: Ditto.
9405
176620f1
EZ
94062003-05-14 Elena Zannoni <ezannoni@redhat.com>
9407
9408 * symtab.h (enum domain_enum): Rename from namespace_enum.
9409 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9410 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9411 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9412 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9413 TYPES_NAMESPACE, METHODS_NAMESPACE.
9414 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9415 (struct symbol, struct partial_symbol): Rename field
9416 'namespace_enum namespace' to 'domain_enum domain'.
9417 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9418 Delete old define kludge for namespace.
9419
9420 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9421 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9422 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9423 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9424 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9425 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9426 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9427 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9428 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9429 occurrences of the above.
9430
b7f31508
ILT
94312003-05-14 Ian Lance Taylor <ian@airs.com>
9432
9433 * Makefile.in (install-only): Use $(SHELL) when running
9434 mkinstalldirs.
9435
2fdbdd39
ILT
94362003-05-13 Ian Lance Taylor <ian@airs.com>
9437
a208d82c
ILT
9438 * MAINTAINERS (write after approval): Add myself.
9439
2fdbdd39
ILT
9440 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9441 second and third arguments.
9442 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9443 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9444
fbd9dcd3
AC
94452003-05-13 Andrew Cagney <cagney@redhat.com>
9446
9447 * defs.h (store_address): Delete declaration.
9448 findvar.c (store_address): Delete function.
9449 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9450 store_unsigned_integer.
9451 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9452 * v850-tdep.c (v850_push_arguments): Ditto.
9453 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9454 * sh-tdep.c (sh64_get_saved_register): Ditto.
9455 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9456 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9457 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9458 (mips_get_saved_register): Ditto.
9459 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9460 (find_func_descr, ia64_push_arguments): Ditto.
9461 * i386-tdep.c (i386_push_arguments): Ditto.
9462 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9463 * frv-tdep.c (frv_push_arguments): Ditto.
9464 * frame.c (legacy_saved_regs_prev_register): Ditto.
9465 (deprecated_generic_get_saved_register): Ditto.
9466 * findvar.c (unsigned_address_to_pointer): Ditto.
9467 * dwarf2read.c (dwarf2_const_value): Ditto.
9468 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9469 * alpha-tdep.c (alpha_push_arguments): Ditto.
9470
6760f9e6
JB
94712003-05-12 J. Brobecker <brobecker@gnat.com>
9472
9473 * NEWS: Mention that the hppa-hpux port has been partially
9474 multiarched (32bit ABIT only, so far).
9475
30e221b4
AC
94762003-05-11 Andrew Cagney <cagney@redhat.com>
9477
9478 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9479 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9480 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9481 sim/testsuite/sim/arm/misaligned2.ms, and
9482 sim/testsuite/sim/arm/misaligned3.ms.
9483 * disasm.h (struct ui_file): Add opaque struct declaration.
9484 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9485 * frame.h (struct ui_file): Ditto.
9486
dea7f9ba
MK
94872003-05-11 Mark Kettenis <kettenis@gnu.org>
9488
9489 * value.h: Pretty print.
9490
01986c48
MK
94912003-05-10 Mark Kettenis <kettenis@gnu.org>
9492
9493 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9494
123a958e
AC
94952003-05-08 Andrew Cagney <cagney@redhat.com>
9496
9497 * regcache.h (max_register_size): Delete declaration.
9498 * regcache.c (max_register_size): Delete function.
9499 (struct regcache_descr): Delete field "max_register_size".
9500 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9501 registers fit in MAX_REGISTER_SIZE.
9502 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9503 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9504 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9505 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9506 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9507 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9508 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9509 * dve3900-rom.c, hppa-tdep.c: Ditto.
9510
eb294659
DC
95112003-05-08 David Carlton <carlton@math.stanford.edu>
9512
9513 * valops.c (push_word): Fix typo.
9514
d9d9c31f
AC
95152003-05-08 Andrew Cagney <cagney@redhat.com>
9516
9517 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9518 * gdbarch.h: Re-generate.
9519 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9520 (legacy_max_register_raw_size): Delete declaration.
9521 * regcache.c (legacy_max_register_raw_size): Delete function.
9522 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9523 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9524 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9525 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9526 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9527 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9528 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9529 * findvar.c, dwarf2cfi.c: Ditto.
9530
22540ece
AC
95312003-05-08 Andrew Cagney <cagney@redhat.com>
9532
9533 * mips-tdep.c (read_signed_register): New function, moved to here
9534 from "regcache.c".
9535 (read_signed_register_pid): Ditto.
9536 * regcache.c (read_signed_register_pid): Delete function, moved to
9537 "mips-tdep.c".
9538 (read_signed_register): Ditto.
9539 * regcache.h (read_signed_register): Delete declaration.
9540 (read_signed_register_pid): Delete declaration.
9541
0c92afe8
AC
95422003-05-08 Andrew Cagney <cagney@redhat.com>
9543
9544 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9545 * gdbarch.h: Re-generate.
9546 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9547 (legacy_max_register_virtual_size): Delete declaration.
9548 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9549 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9550 * tracepoint.c (memrange_sortmerge): Ditto.
9551 * sparc-tdep.c (sparc_print_registers): Ditto.
9552 * regcache.c (legacy_max_register_virtual_size): Delete function.
9553
6037b830
JB
95542002-05-08 J. Brobecker <brobecker@gnat.com>
9555
9556 * fork-child.c (escape_bang_in_quoted_argument): New function.
9557 (fork_inferior): Escape '!' characters in quoted arguments
9558 only when needed.
9559
5d62c8b1
JB
95602003-05-08 J. Brobecker <brobecker@gnat.com>
9561
9562 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9563 the language of the CU is not currently supported by GDB.
9564
20a0e81d
JB
95652003-05-08 J. Brobecker <brobecker@gnat.com>
9566
9567 * defs.h (language): Add language_minimal enum value.
9568 * c-lang.c (minimal_language_defn): New language definition.
9569 (_initialize_c_language): Add the new minimal language to the list
9570 of languages known to GDB.
9571
710ee10a
KB
95722003-05-08 Kevin Buettner <kevinb@redhat.com>
9573
9574 * frame.c (get_frame_type): Don't attempt to lazily initialize
9575 frame's unwinder for legacy frames.
9576
1750fa04
AC
95772003-05-07 Andrew Cagney <cagney@redhat.com>
9578
9579 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9580 and "regcache" parameters.
9581 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9582
ddf9f258 95832003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9584
9585 * dwarf2read.c (dwarf_decode_lines): Only use output of
9586 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9587 the current address.
9588
87767c29
AC
95892003-05-07 Andrew Cagney <cagney@redhat.com>
9590
9591 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9592 code.
9593
5e7b2f39
JB
95942003-05-07 Jim Blandy <jimb@redhat.com>
9595
9596 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9597 'maint info symtabs' and 'maint info psymtabs'.
9598 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9599 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9600 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9601 Declarations updated.
9602 * maint.c (maintenance_list_command): Delete.
9603 (_initialize_maint_cmds): Update calls to add_cmd.
9604 * gdbcmd.h (maintenancelistlist): Delete declaration.
9605 * cli/cli-cmds.c (maintenancelistlist): Delete.
9606 (init_cmd_lists): Don't initialize it.
9607 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9608
f6684c31
AC
96092003-05-07 Andrew Cagney <cagney@redhat.com>
9610
9611 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9612 "regcache".
9613 (d10v_print_registers_info): Update.
9614 (d10v_dmap_register, d10v_imap_register): Delete functions.
9615 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9616 and "imap_register".
9617 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9618 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9619 * arch-utils.c (generic_remote_translate_xfer_address): Add
9620 "regcache" and "gdbarch" parameters.
9621 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9622 parameter. Change class to multi-arch.
9623 * gdbarch.h, gdbarch.c: Re-generate.
9624 * remote.c (remote_xfer_memory): Use
9625 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9626
e4846b08
JJ
96272003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9628
9629 * infrun.c (prev_pc): Move declaration ahead of proceed().
9630 (proceed): Refresh prev_pc value before resuming.
9631 (stop_stepping): Remove code to refresh prev_pc.
9632
6b71b8ac
KW
96332003-05-06 Kris Warkentin <kewarken@qnx.com>
9634
9635 * nto-tdep.c: Removed stray comment.
9636
47979a4b
KW
96372003-05-06 Kris Warkentin <kewarken@qnx.com>
9638
9639 * i386-nto-tdep.c: Fix old K&R function definitions.
9640 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9641 Also change add_show_from_set() call to add_setshow_cmd().
9642 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9643
00905d52
AC
96442003-05-05 Andrew Cagney <cagney@redhat.com>
9645
9646 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9647 (fprint_dummy_frames): New function.
9648 (maintenance_print_dummy_frames): New function.
9649 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9650 * frame.c (fprint_frame_id): Make global.
9651 * frame.h (fprint_frame_id): Declare.
9652 * Makefile.in (dummy-frame.o): Update dependencies.
9653
b1e29e33
AC
96542003-05-05 Andrew Cagney <cagney@redhat.com>
9655
9656 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9657 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9658 SIZEOF_CALL_DUMMY_WORDS.
9659 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9660 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9661 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9662 CALL_DUMMY_BREAKPOINT_OFFSET.
9663 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9664 CALL_DUMMY_START_OFFSET.
9665 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9666 * gdbarch.h, gdbarch.c: Re-generate.
9667 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9668 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9669 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9670 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9671 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9672 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9673 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9674 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9675 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9676 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9677 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9678 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9679 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9680 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9681 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9682
96832003-05-05 Kris Warkentin <kewarken@qnx.com>
9684
9685 * configure.tgt: Add i[3456]86-*-nto*.
9686 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9687 * nto-tdep.c: New file. Neutrino target support routines.
9688 * nto-tdep.h: New file. Neutrino target header.
9689 * config/tm-qnxnto.h: New file.
9690 * config/i386/i386nto.mt: New file.
9691 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9692
0ce3d317
AC
96932003-05-04 Andrew Cagney <cagney@redhat.com>
9694
9695 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9696 (load_infrun_state): Ditto.
9697 (struct thread_info): Drop "prev_func_name" field.
9698 * thread.c (load_infrun_state): Update.
9699 (save_infrun_state): Update.
9700 * infrun.c (prev_func_name): Delete variable.
9701 (init_wait_for_inferior): Do not clear prev_func_name.
9702 (stop_stepping, keep_going, context_switch): Do not swap
9703 prev_func_name.
9704 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9705 instead of PC_IN_SIGTRAMP.
9706
46654a5b
AC
97072003-05-04 Andrew Cagney <cagney@redhat.com>
9708
9709 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9710 REGISTER_BYTE with register_offset_hack.
9711 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9712 that REGISTER_BYTE is consistent with the regcache.
9713 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9714 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9715
14b08c1b
MK
97162003-05-04 Mark Kettenis <kettenis@gnu.org>
9717
04c8243f
MK
9718 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9719 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9720
14b08c1b
MK
9721 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9722
c7a11e01
JB
97232003-05-03 J. Brobecker <brobecker@gnat.com>
9724
9725 From Thierry Schneider <tpschneider1@yahoo.com>
9726 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9727 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9728 (mi-cmd-symbol.o): Add rule.
9729
7043d8dc
AC
97302003-05-03 Andrew Cagney <cagney@redhat.com>
9731
9732 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9733 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9734 * gdbarch.h, gdbarch.c: Re-generate.
9735 * d10v-tdep.c (d10v_push_dummy_code): New function.
9736 (d10v_gdbarch_init): Set push_dummy_code.
9737 * infcall.c (legacy_push_dummy_code): New function.
9738 (generic_push_dummy_code): New function.
9739 (push_dummy_code): New function.
9740 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9741 instead of dummy_addr, to push_dummy_call. Move call to
9742 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9743 switch.
9744 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9745
92bf2b80
AC
97462003-05-03 Andrew Cagney <cagney@redhat.com>
9747
9748 * disasm.h (print_insn): Declare.
9749 * disasm.c (init_gdb_disassemble_info): New function.
9750 (gdb_disassembly): Call init_gdb_disassemble_info.
9751 (gdb_print_insn): New function.
9752 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9753 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9754 * mcore-tdep.c: Include "disasm.h"
9755 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9756 * d10v-tdep.c: Include "disasm.h".
9757 (display_trace): Call gdb_print_insn, instead of print_insn.
9758 (print_insn): Delete function.
9759 * printcmd.c: Include "disasm.h".
9760 (print_insn): Delete function.
9761 (print_formatted): Call gdb_print_insn, instead of print_insn.
9762 * Makefile.in (printcmd.o): Update dependencies.
9763 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9764
27d94c49
AC
97652003-05-02 Andrew Cagney <cagney@redhat.com>
9766
82de1e5b
AC
9767 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9768 PC_REGNUM, re-indent.
9769 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9770 PC_REGNUM isn't set.
9771
27d94c49
AC
9772 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9773 * gdbarch.h, gdbarch.c: Re-generate.
9774 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9775 register_virtual_size, pc_regnum, or register_bytes.
9776 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9777 (d10v_register_type): Use D10V_PC_REGNUM.
9778 (d10v_print_registers_info, d10v_read_pc): Ditto.
9779 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9780 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9781
a9c0dc7f
DC
97822003-05-02 David Carlton <carlton@bactrian.org>
9783
9784 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9785 the name with mstrsave.
9786
e33d66ec
EZ
97872003-05-02 Elena Zannoni <ezannoni@redhat.com>
9788
9789 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9790 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9791 (host_charset_name, target_charset_name): New vars for use by
9792 set/show commands.
9793 (host_charset_enum, target_charset_enum): New enums for set/show
9794 commands.
9795 (set_charset_sfunc, set_host_charset_sfunc,
9796 set_target_charset_sfunc): New functions.
9797 (set_host_charset, set_target_charset): Make static.
9798 (list_charsets, set_host_charset_command,
9799 set_target_charset_command): Delete functions.
9800 (show_charset_command): Rewrite as....
9801 (show_charset): Hook this up with the set/show command mechanism.
9802 (_initialize_charset): Change names of charsets to match the
9803 set/show enums. Use host_charset_name and target_charset_name.
9804 Use set/show mechanism for charset, host-charset, target-charset
9805 commands. Do not make 'show host-charset' and 'show
9806 target-charset' be aliases of 'show charset'.
9807
9808 * charset.h (set_host_charset, set_target_charset): Don't export,
9809 they are not used outside the file.
9810
2b6fd0d8
AC
98112003-05-01 Andrew Cagney <cagney@redhat.com>
9812
9813 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9814 (gdb_disassembly): Make "di" non static, always initialize and
9815 cleanup. Always use dis_asm_read_memory.
9816 (gdb_dis_asm_read_memory): Delete function.
9817
6ae2f580
AC
98182003-05-01 Andrew Cagney <cagney@redhat.com>
9819
9820 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9821 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9822
810ecf9f
AC
98232003-04-30 Andrew Cagney <cagney@redhat.com>
9824
9825 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9826 "tm_print_insn_info".
9827 (TARGET_PRINT_INSN_INFO): Delete macro.
9828 (dis_asm_read_memory): Delete function declaration.
9829 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9830 (tm_print_insn_info): Delete variable definition.
9831 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9832 * gdbarch.h, gdbarch.c: Re-generate.
9833 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9834 "deprecated_tm_print_insn_info".
9835 * mcore-tdep.c (mcore_dump_insn): Ditto.
9836 * mips-tdep.c (mips_gdbarch_init): Ditto.
9837 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9838 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9839 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9840 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9841 instead of TARGET_PRINT_INSN_INFO, add comment.
9842 * s390-tdep.c (s390_get_frame_info): Instead of
9843 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9844 (s390_check_function_end, s390_is_sigreturn): Ditto.
9845 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9846 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9847 * disasm.c: Include "gdbcore.h".
9848 (_initialize_disasm): New function, initialize
9849 "deprecated_tm_print_insn_info".
9850 (deprecated_tm_print_insn_info): New variable.
9851 (dis_asm_read_memory): Moved from "corefile.c", made static.
9852 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9853 * Makefile.in (disasm.o): Update dependencies.
9854
07020390
AC
98552003-04-30 Andrew Cagney <cagney@redhat.com>
9856
9857 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9858
a9fa03de
AF
98592003-04-29 Adam Fedor <fedor@gnu.org>
9860
9861 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9862 * infcall.c (find_function_addr): Make non-static.
9863 * infcall.h (find_function_addr): Declare.
9864 * Makefile.in (eval.o): Update dependencies.
9865
1bae87b9
AF
98662003-04-28 Adam Fedor <fedor@gnu.org>
9867
9868 * symtab.c (symbol_find_demangled_name): Check for and demangle
9869 ObjC symbols.
9870 (symbol_init_demangled_name): Init for language_objc as well.
9871
0ba6dca9
AC
98722003-04-28 Andrew Cagney <cagney@redhat.com>
9873
9874 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9875 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9876 * gdbarch.h, gdbarch.c: Re-generate.
9877 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9878 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9879 * inferior.h (deprecated_read_fp): Rename read_fp.
9880 (generic_target_read_fp): Delete declaration.
9881 * regcache.c (generic_target_read_fp): Delete function.
9882 (deprecated_read_fp): Replace read_fp, use
9883 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9884 * d10v-tdep.c (d10v_read_fp): Delete function.
9885 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9886
9887 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9888 deprecated_target_read_fp to generic_target_read_fp.
9889 * sh-tdep.c (sh_gdbarch_init): Ditto.
9890 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9892 * frv-tdep.c (frv_gdbarch_init): Ditto.
9893
9894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9895 deprecated_fp_regnum.
9896 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9897 * vax-tdep.c (vax_gdbarch_init): Ditto.
9898 * v850-tdep.c (v850_gdbarch_init): Ditto.
9899 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9900 * sh-tdep.c (sh_gdbarch_init): Ditto.
9901 * s390-tdep.c (s390_gdbarch_init): Ditto.
9902 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9903 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9904 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9905 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9907 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9908 * i386-tdep.c (i386_gdbarch_init): Ditto.
9909 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9910 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9911 * frv-tdep.c (frv_gdbarch_init): Ditto.
9912 * cris-tdep.c (cris_gdbarch_init): Ditto.
9913 * avr-tdep.c (avr_gdbarch_init): Ditto.
9914 * arm-tdep.c (arm_gdbarch_init): Ditto.
9915 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9916
9917 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9918 * v850-tdep.c (v850_gdbarch_init): Ditto.
9919 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9920 * sh-tdep.c (sh_gdbarch_init): Ditto.
9921 * s390-tdep.c (s390_gdbarch_init): Ditto.
9922 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9923 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9924 * mips-tdep.c (mips_gdbarch_init): Ditto.
9925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9926 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9927 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9928 * frv-tdep.c (frv_gdbarch_init): Ditto.
9929 * avr-tdep.c (avr_gdbarch_init): Ditto.
9930 * arm-tdep.c (arm_gdbarch_init): Ditto.
9931
9932 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9933 DEPRECATED_FP_REGNUM.
9934 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9935 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9936 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9937 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9938 (sparc32_register_virtual_type): Ditto.
9939 * sh-tdep.c (sh64_frame_chain): Ditto.
9940 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9941 (sh_nofp_frame_init_saved_regs): Ditto.
9942 (sh64_nofp_frame_init_saved_regs): Ditto.
9943 (sh_fp_frame_init_saved_regs): Ditto.
9944 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9945 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9946 * procfs.c (procfs_fetch_registers): Ditto.
9947 (procfs_store_registers): Ditto.
9948 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9949 (store_inferior_registers, fetch_core_registers): Ditto.
9950 (fetch_kcore_registers, clear_regs): Ditto.
9951 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9952 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9953 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9954 * nlm/i386.c (do_status): Ditto.
9955 * mipsv4-nat.c (supply_gregset): Ditto.
9956 * mips-tdep.c: Ditto for comments.
9957 * mips-nat.c (fetch_inferior_registers): Ditto.
9958 (store_inferior_registers, fetch_core_registers): Ditto.
9959 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9960 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9961 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9962 (i386_do_pop_frame, i386_register_type): Ditto.
9963 * hppa-tdep.c (hppa_frame_chain): Ditto.
9964 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9965 (hppa_pop_frame, hppa_read_fp): Ditto.
9966 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9967 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9968 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9969 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9970 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9971 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9972 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9973 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9974 * blockframe.c: Ditto for comments.
9975 * arch-utils.h: Ditto for comments.
9976 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9977 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9978 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9979 * alpha-tdep.h: Ditto for comments.
9980 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9981 (alpha_cannot_store_register): Ditto.
9982 (alpha_push_dummy_frame): Ditto.
9983 * alpha-nat.c (supply_gregset): Ditto.
9984
9985 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9986 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9987 * config/sparc/tm-sparc.h: Update comment.
9988
9989 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9990 deprecated_read_fp instead of TARGET_READ_FP.
9991 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9992 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9993 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9994 deprecated_read_fp instead of read_fp.
9995 * s390-tdep.c (s390_push_arguments): Ditto.
9996 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9997 * frame.h: Ditto in comments.
9998 * frame.c (legacy_get_prev_frame): Ditto.
9999 * dummy-frame.c (dummy_frame_this_id): Ditto.
10000 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10001
d7a27068
AC
100022003-04-28 Andrew Cagney <cagney@redhat.com>
10003
10004 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10005 * gdbarch.h, gdbarch.c: Re-generate.
10006 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10007 * vax-tdep.c (_initialize_vax_tdep): Update.
10008 * v850-tdep.c (_initialize_v850_tdep): Update.
10009 * sparc-tdep.c (_initialize_sparc_tdep): Update.
10010 * s390-tdep.c (_initialize_s390_tdep): Update.
10011 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10012 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10013 * mips-tdep.c (_initialize_mips_tdep): Update.
10014 * mcore-tdep.c (_initialize_mcore_tdep): Update.
10015 * m68k-tdep.c (_initialize_m68k_tdep): Update.
10016 * ia64-tdep.c (_initialize_ia64_tdep): Update.
10017 * hppa-tdep.c (_initialize_hppa_tdep): Update.
10018 * h8300-tdep.c (_initialize_h8300_tdep): Update.
10019 * frv-tdep.c (_initialize_frv_tdep): Update.
10020 * cris-tdep.c (cris_delayed_get_disassembler): Update.
10021 (_initialize_cris_tdep): Update.
10022 * arch-utils.c (legacy_print_insn): Update.
10023 * alpha-tdep.c (_initialize_alpha_tdep): Update.
10024
d2630e69
AF
100252003-04-26 Adam Fedor <fedor@gnu.org>
10026
10027 * linespec.c (decode_objc): New function to decode ObjC calls
10028 (decode_line_1): Check for ObjC calls (using decode_objc)
10029 * Makefile (linespec.o): Update dependencies.
10030
3086aeae
DJ
100312003-04-26 Daniel Jacobowitz <drow@mvista.com>
10032
10033 * breakpoint.h (struct breakpoint_ops): New.
10034 (struct breakpoint): Add ops member.
10035
10036 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10037 (mention): Use new breakpoint ops member.
10038 (set_raw_breakpoint): Initialize ops field to NULL.
10039 (print_exception_catchpoint, print_one_exception_catchpoint)
10040 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10041 (gnu_v3_exception_catchpoint_ops): New.
10042 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10043
1fbec6c3
AF
100442003-04-25 Adam Fedor <fedor@gnu.org>
10045
10046 * Makefile.in (COMMON_OBS): Add objc-lang.o
10047
0ef21242
AC
100482003-04-25 Andrew Cagney <cagney@redhat.com>
10049
10050 * d10v-tdep.c (print_insn): Delete function.
10051 (display_trace): Use TARGET_PRINT_INSN.
10052 (_initialize_d10v_tdep): Do not set tm_print_insn.
10053 (d10v_gdbarch_init): Set print_insn.
10054
f75493ed
AC
100552003-04-25 Andrew Cagney <cagney@redhat.com>
10056
10057 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10058 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10059 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10060 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10061 (nr_dmap_regs, a0_regnum): ... new functions.
10062 (d10v_print_registers_info): Use a0_regnum, use register_size.
10063 (d10v_register_byte): Delete function.
10064 (d10v_register_raw_size): Delete function.
10065 (d10v_register_type): Use a0_regnum.
10066 (d10v_print_registers_info): Use a0_regnum.
10067 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10068 (d10v_gdbarch_init): Do not set register_byte or
10069 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10070 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10071 extract_address.
10072 (trace_command): Use XCALLOC.
10073 (print_insn): Delete reference to tm_print_insn.
10074 (saved_regs_unwinder): Use store_unsigned_integer instead of
10075 store_address.
10076 * frame.h (FRAME_OBSTACK_CALLOC): Define
10077
2202b100
DC
100782003-04-25 David Carlton <carlton@bactrian.org>
10079
10080 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10081
4e45ca2e
AF
100822003-04-24 Adam Fedor <fedor@gnu.org>
10083
10084 * objc-lang.c: Include "valprint.h"
10085 * Makefile.in (objc-lang.o): Update dependencies.
10086
93de3e7f
AF
100872003-04-24 Adam Fedor <fedor@gnu.org>
10088
8ffd9b1b 10089 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
10090 architecture dependant compilation and mark as unimplemented
10091 (until they get put in the gdbarch vector).
10092
0f20eeea
DC
100932003-04-23 David Carlton <carlton@bactrian.org>
10094
10095 * cp-support.c (cp_find_first_component): Accept 'operator' in
10096 more locations.
10097
74cfe982
AC
100982003-04-23 Andrew Cagney <cagney@redhat.com>
10099
10100 * infcall.c (call_function_by_hand): Eliminate redundant
10101 indentation. Move "saved_async" and "old_cleanups" to where they
10102 are needed.
8ffd9b1b 10103
52557533
AC
101042003-04-23 Andrew Cagney <cagney@redhat.com>
10105
10106 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10107 and "buffer". Move the "name" code to where it is needed.
10108
158775de
AC
101092003-04-23 Andrew Cagney <cagney@redhat.com>
10110
10111 * infcall.c (call_function_by_hand): Move variables "start_sp",
10112 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10113 code to ON_STACK switch branch.
8ffd9b1b 10114
ebc7896c
AC
101152003-04-23 Andrew Cagney <cagney@redhat.com>
10116
10117 * infcall.c (call_function_by_hand): Make declaration of "i",
10118 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10119 lint.
10120
d727590f
AC
101212003-04-23 Andrew Cagney <cagney@redhat.com>
10122
10123 * infcall.c (call_function_by_hand): Delete variable
10124 "n_method_args". Localize "param_type"'s declaration to the loop
10125 that it is used. Reinstate code assigning to said variable -
10126 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10127 Rationalize code using "param_type".
10128
d585e13a
AC
101292003-04-22 Andrew Cagney <cagney@redhat.com>
10130
10131 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10132 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10133 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10134 to DEPRECATED_PUSH_RETURN_ADDRESS.
10135
051caad9
KB
101362003-04-22 Kevin Buettner <kevinb@redhat.com>
10137
10138 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10139 on the DWARF2 register number prior to fetching a register.
10140
77296879
JB
101412003-04-22 J. Brobecker <brobecker@gnat.com>
10142
10143 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10144 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10145 this macro was always set to 0.
77296879
JB
10146 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10147 considering the fact that this macro was always set to 0.
10148 * hppa-tdep.h (hppa_store_return_value): Likewise.
10149 (hppa_extract_return_value): Likewise.
10150
4252f1df
JB
101512003-04-22 J. Brobecker <brobecker@gnat.com>
10152
10153 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10154 the hppa-pro target only.
10155
14604c6b
JB
101562003-04-21 J. Brobecker <brobecker@gnat.com>
10157
10158 Ongoing multi-arch conversion effort for HP/UX:
10159 * config/pa/tm-hppa.h: Move all macro that are no longer
10160 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10161 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10162
77eb01d1
JB
101632003-04-21 J. Brobecker <brobecker@gnat.com>
10164
10165 * config/pa/tm-hppa.h: Obsolete a section that was only used
10166 for hppa-pro.
10167
61995b3b
JB
101682003-04-21 J. Brobecker <brobecker@gnat.com>
10169
10170 Ongoing multi-arch conversion for HP/UX.
10171 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10172 if already defined (allows hppa64 to stay non-multiarched for now).
10173 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10174
4aa79dcc
AC
101752003-04-21 Andrew Cagney <cagney@redhat.com>
10176
10177 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10178
0f751ff2
AC
101792003-04-21 Andrew Cagney <cagney@redhat.com>
10180
10181 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10182 "i386_num_mmx_regs".
10183
04714b91
AC
101842003-04-21 Andrew Cagney <cagney@redhat.com>
10185
10186 * infcall.c: New file.
10187 * infcall.h: New file.
10188 * valarith.c: Include "infcall.h".
10189 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10190 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10191 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10192 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10193 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10194 (SFILES): Add "infcall.c"
10195 (COMMON_OBS): Add "infcall.o".
10196 (infcall.o): Specify dependencies.
10197 * value.h (call_function_by_hand): Delete declaration.
10198 * inferior.h (run_stack_dummy): Delete declaration.
10199 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10200 (run_stack_dummy): Move to "infcall.c", merged into
10201 call_function_by_hand.
10202 * valops.c (call_function_by_hand): Moved to "infcall.c".
10203 (find_function_addr, value_arg_coerce): Ditto.
10204 (unwindonsignal_p, coerce_float_to_double): Ditto.
10205 (_initialize_valops): Move "set/show coerce-float-to-double", and
10206 "set/show unwindonsignal" commands to "infcall.c".
10207 * v850-tdep.c, target.h: Update comments.
10208 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10209 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10210 (sh64_init_extra_frame_info): Update comments.
10211 * mn10300-tdep.c: Update comments.
10212 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10213 * config/sparc/tm-sparc.h: Update comments.
10214 * breakpoint.h: Update comments.
10215 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10216 * arm-tdep.c: Update comment.
10217
f9d3c2a8
MK
102182003-04-19 Mark Kettenis <kettenis@gnu.org>
10219
c40e1eab
MK
10220 * i386-tdep.c (i386_num_register_names): New variable.
10221 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10222 (MM0_REGNUM): Remove redundant parentheses in define.
10223 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10224 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10225 i386_mxcsr_regnum_p): Remove redundant parentheses.
10226 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10227
94ea66b3
MK
10228 * i386-tdep.c (i386_extract_return_value,
10229 i386_store_return_value): Correct check for availability of
10230 floating-point registers.
10231
54299a1d
MK
10232 * i386-tdep.c (i386_frame_num_args): Remove function.
10233 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10234
c86c27af
MK
10235 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10236 mmx_regnum_to_fp_regnum. Adjust all callers.
10237
f9d3c2a8
MK
10238 * i386-tdep.c (i386_get_longjmp_target): Use
10239 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10240 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10241 extract_address.
10242
94ba74a9
MK
102432003-04-19 Mark Kettenis <kettenis@gnu.org>
10244
10245 * core-regset.c: Update comments to reflect reality. Re-order
10246 includes.
10247 (fetch_core_registers): Use switch instead of if. Remove
10248 redundant prototype.
10249
4074e13c
JB
102502003-04-18 Jim Blandy <jimb@redhat.com>
10251
10252 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10253 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10254
e3ab4aba
RH
102552003-04-17 Richard Henderson <rth@redhat.com>
10256
10257 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10258
627bf7c1
EZ
102592003-04-17 Michael Snyder <msnyder@redhat.com>
10260 Karen Bennet <bennet@redhat.com>
10261
10262 Committed by Elena Zannoni <ezannoni@redhat.com>
10263 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10264
514621a9
EZ
102652003-04-17 Elena Zannoni <ezannoni@redhat.com>
10266
10267 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10268 value if the return type is void.
514621a9 10269
b4acd559
JJ
102702003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10271
10272 * thread-db.c: Reindented.
8ffd9b1b 10273
530b167e 102742003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10275
10276 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10277 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10278 as types.
10279
0a48e7e8
MS
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
8ffd9b1b 10303
ab9fe00e
KB
103042003-04-16 Kevin Buettner <kevinb@redhat.com>
10305
610a3745 10306 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10307 the size of ``long double'' to 16, instead of 8.
10308
e64a344c
MK
103092003-04-16 Mark Kettenis <kettenis@gnu.org>
10310
10311 * i386-linux-nat.c: Add some whitespace to make things more
10312 readable.
10313 (fetch_register, store_register, fetch_inferior_registers,
10314 store_inferior_registers): Get rid of assignment in if-statement.
10315 (store_register): Fix typo in error message.
10316
25d41031
AC
103172003-04-16 Andrew Cagney <cagney@redhat.com>
10318
10319 * utils.c (xmmalloc): Always allocate something, matches
10320 libiberty/xmalloc's semantics.
10321 (xmrealloc, xmcalloc): Ditto.
10322
c50901fd
AC
103232003-04-16 Andrew Cagney <cagney@redhat.com>
10324
10325 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10326 update comments.
10327 (get_frame_type): Initialize unwind and type when needed.
10328 (get_frame_id, frame_register_unwind): Ditto.
10329
f81824a9
AC
103302003-04-16 Andrew Cagney <cagney@redhat.com>
10331
10332 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10333 obsolete.
10334 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10335 * sparcl-stub.c: Obsolete file.
10336 * config/sparc/tm-sparclet.h: Obsolete file.
10337 * sparclet-stub.c: Obsolete file.
10338 * sparclet-rom.c: Obsolete file.
10339 * sparcl-tdep.c: Obsolete file.
10340 * config/sparc/tm-sparclite.h: Obsolete file.
10341 * config/sparc/sparclite.mt: Obsolete file.
10342 * config/sparc/sparclet.mt: Obsolete file.
10343 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10344 sparc86x-*-* obsolete.
10345
9219021c
DC
103462003-04-15 David Carlton <carlton@math.stanford.edu>
10347
10348 * Makefile.in (SFILES): Add cp-namespace.c.
10349 (COMMON_OBS): Add cp-namespace.o.
10350 (block.o): Depend on gdb_obstack_h and cp_support_h.
10351 (buildsym.o): Depend on cp_support_h.
10352 (cp-namespace.o): New.
10353 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10354 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10355 (dwarf2read.o): Depend on cp_support_h.
10356 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10357 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10358 processing_current_namespace.
10359 (read_namespace): Update processing_current_namespace; check for
10360 anonymous namespaces.
10361 (dwarf2_name): New function.
10362 (dwarf2_extension): Ditto.
10363 * cp-support.h: Update copyright, contributors.
10364 Add inclusion guards.
10365 Add opaque declaration for structs obstack, block, symbol.
10366 (struct using_direct): New struct.
10367 Add declarations for cp_find_first_component,
10368 cp_entire_prefix_len, processing_has_namespace_info,
10369 processing_current_namespace, cp_is_anonymous,
10370 cp_add_using_directive, cp_initialize_namespace,
10371 cp_finalize_namespace, cp_set_block_scope,
10372 cp_scan_for_anonymous_namespaces.
10373 * cp-namespace.c: New file.
10374 * cp-support.c: Update copyright.
10375 Include ctype.h, gdb_assert.h, gdbcmd.h.
10376 New variable maint_cplus_cmd_list.
10377 (cp_find_first_component): New function.
10378 (cp_entire_prefix_len, maint_cplus_command)
10379 (first_component_command, _initialize_cp_support): Ditto.
10380 * buildsym.c: Include cp-support.h.
10381 New variable using_list.
10382 (add_symbol_to_list): Check for anonymous namespaces.
10383 (finish_block): Set block's scope.
10384 (start_symtab): Initialize C++ namespace support.
10385 (end_symtab): Finalize C++ namespace support.
10386 * block.h: Add opaque declarations for structs
10387 block_namespace_info, using_direct, and obstack.
10388 Add declarations for block_set_scope and block_set_using.
10389 (struct block): Add 'language_specific' member.
10390 (BLOCK_NAMESPACE): New macro.
10391 * block.c: Include gdb_obstack.h and cp-support.h.
10392 (struct block_namespace_info): New struct.
10393 (block_set_scope): New function.
10394 (block_set_using, block_initialize_namespace): Ditto.
10395
d5a921c9
KB
103962003-04-14 Kevin Buettner <kevinb@redhat.com>
10397
10398 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10399 (locate_base): Return early if there aren't any link map offsets.
10400 (svr4_solib_create_inferior_hook): Warn if shared library support
10401 is unavailable.
10402
d2a52b27
DC
104032003-04-14 David Carlton <carlton@math.stanford.edu>
10404
10405 * symtab.c (symbol_set_names): Add prefix when storing Java names
10406 in hash table. Fix for PR java/1039.
10407
980cae7a
DC
104082003-04-14 David Carlton <carlton@math.stanford.edu>
10409
10410 * symtab.c (symbol_set_names): Rename 'name' arg to
10411 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10412 * symtab.h: Change 'name' argument in declaration of
10413 symbol_set_names to 'linkage_name'.
10414 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10415
e227b13c
AC
104162003-04-14 Andrew Cagney <cagney@redhat.com>
10417
10418 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10419 return the fully sign-extended register value.
10420 (get_frame_pointer): Ditto.
10421 (mips_pop_frame): Initialize "proc_desc" after checking for a
10422 dummy frame.
10423
36712a20
AC
104242003-04-14 Andrew Cagney <cagney@redhat.com>
10425
10426 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10427 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10428 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10429 (mips_push_register): Delete function.
10430 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10431 PUSH_FP_REGNUM.
10432
44ea7b70
JB
104332003-04-14 Jim Blandy <jimb@redhat.com>
10434
10435 * symmisc.c: #include "gdb_regex.h".
10436 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10437 functions.
10438 * maint.c (maintenance_list_command): New function.
10439 (_initialize_maint_cmds): Register the above as commands.
10440 * symtab.h (maintenance_list_symtabs,
10441 maintenance_list_psymtabs): New declarations.
10442 * cli/cli-cmds.c (maintenancelistlist): New variable.
10443 (init_cmd_lists): Initialize it.
10444 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10445 * gdbcmd.h (maintenancelistlist): New declaration.
10446 * Makefile.in (symmisc.o): Update dependencies.
10447
2d0c7962
EZ
104482003-04-14 Elena Zannoni <ezannoni@redhat.com>
10449
10450 * s390-nat.c: Include asm/types.h for addr_t.
10451
1947a811
CV
104522003-04-14 Corinna Vinschen <vinschen@redhat.com>
10453
10454 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10455 actually incoming type.
10456
adb616d7
AC
104572003-04-13 Andrew Cagney <cagney@redhat.com>
10458
10459 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10460 get_next_frame and get_frame_saved_regs.
10461
9b5e151c
AC
104622003-04-13 Andrew Cagney <cagney@redhat.com>
10463
10464 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10465 of gdbarch_num_regs.
10466
ef6e7e13
AC
104672003-04-13 Andrew Cagney <cagney@redhat.com>
10468
10469 * frame.h: Mention what replaced what in "struct frame_info".
10470 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10471 deprecated_update_frame_base_hack and
10472 deprecated_update_frame_pc_hack.
10473 * hppa-tdep.c: Ditto.
10474
61fbb938
DJ
104752003-04-13 Daniel Jacobowitz <drow@mvista.com>
10476
10477 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10478 to read_reg and update its comment. Remove regnum member.
10479 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10480 Don't call read_reg when setting in_reg. Call read_reg to get
10481 the frame base if it's in a register. Return the register number
10482 on the stack instead of in the context. Remove extra arguments
10483 to read_reg.
10484 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10485 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10486 the register number on the expression stack.
10487 (needs_frame_read_reg): Remove extra arguments.
10488
0d53c4c4
DJ
104892003-04-13 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10492 made non-static.
10493 (execute_stack_op): All callers updated.
10494 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10495 * dwarf2loc.c (find_location_expression): New function.
10496 (dwarf_expr_frame_base): Call it.
10497 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10498 (dwarf2_tracepoint_var_ref): New function, broken out from
10499 locexpr_tracepoint_var_ref.
10500 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10501 Make static.
10502 (loclist_read_variable, loclist_read_needs_frame): New functions.
10503 (loclist_describe_location, loclist_tracepoint_var_ref): New
10504 functions.
10505 (dwarf2_loclist_funcs): New struct location_funcs.
10506 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10507 (struct dwarf2_locexpr_baton): Add comments.
10508 (dwarf2_loclist_funcs): New extern.
10509 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10510 base_address and base_known.
10511 (dwarf_loc_buffer): New variable.
10512 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10513 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10514 (dwarf2_has_info): Initialize dwarf_loc_offset.
10515 (dwarf2_build_psymtabs): Read in .debug_loc.
10516 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10517 DWARF_LOC_SIZE.
10518 (psymtab_to_symtab_1): Likewise. Move base address calculation
10519 here, from...
10520 (dwarf2_get_pc_bounds): ... here. Use the base address from
10521 cu_header.
10522 (dwarf2_symbol_mark_computed): Handle location lists.
10523
6aca59a3
DJ
105242003-04-13 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10527 if the linkage name demangled successfully.
10528
aca1fcd0
MK
105292003-04-13 Mark Kettenis <kettenis@gnu.org>
10530
97095916
MK
10531 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10532 disassmbly_flavour): Removed.
10533
aca1fcd0
MK
10534 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10535
562a961f
MK
105362003-04-13 Mark Kettenis <kettenis@gnu.org>
10537
10538 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10539
bd013d54
AC
105402003-04-12 Andrew Cagney <cagney@redhat.com>
10541
10542 * frame.h (struct frame_info): Move definition from here ...
10543 * frame.c (struct frame_info): ... to here.
10544
167ef8b1
AC
105452003-04-12 Andrew Cagney <cagney@redhat.com>
10546
10547 * gdbthread.h (save_infrun_state): Delete parameter
10548 "prev_func_start".
10549 (struct thread_info): Delete field "prev_func_start".
10550 (load_infrun_state): Ditto.
10551 * thread.c (load_infrun_state, save_infrun_state): Update.
10552 * infrun.c (prev_func_start): Delete variable.
10553 (context_switch, init_wait_for_inferior): Update.
10554 (stop_stepping, keep_going): Update.
10555
da3331ec
AC
105562003-04-12 Andrew Cagney <cagney@redhat.com>
10557
10558 * gdbarch.sh: Add missing opaque declarations.
10559 * gdbarch.h: Regnerate.
10560 * symtab.h: Add missing opaque declarations.
10561 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10562 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10563 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10564 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10565 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10566 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10567 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10568 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10569 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10570 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10571 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10572 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10573 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10574
18adea3f
AC
105752003-04-11 Andrew Cagney <cagney@redhat.com>
10576
10577 * frame.c (get_frame_id): Return this frame's "id".
10578 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10579 function start.
10580 (legacy_saved_regs_this_id): Replace function body with
10581 internal-error.
10582 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10583 FRAME_OBSTACK_ZALLOC.
10584 (create_new_frame): Mark the frame ID as valid.
10585
2252e863
AO
105862003-04-11 Alexandre Oliva <aoliva@redhat.com>
10587
10588 * Makefile.in (libbfd_h): Added missing setting.
10589 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10590 according to the selected ABI.
10591
a8245ab8
JJ
105922003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10593
10594 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10595
6913c89a
AC
105962003-04-11 Andrew Cagney <cagney@redhat.com>
10597
10598 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10599 SAVED_PC_AFTER_CALL.
10600 * gdbarch.h, gdbarch.c: Regenerate.
10601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10602 * x86-64-tdep.c (x86_64_init_abi): Update.
10603 * vax-tdep.c (vax_gdbarch_init): Update.
10604 * v850-tdep.c (v850_gdbarch_init): Update.
10605 * sparc-tdep.c (sparc_gdbarch_init): Update.
10606 * sh-tdep.c (sh_gdbarch_init): Update.
10607 * s390-tdep.c (s390_gdbarch_init): Update.
10608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10609 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10610 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10611 * mips-tdep.c (mips_gdbarch_init): Update.
10612 * mcore-tdep.c (mcore_gdbarch_init): Update.
10613 * m68k-tdep.c (m68k_gdbarch_init): Update.
10614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10615 * ia64-tdep.c (ia64_gdbarch_init): Update.
10616 (ia64_saved_pc_after_call): Update declaration.
10617 * i386ly-tdep.c (i386lynx_init_abi): Update.
10618 * i386-tdep.c (i386_gdbarch_init): Update.
10619 * hppa-tdep.c (hppa_gdbarch_init): Update.
10620 * h8300-tdep.c (h8300_gdbarch_init): Update.
10621 * frv-tdep.c (frv_gdbarch_init): Update.
10622 * cris-tdep.c (cris_gdbarch_init): Update.
10623 * avr-tdep.c (avr_gdbarch_init): Update.
10624 * arm-tdep.c (arm_gdbarch_init): Update.
10625 * alpha-tdep.c (alpha_gdbarch_init): Update.
10626 * ns32knbsd-nat.c (frame_num_args): Update.
10627 * ns32k-tdep.c (umax_frame_num_args): Update.
10628 * mips-tdep.c (mips_init_frame_pc_first): Update.
10629 * infrun.c (step_over_function): Update.
10630 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10631 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10632 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10633 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10634 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10635 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10636 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10637 * arch-utils.c (init_frame_pc_default): Update.
10638 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10639 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10640 declaration.
8ffd9b1b 10641
38edeab8
AC
106422003-04-11 Andrew Cagney <cagney@redhat.com>
10643
10644 * i387-tdep.c: Update copyright.
10645 (i387_to_double): Delete function.
10646 (double_to_i387): Delete function.
10647
81f8a206
AC
106482003-04-10 Andrew Cagney <cagney@redhat.com>
10649
10650 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10651 frame's function's address. Simplify.
10652 (d10v_frame_unwind_cache): Check that the frame's function is
10653 non-zero.
10654
6e691f7a
JB
106552003-04-10 Jim Blandy <jimb@redhat.com>
10656
10657 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10658 call to set_gdbarch_deprecated_push_arguments.
10659
7f78e237
AC
106602003-04-10 Andrew Cagney <cagney@redhat.com>
10661
10662 * frame.c (fprint_frame_id): New function.
10663 (fprint_frame_type, fprint_frame): New function.
10664 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10665 (create_sentinel_frame, get_frame_id): Ditto.
10666 (frame_id_p, frame_id_eq): Ditto.
10667 (frame_id_inner, create_new_frame): Ditto.
10668 (legacy_get_prev_frame, get_prev_frame): Ditto.
10669 (deprecated_update_frame_pc_hack): Ditto.
10670 (frame_register_unwind): Ditto.
10671 (deprecated_update_frame_base_hack): Ditto.
10672
f870b49b
CV
106732003-04-10 Corinna Vinschen <vinschen@redhat.com>
10674
10675 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10676 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10677 frame_chain function.
10678 * Makefile.in: Add dependencies due to above change.
10679
7c86889b
CV
106802003-04-10 Corinna Vinschen <vinschen@redhat.com>
10681
10682 * blockframe.c (legacy_frame_chain_valid): Move call to
10683 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10684 inside_entry_file.
10685
d0a55772
AC
106862003-04-09 Andrew Cagney <cagney@redhat.com>
10687
10688 * frame.h (struct frame_id): Replace "pc" and "base" with
10689 "stack_addr" and "code_addr". Update comments.
10690 (frame_id_build): Update parameter names and comment.
10691 (struct frame_info): Replace "id_p" and "id" with "this_id".
10692 * dummy-frame.c (dummy_frame_this_id): Update.
10693 * breakpoint.c (print_one_breakpoint): Update.
10694 * frame.c (get_frame_id): Update.
10695 (get_frame_base, frame_id_build): Update.
10696 (create_sentinel_frame, legacy_get_prev_frame): Update.
10697 (deprecated_update_frame_base_hack): Update.
10698 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10699 (frame_id_inner): Ditto.
10700
ac16bf07
AC
107012003-04-09 Andrew Cagney <cagney@redhat.com>
10702
10703 * defs.h (gdb_print_host_address): Make "addr" parameter a
10704 pointer constant.
10705 * utils.c (gdb_print_host_address): Update.
10706
366cfc9e
KB
107072003-04-09 Kevin Buettner <kevinb@redhat.com>
10708
10709 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10710 register number for R0 is 0.
10711
cd983b5c
JB
107122003-04-09 J. Brobecker <brobecker@gnat.com>
10713
10714 * frame.h (struct gdbarch): Add opaque structure definition
10715 to avoid a compilation warning on LynxOS 4.0.
10716
d1340264
AC
107172003-04-09 Andrew Cagney <cagney@redhat.com>
10718
10719 * frame.h (struct frame_info): Delete field "pc". Replace
10720 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10721 structure.
10722 * frame.c (frame_pc_unwind): Update.
10723 (create_sentinel_frame): Do not set "pc".
10724 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10725 (get_frame_pc): Call frame_pc_unwind.
10726 (deprecated_update_frame_pc_hack): Update.
10727 (create_new_frame): Use "pc" not "->pc".
10728
90a6fffb
AC
107292003-04-09 Andrew Cagney <cagney@redhat.com>
10730
10731 * frame.c (get_frame_id): Eliminate code updating "frame".
10732 (legacy_get_prev_frame): Ditto.
10733 (get_frame_base): Return id.base directly.
10734 (deprecated_update_frame_base_hack): Update "id.base".
10735 * frame.h (struct frame_info): Delete field "frame".
10736
2fbce691
AC
107372003-04-09 Andrew Cagney <cagney@redhat.com>
10738
10739 * NEWS: Mention that the "Sequent family" is obsolete.
10740 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10741 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10742 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10743 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10744 * config/i386/tm-ptx4.h: Obsolete file.
10745 * config/i386/tm-ptx.h: Obsolete file.
10746 * symm-tdep.c: Obsolete file.
10747 * config/i386/symmetry.mt: Obsolete file.
10748 * config/i386/tm-symmetry.h: Obsolete file.
10749 * symm-nat.c: Obsolete file.
10750 * config/i386/nm-symmetry.h: Obsolete file.
10751 * config/i386/xm-symmetry.h: Obsolete file.
10752 * config/i386/symmetry.mh: Obsolete file.
10753 * config/i386/nm-ptx4.h: Obsolete file.
10754 * config/i386/ptx4.mh: Obsolete file.
10755 * config/i386/ptx.mt: Obsolete file.
10756 * config/i386/ptx.mh: Obsolete file.
10757 * config/i386/xm-ptx4.h: Obsolete file.
10758 * config/i386/xm-ptx.h: Obsolete file.
10759
78c43945
AC
107602003-04-09 Andrew Cagney <cagney@redhat.com>
10761
10762 Obsolete mips*-*-mach3*.
10763 * NEWS: Mention that mips*-*-mach3* is obsolete.
10764 * m3-nat.c: Obsolete file.
10765 * config/nm-m3.h: Obsolete file.
10766 * config/mips/tm-mipsm3.h: Obsolete file.
10767 * config/mips/mipsm3.mt: Obsolete file.
10768 * config/mips/mipsm3.mh: Obsolete file.
10769 * config/mips/xm-mipsm3.h: Obsolete file.
10770 * mipsm3-nat.c: Obsolete file.
10771 * configure.host: Obsolete mips-dec-mach3*.
10772 * configure.tgt: Obsolete mips*-*-mach3*.
10773
f1908289
AC
107742003-04-09 Andrew Cagney <cagney@redhat.com>
10775
10776 * doublest.h: Update copyright.
10777 (deprecated_store_floating, deprecated_extract_floating): Rename
10778 store_floating and extract_floating. Update comments.
10779 * doublest.c: Update copyright.
10780 (extract_floating_by_length): Replace extract_floating.
10781 (store_floating_by_length): Replace store_floating.
10782 (deprecated_extract_floating): New function.
10783 (deprecated_store_floating): New function.
10784 (extract_typed_floating): Call extract_floating_by_length.
10785 (store_typed_floating): Call store_floating_by_length.
10786 * x86-64-tdep.c (x86_64_store_return_value): Update.
10787 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10788 (sh64_extract_return_value): Update.
10789 (sh_sh4_register_convert_to_virtual): Update.
10790 (sh_sh64_register_convert_to_virtual): Update.
10791 (sh_sh4_register_convert_to_raw): Update.
10792 (sh_sh64_register_convert_to_raw): Update.
10793 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10794 (rs6000_register_convert_to_raw): Update.
10795 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10796 (ia64_register_convert_to_raw): Update.
10797 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10798 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10799 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10800 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10801 (alpha_register_convert_to_raw): Update.
10802
4443bd83
AC
108032003-04-08 Andrew Cagney <cagney@redhat.com>
10804
10805 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10806 * gdbarch.h, gdbarch.c: Re-generate.
10807 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10808 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10809 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10810 conditionally, use frame_pc_unwind as an alternative. Add
10811 comments.
10812 * arch-utils.c (init_frame_pc_default): Only call
10813 SAVED_PC_AFTER_CALL when available.
10814
c0236d92
EZ
108152003-04-08 Elena Zannoni <ezannoni@redhat.com>
10816
fbe586ae 10817 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10818 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10819 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10820 (start_remote): Ditto.
10821 (handle_inferior_event): Ditto.
10822 (save_inferior_status): Ditto.
10823 (restore_inferior_status): Ditto.
10824 * infcmd.c (attach_command): Ditto.
10825 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10826 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10827 * alpha-tdep.c (heuristic_proc_start): Ditto.
10828 * mips-tdep.c (heuristic_proc_start): Ditto.
10829 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10830 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10831 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10832 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10833 * remote-vx.c (vx_create_inferior): Ditto.
10834
108352003-04-08 Elena Zannoni <ezannoni@redhat.com>
10836
10837 * infrun.c (stop_soon_quietly): Make it an enum, to better
10838 override the default behavior of handle_inferior_event.
10839 (clear_proceed_status): Update uses of stop_soon_quietly to
10840 reflect that it is now an enum.
10841 (start_remote): Ditto.
10842 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10843 is set to handle the new GNU/Linux kernel behavior for
10844 attach/sigstop. Update uses of stop_soon_quietly.
10845 * inferior.h (enum stop_kind): New enum.
10846 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10847 Reset normal handle_inferior_event behavior, afterwards.
10848 * fork-child.c (startup_inferior): Update.
10849 * alpha-tdep.c (heuristic_proc_start): Update.
10850 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10851 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10852 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10853 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10854 * remote-vx.c (vx_create_inferior): Update.
10855 * mips-tdep.c (heuristic_proc_start): Update.
10856
1211bce3
EZ
108572003-04-07 Elena Zannoni <ezannoni@redhat.com>
10858
10859 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10860 be freed more than once, causing wild memory corruptions.
1211bce3 10861 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10862 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10863 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10864 with the "core" target.
1211bce3 10865
f0ef6b29
KB
108662003-04-07 Kevin Buettner <kevinb@redhat.com>
10867
10868 * mips-tdep.c (mips_print_fp_register): New function, created from
10869 do_fp_register_row(). Registers are now (also) printed as hex.
10870 Only one register is printed per row.
10871 (mips_print_register, do_fp_register_row): Print floating point
10872 registers with mips_print_fp_register().
10873
8cf71652
AC
108742003-04-06 Andrew Cagney <cagney@redhat.com>
10875
5e488a7b
AC
10876 * valprint.h (inspect_it): Add extern declaration.
10877 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10878 (selectors_info, classes_info): Ditto.
10879 (find_objc_msgcall): Fix indentation.
10880 (objc_printstr): Delete extern declarations.
10881
8cf71652
AC
10882 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10883
e6ba3bc9
AC
108842003-04-06 Andrew Cagney <cagney@redhat.com>
10885
10886 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10887 Update comment.
10888 * frame.c (legacy_saved_regs_this_id): Update.
10889 (legacy_get_prev_frame): Update.
10890 * xstormy16-tdep.c: Update comment.
10891 * sparc-tdep.c (sparc_frame_chain): Update comment.
10892 * blockframe.c (legacy_frame_chain_valid): Update.
10893
55e1d7e7
AC
108942003-04-06 Andrew Cagney <cagney@redhat.com>
10895
996179ee
AC
10896 * valprint.c (val_print_type_code_int): Delete #ifdef
10897 PRINT_TYPELESS_INTEGER code.
10898
55e1d7e7
AC
10899 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10900 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10901 multi-arch definition.
10902 * gdbarch.h: Re-generate.
10903
43bd9a9e
AC
109042003-04-05 Andrew Cagney <cagney@redhat.com>
10905
10906 Eliminate FRAME_FIND_SAVED_REGS.
10907 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10908 Change FSR parameter to a pointer.
10909 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10910 Assume FSR parameter is a pointer.
10911 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10912 Make fsr a pointer.
10913 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10914 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10915 saved_regs a pointer.
10916 (hppa_frame_saved_pc): Ditto.
10917 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10918 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10919 pointer.
10920 (restore_pc_queue): Make fsr a pointer.
10921 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10922 (hppa_frame_chain): Make saved_regs a pointer, call
10923 hppa_frame_init_saved_regs.
10924 * sparc-tdep.c: Include "gdb_assert.h".
10925 (sparc_frame_find_saved_regs): Replace internal_error with
10926 gdb_assert.
10927 * remote-vxsparc.c (vx_read_register): Delete reference to
10928 FRAME_FIND_SAVED_REGS.
10929 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10930 * gdbarch.h: Regenerate.
10931 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10932 (deprecated_get_frame_saved_regs): Delete declaration.
10933 (struct frame_saved_regs): Delete definition.
10934 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10935 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10936 (hppa_frame_find_saved_regs): Delete declaration.
10937 (FRAME_FIND_SAVED_REGS): Delete macro.
10938 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10939 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10940 FRAME_FIND_SAVED_REGS in comment.
10941
be41e9f4
AC
109422003-04-05 Andrew Cagney <cagney@redhat.com>
10943
10944 * frame.c (frame_func_unwind, get_frame_func): New functions.
10945 * frame.h (get_frame_func, frame_func_unwind): Declare.
10946 (struct frame_info): Add field "prev_func" for caching the
10947 previous frame's function address.
10948 * arm-tdep.c (arm_frameless_function_invocation): Combine
10949 get_pc_function_start and get_frame_pc into get_frame_func.
10950 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10951 (sh64_nofp_frame_init_saved_regs): Ditto.
10952 * s390-tdep.c (s390_function_start): Ditto.
10953 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10954 (rs6000_frameless_function_invocation): Ditto.
10955 (rs6000_frame_saved_pc): Ditto.
10956 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10957 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10958 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10959 (i386_frame_init_saved_regs): Ditto.
10960 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10961 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10962 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10963 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10964 * blockframe.c (frameless_look_for_prologue): Ditto.
10965
a01dd7cc
AC
109662003-04-05 Andrew Cagney <cagney@redhat.com>
10967
10968 * frame.c (legacy_get_prev_frame): Link prev to next at the
10969 function start. Update comments.
10970
5e5592e6
AC
109712003-04-05 Andrew Cagney <cagney@redhat.com>
10972
10973 * frame.c (get_frame_id): Update comment.
10974 (legacy_get_prev_frame): Update comment.
10975 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10976 * gdbarch.h: Regenerate.
10977 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10978 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10979
6fba5002
AC
109802003-04-05 Andrew Cagney <cagney@redhat.com>
10981
10982 * stack.c (print_frame_info): Use get_frame_pc.
10983
7df05f2b
AC
109842003-04-04 Andrew Cagney <cagney@redhat.com>
10985
10986 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10987 the frame's type from the unwinder.
10988 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10989 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10990 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10991 (get_frame_base_address): Use get_frame_type.
10992 (get_frame_locals_address, get_frame_args_address): Ditto.
10993 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10994 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10995 (struct frame_info): Add comment explaining why the frame contains
10996 a "type" field.
10997 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10998 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10999 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11000 NORMAL_FRAME.
11001 * frame-unwind.h: Include "frame.h".
11002 (struct frame_unwind): Add "type" field.
11003 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 11004
11889732
AC
110052003-04-04 Andrew Cagney <cagney@redhat.com>
11006
11007 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11008 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11009 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11010 get_frame_base.
11011 (d10v_unwind_dummy_id): Use frame_id_build.
11012 * frame.c (find_frame_sal): Use get_frame_pc.
11013 (create_new_frame): Use deprecated_update_frame_pc_hack and
11014 deprecated_update_frame_base_hack.
11015 (create_sentinel_frame): Add comment about ->pc going away.
11016 (get_prev_frame): Add comment about ->pc going away.
11017 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11018 frame_id_build, deprecated_update_frame_pc_hack and
11019 deprecated_update_frame_base_hack.
11020 (select_frame): Use get_frame_pc.
11021 (legacy_saved_regs_this_id): Use frame_id_build.
11022
50c46a0d
EZ
110232003-04-04 Elena Zannoni <ezannoni@redhat.com>
11024
fbe586ae
RH
11025 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11026 signed integer case.
11027 (classify_argument): Handle enumerations and references.
50c46a0d 11028
50bbdbd9
AC
110292003-04-04 Andrew Cagney <cagney@redhat.com>
11030
11031 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11032 ID to NULL.
11033
36018d2e
AF
110342003-04-01 Adam Fedor <fedor@gnu.org>
11035
11036 * gdb/objc-lang.c (selectors_info): Replace calls to
11037 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11038 SYMBOL_NATURAL_NAME.
11039 (classes_info, find_methods): Likewise.
11040
35cec841
KB
110412003-04-03 Kevin Buettner <kevinb@redhat.com>
11042
11043 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11044 ``mach'' to the value determined by bfd_default_set_arch_mach().
11045
43136899
BR
110462003-04-02 Bob Rossi <bob_rossi@cox.net>
11047
11048 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11049 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11050 (mi-cmd-file.o): Update dependencies.
11051
040b99fd
KB
110522003-04-01 Kevin Buettner <kevinb@redhat.com>
11053
11054 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11055 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11056
9a3d7dfd
AF
110572003-04-01 Adam Fedor <fedor@gnu.org>
11058
11059 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11060 * language.h (struct language_defn): Add la_demangle.
11061 (language_demangle): Declare.
11062 * language.c (language_demangle): New function.
11063 (unk_lang_demangle): Likewise.
11064 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 11065 Add ukn_lang_demangle.
9a3d7dfd 11066 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 11067 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
11068 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11069 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11070 * jv-lang.c (java_demangle): New function
11071 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
11072 * objc-lang.c (objc_demangle): Add options argument
11073 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
11074 * maint.c (maintenance_demangle): Replace switch with
11075 call to language_demangle.
11076 * utils.c (fprintf_symbol_filtered): Likewise.
11077
5e074003
AC
110782003-04-01 Andrew Cagney <cagney@redhat.com>
11079
11080 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11081 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11082 PRINT_TYPELESS_INTEGER.
11083 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11084 PUSH_RETURN_ADDRESS.
11085
270cb5d6
AC
110862003-04-01 Andrew Cagney <cagney@redhat.com>
11087
11088 * Makefile.in (d10v-tdep.o): Update dependencies.
11089 * d10v-tdep.c: Include "frame-base.h".
11090 (d10v_frame_unwind): Make constant.
11091 (d10v_frame_base_address): New function.
11092 (d10v_frame_base): New variable.
11093 (d10v_gdbarch_init): Set frame_base default.
11094 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11095 comment for base.
11096 (d10v_frame_unwind_cache): Set and use "prev_sp".
11097 (d10v_frame_this_id): Use the previous frame's inner most stack
11098 address and this frame's func address for the frame ID. Use
11099 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 11100
6bfb3e36
AC
111012003-04-01 Andrew Cagney <cagney@redhat.com>
11102
11103 * frame.h (get_frame_locals_address, get_frame_args_address):
11104 Refer to the base address, instead of the address of the first
11105 local or parameter.
8ffd9b1b 11106
da62e633
AC
111072003-04-01 Andrew Cagney <cagney@redhat.com>
11108
11109 Add frame debug info addresses:
11110 * frame-base.c: New file.
11111 * frame-base.h: New file.
11112 * frame.h (struct frame_base): Add opaque declaration.
11113 (get_frame_base): Update comment.
11114 (get_frame_base_address): Declare.
11115 (get_frame_locals_address): Declare.
11116 (get_frame_args_address): Declare.
11117 (struct frame_info): Add "base" and "base_cache". Update
11118 comments on the unwinder.
11119 * frame.c: Include "frame-base.h".
11120 (get_frame_locals_address): New function.
11121 (get_frame_base_address): New function.
11122 (get_frame_args_address): New function.
11123 * findvar.c (read_var_value): Use get_frame_locals_address and
11124 get_frame_args_address.
11125 * stack.c (frame_info): Use get_frame_locals_address and
11126 get_frame_args_address.
11127 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11128 moved to "frame-base.c".
11129 * printcmd.c (print_frame_nameless_args): Ditto.
11130 * symtab.h (address_class): Update comments.
11131 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11132 get_frame_base_address.
11133 * dwarf2expr.c (execute_stack_op): Ditto.
11134 * Makefile.in (frame_base_h): Define.
11135 (frame.o): Update dependencies.
11136 (frame-base.o): Add dependencies.
11137 (SFILES): Add frame-base.c.
11138 (COMMON_OBS): Add frame-base.o.
11139
3d30e9c2
AC
111402003-04-01 Andrew Cagney <cagney@redhat.com>
11141
11142 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11143 CALL_DUMMY_LENGTH): Ditto.
11144 * gdbarch.c: Re-generate.
11145 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11146 (CALL_DUMMY_LENGTH): Delete macro.
11147 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11148 * arm-tdep.c (arm_gdbarch_init): Ditto.
11149 * avr-tdep.c (avr_gdbarch_init): Ditto.
11150 * cris-tdep.c (cris_gdbarch_init): Ditto.
11151 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11152 * frv-tdep.c (frv_gdbarch_init): Ditto.
11153 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11154 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11155 * i386-tdep.c (i386_gdbarch_init): Ditto.
11156 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11158 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11159 * mips-tdep.c (mips_gdbarch_init): Ditto.
11160 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11161 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11162 * s390-tdep.c (s390_gdbarch_init): Ditto.
11163 * sh-tdep.c (sh_gdbarch_init): Ditto.
11164 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11165 * v850-tdep.c (v850_gdbarch_init): Ditto.
11166 * vax-tdep.c (vax_gdbarch_init): Ditto.
11167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11168
ce0c7262
CV
111692003-04-01 Corinna Vinschen <vinschen@redhat.com>
11170
11171 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11172
73dd234f
AC
111732003-04-01 Andrew Cagney <cagney@redhat.com>
11174
11175 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11176 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11177 * gdbarch.h, gdbarch.c: Re-generate.
11178 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11179 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11180 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11181 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11182 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11183 * infcmd.c (run_stack_dummy): Simplify assuming
11184 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11185 * infrun.c (handle_inferior_event): Ditto.
11186 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11187 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11188 * arm-tdep.c (arm_gdbarch_init): Ditto.
11189 * avr-tdep.c (avr_gdbarch_init): Ditto.
11190 * cris-tdep.c (cris_gdbarch_init): Ditto.
11191 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11192 * frv-tdep.c (frv_gdbarch_init): Ditto.
11193 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11194 * i386-tdep.c (i386_gdbarch_init): Ditto.
11195 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11197 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11198 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11199 * mips-tdep.c (mips_gdbarch_init): Ditto.
11200 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11201 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11202 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11203 * s390-tdep.c (s390_gdbarch_init): Ditto.
11204 * sh-tdep.c (sh_gdbarch_init): Ditto.
11205 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11206 * v850-tdep.c (v850_gdbarch_init): Ditto.
11207 * vax-tdep.c (vax_gdbarch_init): Ditto.
11208 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11209
97606a13
DJ
112102003-04-01 Daniel Jacobowitz <drow@mvista.com>
11211
11212 * symfile.c (symfile_relocate_debug_section): Update call to
11213 bfd_simple_get_relocated_section_contents.
11214
e8ab51f7
AC
112152003-03-31 Andrew Cagney <cagney@redhat.com>
11216
11217 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11218 * gdbarch.h, gdbarch.c: Regenerate.
11219 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11220 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11221 available.
11222 * frame.h (generic_fix_call_dummy): Delete declaration.
11223 * dummy-frame.h: Update comment.
11224 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11226 fix_call_dummy.
11227 * sh-tdep.c (sh_gdbarch_init): Ditto.
11228 * s390-tdep.c (s390_gdbarch_init): Ditto.
11229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11230 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11232 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11233 * i386-tdep.c (i386_gdbarch_init): Ditto.
11234 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11235 * frv-tdep.c (frv_gdbarch_init): Ditto.
11236 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11237 * cris-tdep.c (cris_gdbarch_init): Ditto.
11238 * avr-tdep.c (avr_gdbarch_init): Ditto.
11239 * arm-tdep.c (arm_gdbarch_init): Ditto.
11240
018d1b48
JB
112412003-03-31 J. Brobecker <brobecker@gnat.com>
11242
11243 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11244 (INIT_FRAME_AP): Likewise.
11245 (EXTRA_FRAME_INFO): Likewise.
11246
e9a2674e
AC
112472003-03-31 Andrew Cagney <cagney@redhat.com>
11248
11249 * gdbarch.sh: Include "symfile.h".
11250 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11251 * gdbarch.h, gdbarch.c: Re-generate.
11252 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11254 call_dummy_address, the default is at entry_point_address.
11255 * v850-tdep.c (v850_gdbarch_init): Ditto.
11256 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11257 * sh-tdep.c (sh_gdbarch_init): Ditto.
11258 * s390-tdep.c (s390_gdbarch_init): Ditto.
11259 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11260 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11261 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11262 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11263 * i386-tdep.c (i386_gdbarch_init): Ditto.
11264 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11265 * frv-tdep.c (frv_gdbarch_init): Ditto.
11266 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11267 * cris-tdep.c (cris_gdbarch_init): Ditto.
11268 * arm-tdep.c (arm_gdbarch_init): Ditto.
11269
e8a8712a
AC
112702003-03-31 Andrew Cagney <cagney@redhat.com>
11271
11272 * gdbarch.sh (CALL_DUMMY_P): Delete.
11273 * gdbarch.h, gdbarch.c: Re-generate.
11274 * inferior.h (CALL_DUMMY_P): Delete macro.
11275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11276 * vax-tdep.c (vax_gdbarch_init): Update.
11277 * v850-tdep.c (v850_gdbarch_init): Update.
11278 * sparc-tdep.c (sparc_gdbarch_init): Update.
11279 * sh-tdep.c (sh_gdbarch_init): Update.
11280 * s390-tdep.c (s390_gdbarch_init): Update.
11281 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11282 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11283 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11284 * mips-tdep.c (mips_gdbarch_init): Update.
11285 * mcore-tdep.c (mcore_gdbarch_init): Update.
11286 * m68k-tdep.c (m68k_gdbarch_init): Update.
11287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11288 * ia64-tdep.c (ia64_gdbarch_init): Update.
11289 * i386-tdep.c (i386_gdbarch_init): Update.
11290 * h8300-tdep.c (h8300_gdbarch_init): Update.
11291 * frv-tdep.c (frv_gdbarch_init): Update.
11292 * d10v-tdep.c (d10v_gdbarch_init): Update.
11293 * cris-tdep.c (cris_gdbarch_init): Update.
11294 * breakpoint.c (deprecated_frame_in_dummy): Update.
11295 * avr-tdep.c (avr_gdbarch_init): Update.
11296 * alpha-tdep.c (alpha_gdbarch_init): Update.
11297 * arm-tdep.c (arm_gdbarch_init): Update.
11298 * dummy-frame.c (dummy_frame_this_id): Update comments.
11299 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11300 * frame.c (legacy_get_prev_frame): Ditto.
11301 * valops.c (call_function_by_hand): Delete function.
11302 (hand_function_call): Rename to call_function_by_hand
11303
ed234cf8
AC
113042003-03-30 Andrew Cagney <cagney@redhat.com>
11305
11306 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11307 * value.h (struct value): Update comment.
ed234cf8 11308
06c77151
AC
113092003-03-30 Andrew Cagney <cagney@redhat.com>
11310
6c2b5168
AC
11311 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11312 D10V_FP_REGNUM.
11313 (d10v_gdbarch_init): Do not set fp_regnum.
11314
06c77151
AC
11315 * frame.c (get_frame_base): Force ID initialization.
11316 (get_prev_frame): Move computation of the frame ID from here ...
11317 (get_frame_id): ... to here.
11318 (legacy_get_prev_frame): Mark the frame ID as valid.
11319 * frame.h (struct frame_info): Add field "id_p".
11320
97a1a11c
MK
113212003-03-30 Mark Kettenis <kettenis@gnu.org>
11322
11323 * i386-tdep.c (i386_store_struct_return): Removed.
11324 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11325
6c0e89ed
AC
113262003-03-30 Andrew Cagney <cagney@redhat.com>
11327
11328 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11329 * gdbarch.h, gdbarch.c: Regenerate.
11330 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11332 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11333 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11334 * i386-tdep.c (i386_gdbarch_init): Ditto.
11335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11336 * cris-tdep.c (cris_gdbarch_init): Ditto.
11337 * vax-tdep.c (vax_gdbarch_init): Ditto.
11338 * s390-tdep.c (s390_gdbarch_init): Ditto.
11339 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11341 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11342 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11343 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11344 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11345 * sparc-tdep.c (sparc_gdbarch_init): Update.
11346 * sh-tdep.c (sh_gdbarch_init): Update.
11347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11348 * mips-tdep.c (mips_gdbarch_init): Update.
11349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11350 * ia64-tdep.c (ia64_gdbarch_init): Update.
11351 * frv-tdep.c (frv_gdbarch_init): Update.
11352 * avr-tdep.c (avr_gdbarch_init): Update.
11353 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11354 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11355 instead of when push_dummy_call is not available.
8ffd9b1b 11356
f7dd6af2
AC
113572003-03-30 Andrew Cagney <cagney@redhat.com>
11358
11359 * infttrace.c: Include "gdbthread.h".
11360 (parent_attach_all): Fix function signature.
11361 (call_ptrace): Update call.
11362 * Makefile.in (infttrace.o): Update dependencies.
11363
28f617b3
AC
113642003-03-30 Andrew Cagney <cagney@redhat.com>
11365
11366 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11367 PUSH_RETURN_ADDRESS.
11368 * gdbarch.h, gdbarch.c: Regenerate.
11369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11370 * x86-64-tdep.c (x86_64_init_abi): Update.
11371 * v850-tdep.c (v850_gdbarch_init): Update.
11372 * sparc-tdep.c (sparc_gdbarch_init): Update.
11373 * sh-tdep.c (sh_gdbarch_init): Update.
11374 * s390-tdep.c (s390_gdbarch_init): Update.
11375 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11376 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11377 * mips-tdep.c (mips_gdbarch_init): Update.
11378 * mcore-tdep.c (mcore_gdbarch_init): Update.
11379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11380 * ia64-tdep.c (ia64_gdbarch_init): Update.
11381 * i386-tdep.c (i386_gdbarch_init): Update.
11382 * h8300-tdep.c (h8300_gdbarch_init): Update.
11383 * frv-tdep.c (frv_gdbarch_init): Update.
11384 * cris-tdep.c (cris_gdbarch_init): Update.
11385 * avr-tdep.c (avr_gdbarch_init): Update.
11386 * arm-tdep.c (arm_gdbarch_init): Update.
11387 * valops.c (hand_function_call): Update.
11388
4d628cd7
AC
113892003-03-29 Andrew Cagney <cagney@redhat.com>
11390
11391 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11392 sizeof_call_dummy_words.
11393 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11394 define.
11395 * gdbarch.h: Regenerate.
8ffd9b1b 11396
65e82032
AC
113972003-03-29 Andrew Cagney <cagney@redhat.com>
11398
11399 * infttrace.h: New file.
11400 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11401 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11402 (hpread_read_doc_function_type): Detect an initialized type1.
11403 (hpread_quick_traverse): Initialize mod_name_string.
11404 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11405 (som_solib_get_solib_by_pc): Declare.
11406 (so_lib_thread_start_addr): Declare.
11407 (no_shared_libraries): Declare.
11408 * somread.c (init_import_symbols): Make static. Add forward
11409 declaration.
11410 * config/pa/nm-hppah.h: Include "infttrace.h" for
11411 parent_attach_all.
11412 (hppa_insert_hw_watchpoint): Declare.
11413 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11414 * hppah-nat.c: Include "gdb_string.h".
11415 (parent_attach_all): Delete extern declaration, moved to
11416 "infttrace.h".
11417 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11418 int.
11419 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11420 * Makefile.in (infttrace_h): Define.
11421 (hpread.o): Update dependencies.
11422 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11423 * hppa-hpux-tdep.c: Include "gdb_string.h".
11424 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11425 * infrun.c (handle_inferior_event): Always initialize
11426 stepped_after_stopped_by_watchpoint. Add default and remove
11427 fallthrough in switch statement.
11428 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11429 parameter to int.
11430 (hppa_remove_hw_watchpoint): Ditto.
11431
2c3bbe77
AC
114322003-03-29 Andrew Cagney <cagney@redhat.com>
11433
11434 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11435 offset.
11436
2dd604e7
RE
114372003-03-29 Richard Earnshaw <rearnsha@arm.com>
11438
11439 * arm-tdep.c (arm_push_arguments): Delete.
11440 (struct stack_item): New type.
11441 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11442 (arm_store_struct_return): Delte.
11443 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11444 arm_push_arguments or arm_store_struct_return.
11445
e8933a55
AC
114462003-03-28 Andrew Cagney <cagney@redhat.com>
11447
11448 * Makefile.in (d10v-tdep.o): Update dependencies.
11449 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11450 * d10v-tdep.c: Include "remote.h".
11451 (target_resume_hook): Delete extern declaration.
11452 (target_wait_loop_hook): Ditto.
11453 (tdisassemble_command): Eliminate assignment in "if" conditional.
11454 (d10v_ts2_register_sim_regno): Eliminate call to
11455 legacy_register_sim_regno.
11456 (d10v_ts3_register_sim_regno): Ditto.
11457
6949171e
JJ
114582003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11459
11460 * thread.c: Reindented.
11461 * lin-lwp.c: Ditto.
11462 * linux-proc.c: Ditto.
11463
98c7071f
BR
114642003-03-28 Bob Rossi <bob_rossi@cox.net>
11465
fbe586ae 11466 * MAINTAINERS (write after approval): Add myself.
98c7071f 11467
5edc9ca6
TR
114682003-03-27 Theodore A. Roth <troth@openavr.org>
11469
11470 * objc-exp.y: Add missing semi-colons.
11471
378bfd1b
AC
114722003-03-27 Andrew Cagney <cagney@redhat.com>
11473
11474 * regcache.c (write_sp): Delete function and references.
11475 * inferior.h (write_sp): Delete declaration.
11476 * valops.c (hand_function_call): Replace write_sp with
11477 TARGET_WRITE_SP.
11478 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11479 (sparc_pop_frame): Ditto.
8ffd9b1b 11480
56056df7
AC
114812003-03-27 Andrew Cagney <cagney@redhat.com>
11482
11483 * NEWS: Mention removal of support for hppa*-*-bsd* and
11484 hppa*-*-osf* natives, and hppa*-*-pro* target.
11485 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11486 * config/pa/xm-pa.h: Obsolete file.
11487 * config/pa/xm-hppab.h: Obsolete file.
11488 * config/pa/nm-hppab.h: Obsolete file.
11489 * config/pa/tm-hppab.h: Obsolete file.
11490 * config/pa/tm-hppao.h: Obsolete file.
11491 * config/pa/nm-hppao.h: Obsolete file.
11492 * config/pa/tm-pro.h: Obsolete file.
11493 * config/pa/hppaosf.mt: Obsolete file.
11494 * config/pa/hppaosf.mh: Obsolete file.
11495 * config/pa/hppapro.mt: Obsolete file.
11496 * config/pa/hppabsd.mt: Obsolete file.
11497 * config/pa/hppabsd.mh: Obsolete file.
11498 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11499 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11500 hppa*-*-osf*.
11501
5873a88d
AC
115022003-03-27 Andrew Cagney <cagney@redhat.com>
11503
11504 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11505 push_arguments. Don't set push_return_address or write_sp.
11506 (d10v_push_dummy_call): Replace d10v_push_arguments.
11507 (d10v_push_return_address, d10v_write_sp): Delete function,
11508 handled by push_dummy_call.
11509
b81774d8
AC
115102003-03-26 Andrew Cagney <cagney@redhat.com>
11511
11512 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11513 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11514 regcache and dummy_addr parameters.
11515 * gdbarch.h, gdbarch.c: Re-generate.
11516 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11517 available; assume it will handle stack alignment and return
11518 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11519 legacy_push_arguments.
11520 (legacy_push_arguments): Rename default_push_arguments.
11521 * value.h (legacy_push_arguments): Rename default_push_arguments.
11522 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11523 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11524 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11525 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11526 * config/i386/tm-symmetry.h: Update.
11527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11528 * x86-64-tdep.c (x86_64_init_abi): Update.
11529 * v850-tdep.c (v850_gdbarch_init): Update.
11530 * sparc-tdep.c (sparc_gdbarch_init): Update.
11531 * sh-tdep.c (sh_gdbarch_init): Update.
11532 * s390-tdep.c (s390_gdbarch_init): Update.
11533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11534 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11535 * mips-tdep.c (mips_gdbarch_init): Update.
11536 * mcore-tdep.c (mcore_gdbarch_init): Update.
11537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11538 * ia64-tdep.c (ia64_gdbarch_init): Update.
11539 * i386-tdep.c (i386_gdbarch_init): Update.
11540 * hppa-tdep.c (hppa_gdbarch_init): Update.
11541 * h8300-tdep.c (h8300_gdbarch_init): Update.
11542 * frv-tdep.c (frv_gdbarch_init): Update.
11543 * d10v-tdep.c (d10v_gdbarch_init): Update.
11544 * cris-tdep.c (cris_gdbarch_init): Update.
11545 * avr-tdep.c (avr_gdbarch_init): Update.
11546 * arm-tdep.c (arm_gdbarch_init): Update.
11547 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11548 * alpha-tdep.c (alpha_gdbarch_init): Update.
11549
f541410f
DJ
115502003-03-26 Daniel Jacobowitz <drow@mvista.com>
11551
11552 * signals/signals.c (do_target_signal_to_host): Correct realtime
11553 signal range test.
11554
69f567ae
DJ
115552003-03-26 Daniel Jacobowitz <drow@mvista.com>
11556
11557 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11558 (struct sal_chain, map_catch_names): Remove.
11559 (catch_exception_command_1): Don't call
11560 handle_gnu_4_16_catch_command.
11561
d5d14a5a
DJ
115622003-03-26 Daniel Jacobowitz <drow@mvista.com>
11563
11564 From Mark Dettinger <dettinge@de.ibm.com>:
11565 * dwarf2cfi.c (read_2u): Increment pointer by two.
11566
bdd73e22
DJ
115672003-03-26 Daniel Jacobowitz <drow@mvista.com>
11568
11569 * signals/signals.c: Fix typos in last change.
11570
960cb555
DJ
115712003-03-26 Daniel Jacobowitz <drow@mvista.com>
11572
11573 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11574 not already defined. Use __SIGRTMIN if available.
11575 (target_signal_from_host): Remove SIGRTMIN block.
11576 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11577 the signal is within the realtime range.
11578
f636b87d
AF
115792003-03-25 Adam Fedor <fedor@gnu.org>
11580
11581 * Makefile.in (infrun.o): Add $(language_h)
11582 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11583 for language specific trampolines.
11584 * language.h (struct language_defn): Add skip_trampoline.
11585 (skip_language_trampoline): Declare.
11586 * language.c (unk_lang_trampoline, skip_language_trampoline):
11587 New functions.
11588 (unknown_language_defn, auto_language_defn, local_language_defn):
11589 Add ukn_lang_trampoline.
11590 * ada-lang.c (ada_language_defn): Add NULL for language
11591 specific skip_trampoline.
11592 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11593 scm-lang.c: Likewise.
11594 * objc-lang.c (objc_skip_trampoline): New function.
11595 (objc_language_defn): Add objc_skip_trampoline.
11596
28f617b3 115972003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11598
11599 * frame.c (get_prev_frame): Delay validating a frame's ID -
11600 non-NULL, didn't go backwards - until an attempt to unwind it to
11601 the previous frame.
11602
f933a9c5
AC
116032003-03-25 Andrew Cagney <cagney@redhat.com>
11604
11605 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11606 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11607 * gdbarch.h, gdbarch.c: Re-generate.
11608 * config/sparc/tm-sparc.h
11609 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11610 * sparc-tdep.c (sparc_gdbarch_init): Set
11611 deprecated_extra_stack_alignment_needed.
11612 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11614 extra_stack_alignment_needed.
11615 * v850-tdep.c (v850_gdbarch_init): Ditto.
11616 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11617 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11618 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11619 * cris-tdep.c (cris_gdbarch_init): Ditto.
11620 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11622
4183d812
AC
116232003-03-25 Andrew Cagney <cagney@redhat.com>
11624
11625 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11626 STORE_STRUCT_RETURN.
11627 * gdbarch.h, gdbarch.c: Regenerate.
11628 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11629 (d10v_push_arguments): Set the struct return register.
11630 (d10v_gdbarch_init): Update.
11631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11632 * x86-64-tdep.c (x86_64_init_abi): Update.
11633 * vax-tdep.c (vax_gdbarch_init): Update.
11634 * v850-tdep.c (v850_gdbarch_init): Update.
11635 * sparc-tdep.c (sparc_gdbarch_init): Update.
11636 * sh-tdep.c (sh_gdbarch_init): Update.
11637 * s390-tdep.c (s390_gdbarch_init): Update.
11638 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11639 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11640 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11641 * mips-tdep.c (mips_gdbarch_init): Update.
11642 * mcore-tdep.c (mcore_gdbarch_init): Update.
11643 * m68k-tdep.c (m68k_gdbarch_init): Update.
11644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11645 * ia64-tdep.c (ia64_gdbarch_init): Update.
11646 * i386-tdep.c (i386_gdbarch_init): Update.
11647 * hppa-tdep.c (hppa_gdbarch_init): Update.
11648 * h8300-tdep.c (h8300_gdbarch_init): Update.
11649 * frv-tdep.c (frv_gdbarch_init): Update.
11650 * cris-tdep.c (cris_gdbarch_init): Update.
11651 * avr-tdep.c (avr_gdbarch_init): Update.
11652 * arm-tdep.c (arm_gdbarch_init): Update.
11653 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11654
1bf6d5cc
AC
116552003-03-25 Andrew Cagney <cagney@redhat.com>
11656
11657 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11658 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11659 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11660 * gdbarch.h, gdbarch.c: Regenerate.
11661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11662 call_dummy_stack_adjust_p.
11663 * vax-tdep.c (vax_gdbarch_init): Ditto.
11664 * v850-tdep.c (v850_gdbarch_init): Ditto.
11665 * sh-tdep.c (sh_gdbarch_init): Ditto.
11666 * s390-tdep.c (s390_gdbarch_init): Ditto.
11667 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11668 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11669 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11670 * mips-tdep.c (mips_gdbarch_init): Ditto.
11671 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11672 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11674 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11675 * i386-tdep.c (i386_gdbarch_init): Ditto.
11676 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11677 * frv-tdep.c (frv_gdbarch_init): Ditto.
11678 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11679 * cris-tdep.c (cris_gdbarch_init): Ditto.
11680 * avr-tdep.c (avr_gdbarch_init): Ditto.
11681 * arm-tdep.c (arm_gdbarch_init): Ditto.
11682 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11683 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11684 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11685 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11686 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11687 call_dummy_stack_adjust_p.
11688 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11689 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11690 * sparc-tdep.c (sparc32_push_arguments): Update.
11691 * valops.c (hand_function_call): Update.
11692
71c08af0
CV
116932003-03-25 Corinna Vinschen <vinschen@redhat.com>
11694
11695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11696 set_gdbarch_char_signed.
11697
30757f90
RE
116982003-03-25 Richard Earnshaw <rearnsha@arm.com>
11699
11700 PR cli/548
11701 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11702
03d48a7d
RE
117032003-03-25 Richard Earnshaw <rearnsha@arm.com>
11704
11705 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11706 (_initialize_arm_tdep): Don't set tm_print_insn.
11707
2cf6873c
AF
117082003-03-24 Adam Fedor <fedor@gnu.org>
11709
11710 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11711 * objc-lang.h: Add multiple inclusion protection.
11712 (start_msglist, add_msglist, end_msglist): Additional declarations.
11713
17c0759e
RE
117142003-03-24 Richard Earnshaw <rearnsha@arm.com>
11715
11716 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11717 value was renamed to ARM_FLOAT_SOFT_FPA.
11718
618ce49f
AC
117192003-03-23 Andrew Cagney <cagney@redhat.com>
11720
11721 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11722 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11723 * gdbarch.h, gdbarch.c: Regenerate.
11724 * valops.c (hand_function_call): Update.
11725 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11726 * frame.c (legacy_saved_regs_this_id): Update.
11727 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11728 * dummy-frame.h: Update.
11729 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11730 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11731 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11732 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11733 * config/m68k/tm-sun3.h: Update.
11734 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11736 * x86-64-tdep.c (x86_64_init_abi): Update.
11737 * vax-tdep.c (vax_gdbarch_init): Update.
11738 * v850-tdep.c (v850_gdbarch_init): Update.
11739 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11740 * sh-tdep.c (sh_gdbarch_init): Update.
11741 * s390-tdep.c (s390_gdbarch_init): Update.
11742 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11743 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11744 (frame_get_saved_regs): Update.
11745 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11746 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11748 * mips-tdep.c (mips_gdbarch_init): Update.
11749 * mcore-tdep.c (mcore_gdbarch_init): Update.
11750 * m68k-tdep.c (m68k_gdbarch_init): Update.
11751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11752 * ia64-tdep.c (ia64_gdbarch_init): Update.
11753 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11754 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11755 (i386_interix_back_one_frame): Update.
11756 * hppa-tdep.c (hppa_gdbarch_init): Update.
11757 (hppa_init_extra_frame_info): Update.
11758 * h8300-tdep.c (h8300_gdbarch_init): Update.
11759 * frv-tdep.c (frv_gdbarch_init): Update.
11760 * cris-tdep.c (cris_gdbarch_init): Update.
11761 * avr-tdep.c (avr_gdbarch_init): Update.
11762 * arm-tdep.c (arm_gdbarch_init): Update.
11763 * alpha-tdep.c (alpha_gdbarch_init): Update.
11764
fd50bc42
RE
117652003-03-22 Richard Earnshaw <rearnsha@arm.com>
11766
11767 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11768 (arm_get_fp_model): Declare.
11769 * arm-tdep.c (fp_model_strings): New string array.
11770 (arm_fp_model, current_fp_model): New variables.
11771 (arm_get_fp_model): New function.
11772 (arm_set_fp): New function.
11773 (set_fp_model_sfunc): New function.
11774 (show_fp_model): New function.
11775 (_initialize_arm_tdep): Add new command to set/show the FPU.
11776 (arm_extract_return_value): Use arm_get_fp_model.
11777 (arm_store_return_value): Likewise.
11778 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11779 to initialize the floating-point data types.
11780 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11781 model is FPA.
11782
26304000
RE
117832003-03-22 Richard Earnshaw <rearnsha@arm.com>
11784
11785 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11786 the current setting of each value.
11787 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11788 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11789 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11790 commands and add new version as subcommands of "set/show arm".
11791
afd7eef0
RE
117922003-03-22 Richard Earnshaw <rearnsha@arm.com>
11793
11794 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11795 (set_arm_command, show_arm_command): New functions.
11796 (_initialize_arm_tdep): Add them.
11797 (num_disassembly_options): Renamed from num_flavor_options.
11798 (valid_disassembly_styles): Renamed from valid_flavors.
11799 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11800 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11801 set_disassembly_flavor_sfunc.
11802 (set_disassembly_style): Renamed from set_disassembly_flavor.
11803 (arm_othernames): Updated.
11804 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11805 command. Add "set/show arm disassembly" commands. Deprecate
11806 "othernames" command.
11807
299a7944
RE
118082003-03-22 Richard Earnshaw <rearnsha@arm.com>
11809
11810 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11811 (arm-tdep.o): Depend on elf_arm_h.
11812
c1dac9e6
RE
118132003-03-22 Richard Earnshaw <rearnsha@arm.com>
11814
11815 * Makefile.in (coff_internal_h): Define.
11816 (arm-tdep.o): Update dependencies.
11817
2702d96c
RE
118182003-03-22 Richard Earnshaw <rearnsha@arm.com>
11819
11820 * arm-tdep.c (prologue_cache): Delete.
11821 (check_prologue_cache, save_prologue_cache): Delete.
11822 (arm_scan_prologue): Don't check or update the prologue_cache.
11823 (arm_gdb_arch_init): Don't initialize it.
11824 (_initialize_arm_tdep): Likewise.
11825
27d5d74b
SC
118262003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11827
11828 * MAINTAINERS (tui): Maintainer of tui code.
11829
1762d96d
CV
118302003-03-21 Corinna Vinschen <vinschen@redhat.com>
11831
11832 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11833 (i386-cygwin-tdep.o): Add dependencies.
11834 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11835 * i386-cygwin-tdep.c: New file.
11836 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11837 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11838
4c2e2391
AC
118392003-03-20 Andrew Cagney <cagney@redhat.com>
11840
f20d38b7
AC
11841 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11842 (handle_inferior_event): Remove code calling
11843 DYNAMIC_TRAMPOLINE_NEXTPC.
11844
0022b738
AC
11845 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11846 already has a full path.
11847
864dbc90
AC
11848 * main.c (gdb_main): Return 1.
11849 (captured_main): Call error to report an invalid interpreter.
11850
4c2e2391
AC
11851 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11852 * alpha-osf1-tdep.c: Include "gdb_string.h".
11853
5ef7553b
JB
118542003-03-19 J. Brobecker <brobecker@gnat.com>
11855
11856 Continuing work to convert the hppa targets to multiarch partial.
11857
11858 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11859 method, now that hppa_push_dummy_frame has a conformant prototype.
11860 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11861 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11862 for the switch to multiarch partial.
11863
7bde8967
KB
118642003-03-19 Kevin Buettner <kevinb@redhat.com>
11865
11866 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11867 when iss is issNull.
11868
b006a9e9
KB
118692003-03-18 Kevin Buettner <kevinb@redhat.com>
11870
11871 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11872 NUM_REGS bounds check.
11873
5e2e9765
KB
118742003-03-18 Kevin Buettner <kevinb@redhat.com>
11875
11876 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11877 * mips-tdep.c (gdb_assert.h): Include.
11878 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11879 (mips_register_name): Handle integer registers explicitly. Add
11880 bounds checking.
11881 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11882 (mips_lsi33k_reg_names): Don't list integer registers; they're
11883 handled by mips_register_name() now.
11884 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11885 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11886 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11887 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11888 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11889
a2867626
AC
118902003-03-18 Andrew Cagney <cagney@redhat.com>
11891
11892 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11893 a void pointer.
11894 * gdbtypes.h (print_scalar_formatted): Update declaration.
11895 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11896
06600e06
JB
118972003-03-18 J. Brobecker <brobecker@gnat.com>
11898
11899 * infrun.c (observer.h): Add #include.
11900 (normal_stop): Add call to observer_notify_normal_stop.
11901 * Makefile.in (infrun.o): Add dependency on observer.h.
11902
7daf4f5b
JB
119032003-03-18 J. Brobecker <brobecker@gnat.com>
11904
11905 Continuing work to convert the hppa targets to multiarch partial.
11906 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11907 parameter. Reformat comment.
11908 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11909 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11910 to match new profile.
11911
3371ccc0
JB
119122003-03-18 J. Brobecker <brobecker@gnat.com>
11913
11914 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11915 appear to be working in any case.
11916
4fbe891e
JB
119172003-03-18 J. Brobecker <brobecker@gnat.com>
11918
11919 * observer.c (observer_test_first_observer): New static variable.
11920 (observer_test_second_observer): Likewise.
11921 (observer_test_third_observer): Likewise.
11922 (observer_test_first_notification_function): New static function.
11923 (observer_test_second_notification_function): Likewise.
11924 (observer_test_third_notification_function): Likewise.
11925
a7ff40e7
JB
119262003-03-17 J. Brobecker <brobecker@gnat.com>
11927
11928 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11929 * somsolib.c (gdb_assert.h): Likewise.
11930 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11931 (somsolib.o): Likewise.
11932
26ca4152
AC
119332003-03-17 Andrew Cagney <cagney@redhat.com>
11934
11935 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11936 BFD. Simplify setting of di.endian.
11937
0a613259
AC
119382003-03-17 Andrew Cagney <cagney@redhat.com>
11939
11940 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11941 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11942
11943 From Elena Zannoni <ezannoni@redhat.com>
11944 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11945 vector and floating-point parameters.
11946 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11947 convention.
11948 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11949
1132738f
FN
119502003-03-17 Fernando Nasser <fnasser@redhat.com>
11951
11952 * MAINTAINERS: Remove my name from several maintainership roles.
11953
6dc42492
AC
119542003-03-17 Andrew Cagney <cagney@redhat.com>
11955
11956 Fix frame off-by-one bug.
11957 * frame-unwind.h (frame_this_id_ftype): Replace
11958 frame_unwind_id_ftype.
11959 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11960 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11961 with "prev_register".
11962 * frame-unwind.c (frame_unwind_find_by_pc): Return
11963 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11964 comment.
11965 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11966 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11967 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11968 (dummy_frame_unwind): Update.
11969 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11970 sentinel_frame_register_unwind.
11971 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11972 (sentinel_frame_unwinder): Update.
11973 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11974 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11975 * frame.c (create_sentinel_frame): Update. Initialize
11976 "prologue_cache" instead of "unwind_cache".
11977 (frame_register_unwind): Call this frame's prev_register with the
11978 next frame and this frame's prologue cache.
11979 (get_prev_frame): Simplify. Always call prev frame's this_id with
11980 this frame and prev frame's prologue cache. Document that this
11981 call is shifted one to the left when compared to the
11982 frame_register_unwind call.
11983 (legacy_saved_regs_prev_register): Replace
11984 frame_saved_regs_register_unwind.
11985 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11986 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11987 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11988 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11989 (d10v_frame_unwind): Update.
11990 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11991 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11992 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11993 "saved_regs" with "this_saved_regs".
11994
efd710d6
AC
119952003-03-16 Andrew Cagney <cagney@redhat.com>
11996
11997 * frame.c (frame_pop): Don't call target_store_registers. Fix
11998 problem reported by Mark Kettenis.
11999
4e259f09
MK
120002003-03-16 Mark Kettenis <kettenis@gnu.org>
12001
12002 * i386-tdep.c (i386_register_type): Renamed from
12003 i386_register_virtual_type. Adjust function signature.
12004 (i386_gdbarch_init): Set register_type instead of
12005 deprecated_max_register_raw_size,
12006 deprecated_max_register_virtual_size and register_virtual_type.
12007
055bb976
AC
120082003-03-14 Andrew Cagney <cagney@redhat.com>
12009
12010 * frame.c (get_prev_frame): When a legacy frame, always call
12011 legacy_get_prev_frame. Simplify unwind code using assumption that
12012 the unwinder is new.
12013 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12014 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12015 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12016
ac2adee5
AC
120172003-03-14 Andrew Cagney <cagney@redhat.com>
12018
12019 * frame.c (get_saved_register): Delete function.
12020 * frame.h (get_saved_register): Delete declaration.
12021 * xstormy16-tdep.c: Update comment.
12022 * regcache.h: Update comments.
12023 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12024 get_saved_register and extract_address, use
12025 frame_read_unsigned_register.
12026 (sparc_frame_saved_pc): Ditto.
12027 (sparc_get_saved_register): Instead of get_saved_register, use
12028 frame_register.
12029 (sparc_pop_frame): Ditto.
12030 * findvar.c: Update comments.
12031 (value_of_register): Call frame_register instead of
12032 get_saved_register.
12033 (value_from_register): Ditto.
12034 * config/sparc/tm-sparc.h: Update comment.
12035 * breakpoint.c: Update comment.
12036
129c1cd6
AC
120372003-03-14 Andrew Cagney <cagney@redhat.com>
12038
12039 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12040 GET_SAVED_REGISTER.
12041 * gdbarch.h, gdbarch.c: Re-generate.
12042 * frame.h: Update comments.
12043 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12044 * x86-64-tdep.c (x86_64_init_abi): Update.
12045 * sparc-tdep.c (sparc_gdbarch_init): Update.
12046 * sh-tdep.c (sh_gdbarch_init): Update.
12047 * mips-tdep.c (mips_gdbarch_init): Update.
12048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12049 * cris-tdep.c (cris_gdbarch_init): Update.
12050 * ia64-tdep.c (ia64_gdbarch_init): Update.
12051 * frame.c (frame_register): Update.
12052 (get_saved_register): Update.
12053 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 12054
749b82f6
AC
120552003-03-13 Andrew Cagney <cagney@redhat.com>
12056
12057 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12058 * gdbarch.h, gdbarch.c: Regenerate.
12059 * valops.c (hand_function_call): Update comment.
12060 * stack.c (return_command): Update comment.
12061 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12062 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12064 * x86-64-tdep.c (x86_64_init_abi): Update.
12065 * vax-tdep.c (vax_gdbarch_init): Update.
12066 * v850-tdep.c (v850_gdbarch_init): Update.
12067 * sparc-tdep.c (sparc_gdbarch_init): Update.
12068 * sh-tdep.c (sh_gdbarch_init): Update.
12069 * s390-tdep.c (s390_gdbarch_init): Update.
12070 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12071 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12072 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12073 * mips-tdep.c (mips_gdbarch_init): Update.
12074 * mcore-tdep.c (mcore_gdbarch_init): Update.
12075 * m68k-tdep.c (m68k_gdbarch_init): Update.
12076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12077 * ia64-tdep.c (ia64_gdbarch_init): Update.
12078 * i386-tdep.c (i386_gdbarch_init): Update.
12079 * hppa-tdep.c (hppa_gdbarch_init): Update.
12080 * h8300-tdep.c (h8300_gdbarch_init): Update.
12081 * frv-tdep.c (frv_gdbarch_init): Update.
12082 * cris-tdep.c (cris_gdbarch_init): Update.
12083 * avr-tdep.c (avr_gdbarch_init): Update.
12084 * arm-tdep.c (arm_gdbarch_init): Update.
12085 * alpha-tdep.c (alpha_gdbarch_init): Update.
12086
1594fa56
AC
120872003-03-13 Andrew Cagney <cagney@redhat.com>
12088
12089 * frame.c (legacy_frame_p): New function.
12090 (get_prev_frame): Use legacy_frame_p.
12091 * frame.h (legacy_frame_p): Declare.
12092
7717fda3
V
120932003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12094
fbe586ae 12095 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
12096 listing corrected.
12097
0c67cbe9
V
120982003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12099
fbe586ae 12100 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 12101
03febf99
AC
121022003-03-12 Andrew Cagney <cagney@redhat.com>
12103
12104 * frame.c (get_prev_frame): Rename the frame parameter to
12105 "this_frame".
12106 (get_next_frame, legacy_get_prev_frame): Ditto.
12107
0a1e1ca1
AC
121082003-03-12 Andrew Cagney <cagney@redhat.com>
12109
12110 * frame.c (get_current_frame): Check target_has_registers before
12111 checking target_has_stack.
12112 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12113 instead of deprecated_selected_frame.
12114 * findvar.c (value_of_register): Pass "frame", not
12115 deprecated_selected_frame, to value_of_builtin_reg.
12116
a66a9c23
AC
121172003-03-12 Andrew Cagney <cagney@redhat.com>
12118
12119 * regcache.c (regcache_cooked_write_signed): New function.
12120 (regcache_cooked_write_unsigned): New function.
12121 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12122 (regcache_cooked_read_signed): Fix regnum in range assertion.
12123 * regcache.h (regcache_cooked_write_signed): Declare.
12124 (regcache_cooked_write_unsigned): Declare.
12125
8bedc050
AC
121262003-03-12 Andrew Cagney <cagney@redhat.com>
12127
12128 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12129 * gdbarch.h, gdbarch.c: Re-generate.
12130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12131 * x86-64-tdep.h: Update.
12132 * x86-64-tdep.c (x86_64_init_abi): Update.
12133 * v850-tdep.c (v850_gdbarch_init): Update.
12134 * sparc-tdep.c (sparc_gdbarch_init): Update.
12135 * sh-tdep.c (sh_gdbarch_init): Update.
12136 * s390-tdep.c (s390_gdbarch_init): Update.
12137 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12138 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12139 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12140 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12141 * mips-tdep.c (mips_gdbarch_init): Update.
12142 * mcore-tdep.c (mcore_gdbarch_init): Update.
12143 * m68k-tdep.c (m68k_gdbarch_init): Update.
12144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12145 * ia64-tdep.c (ia64_gdbarch_init): Update.
12146 * i386-tdep.c (i386_gdbarch_init): Update.
12147 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12148 * hppa-tdep.c (hppa_gdbarch_init): Update.
12149 * h8300-tdep.c (h8300_gdbarch_init): Update.
12150 * frv-tdep.c (frv_gdbarch_init): Update.
12151 * cris-tdep.c (cris_gdbarch_init): Update.
12152 * avr-tdep.c (avr_gdbarch_init): Update.
12153 * arm-tdep.c (arm_gdbarch_init): Update.
12154 * alpha-tdep.c (alpha_gdbarch_init): Update.
12155 * sh-tdep.c (sh_init_extra_frame_info): Update.
12156 (sh64_init_extra_frame_info): Update.
12157 * ns32knbsd-nat.c (frame_num_args): Update.
12158 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12159 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12160 (xstormy16_frame_chain_valid): Update.
12161 * vax-tdep.c (vax_saved_pc_after_call): Update.
12162 * v850-tdep.c (v850_frame_chain): Update.
12163 (v850_pop_frame): Update.
12164 (v850_init_extra_frame_info): Update.
12165 * sparc-tdep.c (setup_arbitrary_frame): Update.
12166 * ns32k-tdep.c (umax_frame_num_args): Update.
12167 * s390-tdep.c (s390_pop_frame_regular): Update.
12168 * mn10300-tdep.c (mn10300_frame_chain): Update.
12169 (mn10300_pop_frame_regular): Update.
12170 (mn10300_init_extra_frame_info): Update.
12171 * mips-tdep.c (mips_init_frame_pc_first): Update.
12172 (mips_frame_chain): Update.
12173 (mips_pop_frame): Update.
12174 * mcore-tdep.c (mcore_frame_chain): Update.
12175 (mcore_pop_frame): Update.
12176 (mcore_init_extra_frame_info): Update.
12177 * arch-utils.c (init_frame_pc_default): Update.
12178 * m68k-tdep.c (isi_frame_num_args): Update.
12179 (delta68_frame_num_args): Update.
12180 (news_frame_num_args): Update.
12181 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12182 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12183 (alpha_frame_chain): Update.
12184 (alpha_pop_frame): Update.
12185 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12186 (hppa_init_extra_frame_info): Update.
12187 (hppa_frame_chain): Update.
12188 (hppa_frame_chain_valid): Update.
12189 * cris-tdep.c (cris_init_extra_frame_info): Update.
12190 * avr-tdep.c (avr_init_extra_frame_info): Update.
12191 * arm-tdep.c (arm_frame_chain_valid): Update.
12192 (arm_init_extra_frame_info): Update.
12193 (arm_pop_frame): Update.
12194 * frame.c (frame_pc_unwind): Update.
12195 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12196 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12197 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12198 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12199 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12200 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12201
7a25a7c1
AC
122022003-03-12 Andrew Cagney <cagney@redhat.com>
12203
12204 Eliminate the need for POP_FRAME.
12205 * frame.c (do_frame_unwind_register): New function.
12206 (frame_pop): When no POP_FRAME, pop the frame using register
12207 unwind and a scratch regcache.
12208 (frame_saved_regs_pop): Delete function.
12209 (trad_frame_unwinder): Update.
12210 * d10v-tdep.c (d10v_frame_pop): Delete function.
12211 (d10v_frame_unwind): Update.
12212 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12213 (sentinel_frame_unwinder): Update.
12214 * dummy-frame.c (dummy_frame_pop): Delete function.
12215 (dummy_frame_unwind): Update.
12216 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12217 (struct frame_unwind): Update.
12218
2f38ef89
KB
122192003-03-11 Kevin Buettner <kevinb@redhat.com>
12220
12221 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12222 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12223 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12224 Do range checks on register number obtained from debugging info.
12225 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12226 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12227 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12228 mapping function.
12229 (do_fp_register_row): Fix typo which caused double type to be
12230 used when attempting to unpack a float.
12231
552f4abf
JB
122322003-03-11 J. Brobecker <brobecker@gnat.com>
12233
12234 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12235
e0d2ae16
AC
122362003-03-11 Andrew Cagney <cagney@redhat.com>
12237
12238 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12239 frame. Problem found by Corinna Vinschen.
12240
ddbfdd06
PM
122412003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12242
12243 * doublest.c (floatformat_from_length): Accept also
12244 the real size of 'long double' type.
12245
088b2ddc 122462003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12247
088b2ddc 12248 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12249 * breakpoint.c (bpstat_copy): Copy the command lines as well
12250 as the old value, to match what is freed in bpstat_clear.
12251
f56f77c1
DC
122522003-03-10 David Carlton <carlton@math.stanford.edu>
12253
12254 * minsyms.c (add_minsym_to_hash_table): Replace
12255 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12256 (compare_minimal_symbols, compact_minimal_symbols)
12257 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12258 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12259 of DEPRECATED_SYMBOL_MATCHES_NAME.
12260 (lookup_minimal_symbol_solib_trampoline): Ditto.
12261
5602984a
AC
122622003-03-10 Andrew Cagney <cagney@redhat.com>
12263
12264 * regcache.h (regcache_cooked_read_ftype): Define.
12265 (regcache_save, regcache_restore): Add a cooked_read parameter.
12266 * regcache.c (regcache_save, regcache_restore): Update.
12267 (do_cooked_read): New function.
12268 (regcache_cpy): Pass do_cooked_read to regcache_save and
12269 regcache_restore.
12270
8bedc050
AC
122712003-03-10 Andrew Cagney <cagney@redhat.com>
12272
12273 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12274 * gdbarch.h, gdbarch.c: Re-generate.
12275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12276 * x86-64-tdep.h: Update.
12277 * x86-64-tdep.c (x86_64_init_abi): Update.
12278 * v850-tdep.c (v850_gdbarch_init): Update.
12279 * sparc-tdep.c (sparc_gdbarch_init): Update.
12280 * sh-tdep.c (sh_gdbarch_init): Update.
12281 * s390-tdep.c (s390_gdbarch_init): Update.
12282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12283 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12284 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12285 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12286 * mips-tdep.c (mips_gdbarch_init): Update.
12287 * mcore-tdep.c (mcore_gdbarch_init): Update.
12288 * m68k-tdep.c (m68k_gdbarch_init): Update.
12289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12290 * ia64-tdep.c (ia64_gdbarch_init): Update.
12291 * i386-tdep.c (i386_gdbarch_init): Update.
12292 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12293 * hppa-tdep.c (hppa_gdbarch_init): Update.
12294 * h8300-tdep.c (h8300_gdbarch_init): Update.
12295 * frv-tdep.c (frv_gdbarch_init): Update.
12296 * cris-tdep.c (cris_gdbarch_init): Update.
12297 * avr-tdep.c (avr_gdbarch_init): Update.
12298 * arm-tdep.c (arm_gdbarch_init): Update.
12299 * alpha-tdep.c (alpha_gdbarch_init): Update.
12300 * sh-tdep.c (sh_init_extra_frame_info): Update.
12301 (sh64_init_extra_frame_info): Update.
12302 * ns32knbsd-nat.c (frame_num_args): Update.
12303 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12304 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12305 (xstormy16_frame_chain_valid): Update.
12306 * vax-tdep.c (vax_saved_pc_after_call): Update.
12307 * v850-tdep.c (v850_frame_chain): Update.
12308 (v850_pop_frame): Update.
12309 (v850_init_extra_frame_info): Update.
12310 * sparc-tdep.c (setup_arbitrary_frame): Update.
12311 * ns32k-tdep.c (umax_frame_num_args): Update.
12312 * s390-tdep.c (s390_pop_frame_regular): Update.
12313 * mn10300-tdep.c (mn10300_frame_chain): Update.
12314 (mn10300_pop_frame_regular): Update.
12315 (mn10300_init_extra_frame_info): Update.
12316 * mips-tdep.c (mips_init_frame_pc_first): Update.
12317 (mips_frame_chain): Update.
12318 (mips_pop_frame): Update.
12319 * mcore-tdep.c (mcore_frame_chain): Update.
12320 (mcore_pop_frame): Update.
12321 (mcore_init_extra_frame_info): Update.
12322 * arch-utils.c (init_frame_pc_default): Update.
12323 * m68k-tdep.c (isi_frame_num_args): Update.
12324 (delta68_frame_num_args): Update.
12325 (news_frame_num_args): Update.
12326 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12327 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12328 (alpha_frame_chain): Update.
12329 (alpha_pop_frame): Update.
12330 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12331 (hppa_init_extra_frame_info): Update.
12332 (hppa_frame_chain): Update.
12333 (hppa_frame_chain_valid): Update.
12334 * cris-tdep.c (cris_init_extra_frame_info): Update.
12335 * avr-tdep.c (avr_init_extra_frame_info): Update.
12336 * arm-tdep.c (arm_frame_chain_valid): Update.
12337 (arm_init_extra_frame_info): Update.
12338 (arm_pop_frame): Update.
12339 * frame.c (frame_pc_unwind): Update.
12340 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12341 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12342 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12343 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12344 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12345 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12346
12cc2063
AC
123472003-03-10 Andrew Cagney <cagney@redhat.com>
12348
12349 * gdbarch.sh (gdbarch_unwind_pc): New method.
12350 * gdbarch.h, gdbarch.c: Regenerate.
12351 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12352 but use read_pc and FRAME_SAVED_PC as fall backs.
12353 (frame_saved_regs_pc_unwind): Delete function.
12354 (trad_frame_unwinder): Update.
12355 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12356 (struct frame_unwind): Update.
12357 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12358 (dummy_frame_unwind): Update.
12359 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12360 (sentinel_frame_unwinder): Update.
12361 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12362 (d10v_frame_unwind): Update.
12363 (d10v_unwind_pc): New function.
12364 (d10v_gdbarch_init): Set unwind_pc.
12365
ef840a37
AC
123662003-03-10 Andrew Cagney <cagney@redhat.com>
12367
a2ce2e56
AC
12368 * gdbarch.h: Re-generate.
12369
ef840a37
AC
12370 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12371 PC.
12372 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12373 the PC register.
12374
08f3424b
MK
123752003-03-08 Mark Kettenis <kettenis@gnu.org>
12376
12377 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12378
1248ede2
AC
123792003-03-08 Andrew Cagney <cagney@redhat.com>
12380
12381 * cli-out.c: Update copyright.
12382 (cli_out_data): Define typedef. Use instead of ui_out_data.
12383
f49bacc8
AC
123842003-03-08 Andrew Cagney <cagney@redhat.com>
12385
12386 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12387 the result.
12388
9b05f993
AC
123892003-03-07 Andrew Cagney <cagney@redhat.com>
12390
12391 * gdbarch.sh: Don't generate two macro definitions when an
12392 undefined macro taking no arguments.
12393 * gdbarch.h: Regenerate.
8ffd9b1b 12394
166f4c7b
ML
123952002-03-07 Michal Ludvig <mludvig@suse.cz>
12396
12397 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12398 (x86_64_unwind_dummy_id): New functions.
12399 (x86_64_init_abi): Register these two new functions.
12400
6d686a84
ML
124012003-03-07 Michal Ludvig <mludvig@suse.cz>
12402
12403 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12404 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12405 separate function.
12406 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12407
6314f104
AC
124082003-03-05 Andrew Cagney <cagney@redhat.com>
12409
12410 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12411 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12412 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12413 to use unwind_dummy_id when a dummy frame.
12414 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12415 predicate.
12416 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12417
ceea5145
AC
124182003-03-05 Andrew Cagney <cagney@redhat.com>
12419
12420 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12421 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12422 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12423 values.
12424
0d843116
AC
124252003-03-05 Andrew Cagney <cagney@redhat.com>
12426
12427 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12428 (struct d10v_unwind_cache): Delete field "frameless". Replace
12429 "next_addr" with "sp_offset". Add "r11_offset".
12430 (d10v_frame_unwind_cache): Update.
12431 (prologue_find_regs): Update. When "mv r11, sp", save the
12432 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12433 RN was saved in r11_offset.
12434
b2579786
AC
124352003-03-05 Andrew Cagney <cagney@redhat.com>
12436
12437 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12438 cached PC value in the next frame.
12439
218e5956
AC
124402003-03-05 Andrew Cagney <cagney@redhat.com>
12441
12442 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12443 "id_unwind_cache" with "id".
12444 (frame_id_unwind): Delete declaration.
12445 * frame.c (frame_id_unwind): Delete function.
12446 (get_prev_frame): Call the frame id unwind method directly. Store
12447 the returned next frame's ID value in NEXT_FRAME. Note that there
12448 is a problem with the wrong unwind ID being called with the wrong
12449 unwind cache.
12450
ed363b1b
DJ
124512003-03-05 Daniel Jacobowitz <drow@mvista.com>
12452
12453 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12454
fe1f4a5e
DJ
124552003-03-05 James Ingham <jingham@apple.com>
12456 Daniel Jacobowitz <drow@mvista.com>
12457
12458 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12459 (auto_cp_abi): New variable.
12460 (current_cp_abi, num_cp_abis): Make static.
12461 (CP_ABI_MAX): Define.
12462 (cp_abis): Turn into an array.
12463 (value_virtual_fn_field): Fix formatting.
12464 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12465 takes a pointer.
12466 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12467 (list_cp_abis, _initialize_cp_abi): New functions.
12468 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12469 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12470 switch_to_cp_abi. Update prototype for register_cp_abi.
12471 * Makefile.in (cp-abi.o): Update dependencies.
12472 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12473 instead of switch_to_cp_abi.
12474 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12475 register_cp_abi.
12476 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12477 register_cp_abi.
12478 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12479
e4adbba9
DJ
124802003-03-05 Daniel Jacobowitz <drow@mvista.com>
12481
12482 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12483 * dwarf2loc.c: Include "regcache.h".
12484 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12485 register_size.
12486 * Makefile.in (dwarf2loc.o): Update dependencies.
12487
91ccbfc1
TR
124882003-03-04 Theodore A. Roth <troth@openavr.org>
12489
12490 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12491 number of io registers reported by remote target is not a multiple of
12492 step.
12493
3d4e8fd2
DC
124942003-03-04 David Carlton <carlton@math.stanford.edu>
12495
12496 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12497 (lookup_symbol_aux_psymtabs): Update call to
12498 lookup_partial_symbol.
12499 (lookup_transparent_type, find_main_psymtab)
12500 (make_symbol_overload_list): Ditto.
12501
ed42d87b
KH
125022003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12503
12504 * MAINTAINERS (Write after approval): Update my email address.
12505
a0ed5532
AC
125062003-03-03 Andrew Cagney <cagney@redhat.com>
12507
12508 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12509 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12510 predicate. Replace MAX_REGISTER_RAW_SIZE.
12511 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12512 MAX_REGISTER_VIRTUAL_SIZE.
12513 * regcache.c (legacy_max_register_raw_size): New function.
12514 (legacy_max_register_virtual_size): New function.
12515 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12516 (MAX_REGISTER_RAW_SIZE): Define.
12517 (legacy_max_register_raw_size): Declare.
12518 (legacy_max_register_virtual_size): Declare.
12519 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12520 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12521 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12522 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12523 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12524 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12525 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12526 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12527 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12529 * vax-tdep.c (vax_gdbarch_init): Update.
12530 * v850-tdep.c (v850_gdbarch_init): Update.
12531 * sparc-tdep.c (sparc_gdbarch_init): Update.
12532 * sh-tdep.c (sh_gdbarch_init): Update.
12533 * s390-tdep.c (s390_gdbarch_init): Update.
12534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12535 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12536 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12537 * mips-tdep.c (mips_gdbarch_init): Update.
12538 * mcore-tdep.c (mcore_gdbarch_init): Update.
12539 * m68k-tdep.c (m68k_gdbarch_init): Update.
12540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12541 * ia64-tdep.c (ia64_gdbarch_init): Update.
12542 * i386-tdep.c (i386_gdbarch_init): Update.
12543 * hppa-tdep.c (hppa_gdbarch_init): Update.
12544 * h8300-tdep.c (h8300_gdbarch_init): Update.
12545 * frv-tdep.c (frv_gdbarch_init): Update.
12546 * cris-tdep.c (cris_gdbarch_init): Update.
12547 * avr-tdep.c (avr_gdbarch_init): Update.
12548 * arm-tdep.c (arm_gdbarch_init): Update.
12549 * alpha-tdep.c (alpha_gdbarch_init): Update.
12550 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12551 max_register_raw_size or max_register_virtual_size.
12552
8e437497
DC
125532003-03-03 David Carlton <carlton@math.stanford.edu>
12554
12555 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12556 SYMBOL_MATCHES_NAME, add comment.
12557 (SYMBOL_MATCHES_NATURAL_NAME): New.
12558 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12559 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12560 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12561 * symtab.c (lookup_partial_symbol): Use
12562 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12563 unhelpful comment.
12564 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12565 SYMBOL_MATCHES_NAME.
12566 Fix for PR c++/33.
12567
25120b0d
DC
125682003-03-03 David Carlton <carlton@math.stanford.edu>
12569
12570 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12571 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12572 by regexp matching against SYMBOL_NATURAL_NAME.
12573
78a11fb4
DC
125742003-03-03 David Carlton <carlton@math.stanford.edu>
12575
12576 * linespec.c (find_method): Extract code into collect_methods.
12577 (collect_methods): New.
12578
645dd519
MK
125792003-03-02 Mark Kettenis <kettenis@gnu.org>
12580
b4700d91
MK
12581 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12582 get_frame_base.
12583
645dd519
MK
12584 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12585 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12586
0aa7e1aa
SC
125872003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12588
8ffd9b1b 12589 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12590 and not regnum when summing the size of all registers up to regnum.
12591
f30ee0bc
AC
125922003-03-01 Andrew Cagney <cagney@redhat.com>
12593
12594 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12595 FRAME_INIT_SAVED_REGS.
12596 * gdbarch.h, gdbarch.c: Regenerate.
12597 * stack.c (frame_info): Update.
12598 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12599 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12600 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12601 * ns32k-tdep.c (ns32k_pop_frame): Update.
12602 * mips-tdep.c (mips_pop_frame): Update.
12603 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12604 * ia64-tdep.c (ia64_frame_chain): Update.
12605 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12606 (ia64_frameless_function_invocation): Update.
12607 (ia64_init_extra_frame_info): Update.
12608 (ia64_pop_frame_regular): Update.
12609 * frame.h (struct frame_info): Update comment.
12610 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12611 * frame.c (frame_saved_regs_register_unwind): Update.
12612 (frame_saved_regs_register_unwind): Update.
12613 (deprecated_generic_get_saved_register): Update.
12614 * cris-tdep.c: Update comment.
12615 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12616 Rename macro.
12617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12618 * x86-64-tdep.c (x86_64_init_abi): Update.
12619 * vax-tdep.c (vax_gdbarch_init): Update.
12620 * v850-tdep.c (v850_gdbarch_init): Update.
12621 * sparc-tdep.c (sparc_gdbarch_init): Update.
12622 * sh-tdep.c (sh_gdbarch_init): Update.
12623 * s390-tdep.c (s390_gdbarch_init): Update.
12624 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12625 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12626 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12628 * mips-tdep.c (mips_gdbarch_init): Update.
12629 * mcore-tdep.c (mcore_gdbarch_init): Update.
12630 * m68k-tdep.c (m68k_gdbarch_init): Update.
12631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12632 * ia64-tdep.c (ia64_gdbarch_init): Update.
12633 * i386-tdep.c (i386_gdbarch_init): Update.
12634 * frv-tdep.c (frv_gdbarch_init): Update.
12635 * avr-tdep.c (avr_gdbarch_init): Update.
12636 * arm-tdep.c (arm_gdbarch_init): Update.
12637 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12638
42fa7c0f
AC
126392003-03-01 Andrew Cagney <cagney@redhat.com>
12640
12641 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12642 option enum and switch. When no windows, set the interpreter to
12643 INTERP_CONSOLE.
8ffd9b1b 12644
49c7e338
AC
126452003-03-01 Andrew Cagney <cagney@redhat.com>
12646
12647 * main.c (captured_main): Replace magic option characters with an
12648 enum.
12649
e9582e71
AC
126502003-03-01 Andrew Cagney <cagney@redhat.com>
12651
12652 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12653 INIT_EXTRA_FRAME_INFO.
12654 * gdbarch.h, gdbarch.c: Regenerate.
12655 * arm-tdep.c: Update comments.
12656 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12657 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12658 * frame.h, avr-tdep.c: Ditto.
12659 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12660 (create_new_frame, legacy_get_prev_frame): Ditto.
12661 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12662 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12663 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12664 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12665 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12666 * v850-tdep.c (v850_gdbarch_init): Ditto.
12667 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12668 * sh-tdep.c (sh_gdbarch_init): Ditto.
12669 * s390-tdep.c (s390_gdbarch_init): Ditto.
12670 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12671 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12672 * mips-tdep.c (mips_gdbarch_init): Ditto.
12673 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12675 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12676 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12677 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12678 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12679 * frv-tdep.c (frv_gdbarch_init): Ditto.
12680 * cris-tdep.c (cris_gdbarch_init): Ditto.
12681 * avr-tdep.c (avr_gdbarch_init): Ditto.
12682 * arm-tdep.c (arm_gdbarch_init): Ditto.
12683 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12684 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12685
35cac7cf
AC
126862003-03-01 Andrew Cagney <cagney@redhat.com>
12687
12688 * gdbarch.sh (register_type): New function with predicate.
12689 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12690 * gdbarch.h, gdbarch.c: Re-generate.
12691 * arch-utils.c (generic_register_byte): Use generic_register_size.
12692 (generic_register_size): When available, use
12693 gdbarch_register_type.
12694 * regcache.c (init_regcache_descr): When available, initialize the
12695 register type array using gdbarch_register_type. If the
12696 architecture supplies gdbarch_register_type, do not use the legacy
12697 regcache layout.
12698 * d10v-tdep.c (d10v_register_type): Replace
12699 d10v_register_virtual_type.
12700 (d10v_gdbarch_init): Set register_type instead of
12701 register_virtual_type.
12702
7b83296f
AC
127032003-03-01 Andrew Cagney <cagney@redhat.com>
12704
12705 * Makefile.in (ax-gdb.o): Update dependencies.
12706 * ax-gdb.c: Include "regcache.h".
12707 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12708 * findvar.c (value_of_register): Ditto.
12709 * infcmd.c (default_print_registers_info): Ditto.
12710
eadc1c87
MK
127112003-03-01 Mark Kettenis <kettenis@gnu.org>
12712
12713 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12714 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12715
14143612
MK
127162003-03-01 Mark Kettenis <kettenis@gnu.org>
12717
12718 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12719 of STREQ.
12720
a55cc764
DJ
127212003-02-28 Daniel Jacobowitz <drow@mvista.com>
12722
12723 * Makefile.in (dwarf2loc.o): Update dependencies.
12724 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12725 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12726 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12727 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12728 (locexpr_tracepoint_var_ref): New function.
12729 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12730
08a617da
AC
127312003-02-28 Andrew Cagney <cagney@redhat.com>
12732
12733 * regcache.c (register_size): New function.
12734 * regcache.h (register_size): Declare
12735 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12736 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12737
4224873a
DC
127382003-02-28 David Carlton <carlton@math.stanford.edu>
12739
12740 * linespec.c (decode_compound): Extract code into find_method.
12741 (find_method): New.
12742
ccdc5d7f
JB
127432003-02-28 J. Brobecker <brobecker@gnat.com>
12744
12745 * Makefile.in: Add rules to build and link in observer.o.
12746
974e8ced
JB
127472003-02-27 J. Brobecker <brobecker@gnat.com>
12748
12749 * observer.c: Minor comments edits.
12750
7a28f973
JB
127512003-02-27 J. Brobecker <brobecker@gnat.com>
12752
12753 * observer.h, observer.c: New file.
12754
27cddce2
AC
127552003-02-27 Andrew Cagney <cagney@redhat.com>
12756
12757 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12758
b94a41a1
SC
127592003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12760
12761 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12762 (M6812_OP_STS_EXT): Likewise.
12763 (m6811_prologue): Use the above to recognize prologue.
12764 (m6812_prologue): Likewise.
12765
c8be8951
DC
127662003-02-27 David Carlton <carlton@math.stanford.edu>
12767
12768 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12769 SYMBOL_PRINT_NAME.
12770 (compare_psymbols): Ditto.
12771 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12772
d05bb1fc
MS
127732003-02-27 Michael Snyder <msnyder@redhat.com>
12774
4e845cd3
MS
12775 * f-lang.c (build_fortran_types): New function.
12776 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12777 * doublest.c (extract_floating): Fix warning text.
12778
f3824013
AC
127792003-02-27 Andrew Cagney <cagney@redhat.com>
12780
12781 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12782 predicate. Replaces PUSH_DUMMY_FRAME.
12783 * gdbarch.h, gdbarch.c: Regnerate.
12784 * valops.c (hand_function_call): Update. Call
12785 generic_push_dummy_frame directly.
12786 * vax-tdep.c (vax_gdbarch_init): Update.
12787 * sparc-tdep.c (sparc_gdbarch_init): Update.
12788 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12789 * m68k-tdep.c (m68k_gdbarch_init): Update.
12790 * hppa-tdep.c (hppa_gdbarch_init): Update.
12791 * alpha-tdep.c (alpha_gdbarch_init): Update.
12792 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12793 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12794 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12796 push_dummy_frame to generic_push_dummy_frame.
12797 * v850-tdep.c (v850_gdbarch_init): Ditto.
12798 * sh-tdep.c (sh_gdbarch_init): Ditto.
12799 * s390-tdep.c (s390_gdbarch_init): Ditto.
12800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12802 * mips-tdep.c (mips_gdbarch_init): Ditto.
12803 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12805 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12806 * i386-tdep.c (i386_gdbarch_init): Ditto.
12807 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12808 * frv-tdep.c (frv_gdbarch_init): Ditto.
12809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12810 * cris-tdep.c (cris_gdbarch_init): Ditto.
12811 * avr-tdep.c (avr_gdbarch_init): Ditto.
12812 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12813
ad188201
KB
128142003-02-26 Kevin Buettner <kevinb@redhat.com>
12815
12816 * mips-tdep.c (show_mips_abi): New function.
12817 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12818 command ``show mips abi''.
12819
6b37567a 128202003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12821
6b37567a 12822 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12823 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12824 more sline entries have been seen for the function.
12825
d3e0a5bf
MC
128262003-02-26 Michael Chastain <mec@shout.net>
12827
12828 * configure: Regenerate with autoconf 000227.
12829
18972eea
MC
128302003-02-26 Michael Chastain <mec@shout.net>
12831
12832 Close PR build/660.
12833 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12834 for old libc5/glibc.
12835 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12836
0bbde931
KW
128372003-02-26 Kris Warkentin <kewarken@qnx.com>
12838
12839 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12840 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12841
27ca5dad
MC
128422003-02-26 Michael Chastain <mec@shout.net>
12843
12844 * configure.in: New variable HAVE_UINTPTR_T.
12845 * configure, config.in: Regenerated.
12846
6f88d630
DJ
128472003-02-26 Daniel Jacobowitz <drow@mvista.com>
12848
12849 Fix PR build/1097.
12850 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12851
b14185ce
AC
128522003-02-25 Andrew Cagney <cagney@redhat.com>
12853
12854 * frame.c (get_prev_frame): Add comment on check for
12855 inside_entry_func. Only check for inside_entry_file when not a
12856 dummy and not a sentinel. Check that the new frame is not inner
12857 to the old frame.
12858
ac2bd0a9
AC
128592003-02-25 Andrew Cagney <cagney@redhat.com>
12860
12861 * frame.c (frame_debug): New variable.
12862 (_initialize_frame): Add "set/show debug frame" command.
12863 (get_prev_frame): When frame_debug, print reason why unwind
12864 failed.
12865
b18a0fd2
MC
128662003-02-25 Michael Chastain <mec@shout.net>
12867
12868 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12869 to avoid uintptr_t definition problems.
12870
22abf04a
DC
128712003-02-25 David Carlton <carlton@math.stanford.edu>
12872
12873 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12874 (SYMBOL_LINKAGE_NAME): Ditto.
12875 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12876 SYMBOL_LINKAGE_NAME.
12877 (struct general_symbol_info): Expand comment.
12878 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12879 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12880 (SYMBOL_MATCHES_REGEXP): Ditto.
12881 * symtab.c (symbol_natural_name): New function.
12882 * objfiles.h: Replace all uses of SYMBOL_NAME by
12883 DEPRECATED_SYMBOL_NAME.
12884 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12885 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12886 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12887 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12888 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12889 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12890 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12891 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12892 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12893 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12894 * ada-exp.y: Ditto.
12895 * ada-exp.y: Update copyright.
12896 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12897 * cp-valprint.c: Ditto.
12898
1a5848f6
JJ
128992003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12900
12901 * infptrace.c (detach): Do not flag error if ptrace detach fails
12902 and errno is set to ESRCH.
12903
7343d46a
AC
129042003-02-24 Andrew Cagney <cagney@redhat.com>
12905
12906 * infptrace.c (udot_info): Change type of udot_off to long. Use
12907 paddr when printing udot_off's value.
12908
49fa1dc2
DC
129092003-02-24 David Carlton <carlton@math.stanford.edu>
12910
12911 * symtab.c (make_symbol_overload_list): Only read in partial
12912 symtabs containing a matching partial symbol.
12913
0fe19209
DC
129142003-02-24 David Carlton <carlton@math.stanford.edu>
12915
12916 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12917 do the comparison, not strcmp.
12918 * symfile.c (compare_psymbols): Ditto.
12919 * defs.h: Declare strcmp_iw_ordered.
12920 * utils.c (strcmp_iw_ordered): New function.
12921
8e3ee7b5
JB
129222003-02-24 Jim Blandy <jimb@redhat.com>
12923
12924 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12925 support, shared libs): Remove my name from here, to better reflect
12926 reality.
12927
7df1a324
KW
129282003-02-24 Kris Warkentin <kewarken@qnx.com>
12929
12930 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12931 (target_ops): Add to_have_continuable_watchpoint.
12932 * target.c (update_current_target): Add INHERIT line for
12933 to_have_continuable_watchpoint.
12934 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12935 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12936 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12937 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12938
d1c76907
EZ
129392003-02-24 Elena Zannoni <ezannoni@redhat.com>
12940
12941 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12942 maintainership.
12943
2610b0bf
KW
129442003-02-24 Kris Warkentin <kewarken@qnx.com>
12945
f46169db
KW
12946 * solib.c (solib_open): Call target defined search function after
12947 failing with solib-search-path.
12948 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12949 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12950
9a3c34fe
KW
129512003-02-24 Kris Warkentin <kewarken@qnx.com>
12952
f46169db 12953 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12954
2417dd25
SC
129552003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12956
12957 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12958
b631436b
SC
129592003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12960
12961 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12962 (m68hc11_add_reggroups): New function.
12963 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12964 (m68hc11_gdbarch_init): Install the reggroups.
12965 (_initialize_m68hc11_tdep): Initialize them.
12966
0aa8c1e4
JW
129672003-02-21 James E Wilson <wilson@tuliptree.org>
12968
12969 * MAINTAINERS: Update my email address.
12970
50ceaba5
DC
129712003-02-21 David Carlton <carlton@math.stanford.edu>
12972
12973 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12974
4c2df51b
DJ
129752003-02-21 Daniel Jacobowitz <drow@mvista.com>
12976
12977 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12978 * symtab.h: Add opaque declarations of struct axs_value and
12979 struct agent_expr.
12980 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12981 (struct location_funcs): New type.
12982 (struct symbol): Add "loc" to aux_value.
12983 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12984 * dwarf2read.c: Include "dwarf2expr.h".
12985 (dwarf2_symbol_mark_computed): New function.
12986 (read_func_scope): Use it.
12987 (var_decode_location): New function.
12988 (new_symbol): Use it.
12989 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12990
12991 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12992 (dwarf2expr_h, dwarf2loc_h): New variables.
12993 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12994 (dwarf2expr.o, dwarf2loc.o): New rules.
12995 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12996 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12997 LOC_COMPUTED_ARG.
12998 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12999 * m2-exp.y (yylex): Likewise.
13000 * printcmd.c (address_info, print_frame_args): Likewise.
13001 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13002 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13003 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13004 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13005 * symtab.c (lookup_block_symbol): Likewise.
13006
5784d15e
AF
130072003-02-20 Adam Fedor <fedor@gnu.org>
13008
13009 * symtab.h: Remove objc_specific struct
13010 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13011 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13012 Have language_objc use cplus_specific struct.
13013
d4cad8db
TT
130142003-02-20 Tom Tromey <tromey@redhat.com>
13015
13016 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13017 TYPE_NAME, when printing a String value. PR java/1075.
13018
2f9a90b4
AF
130192003-02-20 Adam Fedor <fedor@gnu.org>
13020
d38074a8 13021 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 13022 * objc-lang.c (find_methods): Make static.
2f9a90b4 13023
6f17862b
CF
130242003-02-20 Christopher Faylor <cgf@redhat.com>
13025
13026 * win32-nat.c (get_image_name): Check return value from
13027 ReadProcessMemory.
13028 (child_xfer_memory): Ditto.
13029
715d1656
AO
130302003-02-20 Alexandre Oliva <aoliva@redhat.com>
13031
13032 * configure.in (TARGET_SYSTEM_ROOT): Set default to
13033 ${exec_prefix}/${target_alias}/sys-root. Match explicit
13034 '${exec_prefix}' (in addition to the expansion thereof) as
13035 relocatable.
13036 * configure: Rebuilt.
13037
b1262a02
DC
130382003-02-20 David Carlton <carlton@math.stanford.edu>
13039
13040 * symtab.c (search_symbols): Revert the search_symbols part of my
13041 2002-12-23 patch. Add comment.
13042
7134143f
DJ
130432002-02-20 Daniel Jacobowitz <drow@mvista.com>
13044
13045 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13046 * dbxread.c (elfstab_build_psymtabs): Don't call
13047 install_minimal_symbols.
13048 (stabsect_build_psymtabs): Likewise.
13049 * elfread.c (elf_symfile_read): Call install_minimal_symbols
13050 earlier.
13051 * somread.c (som_symfile_read): Call install_minimal_symbols
13052 and do_cleanups earlier.
13053 * nlmread.c (nlm_symfile_read): Likewise.
13054 * mdebugread.c (elfmdebug_build_psymtabs): Call
13055 install_minimal_symbols and make appropriate cleanups.
13056
cf466558
KB
130572003-02-20 Kevin Buettner <kevinb@redhat.com>
13058
13059 * solib.c (reload_shared_libraries): New function.
13060 (_initialize_solib): Add callbacks for ``set solib-search-path''
13061 and ``set solib-absolute-prefix''.
13062
de5ad195
DC
130632003-02-20 David Carlton <carlton@math.stanford.edu>
13064
13065 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13066 expand comment.
13067 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13068 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13069 * ada-typeprint.c (ada_typedef_print): Ditto.
13070 * ax-gdb.c (gen_var_ref): Ditto.
13071 * breakpoint.c (print_one_breakpoint): Ditto.
13072 * buildsym.c (finish_block): Ditto.
13073 * c-valprint.c (c_val_print): Ditto.
13074 * expprint.c (print_subexp): Ditto.
13075 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
13076 * infcmd.c (jump_command): Ditto.
13077 * linespec.c (decode_line_2, decode_compound): Ditto.
13078 * maint.c (maintenance_translate_address): Ditto.
13079 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
13080 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13081 Ditto.
8ffd9b1b
AJ
13082 * p-valprint.c (pascal_val_print): Ditto.
13083 * stabsread.c (define_symbol): Ditto.
de5ad195 13084 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
13085 (print_frame_arg_vars, return_command): Ditto.
13086 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13087 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
13088 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13089 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
13090 (rbreak_command): Ditto.
13091 * tracepoint.c (tracepoints_info): Ditto.
13092 * typeprint.c (typedef_print): Ditto.
13093 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
13094 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13095 * ada-typeprint.c: Update Copyright.
13096 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13097 * tracepoint.c, cli/cli-cmds.c: Ditto.
13098
f796e4be
KB
130992003-02-20 Kevin Buettner <kevinb@redhat.com>
13100
13101 * frame.c (generic_unwind_get_saved_register): Make non-static.
13102 * frame.h (generic_unwind_get_saved_register): Declare.
13103 * mips-tdep.c (read_next_frame_reg): Fetch register from
13104 current regcache when frame is NULL.
13105 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13106 that must be NULL.
13107 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13108 instead of frame_register_unwind().
13109
836cc9f4
AC
131102003-02-20 Andrew Cagney <ac131313@redhat.com>
13111
13112 * remote-sim.c (gdbsim_insert_breakpoint)
13113 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13114 code.
13115
501eef12
AC
131162003-02-20 Andrew Cagney <ac131313@redhat.com>
13117
13118 * remote.c (_initialize_remote): Add commands "set/show remote
13119 hardware-watchpoint-limit" and "set/show remote
13120 hardware-breakpoint-limit".
13121 (remote_hw_watchpoint_limit): Initialize to -1.
13122 (remote_hw_breakpoint_limit): Ditto.
13123 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13124
1b6bc7e0
CF
131252003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13126
13127 * coff-pe-read.c: New file - support reading of minimal symbols from a
13128 portable executable using the export table.
13129 * coff-pe-read.h: New file.
13130 * coffread.c: Include coff-pe-read.h.
13131 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13132 debugging symbols found.
13133 * Makefile.in (SFILES): Add coff-pe-read.o.
13134 (coff_pe_read_h): Define.
13135 (COMMON_OBS): Add coff-pe-read.o.
13136 (coffread.o): Add coff_pe_read_h dependency.
13137 (coff-pe-read.o): New target.
13138
fe898f56
DC
131392003-02-19 David Carlton <carlton@math.stanford.edu>
13140
13141 * Makefile.in (SFILES): Add block.c.
13142 (block_h): New.
13143 (COMMON_OBS): Add block.o.
13144 (block.o): New.
13145 (x86-64-tdep.o): Add $(block_h).
13146 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13147 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13148 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13149 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13150 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13151 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13152 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13153 * value.h: Add opaque declaration for struct block.
13154 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13155 * ada-lang.h: Ditto.
13156 * x86-64-tdep.c: #include "block.h"
13157 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13158 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13159 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13160 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13161 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13162 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13163 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13164 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13165 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13166 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13167 * symtab.c (block_function): Ditto.
13168 (contained_in): Ditto.
13169 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13170 block.h. Add opaque declaration for struct block.
13171 * symtab.h: Move block_function and contained_in declarations to
13172 block.h. Add opaque declarations for struct block, struct
13173 blockvector.
13174 (struct block): Move to block.h.
13175 (struct blockvector): Ditto.
13176 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13177 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13178 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13179 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13180 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13181 Ditto.
13182 * block.c: New file.
13183 * block.h: New file.
13184
173345b5
TR
131852003-02-19 Theodore A. Roth <troth@openavr.org>
13186
13187 * avr-tdep.c (avr_extract_return_value): Remove function.
13188 (avr_store_return_value): Remove function.
13189 (avr_extract_struct_value_address): Remove function.
13190 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13191
338ef23d
AC
131922003-02-19 Andrew Cagney <ac131313@redhat.com>
13193
13194 * rs6000-tdep.c: Include "gdb_assert.h".
13195 (registers_e500): Add "acc" and "spefscr".
13196 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13197 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13198 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13199 really is "r0".
13200 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13201
5412f5f3
KS
132022003-02-18 Keith Seitz <keiths@redhat.com>
13203
13204 * Makefile.in: Add gdbtk-interps.c.
13205
881324eb
KB
132062003-02-18 Kevin Buettner <kevinb@redhat.com>
13207
13208 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13209 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13210
6a2f5abf
AC
132112003-02-18 Andrew Cagney <cagney@redhat.com>
13212
13213 * symtab.h (struct objfile): Add opaque declaration.
13214
54c7009d
EZ
132152003-02-18 Elena Zannoni <ezannoni@redhat.com>
13216
13217 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13218 * dbxread.c (process_one_symbol): Use last_function_start rather
13219 than function_start_offset to find the real beginning of the
13220 current function. The latter is just the text section offset on
13221 some systems, the former is always the real function start.
54c7009d 13222
7ee6d7eb
AC
132232003-02-17 Andrew Cagney <cagney@redhat.com>
13224
13225 * configure.in: Revert ${target} != ${host}.
13226
2846da9b
AC
132272003-02-17 Andrew Cagney <ac131313@redhat.com>
13228
13229 * configure.in (Makefile): Use the test ${target} != ${host},
13230 instead of the absence of the "nm.h" file, to determine of the
13231 configuration non-native.
13232 * configure: Regenerate.
8ffd9b1b 13233
3b27aeea
EZ
132342003-02-14 Elena Zannoni <ezannoni@redhat.com>
13235
fbe586ae 13236 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13237
13238 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13239 conditionalize tui_active test.
13240 (lookup_cmd_1): Ditto.
13241
b0b1c2c0
MK
132422003-02-14 Mark Kettenis <kettenis@gnu.org>
13243
13244 * configure.in: Add check for _etext.
13245 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13246 available.
13247 * config.in, configure: regenerated.
13248
8f05cde5
DJ
132492003-02-14 Daniel Jacobowitz <drow@mvista.com>
13250
13251 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13252
021e7609
AC
132532003-02-14 Andrew Cagney <ac131313@redhat.com>
13254
13255 * main.c (tui_version): Delete variable.
13256 (captured_main): When --tui, set interpreter_p to "tui" instead of
13257 enabling tui_version.
13258 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13259 tui_version.
13260 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13261 * cli/cli-cmds.c (disassemble_command): Ditto.
13262 * defs.h (tui_version): Delete declaration.
13263 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13264 (tui-interp.o): Add rules.
13265 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13266
e325dcec
CF
132672003-02-14 Christopher Faylor <cgf@redhat.com>
13268
36ffb041 13269 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13270 just-loaded dll.
13271
c4f90d87
JM
132722003-02-12 Jason Molenda (jmolenda@apple.com)
13273
fbe586ae
RH
13274 * symmisc.c (print_objfile_statistics): Include information about
13275 the number of psymtabs and symtabs in each object file.
c4f90d87 13276
e46e5ccd
KS
132772003-02-13 Keith R Seitz <keiths@redhat.com>
13278
13279 * main.h (struct captured_main_args): Add interpreter_p.
13280 * main.c (captured_main): Initialize interpreter_p from context.
13281 * gdb.c (main): Set interpreter_p argument.
13282 * Makefile.in (gdb.o): Add dependency for interps.h.
13283
fe97fe9c
AC
132842003-02-12 Andrew Cagney <ac131313@redhat.com>
13285
13286 * event-top.c (cli_command_loop): Delete declaration.
13287 (_initialize_event_loop): Delete function setting event_loop_hook.
13288 * event-top.h (cli_command_loop): Declare. Update copyright.
13289 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13290 * interps.c (current_interp_command_loop): When event_loop_p, call
13291 cli_command_loop.
13292
1cdac4ef
AC
132932003-02-12 Andrew Cagney <ac131313@redhat.com>
13294
13295 * interps.h (interp_command_loop_ftype): Change return type to
13296 void.
13297
48037ead
ML
132982003-02-12 Michal Ludvig <mludvig@suse.cz>
13299
13300 * x86-64-tdep.c (x86_64_extract_return_value)
13301 (x86_64_store_return_value): Use regcache instead of regbuf.
13302 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13303 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13304
033afc63
AC
133052003-02-11 Andrew Cagney <ac131313@redhat.com>
13306
13307 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13308 * aclocal.m4: Regenerate.
13309 * configure: Regenerate.
13310
13311 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13312 TCL_LD_SEARCH_FLAGS.
13313
40d02bca
ML
133142003-02-10 Michal Ludvig <mludvig@suse.cz>
13315
13316 * dwarf2cfi.c: Reindented.
13317
11308a41
AC
133182003-02-09 Andrew Cagney <ac131313@redhat.com>
13319
13320 * interps.c (clear_interpreter_hooks): Convert function definition
13321 to ISO C.
13322
e1c1c0f6
DC
133232003-02-07 David Carlton <carlton@math.stanford.edu>
13324
13325 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13326
ab5d3da6
KB
133272003-02-07 Kevin Buettner <kevinb@redhat.com>
13328
13329 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13330 (struct type): ...to here.
13331 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13332 field.
13333 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13334 (replace_type): Set length on all type variants for a given type.
13335
b8a92b82
AC
133362003-02-07 Andrew Cagney <ac131313@redhat.com>
13337
13338 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13339 <sys/stat.h>.
13340 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13341
5cb316ef
AC
133422003-02-06 Andrew Cagney <ac131313@redhat.com>
13343
2555fe1a
AC
13344 * Makefile.in (symm-nat.o): Update dependencies.
13345 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13346 (lynx-nat.o, ia64-linux-nat.): Ditto.
13347 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13348 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13349 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13350
44270758
AC
13351 * Makefile.in (inflow_h): Define.
13352 (procfs.o, inflow.o, procfs.o): Update dependencies.
13353 * inftarg.c (child_stop): Delete extern declaration of
13354 inferior_process_group. Include "inflow.h".
13355 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13356 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13357 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13358 (our_process_group, inferior_process_group): Extern declarations.
13359
df8f7274
AC
13360 * procfs.c: Include "gdb_assert.h".
13361
5cb316ef
AC
13362 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13363 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13364 * jv-typeprint.c (java_type_print_base): Ditto.
13365 * typeprint.c (typedef_print): Eliminate STREQ.
13366 * cli/cli-script.c (define_command, define_command): Ditto.
13367 * main.c (captured_main): Ditto.
13368 * values.c (lookup_internalvar): Ditto.
13369 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13370 within `if' conditional.
13371 * linespec.c (decode_line_2): Ditto.
13372 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13373 (bfd_openw_with_cleanup): Ditto.
13374
2a28ccea
MK
133752003-02-07 Mark Kettenis <kettenis@gnu.org>
13376
13377 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13378 legacy_extract_return_value and store_return_value to
13379 legacy_return_value.
13380
786b8124
CF
133812003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13382
13383 * win32-nat.c (get_relocated_section_addrs): New function. Find
13384 section load addresses for symbol handling in relocated DLLs.
13385 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13386
b871e4ec
FF
133872003-02-05 Fred Fish <fnf@intrinsity.com>
13388
13389 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13390 '=' and '!='.
13391 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13392 with '&' and '=='.
13393 (angel_RDI_info): Ditto.
13394 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13395 with '&' and '!='.
13396 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13397
4389a95a 133982003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13399 Keith Seitz <keiths@redhat.com>
13400 Elena Zannoni <ezannoni@redhat.com>
13401 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13402
13403 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13404 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13405 (SUBDIR_MI_OBS): Add "mi-interp.o".
13406 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13407 (SFILES): Add "interps.c".
13408 (COMMON_OBS): Add "interps.o".
13409 (interps_h, mi_main_h): Define.
13410 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13411 (mi-main.o, main.o, event-top.o): Update dependencies.
13412 * cli/cli-interp.c: New file.
13413 * interps.h, interps.c: New files.
13414 * top.c: (gdb_init): Don't install the default interpreter, handed
13415 by captured_main.
13416 * main.c: Include "interps.h".
13417 (interpreter_p): Note that it should malloc'ed.
13418 (captured_command_loop): Call current_interp_command_loop.
13419 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13420 xfree and xstrdup when updating interpreter_p. Install the
13421 default interpreter. Add hack to stop mi1's copyright notice
13422 being encoded.
13423 * event-top.h (gdb_setup_readline): Declare.
13424 (gdb_disable_readline): Declare.
13425 * event-top.c: Include "interps.h".
13426 (display_gdb_prompt): Call current_interp_display_prompt_p.
13427 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13428 gdb_stdlog, and gdb_stdtarg.
13429 (_initialize_event_loop): Don't call gdb_setup_readline.
13430 * cli-out.c (cli_out_set_stream): New function.
13431 * cli-out.h (cli_out_set_stream): Declare.
13432
ff3b5810
MK
134332003-02-06 Mark Kettenis <kettenis@gnu.org>
13434
13435 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13436 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13437 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13438 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13439 config/i386/i386v42mp.mt: Removed.
13440
5b729aa5
MK
134412003-02-05 Mark Kettenis <kettenis@gnu.org>
13442
13443 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13444 GDB_OSABI_SOLARIS.
13445
8cc15142
MC
134462003-02-05 Michael Chastain <mec@shout.net>
13447
13448 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13449 2.12.1 and earlier versions.
13450
5aa5d4b9
AC
134512003-02-05 Andrew Cagney <ac131313@redhat.com>
13452
13453 Remove orphaned hosts, targets and files.
13454 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13455 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13456 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13457 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13458 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13459 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13460 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13461 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13462 * config/sparc/tm-sp64sim.h: Delete.
13463 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13464 hosts.
13465 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13466 mips*-dec-mach3* targets.
13467
b68767c1
MC
134682003-02-04 Michael Chastain <mec@shout.net>
13469
13470 * NEWS: Fix typo: sepcifying -> specifying.
13471
5ae7ca1d
MC
134722003-02-04 Michael Chastain <mec@shout.net>
13473
13474 * dwarfread.c: Add documentation on the state of dwarf-1,
13475 looking towards obsoletion.
13476
d08a4280
MC
134772003-02-03 Michael Chastain <mec@shout.net>
13478
13479 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13480 gdb/testsuite/gdb.c++/pr-1023.exp.
13481
e9be73e4
AC
134822003-02-04 Andrew Cagney <ac131313@redhat.com>
13483
13484 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13485 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13486
13487 * utils.c (init_page_info): Delete reference to MPW in comments.
13488 * main.c (captured_main): Delete #ifdef MPW.
13489
05d57f6f
AC
134902003-02-04 Andrew Cagney <ac131313@redhat.com>
13491
8ffd9b1b 13492 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13493 * monitor.c (monitor_expect): Obsolete reference to m32r.
13494 * configure.tgt: Mark m32r-*-elf* as obsolete.
13495 * MAINTAINERS: Mark m32k as obsolete.
13496 * m32r-rom.c: Obsolete file.
13497 * config/m32r/m32r.mt: Obsolete file.
13498 * config/m32r/tm-m32r.h: Obsolete file.
13499 * m32r-stub.c: Obsolete file.
13500 * m32r-tdep.c: Obsolete file.
13501
8b0e5691
AC
135022003-02-04 Andrew Cagney <ac131313@redhat.com>
13503
13504 * NEWS: Mention that the z8k-zilog-none is obsolete.
13505 * MAINTAINERS: Mark z8k as obsolete.
13506 * configure.tgt: Obsolete the z8k-*-coff* target.
13507 * config/z8k/z8k.mt: Obsolete file.
13508 * config/z8k/tm-z8k.h: Obsolete file.
13509 * z8k-tdep.c: Obsolete file.
13510
67f16606
AC
135112003-02-04 Andrew Cagney <ac131313@redhat.com>
13512
13513 * NEWS: Mention that the mn10200-elf is obsolete.
13514 * configure.tgt: Obsolete mn10200-*-* target.
13515 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13516 mention that the mn10200 is obsolete.
13517 * breakpoint.h: Ditto.
13518 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13519 * config/mn10200/mn10200.mt: Obsolete file.
13520 * config/mn10200/tm-mn10200.h: Obsolete file.
13521 * mn10200-tdep.c: Obsolete file.
13522
fd2299bd
AC
135232003-02-04 Andrew Cagney <ac131313@redhat.com>
13524
13525 * MAINTAINERS: Mark h8500 as obsolete.
13526 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13527 * findvar.c (value_from_register): Ditto.
13528 * h8500-tdep.c: Mark file as obsolete.
13529 * config/h8500/h8500.mt: Ditto.
13530 * config/h8500/tm-h8500.h: Ditto.
13531 * NEWS: Mention that h8500 is obsolete.
13532
eb9a305d
DC
135332003-02-04 David Carlton <carlton@math.stanford.edu>
13534
13535 * objfiles.c (allocate_objfile): Always set name. Add comment at
13536 start of function.
13537 * jv-lang.c (get_dynamics_objfile): Add comment.
13538
406fc7fb
DC
135392003-02-04 David Carlton <carlton@math.stanford.edu>
13540
13541 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13542 * printcmd.c (build_address_symbolic): Replace uses of
13543 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13544 SYMBOL_NAME, and asm_demangle.
13545 Update copyright.
13546
93d91629
DC
135472003-02-04 David Carlton <carlton@math.stanford.edu>
13548
13549 * linespec.c (decode_compound): Extract code into
13550 lookup_prefix_sym.
13551 (lookup_prefix_sym): New function.
13552
1c5cb38e
DC
135532003-02-04 David Carlton <carlton@math.stanford.edu>
13554
13555 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13556 FLOAT_COERCION_BADNESS.
13557 * gdbtypes.c (rank_one_type): Replace all uses of
13558 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13559
0cf824c9
JB
135602003-02-04 Jim Blandy <jimb@redhat.com>
13561
13562 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13563 section, let dwarf_macinfo_section point to it, not
13564 dwarf_loc_section.
13565
a2d356b0
DJ
135662003-02-04 Daniel Jacobowitz <drow@mvista.com>
13567
13568 Pointed out by Anton Blanchard <anton@samba.org>.
13569 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13570 (ppc_linux_at_sigtramp_return_path): Use it.
13571
2de7ced7
DJ
135722003-02-04 Daniel Jacobowitz <drow@mvista.com>
13573
13574 * defs.h (streq): Add prototype.
13575 * utils.c (streq): New function.
13576
13577 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13578 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13579 * mdebugread.c (new_symbol): Likewise.
13580 * stabsread.c (define_symbol): Likewise.
13581 * coffread.c (process_coff_symbol): Likewise.
13582 * dwarfread.c (new_symbol): Likewise.
13583
13584 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13585 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13586 here.
13587 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13588 SYMBOL_INIT_DEMANGLED_NAME.
13589 * objfiles.c: Include "hashtab.h".
13590 (allocate_objfile): Call htab_set_functions_ex for the
13591 demangled_names_hash.
13592 (free_objfile): Call htab_delete for the demangled_names_hash.
13593 * objfiles.h (struct htab): Add declaration.
13594 (struct objfile): Add demangled_names_hash.
13595 * symfile.c: Include "hashtab.h".
13596 (reread_symbols): Call htab_delete for the demangled_names_hash.
13597 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13598 SYMBOL_NAME in the bcache.
13599 * symtab.c: Include "hashtab.h". Update comments.
13600 (create_demangled_names_hash, symbol_set_names): New functions.
13601 (symbol_find_demangled_name): New function, broken out from
13602 symbol_init_demangled_names.
13603 (symbol_init_demangled_names): Use it.
13604 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13605 (SYMBOL_SET_NAMES): New macro.
13606 (symbol_set_names): Add prototype.
13607
15831452
JB
136082003-02-03 Jim Blandy <jimb@redhat.com>
13609
13610 Use a single, consistent representation for an empty minimal
13611 symbol table in an objfile.
13612 * objfiles.c (terminate_minimal_symbol_table): New function.
13613 (allocate_objfile): Call it.
13614 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13615 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13616 non-NULL.
15831452
JB
13617 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13618 objfile has minimal symbols, compare minimal_symbol_count to zero,
13619 instead of comparing msymbols with NULL.
13620 * objfiles.c (have_minimal_symbols): Same.
13621 * solib-sunos.c (solib_add_common_symbols): Call
13622 terminate_minimal_symbol_table.
13623 * symfile.c (reread_symbols): Same.
8ffd9b1b 13624
ffc65945
KB
136252003-02-03 Kevin Buettner <kevinb@redhat.com>
13626
13627 * s390-tdep.c (s390_address_class_type_flags)
13628 (s390_address_class_type_flags_to_name)
13629 (s390_address_class_name_to_type_flags): New functions.
13630 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13631 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13632
f211c6d4
MS
136332003-02-03 Michael Snyder <msnyder@redhat.com>
13634
13635 * arm-tdep.c: Fix spell-o in comment.
13636
659b0389
ML
136372003-02-03 Michal Ludvig <mludvig@suse.cz>
13638
13639 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13640 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13641 error messages to contain BFD filename.
659b0389 13642
3b31d625
EZ
136432003-02-02 Elena Zannoni <ezannoni@redhat.com>
13644
997b089a 13645 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13646 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13647 (do_mixed_source_and_assembly): Use
13648 make_cleanup_ui_out_tuple_begin_end and
13649 make_cleanup_ui_out_tuple_begin_end.
13650 (do_mixed_source_and_assembly): Ditto.
13651 * thread.c (do_captured_list_thread_ids): Ditto.
13652 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13653 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13654 ui_out_tuple_end): Delete prototypes.
13655 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13656 ui_out_list_end, ui_out_tuple_end): Delete.
13657
13658 From Kevin Buettner <kevinb@redhat.com>:
13659 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13660 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13661 (do_cleanup_table_end): New functions.
13662 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13663 Use cleanups to invoke_ui_out_tuple_end().
13664 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13665 * cli/cli-setshow.c (cmd_show_list): Use
13666 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13667
5b181d62
AC
136682003-02-02 Andrew Cagney <ac131313@redhat.com>
13669
13670 * frame.c (frame_unwind_register): New function.
13671 (frame_unwind_unsigned_register): Use.
13672 (frame_unwind_signed_register): Use.
13673 (frame_read_register): New function.
13674 * frame.h (frame_unwind_register): Declare.
13675 (frame_read_register): Declare.
13676
13677 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13678 and frame_unwind_register instead of read_memory, write_register
13679 and deprecated_write_register_bytes.
13680
5f601589
AC
136812003-02-02 Andrew Cagney <ac131313@redhat.com>
13682
13683 * frame.h: Note that namelen can be negative.
13684 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13685 NAME's length.
13686
13687 * NEWS: Mention that the d10v's `regs' command is deprecated.
13688 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13689 (d10v_print_registers_info): New function.
13690 (show_regs): Call d10v_print_registers_info.
13691 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13692
6a3fe0a4
MK
136932003-02-02 Mark Kettenis <kettenis@gnu.org>
13694
13695 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13696 lost in the previous patch.
13697
075559bc
AC
136982003-02-01 Andrew Cagney <ac131313@redhat.com>
13699
13700 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13701 * stack.c (print_frame_info_base): Output complete FRAME tuple
13702 for synthesized frames.
075559bc 13703
6789195b
AC
137042003-02-02 Andrew Cagney <ac131313@redhat.com>
13705
13706 * mips-nat.c (zerobuf): Delete.
13707 (fetch_inferior_registers): Alloc local zerobuf.
13708 (fetch_core_registers): Alloc local zerobuf.
13709 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13710 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13711 * thread-db.c (thread_db_store_registers): Ditto.
13712 * sh-tdep.c (sh_do_register): Ditto.
13713 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13714 * remote-sim.c (gdbsim_store_register): Ditto.
13715 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13716 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13717 * monitor.c (monitor_supply_register): Ditto.
13718 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13719 * mips-nat.c (fetch_inferior_registers): Ditto.
13720 * m68klinux-nat.c (fetch_register): Ditto.
13721 * lynx-nat.c (fetch_inferior_registers): Ditto.
13722 (fetch_inferior_registers): Ditto.
13723 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13724 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13725 (hpux_thread_store_registers): Ditto.
13726 * hppah-nat.c (fetch_register): Ditto.
13727 * hppab-nat.c (fetch_register): Ditto.
13728 * hppa-tdep.c (pa_register_look_aside): Ditto.
13729 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13730 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13731
e669114a
AC
137322003-02-01 Andrew Cagney <ac131313@redhat.com>
13733
13734 * gdbarch.sh: Explictly specify all method levels. When a
13735 variable with an empty level, provide a non-multi-arch default.
13736 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13737 * gdbarch.h: Re-generate.
13738 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13739 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13740
9a043c1d
AC
137412003-02-01 Andrew Cagney <ac131313@redhat.com>
13742
13743 * defs.h (host_pointer_to_address): Delete declaration.
13744 (address_to_host_pointer): Delete declaration.
13745 * utils.c (host_pointer_to_address): Delete function.
13746 (address_to_host_pointer): Delete function.
13747 * procfs.c (procfs_address_to_host_pointer): New function.
13748 * procfs.c (proc_set_watchpoint): Use.
13749 (procfs_can_use_hw_breakpoint): Update comments.
13750 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13751 (som_solib_add): Use.
13752 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13753 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13754
7ca9f392
AC
137552003-02-01 Andrew Cagney <ac131313@redhat.com>
13756
94bbfd30
AC
13757 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13758 strlen d_name.
13759
7ca9f392
AC
13760 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13761 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13762 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13763 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13764 (define_symbol): Update.
13765 * symfile.c (generic_load): Remove references to nindy.
13766 * symtab.c: Remove references to nindy.
13767
31a85ea2
AC
137682003-02-01 Andrew Cagney <ac131313@redhat.com>
13769
13770 * infcmd.c (print_float_info): Delete code conditional on
13771 FLOAT_INFO.
13772 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13773 * config/m68k/nm-apollo68b.h: Ditto.
13774 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13775 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13776 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13777
f6e85fc8
MK
137782003-02-01 Mark Kettenis <kettenis@gnu.org>
13779
6015b6a0
MK
13780 * config/i386/tm-i386os9k.h: Removed.
13781
f7a30bdf
MK
13782 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13783 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13784 they're identical to i[3456]86-*-sysv* now.
13785 * config/i386/i386v32.mh: Removed.
13786 * config/i386/xm-i386v32.h: Removed.
13787 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13788
28d52111
MK
13789 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13790
4d3f6bce
MK
13791 * config/i386/i386dgux.mh: Removed.
13792 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13793
f6e85fc8
MK
13794 * configure.in: Fix typo.
13795 * configure: Regenerated.
13796
53955967
DC
137972003-01-31 David Carlton <carlton@math.stanford.edu>
13798
13799 * dwarf2read.c (dwarf2_locate_sections): Set
13800 dwarf_ranges_section.
13801
b1364885
AC
138022003-01-31 Andrew Cagney <ac131313@redhat.com>
13803
8dbb1c65
AC
13804 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13805 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13806
8731e58e
AC
13807 * utils.c: Re-indent.
13808
b1364885
AC
13809 * config/djgpp/fnchange.lst: Delete nindy files.
13810 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13811 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13812 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13813 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13814 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13815 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13816 * Makefile.in (init.c): Remove nindy references.
13817 (saber_gdb): Delete rule.
13818 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13819 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13820 and a68v-nat.c.
13821 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13822 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13823 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13824 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13825 nindy-share/stop.h.
13826 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13827 * saber.suppress: Delete file.
13828
086df311
DJ
138292003-01-31 Daniel Jacobowitz <drow@mvista.com>
13830
13831 * dbxread.c (stabs_data): New static variable.
13832 (fill_symbuf): Support an in-memory buffer for stabs data.
13833 (stabs_seek): New function.
13834 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13835 (read_ofile_symtab): Use stabs_seek.
13836 (elfstab_build_psymtabs): Take an asection* instead of
13837 an offset and size. Relocate the stabs data if necessary.
13838 Save the section* for dbx_psymtab_to_symtab.
13839 * dwarf2read.c: Add section variables for each debug section.
13840 (dwarf2_locate_sections): Fill them in.
13841 (dwarf2_read_section): Take an asection* argument.
13842 Relocate the section contents if necessary.
13843 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13844 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13845 it to dwarf2_read_section.
13846 (dwarf2_build_frame_info): Update callers.
13847 * elfread.c (elf_symfile_read): Update call to
13848 elfstab_build_psymtabs.
13849 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13850 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13851 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13852 * symfile.c (symfile_dummy_outputs): New function.
13853 (symfile_relocate_debug_section): New function.
13854 * symfile.h (symfile_relocate_debug_section): Add prototype.
13855
87d1b352
RH
138562003-01-31 Richard Henderson <rth@redhat.com>
13857
13858 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13859 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13860 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13861 * alpha-tdep.c (alpha_register_name): Add "unique".
13862 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13863 (ALPHA_UNIQUE_REGNUM): New.
13864 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13865
c48861fb
AC
138662003-01-31 Andrew Cagney <ac131313@redhat.com>
13867
13868 * README: Remove reference to Ericsson 1800 monitor.
13869 * Makefile.in (remote-es.o): Delete rule.
13870 (ALLDEPFILES): Delete remote-es.c.
13871 * remote-es.c: Delete file.
13872 * config/m68k/es1800.mt: Delete file.
13873 * config/djgpp/fnchange.lst: Update.
13874 * configure.tgt: Delete m68*-ericsson-* target.
13875
d764a824
AF
138762003-01-31 Adam Fedor <fedor@gnu.org>
13877
13878 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13879 Remove duplicate/shadowing variable of same name.
13880
fe36c4f4
JB
138812003-01-30 Jim Blandy <jimb@redhat.com>
13882
13883 * symfile.c (find_separate_debug_file): Assert that the objfile's
13884 directory name we compute ends with a slash, and then assume that
13885 that's so everywhere we use it.
13886
cb741690
DJ
138872003-01-30 Daniel Jacobowitz <drow@mvista.com>
13888
13889 * valops.c (value_assign): Flush frame cache after stores to memory
13890 also.
13891
96ee5227
AC
138922003-01-30 Andrew Cagney <ac131313@redhat.com>
13893
13894 * Makefile.in (mon960-rom.o): Delete rule.
13895 * mon960-rom.c: Delete file.
13896
7f6104a9
AC
138972003-01-30 Andrew Cagney <ac131313@redhat.com>
13898
13899 * d10v-tdep.c: Include "frame-unwind.h".
13900 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13901 list.
13902 (next_addr, uses_frame): Delete.
13903 (struct d10v_unwind_cache): Define.
13904 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13905 Use info instead of next_addr and uses_frame globals.
13906 (d10v_frame_init_saved_regs): Delete function.
13907 (d10v_init_extra_frame_info): Delete function.
13908 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13909 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13910 init_frame_pc or frame_saved_pc.
13911 (d10v_pop_frame): Delete function.
13912 (do_d10v_pop_frame): Delete function.
13913 (d10v_frame_chain): Delete function.
13914 (d10v_frame_chain_valid): Delete function.
13915 (d10v_frame_pc_unwind): New function.
13916 (d10v_frame_id_unwind): New function.
13917 (saved_regs_unwinder): New function.
13918 (d10v_frame_register_unwind): New function.
13919 (d10v_frame_pop): New function.
13920 (d10v_frame_unwind): New variable.
13921 (d10v_frame_p): New function.
13922 (d10v_frame_saved_pc): Delete function.
13923 * Makefile.in (d10v-tdep.o): Update dependencies.
13924
cad2e848
JB
139252003-01-30 J. Brobecker <brobecker@gnat.com>
13926
13927 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13928 causing some regressions due to a change in the default value
13929 for this macro.
13930
af34e669
DJ
139312003-01-29 Richard Henderson <rth@redhat.com>
13932 Elena Zannoni <ezannoni@redhat.com>
13933 Daniel Jacobowitz <drow@mvista.com>
13934
13935 Fix PR gdb/961.
8ffd9b1b 13936 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13937 variables.
13938 (RANGES_SECTION): New.
13939 (dwarf_ranges_buffer): New variable.
13940 (struct comp_unit_head): Add member "die".
13941 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13942 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13943 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13944 (dwarf2_locate_sections): Likewise.
13945 (dwarf2_build_psymtabs): Read .debug_ranges.
13946 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13947 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13948 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13949 Look for DW_AT_ranges and return the bounding box.
13950
baa93fa6
CF
139512003-01-29 Brian Ford <ford@vss.fsi.com>
13952
13953 * win32-nat.c (cygwin_pid): Removed as unused.
13954 (child_attach): Try fall back to Cygwin pid.
13955
c63f977f
JB
139562003-01-29 Jim Blandy <jimb@redhat.com>
13957
13958 * objfiles.h (struct objfile): Doc fix.
13959
d62d1979
AC
139602003-01-29 Andrew Cagney <ac131313@redhat.com>
13961
13962 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13963 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13964 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13965 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13966 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13967 (FRAME_SAVED_PC): Change to a function with predicate.
13968 * gdbarch.h, gdbarch.c: Re-generate.
13969
1ae18a04
AC
139702003-01-28 Andrew Cagney <ac131313@redhat.com>
13971
52287340
AC
13972 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13973
1ae18a04
AC
13974 * complaints.c (complain): Delete function.
13975 * complaints.h (struct deprecated_complaint): Delete definition.
13976 (complain): Delete declaration.
13977
f2c16bd6
KB
139782003-01-28 Kevin Buettner <kevinb@redhat.com>
13979
13980 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13981 dummy frames.
13982
a94dd1fd
AC
139832003-01-27 Andrew Cagney <ac131313@redhat.com>
13984
13985 * sentinel-frame.h, sentinel-frame.c: New files.
13986 * Makefile.in (frame.o): Update dependencies.
13987 (SFILES): Add sentinel-frame.c.
13988 (sentinel_frame_h): Define.
13989 (COMMON_OBS): Add sentinel-frame.o.
13990 (sentinel-frame.o): Specify dependencies.
13991 * frame.c: Include "sentinel-frame.h".
13992 (frame_register_unwind): Rewrite assuming that there is always a a
13993 ->next frame.
13994 (frame_register, generic_unwind_get_saved_register): Ditto.
13995 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13996 (create_sentinel_frame, unwind_to_current_frame): New functions.
13997 (get_current_frame): Rewrite using create_sentinel_frame and
13998 unwind_to_current_frame. When possible, always create a frame.
13999 (create_new_frame): Set next to the sentinel frame.
14000 (get_next_frame): Rewrite. Don't go below the level 0 frame.
14001 (deprecated_update_frame_pc_hack): Update the next frame's PC and
14002 ID cache when necessary.
14003 (frame_saved_regs_id_unwind): Use frame_relative_level.
14004 (deprecated_generic_get_saved_register): Use frame_relative_level,
14005 get_frame_saved_regs, get_frame_pc, get_frame_base and
14006 get_next_frame.
14007 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14008 frame_register.
14009
5378adc4
DJ
140102003-01-27 Daniel Jacobowitz <drow@mvista.com>
14011
14012 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14013
51ee2ddc
DJ
140142003-01-27 Daniel Jacobowitz <drow@mvista.com>
14015
14016 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14017 (maintenance_set_profile_cmd): Use error () instead of warning ().
14018
d9feb4e7
DJ
140192003-01-27 Daniel Jacobowitz <drow@mvista.com>
14020
14021 * configure.in: Check that -pg works if using --enable-profiling.
14022 Check for monstartup and _mcleanup regardless of --enable-profiling.
14023 * maint.c: Check for monstartup and _mcleanup before using them.
14024 * config.in: Regenerated.
14025 * configure: Regenerated.
14026
2d188dd3
NC
140272003-01-24 Nick Clifton <nickc@redhat.com>
14028
14029 * Add sh2e support:
14030
14031 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
14032
14033 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14034 (sh2e_show_regs): New.
14035 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14036 * config/sh/tm-sh.h: Added sh2e to comments.
14037
cb3c37b2
JB
140382003-01-23 Jim Blandy <jimb@redhat.com>
14039
14040 * symfile.c (syms_from_objfile): Don't print the "(no debugging
14041 symbols found)" message here; we haven't checked for a separate
14042 debug info file yet, so we don't know yet.
14043 (symbol_file_add_with_addrs_or_offsets): Print it here, after
14044 we've looked everywhere. Also, there's no need to print a special
14045 message when we're loading the separate debug info file: the one
14046 symbol_file_add prints is fine.
14047
5b5d99cf
JB
140482003-01-23 Alexander Larsson <alexl@redhat.com>
14049 Jim Blandy <jimb@redhat.com>
14050
14051 Add support for executables whose debug info has been separated
14052 out into a separate file, leaving only a link behind.
14053 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14054 and separate_debug_objfile_backlink.
14055 (put_objfile_before): New declaration.
14056 * symfile.c: #include "filenames.h".
14057 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14058 debug info in a separate file, read that, too. Save the addrs
14059 argument, so we can use it again to read the separated debug info;
14060 syms_from_objfile modifies the table we pass it.
14061 (reread_symbols): After re-reading an objfile, call
14062 reread_separate_symbols to refresh its separate debug info
14063 objfile, if it has one.
14064 (reread_separate_symbols, find_separate_debug_file,
14065 get_debug_link_info, separate_debug_file_exists): New functions.
14066 (debug_file_directory): New global var.
14067 (_initialize_symfile): Initialize debug_file_directory, and
14068 provide the new `set debug-file-directory' command to let the user
14069 change it.
14070 * objfiles.c (free_objfile): If this objfile has its debug info in
14071 a separate objfile, free that one too. If this is itself a
14072 separate debug info objfile, clear our parent's backlink.
14073 (put_objfile_before): New function.
14074 * utils.c (gnu_debuglink_crc32): New function.
14075 * defs.h (gnu_debuglink_crc32): New declaration.
14076 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14077 * configure.in: Handle --with-separate-debug-dir config option.
14078 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14079 * acconfig.h (DEBUGDIR): New macro.
14080 * configure, aclocal.m4, config.in: Regenerated.
14081
7e8580c1
JB
140822003-01-22 Jim Blandy <jimb@redhat.com>
14083
7904e09f
JB
14084 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14085 like the old symbol_file_add, but taking new arguments: you can
14086 now pass in either a `struct section_addr_info' list to say where
14087 each section is loaded, or a `struct section_offsets' table. Pass
14088 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 14089 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
14090 with the appropriate quiescent values for the new arguments.
14091
7e8580c1
JB
14092 * symfile.c: #include "gdb_assert.h".
14093 (syms_from_objfile): Add the ability to pass in a section offset
14094 table directly, as an alternative to the section_addr_info table.
14095 Document arguments better.
14096 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14097 * symfile.h (syms_from_objfile): Update declaration.
14098 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14099 syms_from_objfile.
14100 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14101
d28f9cdf
DJ
141022003-01-22 Daniel Jacobowitz <drow@mvista.com>
14103
14104 Original patch by Tom Tromey <tromey@cygnus.com> and
14105 Jason Molenda <jmolenda@apple.com>.
14106 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14107 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14108 * NEWS: Mention profiling.
14109 * configure.in (--enable-gdbtk): Fix typo.
14110 (--enable-profiling): New. Set PROFILE_CFLAGS.
14111 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14112 Fill in function.
14113 (profiling_state): New variable.
14114 (mcleanup_wrapper): New function.
14115 (_initialize_maint): Remove NOTYET, fix call to
14116 add_setshow_boolean_cmd for "maint set profile".
14117 * configure: Regenerated.
14118
df21e465
MH
141192003-01-21 Martin M. Hunt <hunt@redhat.com>
14120
14121 * Makefile.in (install-gdbtk): Install PNG images too.
14122
73c1f219
AC
141232003-01-21 Andrew Cagney <ac131313@redhat.com>
14124
14125 * exec.c (text_start): Delete global variable.
14126 (exec_file_attach): Make text_start local to the function.
14127 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14128 * valops.c (hand_function_call): Delete code that handles
14129 BEFORE_TEXT_END and AFTER_TEXT_END.
14130 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14131 of CALL_DUMMY_LOCATION.
14132 * gdbarch.c: Regenerate.
14133 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14134 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14135 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14136 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14137 (text_end): Delete extern declaration.
14138
eb4f72c5
AC
141392003-01-21 Andrew Cagney <ac131313@redhat.com>
14140
14141 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14142 * blockframe.c (backtrace_below_main): Move to "frame.c".
14143 (frame_chain_valid): Delete check for backtrace_below_main.
14144 (_initialize_blockframe): Delete initialization, move ``set
14145 backtrace-below-main'' command to "frame.c".
14146 (do_flush_frames_sfunc): Delete function.
14147 * frame.c: Include "command.h" and "gdbcmd.h".
14148 (frame_type_from_pc): New function.
14149 (create_new_frame): Use frame_type_from_pc.
14150 (legacy_get_prev_frame): New function.
14151 (get_prev_frame): Rewrite. When an old style frame, call
14152 legacy_get_prev_frame. Otherwize, unwind the PC first.
14153 (_initialize_frame): Add ``set backtrace-below-main'' command.
14154 * Makefile.in (frame.o): Update dependencies.
14155
778ce8cc
AC
141562003-01-19 Andrew Cagney <ac131313@redhat.com>
14157
14158 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14159 DEPRECATED_REGISTERS_INFO.
14160
01c193c8
AC
141612003-01-19 Andrew Cagney <ac131313@redhat.com>
14162
14163 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14164 Maintainers'. Update `Various Maintainers'.
14165
dedc2a2b
AC
141662003-01-19 Andrew Cagney <ac131313@redhat.com>
14167
14168 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14169 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14170 Suppress actual parameters when `-'.
14171 * gdbarch.h, gdbarch.c: Regenerate.
14172
b7261c70
AC
141732003-01-19 Andrew Cagney <ac131313@redhat.com>
14174
14175 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14176 code handling dummy frames.
14177
dbe9fe58
AC
141782003-01-19 Andrew Cagney <ac131313@redhat.com>
14179
14180 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14181 (struct frame_unwind): Add field pop.
14182 * frame.h (frame_pop): Declare.
14183 * frame.c (frame_saved_regs_pop): New function.
14184 (trad_frame_unwinder): Add frame_saved_regs_pop.
14185 (frame_pop): New function.
14186 * dummy-frame.c (dummy_frame_pop): New function.
14187 (discard_innermost_dummy): New function.
14188 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14189 (dummy_frame_unwind): Add dummy_frame_pop.
14190 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14191 * valops.c (hand_function_call): Ditto.
14192 * stack.c (return_command): Ditto.
14193
570b8f7c
AC
141942003-01-18 Andrew Cagney <ac131313@redhat.com>
14195
14196 * cris-tdep.c: Fix function declaration indentation.
14197 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14198 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14199 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14200 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14201 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14202 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14203
142042003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14205
14206 * README (Unpacking and Installation -- quick overview):
14207 Warn against ".../gdb-5.3/gdb/configure".
14208
494cca16
AC
142092003-01-18 Andrew Cagney <ac131313@redhat.com>
14210
14211 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14212 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14213 (struct frame_unwind): Declare opaque.
14214 (dummy_frame_p): Declare function.
14215 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14216 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14217 * dummy-frame.c: Include "frame-unwind.h".
14218 (dummy_frame_p): New function.
14219 (dummy_frame_unwind): New variable.
14220 * frame.c: Include "frame-unwind.h".
14221 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14222 to use the new unwind field.
14223 (set_unwind_by_pc): Delete function.
14224 (create_new_frame, get_prev_frame): Set unwind field using
14225 frame_unwind_find_by_pc.
14226 (trad_frame_unwind, trad_frame_unwinder): New variables.
14227 * frame.h (trad_frame_unwind): Declare variable.
14228 (frame_id_unwind_ftype): Delete declaration.
14229 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14230 (struct frame_unwind): Declare opaque.
14231 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14232 register_unwind with a single unwind pointer.
14233 * frame-unwind.h, frame-unwind.c: New files.
14234 * Makefile.in (SFILES): Add frame-unwind.c.
14235 (frame_unwind_h): Define.
14236 (COMMON_OBS): Add frame-unwind.o.
14237 (frame-unwind.o): Specify dependencies.
14238 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14239
4efb68b1
AC
142402003-01-18 Andrew Cagney <ac131313@redhat.com>
14241
14242 * ada-valprint.c: Eliminate PTR.
14243 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14244 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14245 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14246 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14247 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14248 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14249 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14250
a84d24ee
AC
142512003-01-17 Andrew Cagney <ac131313@redhat.com>
14252
762f08a3
AC
14253 * main.c (captured_main): Don't use PTR.
14254 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14255 * gdbtypes.c (lookup_primitive_typename): Ditto.
14256 (lookup_struct_elt_type): Ditto.
14257 * f-valprint.c (info_common_command): Ditto.
14258 (list_all_visible_commons): Ditto.
14259 * jv-typeprint.c (java_type_print_base): Ditto.
14260
a84d24ee
AC
14261 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14262 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14263 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14264 i386-interix-nat.c and i386-interix-tdep.c. Rename
14265 m68klinux-nat.c and m68klinux-tdep.c. Rename
14266 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14267 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14268 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14269 * main.c (captured_main): Use xfree, not free.
14270
c170fb60
AC
142712003-01-16 Andrew Cagney <ac131313@redhat.com>
14272
14273 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14274 ID back using a parameter.
14275 * frame.c (frame_id_unwind): Update call.
14276 (frame_saved_regs_id_unwind): Update.
14277 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14278 * dummy-frame.h (struct frame_id): Add opaque declaration.
14279 (dummy_frame_id_unwind): Update declaration.
14280
867f3898
AC
142812003-01-15 Andrew Cagney <ac131313@redhat.com>
14282
14283 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14284
40622be8 142852003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14286
40622be8 14287 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14288
ae66c1fc
EZ
142892003-01-14 Elena Zannoni <ezannoni@redhat.com>
14290
997b089a 14291 Fix PR gdb/898
ae66c1fc
EZ
14292 * breakpoint.c (until_break_command): Add new argument. Use it to
14293 decide whether to stop only at the current frame or not.
14294 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14295 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14296 call.
14297 (advance_command): New function.
14298 (_initialize_infcmd): Update help string for 'until' command.
14299 Add new 'advance' command.
14300
a04257e6
DC
143012003-01-14 David Carlton <carlton@math.stanford.edu>
14302
14303 * linespec.c (decode_line_1): Normalize comments.
14304 (set_flags): Ditto.
14305 (locate_first_half): Ditto.
14306 (decode_compound): Ditto.
14307 (symtab_from_filename): Ditto.
14308 (decode_all_digits): Ditto.
14309 (decode_dollar): Ditto.
14310 (find_methods): Ditto.
14311 (find_toplevel_char): Ditto.
14312
1bac305b
AC
143132003-01-13 Andrew Cagney <ac131313@redhat.com>
14314
14315 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14316 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14317 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14318 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14319 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14320 * language.c, language.h, m32r-tdep.c: Update copyright.
14321 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14322 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14323 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14324 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14325 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14326 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14327
25caa7a8
EZ
143282003-01-13 Elena Zannoni <ezannoni@redhat.com>
14329
14330 * stabsread.h (process_later, resolve_cfront_continuation):
14331 Obsolete.
14332 Update copyright years.
14333 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14334 Update copyright year.
14335 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14336 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14337 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14338 Update copyright year.
14339 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14340 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14341 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14342 (parse_partial_symbols): Obsolete cfront support.
14343 * stabsread.c
14344 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14345 macros.
14346 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14347 read_cfront_baseclasses, read_cfront_member_functions,
14348 resolve_cfront_continuation,read_cfront_static_fields,
14349 copy_cfront_struct_fields): Obsolete functions.
14350 (define_symbol, read_one_struct_field): Obsolete cfront support.
14351 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14352 Update Copyright year.
14353
7789c6f5
EZ
143542003-01-13 Elena Zannoni <ezannoni@redhat.com>
14355
14356 * stack.c (print_frame_info, print_stack_frame_base_stub,
14357 print_stack_frame_base, show_and_print_stack_frame_stub,
14358 show_and_print_stack_frame, print_only_stack_frame_stub,
14359 print_only_stack_frame): Delete functions.
14360 (print_stack_frame_stub): Call print_frame_info instead of
14361 print_frame_info_base.
14362 (print_frame_info_base): Rename to print_frame_info.
14363 (backtrace_command_1): Call print_frame_info, instead of
14364 print_frame_info_base.
14365 (current_frame_command): Call print_stack_frame, instead of
14366 print_only_stack_frame.
14367 (frame_command): Call print_stack_frame, instead of
14368 show_and_print_stack_frame.
14369 (up_command): Ditto.
14370 (down_command): Ditto.
14371 * frame.h (print_only_stack_frame): Delete prototype.
14372 * infrun.c (normal_stop): Call print_stack_frame, instead of
14373 show_and_print_stack_frame.
14374 * thread.c (info_threads_command): Call print_stack_frame, instead
14375 of print_only_stack_frame.
14376
3f5a3016
AC
143772003-01-13 Andrew Cagney <ac131313@redhat.com>
14378
d99ba314
AC
14379 * README (Graphical interface to GDB): Update URL. Point at
14380 gdb/links/.
14381
3f5a3016
AC
14382 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14383 version match.
14384
083ae935
DJ
143852003-01-13 Daniel Jacobowitz <drow@mvista.com>
14386
14387 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14388 lines.
14389
5365276c
DJ
143902003-01-13 Daniel Jacobowitz <drow@mvista.com>
14391
14392 * thread-db.c (attach_thread): Prototype.
14393 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14394 thread information (ti), and valid flags (th_valid, ti_valid).
14395 (attach_thread): Move target_pid_to_str call to after the thread
14396 is added to GDB's list. Initialize the cache.
14397 (thread_get_info_callback, thread_db_map_id2thr)
14398 (thread_db_get_info): New functions.
14399 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14400 (thread_db_store_registers, thread_db_thread_alive)
14401 (thread_db_get_thread_local_address): Use them.
14402 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14403 of calling error() for threads in unknown state.
14404
14405 (clear_lwpid_callback): New function.
14406 (thread_db_resume): Use it to clear the cache.
14407
9fc30b6b
DJ
144082003-01-13 Daniel Jacobowitz <drow@mvista.com>
14409
14410 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14411 (resume_callback): Remove dead code.
14412
8f871025
AC
144132003-01-13 Andrew Cagney <ac131313@redhat.com>
14414
14415 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14416 predicate.
14417 * gdbarch.h, gdbarch.c: Regenerate.
14418 * stack.c (frame_info): Only initialize the saved registers when
14419 FRAME_INIT_SAVED_REGS_P.
14420 * frame.c (frame_saved_regs_register_unwind): Assert
14421 FRAME_INIT_SAVED_REGS_P.
14422 (deprecated_generic_get_saved_register): Ditto.
14423
3f565f1e
DJ
144242003-01-13 Daniel Jacobowitz <drow@mvista.com>
14425
14426 * source.c (openp): Squelch warning about "filename".
14427
072b1022
DJ
144282003-01-13 Daniel Jacobowitz <drow@mvista.com>
14429
14430 * source.c (openp): If the file does not exist don't necessarily
14431 search the path.
14432
973ccf8b
DJ
144332003-01-13 Daniel Jacobowitz <drow@mvista.com>
14434
14435 Fix PR gdb/872.
14436 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14437 (integer_types_same_name_p): New function.
14438 (rank_one_type): Use it.
14439 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14440
030292b7
DJ
144412003-01-13 Daniel Jacobowitz <drow@mvista.com>
14442
14443 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14444 variables.
14445 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14446 * configure.in: Add --with-sysroot.
14447 * configure: Regenerated.
14448 * main.c (gdb_sysroot): New variable.
14449 (captured_main): Initialize gdb_sysroot.
14450 * defs.h (gdb_sysroot): New extern declaration.
14451 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14452
afb5d334
MC
144532003-01-12 Michael Chastain <mec@shout.net>
14454
14455 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14456
751ceeb4
MC
144572003-01-12 Michael Chastain <mec@shout.net>
14458
14459 * top.c (print_gdb_version): Bump copyright year to 2003.
14460
94cd26f8
DC
144612003-01-12 David Carlton <carlton@bactrian.org>
14462
14463 * linespec.c (symtab_from_filename): Rename variable 's' to
14464 'file_symtab'.
14465
1ce79225
AC
144662003-01-12 Andrew Cagney <ac131313@redhat.com>
14467
14468 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14469 dummy frame.
14470 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14471
fa1fd571
AC
144722003-01-12 Andrew Cagney <ac131313@redhat.com>
14473
14474 * d10v-tdep.c: Include "gdb_assert.h".
14475 (d10v_store_return_value): Rewrite to match current interface.
14476 (d10v_extract_struct_value_address): Ditto.
14477 (d10v_extract_return_value): Ditto.
14478 (d10v_gdbarch_init): Set store_restore_value,
14479 extract_struct_value_address and extract_return_value.
14480
68b8d23e
JB
144812003-01-12 J. Brobecker <brobecker@gnat.com>
14482
14483 * hpread.c (set_namestring): New procedure replacing the
14484 SET_NAMESTRING macro.
14485 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14486 by calls to set_namestring.
14487
144882003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14489
14490 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14491 a compilation warning.
14492 (hpread_process_one_debug_symbol): Likewise.
14493
88d262ca
DC
144942003-01-10 David Carlton <carlton@math.stanford.edu>
14495
14496 * linespec.c (decode_line_1): Rename variable 's' to
14497 'file_symtab'.
14498 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14499 (decode_dollar): Ditto.
14500 (decode_variable): Ditto.
14501 (symbol_found): Ditto.
14502
86669319
MC
145032003-01-09 Michael Chastain <mec@shout.net>
14504
14505 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14506
616a9dc4
CV
145072003-01-07 Corinna Vinschen <vinschen@redhat.com>
14508
14509 * win32-nat.c (set_process_privilege): New function.
14510 (child_attach): Call set_process_privilege() to enable the
14511 SE_DEBUG_NAME user privilege if available in process token.
14512
3269bcfa
JB
145132003-01-10 J. Brobecker <brobecker@gnat.com>
14514
14515 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14516 compilation error in the previous revision.
14517
2b0ee454
DC
145182003-01-09 David Carlton <carlton@math.stanford.edu>
14519
14520 * linespec.c: Update copyright.
14521
b3ba1b44
DJ
145222003-01-09 Daniel Jacobowitz <drow@mvista.com>
14523
14524 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14525 than inferior_ptid.
14526 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14527
4ef3f3be
AC
145282003-01-09 Andrew Cagney <ac131313@redhat.com>
14529
479ab5a0
AC
14530 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14531 Update comments.
14532 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14533 (frame_saved_regs_zalloc): Update.
14534 (frame_saved_regs_register_unwind): Update.
14535 (create_new_frame): Update.
14536 (get_prev_frame): Update.
14537 (frame_extra_info_zalloc): Update.
14538 (deprecated_get_frame_saved_regs): Update.
14539 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14540 * cris-tdep.c: Update comment.
14541
bde58177
AC
14542 * somsolib.h: Fix function indentation.
14543 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14544 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14545 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14546 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14547 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14548
4ef3f3be
AC
14549 * infrun.c (follow_fork): Use ISO C definition.
14550 * expprint.c (print_subexp): Use xfree instead of free.
14551 * charset.c: Include "gdb_string.h" instead of <string.h>.
14552 (register_iconv_charsets): Use ISO C definition.
14553 (host_charset, target_charset): Ditto.
14554 * Makefile.in (charset.o): Update dependencies.
14555 (mi-cmd-env.o): Update dependencies.
14556
1c615f7a
AC
145572003-01-08 Andrew Cagney <cagney@redhat.com>
14558
14559 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14560 get_frame_base.
14561
c9a1dc08
AC
145622003-01-08 Andrew Cagney <ac131313@redhat.com>
14563
14564 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14565 build directories. Save edited gdb output in Mbuild.log. If a
14566 build fails, remove any final GDB executable.
14567
dbad9d94
AC
145682003-01-08 Andrew Cagney <ac131313@redhat.com>
14569
14570 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14571 replacing hex constants with function names and stripping leading
14572 file name directory prefixes.
14573
8d357cca
AC
145742003-01-08 Andrew Cagney <cagney@redhat.com>
14575
14576 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14577 get_frame_base.
14578
bca02a8a
DC
145792003-01-08 David Carlton <carlton@math.stanford.edu>
14580
14581 * linespec.c (decode_line_1): Move code into decode_variable.
14582 (decode_variable): New function.
14583
7f8ab3a0
AC
145842003-01-08 Andrew Cagney <ac131313@redhat.com>
14585
14586 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14587
7b5849cc
AC
145882003-01-08 Andrew Cagney <cagney@redhat.com>
14589
14590 * cris-tdep.c (cris_frame_init_saved_regs): Use
14591 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14592 saved_regs buffer.
14593 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14594 (sh64_nofp_frame_init_saved_regs): Ditto.
14595 (sh_fp_frame_init_saved_regs): Ditto.
14596 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14597 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14598 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14599 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14600
72a5efb3
DJ
146012003-01-08 Daniel Jacobowitz <drow@mvista.com>
14602
14603 * minsyms.c (lookup_minimal_symbol): Update comment.
14604 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14605 (lookup_minimal_symbol_solib_trampoline): Likewise.
14606
11c02a10
AC
146072003-01-08 Andrew Cagney <cagney@redhat.com>
14608
aab3ea25
AC
14609 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14610 frame_relative_level.
14611
da50a4b7
AC
14612 * alpha-tdep.c: Use get_frame_extra_info.
14613 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14614 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14615 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14616 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14617
11c02a10
AC
14618 * alpha-tdep.c: Use get_next_frame.
14619 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14620 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14621 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14622 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14623 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14624 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14625 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14626
1e2330ba
AC
146272003-01-07 Andrew Cagney <cagney@redhat.com>
14628
14629 * alpha-tdep.c: Use get_frame_base.
14630 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14631 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14632 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14633 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14634 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14635 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14636 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14637 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14638
2d75187b
AC
146392003-01-07 Andrew Cagney <cagney@redhat.com>
14640
14641 * frame.c (deprecated_get_frame_context): New function.
14642 (deprecated_set_frame_context): New function.
14643 * frame.h (deprecated_get_frame_context): Declare.
14644 (deprecated_set_frame_context): Declare.
14645 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14646 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14647
483d36b2
AC
146482003-01-07 Andrew Cagney <cagney@redhat.com>
14649
14650 * frame.c (deprecated_set_frame_next_hack): New function.
14651 (deprecated_set_frame_prev_hack): New function.
14652 * frame.h (deprecated_set_frame_next_hack): Declare.
14653 (deprecated_set_frame_prev_hack): Declare.
14654 * mcore-tdep.c (analyze_dummy_frame): Use
14655 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14656 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14657
14e91ac5
DC
146582003-01-07 David Carlton <carlton@math.stanford.edu>
14659
14660 * linespec.c (decode_line_1): Move code into decode_dollar.
14661 (decode_dollar): New function.
14662
b0c6b05c
AC
146632003-01-07 Andrew Cagney <cagney@redhat.com>
14664
14665 * arm-tdep.c (arm_init_extra_frame_info): Use
14666 deprecated_update_frame_base_hack.
14667 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14668 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14669 (fix_frame_pointer): Ditto.
14670 (mn10300_analyze_prologue): Ditto.
14671
a00a19e9
AC
146722003-01-07 Andrew Cagney <cagney@redhat.com>
14673
14674 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14675 extra_info using frame_extra_info_zalloc.
14676 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14677 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14678 (sh64_init_extra_frame_info): Ditto.
14679 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14680 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14681 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14682 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14683 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14684 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14685 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14686 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14687 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14688 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14689 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14690 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14691
14692 * mn10300-tdep.c (analyze_dummy_frame): Use
14693 deprecated_set_frame_extra_info_hack.
14694 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14695
1fb4c65b
JB
146962003-01-07 J. Brobecker <brobecker@gnat.com>
14697
14698 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14699 class is not scText. These do not define "real" procedures.
14700 (parse_partial_symbols): Likewise.
14701
9fe7d6bf
MS
147022003-01-06 Michael Snyder <msnyder@redhat.com>
14703
14704 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14705
f6c609c4
AC
147062003-01-06 Andrew Cagney <ac131313@redhat.com>
14707
14708 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14709 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14710 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14711 deprecated_frame_xmalloc_with_cleanup.
14712 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14713 deprecated_frame_xmalloc.
14714 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14715 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14716
d995ff4b
AC
147172003-01-06 Andrew Cagney <cagney@redhat.com>
14718
84dc46cb
AC
14719 * x86-64-linux-tdep.c: Include "osabi.h".
14720 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14721
d995ff4b
AC
14722 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14723
66140c26
AC
147242003-01-06 Andrew Cagney <cagney@redhat.com>
14725
14726 * MAINTAINERS (Target Instruction Set Architectures): Update
14727 arm-elf. Can be built with -Werror, has been multiarched.
14728
14729 * value.h (unpack_long): Make buffer parameter constant.
14730 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14731 * scm-lang.h (scm_parse): Ditto.
14732 * defs.h (extract_typed_address, extract_address): Ditto.
14733 (extract_long_unsigned_integer): Ditto.
14734 * inferior.h (unsigned_pointer_to_address): Ditto.
14735 (signed_pointer_to_address): Ditto.
14736 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14737 * gdbarch.h, gdbarch.c: Regenerate.
14738 * findvar.c (extract_long_unsigned_integer): Update.
14739 (extract_address): Update.
14740 (extract_typed_address): Update.
14741 (unsigned_pointer_to_address): Update.
14742 * values.c (unpack_long): Update.
14743 (unpack_double): Update.
14744 (unpack_pointer): Update.
14745 (unpack_field_as_long): Update.
14746 * d10v-tdep.c (d10v_pointer_to_address): Update.
14747 * avr-tdep.c (avr_pointer_to_address): Update.
14748 * scm-lang.c (scm_unpack): Update.
14749 * findvar.c (signed_pointer_to_address): Update.
14750
b089b3da
ML
147512003-01-06 Michal Ludvig <mludvig@suse.cz>
14752
8ffd9b1b 14753 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14754 since it is in i386-tdep.c.
14755
aff87235
JB
147562003-01-06 J. Brobecker <brobecker@gnat.com>
14757
14758 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14759 failure introduced in the previous change.
14760
34f5e845
MC
147612003-01-05 Michael Chastain <mec@shout.net>
14762
14763 * README: Remove references to deleted remote-*.c files:
14764 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14765 remote-nrom.c, remote-os9k.c, remote-udi.c.
14766
28bcfd30
MK
147672003-01-05 Mark Kettenis <kettenis@gnu.org>
14768
14769 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14770 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14771 i386_get_longjmp_target.
14772
15a5b3ee
AC
147732003-01-05 Andrew Cagney <ac131313@redhat.com>
14774
14775 * arm-tdep.c (prologue_cache): Change to a pointer.
14776 (_initialize_arm_tdep): Allocate prologue_cache.
14777 (check_prologue_cache): Update.
14778 (save_prologue_cache): Update.
14779 (arm_gdbarch_init): Update.
14780
c263362b
DJ
147812003-01-04 Daniel Jacobowitz <drow@mvista.com>
14782
14783 * stabsread.c (update_method_name_from_physname): Call complaint()
14784 instead of error.
14785
51603483
DJ
147862003-01-04 Daniel Jacobowitz <drow@mvista.com>
14787
14788 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14789 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14790 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14791
14792 * blockframe.c: Include "gdbcmd.h" and "command.h".
14793 (backtrace_below_main): New variable.
14794 (file_frame_chain_valid, func_frame_chain_valid)
14795 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14796 (generic_func_frame_chain_valid): Remove functions.
14797 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14798 (_initialize_blockframe): New function.
14799 * Makefile.in (blockframe.o): Update dependencies.
14800 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14801 comment. Call frame_chain_valid ().
14802 * frame.h: Remove old prototypes. Add prototype for
14803 frame_chain_valid and update comments to match.
14804 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14805 Remove old comment.
14806 * gdbarch.h: Regenerated.
14807 * gdbarch.c: Regenerated.
14808
14809 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14810 set_gdbarch_frame_chain_valid.
14811 * avr-tdep.c (avr_gdbarch_init): Likewise.
14812 * cris-tdep.c (cris_gdbarch_init): Likewise.
14813 * frv-tdep.c (frv_gdbarch_init): Likewise.
14814 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14815 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14816 (i386_nw_init_abi): Likewise.
14817 (i386_gdbarch_init): Likewise.
14818 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14820 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14821 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14822 * mips-tdep.c (mips_gdbarch_init): Likewise.
14823 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14824 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14825 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14826 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14827 * s390-tdep.c (s390_gdbarch_init): Likewise.
14828 * sh-tdep.c (sh_gdbarch_init): Likewise.
14829 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14830 * v850-tdep.c (v850_gdbarch_init): Likewise.
14831 * vax-tdep.c (vax_gdbarch_init): Likewise.
14832 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14833
14834 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14835 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14836 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14837 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14838 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14839 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14840 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14841 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14842
b00a8037
DJ
148432002-01-04 Daniel Jacobowitz <drow@mvista.com>
14844
14845 * Makefile.in (acconfig_h): Remove incorrect macro.
14846 (config_h): Define.
14847 (osabi.o): Update dependencies.
14848 * configure.tgt: Set gdb_osabi based on target triplet.
14849 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14850 * configure: Regenerated.
14851 * config.in: Regenerated.
14852 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14853 (GDB_OSABI_DEFAULT): Define if not already defined.
14854 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14855 (set_osabi_string): New variables.
14856 (gdbarch_register_osabi): Add new OS ABI to
14857 gdb_osabi_available_names.
14858 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14859 (set_osabi, show_osabi): New functions.
14860 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14861
4be87837
DJ
148622003-01-04 Daniel Jacobowitz <drow@mvista.com>
14863
14864 * arch-utils.c (gdbarch_info_init): Set osabi to
14865 GDB_OSABI_UNINITIALIZED.
14866 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14867 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14868 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14869 * gdbarch.c: Regenerated.
14870 * gdbarch.h: Regenerated.
14871 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14872 there's no BFD.
14873 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14874 * osabi.h (enum gdb_osabi): Move to defs.h.
14875 (gdbarch_init_osabi): Update prototype.
14876 * defs.h (enum gdb_osabi): Moved here.
14877 * Makefile.in: Update dependencies.
14878
14879 * alpha-tdep.h: Don't include "osabi.h".
14880 (struct gdbarch_tdep): Remove osabi member.
14881 * alpha-tdep.c: Include "osabi.h".
14882 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14883 iterate over arches. Update call to gdbarch_init_osabi.
14884 (alpha_dump_tdep): Don't dump osabi.
14885 * alpha-linux-tdep.c: Include "osabi.h".
14886 * alpha-osf1-tdep.c: Include "osabi.h".
14887 * alphafbsd-tdep.c: Include "osabi.h".
14888 * alphanbsd-tdep.c: Include "osabi.h".
14889
14890 * arm-tdep.h: Don't include "osabi.h".
14891 (struct gdbarch_tdep): Remove osabi member.
14892 * arm-tdep.c: Include "osabi.h".
14893 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14894 iterate over arches. Update call to gdbarch_init_osabi.
14895 (arm_dump_tdep): Don't dump osabi.
14896 * arm-linux-tdep.c: Include "osabi.h".
14897 * armnbsd-tdep.c: Include "osabi.h".
14898
14899 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14900 Update call to gdbarch_init_osabi.
14901
14902 * i386-tdep.h: Don't include "osabi.h".
14903 (struct gdbarch_tdep): Remove osabi member.
14904 * i386-tdep.c: Include "osabi.h".
14905 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14906 iterate over arches. Update call to gdbarch_init_osabi.
14907 (i386_dump_tdep): Don't dump osabi.
14908 * i386-linux-tdep.c: Include "osabi.h".
14909 * i386-sol2-tdep.c: Include "osabi.h".
14910 * i386bsd-tdep.c: Include "osabi.h".
14911 * i386gnu-tdep.c: Include "osabi.h".
14912 * i386ly-tdep.c: Include "osabi.h".
14913 * i386nbsd-tdep.c: Include "osabi.h".
14914 * i386obsd-tdep.c: Include "osabi.h".
14915
14916 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14917 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14918 check osabi when iterating over arches. Update call to
14919 gdbarch_init_osabi.
14920 (mips_dump_tdep): Don't dump osabi.
14921
14922 * ns32k-tdep.h: Don't include "osabi.h".
14923 (struct gdbarch_tdep): Remove.
14924 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14925 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14926 allocate tdep. Update call to gdbarch_init_osabi.
14927 (ns32k_dump_tdep): Remove.
14928 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14929 * ns32knbsd-tdep.c: Include "osabi.h".
14930
14931 * ppc-tdep.h: Don't include "osabi.h".
14932 (struct gdbarch_tdep): Remove osabi member.
14933 * rs6000-tdep.c: Include "osabi.h".
14934 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14935 osabi when iterating over arches. Update call to
14936 gdbarch_init_osabi.
14937 (rs6000_dump_tdep): Don't dump osabi.
14938 * ppc-linux-tdep.c: Include "osabi.h".
14939 * ppcnbsd-tdep.c: Include "osabi.h".
14940
14941 * sh-tdep.h: Don't include "osabi.h".
14942 (struct gdbarch_tdep): Remove osabi member.
14943 * sh-tdep.c: Include "osabi.h".
14944 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14945 iterate over arches. Update call to gdbarch_init_osabi.
14946 (sh_dump_tdep): Don't dump osabi.
14947 * shnbsd-tdep.c: Include "osabi.h".
14948
14949 * sparc-tdep.c: Include "osabi.h".
14950 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14951 iterate over arches. Update call to gdbarch_init_osabi.
14952 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14953 tdep structure.
14954
14955 * vax-tdep.h: Don't include "osabi.h".
14956 (struct gdbarch_tdep): Remove.
14957 * vax-tdep.c: Include "osabi.h".
14958 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14959 iterate over arches. Don't allocate tdep. Update call
14960 to gdbarch_init_osabi.
14961 (vax_dump_tdep): Remove.
14962 (_initialize_vax_tdep): Update call to gdbarch_register.
14963
a881cf8e
DJ
149642003-01-04 Daniel Jacobowitz <drow@mvista.com>
14965
14966 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14967 entirely.
14968 (breakpoint_re_set_one): Don't fetch the value for a disabled
14969 watchpoint.
14970
1e698235
DJ
149712003-01-04 Daniel Jacobowitz <drow@mvista.com>
14972
14973 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14974 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14975 (COERCE_FLOAT_TO_DOUBLE): Remove.
14976 * gdbarch.c: Regenerate.
14977 * gdbarch.h: Regenerate.
14978 * Makefile.in: Remove value_h from gdbarch_h.
14979 * valops.c (coerce_float_to_double): New variable.
14980 (default_coerce_float_to_double): Remove.
14981 (standard_coerce_float_to_double): Remove.
14982 (value_arg_coerce): Use coerce_float_to_double.
14983 (_initialize_valops): Add "set coerce-float-to-double".
14984 * value.h (default_coerce_float_to_double): Remove prototype.
14985 (standard_coerce_float_to_double): Remove prototype.
14986
14987 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14988 prototyped.
14989 * mdebugread.c (parse_symbol): Likewise.
14990 * stabsread.c (define_symbol): Mark all functions as prototyped.
14991
14992 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14993 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14994 set_gdbarch_coerce_float_to_double.
14995 * arm-tdep.c (arm_gdbarch_init): Likewise.
14996 * frv-tdep.c (frv_gdbarch_init): Likewise.
14997 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14998 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14999 * mips-tdep.c (mips_gdbarch_init): Likewise.
15000 (mips_coerce_float_to_double): Remove.
15001 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15002 (rs6000_coerce_float_to_double): Remove.
15003 * s390-tdep.c (s390_gdbarch_init): Likewise.
15004 * sh-tdep.c (sh_gdbarch_init): Likewise.
15005 (sh_coerce_float_to_double): Remove.
15006 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15007 (sparc_coerce_float_to_double): Remove.
15008 * v850-tdep.c (v850_gdbarch_init): Likewise.
15009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15010 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15011 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15012 (hppa_coerce_float_to_double): Remove prototype.
15013 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15014
f436a26a
DJ
150152003-01-04 Daniel Jacobowitz <drow@mvista.com>
15016
15017 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15018
248f8055
DJ
150192003-01-04 Daniel Jacobowitz <drow@mvista.com>
15020
15021 Suggested by Stewart Brown <sb24@avaya.com>:
15022 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15023 in recursive calls. Handle TYPE_CODE_TYPEDEF.
15024 (c_type_print_varspec_suffix): Likewise.
15025
72cfdc76
MK
150262003-01-04 Mark Kettenis <kettenis@gnu.org>
15027
bfd260bb
MK
15028 * configure.in: Don't set and AC_SUBST SUBDIRS.
15029 * configure: Regenerated.
15030
72cfdc76
MK
15031 * configure.in: Remove code dealing with shared libraries.
15032 * Makefile.in: Remove HLDFLAGS and HLDENV.
15033 * configure: Regenerated.
15034
c8b8a898
AC
150352003-01-04 Andrew Cagney <ac131313@redhat.com>
15036
15037 * frame.c (deprecated_frame_xmalloc): New function.
15038 (deprecated_set_frame_saved_regs_hack): New function.
15039 (deprecated_set_frame_extra_info_hack): New function.
15040 * frame.h (deprecated_frame_xmalloc): Declare.
15041 (deprecated_set_frame_saved_regs_hack): Declare.
15042 (deprecated_set_frame_extra_info_hack): Declare.
15043
14abd0fb
MK
150442003-01-04 Mark Kettenis <kettenis@gnu.org>
15045
8ee53726
MK
15046 * configure.in: Move code that provides the --enable-gdbtk option
15047 right after the code that handles the --enable-tui option, and
15048 polish it somewhat.
15049 * configure: Regenerated.
15050
14abd0fb
MK
15051 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
15052 AC_CHECK_FUNCS and remove the old check for pread64.
15053 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15054 * acconfig.h (_GNU_SOURCE): Add.
15055 (HAVE_PREAD64): Remove.
15056 * configure, aclocal.m4, config.in: Regenerated.
15057
b2fb4676
AC
150582003-01-03 Andrew Cagney <ac131313@redhat.com>
15059
15060 * alpha-tdep.c: Use get_frame_saved_regs.
15061 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15062 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15063 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15064 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15065 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15066
8dcde887
MK
150672003-01-03 Mark Kettenis <kettenis@gnu.org>
15068
15069 * configure.in: Remove all use of the SUBDIRS variable; add
15070 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15071 code providing the --enable-multi-ice option, and move it right in
15072 front of the code that checks whether gdbserver is supported.
15073 Polish that too.
15074 * configure: Regenerated.
15075 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15076 @SUBDIRS@.
15077
8ccd593b
AC
150782003-01-03 Andrew Cagney <cagney@redhat.com>
15079
15080 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15081 * avr-tdep.c, cris-tdep.c: Ditto.
15082 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15083 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 15084
91151a06
MK
150852003-01-03 Mark Kettenis <kettenis@gnu.org>
15086
15087 * configure.in: Remove --enable-netrom option.
15088 * configure: Regenerated.
15089
8fe84d01
MK
150902003-01-03 Mark Kettenis <kettenis@gnu.org>
15091
15092 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15093 declaration for `struct re_pattern_buffer' instead.
15094 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15095
f0394be6
JB
150962003-01-03 J. Brobecker <brobecker@gnat.com>
15097
15098 * mdebugread.c (parse_symbol): Count until the stEnd matching
15099 the structure name.
15100
27e9bf90
MK
151012003-01-02 Mark Kettenis <kettenis@gnu.org>
15102
93d331ba
MK
15103 * configure.in: Remove --with-cpu option.
15104 subscripts. Remove evil changequotes here.
15105 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15106 * config.in, configure: Regenerated.
8ffd9b1b 15107
27e9bf90
MK
15108 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15109 * configure.in: Cleanup section that sources GDB and BFD configure
15110 subscripts. Remove evil changequotes here.
15111 * config.in, configure: Regenerated.
15112
50abf9e5
AC
151132003-01-02 Andrew Cagney <ac131313@redhat.com>
15114
15115 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15116 frame accessor methods.
15117 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15118 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15119 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15120 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15121 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15122 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15123 * z8k-tdep.c: Ditto.
8ffd9b1b 15124
287c1a40
MK
151252003-01-02 Mark Kettenis <kettenis@gnu.org>
15126
f5dbc56d
MK
15127 * configure.in: Remove UI_OUT configuration code.
15128 * ada-lang.c: Update assuming UI_OUT is always true.
15129 * Makefile.in (UIOUT_CFLAGS): Remove.
15130 * configure: Regenerated.
15131 * TODO: Remove blurb about elimination of -DUI_OUT.
15132
627af7ea
MK
15133 * configure.in: Move code that provides the --enable-gdbcli,
15134 --enable-gdbmi options right before the code that handles the
15135 --enable-tui option. Polish a bit.
15136 * configure: Regenerated.
15137
06825bd1
MK
15138 * configure.in: Rewrite check for GNU regex and the
15139 --without-included regex option, and move it into the "Checks for
15140 library functions" section. This makes us use the system regex
15141 again by default on systems with version 2 of the GNU C library.
15142 This was apparently broken.
15143 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15144 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15145 * config.in, configure: Regenerated.
15146
287c1a40
MK
15147 * configure.in: Move code that provides the --enable-tui option
15148 before the "Checks for libraries" section. Polish the code
15149 somewhat and set need_curses to yes if we build the TUI. Rewrite
15150 code that looks for a library providing termcap functionality to
15151 match more closely what's done in the Readline library, and move
15152 it into to the "Checks for libraries" section.
15153 * configure: Regenerated.
15154 * Makefile.in (TERMCAP): Remove variable.
15155 * config/i386/go32.mh (TERMCAP): Remove variable.
15156
684e56bf
AC
151572003-01-02 Andrew Cagney <ac131313@redhat.com>
15158
15159 * MAINTAINERS: Mention gdb_mbuild.sh.
15160 * gdb_mbuild.sh: Rewrite.
15161
e1ea1d75
MK
151622003-01-02 Mark Kettenis <kettenis@gnu.org>
15163
15164 * configure.in: Fix typo in last change.
15165 * config.in, configure: Regenerated.
15166
1b831c93
AC
151672003-01-02 Andrew Cagney <ac131313@redhat.com>
15168
15169 * valarith.c (value_binop): Delete obsolete code and comments.
15170 * configure.host: Ditto.
15171 * buildsym.h (make_blockvector): Ditto.
15172 * buildsym.c (make_blockvector): Ditto.
15173 * defs.h (enum language): Ditto.
15174 (chill_demangle): Ditto.
15175 * elfread.c (elf_symtab_read): Ditto.
15176 * dwarfread.c (CHILL_PRODUCER): Ditto.
15177 (set_cu_language): Ditto.
15178 (handle_producer): Ditto.
15179 * expprint.c (print_subexp): Ditto.
15180 * gdbtypes.c (chill_varying_type): Ditto.
15181 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15182 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15183 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15184 (chill_varying_type): Ditto.
15185 * language.h (_LANG_chill): Ditto.
15186 * language.c (binop_result_type, integral_type): Ditto.
15187 (character_type, string_type, structured_type): Ditto.
15188 (lang_bool_type, binop_type_check): Ditto.
15189 * stabsread.h (os9k_stabs): Ditto.
15190 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15191 (define_symbol, read_type, read_struct_fields): Ditto.
15192 (read_array_type, read_enum_type, read_huge_number): Ditto.
15193 (read_range_type, start_stabs): Ditto.
15194 * symfile.c (init_filename_language_table): Ditto.
15195 (add_psymbol_with_dem_name_to_list): Ditto.
15196 * symtab.c (symbol_init_language_specific): Ditto.
15197 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15198 * symtab.h (struct general_symbol_info): Ditto.
15199 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15200 * typeprint.c (typedef_print): Ditto.
15201 * utils.c (fprintf_symbol_filtered): Ditto.
15202 * valops.c (value_cast, search_struct_field, value_slice): Delete
15203 obsolete code.
15204 (varying_to_slice): Delete function.
15205 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15206 (varying_to_slice): Delete declaration.
15207 * MAINTAINERS: Update.
15208
8bb2c122
MK
152092003-01-02 Mark Kettenis <kettenis@gnu.org>
15210
97bf5e38
MK
15211 * configure.in: Reorganize "Checks for library functions section"
15212 a bit. Remove check for `btowc' and `isascii' functions.
15213 * configure: Regenerated.
15214
5ee754fc
MK
15215 * acconfig.h (_MSE_INT_H): Remove.
15216 * configure.in: Create "Checks for header files" section, and move
15217 appropriate tests there. Don't check for objlist.h, wchar.h,
15218 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15219 misdetection fix. Also add "Checks for types", "Checks for
15220 compiler characteristics" and "Checks for library functions"
15221 sections.
15222 * config.in, configure: Regenerated.
15223
8bb2c122
MK
15224 * configure.in: Create "Checks for programs" section, and move
15225 appropriate tests there.
15226
9a156167
MK
152272003-01-01 Mark Kettenis <kettenis@gnu.org>
15228
15229 * configure.in: Create "Checks for libraries" section, and move
15230 appropriate tests there. Cleanup check for wctype in libw. Use
15231 AC_SEARCH_LIBS to see whether we need libsocket.
15232 * configure: Regenerated.
15233
a80e2bcb 15234For older changes see ChangeLog-2002
c906108c
SS
15235\f
15236Local Variables:
15237mode: change-log
15238left-margin: 8
15239fill-column: 74
15240version-control: never
15241End:
This page took 2.081919 seconds and 4 git commands to generate.