* win32-nat.c (get_child_debug_event): Keep main thread id around even after
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
87a45c96
CF
12003-12-25 Christopher Faylor <cgf@redhat.com>
2
3 * win32-nat.c (get_child_debug_event): Keep main thread id around even
4 after thread exits since Windows insists on continuing to report events
5 against it.
6
79c4cb80
MK
72003-12-22 Mark Kettenis <kettenis@gnu.org>
8
9 * dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
10 address column.
11
6c50ab1c
JB
122003-12-21 Jim Blandy <jimb@redhat.com>
13
14 * breakpoint.c (bpstat_do_actions): To ensure that
15 clear_proceed_status doesn't free the command tree we're
16 evaluating out from under us, zero the bpstat's pointer to it, and
17 take care of freeing it ourselves.
18 * cli/cli-script.c (make_cleanup_free_command_lines): Make this
19 function externally visible.
20 * cli/cli-script.h (make_cleanup_free_command_lines): New
21 declaration.
22
59207364
MK
232003-12-20 Mark Kettenis <kettenis@gnu.org>
24
25 * x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
26 RIP.
27
a2379359
MC
282003-12-18 Michael Chastain <mec.gnu@mindspring.com>
29
30 * hppa-tdep.c (hppa_gdbarch_init): Set long double floating
31 point type to floatformat_ia64_quad_big.
32
d40fcd7b
KB
332003-12-18 Kevin Buettner <kevinb@redhat.com>
34
35 * frv-tdep.c (skip_prologue_using_sal): New function. Taken verbatim
36 from mips-tdep.c.
37 (frv_analyze_prologue): Rework to account for intermixed prologue /
38 body instructions.
39
8e8b2dba
MC
402003-12-18 Michael Chastain <mec.gnu@mindspring.com>
41
42 * hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
43 Document type sizes for hppa*-*-hpux* compilers available to me.
44
e584bbaf
MC
452003-12-18 Michael Chastain <mec.gnu@mindspring.com>
46
47 * hppam3-nat.c: Delete obsolete file.
48 * hppab-nat.c: Delete obsolete file.
49 * Makefile.in: Remove references.
50
bffe1ece
JJ
512003-12-17 Jeff Johnston <jjohnstn@redhat.com>
52
53 * symtab.c (decode_line_spec): Change call to decode_line_1.
54
68219205
JJ
552003-12-17 Jeff Johnston <jjohnstn@redhat.com>
56
57 * linespec.h (decode_line_1): Add new not_found_ptr parameter.
58 * linespec.c (decode_line_1): Add new parameter. Pass on
59 new parameter to decode_variable and symtab_from_filename
60 functions.
61 (decode_variable): Add new not_found_ptr parameter. Throw exception
62 rather than failing if the not_found_ptr is non-null and the
63 function is not found.
64 (symtab_from_filename): Add new not_found_ptr parametr. Throw
65 exception rather than failing if the not_found_ptr is non-null and
66 the source file is not found.
67 * breakpoint.c: Change all callers of decode_line_1 to add default
68 extra parameter for decode_line_1 calls.
69 * tracepoint.c: Ditto.
70 * cli/cli-cmds.c: Ditto.
71
b639a770
JB
722003-12-16 J. Brobecker <brobecker@gnat.com>
73
74 * irix5-nat.c: Include mips-tdep.h.
75
c6831537
MK
762003-12-16 Mark Kettenis <kettenis@gnu.org>
77
729b7ed7
MK
78 * solib.h (SOLIB_CREATE_CATCH_LOAD_HOOK)
79 (SOLIB_CREATE_CATCH_UNLOAD_HOOK, SOLIB_LOADED_LIBRARY_PATHNAME)
80 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_HAVE_LOAD_EVENT)
81 (SOLIB_HAVE_UNLOAD_EVENT): Remove defines.
82
c6831537
MK
83 * blockframe.c (inside_main_func): Don't treat a zero PC specially.
84 Needed to fix PR backtrace/1476.
85
5d09de9d
DC
862003-12-16 David Carlton <carlton@kealia.com>
87
88 * cp-support.c (class_name_from_physname): Add DMGL_PARAMS.
89 (method_name_from_physname): Ditto.
90
6a9756ed
MK
912003-12-15 Mark Kettenis <kettenis@gnu.org>
92
93 * i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
94 (i386_sol2_init_abi): Initialize TDEP->gregset_reg_offset,
95 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
96 TDEP->sizeof_fpregset.
97 * config/i386/i386sol2.mh (XM_FILE): Set to xm-i386.h.
98 (XM_CLIBS): Remove.
99 (NATDEPFILES): Remove core-regset.o and corelow.o.
100 * config/i386/i386sol2.mt (TDEPFILES): Add corelow.o.
101
5daa5b4e
MK
1022003-12-14 Mark Kettenis <kettenis@gnu.org>
103
e34e1a85
MK
104 * proc-api.c (procfs_note): Add format string to fprintf call.
105
5daa5b4e
MK
106 * i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
107 for `subl' and `xorl' instructions.
108
e481341f
JB
1092003-12-13 Jim Blandy <jimb@redhat.com>
110
27bfe10e
JB
111 * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
112 Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
113 to strcmp and strncmp.
114
e481341f
JB
115 * osabi.c (gdbarch_init_osabi): Reformat error message with better
116 line breaks.
117
f614e9d9
MK
1182003-12-13 Mark Kettenis <kettenis@gnu.org>
119
120 * blockframe.c (inside_main_func): Reformat. Introduce new local
121 variables to prevent long lines. Update comments to reflect
122 reality.
123
503ff15d
KB
1242003-12-12 Kevin Buettner <kevinb@redhat.com>
125
126 From David Mosberger <davidm@hpl.hp.com>:
127 * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
128 with a single unw_dyn_info_t pointer.
129 (libunwind_find_dyn_list): Likewise.
130 * libunwind-frame.h: Likewise.
131 * ia64-tdep.c (ia64_find_unwind_table): Switch to using
132 UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
133 entire unwind-table at once. Support for this table format has
134 been added to libunwind v0.95.
135 (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
136 (ia64_get_dyn_info_list): Adjust for interface change for
137 libunwind_find_dyn_list().
138
468d015d
JJ
1392003-12-12 Jeff Johnston <jjohnstn@redhat.com>
140
141 * breakpoint.c (breakpoint_enabled): New function to test whether
142 breakpoint is active and enabled.
143 (insert_bp_location, insert_breakpoints): Call new function to test
144 for enabled breakpoint.
145 (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
146 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
147 (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
148 (disable_watchpoints_before_interactive_call_start)
149 (breakpoint_re_set_one): Ditto.
150 (bpstat_stop_status): Use new function and simplify test.
151
f82de61c
MK
1522003-12-11 Mark Kettenis <kettenis@gnu.org>
153
154 * observer.c (observer_test_first_observer)
155 (observer_test_second_observer, observer_test_third_observer):
156 Don't define as `static'.
157 (observer_test_first_notification_function)
158 (observer_test_second_notification_function)
159 (observer_test_third_notification_function): Likewise.
160
9db7c108
MK
1612003-12-10 Mark Kettenis <kettenis@gnu.org>
162
163 * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
164 of (0).
165
8bfdb672
DD
1662003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
167
168 * MAINTAINERS (write after approval): Add myself.
169
454d0511
DD
1702003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
171
172 * config/h8300/tm-h8300.h (h8300hmode): Remove.
173 (h8300hmode): Likewise.
174 (h8300smode): Likewise.
175 (h8300sxmode): Likewise.
176 (h8300_normal_mode): Likewise.
177 (GDB_TARGET_IS_H8300): Likewise.
178 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
179 * h8300-tdep.c (is_h8300hmode): New function.
180 (is_h8300smode): New function.
181 (is_h8300sxmode): New function.
182 (is_h8300_normal_mode): New function.
183 (BINWORD): Use new functions.
184 (h8300_examine_prologue): Likewise.
185 (h8300_print_register): Likewise.
186 (h8300_print_registers_info): Likewise.
187 (h8300_register_type): Likewise.
188 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
189 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
190 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
191 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
192
7ae4c3a5
JB
1932003-12-10 J. Brobecker <brobecker@gnat.com>
194
195 * frame.c (select_frame): Get the current frame PC using
196 get_frame_address_in_block() instead of get_frame_pc().
197 * stack.c (get_frame_language): Likewise.
198
9b74d5d3
KB
1992003-12-08 Kevin Buettner <kevinb@redhat.com>
200
201 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
202 remote_desc more than once.
203
e7ebf6d6
AC
2042003-12-07 Andrew Cagney <cagney@redhat.com>
205
206 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
207 directly calling strcmp equivalents. Add disclaimer.
208
8ccc1287
AC
2092003-12-06 Andrew Cagney <cagney@redhat.com>
210
211 * remote.c (remote_fetch_registers): For short packets, explicitly
212 supply a zero value. Use regcache_raw_supply. Fix suggested by
213 Jonathan Larmour.
214
32edc941
JJ
2152003-12-05 Jeff Johnston <jjohnstn@redhat.com>
216
217 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
218 format to be the i387 extended float format which is used for
219 long doubles stored in memory.
220
2af2aeb0
MK
2212003-12-05 Mark Kettenis <kettenis@gnu.org>
222
223 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
224 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
225 column instead of translating it.
226
362ff856
MC
2272003-12-04 Michael Chastain <mec.gnu@mindspring.com>
228
229 Partial fix for PR c++/1465.
230 Fix for PR c++/1377.
231 * cp-support.h (cp_lookup_rtti_type): New function.
232 * cp-support.c (cp_lookup_rtti_type): New function.
233 * gnu-v2-abi.c: Update copyright years.
234 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
235 * gnu-v3-abi.c: Update copyright years.
236 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
237
149d821b
JB
2382003-12-04 J. Brobecker <brobecker@gnat.com>
239
240 * stabsread.c (read_type): Save a reference to types that are defined
241 as cross references to other types.
242
77f091dd
RM
2432003-12-02 Roland McGrath <roland@redhat.com>
244
245 * thread-db.c (enable_thread_event): Change return type to
246 td_err_e. Return TD_OK or error code.
247 (enable_thread_event_reporting): Update callers.
248
59659be2
ILT
2492003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
250
251 * NEWS: Mention new C++ demangler code.
252
56d0d96a
AC
2532003-12-03 Andrew Cagney <cagney@redhat.com>
254
255 * ppc-linux-nat.c (store_register, fetch_register): Convert
256 between ptrace and regcache's wordsize.
257 (ppc_register_u_addr): Use the ptrace wordsize.
258
251a3ae3
KB
2592003-12-02 Kevin Buettner <kevinb@redhat.com>
260
261 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
262
188dd5d6
DJ
2632003-12-02 Daniel Jacobowitz <drow@mvista.com>
264
265 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
266 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
267 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
268 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
269 Delete.
270 (dwarf2_read_section): Remove offset and size arguments. Use
271 bfd_get_section_size_before_reloc and sectp->filepos.
272 (dwarf2_has_info): Clear section variables instead of offsets.
273 (dwarf2_locate_sections): Don't initialize the deleted variables.
274 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
275 (dwarf2_build_psymtabs_easy): Likewise.
276 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
277 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
278 declarations.
279 (dwarf2_read_section): Update prototype.
280 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
281 Use bfd_get_section_size_before_reloc instead of global size
282 variables.
283
013be872
MC
2842003-12-01 Michael Chastain <mec.gnu@mindspring.com>
285
286 * dwarfread.c: Update documentation on the state of dwarf-1.
287
5994185b
AC
2882003-12-01 Andrew Cagney <cagney@redhat.com>
289
0748d941
AC
290 Obsolete old MIPS SVr3 and SVr4 systems.
291 * NEWS: Mention obsoleted systems.
292 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
293 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
294 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
295 obsolete.
296 * config/mips/decstation.mh: Mark as obsolete.
297 * config/mips/littlemips.mh: Mark as obsolete.
298 * config/mips/nm-mips.h: Mark as obsolete.
299 * config/mips/xm-mips.h: Mark as obsolete.
300 * config/mips/news-mips.mh: Mark as obsolete.
301 * config/mips/nm-news-mips.h: Mark as obsolete.
302 * config/mips/riscos.mh: Mark as obsolete.
303 * config/mips/nm-riscos.h: Mark as obsolete.
304 * config/mips/xm-riscos.h: Mark as obsolete.
305 * config/mips/mipsv4.mt: Mark as obsolete.
306 * config/mips/tm-mipsv4.h: Mark as obsolete.
307 * config/mips/xm-mipsv4.h: Mark as obsolete.
308
5994185b
AC
309 Obsolete old m68k systems.
310 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
311 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
312 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
313 m680[01]0-sun-sunos3* as obsolete.
314 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
315 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
316 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
317 * config/m68k/sun3os4.mh: Mark file obsolete.
318 * config/m68k/xm-sun3os4.h: Mark file obsolete.
319 * config/m68k/sun3os3.mh: Mark file obsolete.
320 * config/m68k/nm-sun3.h: Mark file obsolete.
321 * config/m68k/xm-sun3.h: Mark file obsolete.
322 * config/m68k/sun2os4.mh: Mark file obsolete.
323 * config/m68k/sun2os3.mh: Mark file obsolete.
324 * config/m68k/nm-sun2.h: Mark file obsolete.
325 * config/m68k/xm-sun2.h: Mark file obsolete.
326 * config/m68k/m68kv4.mh: Mark file obsolete.
327 * config/m68k/nm-sysv4.h: Mark file obsolete.
328 * config/m68k/xm-m68kv4.h: Mark file obsolete.
329 * config/m68k/m68klynx.mh: Mark file obsolete.
330 * config/m68k/nm-m68klynx.h: Mark file obsolete.
331 * config/m68k/dpx2.mh: Mark file obsolete.
332 * config/m68k/xm-dpx2.h: Mark file obsolete.
333 * config/m68k/nm-dpx2.h: Mark file obsolete.
334 * config/m68k/delta68.mh: Mark file obsolete.
335 * config/m68k/xm-delta68.h: Mark file obsolete.
336 * config/m68k/nm-delta68.h: Mark file obsolete.
337 * config/m68k/3b1.mh: Mark file obsolete.
338 * config/m68k/xm-3b1.h: Mark file obsolete.
339 * config/m68k/sun3os4.mt: Mark file obsolete.
340 * config/m68k/tm-sun3os4.h: Mark file obsolete.
341 * config/m68k/sun3os3.mt: Mark file obsolete.
342 * config/m68k/tm-sun3.h: Mark file obsolete.
343 * config/m68k/sun2os4.mt: Mark file obsolete.
344 * config/m68k/tm-sun2os4.h: Mark file obsolete.
345 * config/m68k/sun2os3.mt: Mark file obsolete.
346 * config/m68k/tm-sun2.h: Mark file obsolete.
347 * config/m68k/m68kv4.mt: Mark file obsolete.
348 * config/m68k/tm-m68kv4.h: Mark file obsolete.
349 * config/m68k/m68klynx.mt: Mark file obsolete.
350 * config/m68k/tm-m68klynx.h: Mark file obsolete.
351 * config/m68k/dpx2.mt: Mark file obsolete.
352 * config/m68k/tm-dpx2.h: Mark file obsolete.
353 * config/m68k/delta68.mt: Mark file obsolete.
354 * config/m68k/tm-delta68.h: Mark file obsolete.
355 * config/m68k/3b1.mt: Mark file obsolete.
356 * config/m68k/tm-3b1.h: Mark file obsolete.
357
720aa428
MK
3582003-11-29 Mark Kettenis <kettenis@gnu.org>
359
360 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
361 (x86_64_reg_class): Remove enum.
362 (merge_classes, classify_argument, examine_argument): Remove
363 functions.
364 (INT_REGS, SSE_REGS): Remove macros.
365 (x86_64_push_arguments): Remove function.
366 (amd64_push_arguments): New function.
367 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
368 x86_64_push_arguments.
369
35883a3f
MK
3702003-11-28 Mark Kettenis <kettenis@gnu.org>
371
372 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
373 zero. Reorganize code a bit.
374
597684c5
MK
3752003-11-27 Mark Kettenis <kettenis@gnu.org>
376
3e74aeed
MK
377 * dwarf2-frame.c: Fix another comment.
378
efb1c01c
MK
379 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
380 (x86_64_use_struct_convention, x86_64_extract_return_value,
381 x86_64_store_return_value): Remove.
382 (amd64_reg_class): New enum.
383 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
384 amd64_return_value): New functions.
385 (x86_64_init_abi): Don't set extract_return_value,
386 store_return_value and use_struct_convention. Set return_value to
387 amd64_return_value.
388 * i387-tdep.h (i387_return_value): New prototype.
389 * i387-tdep.c (i387_return_value): New function.
390
e4e9607c
MK
391 * dwarf2-frame.c: Fix some comments and whitespace problems.
392
13739f4d
MK
393 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
394 "gdb_assert.h" and "gdb_string.h".
395 (i386nbsd_r_reg_offset): Rename from regmap.
396 (SIZEOF_STRUCT_REG): Remove.
397 (i386nbsd_supply_reg, fetch_core_registers,
398 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
399 Remove.
400 (i386nbsd_aout_supply_regset,
401 i386nbsd_aout_regset_from_core_section): New functions.
402 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
403 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
404 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
405 initialize TDEP->sc_num_regs.
406 (i386nbsdaout_init_abi): New function.
407 (i386nbsdelf_init_abi): Remove initialization of
408 TDEP->num_xmm_regs. Don't set num_regs here.
409 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
410 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
411
597684c5
MK
412 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
413 .note.netbsdcore.procinfo section to recognize NetBSD core files.
414
37e79b6b
MC
4152003-11-26 Michael Chastain <mec.gnu@mindspring.com>
416
417 * cp-abi.c: Update copyright years.
418
24557e30
AC
4192003-11-25 Andrew Cagney <cagney@redhat.com>
420
421 * thread-db.c (enable_thread_event): New function. Ensure that BP
422 is a code address.
423 (enable_thread_event_reporting): Use enable_thread_event.
77f091dd 424
78c63a3b
MS
4252003-11-25 Michael Snyder <msnyder@redhat.com>
426
427 * mips-tdep.c (mips_o64_extract_return_value): Correct for
428 NUM_REGS (see changes 2003-06-21).
429 (mips_eabi_extract_return_value): Ditto.
430
aff6338a
AC
4312003-11-25 Andrew Cagney <cagney@redhat.com>
432
433 * infrun.c: Don't include "exec.h".
434 (handle_inferior_event): Pass current_target, instead of exec_ops,
435 to SOLIB_ADD. Add comments.
436 * Makefile.in (infrun.o): Update dependencies.
437
9e08b29b
DJ
4382003-11-24 Daniel Jacobowitz <drow@mvista.com>
439
440 * NEWS: Mention improved location expression support.
441
603942cc
AC
4422003-11-23 Andrew Cagney <cagney@redhat.com>
443
444 * Makefile.in (infrun.o): Update dependencies.
445 * infrun.c: Include "exec.h".
446 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
447
66c57289
AC
4482003-11-23 Andrew Cagney <cagney@redhat.com>
449
dd3ecc14
AC
450 * frame.c (frame_unwind_signed_register): Delete function.
451 * frame.h (frame_unwind_register_signed): Delete declaration.
452 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
453
eec1a560
AC
454 * arch-utils.h (generic_cannot_extract_struct_value_address):
455 Delete declaration.
456
cb137aa5
AC
457 * defs.h (DEPRECATED_STREQN): Rename STREQN.
458 (DEPRECATED_STREQ): Rename STREQ.
459 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
460 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
461 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
462 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
463 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
464 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
465 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
466 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
467 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 468
cb137aa5 469 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
470 * elfread.c (elf_symtab_read): Delete STREQ from comment.
471
29dfb2ac
AC
4722003-11-22 Andrew Cagney <cagney@redhat.com>
473
213cc0ad
AC
474 * frame.c (deprecated_frame_xmalloc): Delete function.
475 (deprecated_set_frame_extra_info_hack): Delete function.
476 (deprecated_set_frame_saved_regs_hack): Delete function.
477 * frame.h (deprecated_frame_xmalloc): Delete declaration.
478 (deprecated_set_frame_extra_info_hack): Delete declaration.
479 (deprecated_set_frame_saved_regs_hack): Delete declaration.
480 * mcore-tdep.c (analyze_dummy_frame): Instead of
481 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
482 and deprecated_set_frame_extra_info_hack use
483 deprecated_frame_xmalloc_with_cleanup.
484 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
485 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
486 deprecated_set_frame_saved_regs_hack.
487
35bb18ac
AC
488 * mips-tdep.c (mips_frame_chain): Delete call to
489 deprecated_inside_entry_file.
490
38a7ce4b
AC
491 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
492 (deprecated_set_frame_prev_hack): Delete declaration.
493 * frame.c (deprecated_set_frame_next_hack): Delete function.
494 (deprecated_set_frame_prev_hack): Delete function.
495 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
496 "deprecated_set_frame_next_hack" and
497 "deprecated_set_frame_prev_hack".
498 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
499
47ebcfbe
AC
500 * mips-tdep.c (mips_register_convertible): Delete function.
501 (mips_register_convert_to_virtual): Delete function.
502 (mips_register_convert_to_raw): Delete function.
503 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
504 "deprecated_register_convert_to_virtual", or
505 "deprecated_register_convert_to_raw".
506 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
507 32/64 cooked to raw register conversions.
508
2a9264f1 509 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 510 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
511 (struct frame_info): Delete member "context".
512 * frame.h (deprecated_get_frame_context): Delete declaration.
513 (deprecated_set_frame_context): Delete declaration.
514
7af6341f
AC
515 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
516 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
517 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
518 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
519
10a08821
AC
520 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
521 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
522 mips_regsize.
523 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
524 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
525 * config/mips/tm-irix5.h: Update copyright.
526 (SIGFRAME_REG_SIZE): Delete macro.
527
00d33403
AC
528 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
529 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
530 declaration.
531 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
532 * infcall.c (call_function_by_hand): Delete #ifdef
533 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
534 * infcmd.c (print_return_value): Ditto.
535
74da7425
AC
536 * mips-tdep.c (skip_prologue_using_sal): New function.
537 (mips32_skip_prologue, mips16_skip_prologue): Use
538 skip_prologue_using_sal to get an upper bound on the search.
539
369864a4
AC
540 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
541 #if 0'ed macro.
542 * infrun.c (step_into_function): Delete #ifdef
543 PROLOGUE_FIRSTLINE_OVERLAP code.
544 * symtab.c (find_function_start_sal): Ditto.
545
a5a12285
AC
546 * remote-rdp.c: Update copyright.
547 (rdp_init): #if 0 references to "target_byte_order".
548
29dfb2ac
AC
549 * mips-tdep.c (mips_o32_store_return_value): Delete function.
550 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
551 (mips_o32_extract_return_value): Delete function.
552 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
553 (mips_n32n64_extract_return_value): Delete function.
554 (mips_n32n64_store_return_value): Delete function.
555 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
556 instead of "store_return_value", "extract_return_value", and
557 "use_struct_convention".
558 (mips_n32n64_use_struct_convention): Delete function.
559
3a3da38c
KB
5602003-11-21 Kevin Buettner <kevinb@redhat.com>
561
562 * frv-tdep.c (frv_frame_this_id): Eliminate call to
563 inside_entry_func().
564
c5e656c1
MK
5652003-11-20 Mark Kettenis <kettenis@gnu.org>
566
567 * i386-tdep.c (i386_extract_return_value,
568 i386_store_return_value): Add gdbarch argument. Use it instead of
569 determining it from REGCACHE. Remove recursive call for
570 structures with a single member.
571 (i386_use_struct_convention): Remove.
572 (i386_reg_struct_return_p): New function.
573 (i386_return_value): New function.
574 (i386_gdbarch_init): Set return_value, don't set
575 extract_return_value, store_return_value and
576 use_struct_convention.
577 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
578
515cc92e
JB
5792003-11-20 Jim Blandy <jimb@redhat.com>
580
581 * osabi.c (_initialize_gdb_osabi): Don't return before registering
582 the 'set osabi' and 'show osabi' commands.
583
3f1d7f16
MK
5842003-11-19 Mark Kettenis <kettenis@gnu.org>
585
586 * frame.c (get_prev_frame): Use result from
587 get_frame_address_in_block instead of get_frame_pc as argument to
588 inside_main_func. Fixes PR backtrace/1435.
589
667e784f
AC
5902003-11-19 Andrew Cagney <cagney@redhat.com>
591
592 * stack.c (return_command): Handle "void", "legacy" and "unknown
593 location" return values separatly.
594 * values.c (using_struct_return): Return 0 for a "void" return
595 type. Mention "register_value_being_returned".
596 (register_value_being_returned): Mention "using_struct_return".
597
4cecd739
DJ
5982003-11-19 Daniel Jacobowitz <drow@mvista.com>
599
600 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
601 (frame_base_offset): Delete.
602 (read_func_scope): Delete call to decode_locdesc.
603 (decode_locdesc): Update comments. Don't set the removed variables.
604 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
605 DW_OP_fbreg support.
606
6b992462
DJ
6072003-11-18 Daniel Jacobowitz <drow@mvista.com>
608
609 * dwarf2read.c (optimized_out, islocal): Remove.
610 (decode_locdesc): Update comments. Don't set optimized_out
611 or islocal.
612
968d1cb4
JJ
6132003-11-17 Jeff Johnston <jjohnstn@redhat.com>
614 David Mosberger <davidm@hpl.hp.com>
615
616 * ia64-tdep.c: Include elf.h.
77f091dd 617 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
968d1cb4
JJ
618 libunwind-ia64.h.
619 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
620 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
621 (ia64_is_fpreg, ia64_access_reg): Ditto.
622 (ia64_access_fpreg, ia64_access_mem): Ditto.
623 (get_kernel_table): Ditto.
624 (ia64_find_unwind_table): Ditto.
625 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
626 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
627 (ia64_libunwind_frame_prev_register): Ditto.
628 (ia64_libunwind_frame_sniffer): Ditto.
629 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
77f091dd
RM
630 sniffer. Register libunwind functions needed by generic
631 libunwind frame code using libunwind_frame_set_descr().
968d1cb4 632
d29caefc
DJ
6332003-11-16 Daniel Jacobowitz <drow@mvista.com>
634
635 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
636 bp_shlib_disabled breakpoint if there is a shared library mapped
637 at its expected address.
638
691c0433
AC
6392003-11-16 Andrew Cagney <cagney@redhat.com>
640
96cb1c2f
AC
641 * configure.tgt: Delete mips*tx39*-elf*.
642 * config/mips/tm-tx39.h: Delete file.
643 * config/mips/tx39.mt: Delete file.
644 * config/mips/tx39.mt: Delete file.
645
691c0433
AC
646 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
647 * remote-mips.c (common_open): Instead of
648 "mips_read_register_type" and "mips_set_processor_type_command"
649 call "deprecated_mips_set_processor_regs_hack".
650 * config/mips/tm-mips.h (mips_read_processor_type): Delete
651 declaration.
652 (mips_set_processor_type_command): Delete declaration.
653 * mips-tdep.c (mips_gdbarch_init): Update comment.
654 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
655 (mips_set_processor_type): Delete function.
656 (NUM_MIPS_PROCESSOR_REGS): Define.
657 (mips_show_processor_type_command): Delete function.
658 (mips_set_processor_type_command): Delete function.
659 (tmp_mips_processor_type): Delete.
660 (mips_processor_type): Delete.
661 (mips_processor_type_table): Delete.
662 (mips_r3051_reg_names): Delete.
663 (mips_r3081_reg_names): Delete.
664 (mips_lsi33k_reg_names): Delete.
665 (mips_processor_reg_names): Delete.
666 (mips_read_processor_type): Delete function.
667 (deprecated_mips_set_processor_regs_hack): New function.
668 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
669 (mips_register_name): Get the processor names from the tdep.
670 (mips_tx39_reg_names): New array.
671 (mips_generic_reg_names): Wire to a standard set of names.
77f091dd 672 (mips_gdbarch_init): Set "mips_processor_reg_names".
691c0433
AC
673 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
674 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
675 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
676
56cea623
AC
6772003-11-16 Andrew Cagney <cagney@redhat.com>
678
679 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
680 (mips_fpa0_regnum, mips_regnum): New function.
681 (mips_gdbarch_init): Fill in the "regnum" fields.
682 * mips-tdep.h (struct mips_regnum): Define.
683 (mips_regnum): Declare.
684 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
685 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
686 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
687 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
688 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
689 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
690 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
691 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
692 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
693 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
694 * remote-mips.c: Include "mips-tdep.h". Update.
695 * mipsnbsd-tdep.c: Update.
696 * mipsv4-nat.c: Update.
697 * mips-tdep.c: Update.
698 * mips-nat.c: Update.
699 * mips-linux-tdep.c: Update.
700 * mips-linux-nat.c: Update.
701 * irix5-nat.c: Update.
702 * dve3900-rom.c: Include "mips-tdep.h". Update.
703 (ignore_packet): Supress GCC warning.
704 * config/mips/nm-riscos.h: Update.
705
719ec221
AC
7062003-11-16 Andrew Cagney <cagney@redhat.com>
707
708 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
709 register_size.
710 (mips_register_raw_size): Delete function.
711 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
712 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
713 Check and set "mips64_transfers_32bit_regs_p".
714 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
715 (mips_register_convertible): Check the architecture's
716 "mips64_transfers_32bit_regs_p".
717 (set_mips64_transfers_32bit_regs): New function.
718 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
719 "set remote-mips64-transfers-32bit-regs" command. Specify
720 set_mips64_transfers_32bit_regs as the set function.
56cea623 721 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 722
20187ed5
MK
7232003-11-16 Mark Kettenis <kettenis@gnu.org>
724
725 * i386-tdep.h (i386_supply_gregset): Provide prototype.
726 * i386-tdep.c (i386_supply_gregset): Make public.
727
6771c427
AC
7282003-11-16 Andrew Cagney <cagney@redhat.com>
729
730 * mips-tdep.c (mips_register_byte): Delete function.
731 (mips_gdbarch_init): Do not set "deprecated_register_byte".
732 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
733 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
734 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
735
c8048956
MK
7362003-11-16 Mark Kettenis <kettenis@gnu.org>
737
738 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
739
cc8a868a
AC
7402003-11-16 Andrew Cagney <cagney@redhat.com>
741
742 * config/mips/linux64.mt: Delete file.
743 * config/mips/tm-linux64.h: Delete file.
744 * config/mips/tm-mips64.h: Delete file.
745 * config/mips/embed64.mt: Delete file.
746 * config/djgpp/fnchange.lst: Update.
747 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
748 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
749 * config/mips/tm-irix6.h: Update copyright. Include
750 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
751 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
752 "OP_LDGPR".
753
5ef80fb0
AC
7542003-11-15 Andrew Cagney <cagney@redhat.com>
755
756 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
757 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
758 n32 registers 64 bit.
759 (mips_register_raw_size, mips_register_byte): For pseudo
760 registers, use the register's pseudo size and not the
761 corresponding raw register's size.
762 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
763 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
764 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
765 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
766
4246e332
AC
7672003-11-15 Andrew Cagney <cagney@redhat.com>
768
8fa9cfa1
AC
769 * mips-tdep.c (struct gdbarch_tdep): Delete member
770 gdb_target_is_mips64.
771 (GDB_TARGET_IS_MIPS64): Delete macro.
772 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
773 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
774 (mips_addr_bits_remove): Simplify.
775
c73e8f27
AC
776 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
777 register_size.
778
4246e332
AC
779 Replace MIPS_REGSIZE with mips_regsize.
780 * mips-tdep.c (mips_regsize): New function.
781 * mips-tdep.h (mips_regsize): Declare.
782 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
783 (SIZEOF_STRUCT_REG): Update.
784 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
785 (mipsnbsd_fill_reg): Update.
786 (mipsnbsd_supply_fpreg): Update.
787 (mipsnbsd_fill_fpreg): Update.
788 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
789 * mips-tdep.c (mips_register_raw_size): Update.
790 (mips_register_type): Update.
791 (SIGFRAME_BASE): Update.
792 (SIGFRAME_PC_OFF): Update.
793 (SIGFRAME_REGSAVE_OFF): Update.
794 (SIGFRAME_FPREGSAVE_OFF): Update.
795 (SIGFRAME_REG_SIZE): Update.
796 (mips32_heuristic_proc_desc): Update.
797 (print_gp_register_row): Update.
798 (mips_dump_tdep): Do not print MIPS_REGSIZE.
799 * irix5-nat.c (supply_gregset): Update.
800 (fetch_core_registers): Update.
801 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
802 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
803 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
804 (MIPS_REGISTER_BYTE): Update.
805 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
806
5e044b1e
AC
8072003-11-15 Andrew Cagney <cagney@redhat.com>
808
809 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
810 USE_REGISTER_NOT_ARG.
811 * stabsread.c (define_symbol): Update.
812
3a16a68c
AC
8132003-11-15 Andrew Cagney <cagney@redhat.com>
814
815 * bcache.h (deprecated_bcache): Declare.
816 (bcache): Make returned buffer constant.
817 * bcache.c (deprecated_bcache): New function.
818 (bcache_data): New function.
819 (bcache): Call bcache data.
820 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
821 (add_psymbol_with_dem_name_to_list): Ditto.
822
bb41a796
MK
8232003-11-15 Mark Kettenis <kettenis@gnu.org>
824
825 * glibc-tdep.h (struct gdbarch): Declare opaque.
826 (glibc_skip_solib_resolver): Adjust prototype.
827 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
828 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
829 (arm_linux_init_abi): Set skip_solib_resolver.
830 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
831 (i386_linux_init_abi): Set skip_solib_resolver.
832 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
833 (arm_linux_skip_solib_resolver): Remove prototype.
834 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
835 (i386_linux_skip_solib_resolver): Remove prototype.
836
4c8c40e6
MK
8372003-11-14 Mark Kettenis <kettenis@gnu.org>
838
839 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
840 function.
841 * gdbarch.c, gdbarch.h: Regenerate.
842 * infrun.c (handle_inferior_event): Call
843 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
844 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
845 definition.
846 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
847 prototype.
848
0e5d83e3
JJ
8492003-11-14 Jeff Johnston <jjohnstn@redhat.com>
850
851 * libunwind-frame.c: New file.
852 * libunwind-frame.h: New file.
853 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
854 * configure.in: Add --with-libunwind option support. Define
77f091dd 855 HAVE_LIBUNWIND if libunwind support selected / defaulted.
0e5d83e3
JJ
856 Also check for libunwind.h and libunwind-ia64.h headers.
857 * configure: Regenerated.
858 * Makefile.in: Add support for libunwind-frame.o.
859 * config.in: Regenerated.
860
287a334e 8612003-11-14 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 862
287a334e
JJ
863 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
864 set up the ia64 linux native target method for getting the kernel
865 unwind table.
866 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
867 * inftarg.c (child_xfer_partial): Enable section of code to
868 handle TARGET_OBJECT_UNWIND_TABLE.
869 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
870
140be7b8
ILT
8712003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
872
873 * config/arm/nbsd.mt (TM_FILE): Define.
874 * config/arm/tm-nbsd.h: New file.
875
0a90bcdd
AC
8762003-11-14 Andrew Cagney <cagney@redhat.com>
877
878 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
879 * ppc-sysv-tdep.c: Include "objfiles.h".
880 (ppc64_sysv_abi_push_dummy_call): Provide the
881 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
882
883 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
884 "name_of_malloc" to ".malloc".
885
087f1027
MK
8862003-11-13 Mark Kettenis <kettenis@gnu.org>
887
888 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
889
3882f37a
DC
8902003-11-13 David Carlton <carlton@kealia.com>
891
892 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
893
a8cf2722
AC
8942003-11-13 Andrew Cagney <cagney@redhat.com>
895
896 * arch-utils.h (selected_architecture_name): Declare.
897 (selected_byte_order): Declare.
898 * arch-utils.c (selected_byte_order): New function.
899 (selected_architecture_name): New function.
900 (target_architecture_auto): Make static.
901 (set_architecture_string): Make static.
902 (target_byte_order): Make static.
903 (target_byte_order_auto): Make static.
904 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
905 non-multi-arch definition.
906 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
907 (target_byte_order, target_architecture): Delete declaration.
908 (target_byte_order_auto, target_architecture_auto): Ditto.
909 * gdbarch.h: Re-generate.
910 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
911 "selected_byte_order".
77f091dd 912
475b6ddd
AC
9132003-11-13 Andrew Cagney <cagney@redhat.com>
914
915 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
916
a22286a9
JB
9172003-11-13 Jim Blandy <jimb@redhat.com>
918
919 * cp-namespace.c: Doc fix.
920
7bb11558
MS
9212003-11-12 Michael Snyder <msnyder@redhat.com>
922
39add00a
MS
923 * sh64_tdep.c: Regularize some names.
924 (sh_sh64_register_name): Rename to sh64_register_name.
925 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
926 (sh_sh64_register_byte): Rename to sh64_register_byte.
77f091dd 927 (sh_sh64_build_float_register_type):
39add00a 928 Rename to sh64_build_float_register_type.
77f091dd 929 (sh_sh64_register_convert_to_virtual):
39add00a 930 Rename to sh64_register_convert_to_virtual.
77f091dd 931 (sh_sh64_register_convert_to_raw):
39add00a
MS
932 Rename to sh64_register_convert_to_raw.
933
77f091dd
RM
934 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
935 sh64_media_reg_base_num, sh64_compact_reg_base_num,
2a314ed5 936 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd
RM
937 sh64_extract_return_value, sh64_show_media_regs,
938 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
2a314ed5 939 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
77f091dd 940 sh64_pseudo_register_read, sh64_pseudo_register_write,
2a314ed5
MS
941 sh64_do_pseudo_register, sh_compact_print_registers_info):
942 Delete unused variable 'tdep'.
943
7bb11558
MS
944 * sh64-tdep.c: Coding standard and spelling comment fixes.
945 (sh64_extract_return_value): Replace deprecated_store_floating
946 with store_typed_floating.
77f091dd 947 (sh_sh64_register_convert_to_raw): Replace
7bb11558
MS
948 deprecated_store_floating with store_typed_floating.
949 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
950 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
951 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd 952 sh64_extract_struct_value_address, sh64_pop_frame,
7bb11558 953 sh64_extract_return_value, sh64_store_return_value,
77f091dd 954 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
7bb11558
MS
955 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
956 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
957 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
958 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
959 deprecated_register_virtual_type, deprecated_register_raw_size,
77f091dd 960 deprecated_max_register_raw_size, or
7bb11558
MS
961 deprecated_max_register_virtual_size. Instead, just set
962 gdbarch_register_type.
39add00a
MS
963 (sh_sh64_register_raw_size): Delete.
964 (sh_sh64_register_virtual_size): Delete.
7bb11558 965
e7c27a73
DJ
9662003-11-12 Daniel Jacobowitz <drow@mvista.com>
967
968 * dwarf2read.c (struct dwarf2_cu): New type.
969
970 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
971 dwarf2_cu structure to pass down.
972
973 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
974 (add_partial_enumeration, locate_pdi_sibling, process_die)
975 (read_file_scope, read_func_scope)
976 (read_lexical_block_scope, dwarf2_get_pc_bounds)
977 (dwarf2_add_field, dwarf2_attach_fields_to_type)
978 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
979 (read_structure_scope, read_enumeration, read_array_type)
980 (read_common_block, read_namespace, read_tag_pointer_type)
981 (read_tag_ptr_to_member_type, read_tag_reference_type)
982 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
983 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
984 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
985 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
986 (read_full_die. read_attribute_value, read_attribute)
987 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
988 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
989 (die_containing_type, type_at_offset, tag_type_to_type)
990 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
991 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
992
1640b821
DJ
9932003-11-12 Daniel Jacobowitz <drow@mvista.com>
994
995 PR breakpoints/1450
996 * breakpoint.c (insert_bp_location): Fix a logic error by returning
997 0 after a catchpoint fails.
998
d7891507
MC
9992003-11-11 Michael Chastain <mec.gnu@mindspring.com>
1000
1001 * mips-tdep.c (msymbol_size): Delete.
1002
f594e5e9
MC
10032003-11-07 Michael Chastain <mec@shout.net>
1004
1005 * symtab.h (struct minimal_symbol): Add size.
1006 * dbxread.c: Use it.
1007 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
1008 Rename to record_minimal_symbol.
1009 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
1010 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
1011 (install_minimal_symbols): Ditto.
1012 * objfiles.c (terminate_minimal_symbol_table): Ditto.
1013 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
1014 * m68hc11-tdep.c: Ditto.
1015 * mips-tdep.c: Ditto.
1016 * sh64-tdep.c: Ditto.
1017
68e39e73
MC
10182003-11-10 Michael Chastain <mec.gnu@mindspring.com>
1019
1020 * MAINTAINERS: Change my e-mail address.
1021
b60eb90d
AC
10222003-11-10 Andrew Cagney <cagney@redhat.com>
1023
963e2bb7
AC
1024 * gdbarch.sh (return_value): Replace "inval" and "outval" with
1025 "readbuf" and "writebuf".
1026 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1027 * d10v-tdep.c (d10v_return_value): Ditto.
1028 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1029 (ppc_sysv_abi_broken_return_value): Ditto.
1030 (ppc64_sysv_abi_return_value): Ditto.
1031 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
1032 (ppc_sysv_abi_return_value): Ditto.
1033 (ppc_sysv_abi_broken_return_value): Ditto.
1034 (ppc64_sysv_abi_return_value): Ditto.
1035 * values.c (register_value_being_returned): Update call.
1036 * stack.c (return_command): Update call.
1037 * gdbarch.h, gdbarch.c: Re-generate.
1038
8aa91c1e
AC
1039 * target.h (struct target_ops): Order xfer buffer parameters "read
1040 write" not "write read".
1041 * bfd-target.c (target_bfd_xfer_partial): Update.
1042 * remote.c (remote_xfer_partial): Update.
1043 * inftarg.c (child_xfer_partial): Update.
1044 * target.c (default_xfer_partial): Update.
1045 (target_read_partial, target_write_partial): Update.
1046 (debug_to_xfer_partial): Update.
1047
100bcc3f
AC
1048 * arch-utils.h, arch-utils.c: Fix typo in comment.
1049
b60eb90d
AC
1050 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
1051 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
1052 (set_gdbarch_from_file): Call
1053 "deprecated_current_gdbarch_select_hack".
b60eb90d 1054
bf922ad9
AC
10552003-11-09 Andrew Cagney <cagney@redhat.com>
1056
ebdba546
AC
1057 * arch-utils.c (gdbarch_update_p): New function.
1058 * gdbarch.sh (gdbarch_update_p): Delete function.
1059 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 1060 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
1061 * gdbarch.c: Re-generate.
1062
7de2341d
AC
1063 * gdbarch.sh (clear_gdbarch_swap): Delete function.
1064 (swapout_gdbarch_swap): Delete function.
1065 (swapin_gdbarch_swap): Delete function.
1066 (init_gdbarch_swap): Delete function.
1067 (initialize_non_multiarch): Delete function.
1068 (current_gdbarch_swap_in_hack): New function.
1069 (current_gdbarch_swap_out_hack): New function.
1070 (current_gdbarch_swap_init_hack): New function.
1071 * gdbarch.c: Re-generate.
1072
db446970
AC
1073 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
1074 parameter to "current_gdbarch". Add comment explaining why.
1075 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
1076 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
1077 * gdbarch.c: Re-generate.
77f091dd 1078
341e3d11
AC
1079 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
1080 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
1081 * config/s390/xm-linux.h: Delete file.
1082 * config/m88k/xm-delta88v4.h: Delete stray.
1083
bf922ad9
AC
1084 * Makefile.in (arch-utils.o): Update dependencies.
1085 * arch-utils.c: Include "osabi.h".
1086 (gdbarch_info_fill): New function.
1087 * arch-utils.h (gdbarch_info_fill): Declare.
1088 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
1089 * gdbarch.c: Re-generate.
1090
a3640c75
MK
10912003-11-09 Mark Kettenis <kettenis@gnu.org>
1092 David S. Miller <davem@redhat.com>
1093
1094 * glibc-tdep.c, glibc-tdep.h: New files.
1095 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
1096 * config/i386/linux.mt (TDEPFILES): Likewise.
1097 * i386-linux-tdep.c (glibc-tdep.h): Include.
1098 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1099 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1100 * arm-linux-tdep.c (glibc-tdep.h): Include.
1101 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1102 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1103 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
1104 (glibc_tdep_h): Define.
1105 (glibc-tdep.o): Add dependencies.
1106 (arm-linux-tdep.o): Update dependencies.
1107 (i386-linux-tdep.o): Likewise.
1108
e60e0ab2
AC
11092003-11-09 Andrew Cagney <cagney@redhat.com>
1110
1111 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1112 * config/mips/nm-irix6.h: Delete file.
1113 * config/mips/nm-linux.h: Update copyright.
1114 (MIPS_GNULINUX_TARGET): Delete macro.
1115 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1116 * config/mips/xm-irix6.h: Delete file.
1117 * config/mips/linux.mh (XM_FILE): Delete definition.
1118 * config/mips/xm-linux.h: Delete file.
1119
181555e9
AC
11202003-11-09 Andrew Cagney <cagney@redhat.com>
1121
1122 * d10v-tdep.c (d10v_return_value): New function.
1123 (d10v_use_struct_convention): Delete function.
1124 (d10v_store_return_value): Delete function.
1125 (d10v_extract_struct_value_address): Delete function.
1126 (d10v_gdbarch_init): Set "return_value" instead of
1127 "extract_return_value", "store_return_value",
1128 "extract_struct_value_address", and "use_struct_convention".
1129 (RET1_REGNUM): Delete const.
1130
dea0c52f
MK
11312003-11-09 Mark Kettenis <kettenis@gnu.org>
1132
1133 From David S. Miller <davem@redhat.com>:
1134 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1135 * gdbarch.c, gdbarch.h: Regenerated.
1136 * arch-utils.c (generic_skip_solib_resolver): New function.
1137 * arch-utils.h (generic_skip_solib_resolver): New prototype.
1138 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1139
6314a349
AC
11402003-11-07 Andrew Cagney <cagney@redhat.com>
1141
1142 * top.c (print_gdb_version): Replace STREQ with strcmp.
1143 * valops.c (value_struct_elt_for_reference): Ditto.
1144 (value_struct_elt_for_reference): Ditto.
1145 * symtab.c (gdb_mangle_name): Ditto.
1146 (find_line_symtab): Ditto.
1147 * symmisc.c (maintenance_print_symbols): Ditto.
1148 * symfile.c (symbol_file_command): Ditto.
1149 * stabsread.c (define_symbol, read_type): Ditto.
1150 (cleanup_undefined_types, scan_file_globals): Ditto.
1151 * solib.c (solib_map_sections): Ditto.
1152 * solib-svr4.c (bfd_lookup_symbol): Ditto.
1153 * rs6000-tdep.c (skip_prologue): Ditto.
1154 * p-valprint.c (pascal_value_print): Ditto.
1155 (pascal_object_is_vtbl_ptr_type): Ditto.
1156 * objfiles.c (in_plt_section): Ditto.
1157 * minsyms.c (lookup_minimal_symbol): Ditto.
1158 (compact_minimal_symbols): Ditto.
1159 (find_solib_trampoline_target): Ditto.
1160 * mdebugread.c (parse_type): Ditto.
1161 * language.c (set_language_command): Ditto.
1162 (set_type_command, set_range_command): Ditto.
1163 * f-lang.c (add_common_block): Ditto.
1164 (add_common_block): Ditto.
1165 (find_first_common_named): Ditto.
1166 (patch_all_commons_by_name): Ditto.
1167 * elfread.c (elf_locate_sections): Ditto.
1168 (elf_locate_sections): Ditto.
1169 (elfstab_offset_sections): Ditto.
1170 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1171 * dbxread.c (add_old_header_file): Ditto.
1172 (find_corresponding_bincl_psymtab): Ditto.
1173 (read_dbx_symtab, process_one_symbol): Ditto.
1174 * coffread.c (patch_opaque_types): Ditto.
1175 * cli/cli-decode.c (delete_cmd): Ditto.
1176 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1177 * c-typeprint.c (c_type_print_base): Ditto.
1178 * breakpoint.c (bpstat_stop_status): Ditto.
1179 (clear_command, breakpoint_re_set_one): Ditto.
1180
49df298f
AC
11812003-11-07 Andrew Cagney <cagney@redhat.com>
1182
1183 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1184 * bcache.c (struct bstring): Make "length" an unsigned short, add
1185 "half_hash".
1186 (struct bcache): Add "half_hash_error_count".
1187 (bcache): Compute and save the "half_hash". Compare the
1188 "half_hash" before comparing the length. Update
1189 half_hash_error_count.
1190
f168dd80
AC
11912003-11-07 Andrew Cagney <cagney@redhat.com>
1192
1193 * inftarg.c (child_xfer_partial): New function
1194 (init_child_ops): Set "to_xfer_partial".
1195
05580c65
AC
11962003-11-07 Andrew Cagney <cagney@redhat.com>
1197
1198 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1199 set "return_value" instead of "use_struct_convention".
1200 (ppc_linux_use_struct_convention): Delete function.
1201 (ppc_linux_return_value): New function.
1202 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1203 (ppc_sysv_abi_broken_return_value): New function.
1204 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1205 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1206 static.
1207 (ppc_sysv_abi_extract_return_value): Delete function.
1208 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1209 (ppc_sysv_abi_store_return_value): Delete function.
1210 (ppc_sysv_abi_broken_store_return_value): Delete function.
1211 (ppc_sysv_abi_use_struct_convention): Delete function.
1212 (ppc64_sysv_abi_use_struct_convention): Delete function.
1213 (ppc64_sysv_abi_extract_return_value): Delete function.
1214 (ppc64_sysv_abi_store_return_value): Delete function.
1215 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1216 (ppcnbsd_init_abi): Set "return_value", instead of
1217 "use_struct_convention", "extract_return_value", and
1218 "store_return_value".
1219 (ppcnbsd_use_struct_convention): Delete function.
1220 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1221 (ppc_sysv_abi_return_value): Declare.
1222 (ppc_sysv_abi_broken_return_value): Declare.
1223 (ppc_sysv_abi_use_struct_convention): Delete.
1224 (ppc_sysv_abi_store_return_value): Delete.
1225 (ppc_sysv_abi_extract_return_value): Delete.
1226 (ppc_sysv_abi_broken_store_return_value): Delete.
1227 (ppc_sysv_abi_broken_extract_return_value): Delete.
1228 (ppc64_sysv_abi_use_struct_convention): Delete.
1229 (ppc64_sysv_abi_extract_return_value): Delete.
1230 (ppc64_sysv_abi_store_return_value): Delete.
1231 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1232 set "return_value" instead of "extract_return_value",
1233 "store_return_value", and "use_struct_convention".
1234
1763fba4
MK
12352003-11-07 Mark Kettenis <kettenis@gnu.org>
1236
22c7ba1a
MK
1237 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1238
1763fba4
MK
1239 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1240 fscanf.
1241
fc07cc2d
MK
12422003-11-07 Mark Kettenis <kettenis@gnu.org>
1243
1244 * fbsd-proc.c: Fix formatting.
1245
6a748db6
KB
12462003-11-06 Kevin Buettner <kevinb@redhat.com>
1247
1248 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1249 Define.
1250 (new_variant): Set name for iacc0_regnum.
1251 (frv_register_name): Accommodate pseudo-registers.
1252 (frv_register_type): Add case for iacc0_regnum.
1253 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1254 (frv_gdbarch_init): Set number of pseudo registers. Establish
1255 pseudo-register read/write methods.
1256
bf896cb0
AC
12572003-11-06 Andrew Cagney <cagney@redhat.com>
1258
1259 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1260 * top.c (command_line_input): Ditto.
1261 * objc-exp.y (yylex): Ditto.
1262 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1263 * jv-exp.y (yylex): Ditto.
1264 * f-exp.y (yylex): Ditto.
1265 * event-top.c (command_line_handler): Ditto.
1266 * environ.c (get_in_environ): Ditto.
1267 (set_in_environ): Ditto.
1268 * dwarfread.c (handle_producer): Ditto.
1269 * dbxread.c (process_one_symbol): Ditto.
1270 * c-typeprint.c (c_type_print_base): Ditto.
1271 * c-exp.y (yylex): Ditto.
1272
0b603eba
AC
12732003-11-06 Andrew Cagney <cagney@redhat.com>
1274 Jeff Johnston <jjohnstn@redhat.com>
1275
1276 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1277 (init_dummy_target): Set "to_xfer_partial".
1278
9cedbfec
AC
12792003-11-06 Andrew Cagney <cagney@redhat.com>
1280
1281 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1282 REGISTER_CONVENTION.
1283
26bb91f3
DJ
12842003-11-06 Daniel Jacobowitz <drow@mvista.com>
1285
1286 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1287 static.
1288
0bde7532
DJ
12892003-11-06 Daniel Jacobowitz <drow@mvista.com>
1290
1291 * breakpoint.c (remove_breakpoint): Take an bp_location
1292 instead of a breakpoint argument. Check the bp_location's type.
1293 Fix a reversed condition for hardware breakpoints.
1294
1295 (insert_bp_location): Update call to remove_breakpoint.
1296 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1297 (remove_hw_watchpoints): Likewise.
1298 (reattach_breakpoints): Likewise.
1299 (detach_breakpoints): Likewise.
1300 (delete_breakpoint): Likewise.
1301
075f6582
DJ
13022003-11-06 Daniel Jacobowitz <drow@mvista.com>
1303
1304 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1305 (beakpoint_init_inferior): Likewise.
1306 (breakpoint_here_p): Likewise. Only check addresses for software
1307 or hardware breakpoints.
1308 (breakpoint_inserted_here_p): Likewise.
1309 (breakpoint_thread_match): Likewise. Correct comment.
1310 (bpstat_have_active_hw_watchpoints): Likewise.
1311 (check_duplicates): Likewise.
1312
879bfdc2
DJ
13132003-11-06 Daniel Jacobowitz <drow@mvista.com>
1314
1315 * breakpoints.c (insert_bp_location): New function, broken out
1316 from insert_breakpoints. Work on an bp_location instead of a
1317 breakpoint.
1318 (insert_breakpoints): Use it.
1319
cf3a9e5b
DJ
13202003-11-06 Daniel Jacobowitz <drow@mvista.com>
1321
1322 * breakpoint.h (struct bp_location): Add section.
1323 (struct breakpoint): Remove section.
1324 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1325 (breakpoint_here_p, breakpoint_inserted_here_p)
1326 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1327 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1328 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1329 section through loc.
1330
ffce0d52
DJ
13312003-11-06 Daniel Jacobowitz <drow@mvista.com>
1332
1333 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1334 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1335
e049a4b5
DJ
13362003-11-06 Daniel Jacobowitz <drow@mvista.com>
1337
1338 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1339 arguments. Initialize owner and type for the new breakpoint
1340 location item.
1341 (set_raw_breakpoint): Update call to allocate_bp_location.
1342
7cc221ef
DJ
13432003-11-06 Daniel Jacobowitz <drow@mvista.com>
1344
1345 * breakpoint.h (struct bp_location): Add a chain pointer.
1346 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1347 macros.
1348 (bp_location_chain): New variable.
1349 (allocate_bp_location): New function.
1350 (set_raw_breakpoint): Use it.
1351 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1352
5cab636d
DJ
13532003-11-06 Daniel Jacobowitz <drow@mvista.com>
1354
1355 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1356 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1357 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1358 * breakpoint.c (condition_command, read_memory_nobpt)
1359 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1360 (reattach_breakpoints, update_breakpoints_after_exec)
1361 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1362 (breakpoint_init_inferior, breakpoint_here_p)
1363 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1364 (breakpoint_thread_match, bpstat_stop_status)
1365 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1366 (describe_other_breakpoints, check_duplicates)
1367 (make_breakpoint_permanent, create_thread_event_breakpoint)
1368 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1369 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1370 (watch_command_1, print_one_exception_catchpoint)
1371 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1372 use the breakpoint's ->loc.
1373 (set_raw_breakpoint): Likewise. Initialize ->loc.
1374 (delete_breakpoint): Likewise. Free ->loc.
1375
7be0c536
AC
13762003-11-05 Andrew Cagney <cagney@redhat.com>
1377
4c7d882e
AC
1378 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1379 macro.
1380 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1381 * config/i386/tm-cygwin.h
1382 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1383 * config/powerpc/tm-linux.h
1384 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1385 (at_subroutine_call_instruction_target): Delete declaration.
1386 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1387 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1388 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1389
7be0c536
AC
1390 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1391 "struct bfd_section" and "struct bfd".
1392 * target.h (struct section_table): Ditto.
1393 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1394 * solib-svr4.c (elf_locate_base): Ditto.
1395 * pa64solib.c (dld_cache_t): Ditto.
1396 * objfiles.h (struct obj_section): Ditto.
1397 * objfiles.c (add_to_objfile_sections): Ditto.
1398 * exec.c (bfdsec_to_vmap): Ditto.
1399 (add_to_section_table): Ditto.
1400 (build_section_table): Ditto.
1401 * corelow.c (get_core_register_section): Ditto.
1402 * coffread.c (find_linenos): Ditto.
1403 * elfread.c (elf_interpreter): Delete #if0'd function.
1404
1405 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1406 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1407 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1408 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1409
1410 * arch-utils.h (generic_cannot_extract_struct_value_address):
1411 Delete declaration.
1412 * wince.c (_initialize_wince): Fix multi-line string.
1413 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1414
d8fe84e3
EZ
14152003-11-05 Elena Zannoni <ezannoni@redhat.com>
1416
1417 * top.c (execute_command): Fix broken logic for command execution
1418 while inferior is running in async mode.
1419
cbdfc7c0
MK
14202003-11-06 Mark Kettenis <kettenis@gnu.org>
1421
1422 * dwarf2-frame.c (execute_cfa_program): Mark register as
1423 REG_SAVED_REG for DW_CFA_register opcode.
1424
dac94105
MK
14252003-11-05 Mark Kettenis <kettenis@gnu.org>
1426
1427 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1428 %rsp, %rip and %eflags to match ABI-change.
1429
85bf2b91
JJ
14302003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1431
1432 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
77f091dd
RM
1433 (ia64_gdbarch_init): Don't bother calculating the os.
1434 Instead use the gdbarch_info struct and look at the osabi field.
1435 Also use gdbarch_list_lookup_by_info() to look for a
1436 candidate gdbarch.
85bf2b91 1437
cd31fb03
KB
14382003-11-05 Kevin Buettner <kevinb@redhat.com>
1439
1440 * frv-tdep.c (frv_register_byte): Delete.
1441 (frv_extract_return_value, frv_store_return_value)
1442 (frv_extract_struct_value_address): Don't call frv_register_byte().
1443 Convert to non-deprecated form.
1444 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1445 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1446 set_gdbarch_deprecated_store_return_value(), and
1447 set_gdbarch_deprecated_extract_struct_value_address() into
1448 non-deprecated forms.
1449
0a056982
AC
14502003-11-05 Andrew Cagney <cagney@redhat.com>
1451
1452 * mips-tdep.c (mips_dump_tdep): Do not print
1453 PRINT_EXTRA_FRAME_INFO.
1454 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1455 Rename PRINT_EXTRA_FRAME_INFO.
1456 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1457 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1458 (mips_print_extra_frame_info): Delete declaration.
1459 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1460
29e0a062
EZ
14612003-11-05 Elena Zannoni <ezannoni@redhat.com>
1462
1463 * coffread.c (coff_symtab_read): Remove passing of info parameter
1464 to prim_record_minimal_symbol_and_info.
1465
8af580fc
EZ
14662003-11-05 Elena Zannoni <ezannoni@redhat.com>
1467
1468 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1469 (decode_base_type): Delete ifdeffed out code.
1470
507836c0
AC
14712003-11-04 Andrew Cagney <cagney@redhat.com>
1472
1473 * symtab.c (find_active_alias): Delete function.
1474 (lookup_block_symbol): Delete alias code.
1475 * stabsread.c (resolve_live_range): Delete function.
1476 (add_live_range): Delete function.
1477 (resolve_symbol_reference): Delete function.
1478 (define_symbol): Delete live range and alias code.
1479 (scan_file_globals): Delete alias code.
1480 * symtab.h (SYMBOL_RANGES): Delete macro.
1481 (struct range_list): Delete structure.
1482 (struct symbol): Delete field "ranges".
1483 (SYMBOL_ALIASES): Delete macro.
1484 (struct alias_list): Delete structure.
1485 (struct symbol): Delete field "aliases".
1486
1083b3bc
MS
14872003-11-04 Michael Snyder <msnyder@redhat.com>
1488
77f091dd 1489 * MAINTAINERS: Remove myself as owner of breakpoints and
1083b3bc
MS
1490 of sparc/solaris.
1491
474e5826
CV
14922003-11-03 Corinna Vinschen <vinschen@redhat.com>
1493
1494 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1495 (sh_sh4al_dsp_register_name): Ditto.
1496 (sh4_nofpu_show_regs): Ditto.
1497 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1498 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1499
2160782c
AC
15002003-11-03 Andrew Cagney <cagney@redhat.com>
1501
1502 * bcache.c: Include "gdb_assert.h".
1503 (struct bcache): Add fields "expand_count" and
1504 "expand_hash_count".
1505 (expand_hash_table): Update the expand counts.
1506 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1507 on object sizes and hashes.
1508 * Makefile.in (bcache.o): Update dependencies.
1509
85302095
AC
15102003-11-03 Andrew Cagney <cagney@redhat.com>
1511
1512 * exec.c (xfer_memory): Eliminate xfer_fn.
1513
526eef89
KB
15142003-10-31 Kevin Buettner <kevinb@redhat.com>
1515
1516 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1517 (opcodes/frv-desc.h): Include.
1518 (iacc0h_regnum, iacc0l_regnum): Define.
1519 (last_spr_regnum, frv_num_regs): Update.
1520 (new_variant): Don't supply default names for holes in the SPRs.
1521 Supply names for iacc0h_regnum and iacc0l_regnum.
1522 (frv_register_type): Use symbolic constants first_fpr_regnum and
1523 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1524 builtin_type_int instead of builtin_type_int32.
1525 (frv_register_sim_regno): New function.
1526 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1527 * Makefile.in (gdb_sim_frv_h): Define.
1528 (frv-tdep.o): Update dependencies.
1529
9e815ec2
AC
15302003-10-31 Andrew Cagney <cagney@redhat.com>
1531
1532 * avr-tdep.c (avr_frame_this_id): Do not call
1533 deprecated_inside_entry_file.
1534 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1535 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1536 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1537 * arm-tdep.c (arm_prologue_this_id): Ditto.
1538 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1539
e372db49
JB
15402003-10-31 Jim Blandy <jimb@redhat.com>
1541
1542 * elfread.c (elf_symtab_read): Allocate correct number of tail
1543 elements to sectinfo structure. (Fix from Woody LaRue.)
1544
e8bcf01f
AC
15452003-10-31 Andrew Cagney <cagney@redhat.com>
1546
1547 * stack.c (return_command): Use get_frame_type, instead of
1548 CALL_DUMMY_HAS_COMPLETED.
1549 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1550 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1551
4c05fe53
MK
15522003-10-31 Mark Kettenis <kettenis@gnu.org>
1553
1554 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1555 explicitly specify size of array.
1556 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1557 TDEP->sc_num_regs.
1558
c8b91b89
AC
15592003-10-31 Andrew Cagney <cagney@redhat.com>
1560
1561 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1562 function.
1563 (s390_gdbarch_init): Set extract_struct_value_address.
1564 * arch-utils.c (generic_cannot_extract_struct_value_address):
1565 Delete function.
1566 * arch-utils.h (generic_cannot_extract_struct_value_address):
1567 Delete definition.
1568
fdfb6fc8
MK
15692003-10-31 Mark Kettenis <kettenis@gnu.org>
1570
1571 * i386-linux-nat.c (fetch_core_registers): Remove.
1572 (linux_elf_core_fns): Remove.
1573 (_initialize_i386_linux_nat): Remove.
1574
2f4950cd
AC
15752003-10-31 Andrew Cagney <cagney@redhat.com>
1576
1577 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1578 "exec.h".
1579 (exec_entry_point): New function.
1580 (enable_break): Create a "tmp_bfd_target", use that and
1581 entry_point_address when computing the relocation offset.
1582 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1583 * Makefile.in (solib-svr4.o): Update dependencies.
1584
bba2d28d
AC
15852003-10-31 Andrew Cagney <cagney@redhat.com>
1586
1587 * defs.h (XZALLOC): Define.
1588 * target.h (struct target_ops): Add "to_data";
1589 * bfd-target.h, bfd-target.c: New files.
1590 * Makefile.in (SFILES): Add "bfd-target.c".
1591 (COMMON_OBS): Add "bfd-target.o".
1592 (bfd-target.o): Specify dependencies.
1593 (bfd_target_h): Define.
1594 * defs.h (XZALLOC): Define.
1595
6066c3de
AC
15962003-10-31 Andrew Cagney <cagney@redhat.com>
1597
1598 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1599 adjust_breakpoint_address.
1600 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1601 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1602 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1603 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1604
4b8a223f
AC
16052003-10-31 Andrew Cagney <cagney@redhat.com>
1606
1607 * target.h (struct target_ops): Replace "to_read_partial" and
1608 "to_write_partial" with "to_xfer_partial". Update comments.
1609 * target.c (debug_to_write_partial): Delete function.
1610 (debug_to_xfer_partial): Replace debug_to_read_partial.
1611 (add_target, update_current_target, setup_target_debug): Set
1612 "to_xfer_partial" instead of "to_read_partial" and
1613 "to_write_partial".
1614 (default_xfer_partial): Replace "default_write_partial".
1615 (default_read_partial): Delete.
1616 (target_read_partial, target_write_partial): Call
1617 "to_xfer_partial".
1618 * remote.c (init_remote_ops): Set "to_xfer_partial".
1619 (init_remote_async_ops): Ditto.
1620 (remote_xfer_partial): Replace "remote_read_partial".
1621
66a72d25
MK
16222003-10-31 Mark Kettenis <kettenis@gnu.org>
1623
1624 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1625 registers in `fxsave' format.
1626 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1627
9a12a2a0
MK
16282003-10-30 Mark Kettenis <kettenis@gnu.org>
1629
e9f1aad5
MK
1630 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1631 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1632 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1633
bb489b3c
MK
1634 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1635 specify size of array.
1636 (i386_linux_init_abi): Remove initialization of
1637 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1638 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1639
da285bc4
MK
1640 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1641 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1642 core-regset.o.
1643
9a12a2a0
MK
1644 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1645 the ELF header.
1646
0e24ac5d
MK
16472003-10-29 Mark Kettenis <kettenis@gnu.org>
1648
6d6d8e9c
MK
1649 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1650 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1651 core-regset.o.
1652
25e60c9b
MK
1653 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1654
0e24ac5d
MK
1655 * corelow.c: Include "arch-utils.h", "regset.h" and
1656 "gdb_assert.h".
1657 (core_gdbarch): New variable.
1658 (sniff_core_bfd): Don't sniff if we have support for register sets
1659 in CORE_GDBARCH.
1660 (core_close): Reset CORE_GDBARCH.
1661 (core_open): Initialize CORE_GDBARCH.
1662 (get_core_register_section): Use register sets if they are
1663 supported by CORE_GDBARCH.
1664 (get_core_registers): Don't print error message if we have support
1665 for register sets in CORE_GDBARCH.
1666
0a0a4ac3
AC
16672003-10-29 Andrew Cagney <cagney@redhat.com>
1668
1669 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1670 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1671
7b097ae3
MK
16722003-10-29 Mark Kettenis <kettenis@gnu.org>
1673
1674 * objfiles.h (clear_objfile_data): New prototype.
1675 * objfiles.c (clear_objfile_data): New function.
1676 * symfile.c (reread_symbols): Clear per-objfile data.
1677
46f45a4a 16782003-10-28 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 1679
46f45a4a
JJ
1680 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1681 printf_unfiltered instead of printf_filtered for output messages.
1682 (add_symbol_file_command): Ditto.
1683 (reread_symbols): Ditto.
1684 (overlay_auto_command): Ditto.
1685 (overlay_manual_command): Ditto.
1686 (overlay_off_command): Ditto.
1687
2b026650
MK
16882003-10-27 Mark Kettenis <kettenis@gnu.org>
1689
1690 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1691 (gdbarch_from_bfd): New function.
1692 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1693 deprecated_select_gdbarch_hack.
1694 * arch-utils.h (gdbarch_from_bfd): New prototype.
1695
0bcad584 16962003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1697
1698 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1699 arch_info. Use warning instead of fprintf_filtered. Do not use
1700 deprecated bfd_printable_arch_mach.
1701
7f398216
KB
17022003-10-26 Kevin Buettner <kevinb@redhat.com>
1703
1704 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1705 Delete.
1706 (frv_register_type): Rename from frv_register_virtual_type. Add
1707 ``struct gdbarch *'' parameter.
1708 (frv_gdbarch_init): Delete calls to the following functions:
1709 set_gdbarch_deprecated_size(),
1710 set_gdbarch_deprecated_register_bytes(),
1711 set_gdbarch_deprecated_register_raw_size(),
1712 set_gdbarch_deprecated_max_register_raw_size(),
1713 set_gdbarch_deprecated_register_virtual_size(),
1714 set_gdbarch_deprecated_max_register_virtual_size(),
1715 set_gdbarch_deprecated_register_virtual_size(),
1716 set_gdbarch_deprecated_register_virtual_type().
1717 Add call to function set_gdbarch_register_type().
1718
bcf48cc7
MK
17192003-10-26 Mark Kettenis <kettenis@gnu.org>
1720
6c7de422
MK
1721 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1722 FDOFF_REGNUM): Remove defines.
1723 * win32-nat.c (do_child_fetch_inferior_registers): Include
1724 "i387-tdep.h".
3e685d41 1725 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1726 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1727 undefine I387_ST0_REGNUM.
1728
f783586b
MK
1729 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1730 * x86-64-tdep.c (x86_64_store_return_value): Use
1731 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1732
bcf48cc7
MK
1733 Change register numbers to enumartion values.
1734 * i386-tdep.h (enum i386_regnum): New.
1735 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1736 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1737 I386_ST0_REGNUM): Remove defines.
1738 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1739 I386_EDI_REGNUM): Remove defines.
1740
b6591e8b
AC
17412003-10-24 Andrew Cagney <cagney@redhat.com>
1742
1743 * target.c: Include "gdbcore.h".
1744 (get_target_memory, get_target_memory_unsigned): New functions.
1745 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1746 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1747 Use get_target_memory_unsigned.
1748 * Makefile.in (target.o): Update dependencies.
1749
5f724446
AC
17502003-10-24 Andrew Cagney <cagney@redhat.com>
1751
ce2826aa
AC
1752 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1753 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1754 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1755 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1756 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1757
5f724446
AC
1758 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1759 (can_run_code_for): Use the OO term "singleton".
1760
fc70c2a0
AC
17612003-10-23 Andrew Cagney <cagney@redhat.com>
1762
1763 * Makefile.in (stack.o): Add $(regcache_h).
1764 * stack.c: Include "regcache.h"
1765 (return_command): Rewrite. Use get_frame_id and
1766 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1767 about unhandled return-values.
1768 * value.h (set_return_value): Delete declaration.
1769 * values.c (set_return_value): Delete function.
1770
4afcc598
JJ
17712003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1772
1773 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1774 (pseudo_regs): Add comment regarding register stack registers.
1775 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1776 (floatformat_valid): New static routine.
1777 (floatformat_ia64_ext): Add name field and set up is_valid routine
1778 to floatformat_valid().
1779 (examine_prologue): For the previous cfm, use
1780 frame_unwind_register()
1781 if the cfm is not stored in a register-stack register. Save the
1782 previous cfm value in the prev_cfm field. Add debug output.
1783 (ia64_frame_this_id): Use frame_id_build_special() to also register
1784 the bsp. Add debug output.
1785 (ia64_sigtramp_frame_this_id): Ditto.
1786 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1787 registers and also add some checks for framelessness before accepting
1788 current register values for fields such as return address. For cfm,
1789 use the cached prev_cfm field if available. Add comment to explain
1790 PSR logic. Add debug output.
1791 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1792 as part of initialization.
1793 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1794 calculated. Cache the bsp and cfm values.
1795 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1796 instead of using ia64_frame_prev_register() which doesn't expect most
1797 registers to be saved. The saved values for bsp and sp
1798 can be taken from the cache. Add debug output.
1799 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1800 the bsp.
1801
6cfae0bc
JB
18022003-10-23 Jim Blandy <jimb@redhat.com>
1803
1804 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1805 architecture the current arch can run code for --- but not if it's
1806 a superset.
1807 (can_run_code_for): New function.
1808
fcd182f9
JW
18092003-10-22 James E Wilson <wilson@specifixinc.com>
1810
1811 * MAINTAINERS: Move myself from paper trail section back to write
1812 after approval section.
1813
4646aa9d
AC
18142003-10-22 Andrew Cagney <cagney@redhat.com>
1815
1816 * exec.h: New file.
1817 * win32-nat.c: Include "exec.h".
1818 * solib.c: Include "exec.h".
1819 * target.h (build_section_table): Delete declaration.
1820 * somsolib.c: Include "exec.h".
1821 (exec_ops): Delete extern declaration.
1822 * rs6000-nat.c: Update copyright. Include "exec.h".
1823 (exec_ops): Delete extern declaration.
1824 * pa64solib.c: Update copyright. Include "exec.h".
1825 (exec_ops): Delete extern declaration.
1826 * exec.c: Update copyright. Include "exec.h".
1827 * corelow.c: Update dependencies. Include "exec.h".
1828 * Makefile.in (exec_h): Define.
1829 (exec.o, somsolib.o): Update dependencies.
1830 (pa64solib.o, corelow.o): Update dependencies.
1831
0088c768
AC
18322003-10-22 Andrew Cagney <cagney@redhat.com>
1833
1834 * target.c: Include "gdb_assert.h" (target_read): Call
1835 "target_read_partial", not "target_write_partial".
1836 (default_read_partial, default_write_partial): New function.
1837 (target_read_partial, target_write_partial): Simplify, assume that
1838 there is always a read/write method.
1839 (update_current_target, add_target): Always set "to_read_partial"
1840 and "to_write_partial".
1841 (target_write, target_read): Fail on a zero byte transfer.
1842 * Makefile.in (target.o): Update dependencies.
1843 * target.h: Update copyright date.
1844 (target_object): Fix typo.
1845
e2d0e7eb
AC
18462003-10-22 Andrew Cagney <cagney@redhat.com>
1847
1848 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1849 multi-arch method, add "targ" parameter.
77f091dd 1850 (struct target_ops): Declare.
e2d0e7eb
AC
1851 * gdbarch.h, gdbarch.c: Re-generate.
1852 * Makefile.in (c-valprint.o): Update dependencies.
1853 * arch-utils.h: Update copyright.
1854 (convert_from_func_ptr_addr_identity): Declare.
1855 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1856 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1857 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1858 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1859 * infcall.c (find_function_addr, call_function_by_hand): Update.
1860 * c-valprint.c: Include "target.h".
1861 (print_function_pointer_address): Update.
1862
f1c07ab0
AC
18632003-10-22 Andrew Cagney <cagney@redhat.com>
1864
1865 * target.c (target_close): New function.
1866 (debug_to_close): Use "target_close".
1867 (push_target): Use "target_close".
1868 (unpush_target): Use "target_close".
1869 (pop_target): Use "target_close".
1870 * target.h (struct target_ops): Add "to_xclose".
1871 (target_open): Delete macro. Move comment to "to_open".
1872 (target_close): Replace macro with function that takes a target.
1873 * top.c (quit_target): Pass "current_target" to "target_close".
1874
5520a790
EZ
18752003-10-21 Elena Zannoni <ezannoni@redhat.com>
1876
1877 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1878 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1879 * symtab.h (lookup_minimal_symbol_text): Update.
1880 * breakpoint.c (create_overlay_event_breakpoint,
1881 create_longjmp_breakpoint): Update callers.
1882 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1883 * symtab.c (find_pc_sect_line): Ditto.
1884
caa92b73
AC
18852003-10-21 Andrew Cagney <cagney@redhat.com>
1886
1887 * target.c (errno): Delete extern declaration.
1888
aa2a9a3c
JJ
18892003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1890
1891 * ia64-tdep.c: Change all occurrences of
1892 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1893 (ia64_frame_prev_register): Minor whitespace change.
1894
4beec2b7
MC
18952003-10-20 Michael Chastain <mec@shout.net>
1896
1897 * config/djgpp/fnchange.lst: Add lines for:
1898 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1899 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1900 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1901 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1902 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1903 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1904 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1905
92ad9cd9
AC
19062003-10-20 Andrew Cagney <cagney@redhat.com>
1907
1908 * values.c (register_value_being_returned): Update comments. Use
1909 "gdbarch_return_value" when available.
1910 (using_struct_return): Ditto.
1911 (set_return_value): Ditto. Use "gdbarch_return_value" when
1912 available.. Print a warning, and not an error, when an unhandled
1913 return type is encountered.
1914 * infcmd.c: Include "gdb_assert.h".
1915 (print_return_value): When gdbarch_return_value_p, and using
1916 struct return, assume that the value is not available.
1917 * defs.h (return_value_convention): Define.
1918 * gdbarch.sh (gdbarch_return_value): New predicate method.
1919 * gdbarch.h, gdbarch.c: Re-generate
1920 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1921
198beae2
AC
19222003-10-20 Andrew Cagney <cagney@redhat.com>
1923
1924 * symtab.c: Replace "struct sec" with "struct bfd_section".
1925 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1926
24d693a6 19272003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1928
1929 * config/djgpp/fnchange.lst: Add lines for:
1930 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1931 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1932 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1933
21ad8dc3
MK
19342003-10-19 Mark Kettenis <kettenis@gnu.org>
1935
1936 * amd64fbsd-nat.c (fetch_inferior_registers,
1937 store_inferior_registers): Remove functions.
1938 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1939
cced5e27
MK
19402003-10-18 Mark Kettenis <kettenis@gnu.org>
1941
1942 Add NetBSD/amd64 native configuration:
1943 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1944 * amd64nbsd-tdep.c: New file.
1945 * amd64nbsd-nat.c: New file.
1946 * amd64bsd-nat.c: New file.
1947 * config/i386/nbsd64.mh: New file.
1948 * config/i386/nbsd64.mt: New file.
1949 * configure.host: Add x86_64-*-netbsd*.
1950 * configure.tgt: Add x86_64-*-netbsd*.
1951 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1952 New targets.
1953 * NEWS (New native configurations): Mention NetBSD/amd64.
1954
666de3fd
MC
19552003-10-17 Michael Chastain <mec@shout.net>
1956
1957 * config/djgpp/fnchange.lst: Remove dead lines for:
1958 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1959 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1960 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1961 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1962 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1963 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1964 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1965 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1966 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1967 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1968 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1969 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1970 gdb/config/sparc/tm-sparclite.h,
1971 gdb/gdbtk/generic/ChangeLog-2001,
1972 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1973 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1974 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1975 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1976 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1977 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1978 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1979 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1980 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1981 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1982 itcl/iwidgets3.0.0/demos/fileselectionbox,
1983 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1984 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1985 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1986 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1987 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1988 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1989 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1990 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1991 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1992 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1993 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1994 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1995 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1996 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1997 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1998 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1999 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
2000 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
2001 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
2002 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
2003 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
2004 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
2005 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
2006 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
2007 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
2008 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
2009 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
2010 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
2011 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
2012 itcl/iwidgets3.0.0/demos/html/shell.n.html,
2013 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
2014 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
2015 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
2016 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
2017 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
2018 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
2019 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
2020 itcl/iwidgets3.0.0/demos/scrolledcanvas,
2021 itcl/iwidgets3.0.0/demos/scrolledframe,
2022 itcl/iwidgets3.0.0/demos/scrolledhtml,
2023 itcl/iwidgets3.0.0/demos/scrolledlistbox,
2024 itcl/iwidgets3.0.0/demos/scrolledtext,
2025 itcl/iwidgets3.0.0/demos/selectionbox,
2026 itcl/iwidgets3.0.0/demos/selectiondialog,
2027 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
2028 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
2029 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
2030 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
2031 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
2032 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
2033 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
2034 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
2035 itcl/iwidgets3.0.0/doc/scrolledframe.n,
2036 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
2037 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
2038 itcl/iwidgets3.0.0/doc/scrolledtext.n,
2039 itcl/iwidgets3.0.0/doc/selectionbox.n,
2040 itcl/iwidgets3.0.0/doc/selectiondialog.n,
2041 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
2042 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
2043 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
2044 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
2045 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
2046 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
2047 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
2048 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
2049 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
2050 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
2051 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
2052 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
2053 itcl/iwidgets3.0.0/generic/selectionbox.itk,
2054 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
2055 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
2056 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
2057 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
2058 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
2059 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
2060 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
2061 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
2062 itcl/iwidgets3.0.0/tests/scrolledframe.test,
2063 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
2064 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
2065 itcl/iwidgets3.0.0/tests/scrolledtext.test,
2066 itcl/iwidgets3.0.0/tests/selectionbox.test,
2067 itcl/iwidgets3.0.0/tests/selectiondialog.test,
2068 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
2069 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
2070 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
2071 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
2072 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
2073 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
2074 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
2075 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
2076 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
2077 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
2078 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
2079 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
2080 tk/mac/tkMacProjects.sit.hqx.
2081
1e3ff5ad
AC
20822003-10-17 Andrew Cagney <cagney@redhat.com>
2083
8db32d44
AC
2084 * target.c (target_section_by_addr): New function.
2085 (do_xfer_memory): Use "target_section_by_addr".
2086 * target.h (target_section_by_addr): Declare.
2087
1e3ff5ad
AC
2088 * target.h (struct target_ops): Add "to_read_partial" and
2089 "to_write_partial", delete "to_query".
2090 (target_read_partial, target_write_partial): Declare.
2091 (target_read, target_write): Declare.
2092 (target_query): Delete macro.
2093 * target.c (target_read_partial): New function.
2094 (target_write_partial, target_read, target_write): New function.
2095 (update_current_target): Delete inheritance of "to_query". Add
2096 comments about "to_read_partial" and "to_write_partial".
2097 (debug_to_partial_read, debug_to_partial_write): New functions.
2098 (debug_to_query): Delete function.
2099 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
2100 instead of "to_query".
2101 * remote.c (remote_read_partial): Replace "remote_query".
2102 (init_remote_ops): Set "to_read_partial" instead of "to_query".
2103 (init_remote_async_ops): Ditto.
2104 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
2105 "target_read_partial" instead of "target_query".
2106 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
2107 Use "target_read_partial" instead of "target_query".
2108
48c66725
JJ
21092003-10-17 Jeff Johnston <jjohnstn@redhat.com>
2110
2111 * frame.h (struct frame_id): Add new field: special_addr.
2112 (frame_id_build_special): New prototype.
2113 * frame.c (frame_id_build_special): New function.
2114 (frame_id_build): Change to call frame_id_build_special().
77f091dd
RM
2115 (frame_id_eq): Change to also test special_addr field.
2116 (frame_id_inner): Update comment.
48c66725 2117
7998dfc3
AC
21182003-10-17 Andrew Cagney <cagney@redhat.com>
2119
2120 * target.c (update_current_target): Perform the target cleanup.
2121 Put the target stack beneath the squashed "current_target".
2122 (add_target): Delete disabled call to "cleanup_target".
2123 (cleanup_target): Delete function.
2124 (push_target, unpush_target): Do not call "cleanup_target".
2125
9c04404e 21262003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
2127
2128 * target.c (target_stack): Change to a static target_ops.
2129 (update_current_target): Walk the "struct target_ops" stack.
2130 (pop_target, do_xfer_memory, target_info): Ditto.
2131 (find_target_beneath): Ditto.
2132 (push_target): Rewrite to use the "struct target_ops" stack.
2133 (unpush_target): Ditto.
2134 * target.h (struct target_stack_item): Delete definition.
2135 (target_stack): Delete declaration.
2136 (struct target_ops): Add field "beneath".
2137
c98a2b49 21382003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
2139
2140 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2141 declaration.
2142 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
2143 (h8300_examine_prologue): Use h8300_normal_mode flag
2144 (h8300_gdbarch_init): Set architecture info for normal mode
2145
506fb367
DJ
21462003-10-16 Daniel Jacobowitz <drow@mvista.com>
2147
2148 * remote.c (remote_protocol_vcont): New variable.
2149 (set_remote_protocol_vcont_packet_cmd): New function.
2150 (show_remote_protocol_vcont_packet_cmd): New function.
2151 (init_all_packet_configs): Handle remote_protocol_vcont.
2152 (remote_vcont_probe): New function.
2153 (remote_vcont_resume): New function.
2154 (remote_resume): Use it.
2155 (remote_async_resume): Call remote_resume.
2156 (_initialize_remote): Add verbose-resume packet commands.
2157
65815ea1
AC
21582003-10-16 Andrew Cagney <cagney@redhat.com>
2159
2160 * infrun.c (handle_inferior_event): Add comment about
2161 "frame_id_inner" being too weak.
2162
40324f1b
EZ
21632003-10-16 Elena Zannoni <ezannoni@redhat.com>
2164
2165 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2166 second parameter, which is always null. Remove
2167 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2168 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2169 accordingly.
2170 * somsolib.c (som_solib_create_inferior_hook,
2171 som_solib_desire_dynamic_linker_symbols): Update callers.
2172 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
2173
21742003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2175
2176 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2177 debug interface, SDI (Scalable Debug Interface).
2178 * NEWS: Mention m32r SDI protocol was supported.
2179 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2180 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2181
51931cbb
JJ
21822003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2183
2184 * ia64-linux-tdep.c: Include gdbcore.h.
2185 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2186 (ia64_linux_sigcontext_register_addr): Find the address of the
2187 sigcontext area stored in the sigframe instead of using
77f091dd 2188 a magic offset constant.
51931cbb 2189
84e7fd53
AC
21902003-10-15 Andrew Cagney <cagney@redhat.com>
2191
2192 * remote.c (remote_search): Delete function.
2193 * target.h (target_search): Delete disabled macro.
2194 (struct target_ops): Delete disabled field "to_search".
2195
0f4d7c52
KB
21962003-10-14 Kevin Buettner <kevinb@redhat.com>
2197
2198 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2199 instead of deprecated_inside_entry_file().
2200
2e952408
CV
22012003-10-14 Corinna Vinschen <vinschen@redhat.com>
2202
2203 * sh-tdep.c: Fix copy/paste hangover in comment.
2204 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2205 mode.
2206 (sh3e_sh4_extract_return_value): Ditto.
2207
7e86466e
RH
22082003-10-13 Richard Henderson <rth@redhat.com>
2209
2210 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2211 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2212 match c_val_print a bit closer.
2213
46a16dba
KB
22142003-10-13 Kevin Buettner <kevinb@redhat.com>
2215
2216 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2217 (frv_gdbarch_adjust_breakpoint_address): New function.
2218 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2219 method.
2220
76897487
KB
22212003-10-13 Kevin Buettner <kevinb@redhat.com>
2222
2223 * breakpoint.h (struct breakpoint): Add new member
2224 ``requested_address''.
2225 * breakpoint.c (breakpoint_adjustment_warning)
2226 (adjust_breakpoint_address): New static functions.
2227 (print_it_typical): Issue warning if breakpoint's address is different
2228 from its requested address.
2229 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2230 (breakpoint_re_set_one): Set breakpoint's
2231 ``requested_address'' field. Set ``address'' field to the
2232 result of calling adjust_breakpoint_address() on the requested
2233 address.
2234
a1131521
KB
22352003-10-13 Kevin Buettner <kevinb@redhat.com>
2236
2237 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2238 * gdbarch.h, gdbarch.c: Regenerate.
2239
6ce6d90f
MK
22402003-10-11 Mark Kettenis <kettenis@gnu.org>
2241
155c1d33
MK
2242 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2243 TDEP->sc_num_regs.
2244
8a96bc77
MK
2245 * i386fbsd-tdep.c: New file.
2246 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2247 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2248 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2249 i386bsd-tdep.c.
2250 (_initialize_i386fbsd_tdep): New function.
2251 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2252 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2253 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2254 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2255 TDEP->sc_num_regs.
2256 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2257 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2258 to initialize TDEP->sc_num_regs.
2259 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2260 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2261 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2262 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2263 FreeBSD ELF OS/ABI's here.
2264 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2265 (i386fbsd-tdep.o): New target.
2266 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2267 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2268
477f40d1
MK
2269 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2270 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2271 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2272 in initialization of TDEP->sc_num_regs.
2273
c6b33596
MK
2274 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2275 (x86_64_init_abi): Initialize regset_from_core_section if
2276 appropriate.
2277
8446b36a
MK
2278 * i386-tdep.c (i386_regset_from_core_section): New function.
2279 (i386_gdbarch_init): Initialize regset_from_core_section if
2280 appropriate.
2281 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2282
c783cbd6
MK
2283 * i386-tdep.h (struct regset): Declare opaque.
2284
6ce6d90f
MK
2285 * gdbarch.sh (regset_from_core_section): New method.
2286 (struct regset): Declare opaque.
2287 * gdbarch.c, gdbarch.h: Regenerated.
2288
b98ed7be
AM
22892003-10-11 Alan Modra <amodra@bigpond.net.au>
2290
2291 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2292 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2293 Correct test for pc within section.
2294
f6214256
MK
22952003-10-11 Mark Kettenis <kettenis@gnu.org>
2296
2297 * gdbarch.sh: Remove trailing whitepsace from comments.
2298
a8f4cde1
RM
22992003-10-08 Roland McGrath <roland@redhat.com>
2300
2301 * gcore.c (make_mem_sec): Function removed, folded into ...
2302 (gcore_create_callback): ... here. To omit a section, clear its
2303 SEC_LOAD bit rather than zeroing its size.
2304 Omit read-only sections only if they correspond to a known disk file.
2305 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2306
74276724
MS
23072003-10-10 Michael Snyder <msnyder@redhat.com>
2308
2309 * d10v-tdep.c: Fix typo in comment.
2310
e754ae69
AC
23112003-10-10 Andrew Cagney <cagney@redhat.com>
2312
2313 * rs6000-tdep.c (e500_store_return_value): Delete function.
2314 (e500_extract_return_value): Delete function.
2315 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2316 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2317 "ppc_sysv_abi_restore_return_value" where applicable.
2318 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2319 (ppc_sysv_abi_extract_return_value): Declare.
2320 (ppc_sysv_abi_broken_store_return_value): Declare.
2321 (ppc_sysv_abi_broken_extract_return_value): Declare.
2322 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2323 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2324 start of file.
2325 (do_ppc_sysv_return_value): New function.
2326 (ppc_sysv_abi_extract_return_value): New function.
2327 (ppc_sysv_abi_store_return_value): New function.
2328 (ppc_sysv_abi_broken_extract_return_value): New function.
2329 (ppc_sysv_abi_broken_store_return_value): New function.
2330 (ppc_sysv_abi_use_struct_convention): Call
2331 do_ppc_sysv_return_value.
2332
8d4ce20a
JB
23332003-10-10 J. Brobecker <brobecker@gnat.com>
2334
2335 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2336 to lookup the main function symbol.
2337
afce3d2a
CV
23382003-10-10 Corinna Vinschen <vinschen@redhat.com>
2339
2340 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2341 types correctly.
2342 (sh_push_dummy_call_fpu): Fix argument passing rules.
2343 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2344 float types.
2345 (sh3e_sh4_store_return_value): Ditto.
2346
7fe958be
EZ
23472003-10-10 Elena Zannoni <ezannoni@redhat.com>
2348
2349 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2350 comment.
2351
3f997a97
CV
23522003-10-10 Corinna Vinschen <vinschen@redhat.com>
2353
2354 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2355 more readable code. Accomodate passing of bitfields.
2356
8be9034a
AC
23572003-10-10 Andrew Cagney <cagney@redhat.com>
2358
2359 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2360 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2361 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2362 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2363 (ppc64_sysv_abi_push_dummy_call): New function.
2364 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2365 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2366 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2367
85a453d5
KI
23682003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2369
2370 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2371 * README: Ditto.
2372 * d10v-tdep.c: Ditto.
2373 * h8300-tdep.c: Ditto.
2374 * remote-e7000.c: Ditto.
2375 * remote-hms.c: Ditto.
2376 * ser-e7kpc.c: Ditto.
2377 * sh-stub.c: Ditto.
2378 * sh-tdep.c: Ditto.
2379 * sh-tdep.h: Ditto.
2380 * sh3-rom.c: Ditto.
2381 * sh64-tdep.c: Ditto.
2382 * top.c: Ditto.
2383 * wince.c: Ditto.
2384 * config/d10v/d10v.mt: Ditto.
2385 * config/sh/embed.mt: Ditto.
2386 * config/sh/linux.mt: Ditto.
2387 * config/sh/tm-linux.h: Ditto.
2388 * config/sh/tm-sh.h: Ditto.
2389 * config/sh/wince.mt: Ditto.
2390
221c12ff
AC
23912003-10-09 Andrew Cagney <cagney@redhat.com>
2392
2393 * ppc-tdep.h (struct type): Declare opaque.
2394 * x86-64-tdep.h (struct regcache): Declare opaque.
2395 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2396 coding style.
2397
ef5200c1
AC
23982003-10-09 Andrew Cagney <cagney@redhat.com>
2399
2400 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2401 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2402 (SOFTWARE_SINGLE_STEP_P): Ditto.
2403 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2404 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2405 (SOFTWARE_SINGLE_STEP_P): Ditto.
2406 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2407 software_single_step to rs6000_software_single_step.
a8f4cde1 2408
9644bbdd
AC
24092003-10-09 Andrew Cagney <cagney@redhat.com>
2410
2411 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2412
db72fa6b
MS
24132003-10-09 Michael Snyder <msnyder@redhat.com>
2414
f3efb16c
MS
2415 * frame.h: Fix typo in comment.
2416 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2417 * d10v-tdep.c: Random whitespace/comment tweaks.
2418
9a5cef92
EZ
24192003-10-09 Elena Zannoni <ezannoni@redhat.com>
2420
2421 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2422 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2423 on stack.
a8f4cde1 2424
9a5cef92
EZ
2425 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2426 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2427 in detail.
a8f4cde1 2428
0f317a0c
DJ
24292003-10-09 Daniel Jacobowitz <drow@mvista.com>
2430
2431 * remote-mips.c (mips_initialize): Remove unneeded call to
2432 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2433
bbab2f46
DJ
24342003-10-09 Daniel Jacobowitz <drow@mvista.com>
2435
2436 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2437 a memory pointer.
2438
550950b8
JJ
24392003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2440
2441 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2442 for any lwp we resume.
2443 (running_callback): Add lwps that have pending status events
2444 against them to be considered running.
2445
15c69bc7
KI
24462003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2447
2448 * m32r-tdep.c : Include "dis-asm.h".
2449 * Makefile.in (m32r-tdep.o): Update dependencies.
2450
51065942
JB
24512003-10-06 J. Brobecker <brobecker@gnat.com>
2452
2453 * completer.h (get_gdb_completer_word_break_characters): Delete.
2454 * completer.c: include language.h.
2455 (gdb_completer_word_break_characters): Delete.
2456 (get_gdb_completer_word_break_characters): Delete.
2457 (location_completer): Use the word break characters of the current
2458 language.
2459 (complete_line): Likewise.
2460 (line_completion_function): Likewise.
2461 (skip_quoted_chars): Likewise.
2462 * Makefile.in (completer.o): Add dependency on language.h.
2463 * top.c (init_main): Set the readline word break characters
2464 to GDB's default word break characters.
2465
6084f43a
JB
24662003-10-06 J. Brobecker <brobecker@gnat.com>
2467
2468 * language.h (language_defn): new field, la_word_break_characters.
2469 * language.c (unknown_language_defn): Set new field to
2470 default_word_break_characters.
2471 (auto_language_defn): Likewise.
2472 (local_language_defn): Likewise.
2473 * ada-lang.c (ada_language_defn): Likewise.
2474 * c-lang.c (c_language_defn): Likewise.
2475 (cplus_language_defn): Likewise.
2476 (asm_language_defn): Likewise.
2477 (minimal_language_defn): Likewise.
2478 * f-lang.c (f_language_defn): Likewise.
2479 * jv-lang.c (java_language_defn): Likewise.
2480 * m2-lang.c (m2_language_defn): Likewise.
2481 * objc-lang.c (objc_language_defn): Likewise.
2482 * p-lang.c (pascal_language_defn): Likewise.
2483 * scm-lang.c (scm_language_defn): Likewise.
2484
944fcfab
AC
24852003-10-06 Andrew Cagney <cagney@redhat.com>
2486
2487 * ppc-sysv-tdep.c: Re-indent.
2488
9f0a5303
JB
24892003-10-06 J. Brobecker <brobecker@gnat.com>
2490
2491 * language.h (default_word_break_characters): Add prototype.
2492 * language.c (default_word_break_characters): New function.
2493
7270b6ed
AS
24942003-10-06 Andreas Schwab <schwab@suse.de>
2495
2496 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2497 with %eax.
2498
a5d61f66
AC
24992003-10-06 Andrew Cagney <cagney@redhat.com>
2500
2501 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2502 "h8500-tdep.c".
2503 (z8k-tdep.o): Delete custom build rule.
2504
28a86f5c
AC
25052003-10-06 Andrew Cagney <cagney@redhat.com>
2506
1bfd8a83
AC
2507 * Makefile.in: Update all dependencies.
2508
17144ef8
AC
2509 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2510 No longer list PA as as obsolete candidate. List m32r as
2511 broken instead of obsolete.
a8f4cde1 2512
a5679ae5
AC
2513 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2514 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2515 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2516 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2517 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2518 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2519 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2520 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2521 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2522 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2523 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2524 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2525 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2526 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2527 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2528 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2529 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2530 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2531 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2532 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2533 * config/z8k/z8k.mt: Ditto.
2534
4a8269c0
AC
2535 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2536 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2537 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2538 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2539 sparclite were removed.
2540 * configure.host, configure.tgt: Remove corresponding tuples.
2541
41989fcd
AC
2542 * breakpoint.c, breakpoint.h: Remove obsolete code.
2543 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2544 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2545 * stabsread.h, xcoffread.c: Ditto.
2546
28a86f5c
AC
2547 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2548 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2549 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2550 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2551
4efdaa0d
DL
25522003-10-06 David Lecomber <dsl@sources.redhat.com>
2553
2554 * f-valprint.c: Reformatting
2555
ae53de43
MK
25562003-10-06 Mark Kettenis <kettenis@gnu.org>
2557
a8bb57e7
MK
2558 * x86-64-tdep.c: Remove duplicate comment.
2559
ae53de43
MK
2560 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2561 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2562 names for return values. This fixes a bug since we looked at %rbx
2563 instead of %rdx.
2564
473f17b0
MK
25652003-10-05 Mark Kettenis <kettenis@gnu.org>
2566
2c261fae
MK
2567 * x86-64-tdep.c: Include "regset.h".
2568
473f17b0
MK
2569 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2570 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2571 sizeof_fpregset.
2572 * i386-tdep.c: Include "regset.h".
2573 (i386_supply_gregset): New function.
2574 (i386_supply_fpregset): New function.
2575 (i386_gdbarch_init): Initialze register set-related members of
2576 TDEP.
2577 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2578 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2579
afd48b75
AC
25802003-10-03 Andrew Cagney <cagney@redhat.com>
2581
2582 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2583 set extract_return_value, store_return_value and
2584 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2585 ppc64_sysv_abi_store_return_value and
2586 ppc64_sysv_abi_use_struct_convention.
2587 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2588 (ppc64_sysv_abi_store_return_value): Declare.
2589 (ppc64_sysv_abi_use_struct_convention): Declare.
2590 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2591 (ppc64_sysv_abi_extract_return_value): New function.
2592 (ppc64_sysv_abi_store_return_value): New function.
2593 (ppc64_sysv_abi_use_struct_convention): New function.
2594 (ppc64_sysv_abi_return_value): New function.
2595
9b540880
AC
25962003-10-03 Andrew Cagney <cagney@redhat.com>
2597
2598 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2599 convert a descriptor to a function when it's in the ".opd"
2600 section.
2601
8748518b
CV
26022003-10-03 Corinna Vinschen <vinschen@redhat.com>
2603
2604 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2605 reg_size to keep GCC silent.
2606
0fd85043
CV
26072003-10-03 Corinna Vinschen <vinschen@redhat.com>
2608
2609 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2610 base for DW_EH_PE_textrel encodings.
2611 (read_encoded_value): Add a DW_EH_PE_textrel case.
2612 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2613 section.
2614
37b517aa
MK
26152003-10-03 Mark Kettenis <kettenis@gnu.org>
2616
2617 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2618
12c266ea
AC
26192003-10-02 Andrew Cagney <cagney@redhat.com>
2620
2621 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2622 REGISTER_RAW_SIZE.
2623 * gdbarch.h, gdbarch.c: Re-generate.
2624 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2625 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2626 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2627 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2628 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2629 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2630 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2631 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2632 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2633 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2634 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2635 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2636 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2637 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2638 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2639 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2640
78ba4af6
JB
26412003-10-02 Jim Blandy <jimb@redhat.com>
2642
2643 * dwarf2read.c (struct die_info): Doc fix.
2644
617daa0e
CV
26452003-10-02 Corinna Vinschen <vinschen@redhat.com>
2646
2647 * sh-tdep.c: Running thru gdb_indent.sh.
2648
e5e33cd9
CV
26492003-10-02 Corinna Vinschen <vinschen@redhat.com>
2650
2651 * sh-tdep.c (sh_justify_value_in_reg): New function.
2652 (sh_stack_allocsize): Ditto.
2653 (flt_argreg_array): New array used for floating point argument
2654 passing.
2655 (sh_init_flt_argreg): New function.
a8f4cde1 2656 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2657 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2658 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2659 Fix argument passing strategy.
2660 (sh_push_dummy_call_nofpu): Ditto.
2661
5fe830e4
AC
26622003-10-01 Andrew Cagney <cagney@redhat.com>
2663
2664 * value.h (register_value_being_returned): Declare. Replace
2665 "value_being_returned".
2666 * infcall.c (call_function_by_hand): Use
2667 register_value_being_returned.
2668 * infcmd.c (print_return_value): Call
2669 "register_value_being_returned", handle struct return locally.
2670 * values.c (register_value_being_returned): New function. Replace
2671 "value_being_returned".
a8f4cde1 2672
5fe830e4 26732003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2674
2675 * linux-proc.c (linux_do_registers): New function.
2676 (linux_make_note_section): Use linux_do_registers in case of
2677 single threaded inferior programs.
2678
64f395bf
AC
26792003-10-01 Andrew Cagney <cagney@redhat.com>
2680
2681 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2682 use STRUCT_ADDR. When not using "struct return convention", pass
2683 "0" to "value_being_returned". Add FIXMEs.
2684 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2685 value_being_returned. Add comments.
2686 * values.c (value_being_returned): Add fixme.
2687 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2688 (hppa_value_returned_from_stack): Add FIXME.
2689
639d11d3
DC
26902003-09-30 David Carlton <carlton@kealia.com>
2691
2692 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2693 'has_children' and 'next' by 'child' and 'sibling'.
2694 (read_comp_unit): Rework algorithm, breaking body into
2695 read_die_and_children and read_die_and_siblings.
2696 (read_die_and_children, read_die_and_siblings): New.
2697 (read_full_die): Add 'has_children' argument; set it instead of
2698 the die's 'has_children' field. Minor formatting cleanup.
2699 (free_die_list): Use die->child and die->sibling instead of
2700 die->next.
2701 (dump_die_list): Ditto.
2702 (sibling_die): Use die->sibling.
2703 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2704 'has_children' and 'next' fields.
a8f4cde1
RM
2705 (process_die, read_file_scope, read_func_scope)
2706 (read_lexical_block_scope, read_structure_scope)
2707 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2708 (read_namespace, read_subroutine_type, dump_die): Ditto.
2709
5bffac25
AC
27102003-09-30 Andrew Cagney <cagney@redhat.com>
2711
2712 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2713 to 224, not 220.
2714
f30992d4
AC
27152003-09-30 Andrew Cagney <cagney@redhat.com>
2716
2717 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2718 REGISTER_VIRTUAL_SIZE.
2719 * gdbarch.h, gdbarch.c: Regenerate.
2720 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2721 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2722 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2723
2e092625
AC
27242003-09-29 Andrew Cagney <cagney@redhat.com>
2725
2726 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2727 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2728 * gdbarch.h, gdbarch.c: Regenerate.
2729 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2730 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2731
2732 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2733 * remote-vxmips.c (vx_read_register): Ditto.
2734 * remote-vx68.c (vx_read_register): Ditto.
2735 * gnu-nat.c (inf_validate_procs): Ditto.
2736
7a5dd6ee
JB
27372003-09-29 J. Brobecker <brobecker@gnat.com>
2738
2739 * infcall.c (call_function_by_hand): Fix build failure
2740 introduced in the previous change to this file.
2741
1fe43d45
AC
27422003-09-29 Andrew Cagney <cagney@redhat.com>
2743
2744 * NEWS: Mention Objective-C.
2745
e28a332c
JG
27462003-09-29 Jerome Guitton <guitton@act-europe.fr>
2747
2748 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2749 test if the register has been saved on the stack.
2750 (arm_scan_prologue_cache): When analysing the instruction
2751 "str lr, [sp, #-4]", save the address where lr has been stored.
2752
9ff63c35
AC
27532003-09-28 Andrew Cagney <cagney@redhat.com>
2754
7f5f525d
AC
2755 * frame.c (frame_read_unsigned_register): Delete function.
2756 * frame.h (frame_read_unsigned_register): Delete declaration.
2757 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2758 get_frame_register_unsigned.
2759 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2760 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2761 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2762
7f5f525d
AC
2763 * frame.h (frame_read_register): Delete declaration.
2764 * frame.c (frame_read_register): Delete function.
2765 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2766 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2767 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2768 * mips-tdep.c (mips_register_to_value): Ditto.
2769 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2770 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2771
2772 * frame.c (frame_read_signed_register): Delete function.
2773 (frame_read_unsigned_register): Update comments.
2774 * frame.h (frame_read_signed_register): Delete declaration.
2775 * h8300-tdep.c (h8300_print_register): Use
2776 get_frame_register_signed.
2777 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2778
9ff63c35
AC
2779 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2780 Rename VALUE_RETURNED_FROM_STACK.
2781 * infcmd.c (print_return_value): Update.
2782 * infcall.c (call_function_by_hand): Update.
2783
41d041d6
MK
27842003-09-28 Mark Kettenis <kettenis@gnu.org>
2785
2786 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2787 regcache argument and reverse the order of the other two
2788 arguments. Remove local regcache variable. Determine
2789 architecture from REGCACHE. Update comments.
2790 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2791 reverse the order of the other two arguments. Remove local
2792 regcache variable. Determine architecture from REGCACHE. Update
2793 comments.
2794 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2795 prototypes. Update comments.
2796 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2797 comment.
2798 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2799 Update.
2800 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2801 * i386-interix-nat.c (supply_fpregset): Update.
2802 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2803 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2804 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2805 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2806 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2807 Update.
2808 * i386obsd-tdep.c (fetch_core_registers): Update.
2809 * i386v4-nat.c (supply_fpregset): Update.
2810 * x86-64-linux-nat.c (supply_fpregset): Update.
2811 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2812
1cb97e17
MK
28132003-09-27 Mark Kettenis <kettenis@gnu.org>
2814
5716833c
MK
2815 * i386-tdep.h: Put opaque declarations in alphabetical
2816 order. Remove spurious whitespace.
2817 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2818 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2819 * i386-tdep.c (MM0_REGNUM): Remove define.
2820 (i386_mmx_regnum_p): Add gdbarch argument.
2821 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2822 Rewrite using new macro definitions for FPU/SSE registers.
2823 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2824 definitions from i387-tdep.h.
2825 (i386_register_name): Update.
2826 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2827 new macro definitions for FPU/SSE registers.
2828 (i386_extract_return_value): Determine whether floating-point
2829 registers are present by examining REGCACHE's architecture.
2830 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2831 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2832 FPU/SSE registers.
2833 (i386_register_type): Update.
2834 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2835 definitions for FPU registers. Use REGCACHE's architecture to
2836 determine the appropriate register numbers.
2837 (i386_pseudo_register_read, i386_pseudo_register_write,
2838 i386_register_reggroup_p): Update.
2839 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2840 TDEP->mm0_regnum.
2841 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2842 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2843 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2844 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2845 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2846 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2847 *' to `void *'.
2848 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2849 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2850 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2851 definitions for FPU/SSE registers.
2852 (FXSAVE_MXCSR_ADDR): New define.
2853 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2854 TDEP->mm0_regnum.
2855 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2856 (I387_ST0_REGNUM): Define.
2857
41d35cb0
MK
2858 * regcache.h (get_regcache_arch): New prototype.
2859 * regcache.c (get_regcache_arch): New function.
2860
54e74f72
MK
2861 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2862 whitespace.
2863
1cb97e17
MK
2864 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2865 Initialize using ARRAY_SIZE.
2866
0968aa8c
AC
28672003-09-27 Andrew Cagney <cagney@redhat.com>
2868
2869 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2870 "init_frame_pc_default".
2871 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2873 * vax-tdep.c (vax_gdbarch_init): Update.
2874 * v850-tdep.c (v850_gdbarch_init): Update.
2875 * sh64-tdep.c (sh64_gdbarch_init): Update.
2876 * s390-tdep.c (s390_gdbarch_init): Update.
2877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2878 * mcore-tdep.c (mcore_gdbarch_init): Update.
2879 * h8300-tdep.c (h8300_gdbarch_init): Update.
2880 * cris-tdep.c (cris_gdbarch_init): Update.
2881 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2882
54c84734
MK
28832003-09-26 Mark Kettenis <kettenis@gnu.org>
2884
2885 * regset.h: New file.
2886 * Makefile.in (regset_h): Add.
2887
1b1d3794
AC
28882003-09-25 Andrew Cagney <cagney@redhat.com>
2889
2890 * frame.h (deprecated_frame_saved_regs): Rename
2891 get_frame_saved_regs.
2892 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2893 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2894 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2895 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2896 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2897
e6beb428
AC
28982003-09-25 Andrew Cagney <cagney@redhat.com>
2899
2900 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2901 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2902 and Java.
2903 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2904 arm*-*-* do not use the new frame code.
2905
710122da
DC
29062003-09-25 David Carlton <carlton@kealia.com>
2907
2908 * c-exp.y: Remove 'register' declarations.
2909 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2910
79c2c32d
DC
29112003-09-25 David Carlton <carlton@kealia.com>
2912
2913 * c-exp.y: Include cp-support.h. Add qualified_type.
2914 (yylex): Delete nested type hack; add comments.
2915 * cp-namespace.c (cp_lookup_nested_type): New function.
2916 * cp-support.h: Declare cp_lookup_nested_type.
2917 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2918 instead of value_struct_elt_for_reference.
2919 * valops.c: Include cp-support.h.
2920 (value_aggregate_elt): New function.
2921 (value_namespace_elt): Ditto.
2922 (value_struct_elt_for_reference): Make static.
2923 * value.h: Delete declaration of value_struct_elt_for_reference;
2924 add declaration for value_aggregate_elt.
2925 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2926 (valops.o): Ditto.
2927
898c62f5
DJ
29282003-09-25 Daniel Jacobowitz <drow@mvista.com>
2929
2930 * stack.c: Include "reggroups.h".
2931 (frame_info): Only display registers in all_reggroup.
2932 * Makefile.in (stack.o): Update dependencies.
2933
28cd8767
JG
29342003-09-25 Jerome Guitton <guitton@act-europe.fr>
2935
2936 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2937 "add ip, sp #n" in the prologue.
2938 (arm_scan_prologue): Ditto.
2939
a4ab2b5d
JG
29402003-09-25 Jerome Guitton <guitton@act-europe.fr>
2941
2942 * MAINTAINERS (write after approval): Add myself.
2943
3f244638
AS
29442003-09-25 Andreas Schwab <schwab@suse.de>
2945
2946 * m68k-tdep.c: Include "dwarf2-frame.h".
2947 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2948 * Makefile.in (m68k-tdep.o): Update dependencies.
2949
1c0159e0
CV
29502003-09-25 Corinna Vinschen <vinschen@redhat.com>
2951
2952 * sh-tdep.c (struct frame_extra_info): Remove.
2953 (struct sh_frame_cache): New structure.
2954 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2955 (GET_TARGET_REG): Ditto but target register.
2956 (GET_PUSHED_REG): Remove.
2957 (IS_MOV_ARG_TO_REG): New macro.
2958 (IS_MOV_ARG_TO_IND_R14): New macro.
2959 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2960 (IS_MOVW_PCREL_TO_REG): New macro.
2961 (IS_MOVL_PCREL_TO_REG): New macro.
2962 (IS_SUB_REG_FROM_SP): New macro.
2963 (IS_ARG_MOV): Remove.
2964 (IS_MOV_TO_R14): Remove.
2965 (IS_RESTORE_FP): New macro.
2966 (IS_RTS): New macro.
2967 (IS_LDS): New macro.
2968 (IS_MOV_FP_SP): New macro.
2969 (IS_ADD_REG_TO_FP): New macro.
2970 (IS_ADD_IMM_FP): New macro.
2971 (sh_skip_prologue_hard_way): Remove.
2972 (sh_saved_pc_after_call): Remove.
2973 (sh_frame_chain): Remove.
2974 (sh_find_callers_reg): Remove.
a8f4cde1 2975 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2976 (sh_fp_frame_init_saved_regs): Remove.
2977 (sh_init_extra_frame_info): Remove.
2978 (sh_analyze_prologue): New function.
2979 (sh_skip_prologue): Remove deprecated code. Rely on new function
2980 sh_analyze_prologue when after_prologue fails.
2981 (sh_frame_saved_pc): Remove.
2982 (sh_alloc_frame_cache): New function.
2983 (sh_frame_cache): Ditto.
2984 (sh_frame_prev_register): Ditto.
2985 (sh_frame_this_id): Ditto.
2986 (sh_frame_unwind): New structure defining the heuristic frame
2987 sniffer interface.
2988 (sh_frame_sniffer): New function.
2989 (sh_unwind_sp): Ditto.
2990 (sh_unwind_pc): Ditto.
2991 (sh_unwind_dummy_id): Ditto.
2992 (sh_frame_base_address): Ditto.
2993 (sh_frame_base): New structure defining new frame base code.
2994 (sh_in_function_epilogue_p): New function.
2995 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2996 code and to call all new code instead. Initialize dwarf2 and
2997 heuristic frame sniffer.
2998
5f9769d1
PH
29992003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
3000
a8f4cde1
RM
3001 * parser-defs.h (struct exp_descriptor): New definition, containing
3002 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
3003 evaluating expressions.
3004 (exp_descriptor_standard): Declare new variable.
3005 (print_subexp): Make global and declare here (from expprint.c).
3006 (dump_subexp): Ditto.
3007 (dump_subexp_body_standard): Declare.
3008 (operator_length_standard): Declare.
3009 (op_name_standard): Declare.
3010 (print_subexp): Declare.
3011 (print_subexp_standard): Declare.
3012
3013 * language.h (struct language_defn): Add la_exp_desc field to hold
3014 pointer to table for language-specific operators.
3015 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
3016
3017 * parse.c (operator_length): Move most code to new
5f9769d1 3018 operator_length_standard function. Use language-specific information.
a8f4cde1 3019 (operator_length_standard): New function taking most code from
5f9769d1
PH
3020 operator_length.
3021 (exp_descriptor_standard): New constant.
a8f4cde1
RM
3022
3023 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 3024 and OP_EXTENDED_LAST.
a8f4cde1
RM
3025
3026 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
3027 Make global; remove static declaration.
3028 Move most code to print_subexp_standard.
a8f4cde1 3029 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
3030 print_subexp.
3031 (op_name): Add expression to argument signature.
a8f4cde1 3032 Use langauge-specific op_name.
5f9769d1
PH
3033 Move most code to op_name_standard.
3034 (op_name_standard): New function, containing code formerly in op_name.
3035 (dump_subexp): Use new version of op_name function.
3036 Use language-specific dump_subexp_body, and move most existing code to
3037 dump_subexp_body_standard.
3038 (dump_raw_expression): Use new op_name interface.
3039 (dump_subexp_body): Move most code to dump_subexp_body_standard.
3040 (dump_subexp_body_standard): New function, containing code formerly
3041 in dump_subexp_body.
a8f4cde1 3042
5f9769d1
PH
3043 * language.c (unknown_language): Add default la_exp_desc field and
3044 remove evaluate_exp field.
3045 (auto_language): Ditto.
3046 (local_language): Ditto.
3047 * f-lang.c (f_language_defn): Ditto.
3048 * c-lang.c (c_language_defn): Ditto.
3049 (cplus_language_defn): Ditto.
3050 (asm_language_defn): Ditto.
3051 (minimal_language_defn): Ditto.
3052 * p-lang.c (pascal_language_defn): Ditto.
3053 * m2-lang.c (m2_language_defn): Ditto.
3054 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
3055
3056 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
3057 Java-specific expression evaluator.
3058 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
3059 field.
a8f4cde1 3060 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
3061 Scheme-specific expression evaluator.
3062 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
3063 field.
3064 * objc-lang.c (print_object_command): Take evaluate_exp from the
3065 la_exp_desc field.
a8f4cde1 3066
5f9769d1 3067 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
3068
3069 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
3070 la_exp_desc's type.
3071 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 3072
24daaebc
PH
30732003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
3074
3075 * parser-defs.h (operator_length): Declare.
a8f4cde1 3076
24daaebc
PH
3077 * parse.c (length_of_subexp): Use operator_length to get operator
3078 lengths and arities for operators.
3079 Move most code to new operator_length function.
a8f4cde1 3080 (operator_length): New function absorbing most code from
24daaebc
PH
3081 length_of_subexp.
3082 (prefixify_subexp): Remove large case and use operator_length instead.
3083 (parse_exp_1): Use renamings:
a8f4cde1 3084 dump_prefix_expression => dump_raw_expression and
24daaebc 3085 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 3086
24daaebc
PH
3087 * expression.h (dump_prefix_expression): Rename to ...
3088 (dump_raw_expression): New name.
3089 (dump_postfix_expression): Rename to ...
3090 (dump_prefix_expression): New name.
a8f4cde1 3091
24daaebc
PH
3092 * expprint.c (dump_subexp): Make global. Add comment.
3093 Move most existing code to dump_subexp_body.
3094 (dump_subexp_body): New function.
3095 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 3096 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
3097 work before the expression is prefixified.
3098 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 3099 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 3100 that's what it does.
a8f4cde1 3101 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
3102 prefixified expression.
3103 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 3104
8c2957c4
JB
31052003-09-22 Jim Blandy <jimb@redhat.com>
3106
3107 * dwarf2read.c (read_array_type): When building the type for an
3108 array of unspecified length, make sure to choose the upper bound
3109 so that the array's total length comes out to be zero --- that's
3110 how we represent such arrays.
3111
592e3010
MC
31122003-09-22 Michael Chastain <mec@shout.net>
3113
3114 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3115
365c70b1
JJ
31162003-09-22 Jeff Johnston <jjohnstn@redhat.com>
3117
3118 * top.c (quit_force): Fix indirect call to quit_target so
3119 a struct qt_args pointer is passed.
3120
5d6eb653
AC
31212003-09-22 Andrew Cagney <cagney@redhat.com>
3122
3123 * arch-utils.h (init_frame_pc_noop): Delete declaration.
3124 * arch-utils.c (init_frame_pc_noop): Delete function.
3125 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3126 "init_frame_pc".
3127 * mips-tdep.c (mips_gdbarch_init): Ditto.
3128 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3129 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3130 declaration.
3131 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3132 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3133 declaration.
3134 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3135
b222a67f
AG
31362003-09-22 Anthony Green <green@redhat.com>
3137
3138 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3139 declaration.
3140
d5b5ac79
AC
31412003-09-20 Andrew Cagney <cagney@redhat.com>
3142
deafb061
AC
3143 * breakpoint.c: Eliminate ARGSUSED.
3144 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3145 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3146 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3147 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3148 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3149 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3150 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3151 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3152 * wince.c, remote-vx.c: Ditto.
3153
d5b5ac79
AC
3154 * cli/cli-script.c: Remove "register" attributes.
3155 * config/pa/tm-hppa.h: Ditto.
3156 * cli/cli-decode.c: Ditto.
3157 * cli/cli-cmds.c: Ditto.
3158
c6316faa
AC
31592003-09-19 Andrew Cagney <cagney@redhat.com>
3160
3161 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3162 DEPRECATED_NPC_REGNUM.
3163 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3164
f4f99b11
CF
31652003-09-19 Christopher Faylor <cgf@redhat.com>
3166
3167 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3168
1708f284
JB
31692003-09-19 Jim Blandy <jimb@redhat.com>
3170
3171 * macrotab.c (macro_include): Use the correct comparison to find
3172 the appropriate place for this inclusion in the list.
3173
b9fbf434
AC
31742003-09-19 Andrew Cagney <cagney@redhat.com>
3175
3176 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3177 (DEPRECATED_HPUX_TEXT_END): Define.
3178 (deprecated_hpux_text_end): Declare.
3179 (struct target_ops): Declare opaque.
3180 * hppah-nat.c (text_end): Make static.
3181 (deprecated_hpux_text_end): New function.
3182 * exec.c (text_end): Delete global variable.
3183 (NEED_TEXT_START_END): Do not define.
3184 (exec_file_attach): Replace code computing "text_end" code with
3185 call to DEPRECATED_HPUX_TEXT_END.
3186
5b03f266
AC
31872003-09-19 Andrew Cagney <cagney@redhat.com>
3188
3189 * utils.c (align_up, align_down): New functions.
3190 * defs.h (align_up, align_down): Declare.
3191 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3192 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3193 and "align_down".
3194 (round_up, round_down): Delete functions.
3195 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3196 "align_down".
3197 (ROUND_DOWN, ROUND_UP): Delete macros.
3198 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3199 * h8300-tdep.c: Replace "round_up" and "round_down" with
3200 "align_up" and "align_down".
3201 (round_up, round_down): Delete macros.
3202 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3203 "align_down".
3204 (ROUND_UP, ROUND_DOWN): Delete macros.
3205
51db5742
JB
32062003-09-18 J. Brobecker <brobecker@gnat.com>
3207
3208 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3209 hard-coded constant. Use the proper machine name instead.
3210
77949794
AC
32112003-09-17 Andrew Cagney <cagney@redhat.com>
3212
3213 * sparc-tdep.c (legacy_register_name): Delete function.
3214 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3215 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3216 * infcmd.c (gdb_register_name): Delete variable.
3217 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3218 REGISTER_NAME and "tm.h".
3219 * gdbarch.h, gdbarch.c: Regenerate.
3220 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3221 REGISTER_NAMES in comments.
3222 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3223 * m68klinux-nat.c (regmap): Ditto.
3224
b55c33cc
JB
32252003-09-17 Jim Blandy <jimb@redhat.com>
3226
3227 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3228
957e27ac
AC
32292003-09-17 Andrew Cagney <cagney@redhat.com>
3230
3231 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3232 (ppcnbsd_init_abi): Set "use_struct_convention" to
3233 "ppcnbsd_use_struct_convention".
3234
192cb3d4
MK
32352003-09-17 Mark Kettenis <kettenis@gnu.org>
3236
3237 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3238 * gdbarch.h, gdbarch.c: Regenerate.
3239 (stabs_argument_has_addr): New architecture method.
3240 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3241 * arch-utils.c: Include "buildsym.h".
3242 (default_stabs_argument_has_addr): New function.
3243 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3244 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3245
efe59759
AC
32462003-09-17 Andrew Cagney <cagney@redhat.com>
3247
3248 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3249 * gdbarch.h, gdbarch.c: Regenerate.
3250 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3251 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3252 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3253 * sparcnbsd-tdep.c: Update.
a8f4cde1 3254
62700349
AC
32552003-09-17 Andrew Cagney <cagney@redhat.com>
3256
3257 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3258 * gdbarch.h, gdbarch.c: Regenerate.
3259 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3260 * d10v-tdep.c, frame.c: Update.
3261 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3262 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3263 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3264 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3265 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3266 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3267 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3268 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3269 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3270 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3271 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3272 * config/pa/nm-hppah.h: Update.
3273
b9ff3018
AC
32742003-09-16 Andrew Cagney <cagney@redhat.com>
3275
3276 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3277 "use_struct_convention" to "ppc_linux_use_struct_convention".
3278 (ppc_linux_use_struct_convention): New function.
3279 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3280 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3281 "rs6000_use_struct_convention".
3282 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3283 declaration.
3284 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3285 Delete function.
3286
aa1ee363
AC
32872003-09-16 Andrew Cagney <cagney@redhat.com>
3288
3289 * buildsym.c: Remove more occurances of "register".
3290 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3291 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3292 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3293 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3294 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3295 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3296 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3297 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3298
f2ea0907
CV
32992003-09-16 Corinna Vinschen <vinschen@redhat.com>
3300
3301 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3302 numbers to enumeration values.
3303 * sh-tdep.c: Accomodate above change.
3304 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3305 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3306 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3307 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3308 (IS_FPUSH): Rename from IS_FMOV.
3309 (sh_extract_struct_value_address): Remove useless comment.
3310 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3311 instead of own local values.
3312 (sh_dump_tdep): Remove.
3313 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3314 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3315
1c704f11
AC
33162003-09-15 Andrew Cagney <cagney@redhat.com>
3317
3318 * doublest.c (convert_floatformat_to_doublest): No longer need to
3319 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3320
ac79b88b
DJ
33212003-09-15 Daniel Jacobowitz <drow@mvista.com>
3322
3323 * values.c (unpack_double): Call floatformat_is_valid.
3324
1c671366
MK
33252003-09-15 Mark Kettenis <kettenis@gnu.org>
3326
de5227fb
MK
3327 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3328 ps_strings into a long.
3329
1c671366
MK
3330 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3331 _initialize_am64fbsd_nat.
3332
a604369a
KB
33332003-09-15 Kevin Buettner <kevinb@redhat.com>
3334
3335 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3336 associated with DW_AT_ranges attribute is out of bounds.
3337
b3cacbee
DL
33382003-09-15 David Lecomber <dsl@sources.redhat.com>
3339
3340 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3341
d0f37bb2
MC
33422003-09-14 Michael Chastain <mec@shout.net>
3343
3344 * config/m68k/nm-apollo68v.h: Delete.
3345 * config/m68k/xm-apollo68v.h: Delete.
3346
69517000
AC
33472003-09-14 Andrew Cagney <cagney@redhat.com>
3348
3349 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3350 * dcache.c: Update copyrights and descriptions.
3351 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3352
ef8b349d
AC
33532003-09-14 Andrew Cagney <cagney@redhat.com>
3354
3355 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3356 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3357
52f0bd74
AC
33582003-09-14 Andrew Cagney <cagney@redhat.com>
3359
3360 * alpha-nat.c: Remove some occurances of "register".
3361 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3362 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3363 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3364 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3365 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3366 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3367 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3368 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3369 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3370 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3371 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3372 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3373 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3374 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3375 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3376 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3377 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3378 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3379 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3380 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3381 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3382 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3383
4a4b3fed
AC
33842003-09-13 Andrew Cagney <cagney@redhat.com>
3385
3386 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3387 * ppc-tdep.h (struct regcache): Declare opaque.
3388 * objfiles.h (struct objfile_data): Declare opaque.
3389 * cp-support.h (struct objfile): Declare opaque.
3390 * linux-nat.h (target_waitstatus): Declare opaque.
3391
2110b94f
MK
33922003-09-14 Mark Kettenis <kettenis@gnu.org>
3393
1c671366
MK
3394 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3395 (stabs_argument_has_addr): New architecture method.
3396 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3397 * arch-utils.c: Include "buildsym.h".
3398 (default_stabs_argument_has_addr): New function.
3399 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3400 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3401
2110b94f
MK
3402 * cris-tdep.c (cris_gdbarch_init): Set
3403 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3404 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3405 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3406 * mips-tdep.c (mips_gdbarch_init): Likewise.
3407 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3408 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3409
48436ce6
AC
34102003-09-13 Andrew Cagney <cagney@redhat.com>
3411
3412 * values.c (using_struct_return): Delete "function" and "funcaddr"
3413 parameters.
3414 * value.h (using_struct_return): Update declaration.
3415 * infcmd.c (finish_command_continuation): Update.
3416 (finish_command): Update.
3417 * infcall.c (call_function_by_hand): Update.
3418 * eval.c (evaluate_subexp_standard): Update.
3419
403d9909
CF
34202003-09-13 Christopher Faylor <cgf@redhat.com>
3421
3422 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3423 SSE registers since gdb will not operate correctly without this.
3424 Restore include file ordering munged in previous change.
3425 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3426
ebf7d56b
MK
34272003-09-13 Mark Kettenis <kettenis@gnu.org>
3428
8e823e25
MK
3429 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3430 REG_STRUCT_HAS_ADDR.
3431 * gdbarch.c, gdbarch.h: Updated.
3432 * infcall.c (call_function_by_hand): Update.
3433 * stabsread.c (define_symbol): Updated.
a8f4cde1 3434
ebf7d56b
MK
3435 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3436
d3f13f72
CF
34372003-09-12 Christopher Faylor <cgf@redhat.com>
3438
3439 * win32-nat.c: Reorganize so that defines used by target headers are
3440 actually defined by the system headers.
3441 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3442 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3443
14f75137
JB
34442003-09-12 Jim Blandy <jimb@redhat.com>
3445
d646061f
JB
3446 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3447 the file has no .data, .bss, or .rodata sections. Instead wait
3448 until we see a variable alleged to live in one of those sections.
3449
2a13f9bc
JB
3450 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3451 .bss section, presume that any variables we find live in the
3452 .rodata section.
3453
4f49b26b
JB
3454 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3455 offsets for global and static variables.
3456
14f75137
JB
3457 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3458 symbol types are, by definition, in the .data section, so it is
3459 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3460 If there is no .data section, there should be no N_DATA or N_DATA
3461 | N_EXT symbols.
3462
212c460c
MK
34632003-09-12 Mark Kettenis <kettenis@gnu.org>
3464
3465 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3466 (amd64fbsd_sigcontext_addr): Rewrite.
3467 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3468 with correct values.
3469 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3470 (amd64fbsd_init_abi): Fix typo.
3471
68856ea3
AC
34722003-09-12 Andrew Cagney <cagney@redhat.com>
3473
3474 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3475 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3476
627b3ba2
AC
34772003-09-12 Andrew Cagney <cagney@redhat.com>
3478
3479 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3480 "entry_file_highpc". Update comments.
3481 * defs.h (deprecated_inside_entry_file): Rename
3482 "inside_entry_file".
3483 * blockframe.c (deprecated_inside_entry_file): Rename
3484 "inside_entry_file".
3485 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3486 * vax-tdep.c (vax_frame_chain): Update.
3487 * sh64-tdep.c (sh64_frame_chain): Update.
3488 * sh-tdep.c (sh_frame_chain): Update.
3489 * rs6000-tdep.c (rs6000_frame_chain): Update.
3490 * ns32k-tdep.c (ns32k_frame_chain): Update.
3491 * mips-tdep.c (mips_frame_chain): Update.
3492 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3493 * m32r-tdep.c (m32r_frame_this_id): Update.
3494 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3495 * frv-tdep.c (frv_frame_this_id): Update.
3496 * d10v-tdep.c (d10v_frame_this_id): Update.
3497 * cris-tdep.c (cris_frame_chain): Update.
3498 * blockframe.c (legacy_frame_chain_valid): Update.
3499 * avr-tdep.c (avr_frame_this_id): Update.
3500 * arm-tdep.c (arm_prologue_this_id): Update.
3501 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3502 * objfiles.c (objfile_relocate): Update.
3503 * mipsread.c (mipscoff_symfile_read): Update.
3504 (mipscoff_symfile_read): Update.
3505 * mdebugread.c (parse_partial_symbols): Update.
3506 * dwarfread.c (read_file_scope): Update.
3507 * dwarf2read.c (read_file_scope): Update.
3508 * dbxread.c (read_dbx_symtab): Update.
3509 (read_dbx_symtab): Update.
3510 * coffread.c (complete_symtab): Update.
3511
b0abbc58
JJ
35122003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3513
3514 * top.c (quit_target): New static helper function.
3515 (quit_force): Moved code to quit_target(). Call quit_target()
3516 via catch_errors() to catch errors during quit.
3517
a1632d59
DC
35182003-09-11 David Carlton <carlton@kealia.com>
3519
3520 * buildsym.c (finish_block): Use allocate_block to allocate the
3521 block.
3522 * mdebugread.c (new_block): Add FIXME.
3523
5c4e30ca
DC
35242003-09-11 David Carlton <carlton@kealia.com>
3525
3526 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3527 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3528 (recursive_dump_type): Ditto.
3529 * printcmd.c (print_formatted): Ditto.
3530 * typeprint.c (print_type_scalar): Ditto.
3531 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3532 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3533 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3534 maint_cplus_cmd_list.
3535 * cp-support.c: Make maint_cplus_cmd_list extern.
3536 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3537 command.h.
3538 (lookup_symbol_file): Look in possible namespace blocks when
3539 appropriate.
3540 (initialize_namespace_symtab): New.
3541 (get_possible_namespace_block, free_namespace_block)
3542 (check_possible_namespace_symbols)
3543 (check_possible_namespace_symbols_loop)
3544 (check_one_possible_namespace_symbol)
3545 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3546 (_initialize_cp_namespace): Ditto.
3547 * block.h: Declare allocate_block.
3548 * block.c (allocate_block): New.
3549 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3550 allocate_block.
3551 * symfile.h: Update declaration of add_psymbol_to_list.
3552 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3553 question.
3554 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3555 scan_partial_symbols_call.
3556 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3557 helper functions.
3558 (add_partial_symbol): If necessary, scan mangled names for names
3559 of namespaces.
3560 (add_partial_namespace): Add NAMESPACE argument; generate partial
3561 symbols associated to namespaces.
3562 (add_partial_enumeration): Add NAMESPACE argument.
3563 (new_symbol): Allow namespace syms.
3564 (read_namespace): Generate namespace syms.
3565 * objfiles.h: Add opaque declaration of struct symtab.
3566 (struct objfile): Add cp_namespace_symtab member.
3567 * objfiles.c (allocate_objfile): Set
3568 objfile->cp_namespace_symtab.
3569 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3570 dictionary_h, command_h.
3571
33a7c2fc
AC
35722003-09-11 Andrew Cagney <cagney@redhat.com>
3573
3574 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3575 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3576 near the function's end.
3577 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3578 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3579 regcache_raw_write_signed to set SP_REGNUM.
3580
63cd24fe
EZ
35812003-09-11 Elena Zannoni <ezannoni@redhat.com>
3582
3583 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3584 orig_addrs is set up properly.
3585
f27dd7fd
AC
35862003-09-11 Andrew Cagney <cagney@redhat.com>
3587
3588 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3589 * gdbarch.h, gdbarch.c: Re-generate.
3590 * infcall.c (call_function_by_hand): Update.
3591 * hppa-tdep.c (hppa_push_arguments): Update.
3592 * ada-lang.c (place_on_stack): Update.
3593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3594 * sparc-tdep.c (sparc_gdbarch_init): Update.
3595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3596 * hppa-tdep.c (hppa_gdbarch_init): Update.
3597 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3598 stack_align.
3599
f630a401
DJ
36002003-09-11 Daniel Jacobowitz <drow@mvista.com>
3601
3602 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3603 register do need a frame.
3604
0ddabb4c
AC
36052003-09-11 Andrew Cagney <cagney@redhat.com>
3606
3607 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3608 buildable since GDB 5.0.
3609 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3610 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3611 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3612 * irix4-nat.c: Delete file.
3613 * config/mips/irix4.mh: Delete file.
3614 * config/mips/irix3.mh: Delete file.
3615 * config/mips/irix3.mt: Delete file.
3616 * config/mips/tm-irix3.h: Delete file.
3617 * config/mips/nm-irix3.h: Delete file.
3618 * config/mips/xm-irix3.h: Delete file.
3619 * config/mips/nm-irix4.h: Delete file.
3620 * config/mips/xm-irix4.h: Delete file.
3621 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3622
fde2cceb
JB
36232003-09-10 J. Brobecker <brobecker@gnat.com>
3624
3625 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3626 * Makefile.in (hppa-tdep.o): Update dependencies.
3627
66f667f5
JW
36282003-09-10 James E Wilson <wilson@specifixinc.com>
3629
ef5fd69f
JW
3630 * MAINTAINERS: Change my e-mail address. Move to paper trail
3631 section.
66f667f5 3632
53e8aaea
KB
36332003-09-10 Kevin Buettner <kevinb@redhat.com>
3634
3635 * MAINTAINERS (frv): New ISA entry.
3636
dcc6aaff
KB
36372003-09-10 Kevin Buettner <kevinb@redhat.com>
3638
3639 * frv-tdep.c (dis-asm.h): Include.
3640 * Makefile.in (frv-tdep.o): Update dependencies.
3641
932644f0
JJ
36422003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3643
3644 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3645 Fix typo for high range of floating registers.
3646
91c24f0a
DC
36472003-09-09 David Carlton <carlton@kealia.com>
3648
3649 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3650 highpc initialization here out of scan_partial_symbols.
3651 (scan_partial_symbols): Restructure into a recursive version,
3652 calling add_partial_namespace and add_partial_enumeration when
3653 appropriate.
3654 (add_partial_namespace): New.
3655 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3656
c9263853
AC
36572003-09-09 Andrew Cagney <cagney@redhat.com>
3658
e56a0ecc
AC
3659 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3660 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3661 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3662 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3663
794a477a
AC
3664 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3665 (rs6000_push_dummy_call): Set the "TOC" register.
3666
c9263853
AC
3667 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3668 methods "max_register_raw_size", "max_register_virtual_size" or
3669 "register_virtual_size".
3670
afa7d0b2
ILT
36712003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3672
3673 * MAINTAINERS: Update my e-mail address.
3674
7a41266b
AC
36752003-09-09 Andrew Cagney <cagney@redhat.com>
3676
3677 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3678 (rs6000_push_dummy_call): Store the struct return address.
3679 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3680
77b2b6d4
AC
36812003-09-09 Andrew Cagney <cagney@redhat.com>
3682
3683 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3684 "ppc_sysv_abi_push_arguments".
3685 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3686 "ppc_sysv_abi_push_arguments".
3687 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3688 instead of "push_arguments".
3689 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3690
e8a7b686
AC
36912003-09-09 Andrew Cagney <cagney@redhat.com>
3692
3693 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3694 instead of CALL_DUMMY_ADDRESS.
3695
f86f5ca3
PH
36962003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3697
3698 * p-lang.c: Eliminate "register".
3699 * c-lang.c: Ditto.
3700 * expprint.c: Ditto.
3701 * f-lang.c: Ditto.
3702 * jv-lang.c: Ditto.
3703 * language.c: Ditto.
3704 * m2-lang.c: Ditto.
3705 * parse.c: Ditto.
3706 * scm-lang.c: Ditto.
3707 * objc-lang.c: Ditto.
3708
83ee270e
NC
37092003-09-09 Nick Clifton <nickc@redhat.com>
3710
3711 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3712
a89aa300
AC
37132003-09-04 Andrew Cagney <cagney@redhat.com>
3714
3715 * avr-tdep.c: Include "dis-asm.h".
3716 * cris-tdep.c: Include "dis-asm.h".
3717 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3718 instead of corresponding typedef.
3719 * h8300-tdep.c: Include "dis-asm.h".
3720 * ia64-tdep.c: Include "dis-asm.h".
3721 * i386-tdep.c: Include "dis-asm.h".
3722 (i386_print_insn): Use "struct disassemble_info" instead of
3723 corresponding typedef.
3724 * m68k-tdep.c: Include "dis-asm.h".
3725 * mcore-tdep.c: Include "dis-asm.h".
3726 * mips-tdep.c: Include "dis-asm.h".
3727 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3728 instead of corresponding typedef.
3729 * ns32k-tdep.c: Include "dis-asm.h".
3730 * s390-tdep.c: Include "dis-asm.h".
3731 * sparc-tdep.c: Include "dis-asm.h".
3732 * vax-tdep.c: Include "dis-asm.h".
3733 * v850-tdep.c: Include "dis-asm.h".
3734 * mn10300-tdep.c: Include "dis-asm.h".
3735 * rs6000-tdep.c: Include "dis-asm.h".
3736 * xstormy16-tdep.c: Include "dis-asm.h".
3737 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3738 print_insn_xstormy16.
3739 * Makefile.in (v850-tdep.o): Update dependencies.
3740 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3741 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3742 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3743 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3744 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3745 (gdbarch_h): Remove $(dis_asm_h).
3746 * disasm.c: Include "dis-asm.h".
3747 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3748 corresponding typedef.
3749 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3750 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3751 * gdbarch.sh: Do not include "dis-asm.h".
3752 (struct disassemble_info): Declare opaque.
3753 (TARGET_PRINT_INSN): Update declaration.
3754 * gdbarch.h, gdbarch.c: Re-generate.
3755
88a82a65
AC
37562003-09-08 Andrew Cagney <cagney@redhat.com>
3757
3758 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3759 CALL_DUMMY_ADDRESS, change to a predicate.
3760 * gdbarch.h, gdbarch.c: Re-generate.
3761 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3762 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3763 * infcall.c (call_function_by_hand): Ditto.
3764 * sparc-tdep.c (sparc_push_return_address): Ditto.
3765 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3766 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3767 CALL_DUMMY_ADDRESS with entry_point_address.
3768 * v850-tdep.c (v850_push_return_address): Ditto.
3769 * s390-tdep.c (s390_push_return_address): Ditto.
3770 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3771 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3772 * mcore-tdep.c (mcore_push_return_address): Ditto.
3773 * cris-tdep.c (cris_push_return_address): Ditto.
3774 * arm-tdep.c (arm_push_return_address): Ditto.
3775
3e2c4033
AC
37762003-09-08 Andrew Cagney <cagney@redhat.com>
3777
3778 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3779 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3780 and REG_UNMODIFIED to REG_SAME_VALUE.
3781 (execute_cfa_program): Update.
3782 (dwarf2_frame_cache): Update. Initialize table to
3783 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3784 location.
3785 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3786
39efb398
AC
37872003-09-08 Andrew Cagney <cagney@redhat.com>
3788
3789 * gnu-nat.c: Remove "inline" function attribute.
3790 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3791
f5cb5aca
KB
37922003-09-08 Kevin Buettner <kevinb@redhat.com>
3793
3794 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3795 target.
3796
1cb761c7
KB
37972003-09-08 Kevin Buettner <kevinb@redhat.com>
3798
3799 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3800 (frame_extra_info): Rename this struct to frv_unwind_cache.
3801 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3802 Add fields ``prev_sp'' and ``base''.
3803 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3804 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3805 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3806 Delete.
3807 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3808 Revise all callers. Fill in the unwind cache argument and make
3809 other adjustments to account for new frame mechanisms.
3810 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3811 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3812 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3813 (frv_frame_unwind, frv_frame_base): New structs.
3814 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3815 additional arguments expected by this method and adjust function
3816 body accordingly.
3817 (frv_gdbarch_init): Remove calls to the following functions:
3818 set_gdbarch_deprecated_init_frame_pc(),
3819 set_gdbarch_deprecated_saved_pc_after_call(),
3820 set_gdbarch_deprecated_frame_chain(),
3821 set_gdbarch_deprecated_frame_saved_pc(),
3822 set_gdbarch_deprecated_frame_init_saved_regs(),
3823 set_gdbarch_deprecated_push_arguments(),
3824 set_gdbarch_deprecated_push_return_address(),
3825 set_gdbarch_deprecated_pop_frame(),
3826 set_gdbarch_deprecated_call_dummy_words(),
3827 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3828 set_gdbarch_deprecated_init_extra_frame_info(),
3829 set_gdbarch_deprecated_dummy_write_sp(), and
3830 set_gdbarch_deprecated_pc_in_call_dummy().
3831 Add calls to the following functions:
3832 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3833 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3834 frame_base_set_default().
3835 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3836
68f6cf99
MK
38372003-09-09 Mark Kettenis <kettenis@gnu.org>
3838
3839 * dwarf2-frame.c (read_encoded_value): Add support for
3840 DW_EH_PE_aligned encoding.
3841
73b65bb0
DJ
38422003-09-08 Daniel Jacobowitz <drow@mvista.com>
3843
3844 * infrun.c (normal_stop): Don't print a message if the inferior
3845 has exited.
3846
7c8a5605
JB
38472003-09-08 Jim Blandy <jimb@redhat.com>
3848
3849 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3850 * dbxread.c: #include "gdb_assert.h".
3851 (read_dbx_symtab): If the objfile has no .data section, use the
3852 section index for the .bss section instead.
3853
7dd88986
DJ
38542003-09-08 Daniel Jacobowitz <drow@mvista.com>
3855
3856 * frame.c (deprecated_safe_get_selected_frame): New function.
3857 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3858 * findvar.c (read_var_value): Call it.
3859
55ff77ac
CV
38602003-09-08 Corinna Vinschen <vinschen@redhat.com>
3861
3862 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3863 (sh64-tdep.o): Add dependencies.
3864 * configure.tgt: Add FIXME to sh-*-linux*.
3865 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3866 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3867 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3868 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3869 * sh64-tdep.c: New file, containing all sh64 related code from
3870 sh-tdep.c.
3871 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3872 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3873 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3874 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3875 * config/sh/wince.mt (TDEPFILES): Ditto.
3876
bfb39158
DJ
38772003-09-07 Daniel Jacobowitz <drow@mvista.com>
3878
3879 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3880 (stop_wait_callback): Handle !lp->signalled also.
3881 (lin_lwp_has_pending, flush_callback): New functions.
3882 (lin_lwp_wait): Call flush_callback.
3883 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3884 (linux_proc_pending_signals): New function.
3885 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3886
9407de8e
DJ
38872003-09-07 Daniel Jacobowitz <drow@mvista.com>
3888
3889 From Nick Kelsey <nickk@ubicom.com>:
3890 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3891 when the stop PC is at the beginning of a function also.
3892
2ef47cd0
DJ
38932003-09-06 Daniel Jacobowitz <drow@mvista.com>
3894
3895 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3896 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3897
6f4492c8
MK
38982003-09-06 Mark Kettenis <kettenis@gnu.org>
3899
3900 * sol-thread.c: Include "gdb_string.h".
3901
d3420b2f
MK
39022003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3903
3904 * gcore.c: Reorder include files in alphabetical order. Include
3905 "gdb_assert.h". Various coding style fixes.
3906 (derive_stack_segment, derive_heap_segment): Replace check for
3907 non-null BOTTOM and TOP with gdb_assert.
3908 (derive_heap_segment): Replace check for successful creation of
3909 ZERO with gdb_assert.
3910 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3911
5220ea4c
AC
39122003-09-04 Andrew Cagney <cagney@redhat.com>
3913
3914 * thread-db.c (verbose_dlsym): New function.
3915 (thread_db_load): Use verbose_dlsym
3916 (thread_db_new_objfile): Print that libthread_db was loaded, and
3917 that thread debugging was enabled.
3918
6e8c2c06
AC
39192003-09-04 Andrew Cagney <cagney@redhat.com>
3920
3921 * configure.tgt: Add "mips64*-*-*" target. Delete
3922 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3923 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3924 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3925 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3926 mips*-sony-*, and mips64*-*-elf* targets.
3927 * config/mips/embedl.mt: Delete file.
3928 * config/mips/embedl64.mt: Delete file.
3929 * config/mips/mips.mt: Delete file.
3930 * config/mips/mips64.mt: Delete file.
3931 * config/mips/tm-embed.h: Delete file.
3932 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3933 * config/mips/embed64.mt: Delete out-of-date comment.
3934
3a3bc038
AC
39352003-09-04 Andrew Cagney <cagney@redhat.com>
3936
3937 * hppa-tdep.c (hppa_gdbarch_init): Set
3938 "have_nonsteppable_watchpoint".
3939 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3940 * mips-tdep.c (mips_dump_tdep): Do not print
3941 HAVE_NONSTEPPABLE_WATCHPOINT.
3942 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3943 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3944 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3945 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3946
a957e642
CV
39472003-09-04 Corinna Vinschen <vinschen@redhat.com>
3948
3949 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3950 unused code. Add comment.
3951
a6fbcf2f
CV
39522003-09-04 Corinna Vinschen <vinschen@redhat.com>
3953
3954 * breakpoint.c (watchpoint_check): Check for pc being in an
3955 epilogue if watchpoint frame couldn't be found.
3956
c14a44d5
AC
39572003-09-04 Andrew Cagney <cagney@redhat.com>
3958
3959 * Makefile.in: Re-generate all dependencies.
3960
f6c40618
AC
39612003-09-03 Andrew Cagney <cagney@redhat.com>
3962
3963 * arch-utils.h (legacy_print_insn): Delete declaration.
3964 * arch-utils.c (legacy_print_insn): Delete function.
3965 * disasm.c (deprecated_tm_print_insn_info): Delete.
3966 (_initialize_disasm): Delete function, contained code initializing
3967 deprecated_tm_print_insn_info.
3968 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3969 (deprecated_tm_print_insn_info): Delete.
3970 (TARGET_PRINT_INSN): Do not provide a default.
3971 * gdbarch.h, gdbarch.c: Re-generate.
3972
242e8be5
AC
39732003-09-03 Andrew Cagney <cagney@redhat.com>
3974
3975 * disasm.c (fprintf_disasm): New function.
3976 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3977 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3978 reverts 2003-08-14 change.
3979 (_initialize_disasm): Call "init_disassemble_info", instead of
3980 INIT_DISASSEMBLE_INFO_NO_ARCH.
3981
3ffc3dda
MS
39822003-09-03 Michael Snyder <msnyder@redhat.com>
3983
3984 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3985
52d16ba8
AC
39862003-09-03 Andrew Cagney <cagney@redhat.com>
3987
3988 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3989 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3990 * symfile.c (syms_from_objfile): Update.
3991 (reread_symbols): `Update
3992 * exec.c (exec_file_attach): Update.
3993 (exec_file_attach): Update.
3994 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3995 2003-08-29 change.
3996 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3997
eb5492fa
DJ
39982003-09-03 Daniel Jacobowitz <drow@mvista.com>
3999
4000 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
4001 trad-frame.h.
4002 (arm_get_cache): Delete macro.
4003 (struct arm_prologue_cache): Update comments. Make saved_regs into
4004 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
4005 to prev_sp.
4006 (thumb_scan_prologue): Update for cache changes. Don't call
4007 DEPRECATED_PC_IN_CALL_DUMMY.
4008 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
4009 argument and use it in desperation search for our prologue. Do not
4010 search past the specified PC.
4011 (arm_make_prologue_cache): Simplify.
4012
4013 (arm_prologue_this_id, arm_prologue_prev_register)
4014 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
4015 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
4016 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
4017 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
4018 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
4019
4020 (arm_frame_chain_valid, arm_find_callers_reg)
4021 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
4022 (arm_pop_frame): Delete obsolete methods.
4023 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
4024
4025 (arm_gdbarch_init): Update for new frame methods. Register prologue
4026 and sigtramp unwinders. Set the default frame base method.
4027
4028 * Makefile.in (arm-tdep.o): Update dependencies.
4029 * varobj.c (find_frame_addr_in_frame_chain): Call
4030 get_frame_base_address.
4031 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4032
24de872b
DJ
40332003-09-03 Daniel Jacobowitz <drow@mvista.com>
4034
4035 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
4036 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
4037 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
4038 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
4039 Take NEXT_FRAME and CACHE arguments. Call
4040 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
4041 Set unwound_pc in CACHE instead of modifying the frame argument.
4042 Don't bother checking the frame type when looking for sigtramp
4043 frames.
4044 (arm_make_prologue_cache, arm_frame_chain)
4045 (arm_init_extra_frame_info): New functions.
4046
9b8d791a
DJ
40472003-09-03 Daniel Jacobowitz <drow@mvista.com>
4048
4049 * arm-tdep.c (arm_get_cache): Define.
4050 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
4051 unwound_sp, unwound_pc, and saved_regs.
4052 (thumb_scan_prologue): Take a cache instead of the frame.
4053 (arm_scan_prologue): Likewise.
4054 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
4055 instead of a temporary frame.
4056 (arm_init_extra_frame_info): Allocate and use a cache.
4057 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
4058
7ee3275f
AC
40592003-09-03 Andrew Cagney <cagney@redhat.com>
4060
4061 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
4062 * config/mips/wince.mt (TM_CLIBS): Ditto.
4063 * config/sh/wince.mt (TM_CLIBS): Ditto.
4064 * config/pa/hppa64.mt (TM_CLIBS): Delete.
4065 * config/sparc/sp64.mt (CC): Delete.
4066
57b29be7
AC
40672003-09-03 Andrew Cagney <cagney@redhat.com>
4068
4069 * defs.h: Do not include "arch-utils.h".
4070 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
4071 GDB_MULTI_ARCH_PURE.
4072 * configure.in (GDB_MULTI_ARCH): Do not define.
4073 * configure, config.in: Regenerate.
4074 * configure.tgt: Do not set variable "gdb_multi_arch".
4075 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
4076 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
4077 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
4078 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
4079 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
4080 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
4081 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
4082 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
4083 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
4084 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
4085 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
4086 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
4087 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
4088 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
4089 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
4090 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
4091 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
4092 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 4093
12e035e2
MC
40942003-08-30 Michael Chastain <mec@shout.net>
4095
4096 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
4097 * config/m68k/nm-hp300hpux.h: Delete.
4098 * config/m68k/tm-hp300hpux.h: Delete.
4099 * config/m68k/xm-hp300hpux.h: Delete.
4100 * config/m68k/xm-hp300bsd.h: Delete.
4101 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
4102 tm-hp300hpux.h, xm-hp300hpux.h.
4103 * somsolib.c: Remove comment about hp300 shared libraries.
4104
bda34dc2
MK
41052003-08-31 Mark Kettenis <kettenis@gnu.org>
4106
5bca7895
MK
4107 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4108 Only define PTRACE_GET_THREAD_AREA is not already defined.
4109 Various style fixes in code and comments and some additional
4110 spelling fixes in comments. Move after functions dealing with
4111 debug registers.
4112 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4113 Fix coding-style.
4114
bda34dc2
MK
4115 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4116 frame_unwind_register_unsigned instead of
4117 frame_unwind_unsigned_register.
4118
c890192f
MK
41192003-08-30 Mark Kettenis <kettenis@gnu.org>
4120
4121 * configure.in: Search for gethostbyname in libnsl.
4122 * configure: Regenerated.
4123
60fac5b8
MK
41242003-08-29 Mark Kettenis <kettenis@gnu.org>
4125
e294916c
MK
4126 * configure.in: Remove redundant AC_MSG_RESULT in check for
4127 uintptr_t in stdint.h.
4128 * configure: Regenerated.
4129
c40d267a
MK
4130 * amd64-nat.h (struct regcache): Add opaque declaration.
4131
60fac5b8
MK
4132 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4133 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4134 Change "register array" to "register cache" in comments.
4135 (x86_64_linux_gregset64_reg_offset): New variable.
4136 (GETREGS_SUPPLIES): Remove macro.
4137 (supply_gregset): Call amd64_supply_native_gregset instead of
4138 x86_64_linux_supply_gregset.
4139 (fill_gregset): Rename `regno' to `regnum'. Call
4140 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4141 (store_regs): Rename `regno' to `regnum'.
4142 (store_fpregs): Rename `regno' to `regnum'.
4143 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
4144 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4145 Reorganize function a bit.
4146 (store_inferior_registers): Rename `regno' to `regnum'. Use
4147 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4148 Reorganize function a bit.
4149 (_initialize_x86_64_linux_nat): New function.
4150 * config/i386/x86-64linux.mh.
4151
546143b6
AC
41522003-08-29 Andrew Cagney <cagney@redhat.com>
4153
4154 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4155 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4156 (target_remove_watchpoint): Delete macro.
4157 (target_insert_watchpoint): Delete macro.
4158 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4159 (remote_mips_stopped_by_watchpoint): Delete declaration.
4160 (remote_mips_remove_watchpoint): Delete declaration.
4161 (remote_mips_set_watchpoint): Delete declaration.
4162 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4163 * remote-mips.c (_initialize_remote_mips): Set
4164 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4165 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4166 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4167 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4168 (mips_stopped_by_watchpoint): Rename
4169 remote_mips_stopped_by_watchpoint.
4170 (mips_can_hardware_watchpoint): Rename
4171 remote_mips_can_use_hardware_watchpoint, update function
4172 signature.
4173
7bace51b
MK
41742003-08-29 Mark Kettenis <kettenis@gnu.org>
4175
b0f5c6f2
MK
4176 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4177 USER_DS. We haven't given them a register number yet.
4178
2a6d284d
MK
4179 * amd64-nat.h: New file.
4180 * amd64-nat.c: New file.
4181 * amd64fbsd-nat.c: Include "amd64-nat.h".
4182 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4183 (amd64fbsd32_r_reg_offset): New variable.
4184 (supply_gregset): Simply call amd64_supply_native_gregset.
4185 (fill_gregset): Rename `regno' to `regnum'. Simply call
4186 amd64_collect_native_gregset.
4187 (fill_fpregset): Rename `regno' to `regnum'.
4188 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4189 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4190 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4191 `fpregset_t'. Call amd64_supply_native_gregset instead of
4192 supply_gregset. Call x86_64_supply_fxsave instead of
4193 supply_fpregset.
4194 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4195 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4196 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4197 `fpregset_t'. Call amd64_collect_native_gregset instead of
4198 fill_gregset. Call x86_64_collect_fxsave instead of
4199 fill_fpregset.
4200 (_initialize_am64fbsd_nat): Initialize
4201 amd64_native_gregset32_reg_offset and
4202 amd64_native_gregset64_reg_offset.
4203 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4204
a16d75cc
MK
4205 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4206 null pointer. Fix typo in comment.
4207
7bace51b
MK
4208 * regcache.c (supply_register): Reimplement to call
4209 regcache_raw_supply.
4210 (regcache_collect): Reimplement by calling regcache_raw_collect.
4211
9a661b68
MK
42122003-08-28 Mark Kettenis <kettenis@gnu.org>
4213
4214 * regcache.c (register_buffer): Consitify first argument.
4215 (regcache_raw_supply, regcache_raw_collect): New
4216 functions.
4217
e94cc8fa
DJ
42182003-08-28 Daniel Jacobowitz <drow@mvista.com>
4219
4220 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4221 by Nathan J. Williams.
4222
c64bd0ce
DJ
42232003-08-28 Daniel Jacobowitz <drow@mvista.com>
4224
4225 * lin-lwp.c (wait_lwp): New function, copied from
4226 stop_wait_callback. Clean up.
4227 (stop_wait_callback): Use wait_lwp.
4228
e5ab0dce
AC
42292003-08-28 Andrew Cagney <cagney@redhat.com>
4230
4231 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4232 flavour and disassembler options.
4233 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4234 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4235 deprecated_tm_print_insn_info.
a8f4cde1 4236
a788de9b
AC
42372003-08-27 Andrew Cagney <cagney@redhat.com>
4238
4239 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4240 Use target_read_memory.
4241 (s390_get_frame_info): Update. Do not reference
4242 deprecated_tm_print_insn_info.
4243 (s390_check_function_end, s390_is_sigreturn): Ditto.
4244
36482093
AC
42452003-08-27 Andrew Cagney <cagney@redhat.com>
4246
4247 * Makefile.in (cris-tdep.o): Update dependencies.
4248 * cris-tdep.c: Include "gdb_assert.h".
4249 (cris_gdbarch_init): Set print_insn.
4250 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4251 (cris_delayed_get_disassembler): Simplify, directly call the
4252 disassembler returned by cris_get_disassembler.
4253 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4254 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4255 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4256 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4257 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4258 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4259 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4260 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4261 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4262 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4263 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4264 (gdb_print_insn_sparc): Delete function.
4265 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4266 deprecated_tm_print_insn_info.
4267 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4268 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4269 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4271 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4272 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4273 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4274 (s390_gdbarch_init): Set print_insn.
4275
0285512f
AC
42762003-08-27 Andrew Cagney <cagney@redhat.com>
4277
4278 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4279 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4280 * infcall.c (call_function_by_hand): Convert the entry point
4281 address into a code address.
4282
cdcd5552
AC
42832003-08-27 Andrew Cagney <cagney@redhat.com>
4284
4285 * dsrec.c: Include "gdb_string.h".
4286 * Makefile.in (dsrec.o): Update dependencies.
4287
e85cddad
MC
42882003-08-27 Michael Chastain <mec@shout.net>
4289
4290 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4291
8bbfbb23
AC
42922003-08-27 Andrew Cagney <cagney@redhat.com>
4293
4294 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4295 (alpha_osf1_init_abi): Do not set call_dummy_address.
4296
ba058b66
DC
42972003-08-27 David Carlton <carlton@kealia.com>
4298
4299 From Randolph Chung <tausq@debian.org>:
4300 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4301 compiles with -Wformat-nonliteral -Werror.
4302
87f84c9d
JB
43032003-08-26 Jim Blandy <jimb@redhat.com>
4304
4305 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4306 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4307 bfd_lookup_symbol, since we only want symbols in code sections.
4308 (look_for_base): Pass zero as the SECT_FLAGS argument to
4309 bfd_lookup_symbol, since we're not concerned about which section
4310 the symbol is in.
4311
102d615a
JJ
43122003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4313
4314 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4315 we are frameless or the return address register is already known.
102d615a 4316
cc7ad3ea
AC
43172003-08-26 Andrew Cagney <cagney@redhat.com>
4318
4319 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4320 in size. Add comments.
4321
af8b88dd
JJ
43222003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4323
4324 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4325 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4326
e0a4f5a1
JM
43272003-08-26 Jason Merrill <jason@redhat.com>
4328
4329 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4330 case out of #ifdef MIPS block.
4331
4ae9ee8e
DJ
43322003-08-25 Daniel Jacobowitz <drow@mvista.com>
4333
4334 PR java/1322
4335 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4336 available before calling SECT_OFF_TEXT.
3c164570 4337 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4338
004d836a
JJ
43392003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4340
a8f4cde1 4341 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4342 bof, and nat0-nat127 as pseudo-registers.
4343 (ia64_frame_cache): New struct used to cache frame info.
4344 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4345 register grouping so registers without names are still saved and
004d836a 4346 restored.
a8f4cde1 4347 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4348 pseudo values.
4349 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4350 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4351 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4352 ia64_frame_cache.
4353 (examine_prologue): Change prototype to add next_frame pointer.
4354 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4355 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4356 alloc insn and if equal, mark as not frameless. At end of routine,
4357 if not frameless, calculate registers for the previous frame and store
4358 in the cache, if a cache is provided.
4359 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4360 and pass 0 for next_frame.
4361 (ia64_store_return_value): Change to use convert_typed_floating()
4362 instead of calling ia64_convert_to_raw().
4363 (ia64_extract_return_value): Change to use convert_typed_floating()
4364 instead of calling ia64_convert_to_virtual().
4365 (ia64_frame_cache): New routine to support new frame model.
4366 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4367 (ia64_frame_sniffer): Ditto.
4368 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4369 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4370 (ia64_sigtramp_frame_prev_register): Ditto.
4371 (ia64_sigtramp_frame_sniffer): Ditto.
4372 (ia64_frame_base_address): Ditto.
4373 (ia64_extract_struct_value_address): Change to issue error message.
4374 (ia64_frame_align): New routine to align sp.
4375 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4376 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4377 ia64_push_dummy_call().
4378 (ia64_push_return_address): Ditto.
4379 (ia64_unwind_dummy_id): New function.
4380 (ia64_unwind_pc): Ditto.
4381 (ia64_convert_register_p): Ditto.
4382 (ia64_register_to_value): Ditto.
4383 (ia64_value_to_register): Ditto.
4384 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4385 (ia64_register_byte, ia64_register_raw_size): Ditto.
4386 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4387 (ia64_saved_pc_after_call): Ditto.
4388 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4389 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4390 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4391 (ia64_register_convert_to_raw): Ditto.
4392 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4393 (ia64_init_extra_frame_info): Ditto.
4394 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4395 (ia64_gdbarch_init): Remove registering of deprecated functions that
4396 are no longer used. Add registration of new gdbarch functions.
4397 Remove registering deprecated_write_sp. Replace
4398 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4399 Delete set_gdbarch_deprecated_register_convertible(),
4400 set_gdbarch_deprecated_register_convert_to_virtual(), and
4401 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4402 set_gdbarch_deprecated_register_size(),
4403 set_gdbarch_deprecated_register_bytes(),
4404 set_gdbarch_pcregnum(),
4405 set_gdbarch_deprecated_register_byte(),
4406 set_gdbarch_deprecated_register_raw_size(),
4407 set_gdbarch_deprecated_max_register_raw_size(),
4408 set_gdbarch_deprecated_register_virtual_size(),
4409 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4410 Replace set_gdbarch_deprecated_extract_return_value() with
4411 set_gdbarch_extract_return_value(). Remove calls to:
4412 set_gdbarch_deprecated_saved_pc_after_call();
4413 set_gdbarch_deprecated_frame_chain(),
4414 set_gdbarch_deprecated_frame_saved_pc(),
4415 set_gdbarch_deprecated_frame_init_saved_regs(),
4416 set_gdbarch_deprecated_get_saved_register(),
4417 set_gdbarch_deprecated_call_dummy_words(),
4418 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4419 set_gdbarch_deprecated_init_extra_frame_info(),
4420 set_gdbarch_deprecated_frame_args_address(),
4421 set_gdbarch_deprecated_frame_locals_address(),
4422 and set_gdbarch_deprecated_dummy_write_sp().
4423 Add set_gdbarch_convert_register_p(),
4424 set_gdbarch_register_to_value(),
4425 set_gdbarch_value_to_register(),
4426 set_gdbarch_push_dummy_call(),
4427 set_gdbarch_frame_align(),
4428 set_gdbarch_unwind_dummy_id(),
4429 set_gdbarch_unwind_pc(),
4430 frame_unwind_append_sniffer(),
4431 frame_unwind_append_sniffer(),
4432 and frame_base_set_default().
4433
aede7613
CD
44342003-08-25 Chris Demetriou <cgd@broadcom.com>
4435
4436 * configure.tgt: Document need for special "mipsisa64" handling.
4437 (mipsisa64*-*-linux64): Handle as target linux64.
4438 (mipsisa64*-*-*): Handle as target embed64.
4439
43c3a82e
MC
44402003-08-18 Michael Chastain <mec@shout.net>
4441
4442 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4443 objfile bug.
4444
6564f77d
MK
44452003-08-24 Mark Kettenis <kettenis@gnu.org>
4446
2de139ba
MK
4447 * i387-tdep.h: Update copyright date.
4448 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4449
6564f77d
MK
4450 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4451 CFLAGS games to reflect reality.
4452
42cf1509
AC
44532003-08-24 Andrew Cagney <cagney@redhat.com>
4454
4455 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4456 GDB_MULTI_ARCH is always non-zero.
4457 * osabi.c (_initialize_gdb_osabi): Ditto.
4458 (gdbarch_init_osabi): Ditto.
4459 * sparc-tdep.c: Ditto for #if code.
4460
0485f6ad
MK
44612003-08-23 Mark Kettenis <kettenis@gnu.org>
4462
4463 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4464 Update comments.
4465 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4466 comments.
4467 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4468 x86_64_supply_fxsave.
4469 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4470 x86_64_supply_fxsave.
4471 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4472 x86_64_supply_fxsave.
4473
c7716133
AJ
44742003-08-23 Andreas Jaeger <aj@suse.de>
4475
4476 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4477 i387_supply_fxsave.
4478
ed504bdf
MK
44792003-08-23 Mark Kettenis <kettenis@gnu.org>
4480
4481 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4482 i387_supply_register.
4483 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4484 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4485 i387_supply_fsave.
4486 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4487 i387_supply_fxsave.
4488 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4489 i387_supply_fsave.
4490 * i386bsd-nat.c (supply_fpregset): Adjust call to
4491 i387_supply_fsave.
4492 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4493 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4494 supply_fpregset.
4495 (store_inferior_registers): Remove extraneous whitespace. Call
4496 i387_fill_fsave instead of fill_fpregset.
4497 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4498 (supply_fpregset): Likewise.
4499 * i386v4-nat.c (supply_fpregset): Adjust call to
4500 i387_supply_fsave.
4501 * i386-interix-nat.c (supply_fpregset): Adjust call to
4502 i387_supply_fsave.
4503 * i386-linux-nat.c (supply_fpregset): Adjust call to
4504 i387_supply_fsave.
4505 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4506 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4507 i387supply_fsave and i387_supply_fxsave.
4508 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4509 Incorporate code from `i387_supply_register.
4510 (i387_supply_register): Remove.
4511 (i387_supply_fxsave): Add `regnum' argument.
4512 Update comments.
4513 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4514 prototype.
4515 (i387_supply_register): remove prototype.
4516 Update comments.
a8f4cde1 4517
4be5d520
MC
45182003-08-22 Michael Chastain <mec@shout.net>
4519
4520 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4521 Add lines for files in gdb/testsuite/gdb.cp/* that are
4522 still not 8.3 unique.
4523
7ed85d26
DJ
45242003-08-22 Daniel Jacobowitz <drow@mvista.com>
4525
4526 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4527 TYPE_VPTR_FIELDNO is valid.
4528
eb0d3137
MK
45292003-08-19 Mark Kettenis <kettenis@gnu.org>
4530
4531 * utils.c (set_width_command): Remove prototypes.
4532 (set_screen_size): New prototype.
4533 (init_page_info): Simplify by fetching the screen size from
4534 Readline. Call set_screen_size.
4535 (set_screen_size): New function.
4536 (set_width): Add missing whitespace in comment.
4537 (set_width_command): Call set_screen_size.
4538 (set_height_command): New function.
4539 (initialize_utils): Fix formatting. Make "set height" command
4540 call set_height_command. Remove redundant code that turns off
4541 pagination if output isn't a terminal. Remove redundant call to
4542 set_width_command.
a8f4cde1 4543
7e6d0ac8
MK
45442003-08-22 Mark Kettenis <kettenis@gnu.org>
4545
3567a8ea
MK
4546 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4547 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4548 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4549 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4550 `case' keyword.
4551 (sparc64_register_info): Give the reister with number
4552 SPARC64_STATE_REGNUM a name.
4553 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4554 %asi and %ccr.
4555 (sparc64_push_dummy_call): Take BIAS into account when checking
4556 stcak alignment.
4557 (sparc_software_single_step): Remove assertions that check whether
4558 NPC and NNPC were zero.
4559 (sparc_supply_rwindow): Make public. Merge functionality with
4560 sparc64_supply_rwindow.
4561 (sparc_fill_rwindow): Make public. Merge functionality with
4562 sparc64_fill_rwindow.
4563 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4564 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4565 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4566 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4567 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4568
7e6d0ac8
MK
4569 * reggroups.c: Add whitespace after declarations of local
4570 variables in functions.
4571
72e5f484
MC
45722003-08-21 Michael Chastain <mec@shout.net>
4573
4574 * gdbtypes.h: Change array bound type from an int to enum.
4575
435ac228
AC
45762003-08-21 Andrew Cagney <cagney@redhat.com>
4577
4578 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4579 * config/sparc/tm-sparc.h: Ditto.
4580 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4581 unconditionally.
4582 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4583
0d0e1a63
MK
45842003-07-13 Mark Kettenis <kettenis@gnu.org>
4585
4586 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4587 (register_objfile_data, set_objfile_data, objfile_data): New
4588 prototypes.
4589 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4590 prototypes.
4591 (allocate_objfile): Call objfile_alloc_data.
4592 (free_objfile): Call objfile_free_data.
4593 (struct objfile_data): New.
4594 (struct objfile_data_registration): New.
4595 (struct objfile_data_registry): New.
4596 (objfile_data_registry): New variable.
4597 (register_objfile_data): New function.
4598 (objfile_alloc_data, objfile_free_data): New functions.
4599 (set_objfile_data, objfile_data): New functions.
4600 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4601 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4602 (_initialize_dwarf2_frame): New function and prototype.
4603
d90cf509
AC
46042003-08-21 Andrew Cagney <cagney@redhat.com>
4605
4606 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4607 a specific architecture.
4608 * arch-utils.h (set_architecture_from_arch_mach): Delete
4609 declaration.
4610 (target_architecture_hook): Delete declaration.
4611 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4612 (default_float_format): Assume GDB_MULTI_ARCH.
4613 (default_double_format): Assume GDB_MULTI_ARCH.
4614 (set_endian_from_file): Delete function.
4615 (arch_ok): Delete function.
4616 (set_arch): Delete function.
4617 (set_architecture_from_arch_mach): Delete function.
4618 (set_architecture_from_file): Delete function.
4619 (set_architecture): Assume GDB_MULTI_ARCH.
4620 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4621
8b39fe56
MK
46222003-08-21 Mark Kettenis <kettenis@gnu.org>
4623
4624 Rewrite FreeBSD/sparc64 native configuration.
4625 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4626 * sparc64fbsd-nat.c: New file.
4627 * sparc64fbsd-tdep.c: New file.
4628 * sparc64-tdep.c sparc64-tdep.h: New files.
4629 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4630 sparc64fbsd-tdep.o): New dependencies.
4631 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4632 and sparc64fbsd-tdep.c.
4633 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4634 * config/sparc/fbsd.mh: Remove copyright notice.
4635 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4636 sparcbsd-nat.o.
4637 * config/sparc/fbsd.mt: Remove copyright notice.
4638 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4639 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4640 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4641 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4642 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4643 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4644 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4645 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4646 "sparc/tm-sp64.h".
4647 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4648 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4649
a7f19c79
MC
46502003-08-21 Michael Chastain <mec@shout.net>
4651
4652 * symtab.h: Add doco on the space critical structures and
4653 some measurements of space usage.
4654
da08ea5b
MS
46552003-08-21 Michael Snyder <msnyder@redhat.com>
4656
4657 * tracepoint.c (trace_dump_command): Trace break address
4658 is subject to DECR_PC_AFTER_BREAK.
4659 (set_traceframe_context): Make "trace_line" an int.
4660 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4661
6df2bf50
MS
46622003-08-20 Michael Snyder <msnyder@redhat.com>
4663
4664 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4665 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4666 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4667 argument passing.
a8f4cde1 4668 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4669 functions, replace sh_push_dummy_call.
4670 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4671
0955bbf0
MC
46722003-08-20 Michael Chastain <mec@shout.net>
4673
4674 * gdbtypes.h (struct main_type): Rearrange to save space.
4675
260a4188
MS
46762003-08-20 Michael Snyder <msnyder@redhat.com>
4677
4678 * trad-frame.c: Comment typo fix.
4679
8baa6f92
KB
46802003-08-20 Michael Snyder <msnyder@redhat.com>
4681 Kevin Buettner <kevinb@redhat.com>
4682
4683 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4684 (frv_frame_init_saved_regs): Add declaration.
4685 (frame_extra_info): Add new field ``saved_regs''.
4686 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4687 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4688 Update frame related code.
4689 (frv_extract_struct_value_address): Adjust formatting.
4690 * Makefile.in (frv-tdep.o): Update dependencies.
4691 * config/frv/tm-frv.h (target_insert_watchpoint)
4692 (target_remove_watchpoint, target_insert_hw_breakpoint)
4693 (target_remove_hw_breakpoint): Delete these macros.
4694 (remote_insert_watchpoint, remote_remove_watchpoint)
4695 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4696 these declarations.
4697
87193939
MC
46982003-08-20 Michael Chastain <mec@shout.net>
4699
4700 * defs.h (ENUM_BITFIELD): New macro.
4701 * symtab.h (ENUM_BITFIELD): Use it.
4702 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4703
062103ba
SA
47042003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4705
4706 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4707
8b148df9
AC
47082003-08-18 Andrew Cagney <cagney@redhat.com>
4709
4710 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4711 * gdbarch.h, gdbarch.c: Re-generate.
4712 * infcall.c (call_function_by_hand): Adjust the SP by
4713 frame_red_zone_size before allocating any stack space.
4714 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4715 * x86-64-tdep.c (x86_64_frame_align): New function.
4716 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4717
4718 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4719 Remove code adjusting SP so that it skips over the Red Zone.
4720
954a4db8
MK
47212003-08-18 Mark Kettenis <kettenis@gnu.org>
4722
4723 * NEWS (New native configurations): Mention FreeBSD/amd64.
4724
1a241548
AC
47252003-08-18 Andrew Cagney <cagney@redhat.com>
4726
4727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4728 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4729 "m68k_frame_p".
4730 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4731
f82b2acd
MK
47322003-08-18 Mark Kettenis <kettenis@gnu.org>
4733
4734 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4735
4056d258
ML
47362003-08-18 Michal Ludvig <mludvig@suse.cz>
4737
4738 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4739 Define.
4740 * i386-linux-nat.c: Include "linux-nat.h".
4741 (child_post_startup_inferior): New function.
a8f4cde1 4742
99ab4326
MK
47432003-08-18 Mark Kettenis <kettenis@gnu.org>
4744
4745 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4746 at the start of a frameless function. This probably fixes PR
4747 backtrace/1338.
4748
c8d5f0d6
MC
47492003-08-17 Michael Chastain <mec@shout.net>
4750
4751 * symfile.c (find_sym_fns): Remove special case for apollo target.
4752
9016a515
DJ
47532003-08-17 Daniel Jacobowitz <drow@mvista.com>
4754
4755 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4756 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4757 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4758 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4759 (linux_supports_tracevforkdone): New function.
4760 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4761 TRACEVFORKDONE.
4762 (child_follow_fork): Handle vfork.
4763 (linux_handle_extended_wait): Likewise. Also handle exec.
4764 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4765 * NEWS: Mention fork tracing.
4766
c538c11c
DJ
47672003-08-17 Daniel Jacobowitz <drow@mvista.com>
4768
4769 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4770
4de4c07c
DJ
47712003-08-17 Daniel Jacobowitz <drow@mvista.com>
4772
4773 * Makefile.in (i386-linux-nat.o): Update dependencies.
4774 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4775 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4776 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4777 * i386-linux-nat.c: Include "linux-nat.h".
4778 (child_post_startup_inferior): New function.
4779 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4780 * infptrace.c (kill_inferior): Wrap in #ifdef.
4781 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4782 attaching to each LWP.
4783 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4784 (init_lin_lwp_ops): Fill in some more operations.
4785 * linux-nat.h (linux_enable_event_reporting)
4786 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4787 prototypes.
4788 * linux-nat.c (linux_enable_event_reporting): New function.
4789 (child_post_attach, linux_child_post_startup_inferior)
4790 (child_post_startup_inferior, child_follow_fork)
4791 (linux_handle_extended_wait, kill_inferior): New functions.
4792
7996bcec
AC
47932003-08-16 Andrew Cagney <cagney@redhat.com>
4794
4795 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4796 * gdbarch.h, gdbarch.c: Re-generate.
4797
3d48a7a0
MK
47982003-08-16 Mark Kettenis <kettenis@gnu.org>
4799
4800 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4801
7989c619
AC
48022003-08-16 Andrew Cagney <cagney@redhat.com>
4803
4804 * NEWS: Mention that "set prompt-escape-char" was deleted.
4805 * top.c (get_prompt_1): Delete function.
4806 (gdb_prompt_escape):
4807 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4808 prompt-escape-char" command.
4809 (MAX_PROMPT_SIZE): Delete macro.
4810 (get_prompt): Simplify, do not call get_prompt_1.
4811
07978cd8
AC
48122003-08-16 Andrew Cagney <cagney@redhat.com>
4813
4814 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4815 -Werror. -Wformat-nonliteral problems.
4816
3ff7cf9e
JB
48172003-08-15 J. Brobecker <brobecker@gnat.com>
4818
4819 Further multiarching work mostly for hppa64-*-hpux11:
4820 * hppa-tdep.h: New file.
4821 * hppa-tdep.c: #include hppa-tdep.c.
4822 (hppa32_num_regs): Renamed from hppa_num_regs.
4823 (hppa64_num_regs): New constant.
4824 (hppa64_call_dummy_breakpoint_offset): New constant.
4825 (hppa32_call_dummy_length): New constant.
4826 (hppa64_call_dummy_length): New constant.
4827 (hppa32_stack_align): Make name 32bit explicit.
4828 (hppa32_register_virtual_type): Likewise.
4829 (hppa32_extract_return_value): Likewise.
4830 (hppa32_use_struct_convention): Likewise.
4831 (hppa32_store_return_value): Likewise.
4832 (hppa64_register_virtual_type): New function.
4833 (hppa64_extract_return_value): New function.
4834 (hppa64_use_struct_convention): New function.
4835 (hppa64_store_return_value): New function.
4836 (hppa_frame_locals_address): Remove declaration, function does
4837 not exist anymore.
4838 (hppa_register_byte): Add support for PA64 ABI.
4839 (hppa_gdbarch_init): Add support for PA64 ABI.
4840 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4841 Make name 32bit explicit.
4842 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4843 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4844 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4845 (hppa64_hpux_frame_base_before_sigtramp): New function.
4846 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4847 * config/pa/tm-hppa64.h: Remove macros that are no longer
4848 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4849 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4850 * config/pa/tm-hppah.h: Update function calls in macros
4851 following the function renaming in hppa-hpux-tdep.c.
4852 * Makefile.in (hppa_tdep_h): New variable.
4853 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4854
5d05ca6d
MS
48552003-08-14 Michael Snyder <msnyder@redhat.com>
4856
4857 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4858
37ba2569
JB
48592003-08-13 J. Brobecker <brobecker@gnat.com>
4860
4861 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4862 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4863 routine.
4864
aed7f26a
MS
48652003-08-13 Michael Snyder <msnyder@redhat.com>
4866
4867 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4868 (frv_saved_pc_after_call): Use deprecated ftype.
4869 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4870 (frv_remote_translate_xfer_address): Remove.
4871 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4872
752d4ac1
JB
48732003-08-13 J. Brobecker <brobecker@gnat.com>
4874
4875 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4876 initialization after the common gdbarch initialization, not before.
4877
1426ac1d
JB
48782003-08-13 J. Brobecker <brobecker@gnat.com>
4879
4880 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4881 (ADDR_BITS_REMOVE): Remove, redundant.
4882
b6fbdd1d
JB
48832003-08-13 J. Brobecker <brobecker@gnat.com>
4884
4885 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4886 gdbarch method to clear the 2 low bits of text addresses.
4887
44160db3
AC
48882003-08-12 Andrew Cagney <cagney@redhat.com>
4889
4890 * Makefile.in (dsrec.o): Update dependencies.
4891 * dsrec.c: Include "gdb_assert.h".
4892 (make_srec): Use snprintf instead of sprintf, use a literal format
4893 string.
4894
bcf7d3ca
AC
48952003-08-12 Andrew Cagney <cagney@redhat.com>
4896
4897 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4898 FRAME_OBSTACK_ZALLOC.
4899
49ed40de
KB
49002003-08-12 Kevin Buettner <kevinb@redhat.com>
4901
4902 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4903 SSE registers.
4904
b246147c
MK
49052003-08-10 Mark Kettenis <kettenis@gnu.org>
4906
4907 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4908 amd64fbsd_sc_reg_offset): Add extern declarations.
4909 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4910 declarations.
4911
d95fdc0d
BE
49122003-08-11 Ben Elliston <bje@wasabisystems.com>
4913
4914 * MAINTAINERS (write after approval): Update my mail address.
4915
cf6a0e73
AC
49162003-08-10 Andrew Cagney <cagney@redhat.com>
4917
4918 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4919
f837910f
MK
49202003-08-10 Mark Kettenis <kettenis@gnu.org>
4921
e2dbbd2d
MK
4922 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4923 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4924 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4925 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4926 i386bsd_sc_reg_offset): Add extern declarations.
4927 * i386obsd-nat.c: Include "i386-tdep.h"
4928 (_initialize_i386obsd_nat): Remove extern declarations.
4929 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4930 declarations.
4931 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4932 declarations.
4933
f837910f
MK
4934 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4935 instead of frame_read_register.
4936 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4937 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4938 SP_REGNUM.
4939 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4940 instead of frame_unwind_unsigned_register. Use
4941 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4942 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4943 instead of read_register. Use builtin_type_void_data_ptr instead
4944 of builtin_type_void_func_ptr when extracting the address of the
4945 jmp_buf.
4946 (i386_extract_return_value, i386_store_return_value,
4947 i386_pseudo_register_read, i386_pseudo_register_write): Use
4948 register_size instead REGISTER_RAW_SIZE.
4949
edcf254d
AC
49502003-08-10 Andrew Cagney <cagney@redhat.com>
4951
4952 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4953 sprintf. Make "name" constant.
4954
26604a34
MK
49552003-08-10 Mark Kettenis <kettenis@gnu.org>
4956
192285c6
MK
4957 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4958 instead of frame_read_register.
f837910f
MK
4959 (i387_print_float_info): Use get_frame_register and
4960 get_frame_register_unsigned instead of frame_register_read.
192285c6 4961
f0925262
MK
4962 * i386fbsd-nat.c: Include "i386-tdep.h".
4963 (child_resume): Make `eflags' an ULONGEST. Use
4964 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4965 instead of register_read and register_write.
4966
a144416f
MK
4967 * i386bsd-nat.c (fetch_inferior_registers,
4968 store_inferior_registers): Don't use && at the end of a line.
4969 (_initialize_i386bsd_nat): Fix typo.
4970
fec74868
MK
4971 * frame.c (_initialize_frame): Add missing backslash.
4972
87232496
MK
4973 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4974 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4975 and supply_register instead of manipulating the register buffer
4976 directly.
4977
c9b9de0b
MK
4978 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4979 * config/i386/nm-i386sol2.h
4980 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4981
26604a34
MK
4982 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4983 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4984 instructions that GCC likes to mingle into the prologue. Fixes
4985 gdb/1253 and gdb/1255.
4986
25d29d70
AC
49872003-08-09 Andrew Cagney <cagney@redhat.com>
4988
4989 Fix GDB PR cli/926.
4990 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4991 * command.h (add_setshow_uinteger_cmd): Declare.
4992 * frame.c (set_backtrace_cmd): New function.
4993 (show_backtrace_cmd): New function.
4994 * frame.c (_initialize_frame): Replace "set/show
4995 backtrace-below-main" with "set/show backtrace past-main". Add
4996 command "set/show backtrace limit".
4997 (backtrace_past_main): Rename "backtrace_below_main".
4998 (backtrace_limit): New variable.
4999 (get_prev_frame): Update. Check the backtrace_limit.
5000
9ebf4acf
AC
50012003-08-09 Andrew Cagney <cagney@redhat.com>
5002
5003 * defs.h (xstrprintf): Declare.
5004 * utils.c (xstrprintf): New function.
5005 * breakpoint.c (insert_breakpoints): Replace sprintf and
5006 non-literal format strings, with xstrprintf and cleanups.
5007 (delete_breakpoint,breakpoint_re_set): Ditto.
5008 (commands_command, insert_breakpoints): Ditto.
5009 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
5010 (break_at_finish_command_1): Ditto.
5011
3771659b
AC
50122003-08-09 Andrew Cagney <cagney@redhat.com>
5013
5014 * MAINTAINERS (language support): List Adam Fedor as Objective C
5015 maintainer.
5016
b4263afa
JB
50172003-08-08 J. Brobecker <brobecker@gnat.com>
5018
5019 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
5020 are now multiarched.
5021
d84defb1
JB
50222003-08-08 J. Brobecker <brobecker@gnat.com>
5023
5024 * config/pa/tm-hppa64.h: Remove lots of macros that are no
5025 longer necessary now that hppa64 is partially multiarch'ed.
5026
f786f615
AC
50272003-08-08 Andrew Cagney <cagney@redhat.com>
5028
5029 * interps.c (interp_set): Check for a NULL "old_interp".
5030
c938e9b0
L
50312003-08-08 H.J. Lu <hongjiu.lu@intel.com>
5032
5033 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
5034 (install-only): Support DESTDIR.
5035 (uninstall): Likewise.
5036 (install-gdbtk): Likewise.
5037
9a146a11
EZ
50382003-08-08 Elena Zannoni <ezannoni@redhat.com>
5039
5040 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
5041 contains something meaningful at all times.
5042
5043Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 5044
62599e99 5045 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 5046
56296155
BC
5047Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
5048
62599e99 5049 * MAINTAINERS (write after approval): Added self.
56296155 5050
9710e734
AC
50512003-08-07 Andrew Cagney <cagney@redhat.com>
5052
5053 * inferior.h (AT_SYMBOL): Define.
5054 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
5055 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
5056 * mips-tdep.c (mips_call_dummy_address): Delete function.
5057 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
5058 set call_dummy_address.
5059
98b3ab73
AC
50602003-08-07 Andrew Cagney <cagney@redhat.com>
5061
5062 * language.c (op_error): Delete function.
5063 (binop_type_check): Delete function.
5064 * language.h (type_op_error, range_op_error): Delete macros.
5065 (op_error): Delete declaration.
5066
2fcf52f0
AC
50672003-08-07 Andrew Cagney <cagney@redhat.com>
5068
5069 * interps.h (INTERP_MI2, INTERP_MI3): Define.
5070
abd4220e 50712003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 5072
abd4220e 5073 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 5074 (x86_64_push_arguments): Skip the red zone.
abd4220e 5075
9dd5f34f
AC
50762003-08-05 Andrew Cagney <cagney@redhat.com>
5077
5078 * reggroups.c (reggroup_next): Check for the final entry.
5079
e5e78edc
AC
50802003-08-04 Andrew Cagney <cagney@redhat.com>
5081
ab4e3d93
AC
5082 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
5083 * cli/cli-script.c (define_command): Call query directly, instead
5084 of passing it a buffer.
5085 * ocd.c (ocd_error): Pass error a constant format string.
5086 * remote-mips.c (mips_error): Use fputs_filtered.
5087
1062ca82
AC
5088 * solib-svr4.c (_initialize_svr4_solib): Update
5089 register_gdbarch_data call.
5090 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
5091
fcc1c85c
AC
5092 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
5093 (register_gdbarch_data): Delete "free" parameter. Update
5094 comments.
5095 * gdbarch.h, gdbarch.c: Re-generate.
5096 * reggroups.c (_initialize_reggroup): Update.
5097 * gnu-v3-abi.c (init_gnuv3_ops): Update.
5098 * frame-base.c (_initialize_frame_base): Update.
5099 * frame-unwind.c (_initialize_frame_unwind): Update.
5100 * user-regs.c (_initialize_user_regs): Update.
5101 * remote.c (_initialize_remote): Update.
5102 * regcache.c (_initialize_regcache): Update.
5103
116f06ea
AC
5104 * regcache.c (xfree_regcache_descr): Delete function.
5105 (_initialize_regcache): Update call to register_gdbarch_data.
5106 (init_regcache_descr, init_legacy_regcache_descr): Use
5107 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
5108
e5e78edc
AC
5109 * remote.c (free_remote_state): Delete function.
5110 (_initialize_remote): Update register_gdbarch_data.
5111 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5112 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5113
6c7d17ba
AC
51142003-08-04 Andrew Cagney <cagney@redhat.com>
5115
5116 * reggroups.c (struct reggroup_el): Define.
5117 (struct reggroups): Delete field "nr_group". Replace array
5118 "group" with a "first" to "last" linked list.
5119 (reggroups_init): Update. Allocate using gdbarch's obstack.
5120 (reggroups_free): Delete function.
5121 (add_group): Update. Add "el" parameter.
5122 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5123 (default_groups): Update.
5124 (reggroup_next): Replace reggroups.
5125 (reggroups_dump): Update.
5126 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5127 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5128 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5129
89b7795b
DJ
51302003-08-04 Daniel Jacobowitz <drow@mvista.com>
5131
5132 * Makefile.in (tui-interp.o): Update dependencies.
5133
306d9ac5
DC
51342003-08-04 David Carlton <carlton@kealia.com>
5135
5136 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5137 to internal_error call.
5138 * source.c (forward_search_command): Add "%s" format argument.
5139 (reverse_search_command): Ditto.
5140 * top.c (quit_confirm): Ditto.
5141 * cli/cli-setshow.c (do_setshow_command): Ditto.
5142 * cp-valprint.c (cp_print_class_method): Replace
5143 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5144 (cp_print_class_member): Ditto.
5145 * event-top.c (command_line_handler): Ditto.
5146 * linux-proc.c (linux_info_proc_cmd): Ditto.
5147 * p-typeprint.c (pascal_type_print_base): Ditto.
5148 * p-valprint.c (pascal_object_print_class_method): Ditto.
5149 (pascal_object_print_class_member): Ditto.
5150 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5151 * remote.c (remote_cisco_section_offsets): Ditto.
5152 * top.c (command_line_input): Ditto.
5153 * utils.c (vwarning,error_stream,quit): Ditto.
5154 * valprint.c (print_floating,print_binary_chars)
5155 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5156
57bfe177
AC
51572003-08-04 Andrew Cagney <cagney@redhat.com>
5158
5159 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5160
e546b999
AC
51612003-08-02 Andrew Cagney <cagney@redhat.com>
5162
5163 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5164 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5165 amd64fbsd-nat.c.
5166
91092ee5
AC
51672003-08-02 Andrew Cagney <cagney@redhat.com>
5168
5169 * Makefile.in: Update all dependencies and definitions.
5170
889f28e2
AF
51712003-08-02 Adam Fedor <fedor@gnu.org>
5172
5173 * linespec.c (is_objc_method_format): New function
5174 (decode_line_1, locate_first_half): Use it.
5175 Fixes PR objc/1298
5176
880bc914
AC
51772003-08-01 Andrew Cagney <cagney@redhat.com>
5178
5179 * NEWS: Mention that m32r is multi-arch.
5180 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5181 * configure.tgt: Recognize m32r-*-*.
5182 * config/m32r/tm-m32r.h: Delete file.
5183 * config/m32r/m32r.mt: New file.
a8f4cde1 5184 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
5185 gethostname succeeds, in order to avoid a compilation
5186 warning.
5187 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5188 compiler warning.
5189
19f59343
MS
51902003-08-01 Michael Snyder <msnyder@redhat.com>
5191
5192 * sh-tdep.c (sh_frame_align): New gdbarch method.
5193 (sh_gdbarch_init): Set up frame_align method.
5194
4e7d7511
MS
51952003-07-31 Michael Snyder <msnyder@redhat.com>
5196
5197 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5198 which is already covered by the new frames infrastructure.
5199
63022984
AC
52002003-07-31 Andrew Cagney <cagney@redhat.com>
5201
5202 * user-regs.c (struct user_reg): Add "next" link.
5203 (struct user_regs): Replace "user" with "first" and "last" links.
5204 (append_user_reg): Add pre-allocated "reg" parameter.
5205 (builtin_user_regs): Provide initial value for "last".
5206 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5207 (user_regs_init): Allocate memory from the gdbarch obstack.
5208 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5209 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5210 linked list.
5211 (usernum_to_user_reg): New function.
5212 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5213 (value_of_user_reg): Use usernum_to_user_reg.
5214 (user_regs_free): Delete function.
5215 (_initialize_user_regs): Update register_gdbarch_data call.
5216
7cf6e574
DJ
52172003-07-31 Daniel Jacobowitz <drow@mvista.com>
5218
5219 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5220
c48a845b
MS
52212003-07-30 Michael Snyder <msnyder@redhat.com>
5222
4e7d7511 5223 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 5224 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
5225 value_being_returned.
5226 * infcmd.c (print_return_value): Pass zero as struct_addr.
5227 * values.c (value_being_returned): If struct_addr is passed,
5228 use it instead of trying to recover it from the inferior.
5229
f0d8db19
KB
52302003-07-30 Kevin Buettner <kevinb@redhat.com>
5231
5232 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5233 the prologue analyzer won't need to attempt to extract the pc
5234 value from the woefully incomplete dummy frame.
5235 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5236 possible. Disable code which modifies the frame.
5237
e5c113a1
AC
52382003-07-28 Andrew Cagney <cagney@redhat.com>
5239
5240 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5241 to level 2.
5242 (annotate_breakpoints_table, annotate_record): Ditto.
5243 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5244 (annotate_field_name_end, annotate_field_value): Ditto.
5245 (annotate_field_end, annotate_frame_source_begin): Ditto.
5246 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5247 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5248 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5249 (annotate_frame_address_end, annotate_frame_address): Ditto.
5250 (annotate_frame_args, annotate_frame_end): Ditto.
5251 (annotate_frame_where, annotate_arg_begin): Ditto.
5252 (annotate_arg_name_end, annotate_arg_value): Ditto.
5253 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5254 (annotate_function_call, annotate_signal_name): Ditto.
5255 (annotate_signal_string, annotate_signal_name_end): Ditto.
5256 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5257 (annotate_value_begin, annotate_value_history_value): Ditto.
5258 (annotate_value_history_end, annotate_value_end): Ditto.
5259 (annotate_display_begin, annotate_display_number_end): Ditto.
5260 (annotate_display_format, annotate_display_expression): Ditto.
5261 (annotate_display_expression_end, annotate_display_value): Ditto.
5262 (annotate_display_end, annotate_array_section_begin): Ditto.
5263 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5264 (annotate_elt, annotate_array_section_end): Ditto.
5265
bb1db049
AC
52662003-07-28 Andrew Cagney <cagney@redhat.com>
5267
5268 * regcache.c (struct regcache_descr): Update comments on
5269 nr_raw_registers.
5270 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5271 sizeof_raw_register_valid_p.
5272 (init_regcache_descr): Set nr_raw_registers and
5273 sizeof_raw_register_valid_p before calling
5274 init_legacy_regcache_descr.
5275
20e6603c
AC
52762003-07-28 Andrew Cagney <cagney@redhat.com>
5277
5278 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5279 MOD NUM_REGS.
5280
db742940
DJ
52812003-07-28 Daniel Jacobowitz <drow@mvista.com>
5282
5283 * thread.c (info_threads_command): Use get_selected_frame ().
5284 Check that there is at least one non-sentinel frame.
5285
ce7f4371
SC
52862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5287
5288 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5289 (m68hc11_pop_frame): Remove.
5290 (m68hc11_frame_saved_pc): Remove.
5291 (m68hc11_frame_chain): Remove.
5292 (m68hc11_frame_init_saved_regs): Remove.
5293 (m68hc11_init_extra_frame_info): Remove.
5294 (m68hc11_store_struct_return): Remove.
5295 (m68hc11_saved_pc_after_call): Remove.
5296
1ea653ae
SC
52972003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5298
5299 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5300 frame unwind information.
5301 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5302 and adapted for frame unwinding.
5303 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5304 (m68hc11_unwind_pc): New function.
5305 (m68hc11_frame_unwind_cache): New function to analyze frames.
5306 (m68hc11_frame_this_id): New function to create new frame struct.
5307 (m68hc11_frame_prev_register): New function to unwind a register from
5308 the frame.
5309 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5310 (m68hc11_frame_p): New function for the above.
5311 (m68hc11_frame_base_address): New function to return fp of frame.
5312 (m68hc11_frame_args_address): Update for frame.
5313 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5314 (m68hc11_unwind_sp): New function.
5315 (m68hc11_unwind_dummy_id): New function.
5316 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5317 calls.
5318
c8a7f6ac
SC
53192003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5320
5321 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5322 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5323 when we are beyond the current pc.
5324
3dc990bf
SC
53252003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5326
5327 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5328 from m68hc11_push_arguments.
5329 (m68hc11_push_arguments): Remove.
5330 (m68hc11_push_return_address): Remove.
5331 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5332 handlers; remove deprecated_extra_stack_alignment_needed.
5333
222e5d1d
AC
53342003-07-27 Andrew Cagney <cagney@redhat.com>
5335
5336 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5337 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5338 REAL_PC and not the pointer.
5339 * hppa-hpux-tdep.c: Include frame.h
5340
a7e9a47e
AC
53412003-07-27 Andrew Cagney <cagney@redhat.com>
5342
5343 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5344 GDB_MULTI_ACH_PARTIAL.
5345
7e3dd49e
AC
53462003-07-27 Andrew Cagney <cagney@redhat.com>
5347
5348 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5349 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5350 operator at start and not end of line.
5351 (decode_prologue): Ditto.
5352 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5353 frame_unwind_register_unsigned instead of
5354 frame_unwind_unsigned_register.
5355 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5356 read_register.
5357 (m32r_push_dummy_call): Use register_size instead of
5358 REGISTER_RAW_SIZE.
5359 (m32r_frame_sniffer): Replace m32r_frame_p.
5360 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5361 * m32r-rom.c (report_transfer_performance): Delete extern
5362 declaration.
5363 (m32r_load, m32r_upload_command): Use print_transfer_performance
5364 instead of report_transfer_performance.
5365 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5366 / add_show_from_set.
5367
0880807f
AC
53682003-07-26 Andrew Cagney <cagney@redhat.com>
5369
5370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5371 store_return_value and extract_struct_value_address.
5372
64ae9269
DJ
53732003-07-26 Daniel Jacobowitz <drow@mvista.com>
5374
5375 PR c++/1267
5376 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5377 NULL, default to the section containing PC.
5378
e286caf2
SC
53792003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5380
5381 * NEWS: Mention "regs" deprecated for m68hc11 too.
5382
5383 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5384 (m68hc11_print_register): New function to print out one register.
5385 (m68hc11_print_registers_info): New function to print registers.
5386 (show_regs): Deprecate and use the above.
5387 (m68hc11_gdbarch_init): Install the print_registers_info.
5388
705b278b
JJ
53892003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5390
5391 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5392 that we have a SIGTRAP before returning non-zero.
5393
63cd4198
EZ
53942003-07-23 Michal Ludvig <mludvig@suse.cz>
5395 Elena Zannoni <ezannoni@redhat.com>
5396
a8f4cde1 5397 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5398 find_function_start_sal() returns empty record.
5399
6926787d
AS
54002003-07-23 Andreas Schwab <schwab@suse.de>
5401
5402 * ia64-tdep.c (ia64_print_insn): New function.
5403 (ia64_gdbarch_init): Set print_insn to it.
5404 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5405 deprecated_tm_print_insn_info.
5406
708cc1b6
MS
54072003-07-22 Michael Snyder <msnyder@redhat.com>
5408
5409 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5410 handle 8-bit returns (long long).
5411 (h8300h_extract_return_value): Ditto.
5412 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5413
aebd7893
AC
54142003-07-22 Andrew Cagney <cagney@redhat.com>
5415
5416 * gdbarch.c Include "gdb_obstack.h".
5417 (struct gdbarch): Add an "obstack".
5418 (alloc_gdbarch_data): Allocate the gdbarch data using
5419 GDBARCH_OBSTACK_CALLOC.
5420 (free_gdbarch_data): Delete function.
5421 (gdbarch_obstack_zalloc): New function.
5422 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5423 Assert that the architecture is not initialized.
5424 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5425 vector from the obstack.
5426 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5427 architecture obstack.
5428 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5429 (set_gdbarch_data): Assert that the data is not initialized.
5430 (struct gdbarch_data): Delete member "free".
5431 (register_gdbarch_data): Do not initialize "free".
5432 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5433
153721e6
AC
54342003-07-22 Andrew Cagney <cagney@redhat.com>
5435
5436 * configure.in (build_warnings): Add -Wformat-nonliteral.
5437 * configure: Re-generate.
5438
c193f044 54392003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5440
5441 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5442
c3228f12
EZ
54432003-07-22 Elena Zannoni <ezannoni@redhat.com>
5444
5445 * findvar.c (read_var_value): Remove case for thread local storage
5446 variables. It is now entirely handled by the dwarf2 location
5447 expression code.
5448 * printcmd.c (address_info): Ditto.
5449 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5450 enumeration value.
5451 (struct symbol): Remove objfile field, which was used by
5452 LOC_THREAD_LOCAL_STATIC only.
5453 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5454 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5455 usage of objfile pointer.
5456 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5457 thread local variables.
5458 Add include of objfiles.h.
5459 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5460 storage variables.
5461 * Makefile.in (dwarf2loc.o): Update dependencies.
5462
aef9bcd2
AC
54632003-07-22 Andrew Cagney <cagney@redhat.com>
5464
5465 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5466 get_frame_base.
5467 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5468 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5469 (struct value): Add opaque declaration.
5470 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5471
d95a8903
AC
54722003-07-21 Andrew Cagney <cagney@redhat.com>
5473
5474 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5475 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5476
4db73d49
SC
54772003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5478
a8f4cde1 5479 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5480 regcache_cooked_read_unsigned instead of read_register.
5481 (m68hc11_saved_pc_after_call): Likewise.
5482 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5483 instead of write_register.
5484 (m68hc11_register_type): New function.
5485 (m68hc11_register_virtual_type): Remove.
5486 (m68hc11_store_return_value): Convert to use the regcache.
5487 (m68hc11_extract_struct_value_address): Likewise.
5488 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5489 m68hc11_register_type; undeprecate store_return_value and
5490 extract_struct_value_address.
5491
ef2b8fcd
SC
54922003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5493
5494 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5495 and translate to use regcache.
5496 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5497
625b0b97
AC
54982003-07-18 Andrew Cagney <cagney@redhat.com>
5499
5500 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5501 * gdbarch.h, gdbarch.c: Re-generate.
5502 * i386-tdep.c (i386_gdbarch_init): Do not set
5503 DWARF2_BUILD_FRAME_INFO.
5504 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5505 unconditionally.
5506 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5507 DWARF2_BUILD_FRAME_INFO.
5508
22b0d388
AC
55092003-07-18 Andrew Cagney <cagney@redhat.com>
5510
5511 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5512 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5513
1ce5d6dd
AC
55142003-07-18 Andrew Cagney <cagney@redhat.com>
5515
5516 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5517 frame_unwind_address_in_block, instead of frame_pc_unwind.
5518 (dwarf2_frame_cache): Ditto.
5519
e6e5e94c
AC
55202003-07-18 Andrew Cagney <cagney@redhat.com>
5521
5522 * user-regs.h (struct gdbarch): Declare opaque.
5523 * ui-out.h (struct ui_file): Declare opaque.
5524 * dwarf2-frame.h (struct frame_info): Declare opaque.
5525
5483d879
KW
55262003-07-18 Kris Warkentin <kewarken@qnx.com>
5527
5528 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5529 #include "...".
5530 (procfs_meminfo): Change strerror to safe_strerror.
5531 (procfs_can_run): Remove K&R badness.
5532
278a7cf7
MS
55332003-07-17 Michael Snyder <msnyder@redhat.com>
5534
5535 * remote-sim.c: Comment typo fix.
5536
606e3b82
AC
55372003-07-17 Andrew Cagney <cagney@redhat.com>
5538
5539 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5540 configure.
5541 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5542 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5543 GDB_MULTI_ARCH_PARTIAL.
5544
c43af07c
EZ
55452003-07-17 Elena Zannoni <ezannoni@redhat.com>
5546
5547 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5548 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5549 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5550
3b85b0f1
TR
55512003-07-16 Theodore A. Roth <troth@openavr.org>
5552
5553 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5554 found.
5555 (avr_frame_unwind_cache): Don't unwind FP for main.
5556 Update a comment.
5557 Save the computed prev_sp.
5558 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5559 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5560 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5561
336d1bba
AC
55622003-07-16 Andrew Cagney <cagney@redhat.com>
5563
5564 * frame-base.h (frame_base_p_ftype): Delete definition.
5565 (frame_base_append_predicate): Delete declaration.
5566 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5567 (frame_unwind_append_predicate): Delete declaration.
5568 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5569 (append_predicate): Delete parameter "p".
5570 (frame_unwind_append_predicate): Delete function.
5571 (frame_unwind_append_sniffer): Update call to append_predicate.
5572 (frame_unwind_free): Delete function.
5573 (_initialize_frame_unwind): Pass NULL as "free" to
5574 register_gdbarch_data.
5575 (frame_unwind_init): Append the dummy_frame_sniffer.
5576 (frame_unwind_find_by_frame): Simplify.
5577 * frame-base.c (struct frame_base_table): Delete field "p".
5578 (append_predicate): Delete parameter "p".
5579 (frame_base_append_predicate): Delete function.
5580 (frame_base_append_sniffer): Update call to append_predicate.
5581 (frame_base_free): Delete function.
5582 (frame_base_find_by_frame): Simplify.
5583 (_initialize_frame_base): Pass NULL as "free" to
5584 register_gdbarch_data.
5585 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5586 (x86_64_sigtramp_frame_sniffer): Replace
5587 "x86_64_sigtramp_frame_p".
5588 (x86_64_init_abi): Set the frame unwind sniffers.
5589 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5590 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5591 (m68k_gdbarch_init): Set the frame unwind sniffers.
5592 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5593 "i386_sigtramp_frame_p".
5594 (i386_frame_sniffer): Replace "i386_frame_p".
5595 (i386_gdbarch_init): Set the frame unwind sniffers.
5596 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5597 (avr_gdbarch_init): Set the frame unwind sniffers.
5598 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5599 "alpha_sigtramp_frame_p"
5600 (alpha_heuristic_frame_sniffer): Replace
5601 "alpha_heuristic_frame_p".
5602 (alpha_gdbarch_init): Set the frame unwind sniffers.
5603 (alpha_dwarf2_init_abi): Ditto.
5604 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5605 "alpha_debug_frame_p".
5606 (alpha_mdebug_frame_base_sniffer): Replace
5607 "alpha_mdebug_frame_base_p".
5608 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5609 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5610 (d10v_gdbarch_init): Set the frame unwind sniffer.
5611 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5612 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5613 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5614 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5615 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5616 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5617
48db5a3c
CV
56182003-07-16 Michael Snyder <msnyder@redhat.com>
5619
5620 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5621 should go thru sh_dsp_register_sim_regno, else the dsp regs
5622 will not get the right values.
5623
56242003-07-16 Corinna Vinschen <vinschen@redhat.com>
5625
5626 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5627 deprecated_store_floating by call to store_typed_floating.
5628 (sh_sh4_register_convert_to_raw): Substitute call to
5629 deprecated_extract_floating by call to extract_typed_floating.
5630
56312003-07-16 Corinna Vinschen <vinschen@redhat.com>
5632
5633 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5634
56352003-07-16 Corinna Vinschen <vinschen@redhat.com>
5636
5637 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5638 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5639 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5640 as possible.
5641 (do_pseudo_register): Remove.
5642 (sh_push_dummy_code): New function.
5643 (sh64_store_struct_return): Rename from sh_store_struct_return.
5644 Only called for sh64 now.
5645 (sh_extract_struct_value_address): Regcache'ify.
5646 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5647 and accomodate new tasks.
5648 (sh64_push_return_address): Rename from sh_push_return_address.
5649 Only called for sh64 now.
5650 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5651 Regcache'ify.
5652 (sh3e_sh4_extract_return_value): Regcache'ify.
5653 (sh_default_store_return_value): Ditto.
5654 (sh3e_sh4_store_return_value): Ditto.
5655 (sh_default_register_byte): Remove.
5656 (sh_sh4_register_byte): Remove.
5657 (sh_default_register_raw_size): Remove.
5658 (sh_sh4_register_raw_size): Remove.
5659 (sh_register_virtual_size): Remove.
5660 (sh_sh3e_register_virtual_type): Remove.
5661 (sh_sh3e_register_type): New function.
5662 (sh_sh4_register_virtual_type): Remove.
5663 (sh_sh4_register_type): New function.
5664 (sh_default_register_virtual_type): Remove.
5665 (sh_default_register_type): New function.
5666 (do_fv_register_info): Add parameters to accomodate call from
5667 sh_print_registers_info.
5668 (do_dr_register_info): Ditto.
5669 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5670 Add parameters to accomodate call from sh_print_registers_info.
5671 (sh_do_fp_register): Ditto.
5672 (sh64_do_pseudo_register): Call do_dr_register_info,
5673 do_fv_register_info and sh_do_fp_register with default parameters.
5674 (sh_do_register): Add parameters to accomodate call from
5675 sh_print_registers_info.
5676 (sh_print_register): Ditto.
5677 (sh_print_registers_info): Rename from sh_do_registers_info.
5678 Add parameters to be used as gdbarch_print_registers_info
5679 implementation. Accomodate removed do_pseudo_register function
5680 pointer.
5681 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5682 function pointer. Call sh_print_register with default parameters.
5683 (sh64_do_registers_info): Call sh_print_registers_info instead of
5684 sh_do_registers_info.
5685 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5686 detection of deprecated vs. non-deprecated functionality.
5687 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5688 function pointer assignments by direct function calls.
5689
e8a89fe2
AC
56902003-07-15 Andrew Cagney <cagney@redhat.com>
5691
5692 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5693 (frame_register_unwind, create_new_frame): Ditto.
5694 (legacy_get_prev_frame, get_frame_type): Ditto.
5695 (get_frame_base_address): Use frame_base_find_by_frame.
5696 (get_frame_locals_address): Use frame_base_find_by_frame.
5697 (get_frame_args_address): Use frame_base_find_by_frame.
5698 * frame-base.h (frame_base_sniffer_ftype): Declare.
5699 (frame_base_append_sniffer): Declare.
5700 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5701 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5702 (frame_base_append_sniffer): New function.
5703 (frame_base_append_predicate): Add a NULL sniffer.
5704 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5705 (struct frame_base_table): Add "sniffer".
5706 (frame_base_free): Free the "sniffer" table.
5707 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5708 (frame_unwind_append_sniffer): Declare.
5709 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5710 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5711 (struct frame_unwind_table): Add "sniffer", delete "middle".
5712 (append_predicate): Add "sniffer" parameter, append the sniffer.
5713 (frame_unwind_init): Update append_predicate call.
5714 (frame_unwind_append_sniffer): New function.
5715 (frame_unwind_append_predicate): Update append_predicate call.
5716 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5717
0714963c
AC
57182003-07-15 Andrew Cagney <cagney@redhat.com>
5719
5720 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5721 before code inhibiting repeated unwind attempts. Add to
5722 commentary on that test's problems.
5723 * blockframe.c (inside_main_func): Look for "main" in the minimal
5724 symbol table.
5725 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5726 identical.
5727
d9170e22
AC
57282003-07-15 Andrew Cagney <cagney@redhat.com>
5729
5730 * complaints.c (struct explanation): Define.
5731 (struct complaints): Change type of "explanation" to "struct
5732 explanation".
5733 (symfile_explanations): Convert to a "struct explanation" table.
5734 (vcomplaint): Update.
5735
eba29c8c
ML
57362003-07-15 Michal Ludvig <mludvig@suse.cz>
5737
5738 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5739 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5740 x86_64_linux_(fill,supply)_gregset functions.
5741 * x86-64-linux-tdep.c (USER_*): New defines.
5742 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5743 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5744 New functions.
5745 (fetch_core_registers): Ditto.
5746 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5747 * x86-64-linux-tdep.h: New file.
5748 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5749 and core-regset.o.
5750 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5751
68cc0bfb
MK
57522003-07-13 Mark Kettenis <kettenis@gnu.org>
5753
88a115f7
MK
5754 * x86-64-tdep.c (x86_64_store_return_value): Use
5755 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5756
68cc0bfb
MK
5757 * configure.host: Add x86_64-*-freebsd*.
5758 * configure.tgt: Add x86_64-*-freebsd*.
5759 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5760 * amd64fbsd-nat.c: New file.
5761 * amd64fbsd-tdep.c: New file.
5762 * config/i386/nm-fbsd64.h: New file.
5763 * config/i386/fbsd64.mh: New file.
5764 * config/i386/fbsd64.mt: New file.
5765
138e7be5
MK
57662003-07-11 Mark Kettenis <kettenis@gnu.org>
5767
5768 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5769 `sc_regs_offset' and `sc_fpregs_offset'.
5770 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5771 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5772 (alpha_sigtramp_register_address): Rewrite to use new members of
5773 `struct gdbarch_tdep'.
5774 (alpha_gdbarch_init): Initialize new members of struct
5775 gdbarch_tdep'.
5776 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5777 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5778 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5779 (alphafbsd_pc_in_sigtramp): Implement.
5780 (alphafbsd_sigtramp_offset): New function.
5781 (alphafbsd_sigcontext_addr): New function.
5782 (alphafbsd_init_abi): Initialize signal trampoline related members
5783 of `struct gdbarch_tdep'.
5784 (_initialize_alphafbsd_tdep): Add prototype.
5785
95303a68
TR
57862003-07-11 Theodore A. Roth <troth@openavr.org>
5787
ba292e4c
TR
5788 * Makefile.in (install-only): Quote sed expression when generating
5789 transformed_name.
95303a68 5790
6896c0c7
RH
57912003-07-11 Richard Henderson <rth@redhat.com>
5792
5793 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5794 * dwarf2-frame.c: Include complaints.h.
5795 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5796 variable initialization; return NULL on error.
5797 (decode_frame_entry): New.
5798
8edd5d01
AC
57992003-07-11 Andrew Cagney <cagney@redhat.com>
5800
c4a09524
AC
5801 * frame.h (frame_address_in_block): Delete declaration.
5802 * blockframe.c (frame_address_in_block): Delete function.
5803 (get_frame_block): Use get_frame_address_in_block.
5804 (block_innermost_frame): Ditto.
5805 * stack.c (print_frame, backtrace_command_1): Ditto.
5806
8edd5d01
AC
5807 * frame.h (get_frame_address_in_block): Declare.
5808 (frame_unwind_address_in_block): Declare.
5809 * frame.c (frame_unwind_address_in_block): New function.
5810 (get_frame_address_in_block): New function.
5811
f7968451
AC
58122003-07-10 Andrew Cagney <cagney@redhat.com>
5813
5814 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5815 pre-default. Note: re-generate has no effect.
a8f4cde1 5816
ae99b398
AC
58172003-07-10 Andrew Cagney <cagney@redhat.com>
5818
5819 * gdbarch.sh: When a variable, but not a function, compare against
5820 0. Fix problem in previous patch.
5821 * gdbarch.c: Re-generate.
a8f4cde1 5822
956ac328
AC
58232003-07-10 Andrew Cagney <cagney@redhat.com>
5824
5825 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5826 functions against NULL, not 0.
5827 * gdbarch.c: Re-generate.
a8f4cde1 5828
287c3240
FF
58292003-07-10 Fred Fish <fnf@ninemoons.com>
5830
5831 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5832 null string instead of a null pointer.
5833 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5834
32f63c4b
MS
58352003-07-09 Michael Snyder <msnyder@redhat.com>
5836
5837 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5838
402ecd56
MK
58392003-07-09 Mark Kettenis <kettenis@gnu.org>
5840
5841 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5842 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5843 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5844 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5845 * x86-64-tdep.c: ... from here.
5846
c481dac7
AS
58472003-07-09 Andreas Schwab <schwab@suse.de>
5848
5849 * m68k-tdep.h (enum struct_return): Define.
5850 (struct gdbarch_tdep): Add struct_return.
5851 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5852 bytes are padded to the right, not to the left. Pass struct value
5853 address in register %a1, not on stack.
5854 (m68k_use_struct_convention): New function.
5855 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5856 struct_return in tdep to pcc_struct_return.
5857 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5858 reg_struct_return.
5859
a8f4cde1 58602003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5861
a8f4cde1 5862 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5863
96a4ee76
AC
58642003-07-09 Andrew Cagney <cagney@redhat.com>
5865
5866 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5867 Add comments about the checks.
5868
1517c6d1
AC
58692003-07-08 Andrew Cagney <cagney@redhat.com>
5870
5871 * Makefile.in: Make dependency section headers consistent.
5872 (config_h): Move to $BUILD headers section.
5873 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5874 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5875 (ada-exp.tab.c): Move to YACC/LEX section.
5876 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5877 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5878
dc5dd1eb
KW
58792003-07-08 Kris Warkentin <kewarken@qnx.com>
5880
5881 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5882 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5883 of strerror with safe_strerror, use ISO C function definitions,
5884 and replace instances of sprintf with snprintf.
dc5dd1eb 5885
612dde91
AC
58862003-07-07 Andrew Cagney <cagney@redhat.com>
5887
5888 * frame.c (get_prev_frame): Enable check for identical frames.
5889 Update comments. Update error messages.
5890
492c11d3
JB
58912003-07-07 Joel Brobecker <brobecker@gnat.com>
5892
5893 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5894
376a5a49
JB
58952003-07-07 Joel Brobecker <brobecker@gnat.com>
5896
5897 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5898 sort_symtab_syms, no longer necessary.
5899
22b4a9ad
JB
59002003-07-07 Joel Brobecker <brobecker@gnat.com>
5901
5902 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5903
5bbcb741
JB
59042003-07-07 Joel Brobecker <brobecker@gnat.com>
5905
5906 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5907 (mips_register_byte): Likewise.
5908
c139e7d9
DJ
59092003-07-07 Daniel Jacobowitz <drow@mvista.com>
5910
5911 * Makefile.in (sparc_tdep_h): New.
5912 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5913 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5914 * sparc-linux-nat.c: Include "sparc-tdep.h".
5915 * sparc-nat.c: Likewise.
5916 * sparc-tdep.c: Likewise.
5917 * sparc64nbsd-nat.c: Likewise.
5918 * sparcnbsd-nat.c: Likewise.
5919 * sparcnbsd-tdep.c: Likewise.
5920 * sparc-tdep.h: New file.
5921 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5922 and sparc_npc_regnum.
5923
fd8f87c5
DJ
59242003-07-07 Daniel Jacobowitz <drow@mvista.com>
5925
5926 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5927 (mips_linux_cannot_store_register): List supported instead of
5928 unsupported registers.
5929
13adf674
DJ
59302003-07-07 Daniel Jacobowitz <drow@mvista.com>
5931
5932 * disasm.c (dump_insns): Separate instructions from addresses.
5933
8de307e0
AS
59342003-07-07 Andreas Schwab <schwab@suse.de>
5935
5936 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5937 dependencies.
5938 * m68k-tdep.c (NUM_FREGS): Delete.
5939 (SIG_PC_FP_OFFSET): Delete.
5940 (TARGET_M68K): Delete.
5941 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5942 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5943 P_MOVEL_SP, P_MOVEML_SP): Define.
5944 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5945 P_TRAP): Delete.
5946 (m68k_register_raw_size): Delete.
5947 (m68k_register_virtual_size): Delete.
5948 (m68k_register_type): Renamed from m68k_register_virtual_type and
5949 add gdbarch argument.
5950 (m68k_store_struct_return): Delete.
5951 (m68k_deprecated_extract_return_value): Delete.
5952 (m68k_deprecated_extract_struct_value_address): Delete.
5953 (m68k_frame_chain): Delete.
5954 (m68k_frame_saved_pc): Delete.
5955 (m68k_fix_call_dummy): Delete.
5956 (m68k_push_dummy_frame): Delete.
5957 (m68k_pop_frame): Delete.
5958 (m68k_extract_return_value): New function.
5959 (m68k_store_return_value): Rewrite using regcache.
5960 (m68k_extract_struct_value_address): Rewrite using regcache.
5961 (m68k_push_dummy_call): New function.
5962 (struct m68k_frame_cache): Define.
5963 (m68k_alloc_frame_cache): New function.
5964 (m68k_analyze_frame_setup): New function.
5965 (m68k_analyze_register_saves): New function.
5966 (m68k_analyze_prologue): New function.
5967 (m68k_skip_prologue): Rewrite using above functions.
5968 (m68k_unwind_pc): New function.
5969 (m68k_frame_cache): New function.
5970 (m68k_frame_this_id): New function.
5971 (m68k_frame_prev_register): New function.
5972 (m68k_frame_unwind): New variable.
5973 (m68k_frame_p): New function.
5974 (m68k_sigtramp_frame_cache): New function.
5975 (m68k_sigtramp_frame_this_id): New function.
5976 (m68k_sigtramp_frame_prev_register): New function.
5977 (m68k_sigtramp_frame_unwind): New variable.
5978 (m68k_sigtramp_frame_p): New function.
5979 (m68k_frame_base_address): New function.
5980 (m68k_frame_base): New function.
5981 (m68k_unwind_dummy_id): New function.
5982 (fill_gregset): Use regcache_collect.
5983 (fill_fpregset): Likewise.
5984 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5985 defined.
5986 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5987 deprecated_init_frame_pc, deprecated_store_struct_return,
5988 deprecated_extract_return_value, deprecated_store_return_value,
5989 deprecated_frame_chain, deprecated_frame_saved_pc,
5990 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5991 deprecated_register_virtual_size,
5992 deprecated_max_register_raw_size,
5993 deprecated_max_register_virtual_size,
5994 deprecated_register_virtual_type, deprecated_register_size,
5995 deprecated_register_byte, deprecated_register_bytes,
5996 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5997 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5998 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5999 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
6000 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
6001 deprecated_push_dummy_frame, deprecated_pop_frame,
6002 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
6003 only if SYSCALL_TRAP is defined. Set extract_return_value,
6004 store_return_value, extract_struct_value_address, register_type,
6005 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
6006 predicates.
6007 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
6008 M68K_MAX_REGISTER_SIZE): Define.
6009 (struct m68k_sigtramp_info): Define.
6010 (struct gdbarch_tdep): Add get_sigtramp_info.
6011 * m68klinux-nat.c (fetch_register): Use register_size instead of
6012 REGISTER_RAW_SIZE. Don't put assignment in if.
6013 (store_register): Likewise.
6014 (fetch_inferior_registers): Likewise.
6015 (store_inferior_registers): Likewise.
6016 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
6017 (m68k_linux_frame_saved_pc): Delete.
6018 (m68k_linux_sigcontext_reg_offset,
6019 m68k_linux_ucontext_reg_offset): Define.
6020 (m68k_linux_get_sigtramp_info): New function.
6021 (m68k_linux_extract_return_value): Rewrite using regcache.
6022 (m68k_linux_store_return_value): Likewise.
6023 (m68k_linux_extract_struct_value_address): Likewise.
6024 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
6025 Don't set deprecated_frame_saved_pc,
6026 deprecated_extract_return_value, deprecated_store_return_value,
6027 deprecated_extract_struct_value_address. Set
6028 extract_return_value, store_return_value,
6029 extract_struct_value_address.
6030
eb8bc282
AC
60312003-07-07 Andrew Cagney <cagney@redhat.com>
6032
6033 * expprint.c: Include "user-regs.h" instead of "frame.h".
6034 (print_subexp): Use user_reg_map_regnum_to_name, instead of
6035 frame_map_regnum_to_name.
6036 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
6037 (frame_map_name_to_regnum): Simplify, call
6038 user_reg_map_name_to_regnum.
6039 (frame_map_regnum_to_name): Simplify, call
6040 user_reg_map_regnum_to_name.
6041 (frame_register_unwind): Update.
6042 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
6043 (_initialize_frame_reg): Call user_reg_add_builtin.
6044 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
6045 (value_of_register): Use value_of_user_reg.
6046 * eval.c (evaluate_subexp_standard): Update.
6047 * parse.c (write_dollar_variable): Update.
6048 * d10v-tdep.c (d10v_print_registers_info): Update.
6049 * infcmd.c (registers_info): Update.
6050 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
6051 (builtin_regs_h): Delete macro.
6052 (user_regs_h): Define.
6053 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
6054 (builtin-regs.o): Delete target.
6055 (user-regs.o): Specify dependencies.
6056 (expprint.o): Update dependencies.
6057 (findvar.o): Update dependencies.
6058 (frame.o): Update dependencies.
6059 (std-regs.o): Update dependencies.
6060
9f476a01
CF
60612003-07-06 Christopher Faylor <cgf@redhat.com>
6062
6063 * win32-nat.c (solib_symbols_add): Use one variable for all section
6064 address stuff. Pass variable rather than address of variable to
6065 safe_symbol_file_add.
6066
a731b831
AS
60672003-07-06 Andreas Schwab <schwab@suse.de>
6068
6069 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
6070
9f83329d
JB
60712003-07-04 Joel Brobecker <brobecker@gnat.com>
6072
6073 * rs6000-nat.c (vmap_symtab): Fix compilation error.
6074
27e28cc5
KW
60752003-07-04 Kris Warkentin <kewarken@qnx.com>
6076
6077 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
6078
60792003-07-04 Kris Warkentin <kewarken@qnx.com>
6080
6081 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
6082 * config/i386/nto.mh: New file.
6083 * config/i386/nm-nto.h: New file.
6084 * configure.host: Add i[3456]86-*-nto*.
6085
100f2e98
JB
60862003-07-03 Joel Brobecker <brobecker@gnat.com>
6087
6088 * remote-vx.c (vx_add_symbols): Fix compilation error.
6089
e23457df
AC
60902003-07-03 Andrew Cagney <cagney@redhat.com>
6091
6092 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
6093 * gdbarch.h, gdbarch.c: Re-generate.
6094 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
6095 (legacy_register_name): Declare.
6096 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
6097 (REGISTER_NAME): Define.
6098 * sparc-tdep.c (legacy_register_name): New function.
6099 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
6100 (REGISTER_NAME): Define.
6101 (hppa64_register_name): Declare.
6102 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
6103 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
6104 (hppa64_register_name): New function.
6105 (hppa_register_name): New function.
6106 * arch-utils.c (legacy_register_name): Delete.
6107 * arch-utils.h (legacy_register_name): Delete.
6108
38caaeec
DJ
61092003-07-03 Daniel Jacobowitz <drow@mvista.com>
6110
6111 * cli/cli-interp.c (cli_interpreter_resume): Update the
6112 cli_uiout's stream to gdb_stdout.
6113
dadd712e
AC
61142003-07-03 Andrew Cagney <cagney@redhat.com>
6115
6116 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6117 predicate.
6118 * gdbarch.h, gdbarch.c: Re-generate.
6119 * regcache.c (init_regcache_descr): Use legacy code when either
6120 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6121
c7f1390e
DJ
61222003-07-02 Daniel Jacobowitz <drow@mvista.com>
6123
6124 * NEWS: Move "set logging" entry into GDB 6.0 section.
6125
4bc8c588
JB
61262003-07-02 Jim Blandy <jimb@redhat.com>
6127
a9dd42f1
JB
6128 * s390-tdep.c (struct frame_extra_info): new member:
6129 'stack_bought_valid'.
6130 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6131 initialize fextra_info->stack_bought.
6132 (s390_frameless_function_invocation): Don't trust the value of
6133 fextra_info_ptr->stack_bought unless
6134 fextra_info->stack_bought_valid is set.
6135
4bc8c588
JB
6136 New S390 prologue analyzer.
6137 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6138 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6139 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6140 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6141 compute_x_addr, s390_on_stack, s390_store,
6142 s390_get_signal_frame_info): New functions.
6143 (S390_NUM_SPILL_SLOTS): New macro.
6144 (s390_get_frame_info): Rewritten.
6145 (is_arg_reg): Deleted.
6146
6147 Break out the decoding of S/390 instructions into separate
6148 functions, to make it more legible, and easier to check
6149 against the spec.
6150 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6151 is_rx, is_rxe): New functions.
6152 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6153 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6154 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6155 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6156 enums for opcode values. (Is this an improvement?)
6157
fd13a04a
AC
61582003-07-02 Andrew Cagney <cagney@redhat.com>
6159
6160 * i386-tdep.c: Revert change committed as part of trad-frame code
6161 below.
6162
3f8091c1
DJ
61632003-07-02 Daniel Jacobowitz <drow@mvista.com>
6164
6165 * breakpoint.c (insert_catchpoint): Make static.
6166
8dd5115e
AS
61672003-07-02 Andreas Schwab <schwab@suse.de>
6168
6169 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6170 former ia64_push_arguments and ia64_push_return_address, and use
6171 regcache functions instead of read/write_register.
6172 (ia64_gdbarch_init): Set push_dummy_call instead of
6173 deprecated_push_arguments and deprecated_push_return_address.
6174
a2229c23
AJ
61752003-07-01 Andreas Jaeger <aj@suse.de>
6176
6177 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6178 before the call.
6179 Set %rax only to number of SSE registers used.
6180
3b3850e8
AC
61812003-07-01 Andrew Cagney <cagney@redhat.com>
6182
6183 * trad-frame.h: Update comments, a -1 .addr is reserved.
6184 (trad_frame_value_p, trad_frame_addr_p): Declare.
6185 (trad_frame_reg_p): Declare.
6186 (trad_frame_set_value): Rename trad_frame_register_value.
6187 (trad_frame_set_unknown): Declare.
6188 * trad-frame.c (trad_frame_realreg_p): New function.
6189 (trad_frame_addr_p, trad_frame_value_p): New function.
6190 (trad_frame_set_unknown): New function.
6191 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6192 (trad_frame_prev_register): Use trad_frame_realreg_p,
6193 trad_frame_addr_p and trad_frame_value_p.
6194 (trad_frame_set_value): Rename trad_frame_register_value.
6195 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6196 and trad_frame_set_value.
a2229c23 6197
4d819d0e
JB
61982003-06-30 Jim Blandy <jimb@redhat.com>
6199
6200 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6201 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6202 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6203 for 16 registers, and then 32 more bytes.
6204 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6205 New macros.
6206 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6207 Move up in the file, since it's now used by is_simple_arg.
6208 (is_simple_arg): Don't assume registers are four bytes long.
6209 Exclude all double arguments. Extended floats are not simple
6210 args.
6211 (is_power_of_two): New function.
6212 (pass_by_copy_ref): Call is_power_of_two, and check that the
6213 length fits in a register, rather than listing all the acceptable
6214 sizes. Extended floats are not passed by reference.
6215 (s390_push_arguments): Don't assume registers are four bytes long.
6216 Reserve an argument register to point to the buffer for structures
6217 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6218 S390_STACK_FRAME_OVERHEAD.
6219
1ad828f1
AS
62202003-06-30 Andreas Schwab <schwab@suse.de>
6221
6222 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6223 format error message.
6224
39b00981
JB
62252003-06-30 Joel Brobecker <brobecker@gnat.com>
6226
6227 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6228
b2a7f303
DC
62292003-06-30 David Carlton <carlton@kealia.com>
6230
6231 Band-aid for PR c++/1245.
6232 * Makefile.in (cp-support.o): Depend on complaints_h.
6233 * cp-support.c: Include complaints.h. Add declaration for
6234 find_last_component.
6235 (cp_find_first_component): Separate code into
6236 cp_find_first_component_aux.
6237 (cp_find_first_component_aux): Call demangled_name_complaint.
6238 (demangled_name_complaint): New.
6239
a257b5bb
AC
62402003-06-30 Andrew Cagney <cagney@redhat.com>
6241
6242 * remote.c (remote_write_bytes): Explicitly compute and then use
6243 the payload size. Update comments to reflect. Fixes problem of
6244 GDB not sending small packets as found by Fred Fish.
6245
0a2cfde4
AC
62462003-06-30 Andrew Cagney <cagney@redhat.com>
6247
6248 * remote.c (remote_async_wait): Fix -Wformat problem.
6249
3fcb8548
AC
62502003-06-29 Andrew Cagney <cagney@redhat.com>
6251
6252 * remote.c (remote_wait): Call error, and not warning, when the
6253 packet is corrupt.
6254 (remote_async_wait): Ditto.
6255
9f9970a3
DJ
62562003-06-29 Daniel Jacobowitz <drow@mvista.com>
6257
6258 * sparc-tdep.c (sparc_y_regnum): Make external again.
6259
83a8ccca
DJ
62602003-06-29 Daniel Jacobowitz <drow@mvista.com>
6261
6262 * cli/cli-logging.c (pop_output_files): Add void to function
6263 definition.
6264
d2cf594a
AC
62652003-06-29 Andrew Cagney <cagney@redhat.com>
6266
6267 * frame.c (frame_register_unwind): Use unsigned char when dumping
6268 the buffer contents.
6269
0fac0b41
DJ
62702003-06-28 Daniel Jacobowitz <drow@mvista.com>
6271
6272 * cli/cli-logging.c: New file.
6273 * cli-out.c (struct ui_out_data): Add original_stream.
6274 (cli_redirect): New function.
6275 (cli_ui_out_impl): Add cli_redirect.
6276 (cli_out_new): Initialize original_stream.
6277 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6278 (uo_redirect, ui_out_redirect): New.
6279 * ui-out.h (struct ui_out_impl): Add redirect member.
6280 (redirect_ftype): New.
6281 (ui_out_redirect): Add prototype.
6282 * Makefile.in: Add rules for cli-logging.c.
6283 * NEWS: Mention "set logging".
6284
88a07d7c
EZ
62852003-06-27 Elena Zannoni <ezannoni@redhat.com>
6286
6287 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6288
4eb58876
AC
62892003-06-27 Andrew Cagney <cagney@redhat.com>
6290
6291 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6292 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6293 * avr-tdep.c (avr_call_dummy_address): Delete function.
6294 (avr_gdbarch_init): Do not set call_dummy_address.
6295
1549f619
EZ
62962003-06-27 Elena Zannoni <ezannoni@redhat.com>
6297
6298 * symfile.c (syms_from_objfile): Move variables to inner block.
6299 Move the checks for the non-mainline case a bit earlier to avoid
6300 doing some useless computations.
6301
3cb3398d
EZ
63022003-06-27 Elena Zannoni <ezannoni@redhat.com>
6303
6304 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6305
3799ccc6
EZ
63062003-06-26 Elena Zannoni <ezannoni@redhat.com>
6307
6308 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6309 sections.
6310
ce1f6491
MC
63112003-06-26 Michael Chastain <mec@shout.net>
6312
6313 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6314 gdb/testsuite/gdb.c++/pr-1210.exp.
6315
d958dfd0
AC
63162003-06-26 Andrew Cagney <cagney@redhat.com>
6317
6318 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6319 altivec_expression.h and altivec_registers.h.
6320
d31431ed
AC
63212003-06-26 Andrew Cagney <cagney@redhat.com>
6322
6323 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6324 info->mach when MIPS16. Patch suggested by Fred Fish.
6325
714b1282
AC
63262003-06-26 Andrew Cagney <cagney@redhat.com>
6327
6328 * utils.c (internal_vproblem): Print the problem to a reason
6329 buffer and then pass to query. Make the msg variable more local.
6330
42efa47a
AC
63312003-06-26 Andrew Cagney <cagney@redhat.com>
6332
6333 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6334 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6335 * gdbarch.h, gdbarch.c: Re-generate.
6336 * frame-base.c (default_frame_args_address): Update. Use
6337 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6338 not available.
6339 (default_frame_locals_address): Ditto for
6340 DEPRECATED_FRAME_LOCALS_ADDRESS.
6341 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6342 (vax_frame_num_args): Update.
6343 (vax_gdbarch_init): Update.
6344 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6345 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6346 * mcore-tdep.c (mcore_gdbarch_init): Update.
6347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6348 * ia64-tdep.c (ia64_gdbarch_init): Update.
6349 * symtab.h (address_class): Update comments.
6350 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6351 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6352 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6353 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6354 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6355 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6356 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6357 * alpha-mdebug-tdep.c: Update.
6358 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6359
8ffd9b1b
AJ
63602003-06-26 Andreas Jaeger <aj@suse.de>
6361
6362 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6363 of SSE registers so that varargs functions work. Rework handling
6364 of passing arguments on the stack.
6365 (x86_64_store_return_value): Return double and float values in SSE
6366 register.
6367
e8ac10a6
MC
63682003-06-24 Michael Chastain <mec@shout.net>
6369
6370 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6371 the "constructor breakpoints ignored" bug.
6372
986af8e6
DC
63732003-06-25 David Carlton <carlton@kealia.com>
6374
6375 * MAINTAINERS: Update e-mail address.
6376
d64558a5
JB
63772003-06-24 Jim Blandy <jimb@redhat.com>
6378
e538d2d7
JB
6379 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6380
02631ec0
JB
6381 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6382 function.
6383 (ppc_linux_init_abi): Register it as the
6384 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6385
e716d87a
JB
6386 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6387 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6388 method.
6389
d64558a5
JB
6390 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6391 (ppc64_standard_linkage_target): Use it.
6392
449a5da4
AC
63932003-06-23 Andrew Cagney <cagney@redhat.com>
6394
6395 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6396 for 0 "int0" and 4 "int32" sized registers.
6397 * gdbtypes.c (builtin_type_int0): Define.
6398 (build_gdbtypes): Initialize builtin_type_int0.
6399 * gdbtypes.h (builtin_type_int0): Declare.
6400
b2a02dda
SC
64012003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6402
6403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6404 as characters are unsigned.
6405
fba3138e
DJ
64062003-06-22 Daniel Jacobowitz <drow@mvista.com>
6407
6408 PR gdb/1179
6409 * dwarfread.c (struct_type): Skip static fields without crashing.
6410
f6c8180b
AC
64112003-06-22 Andrew Cagney <cagney@redhat.com>
6412
6413 GDB 6.0 branch created.
f2c06f52
AC
6414 * README: Update.
6415 * PROBLEMS: Update. Empty.
6416 * NEWS: Update.
f6c8180b 6417
ae822768
DJ
64182003-06-22 Daniel Jacobowitz <drow@mvista.com>
6419
6420 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6421 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6422
261de166
AC
64232003-06-22 Andrew Cagney <cagney@redhat.com>
6424
6425 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6426 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6427 Velikov.
6428
30e94205
DJ
64292003-06-22 Daniel Jacobowitz <drow@mvista.com>
6430
6431 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6432 compilers.
6433
9e14d721
DJ
64342003-06-21 Daniel Jacobowitz <drow@mvista.com>
6435
6436 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6437 argument of val_print.
6438 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6439 to the address argument of baseclass_offset or target_read_memory.
6440 Do add it to the argument of cp_print_value_fields.
6441
a4b8ebc8
AC
64422003-06-21 Andrew Cagney <cagney@redhat.com>
6443
6444 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6445 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6446 instead of 0..NUM_REGS.
6447 (mips_register_reggroup_p): New function.
6448 (mips_pseudo_register_write): New function.
6449 (mips_pseudo_register_read): New function.
6450 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6451 based on the register's type.
6452 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6453 cooked.
6454 (mips_get_saved_register): Simplify. Assert that REGNO is a
6455 pseudo / cooked.
6456 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6457 (mips_register_type): Replace mips_register_virtual_type. Map
6458 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6459 when available.
6460 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6461 that the register is cooked / virtual.
6462 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6463 Only get the extra info when needed.
6464 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6465 (mips32_heuristic_proc_desc): Fetch the cooked register.
6466 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6467 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6468 (mips_print_register): Use gdbarch_register_type, instead of
6469 REGISTER_VIRTUAL_TYPE.
6470 (print_gp_register_row): Use gdbarch_register_type, instead of
6471 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6472 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6473 Print the pseudo / cooked registers.
6474 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6475 Print the pseudo / cooked registers.
6476 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6477 REG_NUM is pseudo / cooked.
6478 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6479 (mips_n32n64_xfer_return_value): Ditto.
6480 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6481 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6482 (mips_register_sim_regno): New function.
6483 (mips_gdbarch_init): Set deprecated_register_byte,
6484 register_group_p, pseudo_register_write, pseudo_register_read,
6485 register_sim_regno, and num_pseudo_regs. Set register_type,
6486 instead of register_virtual_type.
6487 * Makefile.in (mips-tdep.o): Update dependencies.
6488 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6489 REGISTER_VIRTUAL_TYPE.
6490 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6491 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6492 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6493 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6494 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6495
325ed089
DJ
64962003-06-21 Daniel Jacobowitz <drow@mvista.com>
6497
6498 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6499 * cli/cli-cmds.c: Include "gdb_vfork.h".
6500 (shell_escape): Use vfork.
6501
f0e7d0e8
AC
65022003-06-21 Andrew Cagney <cagney@redhat.com>
6503
c57bb9fa
AC
6504 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6505 32 bit floating-point register saves.
6506
6e51443a
AC
6507 * frame.h (deprecated_unwind_get_saved_register): Delete.
6508 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6509 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6510 and deprecated_get_next_frame_hack instead of
6511 deprecated_unwind_get_saved_register.
6512
ed183c7c
AC
6513 * mips-tdep.c (mips_dump_tdep): Do not print
6514 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6515
f0e7d0e8
AC
6516 * frame.c (get_frame_register): New function.
6517 (frame_unwind_register_signed): New function.
6518 (get_frame_register_signed): New function.
6519 (frame_unwind_register_unsigned): New function.
6520 (get_frame_register_unsigned): New function.
6521 * frame.h: Add comments on naming schema.
6522 (get_frame_register, frame_unwind_register_signed): Declare.
6523 (get_frame_register_signed, get_frame_register_signed): Declare.
6524 (frame_unwind_register_unsigned): Declare.
6525 (get_frame_register_unsigned): Declare.
6526
2224d941
TR
65272003-06-20 Theodore A. Roth <troth@openavr.org>
6528
6529 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6530
8619218d
TR
65312003-06-20 Theodore A. Roth <troth@openavr.org>
6532
6533 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6534 (avr_read_sp): Ditto.
6535
0b1b50c0
DJ
65362003-06-20 Daniel Jacobowitz <drow@mvista.com>
6537
6538 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6539 * config/arm/nm-linux.h: Likewise.
6540 * config/arm/tm-linux.h: Likewise.
6541 * config/ia64/nm-linux.h: Likewise.
6542 * config/ia64/tm-ia64.h: Likewise.
6543 * config/s390/tm-linux.h: Likewise.
6544 * config/s390/tm-s390.h: Likewise.
6545 * s390-nat.c: Likewise.
6546 * s390-tdep.c: Likewise.
6547
6548 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6549 * config/ia64/linux.mt: Likewise.
6550 * config/m68k/linux.mh: Likewise.
6551 * config/mips/linux.mt: Likewise.
6552 * config/powerpc/linux.mh: Likewise.
6553 * config/sh/linux.mt: Likewise.
6554
c8c18e65
KW
65552003-06-19 Kris Warkentin <kewarken@qnx.com>
6556
6557 * solib.c (solib_open): Change tests for whether to search
6558 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6559 comments.
6560
dcccef2e
TR
65612003-06-19 Theodore A. Roth <troth@openavr.org>
6562
6563 * avr-tdep.c (avr_frame_address): Delete function.
6564 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6565 set_gdbarch_frame_args_address.
6566
5861a190
AC
65672003-06-19 Andrew Cagney <cagney@redhat.com>
6568
6569 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6570 (REGISTER_CONVERT_FROM_TYPE): Delete.
6571 (mips_register_convert_to_type): Delete declaration.
6572 (mips_register_convert_from_type): Delete declaration.
6573 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6574 kernel/.
6575
0274a8ce
MS
65762003-06-19 Michael Snyder <msnyder@redhat.com>
6577
6578 * linux-nat.h: New file.
6579 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6580 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6581 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6582 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6583 (linux_make_note_section): Iterate over lwps instead of threads.
6584 (linux_do_thread_registers): Use lwp instead of merged pid.
6585 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6586 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6587 Add dependency on linux_nat_h.
6588
adf5f719
TR
65892003-06-19 Theodore A. Roth <troth@openavr.org>
6590
6591 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6592
6766a268
DJ
65932003-06-19 Daniel Jacobowitz <drow@mvista.com>
6594
6595 * varobj.c (get_type, get_target_type): Use check_typedef.
6596
1171114a
DJ
65972003-06-19 Daniel Jacobowitz <drow@mvista.com>
6598
6599 * breakpoint.c (insert_catchpoint): Call internal_error.
6600
adcf68a2
TR
66012003-06-19 Theodore A. Roth <troth@openavr.org>
6602
6603 * avr-tdep.c (avr_push_dummy_code): Delete function.
6604 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6605
ea67f13b
DJ
66062003-06-19 Daniel Jacobowitz <drow@mvista.com>
6607
6608 * arch-utils.c (default_prepare_to_proceed): Remove.
6609 (generic_prepare_to_proceed): Remove.
6610 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6611 (generic_prepare_to_proceed): Remove prototype.
6612 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6613 * gdbarch.c: Regenerate.
6614 * gdbarch.h: Regenerate.
6615 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6616 * hppah-nat.c (hppa_switched_threads): Remove.
6617 * infrun.c (prepare_to_proceed): New static function, copied from
6618 generic_prepare_to_proceed. Remove select_it argument.
6619 (proceed): Call prepare_to_proceed.
6620 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6621 variables.
6622 (ptrace_wait): Don't set the removed variables.
6623 (hppa_switched_threads): Remove.
6624 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6625 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6626 (lin_lwp_prepare_to_proceed): Remove prototype.
6627 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6628 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6629
4add8633
TR
66302003-06-18 Theodore A. Roth <troth@openavr.org>
6631
6632 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6633 trad-frame.h.
6634 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6635 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6636 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6637 (AVR_PROLOGUE_*): Enumerate prologue types.
6638 (struct frame_extra_info): Remove.
6639 (struct avr_unwind_cache): Define.
6640 (avr_write_sp): Delete function.
6641 (avr_read_fp): Ditto.
6642 (avr_init_extra_frame_info): Ditto.
6643 (avr_pop_frame): Ditto.
6644 (avr_frame_saved_pc): Ditto.
6645 (avr_saved_pc_after_call): Ditto.
6646 (avr_push_return_address): Ditto.
6647 (avr_frame_chain): Ditto.
6648 (avr_store_struct_return): Ditto.
6649 (avr_push_arguments): Ditto.
6650 (avr_scan_prologue): Update comments. Changed to set up the info for
6651 cache unwinding. Now returns end of prologue PC.
6652 (avr_skip_prologue): Better handling of functions lacking a prologue
6653 by using avr_scan_prologue.
6654 (avr_scan_arg_moves): New function.
6655 (avr_saved_regs_unwinder): Ditto.
6656 (avr_frame_unwind_cache): Ditto.
6657 (avr_unwind_pc): Ditto.
6658 (avr_frame_this_id): Ditto.
6659 (avr_frame_prev_register): Ditto.
6660 (avr_frame_p): Ditto.
6661 (avr_frame_base_address ): Ditto.
6662 (avr_unwind_dummy_id): Ditto.
6663 (avr_push_dummy_code): Ditto.
6664 (push_stack_item): Ditto.
6665 (pop_stack_item): Ditto.
6666 (avr_push_dummy_call): Ditto.
6667 (struct stack_item): Define.
6668 (avr_frame_unwind): Declare structure.
6669 (avr_frame_base): Ditto.
6670 (avr_gdbarch_init): Remove calls to
6671 set_gdbarch_deprecated_init_frame_pc,
6672 set_gdbarch_deprecated_target_read_fp,
6673 set_gdbarch_deprecated_dummy_write_sp,
6674 set_gdbarch_deprecated_fp_regnum,
6675 set_gdbarch_deprecated_push_arguments,
6676 set_gdbarch_deprecated_push_return_address,
6677 set_gdbarch_deprecated_pop_frame,
6678 set_gdbarch_deprecated_store_struct_return,
6679 set_gdbarch_deprecated_frame_init_saved_regs,
6680 set_gdbarch_deprecated_init_extra_frame_info,
6681 set_gdbarch_deprecated_frame_chain,
6682 set_gdbarch_deprecated_frame_saved_pc,
6683 set_gdbarch_deprecated_saved_pc_after_call.
6684 Add calls to set_gdbarch_push_dummy_call,
6685 set_gdbarch_push_dummy_code,
6686 frame_unwind_append_predicate,
6687 frame_base_set_default,
6688 set_gdbarch_unwind_dummy_id,
6689 set_gdbarch_unwind_pc.
6690 Wrap a long line.
6691
7be04a68
MS
66922003-06-18 Corinna Vinschen <vinschen@redhat.com>
6693
6694 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6695 registers for H8/300S.
6696 (h8300_print_registers_info): Ditto.
8ffd9b1b 6697 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6698
ae087d01
DJ
66992003-06-18 Daniel Jacobowitz <drow@mvista.com>
6700
6701 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6702 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6703 (lin_lwp_wait): Likewise. Update comments.
6704 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6705 (pull_pid_from_list, linux_record_stopped_pid): New.
6706
07d8f827
SC
67072003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6708
6709 * ada-lang.c (scan_discrim_bound): Name first argument.
6710 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6711 declared by ALL_BLOCK_SYMBOLS.
6712
7cb47b14
SC
67132003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6714
6715 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6716 ("regcache.h"): Include it.
6717 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6718
6ad8ae5c
DJ
67192003-06-17 Daniel Jacobowitz <drow@mvista.com>
6720
6721 * NEWS: Mention gdbserver detach change and "disconnect" command.
6722 * infcmd.c (disconnect_command): New function.
6723 (_initialize_infcmd): Add ``disconnect'' command.
6724 * remote.c (remote_async_detach): Delete.
6725 (remote_detach): Merge remote_async_detach.
6726 (remote_disconnect): New.
6727 (init_remote_ops): Set to_disconnect.
6728 (init_remote_cisco_ops): Likewise.
6729 (init_remote_async_ops): Likewise. Use remote_detach.
6730 * target.c (cleanup_target): Default to_disconnect.
6731 (update_current_target): Inherit to_disconnect.
6732 (target_disconnect, debug_to_disconnect): New functions.
6733 (setup_target_debug): Set to_disconnect.
6734 * target.h (struct target_ops): Add to_disconnect.
6735 (target_disconnect): Add prototype.
6736
687595f9
DJ
67372003-06-17 Daniel Jacobowitz <drow@mvista.com>
6738
6739 * breakpoint.c (insert_catchpoint): New function.
6740 (insert_breakpoints): Use catch_exceptions to call
6741 insert_catchpoint. Disable catchpoints if they fail to insert.
6742
29239a8f
DJ
67432003-06-17 Daniel Jacobowitz <drow@mvista.com>
6744
6745 * symfile.c (reread_symbols): Clear sym_private.
6746
2cdf3c63
AC
67472003-06-17 Andrew Cagney <cagney@redhat.com>
6748
6749 * trad-frame.h (struct frame_info): Add opaque declaration.
6750 * remote-fileio.h (struct cmd_list_element): Add opaque
6751 declaration.
6752 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6753 comments.
6754
cf0e1e0d
DJ
67552003-06-17 Daniel Jacobowitz <drow@mvista.com>
6756
6757 * remote.c (remote_prepare_to_store): Replace call to
6758 deprecated_read_register_bytes with multiple regcache_raw_read
6759 calls.
6760
192cdb19
KW
67612003-06-17 Kris Warkentin <kewarken@qnx.com>
6762
6763 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6764 (nto_find_and_open_solib): Likewise.
6765 (nto_init_solib_absolute_prefix): Likewise.
6766 (_initialize_nto_tdep): Fix indentation.
6767
89929b45
KW
67682003-06-17 Kris Warkentin <kewarken@qnx.com>
6769
6770 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6771
46019f27
KW
67722003-06-17 Kris Warkentin <kewarken@qnx.com>
6773
6774 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6775
1a38736e
JB
67762003-06-17 Jim Blandy <jimb@redhat.com>
6777
6778 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6779
3605c34a
TR
67802003-06-16 Theodore A. Roth <troth@openavr.org>
6781
6782 * avr-tdep.c (avr_extract_return_value): New function.
6783 (avr_gdbarch_init): Set extract_return_value method.
6784
870b3035
AC
67852003-06-16 Andrew Cagney <cagney@redhat.com>
6786
6787 * frame.h (deprecated_get_next_frame_hack): Declare.
6788 * frame.c (legacy_saved_regs_prev_register): Only require
6789 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6790 there are always saved regs.
6791 (deprecated_generic_get_saved_register): Do not require
6792 DEPRECATED_FRAME_INIT_SAVED_REGS.
6793 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6794 use frame ID unwind instead.
6795 (deprecated_get_next_frame_hack): New function.
6796
63d47a7d
CV
67972003-06-16 Corinna Vinschen <vinschen@redhat.com>
6798
6799 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6800 (h8300_push_dummy_call): ...this function. Some minor optimization.
6801 (h8300_push_return_address): Remove.
6802 (h8300_gdbarch_init): Remove calls to
6803 set_gdbarch_deprecated_dummy_write_sp,
6804 set_gdbarch_deprecated_push_arguments and
6805 set_gdbarch_deprecated_push_return_address.
6806 Add call to set_gdbarch_push_dummy_call.
6807
4bb1dc5e
CV
68082003-06-16 Corinna Vinschen <vinschen@redhat.com>
6809
6810 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6811 (E_PSEUDO_EXR_REGNUM): Ditto.
6812 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6813 registers into safe registers.
4bb1dc5e
CV
6814 (h8300_skip_prologue): Check for stm instruction to push registers
6815 used for register variables onto stack.
6816 (gdb_print_insn_h8300): Remove.
6817 (h8300_examine_prologue): Add a comment.
6818 (h8300_register_name): Take pseudo registers into account.
6819 (h8300s_register_name): Ditto.
6820 (h8300sx_register_name): Ditto.
6821 (h8300_print_register): Ditto.
6822 (h8300_print_registers_info): Define "nice" printing order.
6823 (h8300_saved_pc_after_call): Take pseudo registers into account.
6824 (h8300_register_type): Ditto. Return type used for remote connection
6825 when requesting real CCR or EXR register, return actual type when
6826 requesting pseudo CCR or EXR.
6827 (h8300_pseudo_register_read): New function.
6828 (h8300_pseudo_register_write): Ditto.
6829 (h8300_dbg_reg_to_regnum): Ditto.
6830 (h8300s_dbg_reg_to_regnum): Ditto.
6831 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6832 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6833 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6834 set_gdbarch_print_insn architecture dependent.
6835 Call set_gdbarch_pseudo_register_read and
6836 set_gdbarch_pseudo_register_write.
6837 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6838
a59fe496
AC
68392003-06-16 Andrew Cagney <cagney@redhat.com>
6840
6841 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6842 * gdbarch.h, gdbarch.c: Re-generate.
6843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6844 * s390-tdep.c (s390_gdbarch_init): Update.
6845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6846 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6847 * mips-tdep.c (mips_gdbarch_init): Update.
6848 * mcore-tdep.c (mcore_gdbarch_init): Update.
6849 * cris-tdep.c (cris_gdbarch_init): Update.
6850 * infcall.c (call_function_by_hand): Update.
6851 * ia64-tdep.c (ia64_push_arguments): Update comment.
6852 * frame.c (legacy_get_prev_frame): Do not assume
6853 SAVE_DUMMY_FRAME_TOS_P.
6854 * dummy-frame.c (find_dummy_frame): Update comment.
6855
6f4e5a41
AC
68562003-06-16 Andrew Cagney <cagney@redhat.com>
6857
6858 * regcache.c (do_cooked_read): Do not use register_valid_p.
6859
72fab697
TR
68602003-06-15 Theodore A. Roth <troth@openavr.org>
6861
6862 * avr-tdep.c (avr_register_type): Remove a blank line.
6863 (avr_scan_prologue): Correct some comments.
6864
e3d8b004
TR
68652003-06-15 Theodore A. Roth <troth@openavr.org>
6866
6867 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6868 prologue types.
8ffd9b1b 6869 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6870 option.
6871 Add code to scan -mcall-prologues for mega devices.
6872
866b76ea
TR
68732003-06-15 Theodore A. Roth <troth@openavr.org>
6874
6875 * avr-tdep.c (avr_register_byte): Delete function.
6876 (avr_register_raw_size): Delete function.
6877 (avr_register_virtual_size): Delete function.
6878 (avr_register_virtual_type): Delete function.
6879 (avr_register_type): New function.
6880 (avr_address_to_pointer): Remove unused code.
6881 (avr_read_fp): Need to read FP as two separate bytes due to change to
6882 avr_register_type() usage.
6883 (avr_gdbarch_init): Don't set deprecated_register_size.
6884 Don't set deprecated_register_bytes.
6885 Don't set deprecated_register_byte.
6886 Don't set deprecated_register_raw_size.
6887 Don't set deprecated_max_register_raw_size.
6888 Don't set deprecated_register_virtual_size.
6889 Don't set deprecated_max_register_virtual_size.
6890 Don't set deprecated_register_virtual_type.
6891 Set register_type method.
6892
3993f6b1
DJ
68932003-06-15 Daniel Jacobowitz <drow@mvista.com>
6894
6895 * Makefile.in (linux-nat.o): Add rule.
6896 * linux-nat.c: New file.
6897 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6898 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6899 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6900 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6901 * config/arm/linux.mh (NATDEPFILES): Likewise.
6902 * config/i386/linux.mh (NATDEPFILES): Likewise.
6903 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6904 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6905 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6906 * config/mips/linux.mh (NATDEPFILES): Likewise.
6907 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6908 * config/s390/s390.mh (NATDEPFILES): Likewise.
6909 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6910
786a90bb
MK
69112003-06-15 Mark Kettenis <kettenis@gnu.org>
6912
6913 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6914 replace out-of-date comment.
6915
3bd3f01e
AC
69162003-06-15 Andrew Cagney <cagney@redhat.com>
6917
6918 * rdi-share/host.h (Fail): Change to a varargs function.
6919 * remote-rdi.c (Fail): Update.
8ffd9b1b 6920
de5b9bb9
MK
69212003-06-15 Mark Kettenis <kettenis@gnu.org>
6922
6923 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6924 (i386_convert_register_p, i386_register_to_value,
6925 i386_register_from_value): Handle types longer than 8 bytes.
6926
d532c08f
MK
69272003-06-15 Mark Kettenis <kettenis@gnu.org>
6928
6929 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6930 Move floating-point code to new function in i387-tdep.c.
6931 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6932 New functions containing code moved here from i386-tdep.c.
6933 * i387-tdep.h: Add opaque declaration for `struct type'.
6934 (i387_register_to_value, i387_value_to_register): New prototypes.
6935 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6936 (x86_64_init_abi): Set convert_register_p, register_to_value and
6937 value_to_register here.
8ffd9b1b 6938
42c466d7
AC
69392003-06-14 Andrew Cagney <cagney@redhat.com>
6940
6941 * mips-tdep.c (mips_register_to_value): Make static.
6942 (mips_value_to_register): Make static.
6943 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6944 * ia64-tdep.c (ia64_register_raw_size): Make static.
6945 (ia64_register_virtual_size): Make static.
6946 (ia64_register_byte): Make static.
6947 * i387-tdep.c: Include "i387-tdep.h".
6948 (print_387_control_word): Delete function.
6949 (print_387_status_word): Delete function.
6950 (print_387_status_bits): Delete function.
6951 (print_387_control_bits): Delete function.
6952 * Makefile.in (i387-tdep.o): Update dependencies.
6953 * rdi-share/host.h (Fail): Declare.
6954 * remote-rdi.c (Fail): Update to match declaration.
6955
2a9cda49
AC
69562003-06-14 Andrew Cagney <cagney@redhat.com>
6957
6958 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6959 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6960 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6961 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6962 * README: Delete reference to remote-array.
6963 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6964 (remote-array.o): Delete target.
6965 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6966 * remote-array.c: Delete file.
6967
ff2e87ac
AC
69682003-06-14 Andrew Cagney <cagney@redhat.com>
6969 Mark Kettenis <kettenis@gnu.org>
6970
6971 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6972 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6973 parameter with "frame".
6974 * gdbarch.h, gdbarch.c: Re-generate.
6975 * frame.h (put_frame_register): Declare.
6976 * frame.c (put_frame_register): New function.
6977 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6978 (legacy_register_to_value): Rewrite, use "frame" to get the
6979 register value.
6980 (legacy_value_to_register): Rewrite, use "frame" to find the
6981 register's location before storing.
6982 * arch-utils.h (legacy_convert_register_p): Update.
6983 (legacy_register_to_value, legacy_value_to_register): Update.
6984 * findvar.c (value_from_register): Rewrite, eliminate use of
6985 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6986 "frame" to REGISTER_TO_VALUE.
6987 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6988 lval_reg_frame_relative + lval_register branch of the switch. Do
6989 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6990 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6991 I386_EDI_REGNUM): New defines.
6992 (i386_next_regnum, i386_convert_register_p,
6993 i386_register_to_value, i386_value_to_register): New functions.
6994 (i386_register_convertible, i386_register_convert_to_virtual,
6995 i386_convert_to_raw): Remove functions.
6996 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6997 value_to_register instead of register_convertible,
6998 register_convert_to_virtual and register_convert_to_raw.
6999 * mips-tdep.c (mips_convert_register_p): New function.
7000 (mips_value_to_register): Replace mips_register_convert_from_type.
7001 (mips_register_to_value): Replace mips_register_convert_to_type.
7002 (mips_gdbarch_init): Set conver_register_p, value_to_register and
7003 register_to_value.
7004 * alpha-tdep.c (alpha_convert_register_p): Update.
7005 (alpha_value_to_register): Update, store the register.
7006 (alpha_register_to_value): Update, fetch the register.
7007
98be1e77
TR
70082003-06-14 Theodore A. Roth <troth@openavr.org>
7009
7010 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
7011 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
7012 Don't set deprecated_call_dummy_words.
7013 Remove commented out set_gdbarch_believe_pcc_promotion() call.
7014 Don't set remote_translate_xfer_address.
7015 (avr_io_reg_read_command): Remove commented out debug printf.
7016 Wrap a long line.
7017
57bc6122
TR
70182003-06-14 Theodore A. Roth <troth@openavr.org>
7019
7020 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
7021 causes gdb to seg fault.
7022
eb01fc62
DJ
70232003-06-14 Daniel Jacobowitz <drow@mvista.com>
7024
7025 * sparc-nat.c (fetch_inferior_registers): Correct
7026 a reference to "registers".
7027
3b3e6bee
DJ
70282003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
7029
7030 * Makefile.in (exc_request_U_h): Define
7031 (exc_request_S_h): Likewise.
7032 (msg_reply_S_h): Likewise.
7033 (msg_U_h): Likewise.
7034 (notify_S_h): Likewise.
7035 (process_reply_S_h): Likewise.
7036 (gnu-nat.o): Depend on gdb_obstack_h
7037 * gnu-nat.c: Include "gdb_obstack.h".
7038
b8de8283
AC
70392003-06-13 Andrew Cagney <cagney@redhat.com>
7040
7041 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
7042 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 7043
f3be58bc
AC
70442003-06-13 Andrew Cagney <cagney@redhat.com>
7045
7046 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
7047 when deprecated REGISTER macros can be deleted.
7048 * gdbarch.h, gdbarch.c: Re-generate.
7049
4c0122c8
JB
70502003-06-13 Jim Blandy <jimb@redhat.com>
7051
7052 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
7053 Linux entry point symbols for _dl_debug_state, too.
7054
3e210248
AC
70552003-06-13 Andrew Cagney <cagney@redhat.com>
7056
7057 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
7058 available, do not use the FP register, and always save the TOS.
7059 * dummy-frame.c (dummy_frame_this_id): Do not assert
7060 SAVE_DUMMY_FRAME_TOS.
7061 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
7062 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
7063 (i386_push_dummy_call): Add 8 to the returned SP.
7064 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
7065 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
7066 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
7067 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
7068 (x86_64_push_dummy_call): Return "sp + 16".
7069 (x86_64_init_abi): Do not set save_dummy_frame_tos.
7070 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7071 save_dummy_frame_tos.
7072
0b65af49
JB
70732003-06-13 Jim Blandy <jimb@redhat.com>
7074
7075 * frv-tdep.c (frv_use_struct_convention): Delete static
7076 declaration for function deleted in my change of 2003-06-12.
7077
4ea2465e
TR
70782003-06-13 Theodore A. Roth <troth@openavr.org>
7079
7080 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
7081 (avr_pointer_to_address): Shift code addrs left 1 bit.
7082 (avr_convert_from_func_ptr_addr): Delete function since operation is
7083 better handled by avr_address_to_pointer and avr_pointer_to_address.
7084 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
7085
1581182a
MK
70862003-06-13 Mark Kettenis <kettenis@gnu.org>
7087
7088 From Kelley Cook <kelleycook@wideopenwest.com>:
7089 * configure.host: Accept i[34567]86 variants.
7090 * configure.tgt: Likewise.
7091 * nlm/configure.in: Likewise.
7092 * nlm/configure: Regenerated.
7093
7aa1783e
RE
70942003-06-13 Richard Earnshaw <rearnsha@arm.com>
7095
7096 * arm-tdep.c (solib-svr4.h): Dont' include it.
7097 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
7098 * arm-linux-tdep.c: ... here. Make static.
7099 (arm_linux_init_abi): Register it.
7100 (solib-svr4.h): Include it.
7101 * Makefile.in: Update dependencies.
7102 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7103 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
7104
0261a0d0
CV
71052003-06-13 Corinna Vinschen <vinschen@redhat.com>
7106
7107 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
7108 indicate registers used for return values.
7109 (struct frame_extra_info): Drop args_pointer and locals_pointer.
7110 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
7111 members.
7112 (h8300_init_extra_frame_info): Ditto.
7113 (h8300_frame_locals_address): Removed.
7114 (h8300_frame_args_address): Removed.
7115 (h8300_extract_return_value): Use new regcache structure. Only care
7116 for 16 bit CPUs.
7117 (h8300h_extract_return_value): Same function for 32 bit CPUs.
7118 (h8300_store_return_value): Use new regcache structure. Only care
7119 for 16 bit CPUs.
7120 (h8300h_store_return_value): Same function for 32 bit CPUs.
7121 (h8300_store_struct_return): Removed.
7122 (h8300_extract_struct_value_address): Use new regcache structure.
7123 (h8300h_extract_struct_value_address): Removed.
7124 (h8300_push_dummy_code): New function.
7125 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7126 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
7127 set_gdbarch_store_return_value architecture dependent.
7128 Call set_gdbarch_push_dummy_code and
7129 set_gdbarch_extract_struct_value_address.
7130 Remove calls to set_gdbarch_frame_args_address,
7131 set_gdbarch_frame_locals_address,
7132 set_gdbarch_deprecated_store_struct_return,
7133 set_gdbarch_deprecated_extract_return_value,
7134 set_gdbarch_deprecated_extract_struct_value_address,
7135 set_gdbarch_deprecated_call_dummy_words and
7136 set_gdbarch_deprecated_sizeof_call_dummy_words.
7137
055c394a
CV
71382003-06-13 Corinna Vinschen <vinschen@redhat.com>
7139
7140 * h8300-tdep.c (h8300_register_byte): Remove.
7141 (h8300h_register_byte): Remove.
7142 (h8300_register_virtual_type): Remove. Substitute by...
7143 (h8300_register_type): New function.
7144 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7145 (h8300h_extract_struct_value_address): Ditto.
7146 (h8300_gdbarch_init): Drop calls to
7147 set_gdbarch_deprecated_register_byte and
7148 set_gdbarch_deprecated_register_virtual_type.
7149 Add call to set_gdbarch_register_type.
7150
9c04cab7
AC
71512003-06-13 Andrew Cagney <cagney@redhat.com>
7152
7153 * gdbarch.sh: Update comments on registers.
7154 (deprecated_register_byte): Rename register_byte.
7155 (deprecated_register_raw_size): Rename register_raw_size.
7156 (deprecated_register_virtual_size): Rename register_virtual_size.
7157 (deprecated_register_virtual_type): Rename register_virtual_type.
7158 * gdbarch.h, gdbarch.c: Re-generate.
7159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7160 * vax-tdep.c (vax_gdbarch_init): Update.
7161 * v850-tdep.c (v850_gdbarch_init): Update.
7162 * sparc-tdep.c (sparc_gdbarch_init): Update.
7163 * sh-tdep.c (sh_gdbarch_init): Update.
7164 * s390-tdep.c (s390_gdbarch_init): Update.
7165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7166 * ns32k-tdep.c: Update.
7167 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7168 * mips-tdep.c (mips_gdbarch_init): Update.
7169 * mcore-tdep.c (mcore_gdbarch_init): Update.
7170 * m68k-tdep.c (m68k_gdbarch_init): Update.
7171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7172 * ia64-tdep.c (ia64_gdbarch_init): Update.
7173 * hppa-tdep.c (hppa_gdbarch_init): Update.
7174 * h8300-tdep.c (h8300_gdbarch_init): Update.
7175 * frv-tdep.c (frv_gdbarch_init): Update.
7176 * cris-tdep.c (cris_gdbarch_init): Update.
7177 * avr-tdep.c (avr_gdbarch_init): Update.
7178 * alpha-tdep.c (alpha_gdbarch_init): Update.
7179 * arm-tdep.c (arm_gdbarch_init): Update.
7180
b060cbea
AC
71812003-06-13 Andrew Cagney <cagney@redhat.com>
7182
7183 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7184 mips_o32_use_struct_convention with always_use_struct_convention.
7185
0fc9922a
DC
71862003-06-12 David Carlton <carlton@kealia.com>
7187
7188 * cp-namespace.c (cp_set_block_scope): Comment out
7189 processing_has_namespace_info branch.
7190
1fd35568
JB
71912003-06-12 Jim Blandy <jimb@redhat.com>
7192
f470a70a
JB
7193 Recognize and skip 64-bit PowerPC Linux linkage functions.
7194 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7195 insn_pattern, insns_match_pattern, d_field, ds_field): New
7196 functions, macros, and types for working with PPC instructions.
7197 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7198 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7199 ppc64_skip_trampoline_code): New functions, variables, and macros
7200 for recognizing and skipping linkage functions.
7201 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7202 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7203
49ff75ad
JB
7204 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7205 register offsets for both the 32- and 64-bit interfaces.
7206
bd918c83
JB
7207 Actually finish the job started by my change of 2003-05-29.
7208 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7209 other #definition of this.
7210 (ppc_linux_skip_trampoline_code): Remove declaration.
7211 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7212 static.
7213 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7214 method for GDBARCH.
7215
7216 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7217 'long' on ppc64-*-linux*.
7218
f8c59253
JB
7219 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7220 isn't #defined, assume the register doesn't exist: act as if
7221 tdep->ppc_mq_regnum were -1.
7222
8fbb30b1
JB
7223 * configure.host, configure.tgt: Add entries for
7224 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7225 powerpc/linux.mt.
7226 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7227 New files.
7228
1fd35568
JB
7229 * arch-utils.c (always_use_struct_convention): New function.
7230 * arch-utils.h (always_use_struct_convention): New prototype.
7231 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7232 (alpha_gdbarch_init): Register always_use_struct_convention,
7233 instead of alpha_use_struct_convention.
7234 * cris-tdep.c (cris_use_struct_convention): Delete.
7235 (cris_gdbarch_init): Register always_use_struct_convention,
7236 instead of cris_use_struct_convention.
7237 * frv-tdep.c (frv_use_struct_convention): Delete.
7238 (frv_gdbarch_init): Register always_use_struct_convention,
7239 instead of frv_use_struct_convention.
7240 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7241 (h8300_gdbarch_init): Register always_use_struct_convention,
7242 instead of h8300_use_struct_convention.
e3305dd9 7243 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
7244 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7245 instead of mips_o32_use_struct_convention.
7246
e14e6e9c
AC
72472003-06-12 Andrew Cagney <cagney@redhat.com>
7248
7249 * wince.c: Include "mips-tdep.h".
7250 * mips-tdep.h (mips_next_pc): Declare.
7251 * mcore-tdep.c: Make more local functions static.
7252 * Makefile.in (wince.o): Update dependencies.
7253
2335f48e
DC
72542003-06-12 David Carlton <carlton@kealia.com>
7255
7256 * symtab.c (lookup_symbol_aux_minsyms): Replace
7257 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7258 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7259 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7260 SYMBOL_NATURAL_NAME.
7261
f70a7d61
AS
72622003-06-12 Andreas Schwab <schwab@suse.de>
7263
7264 * Makefile.in (tuiDisassem.o): Update dependencies.
7265
b6429628
DC
72662003-06-12 David Carlton <carlton@bactrian.org>
7267
7268 * symtab.h: Delete declaration of make_symbol_overload_list.
7269 Add declaration of lookup_partial_symbol.
7270 * symtab.c (remove_params): Move to cp-support.c.
7271 (overload_list_add_symbol, make_symbol_overload_list)
7272 (sym_return_val_size, sym_return_val_index): Ditto.
7273 (lookup_partial_symbol): Make extern.
7274 * cp-support.h: Add declaration of make_symbol_overload_list.
7275 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7276 symtab.h, and block.h.
7277 (remove_params): Move here from symtab.c.
7278 (overload_list_add_symbol, make_symbol_overload_list)
7279 (sym_return_val_size, sym_return_val_index): Ditto.
7280 * valops.c: Include cp-support.h.
7281 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7282 frame_h, and block_h.
7283 (valops.o): Depend on cp_support_h.
7284
084edea5
CV
72852003-06-12 Corinna Vinschen <vinschen@redhat.com>
7286
7287 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7288 substitute by NUM_REGS throughout.
7289 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7290 (h8300s_register_name): New function for H8S registers.
7291 (h8300sx_register_name): Ditto for H8SX registers.
7292 (h8300_print_register): Revise register printing, avoid depending
7293 on 32 bit long.
0261a0d0 7294 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7295 (h8300h_register_byte): New function for any other architecture.
7296 (h8300_register_raw_size): Remove.
7297 (h8300_register_virtual_type): Revise to return actually useful
7298 type.
7299 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7300 (h8300h_extract_struct_value_address): New function for any other
7301 architecture.
7302 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7303 set_gdbarch_register_name, set_gdbarch_register_byte,
7304 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7305 Remove calls to set_gdbarch_deprecated_register_size,
7306 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7307 set_gdbarch_deprecated_max_register_raw_size,
7308 set_gdbarch_register_virtual_size and
7309 set_gdbarch_deprecated_max_register_virtual_size entirely.
7310 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7311 set_gdbarch_long_double_bit.
7312
06194148
JJ
73132003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7314
8ffd9b1b
AJ
7315 * doublest.c (convert_doublest_to_floatformat): When dealing
7316 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7317 processing a full 32 bits of mantissa.
7318
de4f826b
DC
73192003-06-11 David Carlton <carlton@bactrian.org>
7320
7321 * dictionary.h: New.
7322 * dictionary.c: New.
7323 * block.h: Add opaque declaration for struct dictionary.
7324 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7325 'sym' members.
7326 (BLOCK_DICT): New macro.
7327 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7328 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7329 BLOCK_SHOULD_SORT.
7330 (ALL_BLOCK_SYMBOLS): Update definition.
7331 * Makefile.in (SFILES): Add dictionary.c.
7332 (dictionary_h): New.
7333 (COMMON_OBS): Add dictionary.o.
7334 (dictionary.o): New.
7335 (ada-lang.o): Depend on dictionary_h.
7336 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7337 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7338 (mi-cmd-stack.o): Ditto.
7339 (gdbtk-cmds.o): Update dependencies.
7340 (gdbtk-stack.o): Ditto.
7341 * ada-lang.c: Include dictionary.h.
7342 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7343 (fill_in_ada_prototype, debug_print_block): Ditto.
7344 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7345 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7346 'is_sorted'.
7347 * mdebugread.c: Include dictionary.h.
7348 (struct parse_stack): Delete 'maxsyms' member.
7349 (parse_symbol): Update calls to new_block. Delete calls to
7350 shrink_block. Use dictionary methods.
7351 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7352 Update calls to new_symtab. Don't maintain maxsyms data.
7353 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7354 (add_symbol): Just call dict_add_symbol.
7355 (new_symtab): Delete 'maxsyms' argument.
7356 (new_symtab): Update calls to new_block.
7357 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7358 (shrink_block): Delete function.
7359 (fixup_sigtramp): Update call to new_block. Add symbol via
7360 dict_add_symbol.
7361 * jv-lang.c: Include dictionary.h.
7362 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7363 appropriately. Set class_symtab->free_func. Make sure the
7364 blockvector is big enough to hold two blocks.
7365 (add_class_symtab_symbol): Use dictionary methods.
7366 (free_class_block): New function.
7367 (type_from_class): Replace explicit iteration by
7368 ALL_BLOCK_SYMBOLS.
7369 * symtab.h (struct symtab): Replace 'free_ptr' method by
7370 'free_func'.
7371 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7372 sort_symtab_syms.
7373 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7374 sort_symtab_syms.
7375 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7376 Include dictionary.h.
7377 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7378 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7379 sort_symtab_syms.
7380 * objfiles.c: Include dictionary.h.
7381 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7382 * buildsym.c: Include dictionary.h.
7383 (finish_block): Use dictionary methods.
7384 (end_symtab): Set free_func to NULL, not free_ptr.
7385 * tracepoint.c: Include dictionary.h.
7386 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7387 (scope_info): Ditto.
7388 * stack.c: Include dictionary.h.
7389 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7390 (print_block_frame_labels, print_frame_arg_vars)
7391 (print_frame_args): Ditto.
7392 * symmisc.c (free_symtab_block): Use dictionary methods.
7393 (dump_symtab): Ditto.
7394 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7395 Include dictionary.h.
7396 * symfile.h: Delete declarations of sort_block_syms,
7397 sort_symtab_syms.
7398 * symfile.c (sort_block_syms): Delete.
7399 (sort_symtab_syms): Delete.
7400 * symtab.c: Include dictionary.h.
7401 (lookup_block_symbol): Use dictionary iterators.
7402 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7403 (search_symbols, make_symbol_completion_list): Ditto.
7404 (make_symbol_overload_list): Ditto.
7405 * valops.c (value_of_local): Use dict_empty.
7406 Include dictionary.h.
7407
a31f978c
JB
74082003-06-11 J. Brobecker <brobecker@gnat.com>
7409
7410 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7411
526e70c0
DC
74122003-06-11 David Carlton <carlton@bactrian.org>
7413
7414 * block.h (BLOCK_SHOULD_SORT): Delete.
7415 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7416 blocks.
7417 * ada-lang.c (ada_add_block_symbols): Ditto.
7418 * symfile.c (sort_block_syms): Delete.
7419 (sort_symtab_syms): Ditto.
7420 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7421 declarations.
7422 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7423 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7424 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7425 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7426 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7427 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7428 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7429
33c08150
JJ
74302003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7431
8ffd9b1b 7432 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7433 bits to 128.
7434
781a750d
AC
74352003-06-11 Andrew Cagney <cagney@redhat.com>
7436
7437 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7438 REGISTER_CONVERTIBLE.
7439 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7440 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7441 * gdbarch.h, gdbarch.c: Re-generate.
7442 * arch-utils.h (deprecated_register_convertible_not): Rename
7443 generic_register_convertible_not.
7444 * arch-utils.c (deprecated_register_convertible_not): Rename
7445 generic_register_convertible.
7446 (legacy_convert_register_p, legacy_register_to_value): Update.
7447 * sh-tdep.c (sh64_push_arguments): Update.
7448 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7449 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7450 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7451 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7452 * arch-utils.c (legacy_value_to_register): Update.
7453 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7454 (rs6000_register_convert_to_raw): Make parameter "from" const.
7455 * mips-tdep.c (mips_gdbarch_init): Update.
7456 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7457 * infcmd.c (default_print_registers_info): Update.
7458 * ia64-tdep.c (ia64_gdbarch_init): Update.
7459 (ia64_register_convert_to_raw): Make parameter "from" const.
7460 * i386-tdep.c (i386_gdbarch_init): Update.
7461 (i386_register_convert_to_raw): Update.
7462
cd90e54f
AC
74632003-06-11 Andrew Cagney <cagney@redhat.com>
7464
7465 * remote-fileio.c: Include "remote-fileio.h".
7466 * Makefile.in (remote-fileio.o): Update dependencies.
7467 (remote_fileio_h): Fix typo.
7468
a78f21af
AC
74692003-06-11 Andrew Cagney <cagney@redhat.com>
7470
7471 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7472 (xstormy16_save_dummy_frame_tos): Make static.
7473 (_initialize_xstormy16_tdep): Add declaration.
7474 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7475 * v850-tdep.c: Make local functions static.
7476 (_initialize_v850_tdep): Add declaration.
7477 * sparc-tdep.c: Make local functions static.
7478 (_initialize_sparc_tdep): Add declaration.
7479 * sh-tdep.c: Make local functions static.
7480 (_initialize_sh_tdep): Add declaration.
7481 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7482 * s390-tdep.c: Make local functions static.
7483 (_initialize_s390_tdep): Add declaration.
7484 * dbxread.c (find_stab_function_addr): Make static.
7485 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7486 * ocd.c (_initialize_remote_ocd): Add declaration.
7487 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7488 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7489 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7490 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7491 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7492 * remote-array.c (_initialize_array): Add declaration.
7493 (_initialize_remote_monitors): Add declaration.
7494 * remote-mips.c: Make local functions static.
7495 (_initialize_remote_mips): Add declaration.
7496 * mcore-tdep.c: Make all local functions static.
7497 (_initialize_mcore_tdep): Add declaration.
7498 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7499 * abug-rom.c (_initialize_abug_rom): Add declaration.
7500 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7501 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7502 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7503 * remote-est.c (_initialize_est): Add declaration.
7504 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7505 (m68hc11_call_dummy_address): Make static.
7506 * ia64-tdep.c: Make local functions static.
7507 (_initialize_ia64_tdep): Add declaration.
7508 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7509 * monitor.c (monitor_wait_filter): Make static.
7510 (_initialize_remote_monitors): Add declaration.
7511 * remote-hms.c (_initialize_remote_hms): Add declaration.
7512 * remote-e7000.c (fetch_regs_from_dump): Make static.
7513 (expect_n): Make static.
7514 (_initialize_remote_e7000): Add declaration.
7515 * ser-e7kpc.c: Always include "defs.h".
7516 (_initialize_ser_e7000pc): Add declaration.
7517 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7518 * cris-tdep.c: Make all but one function static.
7519 (_initialize_cris_tdep): Add declaration.
7520 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7521 * solib.c (update_solib_list): Make static.
7522 (_initialize_solib): Add declaration.
7523 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7524 (_initialize_avr_tdep): Add declaration.
7525 * remote-rdi.c (voiddummy): Make static.
7526 (_initialize_remote_rdi): Add declaration.
7527 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7528 * remote-rdp.c (send_rdp): Make static.
7529 (_initialize_remote_rdp): Add declaration.
7530 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7531
cbcdb1f5
CV
75322003-06-11 Corinna Vinschen <vinschen@redhat.com>
7533
7534 * remote-fileio.c: Make ari happy.
7535
a191ea8d
JB
75362003-06-10 J. Brobecker <brobecker@gnat.com>
7537
7538 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7539 fetching the trailing bytes of the buffer we are about to write.
7540
0ef75e11
AC
75412003-06-10 Andrew Cagney <cagney@redhat.com>
7542
7543 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7544 * Makefile.in (remote-fileio.o): Update dependencies.
7545 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7546 include <setjmp.h>, or <sys/types.h> conditional on USG.
7547 (remote_fio_jmp_buf): Delete global variable.
7548
449092f6 75492003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7550 Martin M. Hunt <hunt@redhat.com>
449092f6 7551
559fa028
AC
7552 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7553 (SFILES): Add remote-fileio.c.
7554 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7555 dependencies for building remote.o.
449092f6
CV
7556 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7557 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7558 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7559 static storage class.
7560 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7561 'F' packet.
7562 (_initialize_remote): Call initialize_remote_fileio().
7563 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7564 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7565 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7566 (captured_main): Initialize new ui_files.
7567 * ui-file.c: Add read and fgets input functions.
7568 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7569 (null_file_read): New function.
7570 (ui_file_read): New function.
7571 (set_ui_file_read): New function.
7572 (stdio_file_read): New function.
7573 * ui-file.h: New type ui_file_read_ftype.
7574 (set_ui_file_read): Declare.
7575 (ui_file_read): Declare.
7576
248de703
AC
75772003-06-09 Andrew Cagney <cagney@redhat.com>
7578
7579 * frame.h (deprecated_unwind_get_saved_register): Rename
7580 generic_unwind_get_saved_register, update comments.
7581 * mips-tdep.c (mips_get_saved_register): Update.
7582 * frame.c (deprecated_unwind_get_saved_register): Update.
7583
0ed8aa57
AC
75842003-06-09 Andrew Cagney <cagney@redhat.com>
7585
7586 * vax-tdep.c (vax_frame_locals_address): Delete function.
7587 (vax_gdbarch_init): Do not set frame_locals_address.
7588 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7589 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7590 * s390-tdep.c (s390_frame_args_address): Delete function.
7591 (s390_gdbarch_init): Do not set frame_args_address or
7592 frame_locals_address.
7593 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7594 (ns32k_gdbarch_init): Do not set frame_locals_address.
7595 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7596 (hppa_frame_locals_address): Delete function.
7597 (hppa_gdbarch_init): Do not set frame_args_address, or
7598 frame_locals_address.
7599 * arm-tdep.c (arm_frame_args_address): Delete.
7600 (arm_frame_locals_address): Delete.
7601 (arm_gdbarch_init): Do not set frame_args_address, or
7602 frame_locals_address.
7603
983a287a
AC
76042003-06-09 Andrew Cagney <cagney@redhat.com>
7605
7606 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7607 * gdbarch.h, gdbarch.c: Re-generate.
7608 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7609 * arch-utils.c (frame_num_args_unknown): Delete function.
7610 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7611 (frame_info): Use FRAME_NUM_ARGS_P.
7612 * arm-tdep.c (arm_frame_num_args): Delete function.
7613 (arm_gdbarch_init): Do not set frame_num_args.
7614 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7615 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7616 (hppa_gdbarch_init): Do not set frame_num_args.
7617 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7619 frame_num_args to default frame_num_args_unknown.
7620 * v850-tdep.c (v850_gdbarch_init): Ditto.
7621 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7622 * sh-tdep.c (sh_gdbarch_init): Ditto.
7623 * s390-tdep.c (s390_gdbarch_init): Ditto.
7624 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7625 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7626 * mips-tdep.c (mips_gdbarch_init): Ditto.
7627 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7628 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7630 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7631 * i386-tdep.c (i386_gdbarch_init): Ditto.
7632 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7633 * frv-tdep.c (frv_gdbarch_init): Ditto.
7634 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7635 * cris-tdep.c (cris_gdbarch_init): Ditto.
7636 * avr-tdep.c (avr_gdbarch_init): Ditto.
7637 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7638
8d3b0994
AC
76392003-06-09 Andrew Cagney <cagney@redhat.com>
7640
7641 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7642 (print_frame_args): Moved to "stack.c".
7643 * stack.c: Include "gdb_assert.h".
7644 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7645 (print_frame_args): Moved from "printcmd.c".
7646 * frame.h (print_frame_args): Delete declaration.
7647 * Makefile.in (stack.o): Update dependencies.
7648
25e3a86b
AC
76492003-06-08 Andrew Cagney <cagney@redhat.com>
7650
7651 * frame.c (get_prev_frame): Remove reference to
7652 frame_args_address_correct in comments.
7653 * frame-base.c (default_frame_args_address): Delete code
7654 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7655 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7656 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7657 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7658 (vax_frame_args_address_correct): Delete declaration.
7659
a9e5fdc2
AC
76602003-06-08 Andrew Cagney <cagney@redhat.com>
7661
7662 * gdbarch.sh (UNWIND_SP): Add.
7663 * gdbarch.h, gdbarch.c: Re-generate.
7664 * frame.c (frame_sp_unwind): New function.
7665 (get_frame_sp): New function.
7666 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7667 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7668 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7669 value.
7670 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7671 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7672
8983bd83
AC
76732003-06-08 Andrew Cagney <cagney@redhat.com>
7674
7fec2c59
AC
7675 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7676 REMOTE_BREAKPOINT.
7677 * remote.c: Update.
7678 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7679 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7680 * config/m68k/tm-sun3.h: Update.
7681 * config/m68k/tm-m68klynx.h: Update.
7682 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7683
8983bd83
AC
7684 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7685 trad_frame". Update comments.
7686 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7687 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7688 (trad_frame_register_value, trad_frame_prev_register): Update.
7689
b9362cc7
AC
76902003-06-08 Andrew Cagney <cagney@redhat.com>
7691
7692 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7693 from GCC's acinclude.m4.
7694 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7695 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7696 * main.c (error_init): Delete declaration.
7697 * defs.h (error_init): Declare.
7698 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7699 (rs6000_convert_from_func_ptr_addr): Make static.
7700 (_initialize_rs6000_tdep): Add declaration.
7701 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7702 (show_commands, set_verbose, show_history): Delete declaration.
7703 * top.h (set_verbose): Add declaration.
7704 (show_history, set_history, show_commands): Add declaration.
7705 (do_restore_instream_cleanup): Add declaration.
7706 * objc-lang.c (specialcmp): Make static.
7707 (print_object_command): Make static.
7708 (find_objc_msgsend): Make static.
7709 (find_objc_msgcall_submethod_helper): Make static.
7710 (find_objc_msgcall_submethod): Make static.
7711 (_initialize_objc_language): Add declaration.
7712 (find_implementation_from_class): Make static.
7713 (find_implementation): Make static.
7714 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7715 * objc-lang.h (lookup_struct_typedef): Add declaration.
7716 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7717 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7718 (do_restore_user_call_depth): Make static.
7719 (do_restore_instream_cleanup): Delete declaration.
7720 (dont_repeat): Delete declaration.
7721 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7722 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7723 * reggroups.c (_initialize_reggroup): Add declaration.
7724 * cp-support.c (_initialize_cp_support): Add declaration.
7725 * cp-abi.c (_initialize_cp_abi): Add declaration.
7726 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7727 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7728 (_initialize_gnu_v3_abi): Add declaration.
7729 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7730 (_initialize_gnu_v2_abi): Add declaration.
7731 * frame-base.c (_initialize_frame_base): Add declaration.
7732 * doublest.c (floatformat_from_length): Make static.
7733 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7734 * frame.c (create_sentinel_frame): Make static.
7735 (_initialize_frame): Add declaration.
7736 * top.c (do_catch_errors): Make static.
7737 (gdb_rl_operate_and_get_next_completion): Make static.
7738 * typeprint.c: Include "typeprint.h".
7739 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7740 (sentinel_frame_this_id): Make static.
7741 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7742 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7743 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7744 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7745 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7746 * maint.c (maintenance_print_architecture): Make static.
7747 * signals/signals.c (_initialize_signals): Add declaration.
7748 * std-regs.c (_initialize_frame_reg): Add declaration.
7749 * jv-exp.y (push_variable): ISO C definition.
7750 (push_qualified_expression_name): Ditto.
7751 * memattr.c (_initialize_mem): Add declaration.
7752 * remote.c (remote_check_watch_resources): Make static.
7753 (remote_stopped_by_watchpoint): Make static.
7754 (remote_stopped_data_address): Make static.
7755 * d10v-tdep.c (nr_dmap_regs): Make static.
7756 (a0_regnum): Make static.
7757 (d10v_frame_unwind_cache): Make static.
7758 (d10v_frame_p): Make static.
7759 * osabi.c (show_osabi): Make static.
7760 (_initialize_gdb_osabi): Add extern declaration.
7761 * gdbtypes.c (make_qualified_type): Make static.
7762 (safe_parse_type): Make static.
7763 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7764 * macrotab.c (macro_bcache_free): Make static.
7765 * interps.c (interp_set_quiet): Make static.
7766 (interpreter_exec_cmd): Make static.
7767 * stack.h (select_frame_command): New file.
7768 * stack.c: Include "stack.h".
7769 (select_frame_command_wrapper): Delete function.
7770 (select_frame_command): Make global.
7771 * infcall.c: Include "infcall.h".
7772 * linespec.c: Include "linespec.h".
7773 * symfile.c (sections_overlap): Make static.
7774 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7775 * charset.c (_initialize_charset): Add missing prototype.
7776 * regcache.c (init_legacy_regcache_descr): Make static.
7777 (do_regcache_xfree): Make static.
7778 (regcache_xfer_part): Make static.
7779 (_initialize_regcache): Add missing prototype.
7780 * breakpoint.c (parse_breakpoint_sals): Make static.
7781 (breakpoint_sals_to_pc): Make static.
7782 * interps.h (clear_interpreter_hooks): ISO C declaration.
7783 * Makefile.in (stack_h): Define.
7784 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7785 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7786
a0f267c7
AC
77872003-06-08 Andrew Cagney <cagney@redhat.com>
7788
7789 * Makefile.in (d10v-tdep.o): Update dependencies.
7790 (SFILES): Add trad-frame.c.
7791 (trad_frame_h): Define.
7792 (COMMON_OBS): Add trad-frame.o.
7793 (trad-frame.o): Specify dependencies.
7794 * d10v-tdep.c: Include "trad-frame.h".
7795 (saved_regs_unwinder): Delete function.
7796 (d10v_frame_prev_register): Use trad_frame_prev_register.
7797 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7798 trad_frame", delete "regs" and "prev_sp".
7799 (prologue_find_regs): Use trad-frame.
7800 * trad-frame.h, trad-frame.c: New files.
7801
4538b4f4
MK
78022003-06-08 Mark Kettenis <kettenis@gnu.org>
7803
7804 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7805
a0273b2f
AF
78062003-06-07 Adam Fedor <fedor@gnu.org>
7807
7808 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7809 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7810 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7811 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7812 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7813 Use it.
7814
3a6c3343
AC
78152003-06-07 Andrew Cagney <cagney@redhat.com>
7816
7817 * symfile.h: Re-indent, clean up comments.
7818
b46e02f6
AC
78192003-06-07 Andrew Cagney <cagney@redhat.com>
7820
7821 * inferior.h (deprecated_write_sp): Replace
7822 generic_target_write_sp.
7823 * regcache.c (deprecated_write_sp): Replace
7824 generic_target_write_sp.
7825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7826 * vax-tdep.c (vax_gdbarch_init): Update.
7827 * v850-tdep.c (v850_gdbarch_init): Update.
7828 * sparc-tdep.c (sparc_gdbarch_init): Update.
7829 * sh-tdep.c (sh_gdbarch_init): Update.
7830 * s390-tdep.c (s390_gdbarch_init): Update.
7831 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7832 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7833 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7834 * mcore-tdep.c (mcore_gdbarch_init): Update.
7835 * m68k-tdep.c (m68k_gdbarch_init): Update.
7836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7837 * ia64-tdep.c (ia64_gdbarch_init): Update.
7838 * h8300-tdep.c (h8300_gdbarch_init): Update.
7839 * frv-tdep.c (frv_gdbarch_init): Update.
7840 * cris-tdep.c (cris_gdbarch_init): Update.
7841 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7842
a42e117c
AC
78432003-06-07 Andrew Cagney <cagney@redhat.com>
7844
7845 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7846 Assert that PC_REGNUM is valid.
7847 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7848
bd1ce8ba
AC
78492003-06-07 Andrew Cagney <cagney@redhat.com>
7850
7851 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7852 * gdbarch.h, gdbarch.c: Regenerate.
7853 * mn10300-tdep.c: Include "gdb_assert.h".
7854 (mn10300_read_fp): New function.
7855 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7856 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7857 * ia64-tdep.c: Include "gdb_assert.h".
7858 (ia64_read_fp): New function.
7859 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7860 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7861 * regcache.c (generic_target_read_sp): Delete function.
7862 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7863 * inferior.h (generic_target_read_sp): Delete declaration.
7864 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7865 generic_target_read_sp.
7866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7867 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7868 * sh-tdep.c (sh_gdbarch_init): Ditto.
7869 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7870 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7871
ec5cbaec
AC
78722003-06-07 Andrew Cagney <cagney@redhat.com>
7873
7874 * gdbarch.sh: Comment each field of startup_gdbarch.
7875 * gdbarch.h, gdbarch.c: Re-generate.
7876
cde9ea48
AC
78772003-06-07 Andrew Cagney <cagney@redhat.com>
7878
7879 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7880 * gdbarch.h, gdbarch.c: Re-generate.
7881 * regcache.c: Update comments on read_pc et.al.
7882 (generic_target_read_pc): Delete function.
7883 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7884 * inferior.h (generic_target_read_pc): Delete declaration.
7885 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7886 generic_target_read_pc.
7887 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7888 * sh-tdep.c (sh_gdbarch_init): Ditto.
7889 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7891
9a90a780
AC
78922003-06-07 Andrew Cagney <cagney@redhat.com>
7893
7894 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7895 "index" with "special_local_sect". Use strcmp instead of STREQ.
7896 Append period to coments.
7897
a39a16c4
MM
78982003-06-06 Mark Mitchell <mark@codesourcery.com>
7899
7900 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7901 (elfstab_offset_sections): Likewise.
7902 * gdb-stabs.h (stab_section_info): Likewise.
7903 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7904 * objfiles.c (objfile_relocate): Likewise.
7905 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7906 * remote.c (get_offsets): Likewise.
7907 (remote_cisco_objfile_relocate): Likewise.
7908 * somread.c (som_symfile_offsets): Likewise.
7909 * symfile.c (alloc_section_addr_info): New function.
7910 (build_section_addr_info_from_section_tab): Use it.
7911 (free_section_addr_info): Adjust.
7912 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7913 (syms_from_objfile): Allocate local_addr dynamically.
7914 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7915 dynamically.
7916 (add_symbol_file_command): Allocate sect_opts dynamically.
7917 (reread_symbols): Avoid use of SECT_OFF_MAX.
7918 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7919 (alloc_section_addr_info): Declare it.
7920 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7921 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7922 dynamically.
7923 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7924
20c6c2f8
AC
79252003-06-06 Andrew Cagney <cagney@redhat.com>
7926
7927 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7928 (d10v_frame_unwind_cache): Do not set "return_pc".
7929
884a26c8
MS
79302003-06-06 Michael Snyder <msnyder@redhat.com>
7931
7932 * h8300-tdep.c: Make tidy (long lines).
7933
088ce440
ML
79342003-06-06 Michal Ludvig <mludvig@suse.cz>
7935
8ffd9b1b 7936 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7937 to regcache_collect().
7938
7d773d96
JB
79392003-06-05 J. Brobecker <brobecker@gnat.com>
7940
7941 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7942 pc_in_sigtramp multiarch method.
7943 (hppa_hpux_som_init_abi): Use it.
7944 (hppa_hpux_elf_init_abi): Likewise.
7945 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7946 macro has been multiarched.
7947 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7948 macro here, as hppa64 isn't multiarched yet.
7949
1df6926e
AC
79502003-06-05 Andrew Cagney <cagney@redhat.com>
7951
7952 * Makefile.in (value_h): Add $(frame_h).
7953 * value.h: Include "frame.h".
7954 (struct value): Replace "frame_addr" with "frame_id".
7955 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7956 * values.c (allocate_value): Use VALUE_FRAME_ID.
7957 (value_copy): Use VALUE_FRAME_ID.
7958 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7959 * valops.c (value_assign): Update. Use frame_find_by_id.
7960
6b53acc6
ML
79612003-06-05 Michal Ludvig <mludvig@suse.cz>
7962
7963 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7964 in each pass.
7965
4d9850d3
JJ
79662003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7967
7968 * thread-db.c (check_event): For create/death event breakpoints,
7969 loop through all messages to ensure that we read the message
7970 corresponding to the breakpoint we are at.
7971
8efca6ba
MS
79722003-06-04 Michael Snyder <msnyder@redhat.com>
7973
7974 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7975
0912c7f2
MK
79762003-06-04 Mark Kettenis <kettenis@gnu.org>
7977
7978 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7979 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7980 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7981 when handling .eh_frame sections.
7982
4e370325
JB
79832003-06-04 J. Brobecker <brobecker@gnat.com>
7984
7985 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7986 prepare_to_proceed procedure instead of the hppa-specific one.
7987 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7988
b757528f 79892003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7990
b757528f
JJ
7991 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7992 * config.in: Regenerated.
7993 * configure.in: Add test for syscall function and check for
7994 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7995 * configure: Regenerated.
7996 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7997 <sys/syscall.h>.
7998 (kill_lwp): New function that uses tkill syscall or
7999 uses kill, depending on whether threading model is nptl or not.
8000 All callers of kill() changed to use kill_lwp().
8001 (lin_lwp_wait): Make special check when WIFEXITED occurs to
8002 see if all threads have already exited in the nptl model.
8003 (stop_and_resume_callback): New callback function used by the
8004 lin_lwp_wait thread exit handling code.
8005 (stop_wait_callback): Check for threads already having exited and
8006 delete such threads fromt the lwp list when discovered.
8007 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 8008
b757528f
JJ
8009 Roland McGrath <roland@redhat.com>
8010 * i386-linux-nat.c (ps_get_thread_area): New function needed by
8011 nptl libthread_db.
8012
087779b1
RH
80132003-06-03 Richard Henderson <rth@redhat.com>
8014
b21fd293
RH
8015 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
8016 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
8017 (alpha_sigtramp_frame_prev_register): Likewise.
8018 (alpha_heuristic_frame_prev_register): Likewise.
8019 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
8020
8ffd9b1b 8021 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
8022 alpha-specific register id names.
8023 (alpha_mdebug_frame_unwind_cache): Likewise.
8024 (alpha_mdebug_frame_prev_register): Likewise.
8025
baa490c4
RH
80262003-06-03 Richard Henderson <rth@redhat.com>
8027
8028 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
8029 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
8030 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
8031 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
8032 unwind routines.
8033 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8034 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8035 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8036
8037 * alpha-linux-tdep.c: Remove unnecessary includes.
8038 * Makefile.in (alpha-linux-tdep.o): Update.
8039
80402003-06-03 Richard Henderson <rth@redhat.com>
8041
8042 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
8043 (alphabsd_fill_fpreg): Likewise.
8044
f534e522
JB
80452003-06-03 J. Brobecker <brobecker@gnat.com>
8046
8047 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
8048 references to struct frame_info fields by calls to the equivalent
8049 accessors. Necessary now that frame_info is opaque.
8050
4035536b
JB
80512003-06-03 J. Brobecker <brobecker@gnat.com>
8052
8053 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
8054 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
8055 structure, field no longer exists.
8056
0bd79c5c
JB
80572003-06-03 J. Brobecker <brobecker@gnat.com>
8058
8059 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8060 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
8061
37bb6d9f
JB
80622003-06-03 J. Brobecker <brobecker@gnat.com>
8063
8064 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
8065 references to struct frame_info fields by calls to the equivalent
8066 accessors. Necessary now that frame_info is opaque.
8067
852ee05c
JB
80682003-06-03 J. Brobecker <brobecker@gnat.com>
8069
8070 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
8071 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
8072 structure, field no longer exists.
8073
7d58c67d
TR
80742003-06-03 Theodore A. Roth <troth@openavr.org>
8075
8ffd9b1b 8076 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
8077 accumulation of the size of all registers instead of blindly using
8078 DEPRECATED_REGISTER_BYTES.
8079
0a48e7e8
MS
80802003-06-03 Michael Snyder <msnyder@redhat.com>
8081
8082 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
8083 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
8084 for h8300sx.
8085
9798ab0d
JB
80862003-06-03 J. Brobecker <brobecker@gnat.com>
8087
8088 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
8089 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8090
00b037e2
AC
80912003-06-03 Andrew Cagney <cagney@redhat.com>
8092
8093 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
8094 (sparc_convert_to_raw): Delete function.
8095 (sparc_gdbarch_init): Do not set register_convert_to_raw or
8096 register_convert_to_virtual.
8097
043b2f77
JJ
80982003-06-03 Jeff Johnston <jjohnstn@redhat.com>
8099
8100 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
8101 layer if not dealing with a statically-linked threaded program.
8102
f43caff8
KW
81032003-06-03 Kris Warkentin <kewarken@qnx.com>
8104
8105 * solib.c (solib_open): Update comment to reflect actual search order.
8106
ae1e7417
AC
81072003-06-03 Andrew Cagney <cagney@redhat.com>
8108
8109 * frame.c (get_frame_memory_signed): New function.
8110 (get_frame_memory, get_frame_memory_unsigned): New function.
8111 (get_frame_arch): New function.
8112 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8113 (get_frame_memory, get_frame_unsigned_memory): Declare.
8114 * d10v-tdep.c (d10v_frame_unwind_cache): Use
8115 get_frame_memory_unsigned and get_frame_arch.
8116 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8117
cb123844
RG
81182003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
8119
8120 * MAINTAINERS (write after approval): Add myself.
8121
1bb792e9
JB
81222003-06-03 Jim Blandy <jimb@redhat.com>
8123
8124 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8125 elements of gregset_t are 64 bits each, but access registers
8126 are still 32 bits, so they're packed two per gregset_t
8127 element. Unpack/pack them properly.
8128
aee8d8ba
DC
81292003-06-02 David Carlton <carlton@bactrian.org>
8130
8131 * linespec.c (find_methods): Break out code into
8132 add_matching_methods and add_constructors.
8133 (add_matching_methods): New.
8134 (add_constructors): Ditto.
8135
bf7488d2
AC
81362003-06-02 Andrew Cagney <cagney@redhat.com>
8137
bf7488d2
AC
8138 * sparc-tdep.c (sparc_print_registers): Delete call to
8139 REGISTER_CONVERTIBLE.
8140 (sparc_gdbarch_init): Do not set register_convertible.
8141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8142 * frv-tdep.c (frv_gdbarch_init): Ditto.
8143 * cris-tdep.c (cris_gdbarch_init): Ditto.
8144
adedef68
EZ
81452003-06-02 Elena Zannoni <ezannoni@redhat.com>
8146
8ffd9b1b 8147 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
8148 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8149 (syms_from_objfile): Ditto.
8150
650fcc91
AS
81512003-06-03 Andreas Schwab <schwab@suse.de>
8152
8153 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8154 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8155
df4a182b
RH
81562003-06-02 Richard Henderson <rth@redhat.com>
8157
8158 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8159 a member of all_reggroup.
8160
c483c494
RH
81612003-06-02 Richard Henderson <rth@redhat.com>
8162
8163 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8164 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8165 (alpha_lds, alpha_sts): New.
8166 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 8167 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
8168 restructure and fail for type sizes other than 4 or 8.
8169 (alpha_value_to_register): Similarly.
8170 (alpha_extract_return_value): Use alpha_sts.
8171 (alpha_store_return_value): Use alpha_lds.
8172 (alpha_gdbarch_init): Update hooks.
8173
b38b6be2
RH
81742003-06-02 Richard Henderson <rth@redhat.com>
8175
8176 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8177 regnum identifiers.
8178 (alpha_sigtramp_register_address): Likewise.
8179
98a8e1e5
RH
81802003-06-02 Richard Henderson <rth@redhat.com>
8181
8182 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8183 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8184 * alpha-tdep.h: Declare them.
8185
8186 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8187 Remove zerobuf. Don't error on UNIQUE.
8188 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8189 (ALPHA_REGSET_UNIQUE): Provide default.
8190 (supply_gregset): Use alpha_supply_int_regs.
8191 (fill_gregset): Use alpha_fill_int_regs.
8192 (supply_fpregset): Use alpha_supply_fp_regs.
8193 (fill_fpregset): Use alpha_fill_fp_regs.
8194 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8195 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8196 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8197 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8198 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8199 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8200
67dfac52
RH
82012003-06-02 Richard Henderson <rth@redhat.com>
8202
f75d70cc
RH
8203 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8204
67dfac52
RH
8205 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8206 (alpha_store_return_value): Likewise.
8207
0cf566ec
DC
82082003-06-02 David Carlton <carlton@math.stanford.edu>
8209
8210 * block.c (contained_in): Add 'const' to arguments.
8211 (block_function): Ditto.
8212 * block.h: Update declarations for block_function and
8213 contained_in.
8214
cdef89d0
DC
82152003-06-02 David Carlton <carlton@math.stanford.edu>
8216
8217 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8218 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8219 * p-valprint.c (pascal_val_print): Ditto.
8220 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8221
72667056
RH
82222003-06-02 Richard Henderson <rth@redhat.com>
8223
98a8e1e5
RH
8224 * alpha-tdep.c (alpha_push_dummy_call): Use
8225 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 8226
8ffd9b1b 8227 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
8228 sign-extension of 32-bit values.
8229 (alpha_store_return_value): Similarly.
0ede8eca 8230
98a8e1e5
RH
8231 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8232 (alpha_extract_return_value): Likewise.
8233 (alpha_store_return_value): Likewise.
7b5e1cb3 8234
98a8e1e5
RH
8235 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8236 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 8237
98a8e1e5
RH
8238 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8239 (alpha_extract_struct_value_address): Likewise.
8240 (alpha_store_return_value): Likewise.
8241 (alpha_store_struct_return): Remove.
8242 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 8243
98a8e1e5
RH
8244 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8245 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8246 macros where appropriate.
8247 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8248 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8249
98a8e1e5
RH
8250 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8251 for SP, GP; void_func_ptr for PC; non-language-specific types
8252 for all others.
8253 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8254
6dd77b81
RH
82552003-06-02 Richard Henderson <rth@redhat.com>
8256
8257 * top.h (lim_at_start): Declare.
8258 * main.c (captured_main): Set it.
8259 * top.c (lim_at_start): Define.
8260 (command_loop): Use it instead of &environ.
8261 * event-top.c (command_handler): Likewise.
8262
f4dbdb54
JT
82632003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8264
8265 * mipsnbsd-tdep.c: Update copyright years.
8266 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8267
8f285956
RH
82682003-06-01 Richard Henderson <rth@redhat.com>
8269
98a8e1e5
RH
8270 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8271 (alpha-linux-tdep.o): Update dependencies.
8272 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8273 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8274
615967cb
RH
82752003-06-01 Richard Henderson <rth@redhat.com>
8276
98a8e1e5
RH
8277 * alpha-tdep.c (alpha_register_reggroup_p): New.
8278 (alpha_gdbarch_init): Register it.
615967cb 8279
b59661bd
AC
82802003-06-02 Andrew Cagney <cagney@redhat.com>
8281
8282 * dwarfread.c: Eliminate "register"
8283 (decode_die_type): Eliminate assignment within "if".
8284 (struct_type, decode_array_element_type): Ditto.
8285 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8286 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8287 (decode_modified_type, completedieinfo): Ditto.
8288 * block.c: Eliminate "register".
8289 (blockvector_for_pc_sect): Eliminate assignment within "if".
8290 * cp-support.h (struct symbol): Opaque declaration.
8291 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8292
5ef165c2
RH
82932003-06-01 Richard Henderson <rth@redhat.com>
8294
98a8e1e5
RH
8295 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8296 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8297
143985b7
AF
82982003-06-01 Adam Fedor <fedor@gnu.org>
8299
8300 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8301 * gdbarch.[ch]: Regenerate.
8302 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8303 (hppa_gdbarch_init): Set it in the gdbarch vector.
8304 * i386-tdep.c (i386_fetch_pointer_argument): New
8305 (i386_gdbarch_init): Set it into gdbarch.
8306 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8307 (rs6000_gdbarch_init): Set it in gdbarch.
8308 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8309 (sparc_gdbarch_init): Set it in gdbarch.
8310
ae0167b9
AC
83112003-06-01 Andrew Cagney <cagney@redhat.com>
8312
7c0b4a20
AC
8313 * defs.h (extract_address): Delete declaration.
8314 * findvar.c (extract_address): Delete function.
8315 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8316 extract_address with the inline equivalent,
8317 extract_unsigned_integer.
8318 (xstormy16_extract_struct_value_address): Ditto.
8319 (xstormy16_pointer_to_address): Ditto.
8320 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8321 * v850-tdep.c (v850_push_arguments): Ditto.
8322 (v850_extract_return_value): Ditto.
8323 (v850_extract_struct_value_address): Ditto.
8324 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8325 (sparcnbsd_get_longjmp_target_64): Ditto.
8326 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8327 (get_longjmp_target): Ditto.
8328 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8329 (sh64_extract_struct_value_address): Ditto.
8330 (sh_push_arguments): Ditto.
8331 (sh64_push_arguments): Ditto.
8332 * remote-vxsparc.c (vx_read_register): Ditto.
8333 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8334 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8335 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8336 * mipsv4-nat.c (get_longjmp_target): Ditto.
8337 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8338 * mips-nat.c (get_longjmp_target): Ditto.
8339 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8340 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8341 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8342 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8343 * irix5-nat.c (get_longjmp_target): Ditto.
8344 * irix4-nat.c (get_longjmp_target): Ditto.
8345 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8346 (ia64_push_arguments): Ditto.
8347 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8348 * h8300-tdep.c (h8300_push_arguments): Ditto.
8349 (h8300_store_return_value): Ditto.
8350 (h8300_extract_struct_value_address): Ditto.
8351 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8352 (frv_push_arguments): Ditto.
8353 * avr-tdep.c (avr_pointer_to_address): Ditto.
8354 (avr_push_arguments): Ditto.
8355 * arm-tdep.c (arm_push_dummy_call): Ditto.
8356 (arm_get_longjmp_target): Ditto.
8357 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8358 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8359 (alpha_get_longjmp_target): Ditto.
8360
ae0167b9
AC
8361 * solib-irix.c (extract_mips_address): Inline extract_address,
8362 replacing it with extract_signed_integer.
8363 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8364 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8365 (first_link_map_member, open_symbol_file_object): Ditto.
8366 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8367 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8368 (LM_NEXT, LM_NAME): Ditto.
8369
44d88583
RH
83702003-06-01 Richard Henderson <rth@redhat.com>
8371
98a8e1e5
RH
8372 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8373 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8374 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8375 (alpha_cannot_store_register): Likewise.
8376 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8377 * alpha-nat.c (supply_gregset): Likewise.
8378 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8379
310e9b6a
AC
83802003-06-01 Andrew Cagney <cagney@redhat.com>
8381
8382 * infcall.c (call_function_by_hand): Update comment on
8383 DEPRECATED_DUMMY_WRITE_SP.
8384
8385 * mips-tdep.c (mips_gdbarch_init): Do not set
8386 deprecated_dummy_write_sp.
8387 (mips_eabi_push_dummy_call): Set the SP register.
8388 (mips_o64_push_dummy_call): Set the SP register.
8389 (mips_o32_push_dummy_call): Set the SP register.
8390 (mips_n32n64_push_dummy_call): Set the SP register.
8391
5ab84872
RH
83922003-06-01 Richard Henderson <rth@redhat.com>
8393
98a8e1e5
RH
8394 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8395 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8396 (supply_gregset): Likewise.
8397 * alpha-tdep.c (alpha_store_return_value): Likewise.
8398 (alpha_get_longjmp_target): Likewise.
8399 (alpha_register_name): Constify array.
8400 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8401 deprecated_register_size, deprecated_register_bytes,
8402 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8403 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8404 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8405
09cc52fd
RH
84062003-06-01 Richard Henderson <rth@redhat.com>
8407
8408 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8409 from arg_reg_buffer to regcache to avoid double conversion.
8410
c7f16359
MK
84112003-06-01 Mark Kettenis <kettenis@gnu.org>
8412
8413 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8414 SP_REGNUM.
8415 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8416 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8417
7131cb6e
RH
84182003-06-01 Richard Henderson <rth@redhat.com>
8419
98a8e1e5
RH
8420 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8421 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8422
f3e0f90b
RH
84232003-06-01 Richard Henderson <rth@redhat.com>
8424
98a8e1e5
RH
8425 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8426 not overlapping PC_REGNUM.
f3e0f90b 8427
c88e30c0
RH
84282003-06-01 Richard Henderson <rth@redhat.com>
8429
98a8e1e5
RH
8430 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8431 alpha_push_arguments. Don't dump argument register data to
8432 the target stack. Fix float and 128-bit long double semantics.
8433 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8434 (alpha_fix_call_dummy): Remove.
8435 (alpha_call_dummy_words): Remove.
8436 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8437
f1a559ae
RH
84382003-06-01 Richard Henderson <rth@redhat.com>
8439
8440 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8441
5e045346
AC
84422003-06-01 Andrew Cagney <cagney@redhat.com>
8443
95404a3e
AC
8444 * mips-tdep.c (is_mips16_addr): New function.
8445 (make_mips16_addr, unmake_mips16_addr): New functions.
8446 (pc_is_mips16, mips_fetch_instruction): Use.
8447 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8448 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8449 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8450 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8451 TARGET_MIPS.
8452 * config/mips/tm-mips.h: Update copyright.
8453 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8454 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8455 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8456 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8457 (TM_PRINT_INSN_MACH): Delete.
8458 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8459
5e045346
AC
8460 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8461 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8462 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8463 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8464 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8465 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8466 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8467 mips*-*-riscos* and mips*-*-sysv* onto mips.
8468 * config/mips/mips64.mt: New file.
8469 * config/mips/mips.mt: New file.
8470 * config/mips/littlemips.mt: Delete file.
8471 * config/mips/decstation.mt: Delete file.
8472 * config/mips/vr4300el.mt: Delete file.
8473 * config/mips/vr5000el.mt: Delete file.
8474 * config/mips/vr5000.mt: Delete file.
8475 * config/mips/vr4100.mt: Delete file.
8476 * config/mips/vr4xxxel.mt: Delete file.
8477 * config/mips/vr4300.mt: Delete file.
8478 * config/mips/vr4xxx.mt: Delete file.
8479 * config/mips/bigmips.mt: Delete file.
8480 * config/mips/bigmips64.mt: Delete file.
8481 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8482 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8483 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8484 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8485 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8486 "tm-bigmips.h".
8487 * config/mips/tm-irix3.h: Ditto.
8488 * config/mips/tm-mipsv4.h: Ditto.
8489 * config/mips/tm-embed.h: Ditto.
8490 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8491 "tm-bigmips64.h".
8492 * config/mips/tm-vr5000el.h: Delete file.
8493 * config/mips/tm-tx39l.h: Delete file.
8494 * config/mips/tm-vr4300el.h: Delete file.
8495 * config/mips/tm-vr4xxxel.h: Delete file.
8496 * config/mips/tm-vr4300.h: Delete file.
8497 * config/mips/tm-vr4100.h: Delete file.
8498 * config/mips/tm-vr4xxx.h: Delete file.
8499 * config/mips/tm-vr5000.h: Delete file.
8500 * config/mips/tm-embedl64.h: Delete file.
8501 * config/mips/tm-embedl.h: Delete file.
8502 * config/mips/tm-embed64.h: Delete file.
8503 * config/mips/tm-bigmips64.h: Delete file.
8504 * config/mips/tm-bigmips.h: Delete file.
8505
2473a4a9
MK
85062003-06-01 Mark Kettenis <kettenis@gnu.org>
8507
97a5b208
MK
8508 Fix gdb/1216.
8509 * shnbsd-nat.c: Include "sh-tdep.h".
8510
2473a4a9
MK
8511 From Richard Henderson <rth@redhat.com>:
8512 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8513
e0f7ec59
AC
85142003-05-31 Andrew Cagney <cagney@redhat.com>
8515
8516 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8517 forward declaration.
8518 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8519 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8520 (mips_find_saved_regs): Use set_reg_offset.
8521 (mips_frame_init_saved_regs): Delete function.
8522 (mips_pop_frame): Call mips_find_saved_regs instead of
8523 DEPRECATED_FRAME_INIT_SAVED_REGS.
8524
68dcc709
AC
85252003-05-31 Andrew Cagney <cagney@redhat.com>
8526
8527 * mips-tdep.c (mips_gdbarch_init): Do not set
8528 deprecated_max_register_raw_size, register_virtual_size, and
8529 deprecated_max_register_virtual_size.
8530
cfc14b3a
MK
85312003-05-31 Mark Kettenis <kettenis@gnu.org>
8532
6405b0a6
MK
8533 * i386-tdep.c: Include "dwarf2-frame.h".
8534 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8535 * Makefile.in (i386-tdep.o): Update dependencies.
8536
cfc14b3a
MK
8537 * dwarf2-frame.c, dwarf2-frame.h: New files.
8538 * Makefile.in (SFILES): Add dwarf2-frame.c.
8539 (dwarf2_frame_h): Define.
8540 (COMMON_OBS): Add dwarf2-frame.o.
8541 (dwarf2-frame.o): Add dependencies.
8542
6a2751d2
AJ
85432003-05-31 Andreas Jaeger <aj@suse.de>
8544
8545 * x86-64-linux-nat.c: Fix comment.
8546
1c3545ae
MK
85472003-05-31 Mark Kettenis <kettenis@gnu.org>
8548
10f93086
MK
8549 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8550 function signature.
8551
1c3545ae
MK
8552 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8553 have a sigcontext_addr handler.
8554 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8555 sigcontext_addr handler.
8556
e11c53d2
AC
85572003-05-31 Andrew Cagney <cagney@redhat.com>
8558
8559 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8560 (print_fp_register_row): Replace do_fp_register_row.
8561 (mips_print_fp_register): Add "file" and "frame" parameters.
8562 (mips_print_register): Add "file" and "frame" parameters.
8563 (mips_print_registers_info): Replace mips_do_registers_info.
8564 (mips_gdbarch_init): Set print_registers_info instead of
8565 deprecated_do_registers_info.
8566 (mips_read_fp_register_single): Add "frame" parameter.
8567 (mips_read_fp_register_double): Add "frame" parameter.
8568
a3386186
MK
85692003-05-31 Mark Kettenis <kettenis@gnu.org>
8570
70913449
MK
8571 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8572 Fixes a bug where GDB would print the wrong register names for
8573 targets without SSE.
8574
2b5e0749
MK
8575 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8576 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8577 registers.
8578
8579 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8580 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8581 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8582 TDEP->sc_sp_offset.
8583
a3386186
MK
8584 From Michal Ludvig <mludvig@suse.cz>:
8585 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8586 and `sc_num_regs'.
8587 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8588 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8589 I386_ST0_REGNUM): Move here from...
8590 * i386-tdep.c: ... here.
8591 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8592 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8593 registers if possible.
8594 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8595 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8596 Remove variables.
8597 (i386bsd_sc_reg_offset): New variable.
8598 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8599 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8600 TDEP->sc_sp_offset.
8601 (i386fbsd_sc_reg_offset): New variable.
8602 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8603 TDEP->sc_num_regs.
8604 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8605 variables.
8606 (i386fbsd4_sc_reg_offset): New variable.
8607 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8608 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8609 TDEP->sc_sp_offset.
8610 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8611 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8612 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8613 Remove variables.
8614 (i386nbsd_sc_reg_offset): New variable.
8615 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8616 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8617 TDEP->sc_sp_offset.
8618 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8619 Remove variables.
8620 (i386obsd_sc_reg_offset): New variable.
8621 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8622 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8623 TDEP->sc_sp_offset.
8624 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8625 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8626 for frame pointer offset in `struct sigcontext'.
8627
25ab4790
AC
86282003-05-31 Andrew Cagney <cagney@redhat.com>
8629
8630 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8631 architecture methods call_dummy_words, sizeof_call_dummy_words,
8632 push_return_address, store_struct_return, and fix_call_dummy. Set
8633 push_dummy_call instead of deprecated_push_arguments.
8634 (mips_store_struct_return): Delete function.
8635 (mips_fix_call_dummy): Delete function.
8636 (mips_push_return_address): Delete function.
8637 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8638 RA_REGNUM and T9_REGNUM.
8639 (mips_n32n64_push_dummy_call): Ditto for
8640 mips_n32n64_push_arguments.
8641 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8642 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8643
6a65450a
AC
86442003-05-31 Andrew Cagney <cagney@redhat.com>
8645
8646 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8647 "dummy_addr" to "bp_addr".
8648 * infcall.c (call_function_by_hand): Pass "funaddr" to
8649 gdbarch_push_dummy_call.
8650 * gdbarch.h, gdbarch.c: Re-generate.
8651 * i386-tdep.c (i386_push_dummy_call): Update.
8652 * arm-tdep.c (arm_push_dummy_call): Update.
8653 * d10v-tdep.c (d10v_push_dummy_call): Update.
8654
c4f35dd8
MK
86552003-05-31 Mark Kettenis <kettenis@gnu.org>
8656
8657 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8658 variable declarations.
8659 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8660 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8661 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8662 x86_64_init_frame_pc, x86_64_init_frame_pc,
8663 x86_64_function_has_prologue): Remove prototypes.
8664 (X86_64_NUM_GREGS): New define.
8665 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8666 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8667 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8668 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8669 XMM1_REGNUM): Remove defines.
8670 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8671 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8672 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8673 X86_64_XMM1_REGNUM): New defines.
8674 (struct x86_64_register_info): Renamed from `struct
8675 register_info'. Remove `size' member.
8676 (x86_64_register_info_table): Remove variable.
8677 (x86_64_register_info): New variable.
8678 (X86_64_NUM_REGS): New define.
8679 (X86_64_NUM_GREGS): Remove define.
8680 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8681 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8682 Remove variables.
8683 (x86_54_dwarf2_reg_to_regnum): Remove function.
8684 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8685 (x86_64_dwarf_reg_to_regnum): New function.
8686 (x86_64_register_name): Rewrite.
8687 (x86_64_register_raw_size): Remove function.
8688 (x86_64_register_byte_table): Remove variable.
8689 (x86_64_register_byte): Remove function.
8690 (x86_64_register_virtual_type): Remove function.
8691 (x86_64_register_type): New function.
8692 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8693 x86_64_register_convert_to_raw): Remove functions.
8694 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8695 (x86_64_use_struct_convention): Make static. Adjust for renamed
8696 defines.
8697 (x86_64_frame_init_saved_regs): Remove function.
8698 (x86_64_push_arguments): Make static. Change to accept a regcache
8699 as argument.
8700 (x86_64_store_return_value, x86_64_extract_return_value): Make
8701 static. Rewrite based on i386 counterparts.
8702 (x86_64_push_dummy_call): New function.
8703 (X86_64_NUM_SAVED_REGS): New define.
8704 (x86_64_register_number): Remove function.
8705 (x86_64_store_struct_return): Remove function.
8706 (x86_64_frameless_function_invocation,
8707 x86_64_function_has_prologue): Remove functions.
8708 (PROLOG_BUFSIZE): Remove define.
8709 (struct x86_64_frame_cache): New structure.
8710 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8711 x86_64_frame_cache, x86_64_frame_this_id,
8712 x86_64_frame_prev_register, x86_64_frame_p,
8713 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8714 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8715 functions.
8716 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8717 variables.
8718 (x86_64_skip_prologue): Rewrite in terms of
8719 x86_64_analyze_prologue.
8720 (x86_64_frame_base_address): New function.
8721 (x86_64_frame_base): New variable.
8722 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8723 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8724 set deprecated_fp_regnum, deprecated_register_size,
8725 deprecated_register_bytes, register_raw_size, register_byte,
8726 register_virtual_type, register_convertiable,
8727 register_convert_to_virtual, convert_to_raw,
8728 deprecated_get_saved_register, deprecated_target_read_fp,
8729 deprecated_push_arguments, deprecated_push_return_address,
8730 deprecated_pop_frame, deprecated_store_struct_return,
8731 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8732 frameless_function_invocation, deprecated_frame_saved_pc,
8733 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8734 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8735 deprecated_init_frame_pc and virtual_frame_pointer. Call
8736 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8737 and x86_64_frame_p. Call frame_base_set_default to register
8738 x86_64_frame_base.
8739 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8740 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8741 (_initialize_x86_64_tdep): Remove function.
8742 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8743 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8744 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8745 define.
8746 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8747 (x86_64_linux_sigcontext_addr): Rewrite.
8748 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8749 x86_64_linux_frame_saved_pc): Remove functions.
8750 (x86_64_linux_pc_in_sigtramp): Renamed from
8751 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8752 trampoline.
8753 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8754 Remove_functions.
8755 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8756 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8757 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8758 (x86_64_regmap): Rename to regmap.
8759 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8760 x86_64_num_gregs.
8761 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8762 x86_64_regmap.
8763 (x86_64_fxsave_offset): Remove function.
8764 (supply_fpregset): Simply call x86_64_supply_fxsave.
8765 (fill_fpregset): Simply call x86_64_fill_fxsave.
8766 (fetch_inferior_registers, store_inferior_registers): Avoid
8767 asignment in if-statement.
8768 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8769 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8770 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8771 (fetch_core_registers): Remove function.
8772 (linux_elf_core_fns): Remove.
8773 (offsetoff): Don't define.
8774 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8775 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8776 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8777 add core-regset.o.
8778 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8779 protection against multiple includes instead of NM_X86_64_h. Add
8780 various comments. Include "config/nm-linux.h". Don't include
8781 <signal.h>.
8782 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8783 GET_THREAD_SIGNALS): Remove defines.
8784 (x86_64_register_u_addr, kernel_u_size,
8785 lin_thread_get_thread_signals): Remove prototypes.
8786 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8787 [HAVE_LINK_H]: Don't include "solib.h".
8788 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8789 * config/i386/tm-x86-64linux.h: Fix comments.
8790 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8791 x86-64-tdep.o): Update dependencies.
8792
c25083af
AC
87932003-05-30 Andrew Cagney <cagney@redhat.com>
8794
c8f55a7b
AC
8795 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8796 Change parameter type to a "struct regcache *".
8797
c25083af
AC
8798 * gdbarch.sh: Regardless of the multi-arch level, always define
8799 the macro when not already defined.
8800 * gdbarch.h, gdbarch.c: Re-generate.
8801
fbe586ae
RH
88022003-05-30 Richard Henderson <rth@redhat.com>
8803
8804 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8805 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8806 (alpha_mdebug_frame_this_id): Likewise.
8807 (alpha_mdebug_frame_prev_register): Likewise.
8808 (alpha_mdebug_frame_base_address): Likewise.
8809 (alpha_mdebug_frame_locals_address): Likewise.
8810 (alpha_mdebug_frame_args_address): Likewise.
8811 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8812 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8813 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8814 loop increment.
8815 (alpha_heuristic_frame_this_id): Make static.
8816 (alpha_heuristic_frame_prev_register): Likewise.
8817 (alpha_heuristic_frame_base_address): Likewise.
8818 * alpha-tdep.h: Update.
8819
acd5c798
MK
88202003-05-30 Mark Kettenis <kettenis@gnu.org>
8821
8822 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8823 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8824 defenitions.
8825 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8826 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8827 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8828 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8829 I386_ST0_REGNUM): New defines.
8830 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8831 codestream_get): Remove define.
8832 (codestream_next_addr, condestream_addr, condestream_buf,
8833 codestream_off, codestream_cnt): Remove variables.
8834 (codestream_fill, codestream_seek, codestream_read): Remove
8835 functions.
8836 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8837 functionality.
8838 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8839 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8840 i386_frame_saved_pc, i386_saved_pc_after_call,
8841 i386_frame_num_args, i386_frame_init_saved_regs,
8842 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8843 i386_push_arguments): Remove functions.
8844 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8845 functionality. Use i386_analyze_prologue instead of
8846 i386_get_frame_setup.
8847 (I386_NUM_SAVED_REGS): New define.
8848 (struct i386_frame_cache): New structure.
8849 (i386_alloc_frame_cache, i386_analyze_struct_return,
8850 i386_skip_probe, i386_analyze_frame_setup,
8851 i386_analyze_register_saves, i386_analyze_prologue,
8852 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8853 i386_frame_prev_register, i386_sigtramp_frame_cache,
8854 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8855 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8856 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8857 New functions.
8858 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8859 New variables.
8860 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8861 I386_EAX_REGNUM and I386_EDX_REGNUM.
8862 (i386_extract_return_value, i386_store_return_value): Use
8863 I386_ST0_REGNUM where appropriate.
8864 (i386_extract_struct_value_address): Rewrite to use extract_address.
8865 (i386_svr4_pc_in_sigtramp): Add comment.
8866 (i386_svr4_sigcontext_addr): Rewrite.
8867 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8868 TDEP->sc_sp_offset.
8869 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8870 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8871 of new defines. Set push_dummy_call, don't set
8872 deprecated_push_arguments, deprecated_push_return_address,
8873 deprecated_pop_frame. Don't set parm_boundary. Don't set
8874 deprecated_frame_chain, deprecated_frame_saved_pc,
8875 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8876 save_dummy_frame_tos, unwind_pc. Call
8877 frame_unwind_append_predicate and frame_base_set_default. Don't
8878 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8879 Don't set frameless_function_invocation. Don't set
8880 deprecated_register_bytes, deprecated_register_size,
8881 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8882 * i386-linux-tdep.c: Fix formatting in some comments.
8883 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8884 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8885 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8886 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8887 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8888 redundant parentheses.
8889 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8890 (i386_linux_sigcontext_addr): Use it. Rewrite.
8891 (find_minsym_and_objfile): Change name of second argument.
8892 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8893 changed. Use frame_pc_unwind instead of
8894 DEPRECATED_SAVED_PC_AFTER_CALL.
8895 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8896 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8897 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8898 unwinder.
8899 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8900 "dummy-frame.h".
8901 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8902 (_initialize_i386_cygwin_tdep): New prototype.
8903 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8904 deprecated_frame_chain_valid.
8905 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8906 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8907 Rely on the SVR4 defaults.
8908 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8909 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8910
c89b70f1
AC
89112003-05-30 Andrew Cagney <cagney@redhat.com>
8912
8913 * infcall.c (call_function_by_hand): Always call
8914 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8915
85b32d22
RH
89162003-05-30 Richard Henderson <rth@redhat.com>
8917
c89b70f1
AC
8918 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8919 increment.
85b32d22 8920
bfe51b1e
JB
89212003-05-29 Jim Blandy <jimb@redhat.com>
8922
8923 Use gdbarch methods for solib stuff on PowerPC Linux.
8924 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8925 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8926 show through.
8927 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8928 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8929 giving the same effect as the #definitions above.
8930
1abf022c
AF
89312003-05-29 Adam Fedor <fedor@gnu.org>
8932
8933 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8934 (find_implementation_from_class): Replace it with the standard
8935 case i.e. do nothing.
8936
d2427a71
RH
89372003-05-29 Richard Henderson <rth@redhat.com>
8938
8939 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8940 (alpha_linux_sigtramp_offset): Use it. Make static.
8941 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8942 update for new frame model.
8943 * alpha-mdebug-tdep.c: New file.
8944 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8945 (alpha_osf1_init_abi): Install it.
8946 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8947 (linked_proc_desc_table): Remove.
8948 (alpha_frame_past_sigtramp_frame): Remove.
8949 (alpha_dynamic_sigtramp_offset): Remove.
8950 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8951 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8952 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8953 (push_sigtramp_desc): Remove.
8954 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8955 (alpha_cannot_store_register): Likewise.
8956 (alpha_sigcontext_addr): Remove.
8957 (alpha_find_saved_regs): Remove.
8958 (alpha_frame_init_saved_regs): Remove.
8959 (alpha_init_frame_pc_first): Remove.
8960 (read_next_frame_reg): Remove.
8961 (alpha_frame_saved_pc): Remove.
8962 (alpha_saved_pc_after_call): Remove.
8963 (temp_proc_desc, temp_saved_regs): Remove.
8964 (alpha_about_to_return): Remove.
8965 (cached_proc_desc): Remove.
8966 (alpha_frame_chain): Remove.
8967 (alpha_print_extra_frame_info): Remove.
8968 (alpha_init_extra_frame_info): Remove.
8969 (alpha_frame_locals_address): Remove.
8970 (alpha_frame_args_address): Remove.
8971 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8972 (alpha_push_dummy_frame): Remove.
8973 (alpha_pop_frame): Remove.
8974 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8975 (alpha_read_insn): New.
8976 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8977 for different insn encodings.
8978 (alpha_in_lenient_prologue): Remove.
8979 (struct alpha_sigtramp_unwind_cache): New.
8980 (alpha_sigtramp_frame_unwind_cache): New.
8981 (alpha_sigtramp_register_address): New.
8982 (alpha_sigtramp_frame_this_id): New.
8983 (alpha_sigtramp_frame_prev_register): New.
8984 (alpha_sigtramp_frame_unwind): New.
8985 (alpha_sigtramp_frame_p): New.
8986 (struct alpha_heuristic_unwind_cache): New.
8987 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8988 don't count nop insns that occur between functions.
8989 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8990 heuristic_proc_desc, but without the mdebug wrapping.
8991 (alpha_heuristic_frame_this_id): New.
8992 (alpha_heuristic_frame_prev_register): New.
8993 (alpha_heuristic_frame_unwind): New.
8994 (alpha_heuristic_frame_p): New.
8995 (alpha_heuristic_frame_base_address): New.
8996 (alpha_heuristic_frame_base): New.
8997 (alpha_unwind_dummy_id): New.
8998 (alpha_unwind_pc): New.
8999 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
9000 frame related deprecated initializations; install replacements.
9001 (alpha_dump_tdep): Remove.
9002 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
9003 (alpha_read_insn, alpha_after_prologue,
9004 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
9005 alpha_heuristic_frame_prev_register,
9006 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
9007 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
9008 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
9009 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
9010
93ec1121
AC
90112003-05-29 Andrew Cagney <cagney@redhat.com>
9012
9013 * gdb_assert.h (gdb_assert_fail): Provide different definitions
9014 dependant on the availability of ASSERT_FUNCTION.
9015 (ASSERT_FUNCTION): Do not define when there is no function name.
9016
98f08d3d
KB
90172003-05-29 Kevin Buettner <kevinb@redhat.com>
9018
9019 From Jimi X <jimix@watson.ibm.com>:
9020 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
9021
0897f59b
JB
90222003-05-28 Jim Blandy <jimb@redhat.com>
9023
9024 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
9025 argument to ptrace to int; the system headers should give it the
9026 right type, and pointers don't fit in ints on powerpc64-*-*.
9027
14898363
L
90282003-05-28 H.J. Lu <hongjiu.lu@intel.com>
9029
9030 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
9031 DW_TAG_catch_block.
9032
a7a48797
EZ
90332003-05-26 Elena Zannoni <ezannoni@redhat.com>
9034
9035 * stabsread.c (dbx_lookup_type): Make static.
9036 (read_type): Ditto.
9037 (add_undefined_type): Ditto.
9038 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
9039 not export.
9040
f5479e9c
EZ
90412003-05-26 Elena Zannoni <ezannoni@redhat.com>
9042
9043 * hpread.c (hpread_has_name): Make static.
9044 (hpread_psymtab_to_symtab): Ditto.
9045 (file_exists): Ditto.
9046 (hpread_call_pxdb): Ditto.
9047 (hpread_pxdb_needed): Ditto.
9048 (hpread_quick_traverse): Ditto.
9049 (hpread_get_header): Ditto.
9050 (hpread_get_lntt): Ditto.
9051 (hpread_get_slt): Ditto.
9052 (class_of): Ditto.
9053
eb2e12d7
AS
90542003-05-25 Andreas Schwab <schwab@suse.de>
9055
78bf922a
AS
9056 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
9057 stack_align and deprecated_extra_stack_alignment_needed.
9058 (m68k_stack_align): Delete.
9059
eb2e12d7
AS
9060 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
9061 (m68k_register_virtual_size): Likewise.
9062 (altos_skip_prologue): Remove obsolete function.
9063 (isi_frame_num_args): Likewise.
9064 (news_frame_num_args): Likewise.
9065 (m68k_fix_call_dummy): Make static.
9066 (m68k_push_dummy_frame): Likewise.
9067 (m68k_pop_frame): Likewise.
9068 (m68k_skip_prologue): Likewise.
9069 (m68k_frame_init_saved_regs): Likewise.
9070 (m68k_saved_pc_after_call): Likewise.
9071 (m68k_get_longjmp_target): Make multi-arch.
9072 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
9073 structure. Register m68k_get_longjmp_target if enabled.
9074 * m68k-tdep.h (struct gdbarch_tdep): Define.
9075 * config/m68k/tm-m68k.h: Don't include "regcache.h".
9076
9077 * Makefile.in (config.status): Also depend on configure.tgt
9078 and configure.host.
9079 (m68klinux-tdep.o): Update dependencies.
9080 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
9081 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
9082 (M68K_LINUX_JB_PC): Define.
9083 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
9084 and take additional parameter.
9085 (m68k_linux_sigtramp_saved_pc): Update.
9086 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
9087 m68k_linux_pc_in_sigtramp, in_plt_section,
9088 find_solib_trampoline_target.
9089 * config/m68k/tm-linux.h: Don't include any tm headers.
9090 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
9091 (JB_ELEMENT_SIZE): Likewise.
9092 (JB_PC): Likewise.
9093 (GET_LONGJMP_TARGET): Likewise.
9094 (IN_SIGTRAMP): Likewise.
9095 (SVR4_SHARED_LIBS): Define this and include "solib.h".
9096
eb2c22dc
MK
90972003-05-25 Mark Kettenis <kettenis@gnu.org>
9098
9099 * sparc-tdep.c (sparc32_do_push_arguments): New function.
9100 (sparc32_push_arguments): Re-implement by calling
9101 sparc32_do_push_arguments.
9102
44b7b84e
MK
91032003-05-25 Mark Kettenis <kettenis@gnu.org>
9104
9105 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
9106 SPARC_O1_REGNUM): New defines.
9107 (sparc32_extract_return_value): Rewrite to operate on a regcache.
9108 (sparc32_store_return_value): New function.
9109 (sparc_extract_struct_value_address): Rewrite to operate on a
9110 regcache.
9111 (sparc_gdbarch_init): Don't set
9112 deprecated_extract_struct_value_address. Set
9113 extract_struct_value_address instead. Don't set
9114 deprecated_extract_return_value and deprecated_store_return_value
9115 for 32-bit targets. Set extract_return_value and
9116 store_return_value instead.
9117 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 9118 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
9119 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9120 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9121 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9122 (sparc_store_return_value): Remove prototype.
9123 (sparc32_store_return_value): New prototype.
9124 (sparc32_extract_return_value, sparc_extract_struct_value_address):
9125 Adjust prototypes.
9126
f6ad61e3
MK
91272003-05-24 Mark Kettenis <kettenis@gnu.org>
9128
9129 * sparcnbsd-tdep.c: Include "gdb_string.h".
9130
b276f1bb
AC
91312003-05-23 Andrew Cagney <cagney@redhat.com>
9132
9133 * p-valprint.c (pascal_val_print): Replace extract_address with
9134 the inline equivalent extract_unsigned_integer.
9135 * jv-valprint.c (java_value_print): Ditto.
9136 * ada-valprint.c (ada_val_print_1): Ditto.
9137 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9138
e76c5fcc
TR
91392003-05-23 Theodore A. Roth <troth@openavr.org>
9140
9141 * blockframe.c (frameless_look_for_prologue): Remove unused
9142 after_prologue variable.
9143
2cdd89cb
MK
91442003-05-23 Mark Kettenis <kettenis@gnu.org>
9145
9146 * blockframe.c (get_pc_function_start): Rewrite to avoid
9147 asignments in if-statements.
9148
182d43bc
EZ
91492003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
9150
9151 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 9152 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
9153 files, don't relocate absolute symbols (and do use mst_abs).
9154
e8f3fcdd
AC
91552003-05-23 Andrew Cagney <cagney@redhat.com>
9156
9157 * objc-lang.c: Include "gdb_assert.h".
9158 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9159 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9160 (gdb_check, gdb_check_fatal): Delete functions.
9161 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9162 gdb_assert.
9163 (parse_selector, parse_method, find_methods, find_imps): Ditto.
9164 * Makefile.in (objc-lang.o): Update dependencies.
9165
3c23e6fb
ILT
91662003-05-22 Ian Lance Taylor <ian@airs.com>
9167
9168 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9169 with fprintf_filtered, not fprintf_unfiltered.
9170
af1342ab
AC
91712003-05-22 Andrew Cagney <cagney@redhat.com>
9172
9173 * stack.c (frame_info): Inline extract_address, replacing it with
9174 extract_unsigned_integer.
9175 * findvar.c (unsigned_pointer_to_address): Ditto.
9176 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9177 * dwarf2expr.c (dwarf2_read_address): Ditto.
9178 * frame.c (frame_pc_unwind): Update comment.
9179 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9180
47e242ec
JJ
91812003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9182
9183 * infptrace.c (detach): Call print_sys_errmsg rather than
9184 perror_with_name to issue warning message when errno is non-zero
9185 after calling ptrace detach.
9186
e2ac8128
JB
91872003-05-21 J. Brobecker <brobecker@gnat.com>
9188
9189 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9190 macro definitions from here...
9191 * hppa-tdep.c: ...to there.
9192
92b3541e
KB
91932003-05-20 Kevin Buettner <kevinb@redhat.com>
9194
9195 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9196 register_ptrace_addr(). Fix all callers.
9197
55809acb
AS
91982003-05-21 Andreas Schwab <schwab@suse.de>
9199
9200 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9201 dependencies.
9202 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9203 end.
9204 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9205 (_initialize_m68k_linux_tdep): New function.
9206 (m68k_linux_frame_saved_pc): Make static.
9207 (m68k_linux_extract_return_value): Likewise.
9208 (m68k_linux_store_return_value): Likewise.
9209 (m68k_linux_extract_struct_value_address): Likewise.
9210 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9211 Remove.
9212 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9213 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9214 (DEPRECATED_FRAME_SAVED_PC): Remove.
9215
0fbc10f7
KW
92162003-05-20 Kris Warkentin <kewarken@qnx.com>
9217
9218 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9219 regset numbering rather than our own.
9220
58da2eb2
DC
92212003-05-19 David Carlton <carlton@bactrian.org>
9222
9223 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9224
1fcb5155
DC
92252003-05-19 David Carlton <carlton@bactrian.org>
9226
9227 Partial fix for PR c++/827.
9228 * cp-support.h: Include symtab.h.
9229 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9230 * cp-namespace.c: Update contributors.
9231 (cp_lookup_symbol_nonlocal): New.
9232 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9233 (lookup_symbol_file): Ditto.
9234 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9235 * block.h: Declare block_scope, block_using, block_global_block.
9236 * block.c (block_scope): New.
9237 (block_using, block_global_block): Ditto.
9238 * Makefile.in (cp_support_h): Depend on symtab_h.
9239 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9240
5f9a71c3
DC
92412003-05-19 David Carlton <carlton@bactrian.org>
9242
9243 * language.h (struct language_defn): Add 'la_value_of_this'
9244 and 'la_lookup_symbol_nonlocal' members.
9245 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9246 lookup_symbol_static, lookup_symbol_global,
9247 lookup_symbol_aux_block.
9248 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9249 if we should search fields of this and how to do static/global
9250 lookup.
9251 (lookup_symbol_aux_block): Make extern.
9252 (basic_lookup_symbol_nonlocal): New.
9253 (lookup_symbol_static, lookup_symbol_global): Ditto.
9254 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9255 'la_lookup_symbol_nonlocal' members.
9256 * c-lang.c (c_language_defn, cplus_language_defn)
9257 (asm_language_defn, minimal_language_defn): Ditto.
9258 * jv-lang.c (java_language_defn): Ditto.
9259 * language.c (unknown_language_defn, auto_language_defn)
9260 (local_language_defn): Ditto.
9261 * m2-lang.c (m2_language_defn): Ditto.
9262 * objc-lang.c (objc_language_defn): Ditto.
9263 * scm-lang.c (scm_language_defn): Ditto.
9264 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9265 * p-lang.c (pascal_language_defn): Ditto for both.
9266 * Makefile.in (f-lang.o): Depend on value_h.
9267 (p-lang.o): Ditto.
9268
89a9d1b1
DC
92692003-05-19 David Carlton <carlton@bactrian.org>
9270
9271 * block.h: Declare block_static_block.
9272 * block.c (block_static_block): New.
9273 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9274 lookup_symbol_aux_local, calling block_static_block instead.
9275 (lookup_symbol_aux_local): Delete 'static_block' argument.
9276
eed3f8ab
DC
92772003-05-19 David Carlton <carlton@bactrian.org>
9278
9279 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9280
a09d8bda
ML
92812003-05-19 Michal Ludvig <mludvig@suse.cz>
9282
9283 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9284 register numbers mapping.
9285
69636828
AF
92862003-05-18 Adam Fedor <fedor@gnu.org>
9287
9288 * symtab.c (completion_list_objc_symbol): New function.
9289 (make_symbol_completion_list): Use it to add ObjC symbols
9290 when looking though the list.
9291 (language_search_unquoted_string): New function.
9292 (make_file_symbol_completion_list): Use it.
9293
55baeb84
AS
92942003-05-18 Andreas Schwab <schwab@suse.de>
9295
d0b45d99
AS
9296 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9297 dependencies.
9298 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9299 as m68k_linux_extract_return_value.
9300 (DEPRECATED_STORE_RETURN_VALUE): Define as
9301 m68k_linux_store_return_value.
9302 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9303 m68k_linux_extract_struct_value_address.
9304 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9305 get_next_frame, get_frame_base, get_frame_pc.
9306 (m68k_linux_frame_saved_pc): Use get_frame_base.
9307 (m68k_linux_extract_return_value): New function.
9308 (m68k_linux_store_return_value): New function.
9309 (m68k_linux_extract_struct_value_address): New function.
9310 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9311
55baeb84
AS
9312 * c-exp.y (typebase): Remove duplicate occurence of
9313 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9314 of lookup_signed_typename.
55baeb84 9315
b6b08ebf
MK
93162003-05-18 Mark Kettenis <kettenis@gnu.org>
9317
9318 * dwarf2loc.c (find_location_expression): Change type of second
9319 argument to `size_t *'.
9320 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9321 for size variable.
9322
5ad1c190
DC
93232003-05-18 David Carlton <carlton@bactrian.org>
9324
9325 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9326 'linkage_name'. Add comment.
9327 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9328 'linkage_name'.
9329 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9330 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9331 (lookup_block_symbol): Ditto.
9332
b8b527c5
AC
93332003-05-16 Andrew Cagney <cagney@redhat.com>
9334
9335 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9336 * gdbarch.h, gdbarch.c: Re-generate.
9337 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9338 * TODO (REGISTER_BYTES): Delete reference.
9339 * alpha-tdep.c (alpha_gdbarch_init): Update.
9340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9341 * x86-64-tdep.c (x86_64_init_abi): Update.
9342 * vax-tdep.c (vax_gdbarch_init): Update.
9343 * v850-tdep.c (v850_gdbarch_init): Update.
9344 * sparc-tdep.c (sparc_gdbarch_init): Update.
9345 * sh-tdep.c (sh_gdbarch_init): Update.
9346 * s390-tdep.c (s390_gdbarch_init): Update.
9347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9348 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9349 (ns32k_gdbarch_init_32382): Update.
9350 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9351 * mcore-tdep.c (mcore_gdbarch_init): Update.
9352 * m68k-tdep.c (m68k_gdbarch_init): Update.
9353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9354 * ia64-tdep.c (ia64_gdbarch_init): Update.
9355 * i386-tdep.c (i386_gdbarch_init): Update.
9356 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9357 * hppa-tdep.c (hppa_gdbarch_init): Update.
9358 * h8300-tdep.c (h8300_gdbarch_init): Update.
9359 * frv-tdep.c (frv_gdbarch_init): Update.
9360 * cris-tdep.c (cris_gdbarch_init): Update.
9361 * avr-tdep.c (avr_gdbarch_init): Update.
9362 * arm-tdep.c (arm_gdbarch_init): Update.
9363 * sparc-tdep.c (sparc_pop_frame): Update.
9364 * rs6000-tdep.c (rs6000_pop_frame): Update.
9365 * remote.c (init_remote_state): Update.
9366 (remote_prepare_to_store): Update.
9367 * remote-vx.c (vx_prepare_to_store): Update.
9368 * remote-sds.c (sds_fetch_registers): Update.
9369 (sds_prepare_to_store): Update.
9370 * remote-array.c: Update.
9371 * regcache.c (init_legacy_regcache_descr): Update.
9372 (init_regcache_descr): Update.
9373 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9374 (mips_o64_extract_return_value): Update.
9375 * irix5-nat.c (fetch_core_registers): Update.
9376 * irix4-nat.c (fetch_core_registers): Update.
9377 * i386-tdep.h: Update.
9378 * hppa-tdep.c (pa_do_registers_info): Update.
9379 (pa_do_strcat_registers_info): Update.
9380 * cris-tdep.c (cris_register_bytes_ok): Update.
9381 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9382 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9383 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9384 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9385 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9386 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9387 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9388 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9389 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9390 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9391 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9392 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9393 (REGISTER_BYTES_OK): Update.
9394 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9395 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9396
ee2842e2
ILT
93972003-05-16 Ian Lance Taylor <ian@airs.com>
9398
9399 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9400 (vax_print_insn, print_insn_arg): Remove static functions.
9401 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9402 print_insn_vax from opcodes library.
9403 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9404
973177d3
AC
94052003-05-15 Andrew Cagney <cagney@redhat.com>
9406
aaab4dba
AC
9407 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9408 * target.h (memory_breakpoint_from_pc): Delete declaration.
9409 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9410 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9411 * monitor.c (monitor_insert_breakpoint): Use
9412 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9413 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9414 * gdbarch.h, gdbarch.c: Re-generate.
9415 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9416 (sparc_gdbarch_init): Set breakpoint_from_pc to
9417 sparc_breakpoint_from_pc.
9418 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9419 (BREAKPOINT_FROM_PC): Define.
9420 (sparc_breakpoint_from_pc): Declare.
9421 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9422 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9423 (BREAKPOINT_FROM_PC): Define.
9424 (BREAKPOINT): Delete macro.
9425 * target.h: Update comment.
9426 * s390-tdep.c (s390_gdbarch_init): Update comments.
9427 * remote.c: Update comments.
9428 * remote-mips.c: Update comments.
9429 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9430 * mem-break.c: Update comment.
9431 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9432 (ia64_memory_insert_breakpoint): Update.
9433 * config/sparc/tm-sparc.h: Update comment.
9434 * config/pa/tm-hppa64.h: Update comment.
9435 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9436 (rs6000_breakpoint_from_pc): Update.
9437 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9438 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9439 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9440 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9441 (mips_breakpoint_from_pc): Update.
9442 (mips_dump_tdep): Update.
9443
e06963ff
AC
9444 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9445 * minsyms.c (lookup_minimal_symbol): Inline
9446 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9447
973177d3
AC
9448 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9449 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9450 * p-lang.c (pascal_printstr): Ditto.
9451 * objc-lang.c (objc_printstr): Ditto.
9452 * m2-lang.c (m2_printstr): Ditto.
9453 * jv-valprint.c (java_print_value_fields): Ditto.
9454 * f-lang.c (f_printstr): Ditto.
9455 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9456 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9457 for repeat_count_threshold.
9458 * Makefile.in (cp-valprint.o): Update dependencies.
9459
5ea2bd7f 94602003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9461
5ea2bd7f
JJ
9462 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9463 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9464 they start with mov r2,r12. Support skipping over indirect stores
9465 of the input registers. Upon hitting a non-nop branch instruction
9466 or predicated instruction, bail out by setting lim_pc to the current
9467 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9468 beyond our calculated value and we have trust_limit set,
9469 use the lim_pc value.
9470
cc8c88f3
AC
94712003-05-15 Andrew Cagney <cagney@redhat.com>
9472
9473 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9474 generic_find_dummy_frame.
9475 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9476 (deprecated_generic_find_dummy_frame): Update.
9477 (deprecated_read_register_dummy): Update.
9478 * frame.c (deprecated_generic_get_saved_register): Update.
9479
909cd28e
TR
94802003-05-15 Theodore A. Roth <troth@openavr.org>
9481
9482 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9483 (avr_gdbarch_init): Set breakpoint_from_pc method.
9484
b923b08d
AC
94852003-05-15 Andrew Cagney <cagney@redhat.com>
9486
9487 * regcache.c (build_regcache): Set deprecated_register_valid
9488 directly.
9489 (deprecated_grub_regcache_for_register_valid): Delete function.
9490 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9491 declaration.
9492
ae2f03ac 94932003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9494
9495 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9496 * symtab.c (lookup_symbol_aux): Delete calls to
9497 lookup_symbol_aux_minsyms.
9498 (lookup_symbol_aux_minsyms): Comment out function and
9499 prototype. Delete lookup by mangled name.
ae2f03ac 9500
18ec9831
KB
95012003-05-14 Kevin Buettner <kevinb@redhat.com>
9502
9503 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9504 correctly indicate an empty stack and ``stack_allocated'' to the
9505 indicate the number of elements initially allocated.
9506 (dwarf_expr_grow_stack): Simplify method for computing new
9507 stack size. Don't loop infinitely if ``stack_len'' is zero.
9508 (execute_stack_op): Move ``ctx->in_reg'' initialization
9509 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9510 be used in conjuction with DW_OP_piece. Revise error message
9511 accordingly.
9512
de18ac1f
TR
95132003-05-14 Theodore A. Roth <troth@openavr.org>
9514
9515 * MAINTAINERS: Update my email address.
9516 * avr-tdep.c: Ditto.
9517
176620f1
EZ
95182003-05-14 Elena Zannoni <ezannoni@redhat.com>
9519
9520 * symtab.h (enum domain_enum): Rename from namespace_enum.
9521 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9522 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9523 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9524 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9525 TYPES_NAMESPACE, METHODS_NAMESPACE.
9526 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9527 (struct symbol, struct partial_symbol): Rename field
9528 'namespace_enum namespace' to 'domain_enum domain'.
9529 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9530 Delete old define kludge for namespace.
9531
9532 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9533 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9534 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9535 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9536 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9537 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9538 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9539 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9540 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9541 occurrences of the above.
9542
b7f31508
ILT
95432003-05-14 Ian Lance Taylor <ian@airs.com>
9544
9545 * Makefile.in (install-only): Use $(SHELL) when running
9546 mkinstalldirs.
9547
2fdbdd39
ILT
95482003-05-13 Ian Lance Taylor <ian@airs.com>
9549
a208d82c
ILT
9550 * MAINTAINERS (write after approval): Add myself.
9551
2fdbdd39
ILT
9552 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9553 second and third arguments.
9554 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9555 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9556
fbd9dcd3
AC
95572003-05-13 Andrew Cagney <cagney@redhat.com>
9558
9559 * defs.h (store_address): Delete declaration.
9560 findvar.c (store_address): Delete function.
9561 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9562 store_unsigned_integer.
9563 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9564 * v850-tdep.c (v850_push_arguments): Ditto.
9565 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9566 * sh-tdep.c (sh64_get_saved_register): Ditto.
9567 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9568 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9569 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9570 (mips_get_saved_register): Ditto.
9571 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9572 (find_func_descr, ia64_push_arguments): Ditto.
9573 * i386-tdep.c (i386_push_arguments): Ditto.
9574 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9575 * frv-tdep.c (frv_push_arguments): Ditto.
9576 * frame.c (legacy_saved_regs_prev_register): Ditto.
9577 (deprecated_generic_get_saved_register): Ditto.
9578 * findvar.c (unsigned_address_to_pointer): Ditto.
9579 * dwarf2read.c (dwarf2_const_value): Ditto.
9580 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9581 * alpha-tdep.c (alpha_push_arguments): Ditto.
9582
6760f9e6
JB
95832003-05-12 J. Brobecker <brobecker@gnat.com>
9584
9585 * NEWS: Mention that the hppa-hpux port has been partially
9586 multiarched (32bit ABIT only, so far).
9587
30e221b4
AC
95882003-05-11 Andrew Cagney <cagney@redhat.com>
9589
9590 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9591 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9592 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9593 sim/testsuite/sim/arm/misaligned2.ms, and
9594 sim/testsuite/sim/arm/misaligned3.ms.
9595 * disasm.h (struct ui_file): Add opaque struct declaration.
9596 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9597 * frame.h (struct ui_file): Ditto.
9598
dea7f9ba
MK
95992003-05-11 Mark Kettenis <kettenis@gnu.org>
9600
9601 * value.h: Pretty print.
9602
01986c48
MK
96032003-05-10 Mark Kettenis <kettenis@gnu.org>
9604
9605 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9606
123a958e
AC
96072003-05-08 Andrew Cagney <cagney@redhat.com>
9608
9609 * regcache.h (max_register_size): Delete declaration.
9610 * regcache.c (max_register_size): Delete function.
9611 (struct regcache_descr): Delete field "max_register_size".
9612 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9613 registers fit in MAX_REGISTER_SIZE.
9614 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9615 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9616 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9617 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9618 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9619 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9620 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9621 * dve3900-rom.c, hppa-tdep.c: Ditto.
9622
eb294659
DC
96232003-05-08 David Carlton <carlton@math.stanford.edu>
9624
9625 * valops.c (push_word): Fix typo.
9626
d9d9c31f
AC
96272003-05-08 Andrew Cagney <cagney@redhat.com>
9628
9629 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9630 * gdbarch.h: Re-generate.
9631 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9632 (legacy_max_register_raw_size): Delete declaration.
9633 * regcache.c (legacy_max_register_raw_size): Delete function.
9634 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9635 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9636 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9637 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9638 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9639 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9640 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9641 * findvar.c, dwarf2cfi.c: Ditto.
9642
22540ece
AC
96432003-05-08 Andrew Cagney <cagney@redhat.com>
9644
9645 * mips-tdep.c (read_signed_register): New function, moved to here
9646 from "regcache.c".
9647 (read_signed_register_pid): Ditto.
9648 * regcache.c (read_signed_register_pid): Delete function, moved to
9649 "mips-tdep.c".
9650 (read_signed_register): Ditto.
9651 * regcache.h (read_signed_register): Delete declaration.
9652 (read_signed_register_pid): Delete declaration.
9653
0c92afe8
AC
96542003-05-08 Andrew Cagney <cagney@redhat.com>
9655
9656 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9657 * gdbarch.h: Re-generate.
9658 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9659 (legacy_max_register_virtual_size): Delete declaration.
9660 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9661 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9662 * tracepoint.c (memrange_sortmerge): Ditto.
9663 * sparc-tdep.c (sparc_print_registers): Ditto.
9664 * regcache.c (legacy_max_register_virtual_size): Delete function.
9665
6037b830
JB
96662002-05-08 J. Brobecker <brobecker@gnat.com>
9667
9668 * fork-child.c (escape_bang_in_quoted_argument): New function.
9669 (fork_inferior): Escape '!' characters in quoted arguments
9670 only when needed.
9671
5d62c8b1
JB
96722003-05-08 J. Brobecker <brobecker@gnat.com>
9673
9674 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9675 the language of the CU is not currently supported by GDB.
9676
20a0e81d
JB
96772003-05-08 J. Brobecker <brobecker@gnat.com>
9678
9679 * defs.h (language): Add language_minimal enum value.
9680 * c-lang.c (minimal_language_defn): New language definition.
9681 (_initialize_c_language): Add the new minimal language to the list
9682 of languages known to GDB.
9683
710ee10a
KB
96842003-05-08 Kevin Buettner <kevinb@redhat.com>
9685
9686 * frame.c (get_frame_type): Don't attempt to lazily initialize
9687 frame's unwinder for legacy frames.
9688
1750fa04
AC
96892003-05-07 Andrew Cagney <cagney@redhat.com>
9690
9691 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9692 and "regcache" parameters.
9693 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9694
ddf9f258 96952003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9696
9697 * dwarf2read.c (dwarf_decode_lines): Only use output of
9698 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9699 the current address.
9700
87767c29
AC
97012003-05-07 Andrew Cagney <cagney@redhat.com>
9702
9703 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9704 code.
9705
5e7b2f39
JB
97062003-05-07 Jim Blandy <jimb@redhat.com>
9707
9708 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9709 'maint info symtabs' and 'maint info psymtabs'.
9710 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9711 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9712 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9713 Declarations updated.
9714 * maint.c (maintenance_list_command): Delete.
9715 (_initialize_maint_cmds): Update calls to add_cmd.
9716 * gdbcmd.h (maintenancelistlist): Delete declaration.
9717 * cli/cli-cmds.c (maintenancelistlist): Delete.
9718 (init_cmd_lists): Don't initialize it.
9719 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9720
f6684c31
AC
97212003-05-07 Andrew Cagney <cagney@redhat.com>
9722
9723 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9724 "regcache".
9725 (d10v_print_registers_info): Update.
9726 (d10v_dmap_register, d10v_imap_register): Delete functions.
9727 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9728 and "imap_register".
9729 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9730 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9731 * arch-utils.c (generic_remote_translate_xfer_address): Add
9732 "regcache" and "gdbarch" parameters.
9733 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9734 parameter. Change class to multi-arch.
9735 * gdbarch.h, gdbarch.c: Re-generate.
9736 * remote.c (remote_xfer_memory): Use
9737 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9738
e4846b08
JJ
97392003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9740
9741 * infrun.c (prev_pc): Move declaration ahead of proceed().
9742 (proceed): Refresh prev_pc value before resuming.
9743 (stop_stepping): Remove code to refresh prev_pc.
9744
6b71b8ac
KW
97452003-05-06 Kris Warkentin <kewarken@qnx.com>
9746
9747 * nto-tdep.c: Removed stray comment.
9748
47979a4b
KW
97492003-05-06 Kris Warkentin <kewarken@qnx.com>
9750
9751 * i386-nto-tdep.c: Fix old K&R function definitions.
9752 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9753 Also change add_show_from_set() call to add_setshow_cmd().
9754 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9755
00905d52
AC
97562003-05-05 Andrew Cagney <cagney@redhat.com>
9757
9758 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9759 (fprint_dummy_frames): New function.
9760 (maintenance_print_dummy_frames): New function.
9761 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9762 * frame.c (fprint_frame_id): Make global.
9763 * frame.h (fprint_frame_id): Declare.
9764 * Makefile.in (dummy-frame.o): Update dependencies.
9765
b1e29e33
AC
97662003-05-05 Andrew Cagney <cagney@redhat.com>
9767
9768 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9769 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9770 SIZEOF_CALL_DUMMY_WORDS.
9771 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9772 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9773 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9774 CALL_DUMMY_BREAKPOINT_OFFSET.
9775 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9776 CALL_DUMMY_START_OFFSET.
9777 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9778 * gdbarch.h, gdbarch.c: Re-generate.
9779 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9780 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9781 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9782 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9783 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9784 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9785 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9786 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9787 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9788 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9789 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9790 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9791 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9792 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9793 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9794
97952003-05-05 Kris Warkentin <kewarken@qnx.com>
9796
9797 * configure.tgt: Add i[3456]86-*-nto*.
9798 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9799 * nto-tdep.c: New file. Neutrino target support routines.
9800 * nto-tdep.h: New file. Neutrino target header.
9801 * config/tm-qnxnto.h: New file.
9802 * config/i386/i386nto.mt: New file.
9803 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9804
0ce3d317
AC
98052003-05-04 Andrew Cagney <cagney@redhat.com>
9806
9807 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9808 (load_infrun_state): Ditto.
9809 (struct thread_info): Drop "prev_func_name" field.
9810 * thread.c (load_infrun_state): Update.
9811 (save_infrun_state): Update.
9812 * infrun.c (prev_func_name): Delete variable.
9813 (init_wait_for_inferior): Do not clear prev_func_name.
9814 (stop_stepping, keep_going, context_switch): Do not swap
9815 prev_func_name.
9816 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9817 instead of PC_IN_SIGTRAMP.
9818
46654a5b
AC
98192003-05-04 Andrew Cagney <cagney@redhat.com>
9820
9821 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9822 REGISTER_BYTE with register_offset_hack.
9823 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9824 that REGISTER_BYTE is consistent with the regcache.
9825 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9826 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9827
14b08c1b
MK
98282003-05-04 Mark Kettenis <kettenis@gnu.org>
9829
04c8243f
MK
9830 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9831 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9832
14b08c1b
MK
9833 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9834
c7a11e01
JB
98352003-05-03 J. Brobecker <brobecker@gnat.com>
9836
9837 From Thierry Schneider <tpschneider1@yahoo.com>
9838 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9839 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9840 (mi-cmd-symbol.o): Add rule.
9841
7043d8dc
AC
98422003-05-03 Andrew Cagney <cagney@redhat.com>
9843
9844 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9845 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9846 * gdbarch.h, gdbarch.c: Re-generate.
9847 * d10v-tdep.c (d10v_push_dummy_code): New function.
9848 (d10v_gdbarch_init): Set push_dummy_code.
9849 * infcall.c (legacy_push_dummy_code): New function.
9850 (generic_push_dummy_code): New function.
9851 (push_dummy_code): New function.
9852 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9853 instead of dummy_addr, to push_dummy_call. Move call to
9854 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9855 switch.
9856 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9857
92bf2b80
AC
98582003-05-03 Andrew Cagney <cagney@redhat.com>
9859
9860 * disasm.h (print_insn): Declare.
9861 * disasm.c (init_gdb_disassemble_info): New function.
9862 (gdb_disassembly): Call init_gdb_disassemble_info.
9863 (gdb_print_insn): New function.
9864 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9865 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9866 * mcore-tdep.c: Include "disasm.h"
9867 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9868 * d10v-tdep.c: Include "disasm.h".
9869 (display_trace): Call gdb_print_insn, instead of print_insn.
9870 (print_insn): Delete function.
9871 * printcmd.c: Include "disasm.h".
9872 (print_insn): Delete function.
9873 (print_formatted): Call gdb_print_insn, instead of print_insn.
9874 * Makefile.in (printcmd.o): Update dependencies.
9875 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9876
27d94c49
AC
98772003-05-02 Andrew Cagney <cagney@redhat.com>
9878
82de1e5b
AC
9879 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9880 PC_REGNUM, re-indent.
9881 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9882 PC_REGNUM isn't set.
9883
27d94c49
AC
9884 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9885 * gdbarch.h, gdbarch.c: Re-generate.
9886 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9887 register_virtual_size, pc_regnum, or register_bytes.
9888 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9889 (d10v_register_type): Use D10V_PC_REGNUM.
9890 (d10v_print_registers_info, d10v_read_pc): Ditto.
9891 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9892 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9893
a9c0dc7f
DC
98942003-05-02 David Carlton <carlton@bactrian.org>
9895
9896 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9897 the name with mstrsave.
9898
e33d66ec
EZ
98992003-05-02 Elena Zannoni <ezannoni@redhat.com>
9900
9901 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9902 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9903 (host_charset_name, target_charset_name): New vars for use by
9904 set/show commands.
9905 (host_charset_enum, target_charset_enum): New enums for set/show
9906 commands.
9907 (set_charset_sfunc, set_host_charset_sfunc,
9908 set_target_charset_sfunc): New functions.
9909 (set_host_charset, set_target_charset): Make static.
9910 (list_charsets, set_host_charset_command,
9911 set_target_charset_command): Delete functions.
9912 (show_charset_command): Rewrite as....
9913 (show_charset): Hook this up with the set/show command mechanism.
9914 (_initialize_charset): Change names of charsets to match the
9915 set/show enums. Use host_charset_name and target_charset_name.
9916 Use set/show mechanism for charset, host-charset, target-charset
9917 commands. Do not make 'show host-charset' and 'show
9918 target-charset' be aliases of 'show charset'.
9919
9920 * charset.h (set_host_charset, set_target_charset): Don't export,
9921 they are not used outside the file.
9922
2b6fd0d8
AC
99232003-05-01 Andrew Cagney <cagney@redhat.com>
9924
9925 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9926 (gdb_disassembly): Make "di" non static, always initialize and
9927 cleanup. Always use dis_asm_read_memory.
9928 (gdb_dis_asm_read_memory): Delete function.
9929
6ae2f580
AC
99302003-05-01 Andrew Cagney <cagney@redhat.com>
9931
9932 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9933 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9934
810ecf9f
AC
99352003-04-30 Andrew Cagney <cagney@redhat.com>
9936
9937 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9938 "tm_print_insn_info".
9939 (TARGET_PRINT_INSN_INFO): Delete macro.
9940 (dis_asm_read_memory): Delete function declaration.
9941 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9942 (tm_print_insn_info): Delete variable definition.
9943 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9944 * gdbarch.h, gdbarch.c: Re-generate.
9945 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9946 "deprecated_tm_print_insn_info".
9947 * mcore-tdep.c (mcore_dump_insn): Ditto.
9948 * mips-tdep.c (mips_gdbarch_init): Ditto.
9949 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9950 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9951 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9952 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9953 instead of TARGET_PRINT_INSN_INFO, add comment.
9954 * s390-tdep.c (s390_get_frame_info): Instead of
9955 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9956 (s390_check_function_end, s390_is_sigreturn): Ditto.
9957 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9958 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9959 * disasm.c: Include "gdbcore.h".
9960 (_initialize_disasm): New function, initialize
9961 "deprecated_tm_print_insn_info".
9962 (deprecated_tm_print_insn_info): New variable.
9963 (dis_asm_read_memory): Moved from "corefile.c", made static.
9964 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9965 * Makefile.in (disasm.o): Update dependencies.
9966
07020390
AC
99672003-04-30 Andrew Cagney <cagney@redhat.com>
9968
9969 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9970
a9fa03de
AF
99712003-04-29 Adam Fedor <fedor@gnu.org>
9972
9973 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9974 * infcall.c (find_function_addr): Make non-static.
9975 * infcall.h (find_function_addr): Declare.
9976 * Makefile.in (eval.o): Update dependencies.
9977
1bae87b9
AF
99782003-04-28 Adam Fedor <fedor@gnu.org>
9979
9980 * symtab.c (symbol_find_demangled_name): Check for and demangle
9981 ObjC symbols.
9982 (symbol_init_demangled_name): Init for language_objc as well.
9983
0ba6dca9
AC
99842003-04-28 Andrew Cagney <cagney@redhat.com>
9985
9986 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9987 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9988 * gdbarch.h, gdbarch.c: Re-generate.
9989 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9990 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9991 * inferior.h (deprecated_read_fp): Rename read_fp.
9992 (generic_target_read_fp): Delete declaration.
9993 * regcache.c (generic_target_read_fp): Delete function.
9994 (deprecated_read_fp): Replace read_fp, use
9995 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9996 * d10v-tdep.c (d10v_read_fp): Delete function.
9997 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9998
9999 * sparc-tdep.c (sparc_gdbarch_init): Do not set
10000 deprecated_target_read_fp to generic_target_read_fp.
10001 * sh-tdep.c (sh_gdbarch_init): Ditto.
10002 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10004 * frv-tdep.c (frv_gdbarch_init): Ditto.
10005
10006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
10007 deprecated_fp_regnum.
10008 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10009 * vax-tdep.c (vax_gdbarch_init): Ditto.
10010 * v850-tdep.c (v850_gdbarch_init): Ditto.
10011 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10012 * sh-tdep.c (sh_gdbarch_init): Ditto.
10013 * s390-tdep.c (s390_gdbarch_init): Ditto.
10014 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10015 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10017 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10019 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10020 * i386-tdep.c (i386_gdbarch_init): Ditto.
10021 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10022 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10023 * frv-tdep.c (frv_gdbarch_init): Ditto.
10024 * cris-tdep.c (cris_gdbarch_init): Ditto.
10025 * avr-tdep.c (avr_gdbarch_init): Ditto.
10026 * arm-tdep.c (arm_gdbarch_init): Ditto.
10027 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10028
10029 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
10030 * v850-tdep.c (v850_gdbarch_init): Ditto.
10031 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10032 * sh-tdep.c (sh_gdbarch_init): Ditto.
10033 * s390-tdep.c (s390_gdbarch_init): Ditto.
10034 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10035 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10036 * mips-tdep.c (mips_gdbarch_init): Ditto.
10037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10038 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10039 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10040 * frv-tdep.c (frv_gdbarch_init): Ditto.
10041 * avr-tdep.c (avr_gdbarch_init): Ditto.
10042 * arm-tdep.c (arm_gdbarch_init): Ditto.
10043
10044 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
10045 DEPRECATED_FP_REGNUM.
10046 (vax_push_dummy_frame, vax_pop_frame): Ditto.
10047 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
10048 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10049 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
10050 (sparc32_register_virtual_type): Ditto.
10051 * sh-tdep.c (sh64_frame_chain): Ditto.
10052 (sh64_get_saved_register, sh64_pop_frame): Ditto.
10053 (sh_nofp_frame_init_saved_regs): Ditto.
10054 (sh64_nofp_frame_init_saved_regs): Ditto.
10055 (sh_fp_frame_init_saved_regs): Ditto.
10056 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10057 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10058 * procfs.c (procfs_fetch_registers): Ditto.
10059 (procfs_store_registers): Ditto.
10060 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
10061 (store_inferior_registers, fetch_core_registers): Ditto.
10062 (fetch_kcore_registers, clear_regs): Ditto.
10063 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
10064 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
10065 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
10066 * nlm/i386.c (do_status): Ditto.
10067 * mipsv4-nat.c (supply_gregset): Ditto.
10068 * mips-tdep.c: Ditto for comments.
10069 * mips-nat.c (fetch_inferior_registers): Ditto.
10070 (store_inferior_registers, fetch_core_registers): Ditto.
10071 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
10072 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
10073 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
10074 (i386_do_pop_frame, i386_register_type): Ditto.
10075 * hppa-tdep.c (hppa_frame_chain): Ditto.
10076 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
10077 (hppa_pop_frame, hppa_read_fp): Ditto.
10078 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
10079 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
10080 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
10081 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
10082 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
10083 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
10084 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
10085 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
10086 * blockframe.c: Ditto for comments.
10087 * arch-utils.h: Ditto for comments.
10088 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
10089 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
10090 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
10091 * alpha-tdep.h: Ditto for comments.
10092 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
10093 (alpha_cannot_store_register): Ditto.
10094 (alpha_push_dummy_frame): Ditto.
10095 * alpha-nat.c (supply_gregset): Ditto.
10096
10097 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
10098 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
10099 * config/sparc/tm-sparc.h: Update comment.
10100
10101 * hppa-tdep.c (hppa_init_extra_frame_info): Use
10102 deprecated_read_fp instead of TARGET_READ_FP.
10103 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
10104 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
10105 * sparc-tdep.c (sparc_init_extra_frame_info): Use
10106 deprecated_read_fp instead of read_fp.
10107 * s390-tdep.c (s390_push_arguments): Ditto.
10108 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10109 * frame.h: Ditto in comments.
10110 * frame.c (legacy_get_prev_frame): Ditto.
10111 * dummy-frame.c (dummy_frame_this_id): Ditto.
10112 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10113
d7a27068
AC
101142003-04-28 Andrew Cagney <cagney@redhat.com>
10115
10116 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10117 * gdbarch.h, gdbarch.c: Re-generate.
10118 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10119 * vax-tdep.c (_initialize_vax_tdep): Update.
10120 * v850-tdep.c (_initialize_v850_tdep): Update.
10121 * sparc-tdep.c (_initialize_sparc_tdep): Update.
10122 * s390-tdep.c (_initialize_s390_tdep): Update.
10123 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10124 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10125 * mips-tdep.c (_initialize_mips_tdep): Update.
10126 * mcore-tdep.c (_initialize_mcore_tdep): Update.
10127 * m68k-tdep.c (_initialize_m68k_tdep): Update.
10128 * ia64-tdep.c (_initialize_ia64_tdep): Update.
10129 * hppa-tdep.c (_initialize_hppa_tdep): Update.
10130 * h8300-tdep.c (_initialize_h8300_tdep): Update.
10131 * frv-tdep.c (_initialize_frv_tdep): Update.
10132 * cris-tdep.c (cris_delayed_get_disassembler): Update.
10133 (_initialize_cris_tdep): Update.
10134 * arch-utils.c (legacy_print_insn): Update.
10135 * alpha-tdep.c (_initialize_alpha_tdep): Update.
10136
d2630e69
AF
101372003-04-26 Adam Fedor <fedor@gnu.org>
10138
10139 * linespec.c (decode_objc): New function to decode ObjC calls
10140 (decode_line_1): Check for ObjC calls (using decode_objc)
10141 * Makefile (linespec.o): Update dependencies.
10142
3086aeae
DJ
101432003-04-26 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * breakpoint.h (struct breakpoint_ops): New.
10146 (struct breakpoint): Add ops member.
10147
10148 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10149 (mention): Use new breakpoint ops member.
10150 (set_raw_breakpoint): Initialize ops field to NULL.
10151 (print_exception_catchpoint, print_one_exception_catchpoint)
10152 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10153 (gnu_v3_exception_catchpoint_ops): New.
10154 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10155
1fbec6c3
AF
101562003-04-25 Adam Fedor <fedor@gnu.org>
10157
10158 * Makefile.in (COMMON_OBS): Add objc-lang.o
10159
0ef21242
AC
101602003-04-25 Andrew Cagney <cagney@redhat.com>
10161
10162 * d10v-tdep.c (print_insn): Delete function.
10163 (display_trace): Use TARGET_PRINT_INSN.
10164 (_initialize_d10v_tdep): Do not set tm_print_insn.
10165 (d10v_gdbarch_init): Set print_insn.
10166
f75493ed
AC
101672003-04-25 Andrew Cagney <cagney@redhat.com>
10168
10169 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10170 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10171 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10172 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10173 (nr_dmap_regs, a0_regnum): ... new functions.
10174 (d10v_print_registers_info): Use a0_regnum, use register_size.
10175 (d10v_register_byte): Delete function.
10176 (d10v_register_raw_size): Delete function.
10177 (d10v_register_type): Use a0_regnum.
10178 (d10v_print_registers_info): Use a0_regnum.
10179 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10180 (d10v_gdbarch_init): Do not set register_byte or
10181 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10182 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10183 extract_address.
10184 (trace_command): Use XCALLOC.
10185 (print_insn): Delete reference to tm_print_insn.
10186 (saved_regs_unwinder): Use store_unsigned_integer instead of
10187 store_address.
10188 * frame.h (FRAME_OBSTACK_CALLOC): Define
10189
2202b100
DC
101902003-04-25 David Carlton <carlton@bactrian.org>
10191
10192 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10193
4e45ca2e
AF
101942003-04-24 Adam Fedor <fedor@gnu.org>
10195
10196 * objc-lang.c: Include "valprint.h"
10197 * Makefile.in (objc-lang.o): Update dependencies.
10198
93de3e7f
AF
101992003-04-24 Adam Fedor <fedor@gnu.org>
10200
8ffd9b1b 10201 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
10202 architecture dependant compilation and mark as unimplemented
10203 (until they get put in the gdbarch vector).
10204
0f20eeea
DC
102052003-04-23 David Carlton <carlton@bactrian.org>
10206
10207 * cp-support.c (cp_find_first_component): Accept 'operator' in
10208 more locations.
10209
74cfe982
AC
102102003-04-23 Andrew Cagney <cagney@redhat.com>
10211
10212 * infcall.c (call_function_by_hand): Eliminate redundant
10213 indentation. Move "saved_async" and "old_cleanups" to where they
10214 are needed.
8ffd9b1b 10215
52557533
AC
102162003-04-23 Andrew Cagney <cagney@redhat.com>
10217
10218 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10219 and "buffer". Move the "name" code to where it is needed.
10220
158775de
AC
102212003-04-23 Andrew Cagney <cagney@redhat.com>
10222
10223 * infcall.c (call_function_by_hand): Move variables "start_sp",
10224 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10225 code to ON_STACK switch branch.
8ffd9b1b 10226
ebc7896c
AC
102272003-04-23 Andrew Cagney <cagney@redhat.com>
10228
10229 * infcall.c (call_function_by_hand): Make declaration of "i",
10230 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10231 lint.
10232
d727590f
AC
102332003-04-23 Andrew Cagney <cagney@redhat.com>
10234
10235 * infcall.c (call_function_by_hand): Delete variable
10236 "n_method_args". Localize "param_type"'s declaration to the loop
10237 that it is used. Reinstate code assigning to said variable -
10238 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10239 Rationalize code using "param_type".
10240
d585e13a
AC
102412003-04-22 Andrew Cagney <cagney@redhat.com>
10242
10243 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10244 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10245 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10246 to DEPRECATED_PUSH_RETURN_ADDRESS.
10247
051caad9
KB
102482003-04-22 Kevin Buettner <kevinb@redhat.com>
10249
10250 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10251 on the DWARF2 register number prior to fetching a register.
10252
77296879
JB
102532003-04-22 J. Brobecker <brobecker@gnat.com>
10254
10255 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10256 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10257 this macro was always set to 0.
77296879
JB
10258 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10259 considering the fact that this macro was always set to 0.
10260 * hppa-tdep.h (hppa_store_return_value): Likewise.
10261 (hppa_extract_return_value): Likewise.
10262
4252f1df
JB
102632003-04-22 J. Brobecker <brobecker@gnat.com>
10264
10265 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10266 the hppa-pro target only.
10267
14604c6b
JB
102682003-04-21 J. Brobecker <brobecker@gnat.com>
10269
10270 Ongoing multi-arch conversion effort for HP/UX:
10271 * config/pa/tm-hppa.h: Move all macro that are no longer
10272 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10273 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10274
77eb01d1
JB
102752003-04-21 J. Brobecker <brobecker@gnat.com>
10276
10277 * config/pa/tm-hppa.h: Obsolete a section that was only used
10278 for hppa-pro.
10279
61995b3b
JB
102802003-04-21 J. Brobecker <brobecker@gnat.com>
10281
10282 Ongoing multi-arch conversion for HP/UX.
10283 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10284 if already defined (allows hppa64 to stay non-multiarched for now).
10285 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10286
4aa79dcc
AC
102872003-04-21 Andrew Cagney <cagney@redhat.com>
10288
10289 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10290
0f751ff2
AC
102912003-04-21 Andrew Cagney <cagney@redhat.com>
10292
10293 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10294 "i386_num_mmx_regs".
10295
04714b91
AC
102962003-04-21 Andrew Cagney <cagney@redhat.com>
10297
10298 * infcall.c: New file.
10299 * infcall.h: New file.
10300 * valarith.c: Include "infcall.h".
10301 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10302 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10303 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10304 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10305 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10306 (SFILES): Add "infcall.c"
10307 (COMMON_OBS): Add "infcall.o".
10308 (infcall.o): Specify dependencies.
10309 * value.h (call_function_by_hand): Delete declaration.
10310 * inferior.h (run_stack_dummy): Delete declaration.
10311 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10312 (run_stack_dummy): Move to "infcall.c", merged into
10313 call_function_by_hand.
10314 * valops.c (call_function_by_hand): Moved to "infcall.c".
10315 (find_function_addr, value_arg_coerce): Ditto.
10316 (unwindonsignal_p, coerce_float_to_double): Ditto.
10317 (_initialize_valops): Move "set/show coerce-float-to-double", and
10318 "set/show unwindonsignal" commands to "infcall.c".
10319 * v850-tdep.c, target.h: Update comments.
10320 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10321 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10322 (sh64_init_extra_frame_info): Update comments.
10323 * mn10300-tdep.c: Update comments.
10324 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10325 * config/sparc/tm-sparc.h: Update comments.
10326 * breakpoint.h: Update comments.
10327 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10328 * arm-tdep.c: Update comment.
10329
f9d3c2a8
MK
103302003-04-19 Mark Kettenis <kettenis@gnu.org>
10331
c40e1eab
MK
10332 * i386-tdep.c (i386_num_register_names): New variable.
10333 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10334 (MM0_REGNUM): Remove redundant parentheses in define.
10335 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10336 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10337 i386_mxcsr_regnum_p): Remove redundant parentheses.
10338 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10339
94ea66b3
MK
10340 * i386-tdep.c (i386_extract_return_value,
10341 i386_store_return_value): Correct check for availability of
10342 floating-point registers.
10343
54299a1d
MK
10344 * i386-tdep.c (i386_frame_num_args): Remove function.
10345 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10346
c86c27af
MK
10347 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10348 mmx_regnum_to_fp_regnum. Adjust all callers.
10349
f9d3c2a8
MK
10350 * i386-tdep.c (i386_get_longjmp_target): Use
10351 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10352 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10353 extract_address.
10354
94ba74a9
MK
103552003-04-19 Mark Kettenis <kettenis@gnu.org>
10356
10357 * core-regset.c: Update comments to reflect reality. Re-order
10358 includes.
10359 (fetch_core_registers): Use switch instead of if. Remove
10360 redundant prototype.
10361
4074e13c
JB
103622003-04-18 Jim Blandy <jimb@redhat.com>
10363
10364 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10365 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10366
e3ab4aba
RH
103672003-04-17 Richard Henderson <rth@redhat.com>
10368
10369 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10370
627bf7c1
EZ
103712003-04-17 Michael Snyder <msnyder@redhat.com>
10372 Karen Bennet <bennet@redhat.com>
10373
10374 Committed by Elena Zannoni <ezannoni@redhat.com>
10375 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10376
514621a9
EZ
103772003-04-17 Elena Zannoni <ezannoni@redhat.com>
10378
10379 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10380 value if the return type is void.
514621a9 10381
b4acd559
JJ
103822003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10383
10384 * thread-db.c: Reindented.
8ffd9b1b 10385
530b167e 103862003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10387
10388 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10389 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10390 as types.
10391
0a48e7e8
MS
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
8ffd9b1b 10415
ab9fe00e
KB
104162003-04-16 Kevin Buettner <kevinb@redhat.com>
10417
610a3745 10418 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10419 the size of ``long double'' to 16, instead of 8.
10420
e64a344c
MK
104212003-04-16 Mark Kettenis <kettenis@gnu.org>
10422
10423 * i386-linux-nat.c: Add some whitespace to make things more
10424 readable.
10425 (fetch_register, store_register, fetch_inferior_registers,
10426 store_inferior_registers): Get rid of assignment in if-statement.
10427 (store_register): Fix typo in error message.
10428
25d41031
AC
104292003-04-16 Andrew Cagney <cagney@redhat.com>
10430
10431 * utils.c (xmmalloc): Always allocate something, matches
10432 libiberty/xmalloc's semantics.
10433 (xmrealloc, xmcalloc): Ditto.
10434
c50901fd
AC
104352003-04-16 Andrew Cagney <cagney@redhat.com>
10436
10437 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10438 update comments.
10439 (get_frame_type): Initialize unwind and type when needed.
10440 (get_frame_id, frame_register_unwind): Ditto.
10441
f81824a9
AC
104422003-04-16 Andrew Cagney <cagney@redhat.com>
10443
10444 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10445 obsolete.
10446 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10447 * sparcl-stub.c: Obsolete file.
10448 * config/sparc/tm-sparclet.h: Obsolete file.
10449 * sparclet-stub.c: Obsolete file.
10450 * sparclet-rom.c: Obsolete file.
10451 * sparcl-tdep.c: Obsolete file.
10452 * config/sparc/tm-sparclite.h: Obsolete file.
10453 * config/sparc/sparclite.mt: Obsolete file.
10454 * config/sparc/sparclet.mt: Obsolete file.
10455 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10456 sparc86x-*-* obsolete.
10457
9219021c
DC
104582003-04-15 David Carlton <carlton@math.stanford.edu>
10459
10460 * Makefile.in (SFILES): Add cp-namespace.c.
10461 (COMMON_OBS): Add cp-namespace.o.
10462 (block.o): Depend on gdb_obstack_h and cp_support_h.
10463 (buildsym.o): Depend on cp_support_h.
10464 (cp-namespace.o): New.
10465 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10466 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10467 (dwarf2read.o): Depend on cp_support_h.
10468 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10469 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10470 processing_current_namespace.
10471 (read_namespace): Update processing_current_namespace; check for
10472 anonymous namespaces.
10473 (dwarf2_name): New function.
10474 (dwarf2_extension): Ditto.
10475 * cp-support.h: Update copyright, contributors.
10476 Add inclusion guards.
10477 Add opaque declaration for structs obstack, block, symbol.
10478 (struct using_direct): New struct.
10479 Add declarations for cp_find_first_component,
10480 cp_entire_prefix_len, processing_has_namespace_info,
10481 processing_current_namespace, cp_is_anonymous,
10482 cp_add_using_directive, cp_initialize_namespace,
10483 cp_finalize_namespace, cp_set_block_scope,
10484 cp_scan_for_anonymous_namespaces.
10485 * cp-namespace.c: New file.
10486 * cp-support.c: Update copyright.
10487 Include ctype.h, gdb_assert.h, gdbcmd.h.
10488 New variable maint_cplus_cmd_list.
10489 (cp_find_first_component): New function.
10490 (cp_entire_prefix_len, maint_cplus_command)
10491 (first_component_command, _initialize_cp_support): Ditto.
10492 * buildsym.c: Include cp-support.h.
10493 New variable using_list.
10494 (add_symbol_to_list): Check for anonymous namespaces.
10495 (finish_block): Set block's scope.
10496 (start_symtab): Initialize C++ namespace support.
10497 (end_symtab): Finalize C++ namespace support.
10498 * block.h: Add opaque declarations for structs
10499 block_namespace_info, using_direct, and obstack.
10500 Add declarations for block_set_scope and block_set_using.
10501 (struct block): Add 'language_specific' member.
10502 (BLOCK_NAMESPACE): New macro.
10503 * block.c: Include gdb_obstack.h and cp-support.h.
10504 (struct block_namespace_info): New struct.
10505 (block_set_scope): New function.
10506 (block_set_using, block_initialize_namespace): Ditto.
10507
d5a921c9
KB
105082003-04-14 Kevin Buettner <kevinb@redhat.com>
10509
10510 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10511 (locate_base): Return early if there aren't any link map offsets.
10512 (svr4_solib_create_inferior_hook): Warn if shared library support
10513 is unavailable.
10514
d2a52b27
DC
105152003-04-14 David Carlton <carlton@math.stanford.edu>
10516
10517 * symtab.c (symbol_set_names): Add prefix when storing Java names
10518 in hash table. Fix for PR java/1039.
10519
980cae7a
DC
105202003-04-14 David Carlton <carlton@math.stanford.edu>
10521
10522 * symtab.c (symbol_set_names): Rename 'name' arg to
10523 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10524 * symtab.h: Change 'name' argument in declaration of
10525 symbol_set_names to 'linkage_name'.
10526 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10527
e227b13c
AC
105282003-04-14 Andrew Cagney <cagney@redhat.com>
10529
10530 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10531 return the fully sign-extended register value.
10532 (get_frame_pointer): Ditto.
10533 (mips_pop_frame): Initialize "proc_desc" after checking for a
10534 dummy frame.
10535
36712a20
AC
105362003-04-14 Andrew Cagney <cagney@redhat.com>
10537
10538 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10539 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10540 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10541 (mips_push_register): Delete function.
10542 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10543 PUSH_FP_REGNUM.
10544
44ea7b70
JB
105452003-04-14 Jim Blandy <jimb@redhat.com>
10546
10547 * symmisc.c: #include "gdb_regex.h".
10548 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10549 functions.
10550 * maint.c (maintenance_list_command): New function.
10551 (_initialize_maint_cmds): Register the above as commands.
10552 * symtab.h (maintenance_list_symtabs,
10553 maintenance_list_psymtabs): New declarations.
10554 * cli/cli-cmds.c (maintenancelistlist): New variable.
10555 (init_cmd_lists): Initialize it.
10556 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10557 * gdbcmd.h (maintenancelistlist): New declaration.
10558 * Makefile.in (symmisc.o): Update dependencies.
10559
2d0c7962
EZ
105602003-04-14 Elena Zannoni <ezannoni@redhat.com>
10561
10562 * s390-nat.c: Include asm/types.h for addr_t.
10563
1947a811
CV
105642003-04-14 Corinna Vinschen <vinschen@redhat.com>
10565
10566 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10567 actually incoming type.
10568
adb616d7
AC
105692003-04-13 Andrew Cagney <cagney@redhat.com>
10570
10571 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10572 get_next_frame and get_frame_saved_regs.
10573
9b5e151c
AC
105742003-04-13 Andrew Cagney <cagney@redhat.com>
10575
10576 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10577 of gdbarch_num_regs.
10578
ef6e7e13
AC
105792003-04-13 Andrew Cagney <cagney@redhat.com>
10580
10581 * frame.h: Mention what replaced what in "struct frame_info".
10582 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10583 deprecated_update_frame_base_hack and
10584 deprecated_update_frame_pc_hack.
10585 * hppa-tdep.c: Ditto.
10586
61fbb938
DJ
105872003-04-13 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10590 to read_reg and update its comment. Remove regnum member.
10591 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10592 Don't call read_reg when setting in_reg. Call read_reg to get
10593 the frame base if it's in a register. Return the register number
10594 on the stack instead of in the context. Remove extra arguments
10595 to read_reg.
10596 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10597 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10598 the register number on the expression stack.
10599 (needs_frame_read_reg): Remove extra arguments.
10600
0d53c4c4
DJ
106012003-04-13 Daniel Jacobowitz <drow@mvista.com>
10602
10603 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10604 made non-static.
10605 (execute_stack_op): All callers updated.
10606 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10607 * dwarf2loc.c (find_location_expression): New function.
10608 (dwarf_expr_frame_base): Call it.
10609 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10610 (dwarf2_tracepoint_var_ref): New function, broken out from
10611 locexpr_tracepoint_var_ref.
10612 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10613 Make static.
10614 (loclist_read_variable, loclist_read_needs_frame): New functions.
10615 (loclist_describe_location, loclist_tracepoint_var_ref): New
10616 functions.
10617 (dwarf2_loclist_funcs): New struct location_funcs.
10618 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10619 (struct dwarf2_locexpr_baton): Add comments.
10620 (dwarf2_loclist_funcs): New extern.
10621 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10622 base_address and base_known.
10623 (dwarf_loc_buffer): New variable.
10624 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10625 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10626 (dwarf2_has_info): Initialize dwarf_loc_offset.
10627 (dwarf2_build_psymtabs): Read in .debug_loc.
10628 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10629 DWARF_LOC_SIZE.
10630 (psymtab_to_symtab_1): Likewise. Move base address calculation
10631 here, from...
10632 (dwarf2_get_pc_bounds): ... here. Use the base address from
10633 cu_header.
10634 (dwarf2_symbol_mark_computed): Handle location lists.
10635
6aca59a3
DJ
106362003-04-13 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10639 if the linkage name demangled successfully.
10640
aca1fcd0
MK
106412003-04-13 Mark Kettenis <kettenis@gnu.org>
10642
97095916
MK
10643 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10644 disassmbly_flavour): Removed.
10645
aca1fcd0
MK
10646 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10647
562a961f
MK
106482003-04-13 Mark Kettenis <kettenis@gnu.org>
10649
10650 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10651
bd013d54
AC
106522003-04-12 Andrew Cagney <cagney@redhat.com>
10653
10654 * frame.h (struct frame_info): Move definition from here ...
10655 * frame.c (struct frame_info): ... to here.
10656
167ef8b1
AC
106572003-04-12 Andrew Cagney <cagney@redhat.com>
10658
10659 * gdbthread.h (save_infrun_state): Delete parameter
10660 "prev_func_start".
10661 (struct thread_info): Delete field "prev_func_start".
10662 (load_infrun_state): Ditto.
10663 * thread.c (load_infrun_state, save_infrun_state): Update.
10664 * infrun.c (prev_func_start): Delete variable.
10665 (context_switch, init_wait_for_inferior): Update.
10666 (stop_stepping, keep_going): Update.
10667
da3331ec
AC
106682003-04-12 Andrew Cagney <cagney@redhat.com>
10669
10670 * gdbarch.sh: Add missing opaque declarations.
10671 * gdbarch.h: Regnerate.
10672 * symtab.h: Add missing opaque declarations.
10673 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10674 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10675 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10676 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10677 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10678 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10679 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10680 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10681 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10682 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10683 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10684 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10685 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10686
18adea3f
AC
106872003-04-11 Andrew Cagney <cagney@redhat.com>
10688
10689 * frame.c (get_frame_id): Return this frame's "id".
10690 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10691 function start.
10692 (legacy_saved_regs_this_id): Replace function body with
10693 internal-error.
10694 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10695 FRAME_OBSTACK_ZALLOC.
10696 (create_new_frame): Mark the frame ID as valid.
10697
2252e863
AO
106982003-04-11 Alexandre Oliva <aoliva@redhat.com>
10699
10700 * Makefile.in (libbfd_h): Added missing setting.
10701 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10702 according to the selected ABI.
10703
a8245ab8
JJ
107042003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10705
10706 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10707
6913c89a
AC
107082003-04-11 Andrew Cagney <cagney@redhat.com>
10709
10710 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10711 SAVED_PC_AFTER_CALL.
10712 * gdbarch.h, gdbarch.c: Regenerate.
10713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10714 * x86-64-tdep.c (x86_64_init_abi): Update.
10715 * vax-tdep.c (vax_gdbarch_init): Update.
10716 * v850-tdep.c (v850_gdbarch_init): Update.
10717 * sparc-tdep.c (sparc_gdbarch_init): Update.
10718 * sh-tdep.c (sh_gdbarch_init): Update.
10719 * s390-tdep.c (s390_gdbarch_init): Update.
10720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10721 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10723 * mips-tdep.c (mips_gdbarch_init): Update.
10724 * mcore-tdep.c (mcore_gdbarch_init): Update.
10725 * m68k-tdep.c (m68k_gdbarch_init): Update.
10726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10727 * ia64-tdep.c (ia64_gdbarch_init): Update.
10728 (ia64_saved_pc_after_call): Update declaration.
10729 * i386ly-tdep.c (i386lynx_init_abi): Update.
10730 * i386-tdep.c (i386_gdbarch_init): Update.
10731 * hppa-tdep.c (hppa_gdbarch_init): Update.
10732 * h8300-tdep.c (h8300_gdbarch_init): Update.
10733 * frv-tdep.c (frv_gdbarch_init): Update.
10734 * cris-tdep.c (cris_gdbarch_init): Update.
10735 * avr-tdep.c (avr_gdbarch_init): Update.
10736 * arm-tdep.c (arm_gdbarch_init): Update.
10737 * alpha-tdep.c (alpha_gdbarch_init): Update.
10738 * ns32knbsd-nat.c (frame_num_args): Update.
10739 * ns32k-tdep.c (umax_frame_num_args): Update.
10740 * mips-tdep.c (mips_init_frame_pc_first): Update.
10741 * infrun.c (step_over_function): Update.
10742 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10743 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10744 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10745 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10746 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10747 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10748 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10749 * arch-utils.c (init_frame_pc_default): Update.
10750 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10751 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10752 declaration.
8ffd9b1b 10753
38edeab8
AC
107542003-04-11 Andrew Cagney <cagney@redhat.com>
10755
10756 * i387-tdep.c: Update copyright.
10757 (i387_to_double): Delete function.
10758 (double_to_i387): Delete function.
10759
81f8a206
AC
107602003-04-10 Andrew Cagney <cagney@redhat.com>
10761
10762 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10763 frame's function's address. Simplify.
10764 (d10v_frame_unwind_cache): Check that the frame's function is
10765 non-zero.
10766
6e691f7a
JB
107672003-04-10 Jim Blandy <jimb@redhat.com>
10768
10769 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10770 call to set_gdbarch_deprecated_push_arguments.
10771
7f78e237
AC
107722003-04-10 Andrew Cagney <cagney@redhat.com>
10773
10774 * frame.c (fprint_frame_id): New function.
10775 (fprint_frame_type, fprint_frame): New function.
10776 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10777 (create_sentinel_frame, get_frame_id): Ditto.
10778 (frame_id_p, frame_id_eq): Ditto.
10779 (frame_id_inner, create_new_frame): Ditto.
10780 (legacy_get_prev_frame, get_prev_frame): Ditto.
10781 (deprecated_update_frame_pc_hack): Ditto.
10782 (frame_register_unwind): Ditto.
10783 (deprecated_update_frame_base_hack): Ditto.
10784
f870b49b
CV
107852003-04-10 Corinna Vinschen <vinschen@redhat.com>
10786
10787 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10788 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10789 frame_chain function.
10790 * Makefile.in: Add dependencies due to above change.
10791
7c86889b
CV
107922003-04-10 Corinna Vinschen <vinschen@redhat.com>
10793
10794 * blockframe.c (legacy_frame_chain_valid): Move call to
10795 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10796 inside_entry_file.
10797
d0a55772
AC
107982003-04-09 Andrew Cagney <cagney@redhat.com>
10799
10800 * frame.h (struct frame_id): Replace "pc" and "base" with
10801 "stack_addr" and "code_addr". Update comments.
10802 (frame_id_build): Update parameter names and comment.
10803 (struct frame_info): Replace "id_p" and "id" with "this_id".
10804 * dummy-frame.c (dummy_frame_this_id): Update.
10805 * breakpoint.c (print_one_breakpoint): Update.
10806 * frame.c (get_frame_id): Update.
10807 (get_frame_base, frame_id_build): Update.
10808 (create_sentinel_frame, legacy_get_prev_frame): Update.
10809 (deprecated_update_frame_base_hack): Update.
10810 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10811 (frame_id_inner): Ditto.
10812
ac16bf07
AC
108132003-04-09 Andrew Cagney <cagney@redhat.com>
10814
10815 * defs.h (gdb_print_host_address): Make "addr" parameter a
10816 pointer constant.
10817 * utils.c (gdb_print_host_address): Update.
10818
366cfc9e
KB
108192003-04-09 Kevin Buettner <kevinb@redhat.com>
10820
10821 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10822 register number for R0 is 0.
10823
cd983b5c
JB
108242003-04-09 J. Brobecker <brobecker@gnat.com>
10825
10826 * frame.h (struct gdbarch): Add opaque structure definition
10827 to avoid a compilation warning on LynxOS 4.0.
10828
d1340264
AC
108292003-04-09 Andrew Cagney <cagney@redhat.com>
10830
10831 * frame.h (struct frame_info): Delete field "pc". Replace
10832 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10833 structure.
10834 * frame.c (frame_pc_unwind): Update.
10835 (create_sentinel_frame): Do not set "pc".
10836 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10837 (get_frame_pc): Call frame_pc_unwind.
10838 (deprecated_update_frame_pc_hack): Update.
10839 (create_new_frame): Use "pc" not "->pc".
10840
90a6fffb
AC
108412003-04-09 Andrew Cagney <cagney@redhat.com>
10842
10843 * frame.c (get_frame_id): Eliminate code updating "frame".
10844 (legacy_get_prev_frame): Ditto.
10845 (get_frame_base): Return id.base directly.
10846 (deprecated_update_frame_base_hack): Update "id.base".
10847 * frame.h (struct frame_info): Delete field "frame".
10848
2fbce691
AC
108492003-04-09 Andrew Cagney <cagney@redhat.com>
10850
10851 * NEWS: Mention that the "Sequent family" is obsolete.
10852 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10853 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10854 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10855 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10856 * config/i386/tm-ptx4.h: Obsolete file.
10857 * config/i386/tm-ptx.h: Obsolete file.
10858 * symm-tdep.c: Obsolete file.
10859 * config/i386/symmetry.mt: Obsolete file.
10860 * config/i386/tm-symmetry.h: Obsolete file.
10861 * symm-nat.c: Obsolete file.
10862 * config/i386/nm-symmetry.h: Obsolete file.
10863 * config/i386/xm-symmetry.h: Obsolete file.
10864 * config/i386/symmetry.mh: Obsolete file.
10865 * config/i386/nm-ptx4.h: Obsolete file.
10866 * config/i386/ptx4.mh: Obsolete file.
10867 * config/i386/ptx.mt: Obsolete file.
10868 * config/i386/ptx.mh: Obsolete file.
10869 * config/i386/xm-ptx4.h: Obsolete file.
10870 * config/i386/xm-ptx.h: Obsolete file.
10871
78c43945
AC
108722003-04-09 Andrew Cagney <cagney@redhat.com>
10873
10874 Obsolete mips*-*-mach3*.
10875 * NEWS: Mention that mips*-*-mach3* is obsolete.
10876 * m3-nat.c: Obsolete file.
10877 * config/nm-m3.h: Obsolete file.
10878 * config/mips/tm-mipsm3.h: Obsolete file.
10879 * config/mips/mipsm3.mt: Obsolete file.
10880 * config/mips/mipsm3.mh: Obsolete file.
10881 * config/mips/xm-mipsm3.h: Obsolete file.
10882 * mipsm3-nat.c: Obsolete file.
10883 * configure.host: Obsolete mips-dec-mach3*.
10884 * configure.tgt: Obsolete mips*-*-mach3*.
10885
f1908289
AC
108862003-04-09 Andrew Cagney <cagney@redhat.com>
10887
10888 * doublest.h: Update copyright.
10889 (deprecated_store_floating, deprecated_extract_floating): Rename
10890 store_floating and extract_floating. Update comments.
10891 * doublest.c: Update copyright.
10892 (extract_floating_by_length): Replace extract_floating.
10893 (store_floating_by_length): Replace store_floating.
10894 (deprecated_extract_floating): New function.
10895 (deprecated_store_floating): New function.
10896 (extract_typed_floating): Call extract_floating_by_length.
10897 (store_typed_floating): Call store_floating_by_length.
10898 * x86-64-tdep.c (x86_64_store_return_value): Update.
10899 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10900 (sh64_extract_return_value): Update.
10901 (sh_sh4_register_convert_to_virtual): Update.
10902 (sh_sh64_register_convert_to_virtual): Update.
10903 (sh_sh4_register_convert_to_raw): Update.
10904 (sh_sh64_register_convert_to_raw): Update.
10905 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10906 (rs6000_register_convert_to_raw): Update.
10907 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10908 (ia64_register_convert_to_raw): Update.
10909 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10910 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10911 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10912 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10913 (alpha_register_convert_to_raw): Update.
10914
4443bd83
AC
109152003-04-08 Andrew Cagney <cagney@redhat.com>
10916
10917 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10918 * gdbarch.h, gdbarch.c: Re-generate.
10919 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10920 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10921 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10922 conditionally, use frame_pc_unwind as an alternative. Add
10923 comments.
10924 * arch-utils.c (init_frame_pc_default): Only call
10925 SAVED_PC_AFTER_CALL when available.
10926
c0236d92
EZ
109272003-04-08 Elena Zannoni <ezannoni@redhat.com>
10928
fbe586ae 10929 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10930 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10931 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10932 (start_remote): Ditto.
10933 (handle_inferior_event): Ditto.
10934 (save_inferior_status): Ditto.
10935 (restore_inferior_status): Ditto.
10936 * infcmd.c (attach_command): Ditto.
10937 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10938 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10939 * alpha-tdep.c (heuristic_proc_start): Ditto.
10940 * mips-tdep.c (heuristic_proc_start): Ditto.
10941 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10942 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10943 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10944 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10945 * remote-vx.c (vx_create_inferior): Ditto.
10946
109472003-04-08 Elena Zannoni <ezannoni@redhat.com>
10948
10949 * infrun.c (stop_soon_quietly): Make it an enum, to better
10950 override the default behavior of handle_inferior_event.
10951 (clear_proceed_status): Update uses of stop_soon_quietly to
10952 reflect that it is now an enum.
10953 (start_remote): Ditto.
10954 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10955 is set to handle the new GNU/Linux kernel behavior for
10956 attach/sigstop. Update uses of stop_soon_quietly.
10957 * inferior.h (enum stop_kind): New enum.
10958 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10959 Reset normal handle_inferior_event behavior, afterwards.
10960 * fork-child.c (startup_inferior): Update.
10961 * alpha-tdep.c (heuristic_proc_start): Update.
10962 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10963 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10964 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10965 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10966 * remote-vx.c (vx_create_inferior): Update.
10967 * mips-tdep.c (heuristic_proc_start): Update.
10968
1211bce3
EZ
109692003-04-07 Elena Zannoni <ezannoni@redhat.com>
10970
10971 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10972 be freed more than once, causing wild memory corruptions.
1211bce3 10973 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10974 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10975 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10976 with the "core" target.
1211bce3 10977
f0ef6b29
KB
109782003-04-07 Kevin Buettner <kevinb@redhat.com>
10979
10980 * mips-tdep.c (mips_print_fp_register): New function, created from
10981 do_fp_register_row(). Registers are now (also) printed as hex.
10982 Only one register is printed per row.
10983 (mips_print_register, do_fp_register_row): Print floating point
10984 registers with mips_print_fp_register().
10985
8cf71652
AC
109862003-04-06 Andrew Cagney <cagney@redhat.com>
10987
5e488a7b
AC
10988 * valprint.h (inspect_it): Add extern declaration.
10989 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10990 (selectors_info, classes_info): Ditto.
10991 (find_objc_msgcall): Fix indentation.
10992 (objc_printstr): Delete extern declarations.
10993
8cf71652
AC
10994 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10995
e6ba3bc9
AC
109962003-04-06 Andrew Cagney <cagney@redhat.com>
10997
10998 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10999 Update comment.
11000 * frame.c (legacy_saved_regs_this_id): Update.
11001 (legacy_get_prev_frame): Update.
11002 * xstormy16-tdep.c: Update comment.
11003 * sparc-tdep.c (sparc_frame_chain): Update comment.
11004 * blockframe.c (legacy_frame_chain_valid): Update.
11005
55e1d7e7
AC
110062003-04-06 Andrew Cagney <cagney@redhat.com>
11007
996179ee
AC
11008 * valprint.c (val_print_type_code_int): Delete #ifdef
11009 PRINT_TYPELESS_INTEGER code.
11010
55e1d7e7
AC
11011 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
11012 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
11013 multi-arch definition.
11014 * gdbarch.h: Re-generate.
11015
43bd9a9e
AC
110162003-04-05 Andrew Cagney <cagney@redhat.com>
11017
11018 Eliminate FRAME_FIND_SAVED_REGS.
11019 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11020 Change FSR parameter to a pointer.
11021 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
11022 Assume FSR parameter is a pointer.
11023 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11024 Make fsr a pointer.
11025 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
11026 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
11027 saved_regs a pointer.
11028 (hppa_frame_saved_pc): Ditto.
11029 (find_dummy_frame_regs): Make frame_saved_regs a pointer
11030 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
11031 pointer.
11032 (restore_pc_queue): Make fsr a pointer.
11033 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
11034 (hppa_frame_chain): Make saved_regs a pointer, call
11035 hppa_frame_init_saved_regs.
11036 * sparc-tdep.c: Include "gdb_assert.h".
11037 (sparc_frame_find_saved_regs): Replace internal_error with
11038 gdb_assert.
11039 * remote-vxsparc.c (vx_read_register): Delete reference to
11040 FRAME_FIND_SAVED_REGS.
11041 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
11042 * gdbarch.h: Regenerate.
11043 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11044 (deprecated_get_frame_saved_regs): Delete declaration.
11045 (struct frame_saved_regs): Delete definition.
11046 * frame.c (deprecated_get_frame_saved_regs): Delete function.
11047 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
11048 (hppa_frame_find_saved_regs): Delete declaration.
11049 (FRAME_FIND_SAVED_REGS): Delete macro.
11050 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
11051 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
11052 FRAME_FIND_SAVED_REGS in comment.
11053
be41e9f4
AC
110542003-04-05 Andrew Cagney <cagney@redhat.com>
11055
11056 * frame.c (frame_func_unwind, get_frame_func): New functions.
11057 * frame.h (get_frame_func, frame_func_unwind): Declare.
11058 (struct frame_info): Add field "prev_func" for caching the
11059 previous frame's function address.
11060 * arm-tdep.c (arm_frameless_function_invocation): Combine
11061 get_pc_function_start and get_frame_pc into get_frame_func.
11062 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11063 (sh64_nofp_frame_init_saved_regs): Ditto.
11064 * s390-tdep.c (s390_function_start): Ditto.
11065 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
11066 (rs6000_frameless_function_invocation): Ditto.
11067 (rs6000_frame_saved_pc): Ditto.
11068 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
11069 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
11070 * i386-tdep.c (i386_frameless_signal_p): Ditto.
11071 (i386_frame_init_saved_regs): Ditto.
11072 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
11073 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
11074 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
11075 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
11076 * blockframe.c (frameless_look_for_prologue): Ditto.
11077
a01dd7cc
AC
110782003-04-05 Andrew Cagney <cagney@redhat.com>
11079
11080 * frame.c (legacy_get_prev_frame): Link prev to next at the
11081 function start. Update comments.
11082
5e5592e6
AC
110832003-04-05 Andrew Cagney <cagney@redhat.com>
11084
11085 * frame.c (get_frame_id): Update comment.
11086 (legacy_get_prev_frame): Update comment.
11087 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
11088 * gdbarch.h: Regenerate.
11089 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
11090 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
11091
6fba5002
AC
110922003-04-05 Andrew Cagney <cagney@redhat.com>
11093
11094 * stack.c (print_frame_info): Use get_frame_pc.
11095
7df05f2b
AC
110962003-04-04 Andrew Cagney <cagney@redhat.com>
11097
11098 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
11099 the frame's type from the unwinder.
11100 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
11101 (create_new_frame, legacy_get_prev_frame): When the unwinder's
11102 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
11103 (get_frame_base_address): Use get_frame_type.
11104 (get_frame_locals_address, get_frame_args_address): Ditto.
11105 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
11106 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
11107 (struct frame_info): Add comment explaining why the frame contains
11108 a "type" field.
11109 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
11110 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
11111 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11112 NORMAL_FRAME.
11113 * frame-unwind.h: Include "frame.h".
11114 (struct frame_unwind): Add "type" field.
11115 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 11116
11889732
AC
111172003-04-04 Andrew Cagney <cagney@redhat.com>
11118
11119 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11120 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11121 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11122 get_frame_base.
11123 (d10v_unwind_dummy_id): Use frame_id_build.
11124 * frame.c (find_frame_sal): Use get_frame_pc.
11125 (create_new_frame): Use deprecated_update_frame_pc_hack and
11126 deprecated_update_frame_base_hack.
11127 (create_sentinel_frame): Add comment about ->pc going away.
11128 (get_prev_frame): Add comment about ->pc going away.
11129 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11130 frame_id_build, deprecated_update_frame_pc_hack and
11131 deprecated_update_frame_base_hack.
11132 (select_frame): Use get_frame_pc.
11133 (legacy_saved_regs_this_id): Use frame_id_build.
11134
50c46a0d
EZ
111352003-04-04 Elena Zannoni <ezannoni@redhat.com>
11136
fbe586ae
RH
11137 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11138 signed integer case.
11139 (classify_argument): Handle enumerations and references.
50c46a0d 11140
50bbdbd9
AC
111412003-04-04 Andrew Cagney <cagney@redhat.com>
11142
11143 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11144 ID to NULL.
11145
36018d2e
AF
111462003-04-01 Adam Fedor <fedor@gnu.org>
11147
11148 * gdb/objc-lang.c (selectors_info): Replace calls to
11149 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11150 SYMBOL_NATURAL_NAME.
11151 (classes_info, find_methods): Likewise.
11152
35cec841
KB
111532003-04-03 Kevin Buettner <kevinb@redhat.com>
11154
11155 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11156 ``mach'' to the value determined by bfd_default_set_arch_mach().
11157
43136899
BR
111582003-04-02 Bob Rossi <bob_rossi@cox.net>
11159
11160 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11161 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11162 (mi-cmd-file.o): Update dependencies.
11163
040b99fd
KB
111642003-04-01 Kevin Buettner <kevinb@redhat.com>
11165
11166 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11167 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11168
9a3d7dfd
AF
111692003-04-01 Adam Fedor <fedor@gnu.org>
11170
11171 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11172 * language.h (struct language_defn): Add la_demangle.
11173 (language_demangle): Declare.
11174 * language.c (language_demangle): New function.
11175 (unk_lang_demangle): Likewise.
11176 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 11177 Add ukn_lang_demangle.
9a3d7dfd 11178 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 11179 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
11180 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11181 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11182 * jv-lang.c (java_demangle): New function
11183 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
11184 * objc-lang.c (objc_demangle): Add options argument
11185 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
11186 * maint.c (maintenance_demangle): Replace switch with
11187 call to language_demangle.
11188 * utils.c (fprintf_symbol_filtered): Likewise.
11189
5e074003
AC
111902003-04-01 Andrew Cagney <cagney@redhat.com>
11191
11192 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11193 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11194 PRINT_TYPELESS_INTEGER.
11195 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11196 PUSH_RETURN_ADDRESS.
11197
270cb5d6
AC
111982003-04-01 Andrew Cagney <cagney@redhat.com>
11199
11200 * Makefile.in (d10v-tdep.o): Update dependencies.
11201 * d10v-tdep.c: Include "frame-base.h".
11202 (d10v_frame_unwind): Make constant.
11203 (d10v_frame_base_address): New function.
11204 (d10v_frame_base): New variable.
11205 (d10v_gdbarch_init): Set frame_base default.
11206 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11207 comment for base.
11208 (d10v_frame_unwind_cache): Set and use "prev_sp".
11209 (d10v_frame_this_id): Use the previous frame's inner most stack
11210 address and this frame's func address for the frame ID. Use
11211 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 11212
6bfb3e36
AC
112132003-04-01 Andrew Cagney <cagney@redhat.com>
11214
11215 * frame.h (get_frame_locals_address, get_frame_args_address):
11216 Refer to the base address, instead of the address of the first
11217 local or parameter.
8ffd9b1b 11218
da62e633
AC
112192003-04-01 Andrew Cagney <cagney@redhat.com>
11220
11221 Add frame debug info addresses:
11222 * frame-base.c: New file.
11223 * frame-base.h: New file.
11224 * frame.h (struct frame_base): Add opaque declaration.
11225 (get_frame_base): Update comment.
11226 (get_frame_base_address): Declare.
11227 (get_frame_locals_address): Declare.
11228 (get_frame_args_address): Declare.
11229 (struct frame_info): Add "base" and "base_cache". Update
11230 comments on the unwinder.
11231 * frame.c: Include "frame-base.h".
11232 (get_frame_locals_address): New function.
11233 (get_frame_base_address): New function.
11234 (get_frame_args_address): New function.
11235 * findvar.c (read_var_value): Use get_frame_locals_address and
11236 get_frame_args_address.
11237 * stack.c (frame_info): Use get_frame_locals_address and
11238 get_frame_args_address.
11239 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11240 moved to "frame-base.c".
11241 * printcmd.c (print_frame_nameless_args): Ditto.
11242 * symtab.h (address_class): Update comments.
11243 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11244 get_frame_base_address.
11245 * dwarf2expr.c (execute_stack_op): Ditto.
11246 * Makefile.in (frame_base_h): Define.
11247 (frame.o): Update dependencies.
11248 (frame-base.o): Add dependencies.
11249 (SFILES): Add frame-base.c.
11250 (COMMON_OBS): Add frame-base.o.
11251
3d30e9c2
AC
112522003-04-01 Andrew Cagney <cagney@redhat.com>
11253
11254 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11255 CALL_DUMMY_LENGTH): Ditto.
11256 * gdbarch.c: Re-generate.
11257 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11258 (CALL_DUMMY_LENGTH): Delete macro.
11259 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11260 * arm-tdep.c (arm_gdbarch_init): Ditto.
11261 * avr-tdep.c (avr_gdbarch_init): Ditto.
11262 * cris-tdep.c (cris_gdbarch_init): Ditto.
11263 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11264 * frv-tdep.c (frv_gdbarch_init): Ditto.
11265 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11266 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11267 * i386-tdep.c (i386_gdbarch_init): Ditto.
11268 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11269 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11270 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11271 * mips-tdep.c (mips_gdbarch_init): Ditto.
11272 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11273 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11274 * s390-tdep.c (s390_gdbarch_init): Ditto.
11275 * sh-tdep.c (sh_gdbarch_init): Ditto.
11276 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11277 * v850-tdep.c (v850_gdbarch_init): Ditto.
11278 * vax-tdep.c (vax_gdbarch_init): Ditto.
11279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11280
ce0c7262
CV
112812003-04-01 Corinna Vinschen <vinschen@redhat.com>
11282
11283 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11284
73dd234f
AC
112852003-04-01 Andrew Cagney <cagney@redhat.com>
11286
11287 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11288 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11289 * gdbarch.h, gdbarch.c: Re-generate.
11290 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11291 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11292 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11293 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11294 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11295 * infcmd.c (run_stack_dummy): Simplify assuming
11296 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11297 * infrun.c (handle_inferior_event): Ditto.
11298 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11299 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11300 * arm-tdep.c (arm_gdbarch_init): Ditto.
11301 * avr-tdep.c (avr_gdbarch_init): Ditto.
11302 * cris-tdep.c (cris_gdbarch_init): Ditto.
11303 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11304 * frv-tdep.c (frv_gdbarch_init): Ditto.
11305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11306 * i386-tdep.c (i386_gdbarch_init): Ditto.
11307 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11309 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11310 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11311 * mips-tdep.c (mips_gdbarch_init): Ditto.
11312 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11313 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11315 * s390-tdep.c (s390_gdbarch_init): Ditto.
11316 * sh-tdep.c (sh_gdbarch_init): Ditto.
11317 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11318 * v850-tdep.c (v850_gdbarch_init): Ditto.
11319 * vax-tdep.c (vax_gdbarch_init): Ditto.
11320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11321
97606a13
DJ
113222003-04-01 Daniel Jacobowitz <drow@mvista.com>
11323
11324 * symfile.c (symfile_relocate_debug_section): Update call to
11325 bfd_simple_get_relocated_section_contents.
11326
e8ab51f7
AC
113272003-03-31 Andrew Cagney <cagney@redhat.com>
11328
11329 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11330 * gdbarch.h, gdbarch.c: Regenerate.
11331 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11332 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11333 available.
11334 * frame.h (generic_fix_call_dummy): Delete declaration.
11335 * dummy-frame.h: Update comment.
11336 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11338 fix_call_dummy.
11339 * sh-tdep.c (sh_gdbarch_init): Ditto.
11340 * s390-tdep.c (s390_gdbarch_init): Ditto.
11341 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11342 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11344 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11345 * i386-tdep.c (i386_gdbarch_init): Ditto.
11346 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11347 * frv-tdep.c (frv_gdbarch_init): Ditto.
11348 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11349 * cris-tdep.c (cris_gdbarch_init): Ditto.
11350 * avr-tdep.c (avr_gdbarch_init): Ditto.
11351 * arm-tdep.c (arm_gdbarch_init): Ditto.
11352
018d1b48
JB
113532003-03-31 J. Brobecker <brobecker@gnat.com>
11354
11355 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11356 (INIT_FRAME_AP): Likewise.
11357 (EXTRA_FRAME_INFO): Likewise.
11358
e9a2674e
AC
113592003-03-31 Andrew Cagney <cagney@redhat.com>
11360
11361 * gdbarch.sh: Include "symfile.h".
11362 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11363 * gdbarch.h, gdbarch.c: Re-generate.
11364 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11366 call_dummy_address, the default is at entry_point_address.
11367 * v850-tdep.c (v850_gdbarch_init): Ditto.
11368 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11369 * sh-tdep.c (sh_gdbarch_init): Ditto.
11370 * s390-tdep.c (s390_gdbarch_init): Ditto.
11371 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11372 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11373 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11375 * i386-tdep.c (i386_gdbarch_init): Ditto.
11376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11377 * frv-tdep.c (frv_gdbarch_init): Ditto.
11378 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11379 * cris-tdep.c (cris_gdbarch_init): Ditto.
11380 * arm-tdep.c (arm_gdbarch_init): Ditto.
11381
e8a8712a
AC
113822003-03-31 Andrew Cagney <cagney@redhat.com>
11383
11384 * gdbarch.sh (CALL_DUMMY_P): Delete.
11385 * gdbarch.h, gdbarch.c: Re-generate.
11386 * inferior.h (CALL_DUMMY_P): Delete macro.
11387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11388 * vax-tdep.c (vax_gdbarch_init): Update.
11389 * v850-tdep.c (v850_gdbarch_init): Update.
11390 * sparc-tdep.c (sparc_gdbarch_init): Update.
11391 * sh-tdep.c (sh_gdbarch_init): Update.
11392 * s390-tdep.c (s390_gdbarch_init): Update.
11393 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11394 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11395 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11396 * mips-tdep.c (mips_gdbarch_init): Update.
11397 * mcore-tdep.c (mcore_gdbarch_init): Update.
11398 * m68k-tdep.c (m68k_gdbarch_init): Update.
11399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11400 * ia64-tdep.c (ia64_gdbarch_init): Update.
11401 * i386-tdep.c (i386_gdbarch_init): Update.
11402 * h8300-tdep.c (h8300_gdbarch_init): Update.
11403 * frv-tdep.c (frv_gdbarch_init): Update.
11404 * d10v-tdep.c (d10v_gdbarch_init): Update.
11405 * cris-tdep.c (cris_gdbarch_init): Update.
11406 * breakpoint.c (deprecated_frame_in_dummy): Update.
11407 * avr-tdep.c (avr_gdbarch_init): Update.
11408 * alpha-tdep.c (alpha_gdbarch_init): Update.
11409 * arm-tdep.c (arm_gdbarch_init): Update.
11410 * dummy-frame.c (dummy_frame_this_id): Update comments.
11411 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11412 * frame.c (legacy_get_prev_frame): Ditto.
11413 * valops.c (call_function_by_hand): Delete function.
11414 (hand_function_call): Rename to call_function_by_hand
11415
ed234cf8
AC
114162003-03-30 Andrew Cagney <cagney@redhat.com>
11417
11418 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11419 * value.h (struct value): Update comment.
ed234cf8 11420
06c77151
AC
114212003-03-30 Andrew Cagney <cagney@redhat.com>
11422
6c2b5168
AC
11423 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11424 D10V_FP_REGNUM.
11425 (d10v_gdbarch_init): Do not set fp_regnum.
11426
06c77151
AC
11427 * frame.c (get_frame_base): Force ID initialization.
11428 (get_prev_frame): Move computation of the frame ID from here ...
11429 (get_frame_id): ... to here.
11430 (legacy_get_prev_frame): Mark the frame ID as valid.
11431 * frame.h (struct frame_info): Add field "id_p".
11432
97a1a11c
MK
114332003-03-30 Mark Kettenis <kettenis@gnu.org>
11434
11435 * i386-tdep.c (i386_store_struct_return): Removed.
11436 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11437
6c0e89ed
AC
114382003-03-30 Andrew Cagney <cagney@redhat.com>
11439
11440 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11441 * gdbarch.h, gdbarch.c: Regenerate.
11442 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11444 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11445 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11446 * i386-tdep.c (i386_gdbarch_init): Ditto.
11447 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11448 * cris-tdep.c (cris_gdbarch_init): Ditto.
11449 * vax-tdep.c (vax_gdbarch_init): Ditto.
11450 * s390-tdep.c (s390_gdbarch_init): Ditto.
11451 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11452 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11453 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11454 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11455 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11456 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11457 * sparc-tdep.c (sparc_gdbarch_init): Update.
11458 * sh-tdep.c (sh_gdbarch_init): Update.
11459 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11460 * mips-tdep.c (mips_gdbarch_init): Update.
11461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11462 * ia64-tdep.c (ia64_gdbarch_init): Update.
11463 * frv-tdep.c (frv_gdbarch_init): Update.
11464 * avr-tdep.c (avr_gdbarch_init): Update.
11465 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11466 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11467 instead of when push_dummy_call is not available.
8ffd9b1b 11468
f7dd6af2
AC
114692003-03-30 Andrew Cagney <cagney@redhat.com>
11470
11471 * infttrace.c: Include "gdbthread.h".
11472 (parent_attach_all): Fix function signature.
11473 (call_ptrace): Update call.
11474 * Makefile.in (infttrace.o): Update dependencies.
11475
28f617b3
AC
114762003-03-30 Andrew Cagney <cagney@redhat.com>
11477
11478 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11479 PUSH_RETURN_ADDRESS.
11480 * gdbarch.h, gdbarch.c: Regenerate.
11481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11482 * x86-64-tdep.c (x86_64_init_abi): Update.
11483 * v850-tdep.c (v850_gdbarch_init): Update.
11484 * sparc-tdep.c (sparc_gdbarch_init): Update.
11485 * sh-tdep.c (sh_gdbarch_init): Update.
11486 * s390-tdep.c (s390_gdbarch_init): Update.
11487 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11489 * mips-tdep.c (mips_gdbarch_init): Update.
11490 * mcore-tdep.c (mcore_gdbarch_init): Update.
11491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11492 * ia64-tdep.c (ia64_gdbarch_init): Update.
11493 * i386-tdep.c (i386_gdbarch_init): Update.
11494 * h8300-tdep.c (h8300_gdbarch_init): Update.
11495 * frv-tdep.c (frv_gdbarch_init): Update.
11496 * cris-tdep.c (cris_gdbarch_init): Update.
11497 * avr-tdep.c (avr_gdbarch_init): Update.
11498 * arm-tdep.c (arm_gdbarch_init): Update.
11499 * valops.c (hand_function_call): Update.
11500
4d628cd7
AC
115012003-03-29 Andrew Cagney <cagney@redhat.com>
11502
11503 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11504 sizeof_call_dummy_words.
11505 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11506 define.
11507 * gdbarch.h: Regenerate.
8ffd9b1b 11508
65e82032
AC
115092003-03-29 Andrew Cagney <cagney@redhat.com>
11510
11511 * infttrace.h: New file.
11512 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11513 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11514 (hpread_read_doc_function_type): Detect an initialized type1.
11515 (hpread_quick_traverse): Initialize mod_name_string.
11516 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11517 (som_solib_get_solib_by_pc): Declare.
11518 (so_lib_thread_start_addr): Declare.
11519 (no_shared_libraries): Declare.
11520 * somread.c (init_import_symbols): Make static. Add forward
11521 declaration.
11522 * config/pa/nm-hppah.h: Include "infttrace.h" for
11523 parent_attach_all.
11524 (hppa_insert_hw_watchpoint): Declare.
11525 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11526 * hppah-nat.c: Include "gdb_string.h".
11527 (parent_attach_all): Delete extern declaration, moved to
11528 "infttrace.h".
11529 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11530 int.
11531 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11532 * Makefile.in (infttrace_h): Define.
11533 (hpread.o): Update dependencies.
11534 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11535 * hppa-hpux-tdep.c: Include "gdb_string.h".
11536 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11537 * infrun.c (handle_inferior_event): Always initialize
11538 stepped_after_stopped_by_watchpoint. Add default and remove
11539 fallthrough in switch statement.
11540 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11541 parameter to int.
11542 (hppa_remove_hw_watchpoint): Ditto.
11543
2c3bbe77
AC
115442003-03-29 Andrew Cagney <cagney@redhat.com>
11545
11546 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11547 offset.
11548
2dd604e7
RE
115492003-03-29 Richard Earnshaw <rearnsha@arm.com>
11550
11551 * arm-tdep.c (arm_push_arguments): Delete.
11552 (struct stack_item): New type.
11553 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11554 (arm_store_struct_return): Delte.
11555 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11556 arm_push_arguments or arm_store_struct_return.
11557
e8933a55
AC
115582003-03-28 Andrew Cagney <cagney@redhat.com>
11559
11560 * Makefile.in (d10v-tdep.o): Update dependencies.
11561 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11562 * d10v-tdep.c: Include "remote.h".
11563 (target_resume_hook): Delete extern declaration.
11564 (target_wait_loop_hook): Ditto.
11565 (tdisassemble_command): Eliminate assignment in "if" conditional.
11566 (d10v_ts2_register_sim_regno): Eliminate call to
11567 legacy_register_sim_regno.
11568 (d10v_ts3_register_sim_regno): Ditto.
11569
6949171e
JJ
115702003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11571
11572 * thread.c: Reindented.
11573 * lin-lwp.c: Ditto.
11574 * linux-proc.c: Ditto.
11575
98c7071f
BR
115762003-03-28 Bob Rossi <bob_rossi@cox.net>
11577
fbe586ae 11578 * MAINTAINERS (write after approval): Add myself.
98c7071f 11579
5edc9ca6
TR
115802003-03-27 Theodore A. Roth <troth@openavr.org>
11581
11582 * objc-exp.y: Add missing semi-colons.
11583
378bfd1b
AC
115842003-03-27 Andrew Cagney <cagney@redhat.com>
11585
11586 * regcache.c (write_sp): Delete function and references.
11587 * inferior.h (write_sp): Delete declaration.
11588 * valops.c (hand_function_call): Replace write_sp with
11589 TARGET_WRITE_SP.
11590 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11591 (sparc_pop_frame): Ditto.
8ffd9b1b 11592
56056df7
AC
115932003-03-27 Andrew Cagney <cagney@redhat.com>
11594
11595 * NEWS: Mention removal of support for hppa*-*-bsd* and
11596 hppa*-*-osf* natives, and hppa*-*-pro* target.
11597 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11598 * config/pa/xm-pa.h: Obsolete file.
11599 * config/pa/xm-hppab.h: Obsolete file.
11600 * config/pa/nm-hppab.h: Obsolete file.
11601 * config/pa/tm-hppab.h: Obsolete file.
11602 * config/pa/tm-hppao.h: Obsolete file.
11603 * config/pa/nm-hppao.h: Obsolete file.
11604 * config/pa/tm-pro.h: Obsolete file.
11605 * config/pa/hppaosf.mt: Obsolete file.
11606 * config/pa/hppaosf.mh: Obsolete file.
11607 * config/pa/hppapro.mt: Obsolete file.
11608 * config/pa/hppabsd.mt: Obsolete file.
11609 * config/pa/hppabsd.mh: Obsolete file.
11610 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11611 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11612 hppa*-*-osf*.
11613
5873a88d
AC
116142003-03-27 Andrew Cagney <cagney@redhat.com>
11615
11616 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11617 push_arguments. Don't set push_return_address or write_sp.
11618 (d10v_push_dummy_call): Replace d10v_push_arguments.
11619 (d10v_push_return_address, d10v_write_sp): Delete function,
11620 handled by push_dummy_call.
11621
b81774d8
AC
116222003-03-26 Andrew Cagney <cagney@redhat.com>
11623
11624 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11625 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11626 regcache and dummy_addr parameters.
11627 * gdbarch.h, gdbarch.c: Re-generate.
11628 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11629 available; assume it will handle stack alignment and return
11630 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11631 legacy_push_arguments.
11632 (legacy_push_arguments): Rename default_push_arguments.
11633 * value.h (legacy_push_arguments): Rename default_push_arguments.
11634 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11635 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11636 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11637 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11638 * config/i386/tm-symmetry.h: Update.
11639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11640 * x86-64-tdep.c (x86_64_init_abi): Update.
11641 * v850-tdep.c (v850_gdbarch_init): Update.
11642 * sparc-tdep.c (sparc_gdbarch_init): Update.
11643 * sh-tdep.c (sh_gdbarch_init): Update.
11644 * s390-tdep.c (s390_gdbarch_init): Update.
11645 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11646 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11647 * mips-tdep.c (mips_gdbarch_init): Update.
11648 * mcore-tdep.c (mcore_gdbarch_init): Update.
11649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11650 * ia64-tdep.c (ia64_gdbarch_init): Update.
11651 * i386-tdep.c (i386_gdbarch_init): Update.
11652 * hppa-tdep.c (hppa_gdbarch_init): Update.
11653 * h8300-tdep.c (h8300_gdbarch_init): Update.
11654 * frv-tdep.c (frv_gdbarch_init): Update.
11655 * d10v-tdep.c (d10v_gdbarch_init): Update.
11656 * cris-tdep.c (cris_gdbarch_init): Update.
11657 * avr-tdep.c (avr_gdbarch_init): Update.
11658 * arm-tdep.c (arm_gdbarch_init): Update.
11659 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11660 * alpha-tdep.c (alpha_gdbarch_init): Update.
11661
f541410f
DJ
116622003-03-26 Daniel Jacobowitz <drow@mvista.com>
11663
11664 * signals/signals.c (do_target_signal_to_host): Correct realtime
11665 signal range test.
11666
69f567ae
DJ
116672003-03-26 Daniel Jacobowitz <drow@mvista.com>
11668
11669 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11670 (struct sal_chain, map_catch_names): Remove.
11671 (catch_exception_command_1): Don't call
11672 handle_gnu_4_16_catch_command.
11673
d5d14a5a
DJ
116742003-03-26 Daniel Jacobowitz <drow@mvista.com>
11675
11676 From Mark Dettinger <dettinge@de.ibm.com>:
11677 * dwarf2cfi.c (read_2u): Increment pointer by two.
11678
bdd73e22
DJ
116792003-03-26 Daniel Jacobowitz <drow@mvista.com>
11680
11681 * signals/signals.c: Fix typos in last change.
11682
960cb555
DJ
116832003-03-26 Daniel Jacobowitz <drow@mvista.com>
11684
11685 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11686 not already defined. Use __SIGRTMIN if available.
11687 (target_signal_from_host): Remove SIGRTMIN block.
11688 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11689 the signal is within the realtime range.
11690
f636b87d
AF
116912003-03-25 Adam Fedor <fedor@gnu.org>
11692
11693 * Makefile.in (infrun.o): Add $(language_h)
11694 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11695 for language specific trampolines.
11696 * language.h (struct language_defn): Add skip_trampoline.
11697 (skip_language_trampoline): Declare.
11698 * language.c (unk_lang_trampoline, skip_language_trampoline):
11699 New functions.
11700 (unknown_language_defn, auto_language_defn, local_language_defn):
11701 Add ukn_lang_trampoline.
11702 * ada-lang.c (ada_language_defn): Add NULL for language
11703 specific skip_trampoline.
11704 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11705 scm-lang.c: Likewise.
11706 * objc-lang.c (objc_skip_trampoline): New function.
11707 (objc_language_defn): Add objc_skip_trampoline.
11708
28f617b3 117092003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11710
11711 * frame.c (get_prev_frame): Delay validating a frame's ID -
11712 non-NULL, didn't go backwards - until an attempt to unwind it to
11713 the previous frame.
11714
f933a9c5
AC
117152003-03-25 Andrew Cagney <cagney@redhat.com>
11716
11717 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11718 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11719 * gdbarch.h, gdbarch.c: Re-generate.
11720 * config/sparc/tm-sparc.h
11721 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11722 * sparc-tdep.c (sparc_gdbarch_init): Set
11723 deprecated_extra_stack_alignment_needed.
11724 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11726 extra_stack_alignment_needed.
11727 * v850-tdep.c (v850_gdbarch_init): Ditto.
11728 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11729 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11730 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11731 * cris-tdep.c (cris_gdbarch_init): Ditto.
11732 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11734
4183d812
AC
117352003-03-25 Andrew Cagney <cagney@redhat.com>
11736
11737 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11738 STORE_STRUCT_RETURN.
11739 * gdbarch.h, gdbarch.c: Regenerate.
11740 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11741 (d10v_push_arguments): Set the struct return register.
11742 (d10v_gdbarch_init): Update.
11743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11744 * x86-64-tdep.c (x86_64_init_abi): Update.
11745 * vax-tdep.c (vax_gdbarch_init): Update.
11746 * v850-tdep.c (v850_gdbarch_init): Update.
11747 * sparc-tdep.c (sparc_gdbarch_init): Update.
11748 * sh-tdep.c (sh_gdbarch_init): Update.
11749 * s390-tdep.c (s390_gdbarch_init): Update.
11750 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11751 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11752 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11753 * mips-tdep.c (mips_gdbarch_init): Update.
11754 * mcore-tdep.c (mcore_gdbarch_init): Update.
11755 * m68k-tdep.c (m68k_gdbarch_init): Update.
11756 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11757 * ia64-tdep.c (ia64_gdbarch_init): Update.
11758 * i386-tdep.c (i386_gdbarch_init): Update.
11759 * hppa-tdep.c (hppa_gdbarch_init): Update.
11760 * h8300-tdep.c (h8300_gdbarch_init): Update.
11761 * frv-tdep.c (frv_gdbarch_init): Update.
11762 * cris-tdep.c (cris_gdbarch_init): Update.
11763 * avr-tdep.c (avr_gdbarch_init): Update.
11764 * arm-tdep.c (arm_gdbarch_init): Update.
11765 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11766
1bf6d5cc
AC
117672003-03-25 Andrew Cagney <cagney@redhat.com>
11768
11769 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11770 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11771 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11772 * gdbarch.h, gdbarch.c: Regenerate.
11773 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11774 call_dummy_stack_adjust_p.
11775 * vax-tdep.c (vax_gdbarch_init): Ditto.
11776 * v850-tdep.c (v850_gdbarch_init): Ditto.
11777 * sh-tdep.c (sh_gdbarch_init): Ditto.
11778 * s390-tdep.c (s390_gdbarch_init): Ditto.
11779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11780 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11782 * mips-tdep.c (mips_gdbarch_init): Ditto.
11783 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11784 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11786 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11787 * i386-tdep.c (i386_gdbarch_init): Ditto.
11788 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11789 * frv-tdep.c (frv_gdbarch_init): Ditto.
11790 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11791 * cris-tdep.c (cris_gdbarch_init): Ditto.
11792 * avr-tdep.c (avr_gdbarch_init): Ditto.
11793 * arm-tdep.c (arm_gdbarch_init): Ditto.
11794 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11795 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11796 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11797 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11798 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11799 call_dummy_stack_adjust_p.
11800 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11801 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11802 * sparc-tdep.c (sparc32_push_arguments): Update.
11803 * valops.c (hand_function_call): Update.
11804
71c08af0
CV
118052003-03-25 Corinna Vinschen <vinschen@redhat.com>
11806
11807 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11808 set_gdbarch_char_signed.
11809
30757f90
RE
118102003-03-25 Richard Earnshaw <rearnsha@arm.com>
11811
11812 PR cli/548
11813 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11814
03d48a7d
RE
118152003-03-25 Richard Earnshaw <rearnsha@arm.com>
11816
11817 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11818 (_initialize_arm_tdep): Don't set tm_print_insn.
11819
2cf6873c
AF
118202003-03-24 Adam Fedor <fedor@gnu.org>
11821
11822 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11823 * objc-lang.h: Add multiple inclusion protection.
11824 (start_msglist, add_msglist, end_msglist): Additional declarations.
11825
17c0759e
RE
118262003-03-24 Richard Earnshaw <rearnsha@arm.com>
11827
11828 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11829 value was renamed to ARM_FLOAT_SOFT_FPA.
11830
618ce49f
AC
118312003-03-23 Andrew Cagney <cagney@redhat.com>
11832
11833 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11834 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11835 * gdbarch.h, gdbarch.c: Regenerate.
11836 * valops.c (hand_function_call): Update.
11837 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11838 * frame.c (legacy_saved_regs_this_id): Update.
11839 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11840 * dummy-frame.h: Update.
11841 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11842 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11843 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11844 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11845 * config/m68k/tm-sun3.h: Update.
11846 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11848 * x86-64-tdep.c (x86_64_init_abi): Update.
11849 * vax-tdep.c (vax_gdbarch_init): Update.
11850 * v850-tdep.c (v850_gdbarch_init): Update.
11851 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11852 * sh-tdep.c (sh_gdbarch_init): Update.
11853 * s390-tdep.c (s390_gdbarch_init): Update.
11854 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11855 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11856 (frame_get_saved_regs): Update.
11857 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11858 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11859 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11860 * mips-tdep.c (mips_gdbarch_init): Update.
11861 * mcore-tdep.c (mcore_gdbarch_init): Update.
11862 * m68k-tdep.c (m68k_gdbarch_init): Update.
11863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11864 * ia64-tdep.c (ia64_gdbarch_init): Update.
11865 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11866 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11867 (i386_interix_back_one_frame): Update.
11868 * hppa-tdep.c (hppa_gdbarch_init): Update.
11869 (hppa_init_extra_frame_info): Update.
11870 * h8300-tdep.c (h8300_gdbarch_init): Update.
11871 * frv-tdep.c (frv_gdbarch_init): Update.
11872 * cris-tdep.c (cris_gdbarch_init): Update.
11873 * avr-tdep.c (avr_gdbarch_init): Update.
11874 * arm-tdep.c (arm_gdbarch_init): Update.
11875 * alpha-tdep.c (alpha_gdbarch_init): Update.
11876
fd50bc42
RE
118772003-03-22 Richard Earnshaw <rearnsha@arm.com>
11878
11879 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11880 (arm_get_fp_model): Declare.
11881 * arm-tdep.c (fp_model_strings): New string array.
11882 (arm_fp_model, current_fp_model): New variables.
11883 (arm_get_fp_model): New function.
11884 (arm_set_fp): New function.
11885 (set_fp_model_sfunc): New function.
11886 (show_fp_model): New function.
11887 (_initialize_arm_tdep): Add new command to set/show the FPU.
11888 (arm_extract_return_value): Use arm_get_fp_model.
11889 (arm_store_return_value): Likewise.
11890 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11891 to initialize the floating-point data types.
11892 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11893 model is FPA.
11894
26304000
RE
118952003-03-22 Richard Earnshaw <rearnsha@arm.com>
11896
11897 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11898 the current setting of each value.
11899 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11900 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11901 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11902 commands and add new version as subcommands of "set/show arm".
11903
afd7eef0
RE
119042003-03-22 Richard Earnshaw <rearnsha@arm.com>
11905
11906 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11907 (set_arm_command, show_arm_command): New functions.
11908 (_initialize_arm_tdep): Add them.
11909 (num_disassembly_options): Renamed from num_flavor_options.
11910 (valid_disassembly_styles): Renamed from valid_flavors.
11911 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11912 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11913 set_disassembly_flavor_sfunc.
11914 (set_disassembly_style): Renamed from set_disassembly_flavor.
11915 (arm_othernames): Updated.
11916 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11917 command. Add "set/show arm disassembly" commands. Deprecate
11918 "othernames" command.
11919
299a7944
RE
119202003-03-22 Richard Earnshaw <rearnsha@arm.com>
11921
11922 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11923 (arm-tdep.o): Depend on elf_arm_h.
11924
c1dac9e6
RE
119252003-03-22 Richard Earnshaw <rearnsha@arm.com>
11926
11927 * Makefile.in (coff_internal_h): Define.
11928 (arm-tdep.o): Update dependencies.
11929
2702d96c
RE
119302003-03-22 Richard Earnshaw <rearnsha@arm.com>
11931
11932 * arm-tdep.c (prologue_cache): Delete.
11933 (check_prologue_cache, save_prologue_cache): Delete.
11934 (arm_scan_prologue): Don't check or update the prologue_cache.
11935 (arm_gdb_arch_init): Don't initialize it.
11936 (_initialize_arm_tdep): Likewise.
11937
27d5d74b
SC
119382003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11939
11940 * MAINTAINERS (tui): Maintainer of tui code.
11941
1762d96d
CV
119422003-03-21 Corinna Vinschen <vinschen@redhat.com>
11943
11944 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11945 (i386-cygwin-tdep.o): Add dependencies.
11946 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11947 * i386-cygwin-tdep.c: New file.
11948 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11949 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11950
4c2e2391
AC
119512003-03-20 Andrew Cagney <cagney@redhat.com>
11952
f20d38b7
AC
11953 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11954 (handle_inferior_event): Remove code calling
11955 DYNAMIC_TRAMPOLINE_NEXTPC.
11956
0022b738
AC
11957 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11958 already has a full path.
11959
864dbc90
AC
11960 * main.c (gdb_main): Return 1.
11961 (captured_main): Call error to report an invalid interpreter.
11962
4c2e2391
AC
11963 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11964 * alpha-osf1-tdep.c: Include "gdb_string.h".
11965
5ef7553b
JB
119662003-03-19 J. Brobecker <brobecker@gnat.com>
11967
11968 Continuing work to convert the hppa targets to multiarch partial.
11969
11970 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11971 method, now that hppa_push_dummy_frame has a conformant prototype.
11972 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11973 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11974 for the switch to multiarch partial.
11975
7bde8967
KB
119762003-03-19 Kevin Buettner <kevinb@redhat.com>
11977
11978 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11979 when iss is issNull.
11980
b006a9e9
KB
119812003-03-18 Kevin Buettner <kevinb@redhat.com>
11982
11983 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11984 NUM_REGS bounds check.
11985
5e2e9765
KB
119862003-03-18 Kevin Buettner <kevinb@redhat.com>
11987
11988 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11989 * mips-tdep.c (gdb_assert.h): Include.
11990 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11991 (mips_register_name): Handle integer registers explicitly. Add
11992 bounds checking.
11993 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11994 (mips_lsi33k_reg_names): Don't list integer registers; they're
11995 handled by mips_register_name() now.
11996 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11997 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11998 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11999 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
12000 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
12001
a2867626
AC
120022003-03-18 Andrew Cagney <cagney@redhat.com>
12003
12004 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
12005 a void pointer.
12006 * gdbtypes.h (print_scalar_formatted): Update declaration.
12007 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
12008
06600e06
JB
120092003-03-18 J. Brobecker <brobecker@gnat.com>
12010
12011 * infrun.c (observer.h): Add #include.
12012 (normal_stop): Add call to observer_notify_normal_stop.
12013 * Makefile.in (infrun.o): Add dependency on observer.h.
12014
7daf4f5b
JB
120152003-03-18 J. Brobecker <brobecker@gnat.com>
12016
12017 Continuing work to convert the hppa targets to multiarch partial.
12018 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
12019 parameter. Reformat comment.
12020 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
12021 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
12022 to match new profile.
12023
3371ccc0
JB
120242003-03-18 J. Brobecker <brobecker@gnat.com>
12025
12026 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
12027 appear to be working in any case.
12028
4fbe891e
JB
120292003-03-18 J. Brobecker <brobecker@gnat.com>
12030
12031 * observer.c (observer_test_first_observer): New static variable.
12032 (observer_test_second_observer): Likewise.
12033 (observer_test_third_observer): Likewise.
12034 (observer_test_first_notification_function): New static function.
12035 (observer_test_second_notification_function): Likewise.
12036 (observer_test_third_notification_function): Likewise.
12037
a7ff40e7
JB
120382003-03-17 J. Brobecker <brobecker@gnat.com>
12039
12040 * hppa-tdep.c (gdb_assert.h): Add missing #include.
12041 * somsolib.c (gdb_assert.h): Likewise.
12042 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
12043 (somsolib.o): Likewise.
12044
26ca4152
AC
120452003-03-17 Andrew Cagney <cagney@redhat.com>
12046
12047 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
12048 BFD. Simplify setting of di.endian.
12049
0a613259
AC
120502003-03-17 Andrew Cagney <cagney@redhat.com>
12051
12052 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
12053 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
12054
12055 From Elena Zannoni <ezannoni@redhat.com>
12056 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
12057 vector and floating-point parameters.
12058 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
12059 convention.
12060 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
12061
1132738f
FN
120622003-03-17 Fernando Nasser <fnasser@redhat.com>
12063
12064 * MAINTAINERS: Remove my name from several maintainership roles.
12065
6dc42492
AC
120662003-03-17 Andrew Cagney <cagney@redhat.com>
12067
12068 Fix frame off-by-one bug.
12069 * frame-unwind.h (frame_this_id_ftype): Replace
12070 frame_unwind_id_ftype.
12071 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
12072 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
12073 with "prev_register".
12074 * frame-unwind.c (frame_unwind_find_by_pc): Return
12075 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
12076 comment.
12077 * dummy-frame.c (cached_find_dummy_frame): Delete function.
12078 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
12079 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
12080 (dummy_frame_unwind): Update.
12081 * sentinel-frame.c (sentinel_frame_prev_register): Replace
12082 sentinel_frame_register_unwind.
12083 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
12084 (sentinel_frame_unwinder): Update.
12085 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12086 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
12087 * frame.c (create_sentinel_frame): Update. Initialize
12088 "prologue_cache" instead of "unwind_cache".
12089 (frame_register_unwind): Call this frame's prev_register with the
12090 next frame and this frame's prologue cache.
12091 (get_prev_frame): Simplify. Always call prev frame's this_id with
12092 this frame and prev frame's prologue cache. Document that this
12093 call is shifted one to the left when compared to the
12094 frame_register_unwind call.
12095 (legacy_saved_regs_prev_register): Replace
12096 frame_saved_regs_register_unwind.
12097 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
12098 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
12099 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12100 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
12101 (d10v_frame_unwind): Update.
12102 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
12103 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
12104 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
12105 "saved_regs" with "this_saved_regs".
12106
efd710d6
AC
121072003-03-16 Andrew Cagney <cagney@redhat.com>
12108
12109 * frame.c (frame_pop): Don't call target_store_registers. Fix
12110 problem reported by Mark Kettenis.
12111
4e259f09
MK
121122003-03-16 Mark Kettenis <kettenis@gnu.org>
12113
12114 * i386-tdep.c (i386_register_type): Renamed from
12115 i386_register_virtual_type. Adjust function signature.
12116 (i386_gdbarch_init): Set register_type instead of
12117 deprecated_max_register_raw_size,
12118 deprecated_max_register_virtual_size and register_virtual_type.
12119
055bb976
AC
121202003-03-14 Andrew Cagney <cagney@redhat.com>
12121
12122 * frame.c (get_prev_frame): When a legacy frame, always call
12123 legacy_get_prev_frame. Simplify unwind code using assumption that
12124 the unwinder is new.
12125 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12126 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12127 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12128
ac2adee5
AC
121292003-03-14 Andrew Cagney <cagney@redhat.com>
12130
12131 * frame.c (get_saved_register): Delete function.
12132 * frame.h (get_saved_register): Delete declaration.
12133 * xstormy16-tdep.c: Update comment.
12134 * regcache.h: Update comments.
12135 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12136 get_saved_register and extract_address, use
12137 frame_read_unsigned_register.
12138 (sparc_frame_saved_pc): Ditto.
12139 (sparc_get_saved_register): Instead of get_saved_register, use
12140 frame_register.
12141 (sparc_pop_frame): Ditto.
12142 * findvar.c: Update comments.
12143 (value_of_register): Call frame_register instead of
12144 get_saved_register.
12145 (value_from_register): Ditto.
12146 * config/sparc/tm-sparc.h: Update comment.
12147 * breakpoint.c: Update comment.
12148
129c1cd6
AC
121492003-03-14 Andrew Cagney <cagney@redhat.com>
12150
12151 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12152 GET_SAVED_REGISTER.
12153 * gdbarch.h, gdbarch.c: Re-generate.
12154 * frame.h: Update comments.
12155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12156 * x86-64-tdep.c (x86_64_init_abi): Update.
12157 * sparc-tdep.c (sparc_gdbarch_init): Update.
12158 * sh-tdep.c (sh_gdbarch_init): Update.
12159 * mips-tdep.c (mips_gdbarch_init): Update.
12160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12161 * cris-tdep.c (cris_gdbarch_init): Update.
12162 * ia64-tdep.c (ia64_gdbarch_init): Update.
12163 * frame.c (frame_register): Update.
12164 (get_saved_register): Update.
12165 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 12166
749b82f6
AC
121672003-03-13 Andrew Cagney <cagney@redhat.com>
12168
12169 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12170 * gdbarch.h, gdbarch.c: Regenerate.
12171 * valops.c (hand_function_call): Update comment.
12172 * stack.c (return_command): Update comment.
12173 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12174 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12176 * x86-64-tdep.c (x86_64_init_abi): Update.
12177 * vax-tdep.c (vax_gdbarch_init): Update.
12178 * v850-tdep.c (v850_gdbarch_init): Update.
12179 * sparc-tdep.c (sparc_gdbarch_init): Update.
12180 * sh-tdep.c (sh_gdbarch_init): Update.
12181 * s390-tdep.c (s390_gdbarch_init): Update.
12182 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12185 * mips-tdep.c (mips_gdbarch_init): Update.
12186 * mcore-tdep.c (mcore_gdbarch_init): Update.
12187 * m68k-tdep.c (m68k_gdbarch_init): Update.
12188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12189 * ia64-tdep.c (ia64_gdbarch_init): Update.
12190 * i386-tdep.c (i386_gdbarch_init): Update.
12191 * hppa-tdep.c (hppa_gdbarch_init): Update.
12192 * h8300-tdep.c (h8300_gdbarch_init): Update.
12193 * frv-tdep.c (frv_gdbarch_init): Update.
12194 * cris-tdep.c (cris_gdbarch_init): Update.
12195 * avr-tdep.c (avr_gdbarch_init): Update.
12196 * arm-tdep.c (arm_gdbarch_init): Update.
12197 * alpha-tdep.c (alpha_gdbarch_init): Update.
12198
1594fa56
AC
121992003-03-13 Andrew Cagney <cagney@redhat.com>
12200
12201 * frame.c (legacy_frame_p): New function.
12202 (get_prev_frame): Use legacy_frame_p.
12203 * frame.h (legacy_frame_p): Declare.
12204
7717fda3
V
122052003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12206
fbe586ae 12207 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
12208 listing corrected.
12209
0c67cbe9
V
122102003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12211
fbe586ae 12212 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 12213
03febf99
AC
122142003-03-12 Andrew Cagney <cagney@redhat.com>
12215
12216 * frame.c (get_prev_frame): Rename the frame parameter to
12217 "this_frame".
12218 (get_next_frame, legacy_get_prev_frame): Ditto.
12219
0a1e1ca1
AC
122202003-03-12 Andrew Cagney <cagney@redhat.com>
12221
12222 * frame.c (get_current_frame): Check target_has_registers before
12223 checking target_has_stack.
12224 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12225 instead of deprecated_selected_frame.
12226 * findvar.c (value_of_register): Pass "frame", not
12227 deprecated_selected_frame, to value_of_builtin_reg.
12228
a66a9c23
AC
122292003-03-12 Andrew Cagney <cagney@redhat.com>
12230
12231 * regcache.c (regcache_cooked_write_signed): New function.
12232 (regcache_cooked_write_unsigned): New function.
12233 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12234 (regcache_cooked_read_signed): Fix regnum in range assertion.
12235 * regcache.h (regcache_cooked_write_signed): Declare.
12236 (regcache_cooked_write_unsigned): Declare.
12237
8bedc050
AC
122382003-03-12 Andrew Cagney <cagney@redhat.com>
12239
12240 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12241 * gdbarch.h, gdbarch.c: Re-generate.
12242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12243 * x86-64-tdep.h: Update.
12244 * x86-64-tdep.c (x86_64_init_abi): Update.
12245 * v850-tdep.c (v850_gdbarch_init): Update.
12246 * sparc-tdep.c (sparc_gdbarch_init): Update.
12247 * sh-tdep.c (sh_gdbarch_init): Update.
12248 * s390-tdep.c (s390_gdbarch_init): Update.
12249 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12250 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12251 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12252 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12253 * mips-tdep.c (mips_gdbarch_init): Update.
12254 * mcore-tdep.c (mcore_gdbarch_init): Update.
12255 * m68k-tdep.c (m68k_gdbarch_init): Update.
12256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12257 * ia64-tdep.c (ia64_gdbarch_init): Update.
12258 * i386-tdep.c (i386_gdbarch_init): Update.
12259 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12260 * hppa-tdep.c (hppa_gdbarch_init): Update.
12261 * h8300-tdep.c (h8300_gdbarch_init): Update.
12262 * frv-tdep.c (frv_gdbarch_init): Update.
12263 * cris-tdep.c (cris_gdbarch_init): Update.
12264 * avr-tdep.c (avr_gdbarch_init): Update.
12265 * arm-tdep.c (arm_gdbarch_init): Update.
12266 * alpha-tdep.c (alpha_gdbarch_init): Update.
12267 * sh-tdep.c (sh_init_extra_frame_info): Update.
12268 (sh64_init_extra_frame_info): Update.
12269 * ns32knbsd-nat.c (frame_num_args): Update.
12270 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12271 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12272 (xstormy16_frame_chain_valid): Update.
12273 * vax-tdep.c (vax_saved_pc_after_call): Update.
12274 * v850-tdep.c (v850_frame_chain): Update.
12275 (v850_pop_frame): Update.
12276 (v850_init_extra_frame_info): Update.
12277 * sparc-tdep.c (setup_arbitrary_frame): Update.
12278 * ns32k-tdep.c (umax_frame_num_args): Update.
12279 * s390-tdep.c (s390_pop_frame_regular): Update.
12280 * mn10300-tdep.c (mn10300_frame_chain): Update.
12281 (mn10300_pop_frame_regular): Update.
12282 (mn10300_init_extra_frame_info): Update.
12283 * mips-tdep.c (mips_init_frame_pc_first): Update.
12284 (mips_frame_chain): Update.
12285 (mips_pop_frame): Update.
12286 * mcore-tdep.c (mcore_frame_chain): Update.
12287 (mcore_pop_frame): Update.
12288 (mcore_init_extra_frame_info): Update.
12289 * arch-utils.c (init_frame_pc_default): Update.
12290 * m68k-tdep.c (isi_frame_num_args): Update.
12291 (delta68_frame_num_args): Update.
12292 (news_frame_num_args): Update.
12293 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12294 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12295 (alpha_frame_chain): Update.
12296 (alpha_pop_frame): Update.
12297 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12298 (hppa_init_extra_frame_info): Update.
12299 (hppa_frame_chain): Update.
12300 (hppa_frame_chain_valid): Update.
12301 * cris-tdep.c (cris_init_extra_frame_info): Update.
12302 * avr-tdep.c (avr_init_extra_frame_info): Update.
12303 * arm-tdep.c (arm_frame_chain_valid): Update.
12304 (arm_init_extra_frame_info): Update.
12305 (arm_pop_frame): Update.
12306 * frame.c (frame_pc_unwind): Update.
12307 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12308 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12309 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12310 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12311 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12312 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12313
7a25a7c1
AC
123142003-03-12 Andrew Cagney <cagney@redhat.com>
12315
12316 Eliminate the need for POP_FRAME.
12317 * frame.c (do_frame_unwind_register): New function.
12318 (frame_pop): When no POP_FRAME, pop the frame using register
12319 unwind and a scratch regcache.
12320 (frame_saved_regs_pop): Delete function.
12321 (trad_frame_unwinder): Update.
12322 * d10v-tdep.c (d10v_frame_pop): Delete function.
12323 (d10v_frame_unwind): Update.
12324 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12325 (sentinel_frame_unwinder): Update.
12326 * dummy-frame.c (dummy_frame_pop): Delete function.
12327 (dummy_frame_unwind): Update.
12328 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12329 (struct frame_unwind): Update.
12330
2f38ef89
KB
123312003-03-11 Kevin Buettner <kevinb@redhat.com>
12332
12333 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12334 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12335 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12336 Do range checks on register number obtained from debugging info.
12337 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12338 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12339 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12340 mapping function.
12341 (do_fp_register_row): Fix typo which caused double type to be
12342 used when attempting to unpack a float.
12343
552f4abf
JB
123442003-03-11 J. Brobecker <brobecker@gnat.com>
12345
12346 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12347
e0d2ae16
AC
123482003-03-11 Andrew Cagney <cagney@redhat.com>
12349
12350 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12351 frame. Problem found by Corinna Vinschen.
12352
ddbfdd06
PM
123532003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12354
12355 * doublest.c (floatformat_from_length): Accept also
12356 the real size of 'long double' type.
12357
088b2ddc 123582003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12359
088b2ddc 12360 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12361 * breakpoint.c (bpstat_copy): Copy the command lines as well
12362 as the old value, to match what is freed in bpstat_clear.
12363
f56f77c1
DC
123642003-03-10 David Carlton <carlton@math.stanford.edu>
12365
12366 * minsyms.c (add_minsym_to_hash_table): Replace
12367 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12368 (compare_minimal_symbols, compact_minimal_symbols)
12369 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12370 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12371 of DEPRECATED_SYMBOL_MATCHES_NAME.
12372 (lookup_minimal_symbol_solib_trampoline): Ditto.
12373
5602984a
AC
123742003-03-10 Andrew Cagney <cagney@redhat.com>
12375
12376 * regcache.h (regcache_cooked_read_ftype): Define.
12377 (regcache_save, regcache_restore): Add a cooked_read parameter.
12378 * regcache.c (regcache_save, regcache_restore): Update.
12379 (do_cooked_read): New function.
12380 (regcache_cpy): Pass do_cooked_read to regcache_save and
12381 regcache_restore.
12382
8bedc050
AC
123832003-03-10 Andrew Cagney <cagney@redhat.com>
12384
12385 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12386 * gdbarch.h, gdbarch.c: Re-generate.
12387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12388 * x86-64-tdep.h: Update.
12389 * x86-64-tdep.c (x86_64_init_abi): Update.
12390 * v850-tdep.c (v850_gdbarch_init): Update.
12391 * sparc-tdep.c (sparc_gdbarch_init): Update.
12392 * sh-tdep.c (sh_gdbarch_init): Update.
12393 * s390-tdep.c (s390_gdbarch_init): Update.
12394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12395 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12396 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12397 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12398 * mips-tdep.c (mips_gdbarch_init): Update.
12399 * mcore-tdep.c (mcore_gdbarch_init): Update.
12400 * m68k-tdep.c (m68k_gdbarch_init): Update.
12401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12402 * ia64-tdep.c (ia64_gdbarch_init): Update.
12403 * i386-tdep.c (i386_gdbarch_init): Update.
12404 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12405 * hppa-tdep.c (hppa_gdbarch_init): Update.
12406 * h8300-tdep.c (h8300_gdbarch_init): Update.
12407 * frv-tdep.c (frv_gdbarch_init): Update.
12408 * cris-tdep.c (cris_gdbarch_init): Update.
12409 * avr-tdep.c (avr_gdbarch_init): Update.
12410 * arm-tdep.c (arm_gdbarch_init): Update.
12411 * alpha-tdep.c (alpha_gdbarch_init): Update.
12412 * sh-tdep.c (sh_init_extra_frame_info): Update.
12413 (sh64_init_extra_frame_info): Update.
12414 * ns32knbsd-nat.c (frame_num_args): Update.
12415 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12416 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12417 (xstormy16_frame_chain_valid): Update.
12418 * vax-tdep.c (vax_saved_pc_after_call): Update.
12419 * v850-tdep.c (v850_frame_chain): Update.
12420 (v850_pop_frame): Update.
12421 (v850_init_extra_frame_info): Update.
12422 * sparc-tdep.c (setup_arbitrary_frame): Update.
12423 * ns32k-tdep.c (umax_frame_num_args): Update.
12424 * s390-tdep.c (s390_pop_frame_regular): Update.
12425 * mn10300-tdep.c (mn10300_frame_chain): Update.
12426 (mn10300_pop_frame_regular): Update.
12427 (mn10300_init_extra_frame_info): Update.
12428 * mips-tdep.c (mips_init_frame_pc_first): Update.
12429 (mips_frame_chain): Update.
12430 (mips_pop_frame): Update.
12431 * mcore-tdep.c (mcore_frame_chain): Update.
12432 (mcore_pop_frame): Update.
12433 (mcore_init_extra_frame_info): Update.
12434 * arch-utils.c (init_frame_pc_default): Update.
12435 * m68k-tdep.c (isi_frame_num_args): Update.
12436 (delta68_frame_num_args): Update.
12437 (news_frame_num_args): Update.
12438 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12439 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12440 (alpha_frame_chain): Update.
12441 (alpha_pop_frame): Update.
12442 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12443 (hppa_init_extra_frame_info): Update.
12444 (hppa_frame_chain): Update.
12445 (hppa_frame_chain_valid): Update.
12446 * cris-tdep.c (cris_init_extra_frame_info): Update.
12447 * avr-tdep.c (avr_init_extra_frame_info): Update.
12448 * arm-tdep.c (arm_frame_chain_valid): Update.
12449 (arm_init_extra_frame_info): Update.
12450 (arm_pop_frame): Update.
12451 * frame.c (frame_pc_unwind): Update.
12452 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12453 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12454 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12455 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12456 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12457 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12458
12cc2063
AC
124592003-03-10 Andrew Cagney <cagney@redhat.com>
12460
12461 * gdbarch.sh (gdbarch_unwind_pc): New method.
12462 * gdbarch.h, gdbarch.c: Regenerate.
12463 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12464 but use read_pc and FRAME_SAVED_PC as fall backs.
12465 (frame_saved_regs_pc_unwind): Delete function.
12466 (trad_frame_unwinder): Update.
12467 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12468 (struct frame_unwind): Update.
12469 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12470 (dummy_frame_unwind): Update.
12471 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12472 (sentinel_frame_unwinder): Update.
12473 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12474 (d10v_frame_unwind): Update.
12475 (d10v_unwind_pc): New function.
12476 (d10v_gdbarch_init): Set unwind_pc.
12477
ef840a37
AC
124782003-03-10 Andrew Cagney <cagney@redhat.com>
12479
a2ce2e56
AC
12480 * gdbarch.h: Re-generate.
12481
ef840a37
AC
12482 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12483 PC.
12484 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12485 the PC register.
12486
08f3424b
MK
124872003-03-08 Mark Kettenis <kettenis@gnu.org>
12488
12489 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12490
1248ede2
AC
124912003-03-08 Andrew Cagney <cagney@redhat.com>
12492
12493 * cli-out.c: Update copyright.
12494 (cli_out_data): Define typedef. Use instead of ui_out_data.
12495
f49bacc8
AC
124962003-03-08 Andrew Cagney <cagney@redhat.com>
12497
12498 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12499 the result.
12500
9b05f993
AC
125012003-03-07 Andrew Cagney <cagney@redhat.com>
12502
12503 * gdbarch.sh: Don't generate two macro definitions when an
12504 undefined macro taking no arguments.
12505 * gdbarch.h: Regenerate.
8ffd9b1b 12506
166f4c7b
ML
125072002-03-07 Michal Ludvig <mludvig@suse.cz>
12508
12509 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12510 (x86_64_unwind_dummy_id): New functions.
12511 (x86_64_init_abi): Register these two new functions.
12512
6d686a84
ML
125132003-03-07 Michal Ludvig <mludvig@suse.cz>
12514
12515 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12516 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12517 separate function.
12518 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12519
6314f104
AC
125202003-03-05 Andrew Cagney <cagney@redhat.com>
12521
12522 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12523 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12524 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12525 to use unwind_dummy_id when a dummy frame.
12526 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12527 predicate.
12528 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12529
ceea5145
AC
125302003-03-05 Andrew Cagney <cagney@redhat.com>
12531
12532 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12533 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12534 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12535 values.
12536
0d843116
AC
125372003-03-05 Andrew Cagney <cagney@redhat.com>
12538
12539 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12540 (struct d10v_unwind_cache): Delete field "frameless". Replace
12541 "next_addr" with "sp_offset". Add "r11_offset".
12542 (d10v_frame_unwind_cache): Update.
12543 (prologue_find_regs): Update. When "mv r11, sp", save the
12544 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12545 RN was saved in r11_offset.
12546
b2579786
AC
125472003-03-05 Andrew Cagney <cagney@redhat.com>
12548
12549 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12550 cached PC value in the next frame.
12551
218e5956
AC
125522003-03-05 Andrew Cagney <cagney@redhat.com>
12553
12554 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12555 "id_unwind_cache" with "id".
12556 (frame_id_unwind): Delete declaration.
12557 * frame.c (frame_id_unwind): Delete function.
12558 (get_prev_frame): Call the frame id unwind method directly. Store
12559 the returned next frame's ID value in NEXT_FRAME. Note that there
12560 is a problem with the wrong unwind ID being called with the wrong
12561 unwind cache.
12562
ed363b1b
DJ
125632003-03-05 Daniel Jacobowitz <drow@mvista.com>
12564
12565 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12566
fe1f4a5e
DJ
125672003-03-05 James Ingham <jingham@apple.com>
12568 Daniel Jacobowitz <drow@mvista.com>
12569
12570 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12571 (auto_cp_abi): New variable.
12572 (current_cp_abi, num_cp_abis): Make static.
12573 (CP_ABI_MAX): Define.
12574 (cp_abis): Turn into an array.
12575 (value_virtual_fn_field): Fix formatting.
12576 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12577 takes a pointer.
12578 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12579 (list_cp_abis, _initialize_cp_abi): New functions.
12580 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12581 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12582 switch_to_cp_abi. Update prototype for register_cp_abi.
12583 * Makefile.in (cp-abi.o): Update dependencies.
12584 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12585 instead of switch_to_cp_abi.
12586 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12587 register_cp_abi.
12588 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12589 register_cp_abi.
12590 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12591
e4adbba9
DJ
125922003-03-05 Daniel Jacobowitz <drow@mvista.com>
12593
12594 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12595 * dwarf2loc.c: Include "regcache.h".
12596 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12597 register_size.
12598 * Makefile.in (dwarf2loc.o): Update dependencies.
12599
91ccbfc1
TR
126002003-03-04 Theodore A. Roth <troth@openavr.org>
12601
12602 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12603 number of io registers reported by remote target is not a multiple of
12604 step.
12605
3d4e8fd2
DC
126062003-03-04 David Carlton <carlton@math.stanford.edu>
12607
12608 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12609 (lookup_symbol_aux_psymtabs): Update call to
12610 lookup_partial_symbol.
12611 (lookup_transparent_type, find_main_psymtab)
12612 (make_symbol_overload_list): Ditto.
12613
ed42d87b
KH
126142003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12615
12616 * MAINTAINERS (Write after approval): Update my email address.
12617
a0ed5532
AC
126182003-03-03 Andrew Cagney <cagney@redhat.com>
12619
12620 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12621 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12622 predicate. Replace MAX_REGISTER_RAW_SIZE.
12623 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12624 MAX_REGISTER_VIRTUAL_SIZE.
12625 * regcache.c (legacy_max_register_raw_size): New function.
12626 (legacy_max_register_virtual_size): New function.
12627 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12628 (MAX_REGISTER_RAW_SIZE): Define.
12629 (legacy_max_register_raw_size): Declare.
12630 (legacy_max_register_virtual_size): Declare.
12631 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12632 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12633 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12634 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12635 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12636 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12637 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12638 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12639 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12641 * vax-tdep.c (vax_gdbarch_init): Update.
12642 * v850-tdep.c (v850_gdbarch_init): Update.
12643 * sparc-tdep.c (sparc_gdbarch_init): Update.
12644 * sh-tdep.c (sh_gdbarch_init): Update.
12645 * s390-tdep.c (s390_gdbarch_init): Update.
12646 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12647 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12648 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12649 * mips-tdep.c (mips_gdbarch_init): Update.
12650 * mcore-tdep.c (mcore_gdbarch_init): Update.
12651 * m68k-tdep.c (m68k_gdbarch_init): Update.
12652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12653 * ia64-tdep.c (ia64_gdbarch_init): Update.
12654 * i386-tdep.c (i386_gdbarch_init): Update.
12655 * hppa-tdep.c (hppa_gdbarch_init): Update.
12656 * h8300-tdep.c (h8300_gdbarch_init): Update.
12657 * frv-tdep.c (frv_gdbarch_init): Update.
12658 * cris-tdep.c (cris_gdbarch_init): Update.
12659 * avr-tdep.c (avr_gdbarch_init): Update.
12660 * arm-tdep.c (arm_gdbarch_init): Update.
12661 * alpha-tdep.c (alpha_gdbarch_init): Update.
12662 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12663 max_register_raw_size or max_register_virtual_size.
12664
8e437497
DC
126652003-03-03 David Carlton <carlton@math.stanford.edu>
12666
12667 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12668 SYMBOL_MATCHES_NAME, add comment.
12669 (SYMBOL_MATCHES_NATURAL_NAME): New.
12670 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12671 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12672 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12673 * symtab.c (lookup_partial_symbol): Use
12674 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12675 unhelpful comment.
12676 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12677 SYMBOL_MATCHES_NAME.
12678 Fix for PR c++/33.
12679
25120b0d
DC
126802003-03-03 David Carlton <carlton@math.stanford.edu>
12681
12682 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12683 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12684 by regexp matching against SYMBOL_NATURAL_NAME.
12685
78a11fb4
DC
126862003-03-03 David Carlton <carlton@math.stanford.edu>
12687
12688 * linespec.c (find_method): Extract code into collect_methods.
12689 (collect_methods): New.
12690
645dd519
MK
126912003-03-02 Mark Kettenis <kettenis@gnu.org>
12692
b4700d91
MK
12693 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12694 get_frame_base.
12695
645dd519
MK
12696 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12697 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12698
0aa7e1aa
SC
126992003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12700
8ffd9b1b 12701 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12702 and not regnum when summing the size of all registers up to regnum.
12703
f30ee0bc
AC
127042003-03-01 Andrew Cagney <cagney@redhat.com>
12705
12706 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12707 FRAME_INIT_SAVED_REGS.
12708 * gdbarch.h, gdbarch.c: Regenerate.
12709 * stack.c (frame_info): Update.
12710 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12711 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12712 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12713 * ns32k-tdep.c (ns32k_pop_frame): Update.
12714 * mips-tdep.c (mips_pop_frame): Update.
12715 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12716 * ia64-tdep.c (ia64_frame_chain): Update.
12717 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12718 (ia64_frameless_function_invocation): Update.
12719 (ia64_init_extra_frame_info): Update.
12720 (ia64_pop_frame_regular): Update.
12721 * frame.h (struct frame_info): Update comment.
12722 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12723 * frame.c (frame_saved_regs_register_unwind): Update.
12724 (frame_saved_regs_register_unwind): Update.
12725 (deprecated_generic_get_saved_register): Update.
12726 * cris-tdep.c: Update comment.
12727 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12728 Rename macro.
12729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12730 * x86-64-tdep.c (x86_64_init_abi): Update.
12731 * vax-tdep.c (vax_gdbarch_init): Update.
12732 * v850-tdep.c (v850_gdbarch_init): Update.
12733 * sparc-tdep.c (sparc_gdbarch_init): Update.
12734 * sh-tdep.c (sh_gdbarch_init): Update.
12735 * s390-tdep.c (s390_gdbarch_init): Update.
12736 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12737 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12738 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12739 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12740 * mips-tdep.c (mips_gdbarch_init): Update.
12741 * mcore-tdep.c (mcore_gdbarch_init): Update.
12742 * m68k-tdep.c (m68k_gdbarch_init): Update.
12743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12744 * ia64-tdep.c (ia64_gdbarch_init): Update.
12745 * i386-tdep.c (i386_gdbarch_init): Update.
12746 * frv-tdep.c (frv_gdbarch_init): Update.
12747 * avr-tdep.c (avr_gdbarch_init): Update.
12748 * arm-tdep.c (arm_gdbarch_init): Update.
12749 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12750
42fa7c0f
AC
127512003-03-01 Andrew Cagney <cagney@redhat.com>
12752
12753 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12754 option enum and switch. When no windows, set the interpreter to
12755 INTERP_CONSOLE.
8ffd9b1b 12756
49c7e338
AC
127572003-03-01 Andrew Cagney <cagney@redhat.com>
12758
12759 * main.c (captured_main): Replace magic option characters with an
12760 enum.
12761
e9582e71
AC
127622003-03-01 Andrew Cagney <cagney@redhat.com>
12763
12764 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12765 INIT_EXTRA_FRAME_INFO.
12766 * gdbarch.h, gdbarch.c: Regenerate.
12767 * arm-tdep.c: Update comments.
12768 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12769 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12770 * frame.h, avr-tdep.c: Ditto.
12771 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12772 (create_new_frame, legacy_get_prev_frame): Ditto.
12773 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12774 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12776 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12777 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12778 * v850-tdep.c (v850_gdbarch_init): Ditto.
12779 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12780 * sh-tdep.c (sh_gdbarch_init): Ditto.
12781 * s390-tdep.c (s390_gdbarch_init): Ditto.
12782 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12783 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12784 * mips-tdep.c (mips_gdbarch_init): Ditto.
12785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12787 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12788 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12789 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12790 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12791 * frv-tdep.c (frv_gdbarch_init): Ditto.
12792 * cris-tdep.c (cris_gdbarch_init): Ditto.
12793 * avr-tdep.c (avr_gdbarch_init): Ditto.
12794 * arm-tdep.c (arm_gdbarch_init): Ditto.
12795 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12796 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12797
35cac7cf
AC
127982003-03-01 Andrew Cagney <cagney@redhat.com>
12799
12800 * gdbarch.sh (register_type): New function with predicate.
12801 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12802 * gdbarch.h, gdbarch.c: Re-generate.
12803 * arch-utils.c (generic_register_byte): Use generic_register_size.
12804 (generic_register_size): When available, use
12805 gdbarch_register_type.
12806 * regcache.c (init_regcache_descr): When available, initialize the
12807 register type array using gdbarch_register_type. If the
12808 architecture supplies gdbarch_register_type, do not use the legacy
12809 regcache layout.
12810 * d10v-tdep.c (d10v_register_type): Replace
12811 d10v_register_virtual_type.
12812 (d10v_gdbarch_init): Set register_type instead of
12813 register_virtual_type.
12814
7b83296f
AC
128152003-03-01 Andrew Cagney <cagney@redhat.com>
12816
12817 * Makefile.in (ax-gdb.o): Update dependencies.
12818 * ax-gdb.c: Include "regcache.h".
12819 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12820 * findvar.c (value_of_register): Ditto.
12821 * infcmd.c (default_print_registers_info): Ditto.
12822
eadc1c87
MK
128232003-03-01 Mark Kettenis <kettenis@gnu.org>
12824
12825 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12826 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12827
14143612
MK
128282003-03-01 Mark Kettenis <kettenis@gnu.org>
12829
12830 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12831 of STREQ.
12832
a55cc764
DJ
128332003-02-28 Daniel Jacobowitz <drow@mvista.com>
12834
12835 * Makefile.in (dwarf2loc.o): Update dependencies.
12836 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12837 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12838 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12839 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12840 (locexpr_tracepoint_var_ref): New function.
12841 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12842
08a617da
AC
128432003-02-28 Andrew Cagney <cagney@redhat.com>
12844
12845 * regcache.c (register_size): New function.
12846 * regcache.h (register_size): Declare
12847 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12848 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12849
4224873a
DC
128502003-02-28 David Carlton <carlton@math.stanford.edu>
12851
12852 * linespec.c (decode_compound): Extract code into find_method.
12853 (find_method): New.
12854
ccdc5d7f
JB
128552003-02-28 J. Brobecker <brobecker@gnat.com>
12856
12857 * Makefile.in: Add rules to build and link in observer.o.
12858
974e8ced
JB
128592003-02-27 J. Brobecker <brobecker@gnat.com>
12860
12861 * observer.c: Minor comments edits.
12862
7a28f973
JB
128632003-02-27 J. Brobecker <brobecker@gnat.com>
12864
12865 * observer.h, observer.c: New file.
12866
27cddce2
AC
128672003-02-27 Andrew Cagney <cagney@redhat.com>
12868
12869 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12870
b94a41a1
SC
128712003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12872
12873 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12874 (M6812_OP_STS_EXT): Likewise.
12875 (m6811_prologue): Use the above to recognize prologue.
12876 (m6812_prologue): Likewise.
12877
c8be8951
DC
128782003-02-27 David Carlton <carlton@math.stanford.edu>
12879
12880 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12881 SYMBOL_PRINT_NAME.
12882 (compare_psymbols): Ditto.
12883 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12884
d05bb1fc
MS
128852003-02-27 Michael Snyder <msnyder@redhat.com>
12886
4e845cd3
MS
12887 * f-lang.c (build_fortran_types): New function.
12888 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12889 * doublest.c (extract_floating): Fix warning text.
12890
f3824013
AC
128912003-02-27 Andrew Cagney <cagney@redhat.com>
12892
12893 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12894 predicate. Replaces PUSH_DUMMY_FRAME.
12895 * gdbarch.h, gdbarch.c: Regnerate.
12896 * valops.c (hand_function_call): Update. Call
12897 generic_push_dummy_frame directly.
12898 * vax-tdep.c (vax_gdbarch_init): Update.
12899 * sparc-tdep.c (sparc_gdbarch_init): Update.
12900 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12901 * m68k-tdep.c (m68k_gdbarch_init): Update.
12902 * hppa-tdep.c (hppa_gdbarch_init): Update.
12903 * alpha-tdep.c (alpha_gdbarch_init): Update.
12904 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12905 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12906 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12908 push_dummy_frame to generic_push_dummy_frame.
12909 * v850-tdep.c (v850_gdbarch_init): Ditto.
12910 * sh-tdep.c (sh_gdbarch_init): Ditto.
12911 * s390-tdep.c (s390_gdbarch_init): Ditto.
12912 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12913 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12914 * mips-tdep.c (mips_gdbarch_init): Ditto.
12915 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12917 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12918 * i386-tdep.c (i386_gdbarch_init): Ditto.
12919 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12920 * frv-tdep.c (frv_gdbarch_init): Ditto.
12921 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12922 * cris-tdep.c (cris_gdbarch_init): Ditto.
12923 * avr-tdep.c (avr_gdbarch_init): Ditto.
12924 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12925
ad188201
KB
129262003-02-26 Kevin Buettner <kevinb@redhat.com>
12927
12928 * mips-tdep.c (show_mips_abi): New function.
12929 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12930 command ``show mips abi''.
12931
6b37567a 129322003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12933
6b37567a 12934 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12935 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12936 more sline entries have been seen for the function.
12937
d3e0a5bf
MC
129382003-02-26 Michael Chastain <mec@shout.net>
12939
12940 * configure: Regenerate with autoconf 000227.
12941
18972eea
MC
129422003-02-26 Michael Chastain <mec@shout.net>
12943
12944 Close PR build/660.
12945 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12946 for old libc5/glibc.
12947 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12948
0bbde931
KW
129492003-02-26 Kris Warkentin <kewarken@qnx.com>
12950
12951 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12952 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12953
27ca5dad
MC
129542003-02-26 Michael Chastain <mec@shout.net>
12955
12956 * configure.in: New variable HAVE_UINTPTR_T.
12957 * configure, config.in: Regenerated.
12958
6f88d630
DJ
129592003-02-26 Daniel Jacobowitz <drow@mvista.com>
12960
12961 Fix PR build/1097.
12962 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12963
b14185ce
AC
129642003-02-25 Andrew Cagney <cagney@redhat.com>
12965
12966 * frame.c (get_prev_frame): Add comment on check for
12967 inside_entry_func. Only check for inside_entry_file when not a
12968 dummy and not a sentinel. Check that the new frame is not inner
12969 to the old frame.
12970
ac2bd0a9
AC
129712003-02-25 Andrew Cagney <cagney@redhat.com>
12972
12973 * frame.c (frame_debug): New variable.
12974 (_initialize_frame): Add "set/show debug frame" command.
12975 (get_prev_frame): When frame_debug, print reason why unwind
12976 failed.
12977
b18a0fd2
MC
129782003-02-25 Michael Chastain <mec@shout.net>
12979
12980 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12981 to avoid uintptr_t definition problems.
12982
22abf04a
DC
129832003-02-25 David Carlton <carlton@math.stanford.edu>
12984
12985 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12986 (SYMBOL_LINKAGE_NAME): Ditto.
12987 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12988 SYMBOL_LINKAGE_NAME.
12989 (struct general_symbol_info): Expand comment.
12990 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12991 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12992 (SYMBOL_MATCHES_REGEXP): Ditto.
12993 * symtab.c (symbol_natural_name): New function.
12994 * objfiles.h: Replace all uses of SYMBOL_NAME by
12995 DEPRECATED_SYMBOL_NAME.
12996 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12997 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12998 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12999 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
13000 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
13001 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
13002 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
13003 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
13004 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
13005 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
13006 * ada-exp.y: Ditto.
13007 * ada-exp.y: Update copyright.
13008 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
13009 * cp-valprint.c: Ditto.
13010
1a5848f6
JJ
130112003-02-25 Jeff Johnston <jjohnstn@redhat.com>
13012
13013 * infptrace.c (detach): Do not flag error if ptrace detach fails
13014 and errno is set to ESRCH.
13015
7343d46a
AC
130162003-02-24 Andrew Cagney <cagney@redhat.com>
13017
13018 * infptrace.c (udot_info): Change type of udot_off to long. Use
13019 paddr when printing udot_off's value.
13020
49fa1dc2
DC
130212003-02-24 David Carlton <carlton@math.stanford.edu>
13022
13023 * symtab.c (make_symbol_overload_list): Only read in partial
13024 symtabs containing a matching partial symbol.
13025
0fe19209
DC
130262003-02-24 David Carlton <carlton@math.stanford.edu>
13027
13028 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
13029 do the comparison, not strcmp.
13030 * symfile.c (compare_psymbols): Ditto.
13031 * defs.h: Declare strcmp_iw_ordered.
13032 * utils.c (strcmp_iw_ordered): New function.
13033
8e3ee7b5
JB
130342003-02-24 Jim Blandy <jimb@redhat.com>
13035
13036 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
13037 support, shared libs): Remove my name from here, to better reflect
13038 reality.
13039
7df1a324
KW
130402003-02-24 Kris Warkentin <kewarken@qnx.com>
13041
13042 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
13043 (target_ops): Add to_have_continuable_watchpoint.
13044 * target.c (update_current_target): Add INHERIT line for
13045 to_have_continuable_watchpoint.
13046 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
13047 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
13048 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
13049 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
13050
d1c76907
EZ
130512003-02-24 Elena Zannoni <ezannoni@redhat.com>
13052
13053 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
13054 maintainership.
13055
2610b0bf
KW
130562003-02-24 Kris Warkentin <kewarken@qnx.com>
13057
f46169db
KW
13058 * solib.c (solib_open): Call target defined search function after
13059 failing with solib-search-path.
13060 * solist.h (target_so_ops): Add find_and_open_solib function hook and
13061 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 13062
9a3c34fe
KW
130632003-02-24 Kris Warkentin <kewarken@qnx.com>
13064
f46169db 13065 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 13066
2417dd25
SC
130672003-02-23 Stephane Carrez <stcarrez@nerim.fr>
13068
13069 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
13070
b631436b
SC
130712003-02-22 Stephane Carrez <stcarrez@nerim.fr>
13072
13073 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
13074 (m68hc11_add_reggroups): New function.
13075 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
13076 (m68hc11_gdbarch_init): Install the reggroups.
13077 (_initialize_m68hc11_tdep): Initialize them.
13078
0aa8c1e4
JW
130792003-02-21 James E Wilson <wilson@tuliptree.org>
13080
13081 * MAINTAINERS: Update my email address.
13082
50ceaba5
DC
130832003-02-21 David Carlton <carlton@math.stanford.edu>
13084
13085 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
13086
4c2df51b
DJ
130872003-02-21 Daniel Jacobowitz <drow@mvista.com>
13088
13089 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
13090 * symtab.h: Add opaque declarations of struct axs_value and
13091 struct agent_expr.
13092 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
13093 (struct location_funcs): New type.
13094 (struct symbol): Add "loc" to aux_value.
13095 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
13096 * dwarf2read.c: Include "dwarf2expr.h".
13097 (dwarf2_symbol_mark_computed): New function.
13098 (read_func_scope): Use it.
13099 (var_decode_location): New function.
13100 (new_symbol): Use it.
13101 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
13102
13103 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
13104 (dwarf2expr_h, dwarf2loc_h): New variables.
13105 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
13106 (dwarf2expr.o, dwarf2loc.o): New rules.
13107 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
13108 * buildsym.c (finish_block): Handle LOC_COMPUTED and
13109 LOC_COMPUTED_ARG.
13110 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
13111 * m2-exp.y (yylex): Likewise.
13112 * printcmd.c (address_info, print_frame_args): Likewise.
13113 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13114 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13115 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13116 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13117 * symtab.c (lookup_block_symbol): Likewise.
13118
5784d15e
AF
131192003-02-20 Adam Fedor <fedor@gnu.org>
13120
13121 * symtab.h: Remove objc_specific struct
13122 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13123 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13124 Have language_objc use cplus_specific struct.
13125
d4cad8db
TT
131262003-02-20 Tom Tromey <tromey@redhat.com>
13127
13128 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13129 TYPE_NAME, when printing a String value. PR java/1075.
13130
2f9a90b4
AF
131312003-02-20 Adam Fedor <fedor@gnu.org>
13132
d38074a8 13133 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 13134 * objc-lang.c (find_methods): Make static.
2f9a90b4 13135
6f17862b
CF
131362003-02-20 Christopher Faylor <cgf@redhat.com>
13137
13138 * win32-nat.c (get_image_name): Check return value from
13139 ReadProcessMemory.
13140 (child_xfer_memory): Ditto.
13141
715d1656
AO
131422003-02-20 Alexandre Oliva <aoliva@redhat.com>
13143
13144 * configure.in (TARGET_SYSTEM_ROOT): Set default to
13145 ${exec_prefix}/${target_alias}/sys-root. Match explicit
13146 '${exec_prefix}' (in addition to the expansion thereof) as
13147 relocatable.
13148 * configure: Rebuilt.
13149
b1262a02
DC
131502003-02-20 David Carlton <carlton@math.stanford.edu>
13151
13152 * symtab.c (search_symbols): Revert the search_symbols part of my
13153 2002-12-23 patch. Add comment.
13154
7134143f
DJ
131552002-02-20 Daniel Jacobowitz <drow@mvista.com>
13156
13157 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13158 * dbxread.c (elfstab_build_psymtabs): Don't call
13159 install_minimal_symbols.
13160 (stabsect_build_psymtabs): Likewise.
13161 * elfread.c (elf_symfile_read): Call install_minimal_symbols
13162 earlier.
13163 * somread.c (som_symfile_read): Call install_minimal_symbols
13164 and do_cleanups earlier.
13165 * nlmread.c (nlm_symfile_read): Likewise.
13166 * mdebugread.c (elfmdebug_build_psymtabs): Call
13167 install_minimal_symbols and make appropriate cleanups.
13168
cf466558
KB
131692003-02-20 Kevin Buettner <kevinb@redhat.com>
13170
13171 * solib.c (reload_shared_libraries): New function.
13172 (_initialize_solib): Add callbacks for ``set solib-search-path''
13173 and ``set solib-absolute-prefix''.
13174
de5ad195
DC
131752003-02-20 David Carlton <carlton@math.stanford.edu>
13176
13177 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13178 expand comment.
13179 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13180 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13181 * ada-typeprint.c (ada_typedef_print): Ditto.
13182 * ax-gdb.c (gen_var_ref): Ditto.
13183 * breakpoint.c (print_one_breakpoint): Ditto.
13184 * buildsym.c (finish_block): Ditto.
13185 * c-valprint.c (c_val_print): Ditto.
13186 * expprint.c (print_subexp): Ditto.
13187 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
13188 * infcmd.c (jump_command): Ditto.
13189 * linespec.c (decode_line_2, decode_compound): Ditto.
13190 * maint.c (maintenance_translate_address): Ditto.
13191 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
13192 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13193 Ditto.
8ffd9b1b
AJ
13194 * p-valprint.c (pascal_val_print): Ditto.
13195 * stabsread.c (define_symbol): Ditto.
de5ad195 13196 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
13197 (print_frame_arg_vars, return_command): Ditto.
13198 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13199 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
13200 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13201 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
13202 (rbreak_command): Ditto.
13203 * tracepoint.c (tracepoints_info): Ditto.
13204 * typeprint.c (typedef_print): Ditto.
13205 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
13206 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13207 * ada-typeprint.c: Update Copyright.
13208 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13209 * tracepoint.c, cli/cli-cmds.c: Ditto.
13210
f796e4be
KB
132112003-02-20 Kevin Buettner <kevinb@redhat.com>
13212
13213 * frame.c (generic_unwind_get_saved_register): Make non-static.
13214 * frame.h (generic_unwind_get_saved_register): Declare.
13215 * mips-tdep.c (read_next_frame_reg): Fetch register from
13216 current regcache when frame is NULL.
13217 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13218 that must be NULL.
13219 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13220 instead of frame_register_unwind().
13221
836cc9f4
AC
132222003-02-20 Andrew Cagney <ac131313@redhat.com>
13223
13224 * remote-sim.c (gdbsim_insert_breakpoint)
13225 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13226 code.
13227
501eef12
AC
132282003-02-20 Andrew Cagney <ac131313@redhat.com>
13229
13230 * remote.c (_initialize_remote): Add commands "set/show remote
13231 hardware-watchpoint-limit" and "set/show remote
13232 hardware-breakpoint-limit".
13233 (remote_hw_watchpoint_limit): Initialize to -1.
13234 (remote_hw_breakpoint_limit): Ditto.
13235 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13236
1b6bc7e0
CF
132372003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13238
13239 * coff-pe-read.c: New file - support reading of minimal symbols from a
13240 portable executable using the export table.
13241 * coff-pe-read.h: New file.
13242 * coffread.c: Include coff-pe-read.h.
13243 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13244 debugging symbols found.
13245 * Makefile.in (SFILES): Add coff-pe-read.o.
13246 (coff_pe_read_h): Define.
13247 (COMMON_OBS): Add coff-pe-read.o.
13248 (coffread.o): Add coff_pe_read_h dependency.
13249 (coff-pe-read.o): New target.
13250
fe898f56
DC
132512003-02-19 David Carlton <carlton@math.stanford.edu>
13252
13253 * Makefile.in (SFILES): Add block.c.
13254 (block_h): New.
13255 (COMMON_OBS): Add block.o.
13256 (block.o): New.
13257 (x86-64-tdep.o): Add $(block_h).
13258 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13259 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13260 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13261 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13262 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13263 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13264 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13265 * value.h: Add opaque declaration for struct block.
13266 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13267 * ada-lang.h: Ditto.
13268 * x86-64-tdep.c: #include "block.h"
13269 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13270 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13271 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13272 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13273 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13274 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13275 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13276 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13277 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13278 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13279 * symtab.c (block_function): Ditto.
13280 (contained_in): Ditto.
13281 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13282 block.h. Add opaque declaration for struct block.
13283 * symtab.h: Move block_function and contained_in declarations to
13284 block.h. Add opaque declarations for struct block, struct
13285 blockvector.
13286 (struct block): Move to block.h.
13287 (struct blockvector): Ditto.
13288 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13289 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13290 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13291 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13292 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13293 Ditto.
13294 * block.c: New file.
13295 * block.h: New file.
13296
173345b5
TR
132972003-02-19 Theodore A. Roth <troth@openavr.org>
13298
13299 * avr-tdep.c (avr_extract_return_value): Remove function.
13300 (avr_store_return_value): Remove function.
13301 (avr_extract_struct_value_address): Remove function.
13302 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13303
338ef23d
AC
133042003-02-19 Andrew Cagney <ac131313@redhat.com>
13305
13306 * rs6000-tdep.c: Include "gdb_assert.h".
13307 (registers_e500): Add "acc" and "spefscr".
13308 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13309 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13310 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13311 really is "r0".
13312 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13313
5412f5f3
KS
133142003-02-18 Keith Seitz <keiths@redhat.com>
13315
13316 * Makefile.in: Add gdbtk-interps.c.
13317
881324eb
KB
133182003-02-18 Kevin Buettner <kevinb@redhat.com>
13319
13320 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13321 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13322
6a2f5abf
AC
133232003-02-18 Andrew Cagney <cagney@redhat.com>
13324
13325 * symtab.h (struct objfile): Add opaque declaration.
13326
54c7009d
EZ
133272003-02-18 Elena Zannoni <ezannoni@redhat.com>
13328
13329 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13330 * dbxread.c (process_one_symbol): Use last_function_start rather
13331 than function_start_offset to find the real beginning of the
13332 current function. The latter is just the text section offset on
13333 some systems, the former is always the real function start.
54c7009d 13334
7ee6d7eb
AC
133352003-02-17 Andrew Cagney <cagney@redhat.com>
13336
13337 * configure.in: Revert ${target} != ${host}.
13338
2846da9b
AC
133392003-02-17 Andrew Cagney <ac131313@redhat.com>
13340
13341 * configure.in (Makefile): Use the test ${target} != ${host},
13342 instead of the absence of the "nm.h" file, to determine of the
13343 configuration non-native.
13344 * configure: Regenerate.
8ffd9b1b 13345
3b27aeea
EZ
133462003-02-14 Elena Zannoni <ezannoni@redhat.com>
13347
fbe586ae 13348 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13349
13350 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13351 conditionalize tui_active test.
13352 (lookup_cmd_1): Ditto.
13353
b0b1c2c0
MK
133542003-02-14 Mark Kettenis <kettenis@gnu.org>
13355
13356 * configure.in: Add check for _etext.
13357 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13358 available.
13359 * config.in, configure: regenerated.
13360
8f05cde5
DJ
133612003-02-14 Daniel Jacobowitz <drow@mvista.com>
13362
13363 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13364
021e7609
AC
133652003-02-14 Andrew Cagney <ac131313@redhat.com>
13366
13367 * main.c (tui_version): Delete variable.
13368 (captured_main): When --tui, set interpreter_p to "tui" instead of
13369 enabling tui_version.
13370 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13371 tui_version.
13372 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13373 * cli/cli-cmds.c (disassemble_command): Ditto.
13374 * defs.h (tui_version): Delete declaration.
13375 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13376 (tui-interp.o): Add rules.
13377 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13378
e325dcec
CF
133792003-02-14 Christopher Faylor <cgf@redhat.com>
13380
36ffb041 13381 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13382 just-loaded dll.
13383
c4f90d87
JM
133842003-02-12 Jason Molenda (jmolenda@apple.com)
13385
fbe586ae
RH
13386 * symmisc.c (print_objfile_statistics): Include information about
13387 the number of psymtabs and symtabs in each object file.
c4f90d87 13388
e46e5ccd
KS
133892003-02-13 Keith R Seitz <keiths@redhat.com>
13390
13391 * main.h (struct captured_main_args): Add interpreter_p.
13392 * main.c (captured_main): Initialize interpreter_p from context.
13393 * gdb.c (main): Set interpreter_p argument.
13394 * Makefile.in (gdb.o): Add dependency for interps.h.
13395
fe97fe9c
AC
133962003-02-12 Andrew Cagney <ac131313@redhat.com>
13397
13398 * event-top.c (cli_command_loop): Delete declaration.
13399 (_initialize_event_loop): Delete function setting event_loop_hook.
13400 * event-top.h (cli_command_loop): Declare. Update copyright.
13401 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13402 * interps.c (current_interp_command_loop): When event_loop_p, call
13403 cli_command_loop.
13404
1cdac4ef
AC
134052003-02-12 Andrew Cagney <ac131313@redhat.com>
13406
13407 * interps.h (interp_command_loop_ftype): Change return type to
13408 void.
13409
48037ead
ML
134102003-02-12 Michal Ludvig <mludvig@suse.cz>
13411
13412 * x86-64-tdep.c (x86_64_extract_return_value)
13413 (x86_64_store_return_value): Use regcache instead of regbuf.
13414 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13415 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13416
033afc63
AC
134172003-02-11 Andrew Cagney <ac131313@redhat.com>
13418
13419 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13420 * aclocal.m4: Regenerate.
13421 * configure: Regenerate.
13422
13423 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13424 TCL_LD_SEARCH_FLAGS.
13425
40d02bca
ML
134262003-02-10 Michal Ludvig <mludvig@suse.cz>
13427
13428 * dwarf2cfi.c: Reindented.
13429
11308a41
AC
134302003-02-09 Andrew Cagney <ac131313@redhat.com>
13431
13432 * interps.c (clear_interpreter_hooks): Convert function definition
13433 to ISO C.
13434
e1c1c0f6
DC
134352003-02-07 David Carlton <carlton@math.stanford.edu>
13436
13437 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13438
ab5d3da6
KB
134392003-02-07 Kevin Buettner <kevinb@redhat.com>
13440
13441 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13442 (struct type): ...to here.
13443 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13444 field.
13445 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13446 (replace_type): Set length on all type variants for a given type.
13447
b8a92b82
AC
134482003-02-07 Andrew Cagney <ac131313@redhat.com>
13449
13450 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13451 <sys/stat.h>.
13452 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13453
5cb316ef
AC
134542003-02-06 Andrew Cagney <ac131313@redhat.com>
13455
2555fe1a
AC
13456 * Makefile.in (symm-nat.o): Update dependencies.
13457 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13458 (lynx-nat.o, ia64-linux-nat.): Ditto.
13459 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13460 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13461 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13462
44270758
AC
13463 * Makefile.in (inflow_h): Define.
13464 (procfs.o, inflow.o, procfs.o): Update dependencies.
13465 * inftarg.c (child_stop): Delete extern declaration of
13466 inferior_process_group. Include "inflow.h".
13467 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13468 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13469 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13470 (our_process_group, inferior_process_group): Extern declarations.
13471
df8f7274
AC
13472 * procfs.c: Include "gdb_assert.h".
13473
5cb316ef
AC
13474 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13475 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13476 * jv-typeprint.c (java_type_print_base): Ditto.
13477 * typeprint.c (typedef_print): Eliminate STREQ.
13478 * cli/cli-script.c (define_command, define_command): Ditto.
13479 * main.c (captured_main): Ditto.
13480 * values.c (lookup_internalvar): Ditto.
13481 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13482 within `if' conditional.
13483 * linespec.c (decode_line_2): Ditto.
13484 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13485 (bfd_openw_with_cleanup): Ditto.
13486
2a28ccea
MK
134872003-02-07 Mark Kettenis <kettenis@gnu.org>
13488
13489 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13490 legacy_extract_return_value and store_return_value to
13491 legacy_return_value.
13492
786b8124
CF
134932003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13494
13495 * win32-nat.c (get_relocated_section_addrs): New function. Find
13496 section load addresses for symbol handling in relocated DLLs.
13497 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13498
b871e4ec
FF
134992003-02-05 Fred Fish <fnf@intrinsity.com>
13500
13501 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13502 '=' and '!='.
13503 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13504 with '&' and '=='.
13505 (angel_RDI_info): Ditto.
13506 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13507 with '&' and '!='.
13508 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13509
4389a95a 135102003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13511 Keith Seitz <keiths@redhat.com>
13512 Elena Zannoni <ezannoni@redhat.com>
13513 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13514
13515 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13516 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13517 (SUBDIR_MI_OBS): Add "mi-interp.o".
13518 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13519 (SFILES): Add "interps.c".
13520 (COMMON_OBS): Add "interps.o".
13521 (interps_h, mi_main_h): Define.
13522 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13523 (mi-main.o, main.o, event-top.o): Update dependencies.
13524 * cli/cli-interp.c: New file.
13525 * interps.h, interps.c: New files.
13526 * top.c: (gdb_init): Don't install the default interpreter, handed
13527 by captured_main.
13528 * main.c: Include "interps.h".
13529 (interpreter_p): Note that it should malloc'ed.
13530 (captured_command_loop): Call current_interp_command_loop.
13531 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13532 xfree and xstrdup when updating interpreter_p. Install the
13533 default interpreter. Add hack to stop mi1's copyright notice
13534 being encoded.
13535 * event-top.h (gdb_setup_readline): Declare.
13536 (gdb_disable_readline): Declare.
13537 * event-top.c: Include "interps.h".
13538 (display_gdb_prompt): Call current_interp_display_prompt_p.
13539 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13540 gdb_stdlog, and gdb_stdtarg.
13541 (_initialize_event_loop): Don't call gdb_setup_readline.
13542 * cli-out.c (cli_out_set_stream): New function.
13543 * cli-out.h (cli_out_set_stream): Declare.
13544
ff3b5810
MK
135452003-02-06 Mark Kettenis <kettenis@gnu.org>
13546
13547 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13548 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13549 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13550 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13551 config/i386/i386v42mp.mt: Removed.
13552
5b729aa5
MK
135532003-02-05 Mark Kettenis <kettenis@gnu.org>
13554
13555 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13556 GDB_OSABI_SOLARIS.
13557
8cc15142
MC
135582003-02-05 Michael Chastain <mec@shout.net>
13559
13560 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13561 2.12.1 and earlier versions.
13562
5aa5d4b9
AC
135632003-02-05 Andrew Cagney <ac131313@redhat.com>
13564
13565 Remove orphaned hosts, targets and files.
13566 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13567 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13568 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13569 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13570 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13571 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13572 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13573 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13574 * config/sparc/tm-sp64sim.h: Delete.
13575 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13576 hosts.
13577 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13578 mips*-dec-mach3* targets.
13579
b68767c1
MC
135802003-02-04 Michael Chastain <mec@shout.net>
13581
13582 * NEWS: Fix typo: sepcifying -> specifying.
13583
5ae7ca1d
MC
135842003-02-04 Michael Chastain <mec@shout.net>
13585
13586 * dwarfread.c: Add documentation on the state of dwarf-1,
13587 looking towards obsoletion.
13588
d08a4280
MC
135892003-02-03 Michael Chastain <mec@shout.net>
13590
13591 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13592 gdb/testsuite/gdb.c++/pr-1023.exp.
13593
e9be73e4
AC
135942003-02-04 Andrew Cagney <ac131313@redhat.com>
13595
13596 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13597 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13598
13599 * utils.c (init_page_info): Delete reference to MPW in comments.
13600 * main.c (captured_main): Delete #ifdef MPW.
13601
05d57f6f
AC
136022003-02-04 Andrew Cagney <ac131313@redhat.com>
13603
8ffd9b1b 13604 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13605 * monitor.c (monitor_expect): Obsolete reference to m32r.
13606 * configure.tgt: Mark m32r-*-elf* as obsolete.
13607 * MAINTAINERS: Mark m32k as obsolete.
13608 * m32r-rom.c: Obsolete file.
13609 * config/m32r/m32r.mt: Obsolete file.
13610 * config/m32r/tm-m32r.h: Obsolete file.
13611 * m32r-stub.c: Obsolete file.
13612 * m32r-tdep.c: Obsolete file.
13613
8b0e5691
AC
136142003-02-04 Andrew Cagney <ac131313@redhat.com>
13615
13616 * NEWS: Mention that the z8k-zilog-none is obsolete.
13617 * MAINTAINERS: Mark z8k as obsolete.
13618 * configure.tgt: Obsolete the z8k-*-coff* target.
13619 * config/z8k/z8k.mt: Obsolete file.
13620 * config/z8k/tm-z8k.h: Obsolete file.
13621 * z8k-tdep.c: Obsolete file.
13622
67f16606
AC
136232003-02-04 Andrew Cagney <ac131313@redhat.com>
13624
13625 * NEWS: Mention that the mn10200-elf is obsolete.
13626 * configure.tgt: Obsolete mn10200-*-* target.
13627 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13628 mention that the mn10200 is obsolete.
13629 * breakpoint.h: Ditto.
13630 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13631 * config/mn10200/mn10200.mt: Obsolete file.
13632 * config/mn10200/tm-mn10200.h: Obsolete file.
13633 * mn10200-tdep.c: Obsolete file.
13634
fd2299bd
AC
136352003-02-04 Andrew Cagney <ac131313@redhat.com>
13636
13637 * MAINTAINERS: Mark h8500 as obsolete.
13638 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13639 * findvar.c (value_from_register): Ditto.
13640 * h8500-tdep.c: Mark file as obsolete.
13641 * config/h8500/h8500.mt: Ditto.
13642 * config/h8500/tm-h8500.h: Ditto.
13643 * NEWS: Mention that h8500 is obsolete.
13644
eb9a305d
DC
136452003-02-04 David Carlton <carlton@math.stanford.edu>
13646
13647 * objfiles.c (allocate_objfile): Always set name. Add comment at
13648 start of function.
13649 * jv-lang.c (get_dynamics_objfile): Add comment.
13650
406fc7fb
DC
136512003-02-04 David Carlton <carlton@math.stanford.edu>
13652
13653 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13654 * printcmd.c (build_address_symbolic): Replace uses of
13655 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13656 SYMBOL_NAME, and asm_demangle.
13657 Update copyright.
13658
93d91629
DC
136592003-02-04 David Carlton <carlton@math.stanford.edu>
13660
13661 * linespec.c (decode_compound): Extract code into
13662 lookup_prefix_sym.
13663 (lookup_prefix_sym): New function.
13664
1c5cb38e
DC
136652003-02-04 David Carlton <carlton@math.stanford.edu>
13666
13667 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13668 FLOAT_COERCION_BADNESS.
13669 * gdbtypes.c (rank_one_type): Replace all uses of
13670 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13671
0cf824c9
JB
136722003-02-04 Jim Blandy <jimb@redhat.com>
13673
13674 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13675 section, let dwarf_macinfo_section point to it, not
13676 dwarf_loc_section.
13677
a2d356b0
DJ
136782003-02-04 Daniel Jacobowitz <drow@mvista.com>
13679
13680 Pointed out by Anton Blanchard <anton@samba.org>.
13681 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13682 (ppc_linux_at_sigtramp_return_path): Use it.
13683
2de7ced7
DJ
136842003-02-04 Daniel Jacobowitz <drow@mvista.com>
13685
13686 * defs.h (streq): Add prototype.
13687 * utils.c (streq): New function.
13688
13689 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13690 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13691 * mdebugread.c (new_symbol): Likewise.
13692 * stabsread.c (define_symbol): Likewise.
13693 * coffread.c (process_coff_symbol): Likewise.
13694 * dwarfread.c (new_symbol): Likewise.
13695
13696 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13697 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13698 here.
13699 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13700 SYMBOL_INIT_DEMANGLED_NAME.
13701 * objfiles.c: Include "hashtab.h".
13702 (allocate_objfile): Call htab_set_functions_ex for the
13703 demangled_names_hash.
13704 (free_objfile): Call htab_delete for the demangled_names_hash.
13705 * objfiles.h (struct htab): Add declaration.
13706 (struct objfile): Add demangled_names_hash.
13707 * symfile.c: Include "hashtab.h".
13708 (reread_symbols): Call htab_delete for the demangled_names_hash.
13709 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13710 SYMBOL_NAME in the bcache.
13711 * symtab.c: Include "hashtab.h". Update comments.
13712 (create_demangled_names_hash, symbol_set_names): New functions.
13713 (symbol_find_demangled_name): New function, broken out from
13714 symbol_init_demangled_names.
13715 (symbol_init_demangled_names): Use it.
13716 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13717 (SYMBOL_SET_NAMES): New macro.
13718 (symbol_set_names): Add prototype.
13719
15831452
JB
137202003-02-03 Jim Blandy <jimb@redhat.com>
13721
13722 Use a single, consistent representation for an empty minimal
13723 symbol table in an objfile.
13724 * objfiles.c (terminate_minimal_symbol_table): New function.
13725 (allocate_objfile): Call it.
13726 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13727 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13728 non-NULL.
15831452
JB
13729 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13730 objfile has minimal symbols, compare minimal_symbol_count to zero,
13731 instead of comparing msymbols with NULL.
13732 * objfiles.c (have_minimal_symbols): Same.
13733 * solib-sunos.c (solib_add_common_symbols): Call
13734 terminate_minimal_symbol_table.
13735 * symfile.c (reread_symbols): Same.
8ffd9b1b 13736
ffc65945
KB
137372003-02-03 Kevin Buettner <kevinb@redhat.com>
13738
13739 * s390-tdep.c (s390_address_class_type_flags)
13740 (s390_address_class_type_flags_to_name)
13741 (s390_address_class_name_to_type_flags): New functions.
13742 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13743 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13744
f211c6d4
MS
137452003-02-03 Michael Snyder <msnyder@redhat.com>
13746
13747 * arm-tdep.c: Fix spell-o in comment.
13748
659b0389
ML
137492003-02-03 Michal Ludvig <mludvig@suse.cz>
13750
13751 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13752 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13753 error messages to contain BFD filename.
659b0389 13754
3b31d625
EZ
137552003-02-02 Elena Zannoni <ezannoni@redhat.com>
13756
997b089a 13757 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13758 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13759 (do_mixed_source_and_assembly): Use
13760 make_cleanup_ui_out_tuple_begin_end and
13761 make_cleanup_ui_out_tuple_begin_end.
13762 (do_mixed_source_and_assembly): Ditto.
13763 * thread.c (do_captured_list_thread_ids): Ditto.
13764 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13765 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13766 ui_out_tuple_end): Delete prototypes.
13767 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13768 ui_out_list_end, ui_out_tuple_end): Delete.
13769
13770 From Kevin Buettner <kevinb@redhat.com>:
13771 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13772 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13773 (do_cleanup_table_end): New functions.
13774 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13775 Use cleanups to invoke_ui_out_tuple_end().
13776 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13777 * cli/cli-setshow.c (cmd_show_list): Use
13778 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13779
5b181d62
AC
137802003-02-02 Andrew Cagney <ac131313@redhat.com>
13781
13782 * frame.c (frame_unwind_register): New function.
13783 (frame_unwind_unsigned_register): Use.
13784 (frame_unwind_signed_register): Use.
13785 (frame_read_register): New function.
13786 * frame.h (frame_unwind_register): Declare.
13787 (frame_read_register): Declare.
13788
13789 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13790 and frame_unwind_register instead of read_memory, write_register
13791 and deprecated_write_register_bytes.
13792
5f601589
AC
137932003-02-02 Andrew Cagney <ac131313@redhat.com>
13794
13795 * frame.h: Note that namelen can be negative.
13796 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13797 NAME's length.
13798
13799 * NEWS: Mention that the d10v's `regs' command is deprecated.
13800 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13801 (d10v_print_registers_info): New function.
13802 (show_regs): Call d10v_print_registers_info.
13803 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13804
6a3fe0a4
MK
138052003-02-02 Mark Kettenis <kettenis@gnu.org>
13806
13807 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13808 lost in the previous patch.
13809
075559bc
AC
138102003-02-01 Andrew Cagney <ac131313@redhat.com>
13811
13812 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13813 * stack.c (print_frame_info_base): Output complete FRAME tuple
13814 for synthesized frames.
075559bc 13815
6789195b
AC
138162003-02-02 Andrew Cagney <ac131313@redhat.com>
13817
13818 * mips-nat.c (zerobuf): Delete.
13819 (fetch_inferior_registers): Alloc local zerobuf.
13820 (fetch_core_registers): Alloc local zerobuf.
13821 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13822 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13823 * thread-db.c (thread_db_store_registers): Ditto.
13824 * sh-tdep.c (sh_do_register): Ditto.
13825 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13826 * remote-sim.c (gdbsim_store_register): Ditto.
13827 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13828 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13829 * monitor.c (monitor_supply_register): Ditto.
13830 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13831 * mips-nat.c (fetch_inferior_registers): Ditto.
13832 * m68klinux-nat.c (fetch_register): Ditto.
13833 * lynx-nat.c (fetch_inferior_registers): Ditto.
13834 (fetch_inferior_registers): Ditto.
13835 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13836 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13837 (hpux_thread_store_registers): Ditto.
13838 * hppah-nat.c (fetch_register): Ditto.
13839 * hppab-nat.c (fetch_register): Ditto.
13840 * hppa-tdep.c (pa_register_look_aside): Ditto.
13841 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13842 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13843
e669114a
AC
138442003-02-01 Andrew Cagney <ac131313@redhat.com>
13845
13846 * gdbarch.sh: Explictly specify all method levels. When a
13847 variable with an empty level, provide a non-multi-arch default.
13848 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13849 * gdbarch.h: Re-generate.
13850 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13851 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13852
9a043c1d
AC
138532003-02-01 Andrew Cagney <ac131313@redhat.com>
13854
13855 * defs.h (host_pointer_to_address): Delete declaration.
13856 (address_to_host_pointer): Delete declaration.
13857 * utils.c (host_pointer_to_address): Delete function.
13858 (address_to_host_pointer): Delete function.
13859 * procfs.c (procfs_address_to_host_pointer): New function.
13860 * procfs.c (proc_set_watchpoint): Use.
13861 (procfs_can_use_hw_breakpoint): Update comments.
13862 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13863 (som_solib_add): Use.
13864 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13865 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13866
7ca9f392
AC
138672003-02-01 Andrew Cagney <ac131313@redhat.com>
13868
94bbfd30
AC
13869 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13870 strlen d_name.
13871
7ca9f392
AC
13872 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13873 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13874 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13875 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13876 (define_symbol): Update.
13877 * symfile.c (generic_load): Remove references to nindy.
13878 * symtab.c: Remove references to nindy.
13879
31a85ea2
AC
138802003-02-01 Andrew Cagney <ac131313@redhat.com>
13881
13882 * infcmd.c (print_float_info): Delete code conditional on
13883 FLOAT_INFO.
13884 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13885 * config/m68k/nm-apollo68b.h: Ditto.
13886 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13887 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13888 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13889
f6e85fc8
MK
138902003-02-01 Mark Kettenis <kettenis@gnu.org>
13891
6015b6a0
MK
13892 * config/i386/tm-i386os9k.h: Removed.
13893
f7a30bdf
MK
13894 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13895 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13896 they're identical to i[3456]86-*-sysv* now.
13897 * config/i386/i386v32.mh: Removed.
13898 * config/i386/xm-i386v32.h: Removed.
13899 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13900
28d52111
MK
13901 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13902
4d3f6bce
MK
13903 * config/i386/i386dgux.mh: Removed.
13904 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13905
f6e85fc8
MK
13906 * configure.in: Fix typo.
13907 * configure: Regenerated.
13908
53955967
DC
139092003-01-31 David Carlton <carlton@math.stanford.edu>
13910
13911 * dwarf2read.c (dwarf2_locate_sections): Set
13912 dwarf_ranges_section.
13913
b1364885
AC
139142003-01-31 Andrew Cagney <ac131313@redhat.com>
13915
8dbb1c65
AC
13916 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13917 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13918
8731e58e
AC
13919 * utils.c: Re-indent.
13920
b1364885
AC
13921 * config/djgpp/fnchange.lst: Delete nindy files.
13922 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13923 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13924 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13925 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13926 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13927 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13928 * Makefile.in (init.c): Remove nindy references.
13929 (saber_gdb): Delete rule.
13930 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13931 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13932 and a68v-nat.c.
13933 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13934 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13935 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13936 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13937 nindy-share/stop.h.
13938 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13939 * saber.suppress: Delete file.
13940
086df311
DJ
139412003-01-31 Daniel Jacobowitz <drow@mvista.com>
13942
13943 * dbxread.c (stabs_data): New static variable.
13944 (fill_symbuf): Support an in-memory buffer for stabs data.
13945 (stabs_seek): New function.
13946 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13947 (read_ofile_symtab): Use stabs_seek.
13948 (elfstab_build_psymtabs): Take an asection* instead of
13949 an offset and size. Relocate the stabs data if necessary.
13950 Save the section* for dbx_psymtab_to_symtab.
13951 * dwarf2read.c: Add section variables for each debug section.
13952 (dwarf2_locate_sections): Fill them in.
13953 (dwarf2_read_section): Take an asection* argument.
13954 Relocate the section contents if necessary.
13955 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13956 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13957 it to dwarf2_read_section.
13958 (dwarf2_build_frame_info): Update callers.
13959 * elfread.c (elf_symfile_read): Update call to
13960 elfstab_build_psymtabs.
13961 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13962 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13963 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13964 * symfile.c (symfile_dummy_outputs): New function.
13965 (symfile_relocate_debug_section): New function.
13966 * symfile.h (symfile_relocate_debug_section): Add prototype.
13967
87d1b352
RH
139682003-01-31 Richard Henderson <rth@redhat.com>
13969
13970 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13971 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13972 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13973 * alpha-tdep.c (alpha_register_name): Add "unique".
13974 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13975 (ALPHA_UNIQUE_REGNUM): New.
13976 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13977
c48861fb
AC
139782003-01-31 Andrew Cagney <ac131313@redhat.com>
13979
13980 * README: Remove reference to Ericsson 1800 monitor.
13981 * Makefile.in (remote-es.o): Delete rule.
13982 (ALLDEPFILES): Delete remote-es.c.
13983 * remote-es.c: Delete file.
13984 * config/m68k/es1800.mt: Delete file.
13985 * config/djgpp/fnchange.lst: Update.
13986 * configure.tgt: Delete m68*-ericsson-* target.
13987
d764a824
AF
139882003-01-31 Adam Fedor <fedor@gnu.org>
13989
13990 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13991 Remove duplicate/shadowing variable of same name.
13992
fe36c4f4
JB
139932003-01-30 Jim Blandy <jimb@redhat.com>
13994
13995 * symfile.c (find_separate_debug_file): Assert that the objfile's
13996 directory name we compute ends with a slash, and then assume that
13997 that's so everywhere we use it.
13998
cb741690
DJ
139992003-01-30 Daniel Jacobowitz <drow@mvista.com>
14000
14001 * valops.c (value_assign): Flush frame cache after stores to memory
14002 also.
14003
96ee5227
AC
140042003-01-30 Andrew Cagney <ac131313@redhat.com>
14005
14006 * Makefile.in (mon960-rom.o): Delete rule.
14007 * mon960-rom.c: Delete file.
14008
7f6104a9
AC
140092003-01-30 Andrew Cagney <ac131313@redhat.com>
14010
14011 * d10v-tdep.c: Include "frame-unwind.h".
14012 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
14013 list.
14014 (next_addr, uses_frame): Delete.
14015 (struct d10v_unwind_cache): Define.
14016 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
14017 Use info instead of next_addr and uses_frame globals.
14018 (d10v_frame_init_saved_regs): Delete function.
14019 (d10v_init_extra_frame_info): Delete function.
14020 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
14021 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
14022 init_frame_pc or frame_saved_pc.
14023 (d10v_pop_frame): Delete function.
14024 (do_d10v_pop_frame): Delete function.
14025 (d10v_frame_chain): Delete function.
14026 (d10v_frame_chain_valid): Delete function.
14027 (d10v_frame_pc_unwind): New function.
14028 (d10v_frame_id_unwind): New function.
14029 (saved_regs_unwinder): New function.
14030 (d10v_frame_register_unwind): New function.
14031 (d10v_frame_pop): New function.
14032 (d10v_frame_unwind): New variable.
14033 (d10v_frame_p): New function.
14034 (d10v_frame_saved_pc): Delete function.
14035 * Makefile.in (d10v-tdep.o): Update dependencies.
14036
cad2e848
JB
140372003-01-30 J. Brobecker <brobecker@gnat.com>
14038
14039 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
14040 causing some regressions due to a change in the default value
14041 for this macro.
14042
af34e669
DJ
140432003-01-29 Richard Henderson <rth@redhat.com>
14044 Elena Zannoni <ezannoni@redhat.com>
14045 Daniel Jacobowitz <drow@mvista.com>
14046
14047 Fix PR gdb/961.
8ffd9b1b 14048 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
14049 variables.
14050 (RANGES_SECTION): New.
14051 (dwarf_ranges_buffer): New variable.
14052 (struct comp_unit_head): Add member "die".
14053 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
14054 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
14055 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
14056 (dwarf2_locate_sections): Likewise.
14057 (dwarf2_build_psymtabs): Read .debug_ranges.
14058 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
14059 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
14060 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
14061 Look for DW_AT_ranges and return the bounding box.
14062
baa93fa6
CF
140632003-01-29 Brian Ford <ford@vss.fsi.com>
14064
14065 * win32-nat.c (cygwin_pid): Removed as unused.
14066 (child_attach): Try fall back to Cygwin pid.
14067
c63f977f
JB
140682003-01-29 Jim Blandy <jimb@redhat.com>
14069
14070 * objfiles.h (struct objfile): Doc fix.
14071
d62d1979
AC
140722003-01-29 Andrew Cagney <ac131313@redhat.com>
14073
14074 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
14075 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
14076 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
14077 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
14078 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
14079 (FRAME_SAVED_PC): Change to a function with predicate.
14080 * gdbarch.h, gdbarch.c: Re-generate.
14081
1ae18a04
AC
140822003-01-28 Andrew Cagney <ac131313@redhat.com>
14083
52287340
AC
14084 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
14085
1ae18a04
AC
14086 * complaints.c (complain): Delete function.
14087 * complaints.h (struct deprecated_complaint): Delete definition.
14088 (complain): Delete declaration.
14089
f2c16bd6
KB
140902003-01-28 Kevin Buettner <kevinb@redhat.com>
14091
14092 * mips-tdep.c (mips_init_extra_frame_info): Return early for
14093 dummy frames.
14094
a94dd1fd
AC
140952003-01-27 Andrew Cagney <ac131313@redhat.com>
14096
14097 * sentinel-frame.h, sentinel-frame.c: New files.
14098 * Makefile.in (frame.o): Update dependencies.
14099 (SFILES): Add sentinel-frame.c.
14100 (sentinel_frame_h): Define.
14101 (COMMON_OBS): Add sentinel-frame.o.
14102 (sentinel-frame.o): Specify dependencies.
14103 * frame.c: Include "sentinel-frame.h".
14104 (frame_register_unwind): Rewrite assuming that there is always a a
14105 ->next frame.
14106 (frame_register, generic_unwind_get_saved_register): Ditto.
14107 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
14108 (create_sentinel_frame, unwind_to_current_frame): New functions.
14109 (get_current_frame): Rewrite using create_sentinel_frame and
14110 unwind_to_current_frame. When possible, always create a frame.
14111 (create_new_frame): Set next to the sentinel frame.
14112 (get_next_frame): Rewrite. Don't go below the level 0 frame.
14113 (deprecated_update_frame_pc_hack): Update the next frame's PC and
14114 ID cache when necessary.
14115 (frame_saved_regs_id_unwind): Use frame_relative_level.
14116 (deprecated_generic_get_saved_register): Use frame_relative_level,
14117 get_frame_saved_regs, get_frame_pc, get_frame_base and
14118 get_next_frame.
14119 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14120 frame_register.
14121
5378adc4
DJ
141222003-01-27 Daniel Jacobowitz <drow@mvista.com>
14123
14124 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14125
51ee2ddc
DJ
141262003-01-27 Daniel Jacobowitz <drow@mvista.com>
14127
14128 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14129 (maintenance_set_profile_cmd): Use error () instead of warning ().
14130
d9feb4e7
DJ
141312003-01-27 Daniel Jacobowitz <drow@mvista.com>
14132
14133 * configure.in: Check that -pg works if using --enable-profiling.
14134 Check for monstartup and _mcleanup regardless of --enable-profiling.
14135 * maint.c: Check for monstartup and _mcleanup before using them.
14136 * config.in: Regenerated.
14137 * configure: Regenerated.
14138
2d188dd3
NC
141392003-01-24 Nick Clifton <nickc@redhat.com>
14140
14141 * Add sh2e support:
14142
14143 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
14144
14145 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14146 (sh2e_show_regs): New.
14147 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14148 * config/sh/tm-sh.h: Added sh2e to comments.
14149
cb3c37b2
JB
141502003-01-23 Jim Blandy <jimb@redhat.com>
14151
14152 * symfile.c (syms_from_objfile): Don't print the "(no debugging
14153 symbols found)" message here; we haven't checked for a separate
14154 debug info file yet, so we don't know yet.
14155 (symbol_file_add_with_addrs_or_offsets): Print it here, after
14156 we've looked everywhere. Also, there's no need to print a special
14157 message when we're loading the separate debug info file: the one
14158 symbol_file_add prints is fine.
14159
5b5d99cf
JB
141602003-01-23 Alexander Larsson <alexl@redhat.com>
14161 Jim Blandy <jimb@redhat.com>
14162
14163 Add support for executables whose debug info has been separated
14164 out into a separate file, leaving only a link behind.
14165 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14166 and separate_debug_objfile_backlink.
14167 (put_objfile_before): New declaration.
14168 * symfile.c: #include "filenames.h".
14169 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14170 debug info in a separate file, read that, too. Save the addrs
14171 argument, so we can use it again to read the separated debug info;
14172 syms_from_objfile modifies the table we pass it.
14173 (reread_symbols): After re-reading an objfile, call
14174 reread_separate_symbols to refresh its separate debug info
14175 objfile, if it has one.
14176 (reread_separate_symbols, find_separate_debug_file,
14177 get_debug_link_info, separate_debug_file_exists): New functions.
14178 (debug_file_directory): New global var.
14179 (_initialize_symfile): Initialize debug_file_directory, and
14180 provide the new `set debug-file-directory' command to let the user
14181 change it.
14182 * objfiles.c (free_objfile): If this objfile has its debug info in
14183 a separate objfile, free that one too. If this is itself a
14184 separate debug info objfile, clear our parent's backlink.
14185 (put_objfile_before): New function.
14186 * utils.c (gnu_debuglink_crc32): New function.
14187 * defs.h (gnu_debuglink_crc32): New declaration.
14188 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14189 * configure.in: Handle --with-separate-debug-dir config option.
14190 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14191 * acconfig.h (DEBUGDIR): New macro.
14192 * configure, aclocal.m4, config.in: Regenerated.
14193
7e8580c1
JB
141942003-01-22 Jim Blandy <jimb@redhat.com>
14195
7904e09f
JB
14196 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14197 like the old symbol_file_add, but taking new arguments: you can
14198 now pass in either a `struct section_addr_info' list to say where
14199 each section is loaded, or a `struct section_offsets' table. Pass
14200 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 14201 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
14202 with the appropriate quiescent values for the new arguments.
14203
7e8580c1
JB
14204 * symfile.c: #include "gdb_assert.h".
14205 (syms_from_objfile): Add the ability to pass in a section offset
14206 table directly, as an alternative to the section_addr_info table.
14207 Document arguments better.
14208 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14209 * symfile.h (syms_from_objfile): Update declaration.
14210 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14211 syms_from_objfile.
14212 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14213
d28f9cdf
DJ
142142003-01-22 Daniel Jacobowitz <drow@mvista.com>
14215
14216 Original patch by Tom Tromey <tromey@cygnus.com> and
14217 Jason Molenda <jmolenda@apple.com>.
14218 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14219 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14220 * NEWS: Mention profiling.
14221 * configure.in (--enable-gdbtk): Fix typo.
14222 (--enable-profiling): New. Set PROFILE_CFLAGS.
14223 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14224 Fill in function.
14225 (profiling_state): New variable.
14226 (mcleanup_wrapper): New function.
14227 (_initialize_maint): Remove NOTYET, fix call to
14228 add_setshow_boolean_cmd for "maint set profile".
14229 * configure: Regenerated.
14230
df21e465
MH
142312003-01-21 Martin M. Hunt <hunt@redhat.com>
14232
14233 * Makefile.in (install-gdbtk): Install PNG images too.
14234
73c1f219
AC
142352003-01-21 Andrew Cagney <ac131313@redhat.com>
14236
14237 * exec.c (text_start): Delete global variable.
14238 (exec_file_attach): Make text_start local to the function.
14239 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14240 * valops.c (hand_function_call): Delete code that handles
14241 BEFORE_TEXT_END and AFTER_TEXT_END.
14242 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14243 of CALL_DUMMY_LOCATION.
14244 * gdbarch.c: Regenerate.
14245 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14246 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14247 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14248 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14249 (text_end): Delete extern declaration.
14250
eb4f72c5
AC
142512003-01-21 Andrew Cagney <ac131313@redhat.com>
14252
14253 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14254 * blockframe.c (backtrace_below_main): Move to "frame.c".
14255 (frame_chain_valid): Delete check for backtrace_below_main.
14256 (_initialize_blockframe): Delete initialization, move ``set
14257 backtrace-below-main'' command to "frame.c".
14258 (do_flush_frames_sfunc): Delete function.
14259 * frame.c: Include "command.h" and "gdbcmd.h".
14260 (frame_type_from_pc): New function.
14261 (create_new_frame): Use frame_type_from_pc.
14262 (legacy_get_prev_frame): New function.
14263 (get_prev_frame): Rewrite. When an old style frame, call
14264 legacy_get_prev_frame. Otherwize, unwind the PC first.
14265 (_initialize_frame): Add ``set backtrace-below-main'' command.
14266 * Makefile.in (frame.o): Update dependencies.
14267
778ce8cc
AC
142682003-01-19 Andrew Cagney <ac131313@redhat.com>
14269
14270 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14271 DEPRECATED_REGISTERS_INFO.
14272
01c193c8
AC
142732003-01-19 Andrew Cagney <ac131313@redhat.com>
14274
14275 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14276 Maintainers'. Update `Various Maintainers'.
14277
dedc2a2b
AC
142782003-01-19 Andrew Cagney <ac131313@redhat.com>
14279
14280 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14281 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14282 Suppress actual parameters when `-'.
14283 * gdbarch.h, gdbarch.c: Regenerate.
14284
b7261c70
AC
142852003-01-19 Andrew Cagney <ac131313@redhat.com>
14286
14287 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14288 code handling dummy frames.
14289
dbe9fe58
AC
142902003-01-19 Andrew Cagney <ac131313@redhat.com>
14291
14292 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14293 (struct frame_unwind): Add field pop.
14294 * frame.h (frame_pop): Declare.
14295 * frame.c (frame_saved_regs_pop): New function.
14296 (trad_frame_unwinder): Add frame_saved_regs_pop.
14297 (frame_pop): New function.
14298 * dummy-frame.c (dummy_frame_pop): New function.
14299 (discard_innermost_dummy): New function.
14300 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14301 (dummy_frame_unwind): Add dummy_frame_pop.
14302 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14303 * valops.c (hand_function_call): Ditto.
14304 * stack.c (return_command): Ditto.
14305
570b8f7c
AC
143062003-01-18 Andrew Cagney <ac131313@redhat.com>
14307
14308 * cris-tdep.c: Fix function declaration indentation.
14309 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14310 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14311 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14312 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14313 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14314 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14315
143162003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14317
14318 * README (Unpacking and Installation -- quick overview):
14319 Warn against ".../gdb-5.3/gdb/configure".
14320
494cca16
AC
143212003-01-18 Andrew Cagney <ac131313@redhat.com>
14322
14323 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14324 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14325 (struct frame_unwind): Declare opaque.
14326 (dummy_frame_p): Declare function.
14327 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14328 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14329 * dummy-frame.c: Include "frame-unwind.h".
14330 (dummy_frame_p): New function.
14331 (dummy_frame_unwind): New variable.
14332 * frame.c: Include "frame-unwind.h".
14333 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14334 to use the new unwind field.
14335 (set_unwind_by_pc): Delete function.
14336 (create_new_frame, get_prev_frame): Set unwind field using
14337 frame_unwind_find_by_pc.
14338 (trad_frame_unwind, trad_frame_unwinder): New variables.
14339 * frame.h (trad_frame_unwind): Declare variable.
14340 (frame_id_unwind_ftype): Delete declaration.
14341 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14342 (struct frame_unwind): Declare opaque.
14343 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14344 register_unwind with a single unwind pointer.
14345 * frame-unwind.h, frame-unwind.c: New files.
14346 * Makefile.in (SFILES): Add frame-unwind.c.
14347 (frame_unwind_h): Define.
14348 (COMMON_OBS): Add frame-unwind.o.
14349 (frame-unwind.o): Specify dependencies.
14350 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14351
4efb68b1
AC
143522003-01-18 Andrew Cagney <ac131313@redhat.com>
14353
14354 * ada-valprint.c: Eliminate PTR.
14355 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14356 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14357 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14358 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14359 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14360 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14361 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14362
a84d24ee
AC
143632003-01-17 Andrew Cagney <ac131313@redhat.com>
14364
762f08a3
AC
14365 * main.c (captured_main): Don't use PTR.
14366 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14367 * gdbtypes.c (lookup_primitive_typename): Ditto.
14368 (lookup_struct_elt_type): Ditto.
14369 * f-valprint.c (info_common_command): Ditto.
14370 (list_all_visible_commons): Ditto.
14371 * jv-typeprint.c (java_type_print_base): Ditto.
14372
a84d24ee
AC
14373 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14374 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14375 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14376 i386-interix-nat.c and i386-interix-tdep.c. Rename
14377 m68klinux-nat.c and m68klinux-tdep.c. Rename
14378 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14379 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14380 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14381 * main.c (captured_main): Use xfree, not free.
14382
c170fb60
AC
143832003-01-16 Andrew Cagney <ac131313@redhat.com>
14384
14385 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14386 ID back using a parameter.
14387 * frame.c (frame_id_unwind): Update call.
14388 (frame_saved_regs_id_unwind): Update.
14389 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14390 * dummy-frame.h (struct frame_id): Add opaque declaration.
14391 (dummy_frame_id_unwind): Update declaration.
14392
867f3898
AC
143932003-01-15 Andrew Cagney <ac131313@redhat.com>
14394
14395 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14396
40622be8 143972003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14398
40622be8 14399 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14400
ae66c1fc
EZ
144012003-01-14 Elena Zannoni <ezannoni@redhat.com>
14402
997b089a 14403 Fix PR gdb/898
ae66c1fc
EZ
14404 * breakpoint.c (until_break_command): Add new argument. Use it to
14405 decide whether to stop only at the current frame or not.
14406 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14407 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14408 call.
14409 (advance_command): New function.
14410 (_initialize_infcmd): Update help string for 'until' command.
14411 Add new 'advance' command.
14412
a04257e6
DC
144132003-01-14 David Carlton <carlton@math.stanford.edu>
14414
14415 * linespec.c (decode_line_1): Normalize comments.
14416 (set_flags): Ditto.
14417 (locate_first_half): Ditto.
14418 (decode_compound): Ditto.
14419 (symtab_from_filename): Ditto.
14420 (decode_all_digits): Ditto.
14421 (decode_dollar): Ditto.
14422 (find_methods): Ditto.
14423 (find_toplevel_char): Ditto.
14424
1bac305b
AC
144252003-01-13 Andrew Cagney <ac131313@redhat.com>
14426
14427 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14428 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14429 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14430 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14431 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14432 * language.c, language.h, m32r-tdep.c: Update copyright.
14433 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14434 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14435 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14436 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14437 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14438 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14439
25caa7a8
EZ
144402003-01-13 Elena Zannoni <ezannoni@redhat.com>
14441
14442 * stabsread.h (process_later, resolve_cfront_continuation):
14443 Obsolete.
14444 Update copyright years.
14445 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14446 Update copyright year.
14447 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14448 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14449 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14450 Update copyright year.
14451 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14452 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14453 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14454 (parse_partial_symbols): Obsolete cfront support.
14455 * stabsread.c
14456 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14457 macros.
14458 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14459 read_cfront_baseclasses, read_cfront_member_functions,
14460 resolve_cfront_continuation,read_cfront_static_fields,
14461 copy_cfront_struct_fields): Obsolete functions.
14462 (define_symbol, read_one_struct_field): Obsolete cfront support.
14463 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14464 Update Copyright year.
14465
7789c6f5
EZ
144662003-01-13 Elena Zannoni <ezannoni@redhat.com>
14467
14468 * stack.c (print_frame_info, print_stack_frame_base_stub,
14469 print_stack_frame_base, show_and_print_stack_frame_stub,
14470 show_and_print_stack_frame, print_only_stack_frame_stub,
14471 print_only_stack_frame): Delete functions.
14472 (print_stack_frame_stub): Call print_frame_info instead of
14473 print_frame_info_base.
14474 (print_frame_info_base): Rename to print_frame_info.
14475 (backtrace_command_1): Call print_frame_info, instead of
14476 print_frame_info_base.
14477 (current_frame_command): Call print_stack_frame, instead of
14478 print_only_stack_frame.
14479 (frame_command): Call print_stack_frame, instead of
14480 show_and_print_stack_frame.
14481 (up_command): Ditto.
14482 (down_command): Ditto.
14483 * frame.h (print_only_stack_frame): Delete prototype.
14484 * infrun.c (normal_stop): Call print_stack_frame, instead of
14485 show_and_print_stack_frame.
14486 * thread.c (info_threads_command): Call print_stack_frame, instead
14487 of print_only_stack_frame.
14488
3f5a3016
AC
144892003-01-13 Andrew Cagney <ac131313@redhat.com>
14490
d99ba314
AC
14491 * README (Graphical interface to GDB): Update URL. Point at
14492 gdb/links/.
14493
3f5a3016
AC
14494 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14495 version match.
14496
083ae935
DJ
144972003-01-13 Daniel Jacobowitz <drow@mvista.com>
14498
14499 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14500 lines.
14501
5365276c
DJ
145022003-01-13 Daniel Jacobowitz <drow@mvista.com>
14503
14504 * thread-db.c (attach_thread): Prototype.
14505 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14506 thread information (ti), and valid flags (th_valid, ti_valid).
14507 (attach_thread): Move target_pid_to_str call to after the thread
14508 is added to GDB's list. Initialize the cache.
14509 (thread_get_info_callback, thread_db_map_id2thr)
14510 (thread_db_get_info): New functions.
14511 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14512 (thread_db_store_registers, thread_db_thread_alive)
14513 (thread_db_get_thread_local_address): Use them.
14514 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14515 of calling error() for threads in unknown state.
14516
14517 (clear_lwpid_callback): New function.
14518 (thread_db_resume): Use it to clear the cache.
14519
9fc30b6b
DJ
145202003-01-13 Daniel Jacobowitz <drow@mvista.com>
14521
14522 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14523 (resume_callback): Remove dead code.
14524
8f871025
AC
145252003-01-13 Andrew Cagney <ac131313@redhat.com>
14526
14527 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14528 predicate.
14529 * gdbarch.h, gdbarch.c: Regenerate.
14530 * stack.c (frame_info): Only initialize the saved registers when
14531 FRAME_INIT_SAVED_REGS_P.
14532 * frame.c (frame_saved_regs_register_unwind): Assert
14533 FRAME_INIT_SAVED_REGS_P.
14534 (deprecated_generic_get_saved_register): Ditto.
14535
3f565f1e
DJ
145362003-01-13 Daniel Jacobowitz <drow@mvista.com>
14537
14538 * source.c (openp): Squelch warning about "filename".
14539
072b1022
DJ
145402003-01-13 Daniel Jacobowitz <drow@mvista.com>
14541
14542 * source.c (openp): If the file does not exist don't necessarily
14543 search the path.
14544
973ccf8b
DJ
145452003-01-13 Daniel Jacobowitz <drow@mvista.com>
14546
14547 Fix PR gdb/872.
14548 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14549 (integer_types_same_name_p): New function.
14550 (rank_one_type): Use it.
14551 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14552
030292b7
DJ
145532003-01-13 Daniel Jacobowitz <drow@mvista.com>
14554
14555 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14556 variables.
14557 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14558 * configure.in: Add --with-sysroot.
14559 * configure: Regenerated.
14560 * main.c (gdb_sysroot): New variable.
14561 (captured_main): Initialize gdb_sysroot.
14562 * defs.h (gdb_sysroot): New extern declaration.
14563 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14564
afb5d334
MC
145652003-01-12 Michael Chastain <mec@shout.net>
14566
14567 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14568
751ceeb4
MC
145692003-01-12 Michael Chastain <mec@shout.net>
14570
14571 * top.c (print_gdb_version): Bump copyright year to 2003.
14572
94cd26f8
DC
145732003-01-12 David Carlton <carlton@bactrian.org>
14574
14575 * linespec.c (symtab_from_filename): Rename variable 's' to
14576 'file_symtab'.
14577
1ce79225
AC
145782003-01-12 Andrew Cagney <ac131313@redhat.com>
14579
14580 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14581 dummy frame.
14582 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14583
fa1fd571
AC
145842003-01-12 Andrew Cagney <ac131313@redhat.com>
14585
14586 * d10v-tdep.c: Include "gdb_assert.h".
14587 (d10v_store_return_value): Rewrite to match current interface.
14588 (d10v_extract_struct_value_address): Ditto.
14589 (d10v_extract_return_value): Ditto.
14590 (d10v_gdbarch_init): Set store_restore_value,
14591 extract_struct_value_address and extract_return_value.
14592
68b8d23e
JB
145932003-01-12 J. Brobecker <brobecker@gnat.com>
14594
14595 * hpread.c (set_namestring): New procedure replacing the
14596 SET_NAMESTRING macro.
14597 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14598 by calls to set_namestring.
14599
146002003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14601
14602 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14603 a compilation warning.
14604 (hpread_process_one_debug_symbol): Likewise.
14605
88d262ca
DC
146062003-01-10 David Carlton <carlton@math.stanford.edu>
14607
14608 * linespec.c (decode_line_1): Rename variable 's' to
14609 'file_symtab'.
14610 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14611 (decode_dollar): Ditto.
14612 (decode_variable): Ditto.
14613 (symbol_found): Ditto.
14614
86669319
MC
146152003-01-09 Michael Chastain <mec@shout.net>
14616
14617 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14618
616a9dc4
CV
146192003-01-07 Corinna Vinschen <vinschen@redhat.com>
14620
14621 * win32-nat.c (set_process_privilege): New function.
14622 (child_attach): Call set_process_privilege() to enable the
14623 SE_DEBUG_NAME user privilege if available in process token.
14624
3269bcfa
JB
146252003-01-10 J. Brobecker <brobecker@gnat.com>
14626
14627 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14628 compilation error in the previous revision.
14629
2b0ee454
DC
146302003-01-09 David Carlton <carlton@math.stanford.edu>
14631
14632 * linespec.c: Update copyright.
14633
b3ba1b44
DJ
146342003-01-09 Daniel Jacobowitz <drow@mvista.com>
14635
14636 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14637 than inferior_ptid.
14638 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14639
4ef3f3be
AC
146402003-01-09 Andrew Cagney <ac131313@redhat.com>
14641
479ab5a0
AC
14642 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14643 Update comments.
14644 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14645 (frame_saved_regs_zalloc): Update.
14646 (frame_saved_regs_register_unwind): Update.
14647 (create_new_frame): Update.
14648 (get_prev_frame): Update.
14649 (frame_extra_info_zalloc): Update.
14650 (deprecated_get_frame_saved_regs): Update.
14651 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14652 * cris-tdep.c: Update comment.
14653
bde58177
AC
14654 * somsolib.h: Fix function indentation.
14655 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14656 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14657 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14658 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14659 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14660
4ef3f3be
AC
14661 * infrun.c (follow_fork): Use ISO C definition.
14662 * expprint.c (print_subexp): Use xfree instead of free.
14663 * charset.c: Include "gdb_string.h" instead of <string.h>.
14664 (register_iconv_charsets): Use ISO C definition.
14665 (host_charset, target_charset): Ditto.
14666 * Makefile.in (charset.o): Update dependencies.
14667 (mi-cmd-env.o): Update dependencies.
14668
1c615f7a
AC
146692003-01-08 Andrew Cagney <cagney@redhat.com>
14670
14671 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14672 get_frame_base.
14673
c9a1dc08
AC
146742003-01-08 Andrew Cagney <ac131313@redhat.com>
14675
14676 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14677 build directories. Save edited gdb output in Mbuild.log. If a
14678 build fails, remove any final GDB executable.
14679
dbad9d94
AC
146802003-01-08 Andrew Cagney <ac131313@redhat.com>
14681
14682 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14683 replacing hex constants with function names and stripping leading
14684 file name directory prefixes.
14685
8d357cca
AC
146862003-01-08 Andrew Cagney <cagney@redhat.com>
14687
14688 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14689 get_frame_base.
14690
bca02a8a
DC
146912003-01-08 David Carlton <carlton@math.stanford.edu>
14692
14693 * linespec.c (decode_line_1): Move code into decode_variable.
14694 (decode_variable): New function.
14695
7f8ab3a0
AC
146962003-01-08 Andrew Cagney <ac131313@redhat.com>
14697
14698 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14699
7b5849cc
AC
147002003-01-08 Andrew Cagney <cagney@redhat.com>
14701
14702 * cris-tdep.c (cris_frame_init_saved_regs): Use
14703 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14704 saved_regs buffer.
14705 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14706 (sh64_nofp_frame_init_saved_regs): Ditto.
14707 (sh_fp_frame_init_saved_regs): Ditto.
14708 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14709 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14710 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14711 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14712
72a5efb3
DJ
147132003-01-08 Daniel Jacobowitz <drow@mvista.com>
14714
14715 * minsyms.c (lookup_minimal_symbol): Update comment.
14716 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14717 (lookup_minimal_symbol_solib_trampoline): Likewise.
14718
11c02a10
AC
147192003-01-08 Andrew Cagney <cagney@redhat.com>
14720
aab3ea25
AC
14721 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14722 frame_relative_level.
14723
da50a4b7
AC
14724 * alpha-tdep.c: Use get_frame_extra_info.
14725 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14726 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14727 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14728 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14729
11c02a10
AC
14730 * alpha-tdep.c: Use get_next_frame.
14731 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14732 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14733 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14734 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14735 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14736 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14737 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14738
1e2330ba
AC
147392003-01-07 Andrew Cagney <cagney@redhat.com>
14740
14741 * alpha-tdep.c: Use get_frame_base.
14742 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14743 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14744 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14745 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14746 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14747 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14748 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14749 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14750
2d75187b
AC
147512003-01-07 Andrew Cagney <cagney@redhat.com>
14752
14753 * frame.c (deprecated_get_frame_context): New function.
14754 (deprecated_set_frame_context): New function.
14755 * frame.h (deprecated_get_frame_context): Declare.
14756 (deprecated_set_frame_context): Declare.
14757 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14758 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14759
483d36b2
AC
147602003-01-07 Andrew Cagney <cagney@redhat.com>
14761
14762 * frame.c (deprecated_set_frame_next_hack): New function.
14763 (deprecated_set_frame_prev_hack): New function.
14764 * frame.h (deprecated_set_frame_next_hack): Declare.
14765 (deprecated_set_frame_prev_hack): Declare.
14766 * mcore-tdep.c (analyze_dummy_frame): Use
14767 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14768 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14769
14e91ac5
DC
147702003-01-07 David Carlton <carlton@math.stanford.edu>
14771
14772 * linespec.c (decode_line_1): Move code into decode_dollar.
14773 (decode_dollar): New function.
14774
b0c6b05c
AC
147752003-01-07 Andrew Cagney <cagney@redhat.com>
14776
14777 * arm-tdep.c (arm_init_extra_frame_info): Use
14778 deprecated_update_frame_base_hack.
14779 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14780 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14781 (fix_frame_pointer): Ditto.
14782 (mn10300_analyze_prologue): Ditto.
14783
a00a19e9
AC
147842003-01-07 Andrew Cagney <cagney@redhat.com>
14785
14786 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14787 extra_info using frame_extra_info_zalloc.
14788 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14789 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14790 (sh64_init_extra_frame_info): Ditto.
14791 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14792 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14793 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14794 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14795 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14796 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14797 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14798 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14799 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14800 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14801 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14802 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14803
14804 * mn10300-tdep.c (analyze_dummy_frame): Use
14805 deprecated_set_frame_extra_info_hack.
14806 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14807
1fb4c65b
JB
148082003-01-07 J. Brobecker <brobecker@gnat.com>
14809
14810 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14811 class is not scText. These do not define "real" procedures.
14812 (parse_partial_symbols): Likewise.
14813
9fe7d6bf
MS
148142003-01-06 Michael Snyder <msnyder@redhat.com>
14815
14816 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14817
f6c609c4
AC
148182003-01-06 Andrew Cagney <ac131313@redhat.com>
14819
14820 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14821 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14822 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14823 deprecated_frame_xmalloc_with_cleanup.
14824 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14825 deprecated_frame_xmalloc.
14826 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14827 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14828
d995ff4b
AC
148292003-01-06 Andrew Cagney <cagney@redhat.com>
14830
84dc46cb
AC
14831 * x86-64-linux-tdep.c: Include "osabi.h".
14832 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14833
d995ff4b
AC
14834 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14835
66140c26
AC
148362003-01-06 Andrew Cagney <cagney@redhat.com>
14837
14838 * MAINTAINERS (Target Instruction Set Architectures): Update
14839 arm-elf. Can be built with -Werror, has been multiarched.
14840
14841 * value.h (unpack_long): Make buffer parameter constant.
14842 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14843 * scm-lang.h (scm_parse): Ditto.
14844 * defs.h (extract_typed_address, extract_address): Ditto.
14845 (extract_long_unsigned_integer): Ditto.
14846 * inferior.h (unsigned_pointer_to_address): Ditto.
14847 (signed_pointer_to_address): Ditto.
14848 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14849 * gdbarch.h, gdbarch.c: Regenerate.
14850 * findvar.c (extract_long_unsigned_integer): Update.
14851 (extract_address): Update.
14852 (extract_typed_address): Update.
14853 (unsigned_pointer_to_address): Update.
14854 * values.c (unpack_long): Update.
14855 (unpack_double): Update.
14856 (unpack_pointer): Update.
14857 (unpack_field_as_long): Update.
14858 * d10v-tdep.c (d10v_pointer_to_address): Update.
14859 * avr-tdep.c (avr_pointer_to_address): Update.
14860 * scm-lang.c (scm_unpack): Update.
14861 * findvar.c (signed_pointer_to_address): Update.
14862
b089b3da
ML
148632003-01-06 Michal Ludvig <mludvig@suse.cz>
14864
8ffd9b1b 14865 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14866 since it is in i386-tdep.c.
14867
aff87235
JB
148682003-01-06 J. Brobecker <brobecker@gnat.com>
14869
14870 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14871 failure introduced in the previous change.
14872
34f5e845
MC
148732003-01-05 Michael Chastain <mec@shout.net>
14874
14875 * README: Remove references to deleted remote-*.c files:
14876 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14877 remote-nrom.c, remote-os9k.c, remote-udi.c.
14878
28bcfd30
MK
148792003-01-05 Mark Kettenis <kettenis@gnu.org>
14880
14881 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14882 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14883 i386_get_longjmp_target.
14884
15a5b3ee
AC
148852003-01-05 Andrew Cagney <ac131313@redhat.com>
14886
14887 * arm-tdep.c (prologue_cache): Change to a pointer.
14888 (_initialize_arm_tdep): Allocate prologue_cache.
14889 (check_prologue_cache): Update.
14890 (save_prologue_cache): Update.
14891 (arm_gdbarch_init): Update.
14892
c263362b
DJ
148932003-01-04 Daniel Jacobowitz <drow@mvista.com>
14894
14895 * stabsread.c (update_method_name_from_physname): Call complaint()
14896 instead of error.
14897
51603483
DJ
148982003-01-04 Daniel Jacobowitz <drow@mvista.com>
14899
14900 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14901 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14902 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14903
14904 * blockframe.c: Include "gdbcmd.h" and "command.h".
14905 (backtrace_below_main): New variable.
14906 (file_frame_chain_valid, func_frame_chain_valid)
14907 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14908 (generic_func_frame_chain_valid): Remove functions.
14909 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14910 (_initialize_blockframe): New function.
14911 * Makefile.in (blockframe.o): Update dependencies.
14912 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14913 comment. Call frame_chain_valid ().
14914 * frame.h: Remove old prototypes. Add prototype for
14915 frame_chain_valid and update comments to match.
14916 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14917 Remove old comment.
14918 * gdbarch.h: Regenerated.
14919 * gdbarch.c: Regenerated.
14920
14921 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14922 set_gdbarch_frame_chain_valid.
14923 * avr-tdep.c (avr_gdbarch_init): Likewise.
14924 * cris-tdep.c (cris_gdbarch_init): Likewise.
14925 * frv-tdep.c (frv_gdbarch_init): Likewise.
14926 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14927 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14928 (i386_nw_init_abi): Likewise.
14929 (i386_gdbarch_init): Likewise.
14930 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14932 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14933 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14934 * mips-tdep.c (mips_gdbarch_init): Likewise.
14935 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14936 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14937 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14938 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14939 * s390-tdep.c (s390_gdbarch_init): Likewise.
14940 * sh-tdep.c (sh_gdbarch_init): Likewise.
14941 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14942 * v850-tdep.c (v850_gdbarch_init): Likewise.
14943 * vax-tdep.c (vax_gdbarch_init): Likewise.
14944 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14945
14946 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14947 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14948 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14949 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14950 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14951 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14952 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14953 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14954
b00a8037
DJ
149552002-01-04 Daniel Jacobowitz <drow@mvista.com>
14956
14957 * Makefile.in (acconfig_h): Remove incorrect macro.
14958 (config_h): Define.
14959 (osabi.o): Update dependencies.
14960 * configure.tgt: Set gdb_osabi based on target triplet.
14961 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14962 * configure: Regenerated.
14963 * config.in: Regenerated.
14964 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14965 (GDB_OSABI_DEFAULT): Define if not already defined.
14966 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14967 (set_osabi_string): New variables.
14968 (gdbarch_register_osabi): Add new OS ABI to
14969 gdb_osabi_available_names.
14970 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14971 (set_osabi, show_osabi): New functions.
14972 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14973
4be87837
DJ
149742003-01-04 Daniel Jacobowitz <drow@mvista.com>
14975
14976 * arch-utils.c (gdbarch_info_init): Set osabi to
14977 GDB_OSABI_UNINITIALIZED.
14978 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14979 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14980 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14981 * gdbarch.c: Regenerated.
14982 * gdbarch.h: Regenerated.
14983 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14984 there's no BFD.
14985 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14986 * osabi.h (enum gdb_osabi): Move to defs.h.
14987 (gdbarch_init_osabi): Update prototype.
14988 * defs.h (enum gdb_osabi): Moved here.
14989 * Makefile.in: Update dependencies.
14990
14991 * alpha-tdep.h: Don't include "osabi.h".
14992 (struct gdbarch_tdep): Remove osabi member.
14993 * alpha-tdep.c: Include "osabi.h".
14994 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14995 iterate over arches. Update call to gdbarch_init_osabi.
14996 (alpha_dump_tdep): Don't dump osabi.
14997 * alpha-linux-tdep.c: Include "osabi.h".
14998 * alpha-osf1-tdep.c: Include "osabi.h".
14999 * alphafbsd-tdep.c: Include "osabi.h".
15000 * alphanbsd-tdep.c: Include "osabi.h".
15001
15002 * arm-tdep.h: Don't include "osabi.h".
15003 (struct gdbarch_tdep): Remove osabi member.
15004 * arm-tdep.c: Include "osabi.h".
15005 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15006 iterate over arches. Update call to gdbarch_init_osabi.
15007 (arm_dump_tdep): Don't dump osabi.
15008 * arm-linux-tdep.c: Include "osabi.h".
15009 * armnbsd-tdep.c: Include "osabi.h".
15010
15011 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
15012 Update call to gdbarch_init_osabi.
15013
15014 * i386-tdep.h: Don't include "osabi.h".
15015 (struct gdbarch_tdep): Remove osabi member.
15016 * i386-tdep.c: Include "osabi.h".
15017 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15018 iterate over arches. Update call to gdbarch_init_osabi.
15019 (i386_dump_tdep): Don't dump osabi.
15020 * i386-linux-tdep.c: Include "osabi.h".
15021 * i386-sol2-tdep.c: Include "osabi.h".
15022 * i386bsd-tdep.c: Include "osabi.h".
15023 * i386gnu-tdep.c: Include "osabi.h".
15024 * i386ly-tdep.c: Include "osabi.h".
15025 * i386nbsd-tdep.c: Include "osabi.h".
15026 * i386obsd-tdep.c: Include "osabi.h".
15027
15028 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
15029 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15030 check osabi when iterating over arches. Update call to
15031 gdbarch_init_osabi.
15032 (mips_dump_tdep): Don't dump osabi.
15033
15034 * ns32k-tdep.h: Don't include "osabi.h".
15035 (struct gdbarch_tdep): Remove.
15036 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
15037 gdbarch_lookup_osabi. Don't iterate over arches. Don't
15038 allocate tdep. Update call to gdbarch_init_osabi.
15039 (ns32k_dump_tdep): Remove.
15040 (_initialize_ns32k_tdep): Update call to gdbarch_register.
15041 * ns32knbsd-tdep.c: Include "osabi.h".
15042
15043 * ppc-tdep.h: Don't include "osabi.h".
15044 (struct gdbarch_tdep): Remove osabi member.
15045 * rs6000-tdep.c: Include "osabi.h".
15046 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
15047 osabi when iterating over arches. Update call to
15048 gdbarch_init_osabi.
15049 (rs6000_dump_tdep): Don't dump osabi.
15050 * ppc-linux-tdep.c: Include "osabi.h".
15051 * ppcnbsd-tdep.c: Include "osabi.h".
15052
15053 * sh-tdep.h: Don't include "osabi.h".
15054 (struct gdbarch_tdep): Remove osabi member.
15055 * sh-tdep.c: Include "osabi.h".
15056 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15057 iterate over arches. Update call to gdbarch_init_osabi.
15058 (sh_dump_tdep): Don't dump osabi.
15059 * shnbsd-tdep.c: Include "osabi.h".
15060
15061 * sparc-tdep.c: Include "osabi.h".
15062 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15063 iterate over arches. Update call to gdbarch_init_osabi.
15064 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
15065 tdep structure.
15066
15067 * vax-tdep.h: Don't include "osabi.h".
15068 (struct gdbarch_tdep): Remove.
15069 * vax-tdep.c: Include "osabi.h".
15070 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15071 iterate over arches. Don't allocate tdep. Update call
15072 to gdbarch_init_osabi.
15073 (vax_dump_tdep): Remove.
15074 (_initialize_vax_tdep): Update call to gdbarch_register.
15075
a881cf8e
DJ
150762003-01-04 Daniel Jacobowitz <drow@mvista.com>
15077
15078 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
15079 entirely.
15080 (breakpoint_re_set_one): Don't fetch the value for a disabled
15081 watchpoint.
15082
1e698235
DJ
150832003-01-04 Daniel Jacobowitz <drow@mvista.com>
15084
15085 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
15086 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
15087 (COERCE_FLOAT_TO_DOUBLE): Remove.
15088 * gdbarch.c: Regenerate.
15089 * gdbarch.h: Regenerate.
15090 * Makefile.in: Remove value_h from gdbarch_h.
15091 * valops.c (coerce_float_to_double): New variable.
15092 (default_coerce_float_to_double): Remove.
15093 (standard_coerce_float_to_double): Remove.
15094 (value_arg_coerce): Use coerce_float_to_double.
15095 (_initialize_valops): Add "set coerce-float-to-double".
15096 * value.h (default_coerce_float_to_double): Remove prototype.
15097 (standard_coerce_float_to_double): Remove prototype.
15098
15099 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
15100 prototyped.
15101 * mdebugread.c (parse_symbol): Likewise.
15102 * stabsread.c (define_symbol): Mark all functions as prototyped.
15103
15104 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
15105 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
15106 set_gdbarch_coerce_float_to_double.
15107 * arm-tdep.c (arm_gdbarch_init): Likewise.
15108 * frv-tdep.c (frv_gdbarch_init): Likewise.
15109 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
15110 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
15111 * mips-tdep.c (mips_gdbarch_init): Likewise.
15112 (mips_coerce_float_to_double): Remove.
15113 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15114 (rs6000_coerce_float_to_double): Remove.
15115 * s390-tdep.c (s390_gdbarch_init): Likewise.
15116 * sh-tdep.c (sh_gdbarch_init): Likewise.
15117 (sh_coerce_float_to_double): Remove.
15118 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15119 (sparc_coerce_float_to_double): Remove.
15120 * v850-tdep.c (v850_gdbarch_init): Likewise.
15121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15122 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15123 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15124 (hppa_coerce_float_to_double): Remove prototype.
15125 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15126
f436a26a
DJ
151272003-01-04 Daniel Jacobowitz <drow@mvista.com>
15128
15129 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15130
248f8055
DJ
151312003-01-04 Daniel Jacobowitz <drow@mvista.com>
15132
15133 Suggested by Stewart Brown <sb24@avaya.com>:
15134 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15135 in recursive calls. Handle TYPE_CODE_TYPEDEF.
15136 (c_type_print_varspec_suffix): Likewise.
15137
72cfdc76
MK
151382003-01-04 Mark Kettenis <kettenis@gnu.org>
15139
bfd260bb
MK
15140 * configure.in: Don't set and AC_SUBST SUBDIRS.
15141 * configure: Regenerated.
15142
72cfdc76
MK
15143 * configure.in: Remove code dealing with shared libraries.
15144 * Makefile.in: Remove HLDFLAGS and HLDENV.
15145 * configure: Regenerated.
15146
c8b8a898
AC
151472003-01-04 Andrew Cagney <ac131313@redhat.com>
15148
15149 * frame.c (deprecated_frame_xmalloc): New function.
15150 (deprecated_set_frame_saved_regs_hack): New function.
15151 (deprecated_set_frame_extra_info_hack): New function.
15152 * frame.h (deprecated_frame_xmalloc): Declare.
15153 (deprecated_set_frame_saved_regs_hack): Declare.
15154 (deprecated_set_frame_extra_info_hack): Declare.
15155
14abd0fb
MK
151562003-01-04 Mark Kettenis <kettenis@gnu.org>
15157
8ee53726
MK
15158 * configure.in: Move code that provides the --enable-gdbtk option
15159 right after the code that handles the --enable-tui option, and
15160 polish it somewhat.
15161 * configure: Regenerated.
15162
14abd0fb
MK
15163 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
15164 AC_CHECK_FUNCS and remove the old check for pread64.
15165 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15166 * acconfig.h (_GNU_SOURCE): Add.
15167 (HAVE_PREAD64): Remove.
15168 * configure, aclocal.m4, config.in: Regenerated.
15169
b2fb4676
AC
151702003-01-03 Andrew Cagney <ac131313@redhat.com>
15171
15172 * alpha-tdep.c: Use get_frame_saved_regs.
15173 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15174 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15175 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15176 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15177 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15178
8dcde887
MK
151792003-01-03 Mark Kettenis <kettenis@gnu.org>
15180
15181 * configure.in: Remove all use of the SUBDIRS variable; add
15182 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15183 code providing the --enable-multi-ice option, and move it right in
15184 front of the code that checks whether gdbserver is supported.
15185 Polish that too.
15186 * configure: Regenerated.
15187 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15188 @SUBDIRS@.
15189
8ccd593b
AC
151902003-01-03 Andrew Cagney <cagney@redhat.com>
15191
15192 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15193 * avr-tdep.c, cris-tdep.c: Ditto.
15194 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15195 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 15196
91151a06
MK
151972003-01-03 Mark Kettenis <kettenis@gnu.org>
15198
15199 * configure.in: Remove --enable-netrom option.
15200 * configure: Regenerated.
15201
8fe84d01
MK
152022003-01-03 Mark Kettenis <kettenis@gnu.org>
15203
15204 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15205 declaration for `struct re_pattern_buffer' instead.
15206 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15207
f0394be6
JB
152082003-01-03 J. Brobecker <brobecker@gnat.com>
15209
15210 * mdebugread.c (parse_symbol): Count until the stEnd matching
15211 the structure name.
15212
27e9bf90
MK
152132003-01-02 Mark Kettenis <kettenis@gnu.org>
15214
93d331ba
MK
15215 * configure.in: Remove --with-cpu option.
15216 subscripts. Remove evil changequotes here.
15217 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15218 * config.in, configure: Regenerated.
8ffd9b1b 15219
27e9bf90
MK
15220 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15221 * configure.in: Cleanup section that sources GDB and BFD configure
15222 subscripts. Remove evil changequotes here.
15223 * config.in, configure: Regenerated.
15224
50abf9e5
AC
152252003-01-02 Andrew Cagney <ac131313@redhat.com>
15226
15227 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15228 frame accessor methods.
15229 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15230 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15231 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15232 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15233 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15234 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15235 * z8k-tdep.c: Ditto.
8ffd9b1b 15236
287c1a40
MK
152372003-01-02 Mark Kettenis <kettenis@gnu.org>
15238
f5dbc56d
MK
15239 * configure.in: Remove UI_OUT configuration code.
15240 * ada-lang.c: Update assuming UI_OUT is always true.
15241 * Makefile.in (UIOUT_CFLAGS): Remove.
15242 * configure: Regenerated.
15243 * TODO: Remove blurb about elimination of -DUI_OUT.
15244
627af7ea
MK
15245 * configure.in: Move code that provides the --enable-gdbcli,
15246 --enable-gdbmi options right before the code that handles the
15247 --enable-tui option. Polish a bit.
15248 * configure: Regenerated.
15249
06825bd1
MK
15250 * configure.in: Rewrite check for GNU regex and the
15251 --without-included regex option, and move it into the "Checks for
15252 library functions" section. This makes us use the system regex
15253 again by default on systems with version 2 of the GNU C library.
15254 This was apparently broken.
15255 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15256 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15257 * config.in, configure: Regenerated.
15258
287c1a40
MK
15259 * configure.in: Move code that provides the --enable-tui option
15260 before the "Checks for libraries" section. Polish the code
15261 somewhat and set need_curses to yes if we build the TUI. Rewrite
15262 code that looks for a library providing termcap functionality to
15263 match more closely what's done in the Readline library, and move
15264 it into to the "Checks for libraries" section.
15265 * configure: Regenerated.
15266 * Makefile.in (TERMCAP): Remove variable.
15267 * config/i386/go32.mh (TERMCAP): Remove variable.
15268
684e56bf
AC
152692003-01-02 Andrew Cagney <ac131313@redhat.com>
15270
15271 * MAINTAINERS: Mention gdb_mbuild.sh.
15272 * gdb_mbuild.sh: Rewrite.
15273
e1ea1d75
MK
152742003-01-02 Mark Kettenis <kettenis@gnu.org>
15275
15276 * configure.in: Fix typo in last change.
15277 * config.in, configure: Regenerated.
15278
1b831c93
AC
152792003-01-02 Andrew Cagney <ac131313@redhat.com>
15280
15281 * valarith.c (value_binop): Delete obsolete code and comments.
15282 * configure.host: Ditto.
15283 * buildsym.h (make_blockvector): Ditto.
15284 * buildsym.c (make_blockvector): Ditto.
15285 * defs.h (enum language): Ditto.
15286 (chill_demangle): Ditto.
15287 * elfread.c (elf_symtab_read): Ditto.
15288 * dwarfread.c (CHILL_PRODUCER): Ditto.
15289 (set_cu_language): Ditto.
15290 (handle_producer): Ditto.
15291 * expprint.c (print_subexp): Ditto.
15292 * gdbtypes.c (chill_varying_type): Ditto.
15293 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15294 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15295 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15296 (chill_varying_type): Ditto.
15297 * language.h (_LANG_chill): Ditto.
15298 * language.c (binop_result_type, integral_type): Ditto.
15299 (character_type, string_type, structured_type): Ditto.
15300 (lang_bool_type, binop_type_check): Ditto.
15301 * stabsread.h (os9k_stabs): Ditto.
15302 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15303 (define_symbol, read_type, read_struct_fields): Ditto.
15304 (read_array_type, read_enum_type, read_huge_number): Ditto.
15305 (read_range_type, start_stabs): Ditto.
15306 * symfile.c (init_filename_language_table): Ditto.
15307 (add_psymbol_with_dem_name_to_list): Ditto.
15308 * symtab.c (symbol_init_language_specific): Ditto.
15309 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15310 * symtab.h (struct general_symbol_info): Ditto.
15311 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15312 * typeprint.c (typedef_print): Ditto.
15313 * utils.c (fprintf_symbol_filtered): Ditto.
15314 * valops.c (value_cast, search_struct_field, value_slice): Delete
15315 obsolete code.
15316 (varying_to_slice): Delete function.
15317 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15318 (varying_to_slice): Delete declaration.
15319 * MAINTAINERS: Update.
15320
8bb2c122
MK
153212003-01-02 Mark Kettenis <kettenis@gnu.org>
15322
97bf5e38
MK
15323 * configure.in: Reorganize "Checks for library functions section"
15324 a bit. Remove check for `btowc' and `isascii' functions.
15325 * configure: Regenerated.
15326
5ee754fc
MK
15327 * acconfig.h (_MSE_INT_H): Remove.
15328 * configure.in: Create "Checks for header files" section, and move
15329 appropriate tests there. Don't check for objlist.h, wchar.h,
15330 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15331 misdetection fix. Also add "Checks for types", "Checks for
15332 compiler characteristics" and "Checks for library functions"
15333 sections.
15334 * config.in, configure: Regenerated.
15335
8bb2c122
MK
15336 * configure.in: Create "Checks for programs" section, and move
15337 appropriate tests there.
15338
9a156167
MK
153392003-01-01 Mark Kettenis <kettenis@gnu.org>
15340
15341 * configure.in: Create "Checks for libraries" section, and move
15342 appropriate tests there. Cleanup check for wctype in libw. Use
15343 AC_SEARCH_LIBS to see whether we need libsocket.
15344 * configure: Regenerated.
15345
a80e2bcb 15346For older changes see ChangeLog-2002
c906108c
SS
15347\f
15348Local Variables:
15349mode: change-log
15350left-margin: 8
15351fill-column: 74
15352version-control: never
15353End:
This page took 1.167295 seconds and 4 git commands to generate.