1 2004-01-02 Mark Kettenis <kettenis@gnu.org>
3 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
5 * configure, config.in: Regenerate.
7 2003-12-30 Eli Zaretskii <eliz@elta.co.il>
9 * configure.in: Check for st_blocks member in struct stat and
10 define HAVE_STRUCT_STAT_ST_BLOCKS accordingly.
12 * acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): New undef.
14 * configure, config.in: Regenerated.
16 * remote-fileio.c (remote_fileio_to_fio_stat)
17 (remote_fileio_func_fstat) [HAVE_STRUCT_STAT_ST_BLOCKS]: Support
18 systems that don't have `st_blocks' member in `struct stat'.
20 2003-12-29 Eli Zaretskii <eliz@elta.co.il>
22 * go32-nat.c (go32_sldt, go32_sgdt, go32_sidt, go32_pte): Fix
23 mismatches between format string and arguments (avoids compiler
26 * configure.in: Set ac_cv_search_tgetent to "none required" for
27 "*djgpp*" targets as well (DJGPP doesn't have termcap and doesn't
30 * config/djgpp/config.sed: Tweak to adapt to the changes in
33 * config/djgpp/djconfig.sh: Fix the test of unpacked
34 distribution, since there's no gdb.cxx directory anymore.
36 2003-12-28 Mark Kettenis <kettenis@gnu.org>
38 * i386-sol2-tdep.c (i386_sol2_mcontext_addr): New function.
39 (i386_sol2_init_abi): Initialize TDEP->sigcontext_addr,
40 TDEP->sc_reg_offset and TDEP->sc_num_regs.
42 * i386-tdep.h (i386_regnum): Add I386_CS_REGNUM and
45 2003-12-27 Mark Kettenis <kettenis@gnu.org>
47 * dwarf2-frame.c (dwarf2_reg_rule): Add REG_RA and REG_CFA.
48 (dwarf2_frame_cache): Initialize PC_REGNUM with REG_RA and
49 SP_REGNUM with REG_CFA. Don't overwrite the initialized register
50 rule for registers left unspecified by the CFI. Remove the
51 special handling of PC_REGNUM. Add code to eleminate any REG_RA
53 (dwarf2_frame_prev_register): Remove the special handling of
54 SP_REGNUM. Add support for the REG_CFA rule.
56 2003-12-26 Mark Kettenis <kettenis@gnu.org>
58 * i386obsd-tdep.c: Include "regset.h", "gdb_assert.h" and
60 (i386obsd_r_reg_offset): New variable.
61 (i386obsd_aout_supply_regset)
62 (i386obsd_aout_regset_from_core_section): New functions.
63 (i386obsd_supply_reg, fetch_core_registers): Remove functions.
64 (i286obsd_core_fns): Remove variable.
65 (i386obsd_init_abi): Initialize TDEP->gregset_reg_offset,
66 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Set
67 regset_from_core_section. Use ARRAY_SIZE to initialize
69 (_initialize_i386obsd_tdep): Don't call add_core_fns.
71 * i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
72 (_initialize_i386bsd_tdep): Register i386bsd_core_osabi_sniffer.
74 * i386-linux-nat.c: Add comment.
76 2003-12-26 Christopher Faylor <cgf@redhat.com>
78 * win32-nat.c: Add some comments about below change.
80 2003-12-25 Christopher Faylor <cgf@redhat.com>
82 Fix for PR threads/1048
83 * win32-nat.c (thread_info_struct): Add reload_context flag.
84 (thread_rec): Don't reload thread context here. Just set a flag.
85 (do_child_fetch_inferior_registers): Reload thread context here if
86 appropriate. Avoid doing anything if current_thread is NULL thanks to
87 strange Windows behavior.
88 (child_fetch_inferior_registers): Avoid doing anything if
89 current_thread is NULL.
90 (do_child_store_inferior_registers): Ditto.
91 (child_store_inferior_registers): Ditto.
92 (child_kill_inferior): Ditto.
93 (fake_create_process): Pretend to create a process for pathological
94 windows attach situation.
95 (get_child_debug_event): Call fake_create_process when the first event
96 noticed is thread creation rather than process creation.
97 (child_attach): Always set attach_flag when attaching.
98 (child_create_inferior): Set attach_flag to zero since we're not
101 2003-12-25 Christopher Faylor <cgf@redhat.com>
103 * win32-nat.c (get_child_debug_event): Keep main thread id around even
104 after thread exits since Windows insists on continuing to report events
107 2003-12-22 Mark Kettenis <kettenis@gnu.org>
109 * dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
112 2003-12-21 Jim Blandy <jimb@redhat.com>
114 * breakpoint.c (bpstat_do_actions): To ensure that
115 clear_proceed_status doesn't free the command tree we're
116 evaluating out from under us, zero the bpstat's pointer to it, and
117 take care of freeing it ourselves.
118 * cli/cli-script.c (make_cleanup_free_command_lines): Make this
119 function externally visible.
120 * cli/cli-script.h (make_cleanup_free_command_lines): New
123 2003-12-20 Mark Kettenis <kettenis@gnu.org>
125 * x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
128 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
130 * hppa-tdep.c (hppa_gdbarch_init): Set long double floating
131 point type to floatformat_ia64_quad_big.
133 2003-12-18 Kevin Buettner <kevinb@redhat.com>
135 * frv-tdep.c (skip_prologue_using_sal): New function. Taken verbatim
137 (frv_analyze_prologue): Rework to account for intermixed prologue /
140 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
142 * hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
143 Document type sizes for hppa*-*-hpux* compilers available to me.
145 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
147 * hppam3-nat.c: Delete obsolete file.
148 * hppab-nat.c: Delete obsolete file.
149 * Makefile.in: Remove references.
151 2003-12-17 Jeff Johnston <jjohnstn@redhat.com>
153 * symtab.c (decode_line_spec): Change call to decode_line_1.
155 2003-12-17 Jeff Johnston <jjohnstn@redhat.com>
157 * linespec.h (decode_line_1): Add new not_found_ptr parameter.
158 * linespec.c (decode_line_1): Add new parameter. Pass on
159 new parameter to decode_variable and symtab_from_filename
161 (decode_variable): Add new not_found_ptr parameter. Throw exception
162 rather than failing if the not_found_ptr is non-null and the
163 function is not found.
164 (symtab_from_filename): Add new not_found_ptr parametr. Throw
165 exception rather than failing if the not_found_ptr is non-null and
166 the source file is not found.
167 * breakpoint.c: Change all callers of decode_line_1 to add default
168 extra parameter for decode_line_1 calls.
169 * tracepoint.c: Ditto.
170 * cli/cli-cmds.c: Ditto.
172 2003-12-16 J. Brobecker <brobecker@gnat.com>
174 * irix5-nat.c: Include mips-tdep.h.
176 2003-12-16 Mark Kettenis <kettenis@gnu.org>
178 * solib.h (SOLIB_CREATE_CATCH_LOAD_HOOK)
179 (SOLIB_CREATE_CATCH_UNLOAD_HOOK, SOLIB_LOADED_LIBRARY_PATHNAME)
180 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_HAVE_LOAD_EVENT)
181 (SOLIB_HAVE_UNLOAD_EVENT): Remove defines.
183 * blockframe.c (inside_main_func): Don't treat a zero PC specially.
184 Needed to fix PR backtrace/1476.
186 2003-12-16 David Carlton <carlton@kealia.com>
188 * cp-support.c (class_name_from_physname): Add DMGL_PARAMS.
189 (method_name_from_physname): Ditto.
191 2003-12-15 Mark Kettenis <kettenis@gnu.org>
193 * i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
194 (i386_sol2_init_abi): Initialize TDEP->gregset_reg_offset,
195 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
196 TDEP->sizeof_fpregset.
197 * config/i386/i386sol2.mh (XM_FILE): Set to xm-i386.h.
199 (NATDEPFILES): Remove core-regset.o and corelow.o.
200 * config/i386/i386sol2.mt (TDEPFILES): Add corelow.o.
202 2003-12-14 Mark Kettenis <kettenis@gnu.org>
204 * proc-api.c (procfs_note): Add format string to fprintf call.
206 * i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
207 for `subl' and `xorl' instructions.
209 2003-12-13 Jim Blandy <jimb@redhat.com>
211 * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
212 Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
213 to strcmp and strncmp.
215 * osabi.c (gdbarch_init_osabi): Reformat error message with better
218 2003-12-13 Mark Kettenis <kettenis@gnu.org>
220 * blockframe.c (inside_main_func): Reformat. Introduce new local
221 variables to prevent long lines. Update comments to reflect
224 2003-12-12 Kevin Buettner <kevinb@redhat.com>
226 From David Mosberger <davidm@hpl.hp.com>:
227 * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
228 with a single unw_dyn_info_t pointer.
229 (libunwind_find_dyn_list): Likewise.
230 * libunwind-frame.h: Likewise.
231 * ia64-tdep.c (ia64_find_unwind_table): Switch to using
232 UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
233 entire unwind-table at once. Support for this table format has
234 been added to libunwind v0.95.
235 (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
236 (ia64_get_dyn_info_list): Adjust for interface change for
237 libunwind_find_dyn_list().
239 2003-12-12 Jeff Johnston <jjohnstn@redhat.com>
241 * breakpoint.c (breakpoint_enabled): New function to test whether
242 breakpoint is active and enabled.
243 (insert_bp_location, insert_breakpoints): Call new function to test
244 for enabled breakpoint.
245 (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
246 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
247 (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
248 (disable_watchpoints_before_interactive_call_start)
249 (breakpoint_re_set_one): Ditto.
250 (bpstat_stop_status): Use new function and simplify test.
252 2003-12-11 Mark Kettenis <kettenis@gnu.org>
254 * observer.c (observer_test_first_observer)
255 (observer_test_second_observer, observer_test_third_observer):
256 Don't define as `static'.
257 (observer_test_first_notification_function)
258 (observer_test_second_notification_function)
259 (observer_test_third_notification_function): Likewise.
261 2003-12-10 Mark Kettenis <kettenis@gnu.org>
263 * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
266 2003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
268 * MAINTAINERS (write after approval): Add myself.
270 2003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
272 * config/h8300/tm-h8300.h (h8300hmode): Remove.
273 (h8300hmode): Likewise.
274 (h8300smode): Likewise.
275 (h8300sxmode): Likewise.
276 (h8300_normal_mode): Likewise.
277 (GDB_TARGET_IS_H8300): Likewise.
278 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
279 * h8300-tdep.c (is_h8300hmode): New function.
280 (is_h8300smode): New function.
281 (is_h8300sxmode): New function.
282 (is_h8300_normal_mode): New function.
283 (BINWORD): Use new functions.
284 (h8300_examine_prologue): Likewise.
285 (h8300_print_register): Likewise.
286 (h8300_print_registers_info): Likewise.
287 (h8300_register_type): Likewise.
288 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
289 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
290 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
291 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
293 2003-12-10 J. Brobecker <brobecker@gnat.com>
295 * frame.c (select_frame): Get the current frame PC using
296 get_frame_address_in_block() instead of get_frame_pc().
297 * stack.c (get_frame_language): Likewise.
299 2003-12-08 Kevin Buettner <kevinb@redhat.com>
301 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
302 remote_desc more than once.
304 2003-12-07 Andrew Cagney <cagney@redhat.com>
306 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
307 directly calling strcmp equivalents. Add disclaimer.
309 2003-12-06 Andrew Cagney <cagney@redhat.com>
311 * remote.c (remote_fetch_registers): For short packets, explicitly
312 supply a zero value. Use regcache_raw_supply. Fix suggested by
315 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>
317 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
318 format to be the i387 extended float format which is used for
319 long doubles stored in memory.
321 2003-12-05 Mark Kettenis <kettenis@gnu.org>
323 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
324 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
325 column instead of translating it.
327 2003-12-04 Michael Chastain <mec.gnu@mindspring.com>
329 Partial fix for PR c++/1465.
331 * cp-support.h (cp_lookup_rtti_type): New function.
332 * cp-support.c (cp_lookup_rtti_type): New function.
333 * gnu-v2-abi.c: Update copyright years.
334 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
335 * gnu-v3-abi.c: Update copyright years.
336 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
338 2003-12-04 J. Brobecker <brobecker@gnat.com>
340 * stabsread.c (read_type): Save a reference to types that are defined
341 as cross references to other types.
343 2003-12-02 Roland McGrath <roland@redhat.com>
345 * thread-db.c (enable_thread_event): Change return type to
346 td_err_e. Return TD_OK or error code.
347 (enable_thread_event_reporting): Update callers.
349 2003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
351 * NEWS: Mention new C++ demangler code.
353 2003-12-03 Andrew Cagney <cagney@redhat.com>
355 * ppc-linux-nat.c (store_register, fetch_register): Convert
356 between ptrace and regcache's wordsize.
357 (ppc_register_u_addr): Use the ptrace wordsize.
359 2003-12-02 Kevin Buettner <kevinb@redhat.com>
361 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
363 2003-12-02 Daniel Jacobowitz <drow@mvista.com>
365 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
366 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
367 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
368 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
370 (dwarf2_read_section): Remove offset and size arguments. Use
371 bfd_get_section_size_before_reloc and sectp->filepos.
372 (dwarf2_has_info): Clear section variables instead of offsets.
373 (dwarf2_locate_sections): Don't initialize the deleted variables.
374 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
375 (dwarf2_build_psymtabs_easy): Likewise.
376 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
377 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
379 (dwarf2_read_section): Update prototype.
380 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
381 Use bfd_get_section_size_before_reloc instead of global size
384 2003-12-01 Michael Chastain <mec.gnu@mindspring.com>
386 * dwarfread.c: Update documentation on the state of dwarf-1.
388 2003-12-01 Andrew Cagney <cagney@redhat.com>
390 Obsolete old MIPS SVr3 and SVr4 systems.
391 * NEWS: Mention obsoleted systems.
392 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
393 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
394 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
396 * config/mips/decstation.mh: Mark as obsolete.
397 * config/mips/littlemips.mh: Mark as obsolete.
398 * config/mips/nm-mips.h: Mark as obsolete.
399 * config/mips/xm-mips.h: Mark as obsolete.
400 * config/mips/news-mips.mh: Mark as obsolete.
401 * config/mips/nm-news-mips.h: Mark as obsolete.
402 * config/mips/riscos.mh: Mark as obsolete.
403 * config/mips/nm-riscos.h: Mark as obsolete.
404 * config/mips/xm-riscos.h: Mark as obsolete.
405 * config/mips/mipsv4.mt: Mark as obsolete.
406 * config/mips/tm-mipsv4.h: Mark as obsolete.
407 * config/mips/xm-mipsv4.h: Mark as obsolete.
409 Obsolete old m68k systems.
410 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
411 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
412 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
413 m680[01]0-sun-sunos3* as obsolete.
414 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
415 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
416 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
417 * config/m68k/sun3os4.mh: Mark file obsolete.
418 * config/m68k/xm-sun3os4.h: Mark file obsolete.
419 * config/m68k/sun3os3.mh: Mark file obsolete.
420 * config/m68k/nm-sun3.h: Mark file obsolete.
421 * config/m68k/xm-sun3.h: Mark file obsolete.
422 * config/m68k/sun2os4.mh: Mark file obsolete.
423 * config/m68k/sun2os3.mh: Mark file obsolete.
424 * config/m68k/nm-sun2.h: Mark file obsolete.
425 * config/m68k/xm-sun2.h: Mark file obsolete.
426 * config/m68k/m68kv4.mh: Mark file obsolete.
427 * config/m68k/nm-sysv4.h: Mark file obsolete.
428 * config/m68k/xm-m68kv4.h: Mark file obsolete.
429 * config/m68k/m68klynx.mh: Mark file obsolete.
430 * config/m68k/nm-m68klynx.h: Mark file obsolete.
431 * config/m68k/dpx2.mh: Mark file obsolete.
432 * config/m68k/xm-dpx2.h: Mark file obsolete.
433 * config/m68k/nm-dpx2.h: Mark file obsolete.
434 * config/m68k/delta68.mh: Mark file obsolete.
435 * config/m68k/xm-delta68.h: Mark file obsolete.
436 * config/m68k/nm-delta68.h: Mark file obsolete.
437 * config/m68k/3b1.mh: Mark file obsolete.
438 * config/m68k/xm-3b1.h: Mark file obsolete.
439 * config/m68k/sun3os4.mt: Mark file obsolete.
440 * config/m68k/tm-sun3os4.h: Mark file obsolete.
441 * config/m68k/sun3os3.mt: Mark file obsolete.
442 * config/m68k/tm-sun3.h: Mark file obsolete.
443 * config/m68k/sun2os4.mt: Mark file obsolete.
444 * config/m68k/tm-sun2os4.h: Mark file obsolete.
445 * config/m68k/sun2os3.mt: Mark file obsolete.
446 * config/m68k/tm-sun2.h: Mark file obsolete.
447 * config/m68k/m68kv4.mt: Mark file obsolete.
448 * config/m68k/tm-m68kv4.h: Mark file obsolete.
449 * config/m68k/m68klynx.mt: Mark file obsolete.
450 * config/m68k/tm-m68klynx.h: Mark file obsolete.
451 * config/m68k/dpx2.mt: Mark file obsolete.
452 * config/m68k/tm-dpx2.h: Mark file obsolete.
453 * config/m68k/delta68.mt: Mark file obsolete.
454 * config/m68k/tm-delta68.h: Mark file obsolete.
455 * config/m68k/3b1.mt: Mark file obsolete.
456 * config/m68k/tm-3b1.h: Mark file obsolete.
458 2003-11-29 Mark Kettenis <kettenis@gnu.org>
460 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
461 (x86_64_reg_class): Remove enum.
462 (merge_classes, classify_argument, examine_argument): Remove
464 (INT_REGS, SSE_REGS): Remove macros.
465 (x86_64_push_arguments): Remove function.
466 (amd64_push_arguments): New function.
467 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
468 x86_64_push_arguments.
470 2003-11-28 Mark Kettenis <kettenis@gnu.org>
472 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
473 zero. Reorganize code a bit.
475 2003-11-27 Mark Kettenis <kettenis@gnu.org>
477 * dwarf2-frame.c: Fix another comment.
479 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
480 (x86_64_use_struct_convention, x86_64_extract_return_value,
481 x86_64_store_return_value): Remove.
482 (amd64_reg_class): New enum.
483 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
484 amd64_return_value): New functions.
485 (x86_64_init_abi): Don't set extract_return_value,
486 store_return_value and use_struct_convention. Set return_value to
488 * i387-tdep.h (i387_return_value): New prototype.
489 * i387-tdep.c (i387_return_value): New function.
491 * dwarf2-frame.c: Fix some comments and whitespace problems.
493 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
494 "gdb_assert.h" and "gdb_string.h".
495 (i386nbsd_r_reg_offset): Rename from regmap.
496 (SIZEOF_STRUCT_REG): Remove.
497 (i386nbsd_supply_reg, fetch_core_registers,
498 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
500 (i386nbsd_aout_supply_regset,
501 i386nbsd_aout_regset_from_core_section): New functions.
502 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
503 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
504 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
505 initialize TDEP->sc_num_regs.
506 (i386nbsdaout_init_abi): New function.
507 (i386nbsdelf_init_abi): Remove initialization of
508 TDEP->num_xmm_regs. Don't set num_regs here.
509 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
510 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
512 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
513 .note.netbsdcore.procinfo section to recognize NetBSD core files.
515 2003-11-26 Michael Chastain <mec.gnu@mindspring.com>
517 * cp-abi.c: Update copyright years.
519 2003-11-25 Andrew Cagney <cagney@redhat.com>
521 * thread-db.c (enable_thread_event): New function. Ensure that BP
523 (enable_thread_event_reporting): Use enable_thread_event.
525 2003-11-25 Michael Snyder <msnyder@redhat.com>
527 * mips-tdep.c (mips_o64_extract_return_value): Correct for
528 NUM_REGS (see changes 2003-06-21).
529 (mips_eabi_extract_return_value): Ditto.
531 2003-11-25 Andrew Cagney <cagney@redhat.com>
533 * infrun.c: Don't include "exec.h".
534 (handle_inferior_event): Pass current_target, instead of exec_ops,
535 to SOLIB_ADD. Add comments.
536 * Makefile.in (infrun.o): Update dependencies.
538 2003-11-24 Daniel Jacobowitz <drow@mvista.com>
540 * NEWS: Mention improved location expression support.
542 2003-11-23 Andrew Cagney <cagney@redhat.com>
544 * Makefile.in (infrun.o): Update dependencies.
545 * infrun.c: Include "exec.h".
546 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
548 2003-11-23 Andrew Cagney <cagney@redhat.com>
550 * frame.c (frame_unwind_signed_register): Delete function.
551 * frame.h (frame_unwind_register_signed): Delete declaration.
552 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
554 * arch-utils.h (generic_cannot_extract_struct_value_address):
557 * defs.h (DEPRECATED_STREQN): Rename STREQN.
558 (DEPRECATED_STREQ): Rename STREQ.
559 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
560 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
561 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
562 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
563 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
564 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
565 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
566 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
567 * source.c, sparc-tdep.c, stack.c, target.c: Update.
569 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
570 * elfread.c (elf_symtab_read): Delete STREQ from comment.
572 2003-11-22 Andrew Cagney <cagney@redhat.com>
574 * frame.c (deprecated_frame_xmalloc): Delete function.
575 (deprecated_set_frame_extra_info_hack): Delete function.
576 (deprecated_set_frame_saved_regs_hack): Delete function.
577 * frame.h (deprecated_frame_xmalloc): Delete declaration.
578 (deprecated_set_frame_extra_info_hack): Delete declaration.
579 (deprecated_set_frame_saved_regs_hack): Delete declaration.
580 * mcore-tdep.c (analyze_dummy_frame): Instead of
581 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
582 and deprecated_set_frame_extra_info_hack use
583 deprecated_frame_xmalloc_with_cleanup.
584 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
585 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
586 deprecated_set_frame_saved_regs_hack.
588 * mips-tdep.c (mips_frame_chain): Delete call to
589 deprecated_inside_entry_file.
591 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
592 (deprecated_set_frame_prev_hack): Delete declaration.
593 * frame.c (deprecated_set_frame_next_hack): Delete function.
594 (deprecated_set_frame_prev_hack): Delete function.
595 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
596 "deprecated_set_frame_next_hack" and
597 "deprecated_set_frame_prev_hack".
598 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
600 * mips-tdep.c (mips_register_convertible): Delete function.
601 (mips_register_convert_to_virtual): Delete function.
602 (mips_register_convert_to_raw): Delete function.
603 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
604 "deprecated_register_convert_to_virtual", or
605 "deprecated_register_convert_to_raw".
606 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
607 32/64 cooked to raw register conversions.
609 * frame.c (deprecated_get_frame_context): Delete function.
610 (deprecated_set_frame_context): Delete function.
611 (struct frame_info): Delete member "context".
612 * frame.h (deprecated_get_frame_context): Delete declaration.
613 (deprecated_set_frame_context): Delete declaration.
615 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
616 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
617 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
618 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
620 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
621 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
623 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
624 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
625 * config/mips/tm-irix5.h: Update copyright.
626 (SIGFRAME_REG_SIZE): Delete macro.
628 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
629 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
631 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
632 * infcall.c (call_function_by_hand): Delete #ifdef
633 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
634 * infcmd.c (print_return_value): Ditto.
636 * mips-tdep.c (skip_prologue_using_sal): New function.
637 (mips32_skip_prologue, mips16_skip_prologue): Use
638 skip_prologue_using_sal to get an upper bound on the search.
640 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
642 * infrun.c (step_into_function): Delete #ifdef
643 PROLOGUE_FIRSTLINE_OVERLAP code.
644 * symtab.c (find_function_start_sal): Ditto.
646 * remote-rdp.c: Update copyright.
647 (rdp_init): #if 0 references to "target_byte_order".
649 * mips-tdep.c (mips_o32_store_return_value): Delete function.
650 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
651 (mips_o32_extract_return_value): Delete function.
652 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
653 (mips_n32n64_extract_return_value): Delete function.
654 (mips_n32n64_store_return_value): Delete function.
655 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
656 instead of "store_return_value", "extract_return_value", and
657 "use_struct_convention".
658 (mips_n32n64_use_struct_convention): Delete function.
660 2003-11-21 Kevin Buettner <kevinb@redhat.com>
662 * frv-tdep.c (frv_frame_this_id): Eliminate call to
665 2003-11-20 Mark Kettenis <kettenis@gnu.org>
667 * i386-tdep.c (i386_extract_return_value,
668 i386_store_return_value): Add gdbarch argument. Use it instead of
669 determining it from REGCACHE. Remove recursive call for
670 structures with a single member.
671 (i386_use_struct_convention): Remove.
672 (i386_reg_struct_return_p): New function.
673 (i386_return_value): New function.
674 (i386_gdbarch_init): Set return_value, don't set
675 extract_return_value, store_return_value and
676 use_struct_convention.
677 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
679 2003-11-20 Jim Blandy <jimb@redhat.com>
681 * osabi.c (_initialize_gdb_osabi): Don't return before registering
682 the 'set osabi' and 'show osabi' commands.
684 2003-11-19 Mark Kettenis <kettenis@gnu.org>
686 * frame.c (get_prev_frame): Use result from
687 get_frame_address_in_block instead of get_frame_pc as argument to
688 inside_main_func. Fixes PR backtrace/1435.
690 2003-11-19 Andrew Cagney <cagney@redhat.com>
692 * stack.c (return_command): Handle "void", "legacy" and "unknown
693 location" return values separatly.
694 * values.c (using_struct_return): Return 0 for a "void" return
695 type. Mention "register_value_being_returned".
696 (register_value_being_returned): Mention "using_struct_return".
698 2003-11-19 Daniel Jacobowitz <drow@mvista.com>
700 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
701 (frame_base_offset): Delete.
702 (read_func_scope): Delete call to decode_locdesc.
703 (decode_locdesc): Update comments. Don't set the removed variables.
704 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
707 2003-11-18 Daniel Jacobowitz <drow@mvista.com>
709 * dwarf2read.c (optimized_out, islocal): Remove.
710 (decode_locdesc): Update comments. Don't set optimized_out
713 2003-11-17 Jeff Johnston <jjohnstn@redhat.com>
714 David Mosberger <davidm@hpl.hp.com>
716 * ia64-tdep.c: Include elf.h.
717 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
719 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
720 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
721 (ia64_is_fpreg, ia64_access_reg): Ditto.
722 (ia64_access_fpreg, ia64_access_mem): Ditto.
723 (get_kernel_table): Ditto.
724 (ia64_find_unwind_table): Ditto.
725 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
726 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
727 (ia64_libunwind_frame_prev_register): Ditto.
728 (ia64_libunwind_frame_sniffer): Ditto.
729 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
730 sniffer. Register libunwind functions needed by generic
731 libunwind frame code using libunwind_frame_set_descr().
733 2003-11-16 Daniel Jacobowitz <drow@mvista.com>
735 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
736 bp_shlib_disabled breakpoint if there is a shared library mapped
737 at its expected address.
739 2003-11-16 Andrew Cagney <cagney@redhat.com>
741 * configure.tgt: Delete mips*tx39*-elf*.
742 * config/mips/tm-tx39.h: Delete file.
743 * config/mips/tx39.mt: Delete file.
744 * config/mips/tx39.mt: Delete file.
746 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
747 * remote-mips.c (common_open): Instead of
748 "mips_read_register_type" and "mips_set_processor_type_command"
749 call "deprecated_mips_set_processor_regs_hack".
750 * config/mips/tm-mips.h (mips_read_processor_type): Delete
752 (mips_set_processor_type_command): Delete declaration.
753 * mips-tdep.c (mips_gdbarch_init): Update comment.
754 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
755 (mips_set_processor_type): Delete function.
756 (NUM_MIPS_PROCESSOR_REGS): Define.
757 (mips_show_processor_type_command): Delete function.
758 (mips_set_processor_type_command): Delete function.
759 (tmp_mips_processor_type): Delete.
760 (mips_processor_type): Delete.
761 (mips_processor_type_table): Delete.
762 (mips_r3051_reg_names): Delete.
763 (mips_r3081_reg_names): Delete.
764 (mips_lsi33k_reg_names): Delete.
765 (mips_processor_reg_names): Delete.
766 (mips_read_processor_type): Delete function.
767 (deprecated_mips_set_processor_regs_hack): New function.
768 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
769 (mips_register_name): Get the processor names from the tdep.
770 (mips_tx39_reg_names): New array.
771 (mips_generic_reg_names): Wire to a standard set of names.
772 (mips_gdbarch_init): Set "mips_processor_reg_names".
773 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
774 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
775 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
777 2003-11-16 Andrew Cagney <cagney@redhat.com>
779 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
780 (mips_fpa0_regnum, mips_regnum): New function.
781 (mips_gdbarch_init): Fill in the "regnum" fields.
782 * mips-tdep.h (struct mips_regnum): Define.
783 (mips_regnum): Declare.
784 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
785 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
786 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
787 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
788 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
789 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
790 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
791 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
792 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
793 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
794 * remote-mips.c: Include "mips-tdep.h". Update.
795 * mipsnbsd-tdep.c: Update.
796 * mipsv4-nat.c: Update.
797 * mips-tdep.c: Update.
798 * mips-nat.c: Update.
799 * mips-linux-tdep.c: Update.
800 * mips-linux-nat.c: Update.
801 * irix5-nat.c: Update.
802 * dve3900-rom.c: Include "mips-tdep.h". Update.
803 (ignore_packet): Supress GCC warning.
804 * config/mips/nm-riscos.h: Update.
806 2003-11-16 Andrew Cagney <cagney@redhat.com>
808 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
810 (mips_register_raw_size): Delete function.
811 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
812 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
813 Check and set "mips64_transfers_32bit_regs_p".
814 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
815 (mips_register_convertible): Check the architecture's
816 "mips64_transfers_32bit_regs_p".
817 (set_mips64_transfers_32bit_regs): New function.
818 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
819 "set remote-mips64-transfers-32bit-regs" command. Specify
820 set_mips64_transfers_32bit_regs as the set function.
821 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
823 2003-11-16 Mark Kettenis <kettenis@gnu.org>
825 * i386-tdep.h (i386_supply_gregset): Provide prototype.
826 * i386-tdep.c (i386_supply_gregset): Make public.
828 2003-11-16 Andrew Cagney <cagney@redhat.com>
830 * mips-tdep.c (mips_register_byte): Delete function.
831 (mips_gdbarch_init): Do not set "deprecated_register_byte".
832 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
833 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
834 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
836 2003-11-16 Mark Kettenis <kettenis@gnu.org>
838 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
840 2003-11-16 Andrew Cagney <cagney@redhat.com>
842 * config/mips/linux64.mt: Delete file.
843 * config/mips/tm-linux64.h: Delete file.
844 * config/mips/tm-mips64.h: Delete file.
845 * config/mips/embed64.mt: Delete file.
846 * config/djgpp/fnchange.lst: Update.
847 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
848 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
849 * config/mips/tm-irix6.h: Update copyright. Include
850 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
851 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
854 2003-11-15 Andrew Cagney <cagney@redhat.com>
856 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
857 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
858 n32 registers 64 bit.
859 (mips_register_raw_size, mips_register_byte): For pseudo
860 registers, use the register's pseudo size and not the
861 corresponding raw register's size.
862 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
863 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
864 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
865 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
867 2003-11-15 Andrew Cagney <cagney@redhat.com>
869 * mips-tdep.c (struct gdbarch_tdep): Delete member
870 gdb_target_is_mips64.
871 (GDB_TARGET_IS_MIPS64): Delete macro.
872 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
873 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
874 (mips_addr_bits_remove): Simplify.
876 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
879 Replace MIPS_REGSIZE with mips_regsize.
880 * mips-tdep.c (mips_regsize): New function.
881 * mips-tdep.h (mips_regsize): Declare.
882 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
883 (SIZEOF_STRUCT_REG): Update.
884 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
885 (mipsnbsd_fill_reg): Update.
886 (mipsnbsd_supply_fpreg): Update.
887 (mipsnbsd_fill_fpreg): Update.
888 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
889 * mips-tdep.c (mips_register_raw_size): Update.
890 (mips_register_type): Update.
891 (SIGFRAME_BASE): Update.
892 (SIGFRAME_PC_OFF): Update.
893 (SIGFRAME_REGSAVE_OFF): Update.
894 (SIGFRAME_FPREGSAVE_OFF): Update.
895 (SIGFRAME_REG_SIZE): Update.
896 (mips32_heuristic_proc_desc): Update.
897 (print_gp_register_row): Update.
898 (mips_dump_tdep): Do not print MIPS_REGSIZE.
899 * irix5-nat.c (supply_gregset): Update.
900 (fetch_core_registers): Update.
901 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
902 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
903 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
904 (MIPS_REGISTER_BYTE): Update.
905 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
907 2003-11-15 Andrew Cagney <cagney@redhat.com>
909 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
910 USE_REGISTER_NOT_ARG.
911 * stabsread.c (define_symbol): Update.
913 2003-11-15 Andrew Cagney <cagney@redhat.com>
915 * bcache.h (deprecated_bcache): Declare.
916 (bcache): Make returned buffer constant.
917 * bcache.c (deprecated_bcache): New function.
918 (bcache_data): New function.
919 (bcache): Call bcache data.
920 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
921 (add_psymbol_with_dem_name_to_list): Ditto.
923 2003-11-15 Mark Kettenis <kettenis@gnu.org>
925 * glibc-tdep.h (struct gdbarch): Declare opaque.
926 (glibc_skip_solib_resolver): Adjust prototype.
927 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
928 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
929 (arm_linux_init_abi): Set skip_solib_resolver.
930 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
931 (i386_linux_init_abi): Set skip_solib_resolver.
932 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
933 (arm_linux_skip_solib_resolver): Remove prototype.
934 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
935 (i386_linux_skip_solib_resolver): Remove prototype.
937 2003-11-14 Mark Kettenis <kettenis@gnu.org>
939 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
941 * gdbarch.c, gdbarch.h: Regenerate.
942 * infrun.c (handle_inferior_event): Call
943 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
944 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
946 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
949 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
951 * libunwind-frame.c: New file.
952 * libunwind-frame.h: New file.
953 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
954 * configure.in: Add --with-libunwind option support. Define
955 HAVE_LIBUNWIND if libunwind support selected / defaulted.
956 Also check for libunwind.h and libunwind-ia64.h headers.
957 * configure: Regenerated.
958 * Makefile.in: Add support for libunwind-frame.o.
959 * config.in: Regenerated.
961 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
963 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
964 set up the ia64 linux native target method for getting the kernel
966 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
967 * inftarg.c (child_xfer_partial): Enable section of code to
968 handle TARGET_OBJECT_UNWIND_TABLE.
969 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
971 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
973 * config/arm/nbsd.mt (TM_FILE): Define.
974 * config/arm/tm-nbsd.h: New file.
976 2003-11-14 Andrew Cagney <cagney@redhat.com>
978 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
979 * ppc-sysv-tdep.c: Include "objfiles.h".
980 (ppc64_sysv_abi_push_dummy_call): Provide the
981 the FN's objfile when looking for the descriptor.
983 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
984 "name_of_malloc" to ".malloc".
986 2003-11-13 Mark Kettenis <kettenis@gnu.org>
988 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
990 2003-11-13 David Carlton <carlton@kealia.com>
992 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
994 2003-11-13 Andrew Cagney <cagney@redhat.com>
996 * arch-utils.h (selected_architecture_name): Declare.
997 (selected_byte_order): Declare.
998 * arch-utils.c (selected_byte_order): New function.
999 (selected_architecture_name): New function.
1000 (target_architecture_auto): Make static.
1001 (set_architecture_string): Make static.
1002 (target_byte_order): Make static.
1003 (target_byte_order_auto): Make static.
1004 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
1005 non-multi-arch definition.
1006 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
1007 (target_byte_order, target_architecture): Delete declaration.
1008 (target_byte_order_auto, target_architecture_auto): Ditto.
1009 * gdbarch.h: Re-generate.
1010 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
1011 "selected_byte_order".
1013 2003-11-13 Andrew Cagney <cagney@redhat.com>
1015 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
1017 2003-11-13 Jim Blandy <jimb@redhat.com>
1019 * cp-namespace.c: Doc fix.
1021 2003-11-12 Michael Snyder <msnyder@redhat.com>
1023 * sh64_tdep.c: Regularize some names.
1024 (sh_sh64_register_name): Rename to sh64_register_name.
1025 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
1026 (sh_sh64_register_byte): Rename to sh64_register_byte.
1027 (sh_sh64_build_float_register_type):
1028 Rename to sh64_build_float_register_type.
1029 (sh_sh64_register_convert_to_virtual):
1030 Rename to sh64_register_convert_to_virtual.
1031 (sh_sh64_register_convert_to_raw):
1032 Rename to sh64_register_convert_to_raw.
1034 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
1035 sh64_media_reg_base_num, sh64_compact_reg_base_num,
1036 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
1037 sh64_extract_return_value, sh64_show_media_regs,
1038 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
1039 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
1040 sh64_pseudo_register_read, sh64_pseudo_register_write,
1041 sh64_do_pseudo_register, sh_compact_print_registers_info):
1042 Delete unused variable 'tdep'.
1044 * sh64-tdep.c: Coding standard and spelling comment fixes.
1045 (sh64_extract_return_value): Replace deprecated_store_floating
1046 with store_typed_floating.
1047 (sh_sh64_register_convert_to_raw): Replace
1048 deprecated_store_floating with store_typed_floating.
1049 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
1050 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
1051 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
1052 sh64_extract_struct_value_address, sh64_pop_frame,
1053 sh64_extract_return_value, sh64_store_return_value,
1054 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
1055 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
1056 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1057 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
1058 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
1059 deprecated_register_virtual_type, deprecated_register_raw_size,
1060 deprecated_max_register_raw_size, or
1061 deprecated_max_register_virtual_size. Instead, just set
1062 gdbarch_register_type.
1063 (sh_sh64_register_raw_size): Delete.
1064 (sh_sh64_register_virtual_size): Delete.
1066 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
1068 * dwarf2read.c (struct dwarf2_cu): New type.
1070 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
1071 dwarf2_cu structure to pass down.
1073 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
1074 (add_partial_enumeration, locate_pdi_sibling, process_die)
1075 (read_file_scope, read_func_scope)
1076 (read_lexical_block_scope, dwarf2_get_pc_bounds)
1077 (dwarf2_add_field, dwarf2_attach_fields_to_type)
1078 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
1079 (read_structure_scope, read_enumeration, read_array_type)
1080 (read_common_block, read_namespace, read_tag_pointer_type)
1081 (read_tag_ptr_to_member_type, read_tag_reference_type)
1082 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
1083 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
1084 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
1085 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
1086 (read_full_die. read_attribute_value, read_attribute)
1087 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
1088 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
1089 (die_containing_type, type_at_offset, tag_type_to_type)
1090 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
1091 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
1093 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
1096 * breakpoint.c (insert_bp_location): Fix a logic error by returning
1097 0 after a catchpoint fails.
1099 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
1101 * mips-tdep.c (msymbol_size): Delete.
1103 2003-11-07 Michael Chastain <mec@shout.net>
1105 * symtab.h (struct minimal_symbol): Add size.
1106 * dbxread.c: Use it.
1107 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
1108 Rename to record_minimal_symbol.
1109 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
1110 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
1111 (install_minimal_symbols): Ditto.
1112 * objfiles.c (terminate_minimal_symbol_table): Ditto.
1113 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
1114 * m68hc11-tdep.c: Ditto.
1115 * mips-tdep.c: Ditto.
1116 * sh64-tdep.c: Ditto.
1118 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
1120 * MAINTAINERS: Change my e-mail address.
1122 2003-11-10 Andrew Cagney <cagney@redhat.com>
1124 * gdbarch.sh (return_value): Replace "inval" and "outval" with
1125 "readbuf" and "writebuf".
1126 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1127 * d10v-tdep.c (d10v_return_value): Ditto.
1128 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1129 (ppc_sysv_abi_broken_return_value): Ditto.
1130 (ppc64_sysv_abi_return_value): Ditto.
1131 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
1132 (ppc_sysv_abi_return_value): Ditto.
1133 (ppc_sysv_abi_broken_return_value): Ditto.
1134 (ppc64_sysv_abi_return_value): Ditto.
1135 * values.c (register_value_being_returned): Update call.
1136 * stack.c (return_command): Update call.
1137 * gdbarch.h, gdbarch.c: Re-generate.
1139 * target.h (struct target_ops): Order xfer buffer parameters "read
1140 write" not "write read".
1141 * bfd-target.c (target_bfd_xfer_partial): Update.
1142 * remote.c (remote_xfer_partial): Update.
1143 * inftarg.c (child_xfer_partial): Update.
1144 * target.c (default_xfer_partial): Update.
1145 (target_read_partial, target_write_partial): Update.
1146 (debug_to_xfer_partial): Update.
1148 * arch-utils.h, arch-utils.c: Fix typo in comment.
1150 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
1151 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1152 (set_gdbarch_from_file): Call
1153 "deprecated_current_gdbarch_select_hack".
1155 2003-11-09 Andrew Cagney <cagney@redhat.com>
1157 * arch-utils.c (gdbarch_update_p): New function.
1158 * gdbarch.sh (gdbarch_update_p): Delete function.
1159 (find_arch_by_info, gdbarch_find_by_info): New functions.
1160 (deprecated_current_gdbarch_select_hack): New function.
1161 * gdbarch.c: Re-generate.
1163 * gdbarch.sh (clear_gdbarch_swap): Delete function.
1164 (swapout_gdbarch_swap): Delete function.
1165 (swapin_gdbarch_swap): Delete function.
1166 (init_gdbarch_swap): Delete function.
1167 (initialize_non_multiarch): Delete function.
1168 (current_gdbarch_swap_in_hack): New function.
1169 (current_gdbarch_swap_out_hack): New function.
1170 (current_gdbarch_swap_init_hack): New function.
1171 * gdbarch.c: Re-generate.
1173 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
1174 parameter to "current_gdbarch". Add comment explaining why.
1175 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
1176 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
1177 * gdbarch.c: Re-generate.
1179 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
1180 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
1181 * config/s390/xm-linux.h: Delete file.
1182 * config/m88k/xm-delta88v4.h: Delete stray.
1184 * Makefile.in (arch-utils.o): Update dependencies.
1185 * arch-utils.c: Include "osabi.h".
1186 (gdbarch_info_fill): New function.
1187 * arch-utils.h (gdbarch_info_fill): Declare.
1188 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
1189 * gdbarch.c: Re-generate.
1191 2003-11-09 Mark Kettenis <kettenis@gnu.org>
1192 David S. Miller <davem@redhat.com>
1194 * glibc-tdep.c, glibc-tdep.h: New files.
1195 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
1196 * config/i386/linux.mt (TDEPFILES): Likewise.
1197 * i386-linux-tdep.c (glibc-tdep.h): Include.
1198 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1199 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1200 * arm-linux-tdep.c (glibc-tdep.h): Include.
1201 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1202 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1203 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
1204 (glibc_tdep_h): Define.
1205 (glibc-tdep.o): Add dependencies.
1206 (arm-linux-tdep.o): Update dependencies.
1207 (i386-linux-tdep.o): Likewise.
1209 2003-11-09 Andrew Cagney <cagney@redhat.com>
1211 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1212 * config/mips/nm-irix6.h: Delete file.
1213 * config/mips/nm-linux.h: Update copyright.
1214 (MIPS_GNULINUX_TARGET): Delete macro.
1215 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1216 * config/mips/xm-irix6.h: Delete file.
1217 * config/mips/linux.mh (XM_FILE): Delete definition.
1218 * config/mips/xm-linux.h: Delete file.
1220 2003-11-09 Andrew Cagney <cagney@redhat.com>
1222 * d10v-tdep.c (d10v_return_value): New function.
1223 (d10v_use_struct_convention): Delete function.
1224 (d10v_store_return_value): Delete function.
1225 (d10v_extract_struct_value_address): Delete function.
1226 (d10v_gdbarch_init): Set "return_value" instead of
1227 "extract_return_value", "store_return_value",
1228 "extract_struct_value_address", and "use_struct_convention".
1229 (RET1_REGNUM): Delete const.
1231 2003-11-09 Mark Kettenis <kettenis@gnu.org>
1233 From David S. Miller <davem@redhat.com>:
1234 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1235 * gdbarch.c, gdbarch.h: Regenerated.
1236 * arch-utils.c (generic_skip_solib_resolver): New function.
1237 * arch-utils.h (generic_skip_solib_resolver): New prototype.
1238 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1240 2003-11-07 Andrew Cagney <cagney@redhat.com>
1242 * top.c (print_gdb_version): Replace STREQ with strcmp.
1243 * valops.c (value_struct_elt_for_reference): Ditto.
1244 (value_struct_elt_for_reference): Ditto.
1245 * symtab.c (gdb_mangle_name): Ditto.
1246 (find_line_symtab): Ditto.
1247 * symmisc.c (maintenance_print_symbols): Ditto.
1248 * symfile.c (symbol_file_command): Ditto.
1249 * stabsread.c (define_symbol, read_type): Ditto.
1250 (cleanup_undefined_types, scan_file_globals): Ditto.
1251 * solib.c (solib_map_sections): Ditto.
1252 * solib-svr4.c (bfd_lookup_symbol): Ditto.
1253 * rs6000-tdep.c (skip_prologue): Ditto.
1254 * p-valprint.c (pascal_value_print): Ditto.
1255 (pascal_object_is_vtbl_ptr_type): Ditto.
1256 * objfiles.c (in_plt_section): Ditto.
1257 * minsyms.c (lookup_minimal_symbol): Ditto.
1258 (compact_minimal_symbols): Ditto.
1259 (find_solib_trampoline_target): Ditto.
1260 * mdebugread.c (parse_type): Ditto.
1261 * language.c (set_language_command): Ditto.
1262 (set_type_command, set_range_command): Ditto.
1263 * f-lang.c (add_common_block): Ditto.
1264 (add_common_block): Ditto.
1265 (find_first_common_named): Ditto.
1266 (patch_all_commons_by_name): Ditto.
1267 * elfread.c (elf_locate_sections): Ditto.
1268 (elf_locate_sections): Ditto.
1269 (elfstab_offset_sections): Ditto.
1270 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1271 * dbxread.c (add_old_header_file): Ditto.
1272 (find_corresponding_bincl_psymtab): Ditto.
1273 (read_dbx_symtab, process_one_symbol): Ditto.
1274 * coffread.c (patch_opaque_types): Ditto.
1275 * cli/cli-decode.c (delete_cmd): Ditto.
1276 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1277 * c-typeprint.c (c_type_print_base): Ditto.
1278 * breakpoint.c (bpstat_stop_status): Ditto.
1279 (clear_command, breakpoint_re_set_one): Ditto.
1281 2003-11-07 Andrew Cagney <cagney@redhat.com>
1283 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1284 * bcache.c (struct bstring): Make "length" an unsigned short, add
1286 (struct bcache): Add "half_hash_error_count".
1287 (bcache): Compute and save the "half_hash". Compare the
1288 "half_hash" before comparing the length. Update
1289 half_hash_error_count.
1291 2003-11-07 Andrew Cagney <cagney@redhat.com>
1293 * inftarg.c (child_xfer_partial): New function
1294 (init_child_ops): Set "to_xfer_partial".
1296 2003-11-07 Andrew Cagney <cagney@redhat.com>
1298 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1299 set "return_value" instead of "use_struct_convention".
1300 (ppc_linux_use_struct_convention): Delete function.
1301 (ppc_linux_return_value): New function.
1302 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1303 (ppc_sysv_abi_broken_return_value): New function.
1304 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1305 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1307 (ppc_sysv_abi_extract_return_value): Delete function.
1308 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1309 (ppc_sysv_abi_store_return_value): Delete function.
1310 (ppc_sysv_abi_broken_store_return_value): Delete function.
1311 (ppc_sysv_abi_use_struct_convention): Delete function.
1312 (ppc64_sysv_abi_use_struct_convention): Delete function.
1313 (ppc64_sysv_abi_extract_return_value): Delete function.
1314 (ppc64_sysv_abi_store_return_value): Delete function.
1315 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1316 (ppcnbsd_init_abi): Set "return_value", instead of
1317 "use_struct_convention", "extract_return_value", and
1318 "store_return_value".
1319 (ppcnbsd_use_struct_convention): Delete function.
1320 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1321 (ppc_sysv_abi_return_value): Declare.
1322 (ppc_sysv_abi_broken_return_value): Declare.
1323 (ppc_sysv_abi_use_struct_convention): Delete.
1324 (ppc_sysv_abi_store_return_value): Delete.
1325 (ppc_sysv_abi_extract_return_value): Delete.
1326 (ppc_sysv_abi_broken_store_return_value): Delete.
1327 (ppc_sysv_abi_broken_extract_return_value): Delete.
1328 (ppc64_sysv_abi_use_struct_convention): Delete.
1329 (ppc64_sysv_abi_extract_return_value): Delete.
1330 (ppc64_sysv_abi_store_return_value): Delete.
1331 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1332 set "return_value" instead of "extract_return_value",
1333 "store_return_value", and "use_struct_convention".
1335 2003-11-07 Mark Kettenis <kettenis@gnu.org>
1337 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1339 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1342 2003-11-07 Mark Kettenis <kettenis@gnu.org>
1344 * fbsd-proc.c: Fix formatting.
1346 2003-11-06 Kevin Buettner <kevinb@redhat.com>
1348 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1350 (new_variant): Set name for iacc0_regnum.
1351 (frv_register_name): Accommodate pseudo-registers.
1352 (frv_register_type): Add case for iacc0_regnum.
1353 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1354 (frv_gdbarch_init): Set number of pseudo registers. Establish
1355 pseudo-register read/write methods.
1357 2003-11-06 Andrew Cagney <cagney@redhat.com>
1359 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1360 * top.c (command_line_input): Ditto.
1361 * objc-exp.y (yylex): Ditto.
1362 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1363 * jv-exp.y (yylex): Ditto.
1364 * f-exp.y (yylex): Ditto.
1365 * event-top.c (command_line_handler): Ditto.
1366 * environ.c (get_in_environ): Ditto.
1367 (set_in_environ): Ditto.
1368 * dwarfread.c (handle_producer): Ditto.
1369 * dbxread.c (process_one_symbol): Ditto.
1370 * c-typeprint.c (c_type_print_base): Ditto.
1371 * c-exp.y (yylex): Ditto.
1373 2003-11-06 Andrew Cagney <cagney@redhat.com>
1374 Jeff Johnston <jjohnstn@redhat.com>
1376 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1377 (init_dummy_target): Set "to_xfer_partial".
1379 2003-11-06 Andrew Cagney <cagney@redhat.com>
1381 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1382 REGISTER_CONVENTION.
1384 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1386 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1389 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1391 * breakpoint.c (remove_breakpoint): Take an bp_location
1392 instead of a breakpoint argument. Check the bp_location's type.
1393 Fix a reversed condition for hardware breakpoints.
1395 (insert_bp_location): Update call to remove_breakpoint.
1396 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1397 (remove_hw_watchpoints): Likewise.
1398 (reattach_breakpoints): Likewise.
1399 (detach_breakpoints): Likewise.
1400 (delete_breakpoint): Likewise.
1402 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1404 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1405 (beakpoint_init_inferior): Likewise.
1406 (breakpoint_here_p): Likewise. Only check addresses for software
1407 or hardware breakpoints.
1408 (breakpoint_inserted_here_p): Likewise.
1409 (breakpoint_thread_match): Likewise. Correct comment.
1410 (bpstat_have_active_hw_watchpoints): Likewise.
1411 (check_duplicates): Likewise.
1413 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1415 * breakpoints.c (insert_bp_location): New function, broken out
1416 from insert_breakpoints. Work on an bp_location instead of a
1418 (insert_breakpoints): Use it.
1420 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1422 * breakpoint.h (struct bp_location): Add section.
1423 (struct breakpoint): Remove section.
1424 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1425 (breakpoint_here_p, breakpoint_inserted_here_p)
1426 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1427 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1428 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1429 section through loc.
1431 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1433 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1434 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1436 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1438 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1439 arguments. Initialize owner and type for the new breakpoint
1441 (set_raw_breakpoint): Update call to allocate_bp_location.
1443 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1445 * breakpoint.h (struct bp_location): Add a chain pointer.
1446 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1448 (bp_location_chain): New variable.
1449 (allocate_bp_location): New function.
1450 (set_raw_breakpoint): Use it.
1451 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1453 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1455 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1456 (struct breakpoint): Remove address, shadow_contents, inserted,
1457 requested_address, and duplicate. Add a struct bp_location.
1458 * breakpoint.c (condition_command, read_memory_nobpt)
1459 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1460 (reattach_breakpoints, update_breakpoints_after_exec)
1461 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1462 (breakpoint_init_inferior, breakpoint_here_p)
1463 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1464 (breakpoint_thread_match, bpstat_stop_status)
1465 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1466 (describe_other_breakpoints, check_duplicates)
1467 (make_breakpoint_permanent, create_thread_event_breakpoint)
1468 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1469 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1470 (watch_command_1, print_one_exception_catchpoint)
1471 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1472 use the breakpoint's ->loc.
1473 (set_raw_breakpoint): Likewise. Initialize ->loc.
1474 (delete_breakpoint): Likewise. Free ->loc.
1476 2003-11-05 Andrew Cagney <cagney@redhat.com>
1478 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1480 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1481 * config/i386/tm-cygwin.h
1482 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1483 * config/powerpc/tm-linux.h
1484 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1485 (at_subroutine_call_instruction_target): Delete declaration.
1486 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1487 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1488 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1490 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1491 "struct bfd_section" and "struct bfd".
1492 * target.h (struct section_table): Ditto.
1493 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1494 * solib-svr4.c (elf_locate_base): Ditto.
1495 * pa64solib.c (dld_cache_t): Ditto.
1496 * objfiles.h (struct obj_section): Ditto.
1497 * objfiles.c (add_to_objfile_sections): Ditto.
1498 * exec.c (bfdsec_to_vmap): Ditto.
1499 (add_to_section_table): Ditto.
1500 (build_section_table): Ditto.
1501 * corelow.c (get_core_register_section): Ditto.
1502 * coffread.c (find_linenos): Ditto.
1503 * elfread.c (elf_interpreter): Delete #if0'd function.
1505 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1506 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1507 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1508 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1510 * arch-utils.h (generic_cannot_extract_struct_value_address):
1512 * wince.c (_initialize_wince): Fix multi-line string.
1513 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1515 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1517 * top.c (execute_command): Fix broken logic for command execution
1518 while inferior is running in async mode.
1520 2003-11-06 Mark Kettenis <kettenis@gnu.org>
1522 * dwarf2-frame.c (execute_cfa_program): Mark register as
1523 REG_SAVED_REG for DW_CFA_register opcode.
1525 2003-11-05 Mark Kettenis <kettenis@gnu.org>
1527 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1528 %rsp, %rip and %eflags to match ABI-change.
1530 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1532 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1533 (ia64_gdbarch_init): Don't bother calculating the os.
1534 Instead use the gdbarch_info struct and look at the osabi field.
1535 Also use gdbarch_list_lookup_by_info() to look for a
1538 2003-11-05 Kevin Buettner <kevinb@redhat.com>
1540 * frv-tdep.c (frv_register_byte): Delete.
1541 (frv_extract_return_value, frv_store_return_value)
1542 (frv_extract_struct_value_address): Don't call frv_register_byte().
1543 Convert to non-deprecated form.
1544 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1545 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1546 set_gdbarch_deprecated_store_return_value(), and
1547 set_gdbarch_deprecated_extract_struct_value_address() into
1548 non-deprecated forms.
1550 2003-11-05 Andrew Cagney <cagney@redhat.com>
1552 * mips-tdep.c (mips_dump_tdep): Do not print
1553 PRINT_EXTRA_FRAME_INFO.
1554 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1555 Rename PRINT_EXTRA_FRAME_INFO.
1556 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1557 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1558 (mips_print_extra_frame_info): Delete declaration.
1559 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1561 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1563 * coffread.c (coff_symtab_read): Remove passing of info parameter
1564 to prim_record_minimal_symbol_and_info.
1566 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1568 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1569 (decode_base_type): Delete ifdeffed out code.
1571 2003-11-04 Andrew Cagney <cagney@redhat.com>
1573 * symtab.c (find_active_alias): Delete function.
1574 (lookup_block_symbol): Delete alias code.
1575 * stabsread.c (resolve_live_range): Delete function.
1576 (add_live_range): Delete function.
1577 (resolve_symbol_reference): Delete function.
1578 (define_symbol): Delete live range and alias code.
1579 (scan_file_globals): Delete alias code.
1580 * symtab.h (SYMBOL_RANGES): Delete macro.
1581 (struct range_list): Delete structure.
1582 (struct symbol): Delete field "ranges".
1583 (SYMBOL_ALIASES): Delete macro.
1584 (struct alias_list): Delete structure.
1585 (struct symbol): Delete field "aliases".
1587 2003-11-04 Michael Snyder <msnyder@redhat.com>
1589 * MAINTAINERS: Remove myself as owner of breakpoints and
1592 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
1594 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1595 (sh_sh4al_dsp_register_name): Ditto.
1596 (sh4_nofpu_show_regs): Ditto.
1597 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1598 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1600 2003-11-03 Andrew Cagney <cagney@redhat.com>
1602 * bcache.c: Include "gdb_assert.h".
1603 (struct bcache): Add fields "expand_count" and
1604 "expand_hash_count".
1605 (expand_hash_table): Update the expand counts.
1606 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1607 on object sizes and hashes.
1608 * Makefile.in (bcache.o): Update dependencies.
1610 2003-11-03 Andrew Cagney <cagney@redhat.com>
1612 * exec.c (xfer_memory): Eliminate xfer_fn.
1614 2003-10-31 Kevin Buettner <kevinb@redhat.com>
1616 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1617 (opcodes/frv-desc.h): Include.
1618 (iacc0h_regnum, iacc0l_regnum): Define.
1619 (last_spr_regnum, frv_num_regs): Update.
1620 (new_variant): Don't supply default names for holes in the SPRs.
1621 Supply names for iacc0h_regnum and iacc0l_regnum.
1622 (frv_register_type): Use symbolic constants first_fpr_regnum and
1623 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1624 builtin_type_int instead of builtin_type_int32.
1625 (frv_register_sim_regno): New function.
1626 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1627 * Makefile.in (gdb_sim_frv_h): Define.
1628 (frv-tdep.o): Update dependencies.
1630 2003-10-31 Andrew Cagney <cagney@redhat.com>
1632 * avr-tdep.c (avr_frame_this_id): Do not call
1633 deprecated_inside_entry_file.
1634 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1635 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1636 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1637 * arm-tdep.c (arm_prologue_this_id): Ditto.
1638 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1640 2003-10-31 Jim Blandy <jimb@redhat.com>
1642 * elfread.c (elf_symtab_read): Allocate correct number of tail
1643 elements to sectinfo structure. (Fix from Woody LaRue.)
1645 2003-10-31 Andrew Cagney <cagney@redhat.com>
1647 * stack.c (return_command): Use get_frame_type, instead of
1648 CALL_DUMMY_HAS_COMPLETED.
1649 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1650 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1652 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1654 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1655 explicitly specify size of array.
1656 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1659 2003-10-31 Andrew Cagney <cagney@redhat.com>
1661 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1663 (s390_gdbarch_init): Set extract_struct_value_address.
1664 * arch-utils.c (generic_cannot_extract_struct_value_address):
1666 * arch-utils.h (generic_cannot_extract_struct_value_address):
1669 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1671 * i386-linux-nat.c (fetch_core_registers): Remove.
1672 (linux_elf_core_fns): Remove.
1673 (_initialize_i386_linux_nat): Remove.
1675 2003-10-31 Andrew Cagney <cagney@redhat.com>
1677 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1679 (exec_entry_point): New function.
1680 (enable_break): Create a "tmp_bfd_target", use that and
1681 entry_point_address when computing the relocation offset.
1682 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1683 * Makefile.in (solib-svr4.o): Update dependencies.
1685 2003-10-31 Andrew Cagney <cagney@redhat.com>
1687 * defs.h (XZALLOC): Define.
1688 * target.h (struct target_ops): Add "to_data";
1689 * bfd-target.h, bfd-target.c: New files.
1690 * Makefile.in (SFILES): Add "bfd-target.c".
1691 (COMMON_OBS): Add "bfd-target.o".
1692 (bfd-target.o): Specify dependencies.
1693 (bfd_target_h): Define.
1694 * defs.h (XZALLOC): Define.
1696 2003-10-31 Andrew Cagney <cagney@redhat.com>
1698 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1699 adjust_breakpoint_address.
1700 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1701 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1702 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1703 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1705 2003-10-31 Andrew Cagney <cagney@redhat.com>
1707 * target.h (struct target_ops): Replace "to_read_partial" and
1708 "to_write_partial" with "to_xfer_partial". Update comments.
1709 * target.c (debug_to_write_partial): Delete function.
1710 (debug_to_xfer_partial): Replace debug_to_read_partial.
1711 (add_target, update_current_target, setup_target_debug): Set
1712 "to_xfer_partial" instead of "to_read_partial" and
1714 (default_xfer_partial): Replace "default_write_partial".
1715 (default_read_partial): Delete.
1716 (target_read_partial, target_write_partial): Call
1718 * remote.c (init_remote_ops): Set "to_xfer_partial".
1719 (init_remote_async_ops): Ditto.
1720 (remote_xfer_partial): Replace "remote_read_partial".
1722 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1724 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1725 registers in `fxsave' format.
1726 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1728 2003-10-30 Mark Kettenis <kettenis@gnu.org>
1730 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1731 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1732 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1734 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1735 specify size of array.
1736 (i386_linux_init_abi): Remove initialization of
1737 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1738 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1740 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1741 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1744 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1747 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1749 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1750 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1753 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1755 * corelow.c: Include "arch-utils.h", "regset.h" and
1757 (core_gdbarch): New variable.
1758 (sniff_core_bfd): Don't sniff if we have support for register sets
1760 (core_close): Reset CORE_GDBARCH.
1761 (core_open): Initialize CORE_GDBARCH.
1762 (get_core_register_section): Use register sets if they are
1763 supported by CORE_GDBARCH.
1764 (get_core_registers): Don't print error message if we have support
1765 for register sets in CORE_GDBARCH.
1767 2003-10-29 Andrew Cagney <cagney@redhat.com>
1769 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1770 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1772 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1774 * objfiles.h (clear_objfile_data): New prototype.
1775 * objfiles.c (clear_objfile_data): New function.
1776 * symfile.c (reread_symbols): Clear per-objfile data.
1778 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1780 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1781 printf_unfiltered instead of printf_filtered for output messages.
1782 (add_symbol_file_command): Ditto.
1783 (reread_symbols): Ditto.
1784 (overlay_auto_command): Ditto.
1785 (overlay_manual_command): Ditto.
1786 (overlay_off_command): Ditto.
1788 2003-10-27 Mark Kettenis <kettenis@gnu.org>
1790 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1791 (gdbarch_from_bfd): New function.
1792 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1793 deprecated_select_gdbarch_hack.
1794 * arch-utils.h (gdbarch_from_bfd): New prototype.
1796 2003-10-27 Andrew Cagney <cagney@redhat.com>
1798 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1799 arch_info. Use warning instead of fprintf_filtered. Do not use
1800 deprecated bfd_printable_arch_mach.
1802 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1804 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1806 (frv_register_type): Rename from frv_register_virtual_type. Add
1807 ``struct gdbarch *'' parameter.
1808 (frv_gdbarch_init): Delete calls to the following functions:
1809 set_gdbarch_deprecated_size(),
1810 set_gdbarch_deprecated_register_bytes(),
1811 set_gdbarch_deprecated_register_raw_size(),
1812 set_gdbarch_deprecated_max_register_raw_size(),
1813 set_gdbarch_deprecated_register_virtual_size(),
1814 set_gdbarch_deprecated_max_register_virtual_size(),
1815 set_gdbarch_deprecated_register_virtual_size(),
1816 set_gdbarch_deprecated_register_virtual_type().
1817 Add call to function set_gdbarch_register_type().
1819 2003-10-26 Mark Kettenis <kettenis@gnu.org>
1821 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1822 FDOFF_REGNUM): Remove defines.
1823 * win32-nat.c (do_child_fetch_inferior_registers): Include
1825 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1826 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1827 undefine I387_ST0_REGNUM.
1829 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1830 * x86-64-tdep.c (x86_64_store_return_value): Use
1831 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1833 Change register numbers to enumartion values.
1834 * i386-tdep.h (enum i386_regnum): New.
1835 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1836 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1837 I386_ST0_REGNUM): Remove defines.
1838 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1839 I386_EDI_REGNUM): Remove defines.
1841 2003-10-24 Andrew Cagney <cagney@redhat.com>
1843 * target.c: Include "gdbcore.h".
1844 (get_target_memory, get_target_memory_unsigned): New functions.
1845 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1846 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1847 Use get_target_memory_unsigned.
1848 * Makefile.in (target.o): Update dependencies.
1850 2003-10-24 Andrew Cagney <cagney@redhat.com>
1852 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1853 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1854 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1855 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1856 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1858 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1859 (can_run_code_for): Use the OO term "singleton".
1861 2003-10-23 Andrew Cagney <cagney@redhat.com>
1863 * Makefile.in (stack.o): Add $(regcache_h).
1864 * stack.c: Include "regcache.h"
1865 (return_command): Rewrite. Use get_frame_id and
1866 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1867 about unhandled return-values.
1868 * value.h (set_return_value): Delete declaration.
1869 * values.c (set_return_value): Delete function.
1871 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1873 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1874 (pseudo_regs): Add comment regarding register stack registers.
1875 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1876 (floatformat_valid): New static routine.
1877 (floatformat_ia64_ext): Add name field and set up is_valid routine
1878 to floatformat_valid().
1879 (examine_prologue): For the previous cfm, use
1880 frame_unwind_register()
1881 if the cfm is not stored in a register-stack register. Save the
1882 previous cfm value in the prev_cfm field. Add debug output.
1883 (ia64_frame_this_id): Use frame_id_build_special() to also register
1884 the bsp. Add debug output.
1885 (ia64_sigtramp_frame_this_id): Ditto.
1886 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1887 registers and also add some checks for framelessness before accepting
1888 current register values for fields such as return address. For cfm,
1889 use the cached prev_cfm field if available. Add comment to explain
1890 PSR logic. Add debug output.
1891 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1892 as part of initialization.
1893 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1894 calculated. Cache the bsp and cfm values.
1895 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1896 instead of using ia64_frame_prev_register() which doesn't expect most
1897 registers to be saved. The saved values for bsp and sp
1898 can be taken from the cache. Add debug output.
1899 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1902 2003-10-23 Jim Blandy <jimb@redhat.com>
1904 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1905 architecture the current arch can run code for --- but not if it's
1907 (can_run_code_for): New function.
1909 2003-10-22 James E Wilson <wilson@specifixinc.com>
1911 * MAINTAINERS: Move myself from paper trail section back to write
1912 after approval section.
1914 2003-10-22 Andrew Cagney <cagney@redhat.com>
1917 * win32-nat.c: Include "exec.h".
1918 * solib.c: Include "exec.h".
1919 * target.h (build_section_table): Delete declaration.
1920 * somsolib.c: Include "exec.h".
1921 (exec_ops): Delete extern declaration.
1922 * rs6000-nat.c: Update copyright. Include "exec.h".
1923 (exec_ops): Delete extern declaration.
1924 * pa64solib.c: Update copyright. Include "exec.h".
1925 (exec_ops): Delete extern declaration.
1926 * exec.c: Update copyright. Include "exec.h".
1927 * corelow.c: Update dependencies. Include "exec.h".
1928 * Makefile.in (exec_h): Define.
1929 (exec.o, somsolib.o): Update dependencies.
1930 (pa64solib.o, corelow.o): Update dependencies.
1932 2003-10-22 Andrew Cagney <cagney@redhat.com>
1934 * target.c: Include "gdb_assert.h" (target_read): Call
1935 "target_read_partial", not "target_write_partial".
1936 (default_read_partial, default_write_partial): New function.
1937 (target_read_partial, target_write_partial): Simplify, assume that
1938 there is always a read/write method.
1939 (update_current_target, add_target): Always set "to_read_partial"
1940 and "to_write_partial".
1941 (target_write, target_read): Fail on a zero byte transfer.
1942 * Makefile.in (target.o): Update dependencies.
1943 * target.h: Update copyright date.
1944 (target_object): Fix typo.
1946 2003-10-22 Andrew Cagney <cagney@redhat.com>
1948 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1949 multi-arch method, add "targ" parameter.
1950 (struct target_ops): Declare.
1951 * gdbarch.h, gdbarch.c: Re-generate.
1952 * Makefile.in (c-valprint.o): Update dependencies.
1953 * arch-utils.h: Update copyright.
1954 (convert_from_func_ptr_addr_identity): Declare.
1955 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1956 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1957 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1958 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1959 * infcall.c (find_function_addr, call_function_by_hand): Update.
1960 * c-valprint.c: Include "target.h".
1961 (print_function_pointer_address): Update.
1963 2003-10-22 Andrew Cagney <cagney@redhat.com>
1965 * target.c (target_close): New function.
1966 (debug_to_close): Use "target_close".
1967 (push_target): Use "target_close".
1968 (unpush_target): Use "target_close".
1969 (pop_target): Use "target_close".
1970 * target.h (struct target_ops): Add "to_xclose".
1971 (target_open): Delete macro. Move comment to "to_open".
1972 (target_close): Replace macro with function that takes a target.
1973 * top.c (quit_target): Pass "current_target" to "target_close".
1975 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1977 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1978 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1979 * symtab.h (lookup_minimal_symbol_text): Update.
1980 * breakpoint.c (create_overlay_event_breakpoint,
1981 create_longjmp_breakpoint): Update callers.
1982 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1983 * symtab.c (find_pc_sect_line): Ditto.
1985 2003-10-21 Andrew Cagney <cagney@redhat.com>
1987 * target.c (errno): Delete extern declaration.
1989 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1991 * ia64-tdep.c: Change all occurrences of
1992 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1993 (ia64_frame_prev_register): Minor whitespace change.
1995 2003-10-20 Michael Chastain <mec@shout.net>
1997 * config/djgpp/fnchange.lst: Add lines for:
1998 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1999 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
2000 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
2001 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
2002 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
2003 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
2004 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
2006 2003-10-20 Andrew Cagney <cagney@redhat.com>
2008 * values.c (register_value_being_returned): Update comments. Use
2009 "gdbarch_return_value" when available.
2010 (using_struct_return): Ditto.
2011 (set_return_value): Ditto. Use "gdbarch_return_value" when
2012 available.. Print a warning, and not an error, when an unhandled
2013 return type is encountered.
2014 * infcmd.c: Include "gdb_assert.h".
2015 (print_return_value): When gdbarch_return_value_p, and using
2016 struct return, assume that the value is not available.
2017 * defs.h (return_value_convention): Define.
2018 * gdbarch.sh (gdbarch_return_value): New predicate method.
2019 * gdbarch.h, gdbarch.c: Re-generate
2020 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
2022 2003-10-20 Andrew Cagney <cagney@redhat.com>
2024 * symtab.c: Replace "struct sec" with "struct bfd_section".
2025 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
2027 2003-10-19 Michael Chastain <mec@shout.net>
2029 * config/djgpp/fnchange.lst: Add lines for:
2030 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
2031 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
2032 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
2034 2003-10-19 Mark Kettenis <kettenis@gnu.org>
2036 * amd64fbsd-nat.c (fetch_inferior_registers,
2037 store_inferior_registers): Remove functions.
2038 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
2040 2003-10-18 Mark Kettenis <kettenis@gnu.org>
2042 Add NetBSD/amd64 native configuration:
2043 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
2044 * amd64nbsd-tdep.c: New file.
2045 * amd64nbsd-nat.c: New file.
2046 * amd64bsd-nat.c: New file.
2047 * config/i386/nbsd64.mh: New file.
2048 * config/i386/nbsd64.mt: New file.
2049 * configure.host: Add x86_64-*-netbsd*.
2050 * configure.tgt: Add x86_64-*-netbsd*.
2051 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
2053 * NEWS (New native configurations): Mention NetBSD/amd64.
2055 2003-10-17 Michael Chastain <mec@shout.net>
2057 * config/djgpp/fnchange.lst: Remove dead lines for:
2058 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
2059 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
2060 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
2061 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
2062 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
2063 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
2064 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
2065 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
2066 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
2067 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
2068 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
2069 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
2070 gdb/config/sparc/tm-sparclite.h,
2071 gdb/gdbtk/generic/ChangeLog-2001,
2072 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
2073 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
2074 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
2075 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
2076 gdb/testsuite/gdb.mi/mi0-var-block.exp,
2077 gdb/testsuite/gdb.mi/mi0-var-child.exp,
2078 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
2079 gdb/testsuite/gdb.mi/mi0-var-display.exp,
2080 itcl/iwidgets3.0.0/demos/extfileselectionbox,
2081 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
2082 itcl/iwidgets3.0.0/demos/fileselectionbox,
2083 itcl/iwidgets3.0.0/demos/fileselectiondialog,
2084 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
2085 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
2086 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
2087 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
2088 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
2089 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
2090 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
2091 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
2092 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
2093 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
2094 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
2095 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
2096 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
2097 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
2098 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
2099 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
2100 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
2101 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
2102 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
2103 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
2104 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
2105 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
2106 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
2107 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
2108 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
2109 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
2110 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
2111 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
2112 itcl/iwidgets3.0.0/demos/html/shell.n.html,
2113 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
2114 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
2115 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
2116 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
2117 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
2118 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
2119 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
2120 itcl/iwidgets3.0.0/demos/scrolledcanvas,
2121 itcl/iwidgets3.0.0/demos/scrolledframe,
2122 itcl/iwidgets3.0.0/demos/scrolledhtml,
2123 itcl/iwidgets3.0.0/demos/scrolledlistbox,
2124 itcl/iwidgets3.0.0/demos/scrolledtext,
2125 itcl/iwidgets3.0.0/demos/selectionbox,
2126 itcl/iwidgets3.0.0/demos/selectiondialog,
2127 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
2128 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
2129 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
2130 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
2131 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
2132 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
2133 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
2134 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
2135 itcl/iwidgets3.0.0/doc/scrolledframe.n,
2136 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
2137 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
2138 itcl/iwidgets3.0.0/doc/scrolledtext.n,
2139 itcl/iwidgets3.0.0/doc/selectionbox.n,
2140 itcl/iwidgets3.0.0/doc/selectiondialog.n,
2141 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
2142 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
2143 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
2144 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
2145 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
2146 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
2147 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
2148 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
2149 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
2150 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
2151 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
2152 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
2153 itcl/iwidgets3.0.0/generic/selectionbox.itk,
2154 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
2155 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
2156 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
2157 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
2158 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
2159 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
2160 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
2161 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
2162 itcl/iwidgets3.0.0/tests/scrolledframe.test,
2163 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
2164 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
2165 itcl/iwidgets3.0.0/tests/scrolledtext.test,
2166 itcl/iwidgets3.0.0/tests/selectionbox.test,
2167 itcl/iwidgets3.0.0/tests/selectiondialog.test,
2168 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
2169 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
2170 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
2171 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
2172 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
2173 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
2174 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
2175 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
2176 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
2177 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
2178 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
2179 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
2180 tk/mac/tkMacProjects.sit.hqx.
2182 2003-10-17 Andrew Cagney <cagney@redhat.com>
2184 * target.c (target_section_by_addr): New function.
2185 (do_xfer_memory): Use "target_section_by_addr".
2186 * target.h (target_section_by_addr): Declare.
2188 * target.h (struct target_ops): Add "to_read_partial" and
2189 "to_write_partial", delete "to_query".
2190 (target_read_partial, target_write_partial): Declare.
2191 (target_read, target_write): Declare.
2192 (target_query): Delete macro.
2193 * target.c (target_read_partial): New function.
2194 (target_write_partial, target_read, target_write): New function.
2195 (update_current_target): Delete inheritance of "to_query". Add
2196 comments about "to_read_partial" and "to_write_partial".
2197 (debug_to_partial_read, debug_to_partial_write): New functions.
2198 (debug_to_query): Delete function.
2199 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
2200 instead of "to_query".
2201 * remote.c (remote_read_partial): Replace "remote_query".
2202 (init_remote_ops): Set "to_read_partial" instead of "to_query".
2203 (init_remote_async_ops): Ditto.
2204 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
2205 "target_read_partial" instead of "target_query".
2206 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
2207 Use "target_read_partial" instead of "target_query".
2209 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
2211 * frame.h (struct frame_id): Add new field: special_addr.
2212 (frame_id_build_special): New prototype.
2213 * frame.c (frame_id_build_special): New function.
2214 (frame_id_build): Change to call frame_id_build_special().
2215 (frame_id_eq): Change to also test special_addr field.
2216 (frame_id_inner): Update comment.
2218 2003-10-17 Andrew Cagney <cagney@redhat.com>
2220 * target.c (update_current_target): Perform the target cleanup.
2221 Put the target stack beneath the squashed "current_target".
2222 (add_target): Delete disabled call to "cleanup_target".
2223 (cleanup_target): Delete function.
2224 (push_target, unpush_target): Do not call "cleanup_target".
2226 2003-10-17 Andrew Cagney <cagney@redhat.com>
2228 * target.c (target_stack): Change to a static target_ops.
2229 (update_current_target): Walk the "struct target_ops" stack.
2230 (pop_target, do_xfer_memory, target_info): Ditto.
2231 (find_target_beneath): Ditto.
2232 (push_target): Rewrite to use the "struct target_ops" stack.
2233 (unpush_target): Ditto.
2234 * target.h (struct target_stack_item): Delete definition.
2235 (target_stack): Delete declaration.
2236 (struct target_ops): Add field "beneath".
2238 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
2240 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2242 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
2243 (h8300_examine_prologue): Use h8300_normal_mode flag
2244 (h8300_gdbarch_init): Set architecture info for normal mode
2246 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
2248 * remote.c (remote_protocol_vcont): New variable.
2249 (set_remote_protocol_vcont_packet_cmd): New function.
2250 (show_remote_protocol_vcont_packet_cmd): New function.
2251 (init_all_packet_configs): Handle remote_protocol_vcont.
2252 (remote_vcont_probe): New function.
2253 (remote_vcont_resume): New function.
2254 (remote_resume): Use it.
2255 (remote_async_resume): Call remote_resume.
2256 (_initialize_remote): Add verbose-resume packet commands.
2258 2003-10-16 Andrew Cagney <cagney@redhat.com>
2260 * infrun.c (handle_inferior_event): Add comment about
2261 "frame_id_inner" being too weak.
2263 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
2265 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2266 second parameter, which is always null. Remove
2267 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2268 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2270 * somsolib.c (som_solib_create_inferior_hook,
2271 som_solib_desire_dynamic_linker_symbols): Update callers.
2272 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
2274 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2276 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2277 debug interface, SDI (Scalable Debug Interface).
2278 * NEWS: Mention m32r SDI protocol was supported.
2279 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2280 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2282 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2284 * ia64-linux-tdep.c: Include gdbcore.h.
2285 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2286 (ia64_linux_sigcontext_register_addr): Find the address of the
2287 sigcontext area stored in the sigframe instead of using
2288 a magic offset constant.
2290 2003-10-15 Andrew Cagney <cagney@redhat.com>
2292 * remote.c (remote_search): Delete function.
2293 * target.h (target_search): Delete disabled macro.
2294 (struct target_ops): Delete disabled field "to_search".
2296 2003-10-14 Kevin Buettner <kevinb@redhat.com>
2298 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2299 instead of deprecated_inside_entry_file().
2301 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
2303 * sh-tdep.c: Fix copy/paste hangover in comment.
2304 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2306 (sh3e_sh4_extract_return_value): Ditto.
2308 2003-10-13 Richard Henderson <rth@redhat.com>
2310 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2311 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2312 match c_val_print a bit closer.
2314 2003-10-13 Kevin Buettner <kevinb@redhat.com>
2316 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2317 (frv_gdbarch_adjust_breakpoint_address): New function.
2318 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2321 2003-10-13 Kevin Buettner <kevinb@redhat.com>
2323 * breakpoint.h (struct breakpoint): Add new member
2324 ``requested_address''.
2325 * breakpoint.c (breakpoint_adjustment_warning)
2326 (adjust_breakpoint_address): New static functions.
2327 (print_it_typical): Issue warning if breakpoint's address is different
2328 from its requested address.
2329 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2330 (breakpoint_re_set_one): Set breakpoint's
2331 ``requested_address'' field. Set ``address'' field to the
2332 result of calling adjust_breakpoint_address() on the requested
2335 2003-10-13 Kevin Buettner <kevinb@redhat.com>
2337 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2338 * gdbarch.h, gdbarch.c: Regenerate.
2340 2003-10-11 Mark Kettenis <kettenis@gnu.org>
2342 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2345 * i386fbsd-tdep.c: New file.
2346 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2347 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2348 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2350 (_initialize_i386fbsd_tdep): New function.
2351 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2352 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2353 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2354 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2356 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2357 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2358 to initialize TDEP->sc_num_regs.
2359 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2360 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2361 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2362 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2363 FreeBSD ELF OS/ABI's here.
2364 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2365 (i386fbsd-tdep.o): New target.
2366 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2367 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2369 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2370 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2371 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2372 in initialization of TDEP->sc_num_regs.
2374 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2375 (x86_64_init_abi): Initialize regset_from_core_section if
2378 * i386-tdep.c (i386_regset_from_core_section): New function.
2379 (i386_gdbarch_init): Initialize regset_from_core_section if
2381 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2383 * i386-tdep.h (struct regset): Declare opaque.
2385 * gdbarch.sh (regset_from_core_section): New method.
2386 (struct regset): Declare opaque.
2387 * gdbarch.c, gdbarch.h: Regenerated.
2389 2003-10-11 Alan Modra <amodra@bigpond.net.au>
2391 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2392 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2393 Correct test for pc within section.
2395 2003-10-11 Mark Kettenis <kettenis@gnu.org>
2397 * gdbarch.sh: Remove trailing whitepsace from comments.
2399 2003-10-08 Roland McGrath <roland@redhat.com>
2401 * gcore.c (make_mem_sec): Function removed, folded into ...
2402 (gcore_create_callback): ... here. To omit a section, clear its
2403 SEC_LOAD bit rather than zeroing its size.
2404 Omit read-only sections only if they correspond to a known disk file.
2405 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2407 2003-10-10 Michael Snyder <msnyder@redhat.com>
2409 * d10v-tdep.c: Fix typo in comment.
2411 2003-10-10 Andrew Cagney <cagney@redhat.com>
2413 * rs6000-tdep.c (e500_store_return_value): Delete function.
2414 (e500_extract_return_value): Delete function.
2415 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2416 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2417 "ppc_sysv_abi_restore_return_value" where applicable.
2418 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2419 (ppc_sysv_abi_extract_return_value): Declare.
2420 (ppc_sysv_abi_broken_store_return_value): Declare.
2421 (ppc_sysv_abi_broken_extract_return_value): Declare.
2422 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2423 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2425 (do_ppc_sysv_return_value): New function.
2426 (ppc_sysv_abi_extract_return_value): New function.
2427 (ppc_sysv_abi_store_return_value): New function.
2428 (ppc_sysv_abi_broken_extract_return_value): New function.
2429 (ppc_sysv_abi_broken_store_return_value): New function.
2430 (ppc_sysv_abi_use_struct_convention): Call
2431 do_ppc_sysv_return_value.
2433 2003-10-10 J. Brobecker <brobecker@gnat.com>
2435 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2436 to lookup the main function symbol.
2438 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
2440 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2442 (sh_push_dummy_call_fpu): Fix argument passing rules.
2443 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2445 (sh3e_sh4_store_return_value): Ditto.
2447 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
2449 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2452 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
2454 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2455 more readable code. Accomodate passing of bitfields.
2457 2003-10-10 Andrew Cagney <cagney@redhat.com>
2459 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2460 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2461 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2462 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2463 (ppc64_sysv_abi_push_dummy_call): New function.
2464 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2465 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2466 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2468 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2470 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2472 * d10v-tdep.c: Ditto.
2473 * h8300-tdep.c: Ditto.
2474 * remote-e7000.c: Ditto.
2475 * remote-hms.c: Ditto.
2476 * ser-e7kpc.c: Ditto.
2481 * sh64-tdep.c: Ditto.
2484 * config/d10v/d10v.mt: Ditto.
2485 * config/sh/embed.mt: Ditto.
2486 * config/sh/linux.mt: Ditto.
2487 * config/sh/tm-linux.h: Ditto.
2488 * config/sh/tm-sh.h: Ditto.
2489 * config/sh/wince.mt: Ditto.
2491 2003-10-09 Andrew Cagney <cagney@redhat.com>
2493 * ppc-tdep.h (struct type): Declare opaque.
2494 * x86-64-tdep.h (struct regcache): Declare opaque.
2495 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2498 2003-10-09 Andrew Cagney <cagney@redhat.com>
2500 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2501 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2502 (SOFTWARE_SINGLE_STEP_P): Ditto.
2503 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2504 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2505 (SOFTWARE_SINGLE_STEP_P): Ditto.
2506 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2507 software_single_step to rs6000_software_single_step.
2509 2003-10-09 Andrew Cagney <cagney@redhat.com>
2511 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2513 2003-10-09 Michael Snyder <msnyder@redhat.com>
2515 * frame.h: Fix typo in comment.
2516 * dummy-frame.c: Fix typo in comment.
2517 * d10v-tdep.c: Random whitespace/comment tweaks.
2519 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
2521 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
2522 (sh_push_dummy_code): Delete function, it's only used for dummy calls
2525 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2526 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2529 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
2531 * remote-mips.c (mips_initialize): Remove unneeded call to
2532 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2534 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
2536 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2539 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2541 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2542 for any lwp we resume.
2543 (running_callback): Add lwps that have pending status events
2544 against them to be considered running.
2546 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2548 * m32r-tdep.c : Include "dis-asm.h".
2549 * Makefile.in (m32r-tdep.o): Update dependencies.
2551 2003-10-06 J. Brobecker <brobecker@gnat.com>
2553 * completer.h (get_gdb_completer_word_break_characters): Delete.
2554 * completer.c: include language.h.
2555 (gdb_completer_word_break_characters): Delete.
2556 (get_gdb_completer_word_break_characters): Delete.
2557 (location_completer): Use the word break characters of the current
2559 (complete_line): Likewise.
2560 (line_completion_function): Likewise.
2561 (skip_quoted_chars): Likewise.
2562 * Makefile.in (completer.o): Add dependency on language.h.
2563 * top.c (init_main): Set the readline word break characters
2564 to GDB's default word break characters.
2566 2003-10-06 J. Brobecker <brobecker@gnat.com>
2568 * language.h (language_defn): new field, la_word_break_characters.
2569 * language.c (unknown_language_defn): Set new field to
2570 default_word_break_characters.
2571 (auto_language_defn): Likewise.
2572 (local_language_defn): Likewise.
2573 * ada-lang.c (ada_language_defn): Likewise.
2574 * c-lang.c (c_language_defn): Likewise.
2575 (cplus_language_defn): Likewise.
2576 (asm_language_defn): Likewise.
2577 (minimal_language_defn): Likewise.
2578 * f-lang.c (f_language_defn): Likewise.
2579 * jv-lang.c (java_language_defn): Likewise.
2580 * m2-lang.c (m2_language_defn): Likewise.
2581 * objc-lang.c (objc_language_defn): Likewise.
2582 * p-lang.c (pascal_language_defn): Likewise.
2583 * scm-lang.c (scm_language_defn): Likewise.
2585 2003-10-06 Andrew Cagney <cagney@redhat.com>
2587 * ppc-sysv-tdep.c: Re-indent.
2589 2003-10-06 J. Brobecker <brobecker@gnat.com>
2591 * language.h (default_word_break_characters): Add prototype.
2592 * language.c (default_word_break_characters): New function.
2594 2003-10-06 Andreas Schwab <schwab@suse.de>
2596 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2599 2003-10-06 Andrew Cagney <cagney@redhat.com>
2601 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2603 (z8k-tdep.o): Delete custom build rule.
2605 2003-10-06 Andrew Cagney <cagney@redhat.com>
2607 * Makefile.in: Update all dependencies.
2609 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2610 No longer list PA as as obsolete candidate. List m32r as
2611 broken instead of obsolete.
2613 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2614 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2615 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2616 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2617 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2618 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2619 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2620 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2621 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2622 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2623 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2624 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2625 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2626 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2627 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2628 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2629 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2630 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2631 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2632 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2633 * config/z8k/z8k.mt: Ditto.
2635 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2636 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2637 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2638 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2639 sparclite were removed.
2640 * configure.host, configure.tgt: Remove corresponding tuples.
2642 * breakpoint.c, breakpoint.h: Remove obsolete code.
2643 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2644 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2645 * stabsread.h, xcoffread.c: Ditto.
2647 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2648 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2649 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2650 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2652 2003-10-06 David Lecomber <dsl@sources.redhat.com>
2654 * f-valprint.c: Reformatting
2656 2003-10-06 Mark Kettenis <kettenis@gnu.org>
2658 * x86-64-tdep.c: Remove duplicate comment.
2660 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2661 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2662 names for return values. This fixes a bug since we looked at %rbx
2665 2003-10-05 Mark Kettenis <kettenis@gnu.org>
2667 * x86-64-tdep.c: Include "regset.h".
2669 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2670 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2672 * i386-tdep.c: Include "regset.h".
2673 (i386_supply_gregset): New function.
2674 (i386_supply_fpregset): New function.
2675 (i386_gdbarch_init): Initialze register set-related members of
2677 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2678 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2680 2003-10-03 Andrew Cagney <cagney@redhat.com>
2682 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2683 set extract_return_value, store_return_value and
2684 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2685 ppc64_sysv_abi_store_return_value and
2686 ppc64_sysv_abi_use_struct_convention.
2687 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2688 (ppc64_sysv_abi_store_return_value): Declare.
2689 (ppc64_sysv_abi_use_struct_convention): Declare.
2690 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2691 (ppc64_sysv_abi_extract_return_value): New function.
2692 (ppc64_sysv_abi_store_return_value): New function.
2693 (ppc64_sysv_abi_use_struct_convention): New function.
2694 (ppc64_sysv_abi_return_value): New function.
2696 2003-10-03 Andrew Cagney <cagney@redhat.com>
2698 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2699 convert a descriptor to a function when it's in the ".opd"
2702 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2704 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2705 reg_size to keep GCC silent.
2707 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2709 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2710 base for DW_EH_PE_textrel encodings.
2711 (read_encoded_value): Add a DW_EH_PE_textrel case.
2712 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2715 2003-10-03 Mark Kettenis <kettenis@gnu.org>
2717 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2719 2003-10-02 Andrew Cagney <cagney@redhat.com>
2721 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2723 * gdbarch.h, gdbarch.c: Re-generate.
2724 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2725 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2726 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2727 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2728 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2729 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2730 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2731 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2732 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2733 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2734 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2735 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2736 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2737 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2738 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2739 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2741 2003-10-02 Jim Blandy <jimb@redhat.com>
2743 * dwarf2read.c (struct die_info): Doc fix.
2745 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2747 * sh-tdep.c: Running thru gdb_indent.sh.
2749 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2751 * sh-tdep.c (sh_justify_value_in_reg): New function.
2752 (sh_stack_allocsize): Ditto.
2753 (flt_argreg_array): New array used for floating point argument
2755 (sh_init_flt_argreg): New function.
2756 (sh_next_flt_argreg): Ditto.
2757 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2758 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2759 Fix argument passing strategy.
2760 (sh_push_dummy_call_nofpu): Ditto.
2762 2003-10-01 Andrew Cagney <cagney@redhat.com>
2764 * value.h (register_value_being_returned): Declare. Replace
2765 "value_being_returned".
2766 * infcall.c (call_function_by_hand): Use
2767 register_value_being_returned.
2768 * infcmd.c (print_return_value): Call
2769 "register_value_being_returned", handle struct return locally.
2770 * values.c (register_value_being_returned): New function. Replace
2771 "value_being_returned".
2773 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
2775 * linux-proc.c (linux_do_registers): New function.
2776 (linux_make_note_section): Use linux_do_registers in case of
2777 single threaded inferior programs.
2779 2003-10-01 Andrew Cagney <cagney@redhat.com>
2781 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2782 use STRUCT_ADDR. When not using "struct return convention", pass
2783 "0" to "value_being_returned". Add FIXMEs.
2784 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2785 value_being_returned. Add comments.
2786 * values.c (value_being_returned): Add fixme.
2787 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2788 (hppa_value_returned_from_stack): Add FIXME.
2790 2003-09-30 David Carlton <carlton@kealia.com>
2792 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2793 'has_children' and 'next' by 'child' and 'sibling'.
2794 (read_comp_unit): Rework algorithm, breaking body into
2795 read_die_and_children and read_die_and_siblings.
2796 (read_die_and_children, read_die_and_siblings): New.
2797 (read_full_die): Add 'has_children' argument; set it instead of
2798 the die's 'has_children' field. Minor formatting cleanup.
2799 (free_die_list): Use die->child and die->sibling instead of
2801 (dump_die_list): Ditto.
2802 (sibling_die): Use die->sibling.
2803 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2804 'has_children' and 'next' fields.
2805 (process_die, read_file_scope, read_func_scope)
2806 (read_lexical_block_scope, read_structure_scope)
2807 (read_enumeration, read_array_type, read_common_block)
2808 (read_namespace, read_subroutine_type, dump_die): Ditto.
2810 2003-09-30 Andrew Cagney <cagney@redhat.com>
2812 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2815 2003-09-30 Andrew Cagney <cagney@redhat.com>
2817 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2818 REGISTER_VIRTUAL_SIZE.
2819 * gdbarch.h, gdbarch.c: Regenerate.
2820 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2821 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2822 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2824 2003-09-29 Andrew Cagney <cagney@redhat.com>
2826 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2827 REGISTER_VIRTUAL_TYPE.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2829 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2830 * sh64-tdep.c, sparc-tdep.c: Update.
2832 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2833 * remote-vxmips.c (vx_read_register): Ditto.
2834 * remote-vx68.c (vx_read_register): Ditto.
2835 * gnu-nat.c (inf_validate_procs): Ditto.
2837 2003-09-29 J. Brobecker <brobecker@gnat.com>
2839 * infcall.c (call_function_by_hand): Fix build failure
2840 introduced in the previous change to this file.
2842 2003-09-29 Andrew Cagney <cagney@redhat.com>
2844 * NEWS: Mention Objective-C.
2846 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2848 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2849 test if the register has been saved on the stack.
2850 (arm_scan_prologue_cache): When analysing the instruction
2851 "str lr, [sp, #-4]", save the address where lr has been stored.
2853 2003-09-28 Andrew Cagney <cagney@redhat.com>
2855 * frame.c (frame_read_unsigned_register): Delete function.
2856 * frame.h (frame_read_unsigned_register): Delete declaration.
2857 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2858 get_frame_register_unsigned.
2859 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2860 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2861 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2863 * frame.h (frame_read_register): Delete declaration.
2864 * frame.c (frame_read_register): Delete function.
2865 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2866 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2867 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2868 * mips-tdep.c (mips_register_to_value): Ditto.
2869 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2870 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2872 * frame.c (frame_read_signed_register): Delete function.
2873 (frame_read_unsigned_register): Update comments.
2874 * frame.h (frame_read_signed_register): Delete declaration.
2875 * h8300-tdep.c (h8300_print_register): Use
2876 get_frame_register_signed.
2877 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2879 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2880 Rename VALUE_RETURNED_FROM_STACK.
2881 * infcmd.c (print_return_value): Update.
2882 * infcall.c (call_function_by_hand): Update.
2884 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2886 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2887 regcache argument and reverse the order of the other two
2888 arguments. Remove local regcache variable. Determine
2889 architecture from REGCACHE. Update comments.
2890 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2891 reverse the order of the other two arguments. Remove local
2892 regcache variable. Determine architecture from REGCACHE. Update
2894 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2895 prototypes. Update comments.
2896 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2898 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2900 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2901 * i386-interix-nat.c (supply_fpregset): Update.
2902 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2903 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2904 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2905 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2906 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2908 * i386obsd-tdep.c (fetch_core_registers): Update.
2909 * i386v4-nat.c (supply_fpregset): Update.
2910 * x86-64-linux-nat.c (supply_fpregset): Update.
2911 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2913 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2915 * i386-tdep.h: Put opaque declarations in alphabetical
2916 order. Remove spurious whitespace.
2917 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2918 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2919 * i386-tdep.c (MM0_REGNUM): Remove define.
2920 (i386_mmx_regnum_p): Add gdbarch argument.
2921 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2922 Rewrite using new macro definitions for FPU/SSE registers.
2923 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2924 definitions from i387-tdep.h.
2925 (i386_register_name): Update.
2926 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2927 new macro definitions for FPU/SSE registers.
2928 (i386_extract_return_value): Determine whether floating-point
2929 registers are present by examining REGCACHE's architecture.
2930 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2931 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2933 (i386_register_type): Update.
2934 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2935 definitions for FPU registers. Use REGCACHE's architecture to
2936 determine the appropriate register numbers.
2937 (i386_pseudo_register_read, i386_pseudo_register_write,
2938 i386_register_reggroup_p): Update.
2939 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2941 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2942 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2943 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2944 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2945 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2946 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2948 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2949 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2950 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2951 definitions for FPU/SSE registers.
2952 (FXSAVE_MXCSR_ADDR): New define.
2953 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2955 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2956 (I387_ST0_REGNUM): Define.
2958 * regcache.h (get_regcache_arch): New prototype.
2959 * regcache.c (get_regcache_arch): New function.
2961 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2964 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2965 Initialize using ARRAY_SIZE.
2967 2003-09-27 Andrew Cagney <cagney@redhat.com>
2969 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2970 "init_frame_pc_default".
2971 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2973 * vax-tdep.c (vax_gdbarch_init): Update.
2974 * v850-tdep.c (v850_gdbarch_init): Update.
2975 * sh64-tdep.c (sh64_gdbarch_init): Update.
2976 * s390-tdep.c (s390_gdbarch_init): Update.
2977 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2978 * mcore-tdep.c (mcore_gdbarch_init): Update.
2979 * h8300-tdep.c (h8300_gdbarch_init): Update.
2980 * cris-tdep.c (cris_gdbarch_init): Update.
2981 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2983 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2985 * regset.h: New file.
2986 * Makefile.in (regset_h): Add.
2988 2003-09-25 Andrew Cagney <cagney@redhat.com>
2990 * frame.h (deprecated_frame_saved_regs): Rename
2991 get_frame_saved_regs.
2992 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2993 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2994 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2995 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2996 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2998 2003-09-25 Andrew Cagney <cagney@redhat.com>
3000 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
3001 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
3003 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
3004 arm*-*-* do not use the new frame code.
3006 2003-09-25 David Carlton <carlton@kealia.com>
3008 * c-exp.y: Remove 'register' declarations.
3009 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
3011 2003-09-25 David Carlton <carlton@kealia.com>
3013 * c-exp.y: Include cp-support.h. Add qualified_type.
3014 (yylex): Delete nested type hack; add comments.
3015 * cp-namespace.c (cp_lookup_nested_type): New function.
3016 * cp-support.h: Declare cp_lookup_nested_type.
3017 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
3018 instead of value_struct_elt_for_reference.
3019 * valops.c: Include cp-support.h.
3020 (value_aggregate_elt): New function.
3021 (value_namespace_elt): Ditto.
3022 (value_struct_elt_for_reference): Make static.
3023 * value.h: Delete declaration of value_struct_elt_for_reference;
3024 add declaration for value_aggregate_elt.
3025 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
3028 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
3030 * stack.c: Include "reggroups.h".
3031 (frame_info): Only display registers in all_reggroup.
3032 * Makefile.in (stack.o): Update dependencies.
3034 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
3036 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
3037 "add ip, sp #n" in the prologue.
3038 (arm_scan_prologue): Ditto.
3040 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
3042 * MAINTAINERS (write after approval): Add myself.
3044 2003-09-25 Andreas Schwab <schwab@suse.de>
3046 * m68k-tdep.c: Include "dwarf2-frame.h".
3047 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
3048 * Makefile.in (m68k-tdep.o): Update dependencies.
3050 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
3052 * sh-tdep.c (struct frame_extra_info): Remove.
3053 (struct sh_frame_cache): New structure.
3054 (GET_SOURCE_REG): New macro extracting source register of an opcode.
3055 (GET_TARGET_REG): Ditto but target register.
3056 (GET_PUSHED_REG): Remove.
3057 (IS_MOV_ARG_TO_REG): New macro.
3058 (IS_MOV_ARG_TO_IND_R14): New macro.
3059 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
3060 (IS_MOVW_PCREL_TO_REG): New macro.
3061 (IS_MOVL_PCREL_TO_REG): New macro.
3062 (IS_SUB_REG_FROM_SP): New macro.
3063 (IS_ARG_MOV): Remove.
3064 (IS_MOV_TO_R14): Remove.
3065 (IS_RESTORE_FP): New macro.
3066 (IS_RTS): New macro.
3067 (IS_LDS): New macro.
3068 (IS_MOV_FP_SP): New macro.
3069 (IS_ADD_REG_TO_FP): New macro.
3070 (IS_ADD_IMM_FP): New macro.
3071 (sh_skip_prologue_hard_way): Remove.
3072 (sh_saved_pc_after_call): Remove.
3073 (sh_frame_chain): Remove.
3074 (sh_find_callers_reg): Remove.
3075 (sh_nofp_frame_init_saved_regs): Remove.
3076 (sh_fp_frame_init_saved_regs): Remove.
3077 (sh_init_extra_frame_info): Remove.
3078 (sh_analyze_prologue): New function.
3079 (sh_skip_prologue): Remove deprecated code. Rely on new function
3080 sh_analyze_prologue when after_prologue fails.
3081 (sh_frame_saved_pc): Remove.
3082 (sh_alloc_frame_cache): New function.
3083 (sh_frame_cache): Ditto.
3084 (sh_frame_prev_register): Ditto.
3085 (sh_frame_this_id): Ditto.
3086 (sh_frame_unwind): New structure defining the heuristic frame
3088 (sh_frame_sniffer): New function.
3089 (sh_unwind_sp): Ditto.
3090 (sh_unwind_pc): Ditto.
3091 (sh_unwind_dummy_id): Ditto.
3092 (sh_frame_base_address): Ditto.
3093 (sh_frame_base): New structure defining new frame base code.
3094 (sh_in_function_epilogue_p): New function.
3095 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
3096 code and to call all new code instead. Initialize dwarf2 and
3097 heuristic frame sniffer.
3099 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
3101 * parser-defs.h (struct exp_descriptor): New definition, containing
3102 language-specific info for printing, prefixifying, dumping, and
3103 evaluating expressions.
3104 (exp_descriptor_standard): Declare new variable.
3105 (print_subexp): Make global and declare here (from expprint.c).
3106 (dump_subexp): Ditto.
3107 (dump_subexp_body_standard): Declare.
3108 (operator_length_standard): Declare.
3109 (op_name_standard): Declare.
3110 (print_subexp): Declare.
3111 (print_subexp_standard): Declare.
3113 * language.h (struct language_defn): Add la_exp_desc field to hold
3114 pointer to table for language-specific operators.
3115 Remove evaluate_exp field, which is now in struct exp_descriptor.
3117 * parse.c (operator_length): Move most code to new
3118 operator_length_standard function. Use language-specific information.
3119 (operator_length_standard): New function taking most code from
3121 (exp_descriptor_standard): New constant.
3123 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
3124 and OP_EXTENDED_LAST.
3126 * expprint.c (print_subexp): Use language-specific print_subexp.
3127 Make global; remove static declaration.
3128 Move most code to print_subexp_standard.
3129 (print_subexp_standard): New function, containing code formerly in
3131 (op_name): Add expression to argument signature.
3132 Use langauge-specific op_name.
3133 Move most code to op_name_standard.
3134 (op_name_standard): New function, containing code formerly in op_name.
3135 (dump_subexp): Use new version of op_name function.
3136 Use language-specific dump_subexp_body, and move most existing code to
3137 dump_subexp_body_standard.
3138 (dump_raw_expression): Use new op_name interface.
3139 (dump_subexp_body): Move most code to dump_subexp_body_standard.
3140 (dump_subexp_body_standard): New function, containing code formerly
3141 in dump_subexp_body.
3143 * language.c (unknown_language): Add default la_exp_desc field and
3144 remove evaluate_exp field.
3145 (auto_language): Ditto.
3146 (local_language): Ditto.
3147 * f-lang.c (f_language_defn): Ditto.
3148 * c-lang.c (c_language_defn): Ditto.
3149 (cplus_language_defn): Ditto.
3150 (asm_language_defn): Ditto.
3151 (minimal_language_defn): Ditto.
3152 * p-lang.c (pascal_language_defn): Ditto.
3153 * m2-lang.c (m2_language_defn): Ditto.
3154 * objc-lang.c (objc_language_defn): Ditto.
3156 * jv-lang.c (exp_descriptor_java): New variable, containing
3157 Java-specific expression evaluator.
3158 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
3160 * scm-lang.c (exp_descriptor_scm): New variable, containing
3161 Scheme-specific expression evaluator.
3162 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
3164 * objc-lang.c (print_object_command): Take evaluate_exp from the
3167 * Makefile.in (eval.o): Add dependency on parser-defs.h.
3169 * eval.c: Include parser-defs.h for the full declaration of
3171 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
3173 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
3175 * parser-defs.h (operator_length): Declare.
3177 * parse.c (length_of_subexp): Use operator_length to get operator
3178 lengths and arities for operators.
3179 Move most code to new operator_length function.
3180 (operator_length): New function absorbing most code from
3182 (prefixify_subexp): Remove large case and use operator_length instead.
3183 (parse_exp_1): Use renamings:
3184 dump_prefix_expression => dump_raw_expression and
3185 dump_postfix_expression => dump_prefix_expression.
3187 * expression.h (dump_prefix_expression): Rename to ...
3188 (dump_raw_expression): New name.
3189 (dump_postfix_expression): Rename to ...
3190 (dump_prefix_expression): New name.
3192 * expprint.c (dump_subexp): Make global. Add comment.
3193 Move most existing code to dump_subexp_body.
3194 (dump_subexp_body): New function.
3195 (dump_prefix_expression): Rename to dump_raw_expression.
3196 Remove attempt to print the expression via print_expression: it can't
3197 work before the expression is prefixified.
3198 (dump_raw_expression): Renamed from dump_prefix_expression.
3199 (dump_postfix_expression): Rename to dump_prefix_expression, since
3200 that's what it does.
3201 Remove 'note' parameter, since this routine must be used on
3202 prefixified expression.
3203 (dump_prefix_expression): Renamed from dump_postfix_expression.
3205 2003-09-22 Jim Blandy <jimb@redhat.com>
3207 * dwarf2read.c (read_array_type): When building the type for an
3208 array of unspecified length, make sure to choose the upper bound
3209 so that the array's total length comes out to be zero --- that's
3210 how we represent such arrays.
3212 2003-09-22 Michael Chastain <mec@shout.net>
3214 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3216 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
3218 * top.c (quit_force): Fix indirect call to quit_target so
3219 a struct qt_args pointer is passed.
3221 2003-09-22 Andrew Cagney <cagney@redhat.com>
3223 * arch-utils.h (init_frame_pc_noop): Delete declaration.
3224 * arch-utils.c (init_frame_pc_noop): Delete function.
3225 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3227 * mips-tdep.c (mips_gdbarch_init): Ditto.
3228 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3229 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3231 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3232 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3234 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3236 2003-09-22 Anthony Green <green@redhat.com>
3238 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3241 2003-09-20 Andrew Cagney <cagney@redhat.com>
3243 * breakpoint.c: Eliminate ARGSUSED.
3244 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3245 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3246 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3247 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3248 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3249 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3250 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3251 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3252 * wince.c, remote-vx.c: Ditto.
3254 * cli/cli-script.c: Remove "register" attributes.
3255 * config/pa/tm-hppa.h: Ditto.
3256 * cli/cli-decode.c: Ditto.
3257 * cli/cli-cmds.c: Ditto.
3259 2003-09-19 Andrew Cagney <cagney@redhat.com>
3261 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3262 DEPRECATED_NPC_REGNUM.
3263 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3265 2003-09-19 Christopher Faylor <cgf@redhat.com>
3267 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3269 2003-09-19 Jim Blandy <jimb@redhat.com>
3271 * macrotab.c (macro_include): Use the correct comparison to find
3272 the appropriate place for this inclusion in the list.
3274 2003-09-19 Andrew Cagney <cagney@redhat.com>
3276 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3277 (DEPRECATED_HPUX_TEXT_END): Define.
3278 (deprecated_hpux_text_end): Declare.
3279 (struct target_ops): Declare opaque.
3280 * hppah-nat.c (text_end): Make static.
3281 (deprecated_hpux_text_end): New function.
3282 * exec.c (text_end): Delete global variable.
3283 (NEED_TEXT_START_END): Do not define.
3284 (exec_file_attach): Replace code computing "text_end" code with
3285 call to DEPRECATED_HPUX_TEXT_END.
3287 2003-09-19 Andrew Cagney <cagney@redhat.com>
3289 * utils.c (align_up, align_down): New functions.
3290 * defs.h (align_up, align_down): Declare.
3291 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3292 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3294 (round_up, round_down): Delete functions.
3295 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3297 (ROUND_DOWN, ROUND_UP): Delete macros.
3298 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3299 * h8300-tdep.c: Replace "round_up" and "round_down" with
3300 "align_up" and "align_down".
3301 (round_up, round_down): Delete macros.
3302 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3304 (ROUND_UP, ROUND_DOWN): Delete macros.
3306 2003-09-18 J. Brobecker <brobecker@gnat.com>
3308 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3309 hard-coded constant. Use the proper machine name instead.
3311 2003-09-17 Andrew Cagney <cagney@redhat.com>
3313 * sparc-tdep.c (legacy_register_name): Delete function.
3314 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3315 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3316 * infcmd.c (gdb_register_name): Delete variable.
3317 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3318 REGISTER_NAME and "tm.h".
3319 * gdbarch.h, gdbarch.c: Regenerate.
3320 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3321 REGISTER_NAMES in comments.
3322 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3323 * m68klinux-nat.c (regmap): Ditto.
3325 2003-09-17 Jim Blandy <jimb@redhat.com>
3327 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3329 2003-09-17 Andrew Cagney <cagney@redhat.com>
3331 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3332 (ppcnbsd_init_abi): Set "use_struct_convention" to
3333 "ppcnbsd_use_struct_convention".
3335 2003-09-17 Mark Kettenis <kettenis@gnu.org>
3337 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3338 * gdbarch.h, gdbarch.c: Regenerate.
3339 (stabs_argument_has_addr): New architecture method.
3340 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3341 * arch-utils.c: Include "buildsym.h".
3342 (default_stabs_argument_has_addr): New function.
3343 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3344 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3346 2003-09-17 Andrew Cagney <cagney@redhat.com>
3348 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3349 * gdbarch.h, gdbarch.c: Regenerate.
3350 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3351 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3352 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3353 * sparcnbsd-tdep.c: Update.
3355 2003-09-17 Andrew Cagney <cagney@redhat.com>
3357 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3358 * gdbarch.h, gdbarch.c: Regenerate.
3359 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3360 * d10v-tdep.c, frame.c: Update.
3361 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3362 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3363 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3364 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3365 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3366 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3367 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3368 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3369 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3370 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3371 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3372 * config/pa/nm-hppah.h: Update.
3374 2003-09-16 Andrew Cagney <cagney@redhat.com>
3376 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3377 "use_struct_convention" to "ppc_linux_use_struct_convention".
3378 (ppc_linux_use_struct_convention): New function.
3379 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3380 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3381 "rs6000_use_struct_convention".
3382 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3384 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3387 2003-09-16 Andrew Cagney <cagney@redhat.com>
3389 * buildsym.c: Remove more occurances of "register".
3390 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3391 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3392 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3393 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3394 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3395 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3396 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3397 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3399 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
3401 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3402 numbers to enumeration values.
3403 * sh-tdep.c: Accomodate above change.
3404 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3405 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3406 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3407 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3408 (IS_FPUSH): Rename from IS_FMOV.
3409 (sh_extract_struct_value_address): Remove useless comment.
3410 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3411 instead of own local values.
3412 (sh_dump_tdep): Remove.
3413 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3414 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3416 2003-09-15 Andrew Cagney <cagney@redhat.com>
3418 * doublest.c (convert_floatformat_to_doublest): No longer need to
3419 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3421 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
3423 * values.c (unpack_double): Call floatformat_is_valid.
3425 2003-09-15 Mark Kettenis <kettenis@gnu.org>
3427 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3428 ps_strings into a long.
3430 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3431 _initialize_am64fbsd_nat.
3433 2003-09-15 Kevin Buettner <kevinb@redhat.com>
3435 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3436 associated with DW_AT_ranges attribute is out of bounds.
3438 2003-09-15 David Lecomber <dsl@sources.redhat.com>
3440 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3442 2003-09-14 Michael Chastain <mec@shout.net>
3444 * config/m68k/nm-apollo68v.h: Delete.
3445 * config/m68k/xm-apollo68v.h: Delete.
3447 2003-09-14 Andrew Cagney <cagney@redhat.com>
3449 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3450 * dcache.c: Update copyrights and descriptions.
3451 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3453 2003-09-14 Andrew Cagney <cagney@redhat.com>
3455 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3456 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3458 2003-09-14 Andrew Cagney <cagney@redhat.com>
3460 * alpha-nat.c: Remove some occurances of "register".
3461 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3462 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3463 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3464 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3465 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3466 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3467 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3468 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3469 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3470 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3471 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3472 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3473 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3474 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3475 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3476 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3477 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3478 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3479 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3480 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3481 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3482 * values.c, vax-tdep.c, xcoffread.c: Ditto.
3484 2003-09-13 Andrew Cagney <cagney@redhat.com>
3486 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3487 * ppc-tdep.h (struct regcache): Declare opaque.
3488 * objfiles.h (struct objfile_data): Declare opaque.
3489 * cp-support.h (struct objfile): Declare opaque.
3490 * linux-nat.h (target_waitstatus): Declare opaque.
3492 2003-09-14 Mark Kettenis <kettenis@gnu.org>
3494 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3495 (stabs_argument_has_addr): New architecture method.
3496 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3497 * arch-utils.c: Include "buildsym.h".
3498 (default_stabs_argument_has_addr): New function.
3499 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3500 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3502 * cris-tdep.c (cris_gdbarch_init): Set
3503 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3504 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3505 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3506 * mips-tdep.c (mips_gdbarch_init): Likewise.
3507 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3508 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3510 2003-09-13 Andrew Cagney <cagney@redhat.com>
3512 * values.c (using_struct_return): Delete "function" and "funcaddr"
3514 * value.h (using_struct_return): Update declaration.
3515 * infcmd.c (finish_command_continuation): Update.
3516 (finish_command): Update.
3517 * infcall.c (call_function_by_hand): Update.
3518 * eval.c (evaluate_subexp_standard): Update.
3520 2003-09-13 Christopher Faylor <cgf@redhat.com>
3522 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3523 SSE registers since gdb will not operate correctly without this.
3524 Restore include file ordering munged in previous change.
3525 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3527 2003-09-13 Mark Kettenis <kettenis@gnu.org>
3529 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3530 REG_STRUCT_HAS_ADDR.
3531 * gdbarch.c, gdbarch.h: Updated.
3532 * infcall.c (call_function_by_hand): Update.
3533 * stabsread.c (define_symbol): Updated.
3535 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3537 2003-09-12 Christopher Faylor <cgf@redhat.com>
3539 * win32-nat.c: Reorganize so that defines used by target headers are
3540 actually defined by the system headers.
3541 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3542 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3544 2003-09-12 Jim Blandy <jimb@redhat.com>
3546 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3547 the file has no .data, .bss, or .rodata sections. Instead wait
3548 until we see a variable alleged to live in one of those sections.
3550 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3551 .bss section, presume that any variables we find live in the
3554 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3555 offsets for global and static variables.
3557 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3558 symbol types are, by definition, in the .data section, so it is
3559 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3560 If there is no .data section, there should be no N_DATA or N_DATA
3563 2003-09-12 Mark Kettenis <kettenis@gnu.org>
3565 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3566 (amd64fbsd_sigcontext_addr): Rewrite.
3567 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3568 with correct values.
3569 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3570 (amd64fbsd_init_abi): Fix typo.
3572 2003-09-12 Andrew Cagney <cagney@redhat.com>
3574 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3575 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3577 2003-09-12 Andrew Cagney <cagney@redhat.com>
3579 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3580 "entry_file_highpc". Update comments.
3581 * defs.h (deprecated_inside_entry_file): Rename
3582 "inside_entry_file".
3583 * blockframe.c (deprecated_inside_entry_file): Rename
3584 "inside_entry_file".
3585 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3586 * vax-tdep.c (vax_frame_chain): Update.
3587 * sh64-tdep.c (sh64_frame_chain): Update.
3588 * sh-tdep.c (sh_frame_chain): Update.
3589 * rs6000-tdep.c (rs6000_frame_chain): Update.
3590 * ns32k-tdep.c (ns32k_frame_chain): Update.
3591 * mips-tdep.c (mips_frame_chain): Update.
3592 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3593 * m32r-tdep.c (m32r_frame_this_id): Update.
3594 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3595 * frv-tdep.c (frv_frame_this_id): Update.
3596 * d10v-tdep.c (d10v_frame_this_id): Update.
3597 * cris-tdep.c (cris_frame_chain): Update.
3598 * blockframe.c (legacy_frame_chain_valid): Update.
3599 * avr-tdep.c (avr_frame_this_id): Update.
3600 * arm-tdep.c (arm_prologue_this_id): Update.
3601 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3602 * objfiles.c (objfile_relocate): Update.
3603 * mipsread.c (mipscoff_symfile_read): Update.
3604 (mipscoff_symfile_read): Update.
3605 * mdebugread.c (parse_partial_symbols): Update.
3606 * dwarfread.c (read_file_scope): Update.
3607 * dwarf2read.c (read_file_scope): Update.
3608 * dbxread.c (read_dbx_symtab): Update.
3609 (read_dbx_symtab): Update.
3610 * coffread.c (complete_symtab): Update.
3612 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3614 * top.c (quit_target): New static helper function.
3615 (quit_force): Moved code to quit_target(). Call quit_target()
3616 via catch_errors() to catch errors during quit.
3618 2003-09-11 David Carlton <carlton@kealia.com>
3620 * buildsym.c (finish_block): Use allocate_block to allocate the
3622 * mdebugread.c (new_block): Add FIXME.
3624 2003-09-11 David Carlton <carlton@kealia.com>
3626 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3627 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3628 (recursive_dump_type): Ditto.
3629 * printcmd.c (print_formatted): Ditto.
3630 * typeprint.c (print_type_scalar): Ditto.
3631 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3632 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3633 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3634 maint_cplus_cmd_list.
3635 * cp-support.c: Make maint_cplus_cmd_list extern.
3636 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3638 (lookup_symbol_file): Look in possible namespace blocks when
3640 (initialize_namespace_symtab): New.
3641 (get_possible_namespace_block, free_namespace_block)
3642 (check_possible_namespace_symbols)
3643 (check_possible_namespace_symbols_loop)
3644 (check_one_possible_namespace_symbol)
3645 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3646 (_initialize_cp_namespace): Ditto.
3647 * block.h: Declare allocate_block.
3648 * block.c (allocate_block): New.
3649 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3651 * symfile.h: Update declaration of add_psymbol_to_list.
3652 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3654 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3655 scan_partial_symbols_call.
3656 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3658 (add_partial_symbol): If necessary, scan mangled names for names
3660 (add_partial_namespace): Add NAMESPACE argument; generate partial
3661 symbols associated to namespaces.
3662 (add_partial_enumeration): Add NAMESPACE argument.
3663 (new_symbol): Allow namespace syms.
3664 (read_namespace): Generate namespace syms.
3665 * objfiles.h: Add opaque declaration of struct symtab.
3666 (struct objfile): Add cp_namespace_symtab member.
3667 * objfiles.c (allocate_objfile): Set
3668 objfile->cp_namespace_symtab.
3669 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3670 dictionary_h, command_h.
3672 2003-09-11 Andrew Cagney <cagney@redhat.com>
3674 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3675 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3676 near the function's end.
3677 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3678 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3679 regcache_raw_write_signed to set SP_REGNUM.
3681 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
3683 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3684 orig_addrs is set up properly.
3686 2003-09-11 Andrew Cagney <cagney@redhat.com>
3688 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3689 * gdbarch.h, gdbarch.c: Re-generate.
3690 * infcall.c (call_function_by_hand): Update.
3691 * hppa-tdep.c (hppa_push_arguments): Update.
3692 * ada-lang.c (place_on_stack): Update.
3693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3694 * sparc-tdep.c (sparc_gdbarch_init): Update.
3695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3696 * hppa-tdep.c (hppa_gdbarch_init): Update.
3697 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3700 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
3702 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3703 register do need a frame.
3705 2003-09-11 Andrew Cagney <cagney@redhat.com>
3707 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3708 buildable since GDB 5.0.
3709 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3710 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3711 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3712 * irix4-nat.c: Delete file.
3713 * config/mips/irix4.mh: Delete file.
3714 * config/mips/irix3.mh: Delete file.
3715 * config/mips/irix3.mt: Delete file.
3716 * config/mips/tm-irix3.h: Delete file.
3717 * config/mips/nm-irix3.h: Delete file.
3718 * config/mips/xm-irix3.h: Delete file.
3719 * config/mips/nm-irix4.h: Delete file.
3720 * config/mips/xm-irix4.h: Delete file.
3721 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3723 2003-09-10 J. Brobecker <brobecker@gnat.com>
3725 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3726 * Makefile.in (hppa-tdep.o): Update dependencies.
3728 2003-09-10 James E Wilson <wilson@specifixinc.com>
3730 * MAINTAINERS: Change my e-mail address. Move to paper trail
3733 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3735 * MAINTAINERS (frv): New ISA entry.
3737 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3739 * frv-tdep.c (dis-asm.h): Include.
3740 * Makefile.in (frv-tdep.o): Update dependencies.
3742 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3744 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3745 Fix typo for high range of floating registers.
3747 2003-09-09 David Carlton <carlton@kealia.com>
3749 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3750 highpc initialization here out of scan_partial_symbols.
3751 (scan_partial_symbols): Restructure into a recursive version,
3752 calling add_partial_namespace and add_partial_enumeration when
3754 (add_partial_namespace): New.
3755 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3757 2003-09-09 Andrew Cagney <cagney@redhat.com>
3759 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3760 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3761 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3762 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3764 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3765 (rs6000_push_dummy_call): Set the "TOC" register.
3767 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3768 methods "max_register_raw_size", "max_register_virtual_size" or
3769 "register_virtual_size".
3771 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3773 * MAINTAINERS: Update my e-mail address.
3775 2003-09-09 Andrew Cagney <cagney@redhat.com>
3777 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3778 (rs6000_push_dummy_call): Store the struct return address.
3779 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3781 2003-09-09 Andrew Cagney <cagney@redhat.com>
3783 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3784 "ppc_sysv_abi_push_arguments".
3785 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3786 "ppc_sysv_abi_push_arguments".
3787 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3788 instead of "push_arguments".
3789 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3791 2003-09-09 Andrew Cagney <cagney@redhat.com>
3793 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3794 instead of CALL_DUMMY_ADDRESS.
3796 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3798 * p-lang.c: Eliminate "register".
3800 * expprint.c: Ditto.
3803 * language.c: Ditto.
3806 * scm-lang.c: Ditto.
3807 * objc-lang.c: Ditto.
3809 2003-09-09 Nick Clifton <nickc@redhat.com>
3811 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3813 2003-09-04 Andrew Cagney <cagney@redhat.com>
3815 * avr-tdep.c: Include "dis-asm.h".
3816 * cris-tdep.c: Include "dis-asm.h".
3817 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3818 instead of corresponding typedef.
3819 * h8300-tdep.c: Include "dis-asm.h".
3820 * ia64-tdep.c: Include "dis-asm.h".
3821 * i386-tdep.c: Include "dis-asm.h".
3822 (i386_print_insn): Use "struct disassemble_info" instead of
3823 corresponding typedef.
3824 * m68k-tdep.c: Include "dis-asm.h".
3825 * mcore-tdep.c: Include "dis-asm.h".
3826 * mips-tdep.c: Include "dis-asm.h".
3827 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3828 instead of corresponding typedef.
3829 * ns32k-tdep.c: Include "dis-asm.h".
3830 * s390-tdep.c: Include "dis-asm.h".
3831 * sparc-tdep.c: Include "dis-asm.h".
3832 * vax-tdep.c: Include "dis-asm.h".
3833 * v850-tdep.c: Include "dis-asm.h".
3834 * mn10300-tdep.c: Include "dis-asm.h".
3835 * rs6000-tdep.c: Include "dis-asm.h".
3836 * xstormy16-tdep.c: Include "dis-asm.h".
3837 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3838 print_insn_xstormy16.
3839 * Makefile.in (v850-tdep.o): Update dependencies.
3840 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3841 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3842 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3843 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3844 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3845 (gdbarch_h): Remove $(dis_asm_h).
3846 * disasm.c: Include "dis-asm.h".
3847 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3848 corresponding typedef.
3849 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3850 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3851 * gdbarch.sh: Do not include "dis-asm.h".
3852 (struct disassemble_info): Declare opaque.
3853 (TARGET_PRINT_INSN): Update declaration.
3854 * gdbarch.h, gdbarch.c: Re-generate.
3856 2003-09-08 Andrew Cagney <cagney@redhat.com>
3858 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3859 CALL_DUMMY_ADDRESS, change to a predicate.
3860 * gdbarch.h, gdbarch.c: Re-generate.
3861 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3862 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3863 * infcall.c (call_function_by_hand): Ditto.
3864 * sparc-tdep.c (sparc_push_return_address): Ditto.
3865 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3866 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3867 CALL_DUMMY_ADDRESS with entry_point_address.
3868 * v850-tdep.c (v850_push_return_address): Ditto.
3869 * s390-tdep.c (s390_push_return_address): Ditto.
3870 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3871 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3872 * mcore-tdep.c (mcore_push_return_address): Ditto.
3873 * cris-tdep.c (cris_push_return_address): Ditto.
3874 * arm-tdep.c (arm_push_return_address): Ditto.
3876 2003-09-08 Andrew Cagney <cagney@redhat.com>
3878 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3879 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3880 and REG_UNMODIFIED to REG_SAME_VALUE.
3881 (execute_cfa_program): Update.
3882 (dwarf2_frame_cache): Update. Initialize table to
3883 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3885 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3887 2003-09-08 Andrew Cagney <cagney@redhat.com>
3889 * gnu-nat.c: Remove "inline" function attribute.
3890 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3892 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3894 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3897 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3899 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3900 (frame_extra_info): Rename this struct to frv_unwind_cache.
3901 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3902 Add fields ``prev_sp'' and ``base''.
3903 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3904 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3905 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3907 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3908 Revise all callers. Fill in the unwind cache argument and make
3909 other adjustments to account for new frame mechanisms.
3910 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3911 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3912 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3913 (frv_frame_unwind, frv_frame_base): New structs.
3914 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3915 additional arguments expected by this method and adjust function
3917 (frv_gdbarch_init): Remove calls to the following functions:
3918 set_gdbarch_deprecated_init_frame_pc(),
3919 set_gdbarch_deprecated_saved_pc_after_call(),
3920 set_gdbarch_deprecated_frame_chain(),
3921 set_gdbarch_deprecated_frame_saved_pc(),
3922 set_gdbarch_deprecated_frame_init_saved_regs(),
3923 set_gdbarch_deprecated_push_arguments(),
3924 set_gdbarch_deprecated_push_return_address(),
3925 set_gdbarch_deprecated_pop_frame(),
3926 set_gdbarch_deprecated_call_dummy_words(),
3927 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3928 set_gdbarch_deprecated_init_extra_frame_info(),
3929 set_gdbarch_deprecated_dummy_write_sp(), and
3930 set_gdbarch_deprecated_pc_in_call_dummy().
3931 Add calls to the following functions:
3932 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3933 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3934 frame_base_set_default().
3935 * Makefile.in (frv-tdep.o): Update dependencies.
3937 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3939 * dwarf2-frame.c (read_encoded_value): Add support for
3940 DW_EH_PE_aligned encoding.
3942 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3944 * infrun.c (normal_stop): Don't print a message if the inferior
3947 2003-09-08 Jim Blandy <jimb@redhat.com>
3949 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3950 * dbxread.c: #include "gdb_assert.h".
3951 (read_dbx_symtab): If the objfile has no .data section, use the
3952 section index for the .bss section instead.
3954 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3956 * frame.c (deprecated_safe_get_selected_frame): New function.
3957 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3958 * findvar.c (read_var_value): Call it.
3960 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3962 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3963 (sh64-tdep.o): Add dependencies.
3964 * configure.tgt: Add FIXME to sh-*-linux*.
3965 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3966 (sh_gdbarch_init): Always set correct sh_show_regs function
3967 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3968 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3969 * sh64-tdep.c: New file, containing all sh64 related code from
3971 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3972 * config/sh/linux.mt (TDEPFILES): Ditto.
3973 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3974 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3975 * config/sh/wince.mt (TDEPFILES): Ditto.
3977 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3979 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3980 (stop_wait_callback): Handle !lp->signalled also.
3981 (lin_lwp_has_pending, flush_callback): New functions.
3982 (lin_lwp_wait): Call flush_callback.
3983 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3984 (linux_proc_pending_signals): New function.
3985 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3987 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3989 From Nick Kelsey <nickk@ubicom.com>:
3990 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3991 when the stop PC is at the beginning of a function also.
3993 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3995 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3996 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3998 2003-09-06 Mark Kettenis <kettenis@gnu.org>
4000 * sol-thread.c: Include "gdb_string.h".
4002 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
4004 * gcore.c: Reorder include files in alphabetical order. Include
4005 "gdb_assert.h". Various coding style fixes.
4006 (derive_stack_segment, derive_heap_segment): Replace check for
4007 non-null BOTTOM and TOP with gdb_assert.
4008 (derive_heap_segment): Replace check for successful creation of
4009 ZERO with gdb_assert.
4010 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
4012 2003-09-04 Andrew Cagney <cagney@redhat.com>
4014 * thread-db.c (verbose_dlsym): New function.
4015 (thread_db_load): Use verbose_dlsym
4016 (thread_db_new_objfile): Print that libthread_db was loaded, and
4017 that thread debugging was enabled.
4019 2003-09-04 Andrew Cagney <cagney@redhat.com>
4021 * configure.tgt: Add "mips64*-*-*" target. Delete
4022 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
4023 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
4024 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
4025 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
4026 mips*-sony-*, and mips64*-*-elf* targets.
4027 * config/mips/embedl.mt: Delete file.
4028 * config/mips/embedl64.mt: Delete file.
4029 * config/mips/mips.mt: Delete file.
4030 * config/mips/mips64.mt: Delete file.
4031 * config/mips/tm-embed.h: Delete file.
4032 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
4033 * config/mips/embed64.mt: Delete out-of-date comment.
4035 2003-09-04 Andrew Cagney <cagney@redhat.com>
4037 * hppa-tdep.c (hppa_gdbarch_init): Set
4038 "have_nonsteppable_watchpoint".
4039 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4040 * mips-tdep.c (mips_dump_tdep): Do not print
4041 HAVE_NONSTEPPABLE_WATCHPOINT.
4042 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
4043 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4044 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4045 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4047 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
4049 * breakpoint.c (watchpoint_check): Remove accidentally checked in
4050 unused code. Add comment.
4052 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
4054 * breakpoint.c (watchpoint_check): Check for pc being in an
4055 epilogue if watchpoint frame couldn't be found.
4057 2003-09-04 Andrew Cagney <cagney@redhat.com>
4059 * Makefile.in: Re-generate all dependencies.
4061 2003-09-03 Andrew Cagney <cagney@redhat.com>
4063 * arch-utils.h (legacy_print_insn): Delete declaration.
4064 * arch-utils.c (legacy_print_insn): Delete function.
4065 * disasm.c (deprecated_tm_print_insn_info): Delete.
4066 (_initialize_disasm): Delete function, contained code initializing
4067 deprecated_tm_print_insn_info.
4068 * gdbarch.sh (deprecated_tm_print_insn): Delete.
4069 (deprecated_tm_print_insn_info): Delete.
4070 (TARGET_PRINT_INSN): Do not provide a default.
4071 * gdbarch.h, gdbarch.c: Re-generate.
4073 2003-09-03 Andrew Cagney <cagney@redhat.com>
4075 * disasm.c (fprintf_disasm): New function.
4076 (gdb_disassemble_info): Call "init_disassemble_info", instead of
4077 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
4078 reverts 2003-08-14 change.
4079 (_initialize_disasm): Call "init_disassemble_info", instead of
4080 INIT_DISASSEMBLE_INFO_NO_ARCH.
4082 2003-09-03 Michael Snyder <msnyder@redhat.com>
4084 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
4086 2003-09-03 Andrew Cagney <cagney@redhat.com>
4088 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
4089 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
4090 * symfile.c (syms_from_objfile): Update.
4091 (reread_symbols): `Update
4092 * exec.c (exec_file_attach): Update.
4093 (exec_file_attach): Update.
4094 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
4096 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
4098 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
4100 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
4102 (arm_get_cache): Delete macro.
4103 (struct arm_prologue_cache): Update comments. Make saved_regs into
4104 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
4106 (thumb_scan_prologue): Update for cache changes. Don't call
4107 DEPRECATED_PC_IN_CALL_DUMMY.
4108 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
4109 argument and use it in desperation search for our prologue. Do not
4110 search past the specified PC.
4111 (arm_make_prologue_cache): Simplify.
4113 (arm_prologue_this_id, arm_prologue_prev_register)
4114 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
4115 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
4116 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
4117 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
4118 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
4120 (arm_frame_chain_valid, arm_find_callers_reg)
4121 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
4122 (arm_pop_frame): Delete obsolete methods.
4123 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
4125 (arm_gdbarch_init): Update for new frame methods. Register prologue
4126 and sigtramp unwinders. Set the default frame base method.
4128 * Makefile.in (arm-tdep.o): Update dependencies.
4129 * varobj.c (find_frame_addr_in_frame_chain): Call
4130 get_frame_base_address.
4131 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4133 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
4135 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
4136 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
4137 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
4138 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
4139 Take NEXT_FRAME and CACHE arguments. Call
4140 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
4141 Set unwound_pc in CACHE instead of modifying the frame argument.
4142 Don't bother checking the frame type when looking for sigtramp
4144 (arm_make_prologue_cache, arm_frame_chain)
4145 (arm_init_extra_frame_info): New functions.
4147 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
4149 * arm-tdep.c (arm_get_cache): Define.
4150 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
4151 unwound_sp, unwound_pc, and saved_regs.
4152 (thumb_scan_prologue): Take a cache instead of the frame.
4153 (arm_scan_prologue): Likewise.
4154 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
4155 instead of a temporary frame.
4156 (arm_init_extra_frame_info): Allocate and use a cache.
4157 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
4159 2003-09-03 Andrew Cagney <cagney@redhat.com>
4161 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
4162 * config/mips/wince.mt (TM_CLIBS): Ditto.
4163 * config/sh/wince.mt (TM_CLIBS): Ditto.
4164 * config/pa/hppa64.mt (TM_CLIBS): Delete.
4165 * config/sparc/sp64.mt (CC): Delete.
4167 2003-09-03 Andrew Cagney <cagney@redhat.com>
4169 * defs.h: Do not include "arch-utils.h".
4170 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
4171 GDB_MULTI_ARCH_PURE.
4172 * configure.in (GDB_MULTI_ARCH): Do not define.
4173 * configure, config.in: Regenerate.
4174 * configure.tgt: Do not set variable "gdb_multi_arch".
4175 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
4176 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
4177 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
4178 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
4179 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
4180 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
4181 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
4182 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
4183 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
4184 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
4185 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
4186 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
4187 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
4188 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
4189 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
4190 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
4191 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
4192 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
4194 2003-08-30 Michael Chastain <mec@shout.net>
4196 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
4197 * config/m68k/nm-hp300hpux.h: Delete.
4198 * config/m68k/tm-hp300hpux.h: Delete.
4199 * config/m68k/xm-hp300hpux.h: Delete.
4200 * config/m68k/xm-hp300bsd.h: Delete.
4201 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
4202 tm-hp300hpux.h, xm-hp300hpux.h.
4203 * somsolib.c: Remove comment about hp300 shared libraries.
4205 2003-08-31 Mark Kettenis <kettenis@gnu.org>
4207 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4208 Only define PTRACE_GET_THREAD_AREA is not already defined.
4209 Various style fixes in code and comments and some additional
4210 spelling fixes in comments. Move after functions dealing with
4212 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4215 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4216 frame_unwind_register_unsigned instead of
4217 frame_unwind_unsigned_register.
4219 2003-08-30 Mark Kettenis <kettenis@gnu.org>
4221 * configure.in: Search for gethostbyname in libnsl.
4222 * configure: Regenerated.
4224 2003-08-29 Mark Kettenis <kettenis@gnu.org>
4226 * configure.in: Remove redundant AC_MSG_RESULT in check for
4227 uintptr_t in stdint.h.
4228 * configure: Regenerated.
4230 * amd64-nat.h (struct regcache): Add opaque declaration.
4232 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4233 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4234 Change "register array" to "register cache" in comments.
4235 (x86_64_linux_gregset64_reg_offset): New variable.
4236 (GETREGS_SUPPLIES): Remove macro.
4237 (supply_gregset): Call amd64_supply_native_gregset instead of
4238 x86_64_linux_supply_gregset.
4239 (fill_gregset): Rename `regno' to `regnum'. Call
4240 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4241 (store_regs): Rename `regno' to `regnum'.
4242 (store_fpregs): Rename `regno' to `regnum'.
4243 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
4244 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4245 Reorganize function a bit.
4246 (store_inferior_registers): Rename `regno' to `regnum'. Use
4247 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4248 Reorganize function a bit.
4249 (_initialize_x86_64_linux_nat): New function.
4250 * config/i386/x86-64linux.mh.
4252 2003-08-29 Andrew Cagney <cagney@redhat.com>
4254 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4255 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4256 (target_remove_watchpoint): Delete macro.
4257 (target_insert_watchpoint): Delete macro.
4258 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4259 (remote_mips_stopped_by_watchpoint): Delete declaration.
4260 (remote_mips_remove_watchpoint): Delete declaration.
4261 (remote_mips_set_watchpoint): Delete declaration.
4262 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4263 * remote-mips.c (_initialize_remote_mips): Set
4264 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4265 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4266 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4267 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4268 (mips_stopped_by_watchpoint): Rename
4269 remote_mips_stopped_by_watchpoint.
4270 (mips_can_hardware_watchpoint): Rename
4271 remote_mips_can_use_hardware_watchpoint, update function
4274 2003-08-29 Mark Kettenis <kettenis@gnu.org>
4276 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4277 USER_DS. We haven't given them a register number yet.
4279 * amd64-nat.h: New file.
4280 * amd64-nat.c: New file.
4281 * amd64fbsd-nat.c: Include "amd64-nat.h".
4282 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4283 (amd64fbsd32_r_reg_offset): New variable.
4284 (supply_gregset): Simply call amd64_supply_native_gregset.
4285 (fill_gregset): Rename `regno' to `regnum'. Simply call
4286 amd64_collect_native_gregset.
4287 (fill_fpregset): Rename `regno' to `regnum'.
4288 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4289 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4290 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4291 `fpregset_t'. Call amd64_supply_native_gregset instead of
4292 supply_gregset. Call x86_64_supply_fxsave instead of
4294 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4295 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4296 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4297 `fpregset_t'. Call amd64_collect_native_gregset instead of
4298 fill_gregset. Call x86_64_collect_fxsave instead of
4300 (_initialize_am64fbsd_nat): Initialize
4301 amd64_native_gregset32_reg_offset and
4302 amd64_native_gregset64_reg_offset.
4303 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4305 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4306 null pointer. Fix typo in comment.
4308 * regcache.c (supply_register): Reimplement to call
4309 regcache_raw_supply.
4310 (regcache_collect): Reimplement by calling regcache_raw_collect.
4312 2003-08-28 Mark Kettenis <kettenis@gnu.org>
4314 * regcache.c (register_buffer): Consitify first argument.
4315 (regcache_raw_supply, regcache_raw_collect): New
4318 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
4320 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4321 by Nathan J. Williams.
4323 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
4325 * lin-lwp.c (wait_lwp): New function, copied from
4326 stop_wait_callback. Clean up.
4327 (stop_wait_callback): Use wait_lwp.
4329 2003-08-28 Andrew Cagney <cagney@redhat.com>
4331 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4332 flavour and disassembler options.
4333 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4334 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4335 deprecated_tm_print_insn_info.
4337 2003-08-27 Andrew Cagney <cagney@redhat.com>
4339 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4340 Use target_read_memory.
4341 (s390_get_frame_info): Update. Do not reference
4342 deprecated_tm_print_insn_info.
4343 (s390_check_function_end, s390_is_sigreturn): Ditto.
4345 2003-08-27 Andrew Cagney <cagney@redhat.com>
4347 * Makefile.in (cris-tdep.o): Update dependencies.
4348 * cris-tdep.c: Include "gdb_assert.h".
4349 (cris_gdbarch_init): Set print_insn.
4350 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4351 (cris_delayed_get_disassembler): Simplify, directly call the
4352 disassembler returned by cris_get_disassembler.
4353 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4354 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4355 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4356 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4357 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4358 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4359 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4360 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4361 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4362 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4363 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4364 (gdb_print_insn_sparc): Delete function.
4365 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4366 deprecated_tm_print_insn_info.
4367 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4368 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4369 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4371 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4372 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4373 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4374 (s390_gdbarch_init): Set print_insn.
4376 2003-08-27 Andrew Cagney <cagney@redhat.com>
4378 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4379 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4380 * infcall.c (call_function_by_hand): Convert the entry point
4381 address into a code address.
4383 2003-08-27 Andrew Cagney <cagney@redhat.com>
4385 * dsrec.c: Include "gdb_string.h".
4386 * Makefile.in (dsrec.o): Update dependencies.
4388 2003-08-27 Michael Chastain <mec@shout.net>
4390 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4392 2003-08-27 Andrew Cagney <cagney@redhat.com>
4394 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4395 (alpha_osf1_init_abi): Do not set call_dummy_address.
4397 2003-08-27 David Carlton <carlton@kealia.com>
4399 From Randolph Chung <tausq@debian.org>:
4400 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4401 compiles with -Wformat-nonliteral -Werror.
4403 2003-08-26 Jim Blandy <jimb@redhat.com>
4405 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4406 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4407 bfd_lookup_symbol, since we only want symbols in code sections.
4408 (look_for_base): Pass zero as the SECT_FLAGS argument to
4409 bfd_lookup_symbol, since we're not concerned about which section
4412 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4414 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
4415 we are frameless or the return address register is already known.
4417 2003-08-26 Andrew Cagney <cagney@redhat.com>
4419 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4420 in size. Add comments.
4422 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4424 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
4425 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
4427 2003-08-26 Jason Merrill <jason@redhat.com>
4429 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4430 case out of #ifdef MIPS block.
4432 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
4435 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4436 available before calling SECT_OFF_TEXT.
4437 * PROBLEMS: Remove description of java/1322.
4439 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4441 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
4442 bof, and nat0-nat127 as pseudo-registers.
4443 (ia64_frame_cache): New struct used to cache frame info.
4444 (ia64_register_reggroup_p): New routine used to override default
4445 register grouping so registers without names are still saved and
4447 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
4449 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4450 (ia64_pseudo_register_write): New routine to write pseudo-registers.
4451 (ia64_alloc_frame_cache): New routine to create a new
4453 (examine_prologue): Change prototype to add next_frame pointer.
4454 Assume frameless until otherwise proven. Verify that the cfm for
4455 current frame matches the cfm that should occur for the prologues
4456 alloc insn and if equal, mark as not frameless. At end of routine,
4457 if not frameless, calculate registers for the previous frame and store
4458 in the cache, if a cache is provided.
4459 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4460 and pass 0 for next_frame.
4461 (ia64_store_return_value): Change to use convert_typed_floating()
4462 instead of calling ia64_convert_to_raw().
4463 (ia64_extract_return_value): Change to use convert_typed_floating()
4464 instead of calling ia64_convert_to_virtual().
4465 (ia64_frame_cache): New routine to support new frame model.
4466 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4467 (ia64_frame_sniffer): Ditto.
4468 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4469 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4470 (ia64_sigtramp_frame_prev_register): Ditto.
4471 (ia64_sigtramp_frame_sniffer): Ditto.
4472 (ia64_frame_base_address): Ditto.
4473 (ia64_extract_struct_value_address): Change to issue error message.
4474 (ia64_frame_align): New routine to align sp.
4475 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
4476 (ia64_push_arguments): Removed. Logic moved to
4477 ia64_push_dummy_call().
4478 (ia64_push_return_address): Ditto.
4479 (ia64_unwind_dummy_id): New function.
4480 (ia64_unwind_pc): Ditto.
4481 (ia64_convert_register_p): Ditto.
4482 (ia64_register_to_value): Ditto.
4483 (ia64_value_to_register): Ditto.
4484 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4485 (ia64_register_byte, ia64_register_raw_size): Ditto.
4486 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4487 (ia64_saved_pc_after_call): Ditto.
4488 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4489 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4490 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4491 (ia64_register_convert_to_raw): Ditto.
4492 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4493 (ia64_init_extra_frame_info): Ditto.
4494 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4495 (ia64_gdbarch_init): Remove registering of deprecated functions that
4496 are no longer used. Add registration of new gdbarch functions.
4497 Remove registering deprecated_write_sp. Replace
4498 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4499 Delete set_gdbarch_deprecated_register_convertible(),
4500 set_gdbarch_deprecated_register_convert_to_virtual(), and
4501 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4502 set_gdbarch_deprecated_register_size(),
4503 set_gdbarch_deprecated_register_bytes(),
4504 set_gdbarch_pcregnum(),
4505 set_gdbarch_deprecated_register_byte(),
4506 set_gdbarch_deprecated_register_raw_size(),
4507 set_gdbarch_deprecated_max_register_raw_size(),
4508 set_gdbarch_deprecated_register_virtual_size(),
4509 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4510 Replace set_gdbarch_deprecated_extract_return_value() with
4511 set_gdbarch_extract_return_value(). Remove calls to:
4512 set_gdbarch_deprecated_saved_pc_after_call();
4513 set_gdbarch_deprecated_frame_chain(),
4514 set_gdbarch_deprecated_frame_saved_pc(),
4515 set_gdbarch_deprecated_frame_init_saved_regs(),
4516 set_gdbarch_deprecated_get_saved_register(),
4517 set_gdbarch_deprecated_call_dummy_words(),
4518 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4519 set_gdbarch_deprecated_init_extra_frame_info(),
4520 set_gdbarch_deprecated_frame_args_address(),
4521 set_gdbarch_deprecated_frame_locals_address(),
4522 and set_gdbarch_deprecated_dummy_write_sp().
4523 Add set_gdbarch_convert_register_p(),
4524 set_gdbarch_register_to_value(),
4525 set_gdbarch_value_to_register(),
4526 set_gdbarch_push_dummy_call(),
4527 set_gdbarch_frame_align(),
4528 set_gdbarch_unwind_dummy_id(),
4529 set_gdbarch_unwind_pc(),
4530 frame_unwind_append_sniffer(),
4531 frame_unwind_append_sniffer(),
4532 and frame_base_set_default().
4534 2003-08-25 Chris Demetriou <cgd@broadcom.com>
4536 * configure.tgt: Document need for special "mipsisa64" handling.
4537 (mipsisa64*-*-linux64): Handle as target linux64.
4538 (mipsisa64*-*-*): Handle as target embed64.
4540 2003-08-18 Michael Chastain <mec@shout.net>
4542 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4545 2003-08-24 Mark Kettenis <kettenis@gnu.org>
4547 * i387-tdep.h: Update copyright date.
4548 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4550 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4551 CFLAGS games to reflect reality.
4553 2003-08-24 Andrew Cagney <cagney@redhat.com>
4555 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4556 GDB_MULTI_ARCH is always non-zero.
4557 * osabi.c (_initialize_gdb_osabi): Ditto.
4558 (gdbarch_init_osabi): Ditto.
4559 * sparc-tdep.c: Ditto for #if code.
4561 2003-08-23 Mark Kettenis <kettenis@gnu.org>
4563 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4565 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4567 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4568 x86_64_supply_fxsave.
4569 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4570 x86_64_supply_fxsave.
4571 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4572 x86_64_supply_fxsave.
4574 2003-08-23 Andreas Jaeger <aj@suse.de>
4576 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4579 2003-08-23 Mark Kettenis <kettenis@gnu.org>
4581 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4582 i387_supply_register.
4583 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4584 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4586 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4588 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4590 * i386bsd-nat.c (supply_fpregset): Adjust call to
4592 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4593 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4595 (store_inferior_registers): Remove extraneous whitespace. Call
4596 i387_fill_fsave instead of fill_fpregset.
4597 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4598 (supply_fpregset): Likewise.
4599 * i386v4-nat.c (supply_fpregset): Adjust call to
4601 * i386-interix-nat.c (supply_fpregset): Adjust call to
4603 * i386-linux-nat.c (supply_fpregset): Adjust call to
4605 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4606 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4607 i387supply_fsave and i387_supply_fxsave.
4608 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4609 Incorporate code from `i387_supply_register.
4610 (i387_supply_register): Remove.
4611 (i387_supply_fxsave): Add `regnum' argument.
4613 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4615 (i387_supply_register): remove prototype.
4618 2003-08-22 Michael Chastain <mec@shout.net>
4620 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4621 Add lines for files in gdb/testsuite/gdb.cp/* that are
4622 still not 8.3 unique.
4624 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
4626 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4627 TYPE_VPTR_FIELDNO is valid.
4629 2003-08-19 Mark Kettenis <kettenis@gnu.org>
4631 * utils.c (set_width_command): Remove prototypes.
4632 (set_screen_size): New prototype.
4633 (init_page_info): Simplify by fetching the screen size from
4634 Readline. Call set_screen_size.
4635 (set_screen_size): New function.
4636 (set_width): Add missing whitespace in comment.
4637 (set_width_command): Call set_screen_size.
4638 (set_height_command): New function.
4639 (initialize_utils): Fix formatting. Make "set height" command
4640 call set_height_command. Remove redundant code that turns off
4641 pagination if output isn't a terminal. Remove redundant call to
4644 2003-08-22 Mark Kettenis <kettenis@gnu.org>
4646 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4647 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4648 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4649 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4651 (sparc64_register_info): Give the reister with number
4652 SPARC64_STATE_REGNUM a name.
4653 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4655 (sparc64_push_dummy_call): Take BIAS into account when checking
4657 (sparc_software_single_step): Remove assertions that check whether
4658 NPC and NNPC were zero.
4659 (sparc_supply_rwindow): Make public. Merge functionality with
4660 sparc64_supply_rwindow.
4661 (sparc_fill_rwindow): Make public. Merge functionality with
4662 sparc64_fill_rwindow.
4663 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4664 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4665 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4666 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4667 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4669 * reggroups.c: Add whitespace after declarations of local
4670 variables in functions.
4672 2003-08-21 Michael Chastain <mec@shout.net>
4674 * gdbtypes.h: Change array bound type from an int to enum.
4676 2003-08-21 Andrew Cagney <cagney@redhat.com>
4678 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4679 * config/sparc/tm-sparc.h: Ditto.
4680 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4682 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4684 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4686 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4687 (register_objfile_data, set_objfile_data, objfile_data): New
4689 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4691 (allocate_objfile): Call objfile_alloc_data.
4692 (free_objfile): Call objfile_free_data.
4693 (struct objfile_data): New.
4694 (struct objfile_data_registration): New.
4695 (struct objfile_data_registry): New.
4696 (objfile_data_registry): New variable.
4697 (register_objfile_data): New function.
4698 (objfile_alloc_data, objfile_free_data): New functions.
4699 (set_objfile_data, objfile_data): New functions.
4700 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4701 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4702 (_initialize_dwarf2_frame): New function and prototype.
4704 2003-08-21 Andrew Cagney <cagney@redhat.com>
4706 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4707 a specific architecture.
4708 * arch-utils.h (set_architecture_from_arch_mach): Delete
4710 (target_architecture_hook): Delete declaration.
4711 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4712 (default_float_format): Assume GDB_MULTI_ARCH.
4713 (default_double_format): Assume GDB_MULTI_ARCH.
4714 (set_endian_from_file): Delete function.
4715 (arch_ok): Delete function.
4716 (set_arch): Delete function.
4717 (set_architecture_from_arch_mach): Delete function.
4718 (set_architecture_from_file): Delete function.
4719 (set_architecture): Assume GDB_MULTI_ARCH.
4720 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4722 2003-08-21 Mark Kettenis <kettenis@gnu.org>
4724 Rewrite FreeBSD/sparc64 native configuration.
4725 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4726 * sparc64fbsd-nat.c: New file.
4727 * sparc64fbsd-tdep.c: New file.
4728 * sparc64-tdep.c sparc64-tdep.h: New files.
4729 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4730 sparc64fbsd-tdep.o): New dependencies.
4731 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4732 and sparc64fbsd-tdep.c.
4733 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4734 * config/sparc/fbsd.mh: Remove copyright notice.
4735 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4737 * config/sparc/fbsd.mt: Remove copyright notice.
4738 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4739 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4740 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4741 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4742 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4743 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4744 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4745 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4747 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4748 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4750 2003-08-21 Michael Chastain <mec@shout.net>
4752 * symtab.h: Add doco on the space critical structures and
4753 some measurements of space usage.
4755 2003-08-21 Michael Snyder <msnyder@redhat.com>
4757 * tracepoint.c (trace_dump_command): Trace break address
4758 is subject to DECR_PC_AFTER_BREAK.
4759 (set_traceframe_context): Make "trace_line" an int.
4760 Fixes suggested by Mark Newman <mark.newman@lmco.com>
4762 2003-08-20 Michael Snyder <msnyder@redhat.com>
4764 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4765 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4766 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4768 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4769 functions, replace sh_push_dummy_call.
4770 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4772 2003-08-20 Michael Chastain <mec@shout.net>
4774 * gdbtypes.h (struct main_type): Rearrange to save space.
4776 2003-08-20 Michael Snyder <msnyder@redhat.com>
4778 * trad-frame.c: Comment typo fix.
4780 2003-08-20 Michael Snyder <msnyder@redhat.com>
4781 Kevin Buettner <kevinb@redhat.com>
4783 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4784 (frv_frame_init_saved_regs): Add declaration.
4785 (frame_extra_info): Add new field ``saved_regs''.
4786 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4787 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4788 Update frame related code.
4789 (frv_extract_struct_value_address): Adjust formatting.
4790 * Makefile.in (frv-tdep.o): Update dependencies.
4791 * config/frv/tm-frv.h (target_insert_watchpoint)
4792 (target_remove_watchpoint, target_insert_hw_breakpoint)
4793 (target_remove_hw_breakpoint): Delete these macros.
4794 (remote_insert_watchpoint, remote_remove_watchpoint)
4795 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4798 2003-08-20 Michael Chastain <mec@shout.net>
4800 * defs.h (ENUM_BITFIELD): New macro.
4801 * symtab.h (ENUM_BITFIELD): Use it.
4802 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4804 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4806 * MAINTAINERS (write after approval): Add myself.
4808 2003-08-18 Andrew Cagney <cagney@redhat.com>
4810 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4811 * gdbarch.h, gdbarch.c: Re-generate.
4812 * infcall.c (call_function_by_hand): Adjust the SP by
4813 frame_red_zone_size before allocating any stack space.
4814 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4815 * x86-64-tdep.c (x86_64_frame_align): New function.
4816 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4818 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4819 Remove code adjusting SP so that it skips over the Red Zone.
4821 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4823 * NEWS (New native configurations): Mention FreeBSD/amd64.
4825 2003-08-18 Andrew Cagney <cagney@redhat.com>
4827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4828 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4830 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4832 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4834 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4836 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4838 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4840 * i386-linux-nat.c: Include "linux-nat.h".
4841 (child_post_startup_inferior): New function.
4843 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4845 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4846 at the start of a frameless function. This probably fixes PR
4849 2003-08-17 Michael Chastain <mec@shout.net>
4851 * symfile.c (find_sym_fns): Remove special case for apollo target.
4853 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4855 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4856 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4857 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4858 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4859 (linux_supports_tracevforkdone): New function.
4860 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4862 (child_follow_fork): Handle vfork.
4863 (linux_handle_extended_wait): Likewise. Also handle exec.
4864 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4865 * NEWS: Mention fork tracing.
4867 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4869 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4871 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4873 * Makefile.in (i386-linux-nat.o): Update dependencies.
4874 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4875 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4876 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4877 * i386-linux-nat.c: Include "linux-nat.h".
4878 (child_post_startup_inferior): New function.
4879 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4880 * infptrace.c (kill_inferior): Wrap in #ifdef.
4881 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4882 attaching to each LWP.
4883 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4884 (init_lin_lwp_ops): Fill in some more operations.
4885 * linux-nat.h (linux_enable_event_reporting)
4886 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4888 * linux-nat.c (linux_enable_event_reporting): New function.
4889 (child_post_attach, linux_child_post_startup_inferior)
4890 (child_post_startup_inferior, child_follow_fork)
4891 (linux_handle_extended_wait, kill_inferior): New functions.
4893 2003-08-16 Andrew Cagney <cagney@redhat.com>
4895 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4896 * gdbarch.h, gdbarch.c: Re-generate.
4898 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4900 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4902 2003-08-16 Andrew Cagney <cagney@redhat.com>
4904 * NEWS: Mention that "set prompt-escape-char" was deleted.
4905 * top.c (get_prompt_1): Delete function.
4906 (gdb_prompt_escape):
4907 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4908 prompt-escape-char" command.
4909 (MAX_PROMPT_SIZE): Delete macro.
4910 (get_prompt): Simplify, do not call get_prompt_1.
4912 2003-08-16 Andrew Cagney <cagney@redhat.com>
4914 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4915 -Werror. -Wformat-nonliteral problems.
4917 2003-08-15 J. Brobecker <brobecker@gnat.com>
4919 Further multiarching work mostly for hppa64-*-hpux11:
4920 * hppa-tdep.h: New file.
4921 * hppa-tdep.c: #include hppa-tdep.c.
4922 (hppa32_num_regs): Renamed from hppa_num_regs.
4923 (hppa64_num_regs): New constant.
4924 (hppa64_call_dummy_breakpoint_offset): New constant.
4925 (hppa32_call_dummy_length): New constant.
4926 (hppa64_call_dummy_length): New constant.
4927 (hppa32_stack_align): Make name 32bit explicit.
4928 (hppa32_register_virtual_type): Likewise.
4929 (hppa32_extract_return_value): Likewise.
4930 (hppa32_use_struct_convention): Likewise.
4931 (hppa32_store_return_value): Likewise.
4932 (hppa64_register_virtual_type): New function.
4933 (hppa64_extract_return_value): New function.
4934 (hppa64_use_struct_convention): New function.
4935 (hppa64_store_return_value): New function.
4936 (hppa_frame_locals_address): Remove declaration, function does
4938 (hppa_register_byte): Add support for PA64 ABI.
4939 (hppa_gdbarch_init): Add support for PA64 ABI.
4940 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4941 Make name 32bit explicit.
4942 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4943 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4944 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4945 (hppa64_hpux_frame_base_before_sigtramp): New function.
4946 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4947 * config/pa/tm-hppa64.h: Remove macros that are no longer
4948 necessary now that the gdbarch vector is properly setup.
4949 Transform some macros into function calls. Some minor cleanup.
4950 * config/pa/tm-hppah.h: Update function calls in macros
4951 following the function renaming in hppa-hpux-tdep.c.
4952 * Makefile.in (hppa_tdep_h): New variable.
4953 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4955 2003-08-14 Michael Snyder <msnyder@redhat.com>
4957 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4959 2003-08-13 J. Brobecker <brobecker@gnat.com>
4961 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4962 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4965 2003-08-13 Michael Snyder <msnyder@redhat.com>
4967 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4968 (frv_saved_pc_after_call): Use deprecated ftype.
4969 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4970 (frv_remote_translate_xfer_address): Remove.
4971 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4973 2003-08-13 J. Brobecker <brobecker@gnat.com>
4975 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4976 initialization after the common gdbarch initialization, not before.
4978 2003-08-13 J. Brobecker <brobecker@gnat.com>
4980 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4981 (ADDR_BITS_REMOVE): Remove, redundant.
4983 2003-08-13 J. Brobecker <brobecker@gnat.com>
4985 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4986 gdbarch method to clear the 2 low bits of text addresses.
4988 2003-08-12 Andrew Cagney <cagney@redhat.com>
4990 * Makefile.in (dsrec.o): Update dependencies.
4991 * dsrec.c: Include "gdb_assert.h".
4992 (make_srec): Use snprintf instead of sprintf, use a literal format
4995 2003-08-12 Andrew Cagney <cagney@redhat.com>
4997 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4998 FRAME_OBSTACK_ZALLOC.
5000 2003-08-12 Kevin Buettner <kevinb@redhat.com>
5002 * i386-tdep.c (i386_gdbarch_init): Enable default support for
5005 2003-08-10 Mark Kettenis <kettenis@gnu.org>
5007 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
5008 amd64fbsd_sc_reg_offset): Add extern declarations.
5009 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
5012 2003-08-11 Ben Elliston <bje@wasabisystems.com>
5014 * MAINTAINERS (write after approval): Update my mail address.
5016 2003-08-10 Andrew Cagney <cagney@redhat.com>
5018 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
5020 2003-08-10 Mark Kettenis <kettenis@gnu.org>
5022 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5023 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
5024 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
5025 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
5026 i386bsd_sc_reg_offset): Add extern declarations.
5027 * i386obsd-nat.c: Include "i386-tdep.h"
5028 (_initialize_i386obsd_nat): Remove extern declarations.
5029 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
5031 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
5034 * i386-tdep.c (i386_register_to_value): Use get_frame_register
5035 instead of frame_read_register.
5036 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
5037 instead of frame_read_register. Use I386_ESP_REGNUM instead of
5039 (i386_frame_prev_register): Use frame_unwind_register_unsigned
5040 instead of frame_unwind_unsigned_register. Use
5041 I386_EFLAGS_REGISTER instead of PS_REGNUM.
5042 (i386_get_longjmp_target): Use regcache_read_unsigned_register
5043 instead of read_register. Use builtin_type_void_data_ptr instead
5044 of builtin_type_void_func_ptr when extracting the address of the
5046 (i386_extract_return_value, i386_store_return_value,
5047 i386_pseudo_register_read, i386_pseudo_register_write): Use
5048 register_size instead REGISTER_RAW_SIZE.
5050 2003-08-10 Andrew Cagney <cagney@redhat.com>
5052 * infcall.c (call_function_by_hand): Use xstrprintf instead of
5053 sprintf. Make "name" constant.
5055 2003-08-10 Mark Kettenis <kettenis@gnu.org>
5057 * i387-tdep.c (i387_register_to_value): Use get_frame_register
5058 instead of frame_read_register.
5059 (i387_print_float_info): Use get_frame_register and
5060 get_frame_register_unsigned instead of frame_register_read.
5062 * i386fbsd-nat.c: Include "i386-tdep.h".
5063 (child_resume): Make `eflags' an ULONGEST. Use
5064 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
5065 instead of register_read and register_write.
5067 * i386bsd-nat.c (fetch_inferior_registers,
5068 store_inferior_registers): Don't use && at the end of a line.
5069 (_initialize_i386bsd_nat): Fix typo.
5071 * frame.c (_initialize_frame): Add missing backslash.
5073 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
5074 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
5075 and supply_register instead of manipulating the register buffer
5078 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
5079 * config/i386/nm-i386sol2.h
5080 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
5082 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
5083 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
5084 instructions that GCC likes to mingle into the prologue. Fixes
5085 gdb/1253 and gdb/1255.
5087 2003-08-09 Andrew Cagney <cagney@redhat.com>
5090 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
5091 * command.h (add_setshow_uinteger_cmd): Declare.
5092 * frame.c (set_backtrace_cmd): New function.
5093 (show_backtrace_cmd): New function.
5094 * frame.c (_initialize_frame): Replace "set/show
5095 backtrace-below-main" with "set/show backtrace past-main". Add
5096 command "set/show backtrace limit".
5097 (backtrace_past_main): Rename "backtrace_below_main".
5098 (backtrace_limit): New variable.
5099 (get_prev_frame): Update. Check the backtrace_limit.
5101 2003-08-09 Andrew Cagney <cagney@redhat.com>
5103 * defs.h (xstrprintf): Declare.
5104 * utils.c (xstrprintf): New function.
5105 * breakpoint.c (insert_breakpoints): Replace sprintf and
5106 non-literal format strings, with xstrprintf and cleanups.
5107 (delete_breakpoint,breakpoint_re_set): Ditto.
5108 (commands_command, insert_breakpoints): Ditto.
5109 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
5110 (break_at_finish_command_1): Ditto.
5112 2003-08-09 Andrew Cagney <cagney@redhat.com>
5114 * MAINTAINERS (language support): List Adam Fedor as Objective C
5117 2003-08-08 J. Brobecker <brobecker@gnat.com>
5119 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
5120 are now multiarched.
5122 2003-08-08 J. Brobecker <brobecker@gnat.com>
5124 * config/pa/tm-hppa64.h: Remove lots of macros that are no
5125 longer necessary now that hppa64 is partially multiarch'ed.
5127 2003-08-08 Andrew Cagney <cagney@redhat.com>
5129 * interps.c (interp_set): Check for a NULL "old_interp".
5131 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
5133 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
5134 (install-only): Support DESTDIR.
5135 (uninstall): Likewise.
5136 (install-gdbtk): Likewise.
5138 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
5140 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
5141 contains something meaningful at all times.
5143 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
5145 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
5147 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
5149 * MAINTAINERS (write after approval): Added self.
5151 2003-08-07 Andrew Cagney <cagney@redhat.com>
5153 * inferior.h (AT_SYMBOL): Define.
5154 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
5155 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
5156 * mips-tdep.c (mips_call_dummy_address): Delete function.
5157 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
5158 set call_dummy_address.
5160 2003-08-07 Andrew Cagney <cagney@redhat.com>
5162 * language.c (op_error): Delete function.
5163 (binop_type_check): Delete function.
5164 * language.h (type_op_error, range_op_error): Delete macros.
5165 (op_error): Delete declaration.
5167 2003-08-07 Andrew Cagney <cagney@redhat.com>
5169 * interps.h (INTERP_MI2, INTERP_MI3): Define.
5171 2003-08-07 Michal Ludvig <mludvig@suse.cz>
5173 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
5174 (x86_64_push_arguments): Skip the red zone.
5176 2003-08-05 Andrew Cagney <cagney@redhat.com>
5178 * reggroups.c (reggroup_next): Check for the final entry.
5180 2003-08-04 Andrew Cagney <cagney@redhat.com>
5182 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
5183 * cli/cli-script.c (define_command): Call query directly, instead
5184 of passing it a buffer.
5185 * ocd.c (ocd_error): Pass error a constant format string.
5186 * remote-mips.c (mips_error): Use fputs_filtered.
5188 * solib-svr4.c (_initialize_svr4_solib): Update
5189 register_gdbarch_data call.
5190 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
5192 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
5193 (register_gdbarch_data): Delete "free" parameter. Update
5195 * gdbarch.h, gdbarch.c: Re-generate.
5196 * reggroups.c (_initialize_reggroup): Update.
5197 * gnu-v3-abi.c (init_gnuv3_ops): Update.
5198 * frame-base.c (_initialize_frame_base): Update.
5199 * frame-unwind.c (_initialize_frame_unwind): Update.
5200 * user-regs.c (_initialize_user_regs): Update.
5201 * remote.c (_initialize_remote): Update.
5202 * regcache.c (_initialize_regcache): Update.
5204 * regcache.c (xfree_regcache_descr): Delete function.
5205 (_initialize_regcache): Update call to register_gdbarch_data.
5206 (init_regcache_descr, init_legacy_regcache_descr): Use
5207 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
5209 * remote.c (free_remote_state): Delete function.
5210 (_initialize_remote): Update register_gdbarch_data.
5211 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5212 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5214 2003-08-04 Andrew Cagney <cagney@redhat.com>
5216 * reggroups.c (struct reggroup_el): Define.
5217 (struct reggroups): Delete field "nr_group". Replace array
5218 "group" with a "first" to "last" linked list.
5219 (reggroups_init): Update. Allocate using gdbarch's obstack.
5220 (reggroups_free): Delete function.
5221 (add_group): Update. Add "el" parameter.
5222 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5223 (default_groups): Update.
5224 (reggroup_next): Replace reggroups.
5225 (reggroups_dump): Update.
5226 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5227 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5228 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5230 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
5232 * Makefile.in (tui-interp.o): Update dependencies.
5234 2003-08-04 David Carlton <carlton@kealia.com>
5236 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5237 to internal_error call.
5238 * source.c (forward_search_command): Add "%s" format argument.
5239 (reverse_search_command): Ditto.
5240 * top.c (quit_confirm): Ditto.
5241 * cli/cli-setshow.c (do_setshow_command): Ditto.
5242 * cp-valprint.c (cp_print_class_method): Replace
5243 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5244 (cp_print_class_member): Ditto.
5245 * event-top.c (command_line_handler): Ditto.
5246 * linux-proc.c (linux_info_proc_cmd): Ditto.
5247 * p-typeprint.c (pascal_type_print_base): Ditto.
5248 * p-valprint.c (pascal_object_print_class_method): Ditto.
5249 (pascal_object_print_class_member): Ditto.
5250 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5251 * remote.c (remote_cisco_section_offsets): Ditto.
5252 * top.c (command_line_input): Ditto.
5253 * utils.c (vwarning,error_stream,quit): Ditto.
5254 * valprint.c (print_floating,print_binary_chars)
5255 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5257 2003-08-04 Andrew Cagney <cagney@redhat.com>
5259 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5261 2003-08-02 Andrew Cagney <cagney@redhat.com>
5263 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5264 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5267 2003-08-02 Andrew Cagney <cagney@redhat.com>
5269 * Makefile.in: Update all dependencies and definitions.
5271 2003-08-02 Adam Fedor <fedor@gnu.org>
5273 * linespec.c (is_objc_method_format): New function
5274 (decode_line_1, locate_first_half): Use it.
5277 2003-08-01 Andrew Cagney <cagney@redhat.com>
5279 * NEWS: Mention that m32r is multi-arch.
5280 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5281 * configure.tgt: Recognize m32r-*-*.
5282 * config/m32r/tm-m32r.h: Delete file.
5283 * config/m32r/m32r.mt: New file.
5284 * m32r-rom.c (m32r_upload_command): Use hostent only when
5285 gethostname succeeds, in order to avoid a compilation
5287 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5290 2003-08-01 Michael Snyder <msnyder@redhat.com>
5292 * sh-tdep.c (sh_frame_align): New gdbarch method.
5293 (sh_gdbarch_init): Set up frame_align method.
5295 2003-07-31 Michael Snyder <msnyder@redhat.com>
5297 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5298 which is already covered by the new frames infrastructure.
5300 2003-07-31 Andrew Cagney <cagney@redhat.com>
5302 * user-regs.c (struct user_reg): Add "next" link.
5303 (struct user_regs): Replace "user" with "first" and "last" links.
5304 (append_user_reg): Add pre-allocated "reg" parameter.
5305 (builtin_user_regs): Provide initial value for "last".
5306 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5307 (user_regs_init): Allocate memory from the gdbarch obstack.
5308 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5309 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5311 (usernum_to_user_reg): New function.
5312 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5313 (value_of_user_reg): Use usernum_to_user_reg.
5314 (user_regs_free): Delete function.
5315 (_initialize_user_regs): Update register_gdbarch_data call.
5317 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
5319 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5321 2003-07-30 Michael Snyder <msnyder@redhat.com>
5323 * value.h (value_being_returned): Add a struct_addr argument.
5324 * infcall.c (call_function_by_hand): Pass struct_addr to
5325 value_being_returned.
5326 * infcmd.c (print_return_value): Pass zero as struct_addr.
5327 * values.c (value_being_returned): If struct_addr is passed,
5328 use it instead of trying to recover it from the inferior.
5330 2003-07-30 Kevin Buettner <kevinb@redhat.com>
5332 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5333 the prologue analyzer won't need to attempt to extract the pc
5334 value from the woefully incomplete dummy frame.
5335 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5336 possible. Disable code which modifies the frame.
5338 2003-07-28 Andrew Cagney <cagney@redhat.com>
5340 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5342 (annotate_breakpoints_table, annotate_record): Ditto.
5343 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5344 (annotate_field_name_end, annotate_field_value): Ditto.
5345 (annotate_field_end, annotate_frame_source_begin): Ditto.
5346 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5347 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5348 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5349 (annotate_frame_address_end, annotate_frame_address): Ditto.
5350 (annotate_frame_args, annotate_frame_end): Ditto.
5351 (annotate_frame_where, annotate_arg_begin): Ditto.
5352 (annotate_arg_name_end, annotate_arg_value): Ditto.
5353 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5354 (annotate_function_call, annotate_signal_name): Ditto.
5355 (annotate_signal_string, annotate_signal_name_end): Ditto.
5356 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5357 (annotate_value_begin, annotate_value_history_value): Ditto.
5358 (annotate_value_history_end, annotate_value_end): Ditto.
5359 (annotate_display_begin, annotate_display_number_end): Ditto.
5360 (annotate_display_format, annotate_display_expression): Ditto.
5361 (annotate_display_expression_end, annotate_display_value): Ditto.
5362 (annotate_display_end, annotate_array_section_begin): Ditto.
5363 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5364 (annotate_elt, annotate_array_section_end): Ditto.
5366 2003-07-28 Andrew Cagney <cagney@redhat.com>
5368 * regcache.c (struct regcache_descr): Update comments on
5370 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5371 sizeof_raw_register_valid_p.
5372 (init_regcache_descr): Set nr_raw_registers and
5373 sizeof_raw_register_valid_p before calling
5374 init_legacy_regcache_descr.
5376 2003-07-28 Andrew Cagney <cagney@redhat.com>
5378 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5381 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
5383 * thread.c (info_threads_command): Use get_selected_frame ().
5384 Check that there is at least one non-sentinel frame.
5386 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5388 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5389 (m68hc11_pop_frame): Remove.
5390 (m68hc11_frame_saved_pc): Remove.
5391 (m68hc11_frame_chain): Remove.
5392 (m68hc11_frame_init_saved_regs): Remove.
5393 (m68hc11_init_extra_frame_info): Remove.
5394 (m68hc11_store_struct_return): Remove.
5395 (m68hc11_saved_pc_after_call): Remove.
5397 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5399 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5400 frame unwind information.
5401 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5402 and adapted for frame unwinding.
5403 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5404 (m68hc11_unwind_pc): New function.
5405 (m68hc11_frame_unwind_cache): New function to analyze frames.
5406 (m68hc11_frame_this_id): New function to create new frame struct.
5407 (m68hc11_frame_prev_register): New function to unwind a register from
5409 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5410 (m68hc11_frame_p): New function for the above.
5411 (m68hc11_frame_base_address): New function to return fp of frame.
5412 (m68hc11_frame_args_address): Update for frame.
5413 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5414 (m68hc11_unwind_sp): New function.
5415 (m68hc11_unwind_dummy_id): New function.
5416 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5419 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5421 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5422 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5423 when we are beyond the current pc.
5425 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5427 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5428 from m68hc11_push_arguments.
5429 (m68hc11_push_arguments): Remove.
5430 (m68hc11_push_return_address): Remove.
5431 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5432 handlers; remove deprecated_extra_stack_alignment_needed.
5434 2003-07-27 Andrew Cagney <cagney@redhat.com>
5436 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5437 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5438 REAL_PC and not the pointer.
5439 * hppa-hpux-tdep.c: Include frame.h
5441 2003-07-27 Andrew Cagney <cagney@redhat.com>
5443 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5444 GDB_MULTI_ACH_PARTIAL.
5446 2003-07-27 Andrew Cagney <cagney@redhat.com>
5448 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5449 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5450 operator at start and not end of line.
5451 (decode_prologue): Ditto.
5452 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5453 frame_unwind_register_unsigned instead of
5454 frame_unwind_unsigned_register.
5455 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5457 (m32r_push_dummy_call): Use register_size instead of
5459 (m32r_frame_sniffer): Replace m32r_frame_p.
5460 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5461 * m32r-rom.c (report_transfer_performance): Delete extern
5463 (m32r_load, m32r_upload_command): Use print_transfer_performance
5464 instead of report_transfer_performance.
5465 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5466 / add_show_from_set.
5468 2003-07-26 Andrew Cagney <cagney@redhat.com>
5470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5471 store_return_value and extract_struct_value_address.
5473 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
5476 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5477 NULL, default to the section containing PC.
5479 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5481 * NEWS: Mention "regs" deprecated for m68hc11 too.
5483 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5484 (m68hc11_print_register): New function to print out one register.
5485 (m68hc11_print_registers_info): New function to print registers.
5486 (show_regs): Deprecate and use the above.
5487 (m68hc11_gdbarch_init): Install the print_registers_info.
5489 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5491 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5492 that we have a SIGTRAP before returning non-zero.
5494 2003-07-23 Michal Ludvig <mludvig@suse.cz>
5495 Elena Zannoni <ezannoni@redhat.com>
5497 * linespec.c (decode_line_2): Avoid crash if
5498 find_function_start_sal() returns empty record.
5500 2003-07-23 Andreas Schwab <schwab@suse.de>
5502 * ia64-tdep.c (ia64_print_insn): New function.
5503 (ia64_gdbarch_init): Set print_insn to it.
5504 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5505 deprecated_tm_print_insn_info.
5507 2003-07-22 Michael Snyder <msnyder@redhat.com>
5509 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5510 handle 8-bit returns (long long).
5511 (h8300h_extract_return_value): Ditto.
5512 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5514 2003-07-22 Andrew Cagney <cagney@redhat.com>
5516 * gdbarch.c Include "gdb_obstack.h".
5517 (struct gdbarch): Add an "obstack".
5518 (alloc_gdbarch_data): Allocate the gdbarch data using
5519 GDBARCH_OBSTACK_CALLOC.
5520 (free_gdbarch_data): Delete function.
5521 (gdbarch_obstack_zalloc): New function.
5522 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5523 Assert that the architecture is not initialized.
5524 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5525 vector from the obstack.
5526 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5527 architecture obstack.
5528 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5529 (set_gdbarch_data): Assert that the data is not initialized.
5530 (struct gdbarch_data): Delete member "free".
5531 (register_gdbarch_data): Do not initialize "free".
5532 * gdbarch.h, gdbarch.c: Re-generate.
5534 2003-07-22 Andrew Cagney <cagney@redhat.com>
5536 * configure.in (build_warnings): Add -Wformat-nonliteral.
5537 * configure: Re-generate.
5539 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
5541 * dwarf2loc.c (locexpr_describe_location): Fix typos.
5543 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
5545 * findvar.c (read_var_value): Remove case for thread local storage
5546 variables. It is now entirely handled by the dwarf2 location
5548 * printcmd.c (address_info): Ditto.
5549 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5551 (struct symbol): Remove objfile field, which was used by
5552 LOC_THREAD_LOCAL_STATIC only.
5553 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5554 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5555 usage of objfile pointer.
5556 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5557 thread local variables.
5558 Add include of objfiles.h.
5559 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5561 * Makefile.in (dwarf2loc.o): Update dependencies.
5563 2003-07-22 Andrew Cagney <cagney@redhat.com>
5565 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5567 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5568 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5569 (struct value): Add opaque declaration.
5570 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5572 2003-07-21 Andrew Cagney <cagney@redhat.com>
5574 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5575 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5577 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5579 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
5580 regcache_cooked_read_unsigned instead of read_register.
5581 (m68hc11_saved_pc_after_call): Likewise.
5582 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5583 instead of write_register.
5584 (m68hc11_register_type): New function.
5585 (m68hc11_register_virtual_type): Remove.
5586 (m68hc11_store_return_value): Convert to use the regcache.
5587 (m68hc11_extract_struct_value_address): Likewise.
5588 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5589 m68hc11_register_type; undeprecate store_return_value and
5590 extract_struct_value_address.
5592 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5594 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5595 and translate to use regcache.
5596 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5598 2003-07-18 Andrew Cagney <cagney@redhat.com>
5600 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5601 * gdbarch.h, gdbarch.c: Re-generate.
5602 * i386-tdep.c (i386_gdbarch_init): Do not set
5603 DWARF2_BUILD_FRAME_INFO.
5604 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5606 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5607 DWARF2_BUILD_FRAME_INFO.
5609 2003-07-18 Andrew Cagney <cagney@redhat.com>
5611 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5612 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5614 2003-07-18 Andrew Cagney <cagney@redhat.com>
5616 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5617 frame_unwind_address_in_block, instead of frame_pc_unwind.
5618 (dwarf2_frame_cache): Ditto.
5620 2003-07-18 Andrew Cagney <cagney@redhat.com>
5622 * user-regs.h (struct gdbarch): Declare opaque.
5623 * ui-out.h (struct ui_file): Declare opaque.
5624 * dwarf2-frame.h (struct frame_info): Declare opaque.
5626 2003-07-18 Kris Warkentin <kewarken@qnx.com>
5628 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5630 (procfs_meminfo): Change strerror to safe_strerror.
5631 (procfs_can_run): Remove K&R badness.
5633 2003-07-17 Michael Snyder <msnyder@redhat.com>
5635 * remote-sim.c: Comment typo fix.
5637 2003-07-17 Andrew Cagney <cagney@redhat.com>
5639 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5641 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5642 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5643 GDB_MULTI_ARCH_PARTIAL.
5645 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
5647 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5648 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5649 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5651 2003-07-16 Theodore A. Roth <troth@openavr.org>
5653 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5655 (avr_frame_unwind_cache): Don't unwind FP for main.
5657 Save the computed prev_sp.
5658 (avr_saved_regs_unwinder): Remove function.
5659 (avr_frame_prev_register): Use PC unwind logic from
5660 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5662 2003-07-16 Andrew Cagney <cagney@redhat.com>
5664 * frame-base.h (frame_base_p_ftype): Delete definition.
5665 (frame_base_append_predicate): Delete declaration.
5666 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5667 (frame_unwind_append_predicate): Delete declaration.
5668 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5669 (append_predicate): Delete parameter "p".
5670 (frame_unwind_append_predicate): Delete function.
5671 (frame_unwind_append_sniffer): Update call to append_predicate.
5672 (frame_unwind_free): Delete function.
5673 (_initialize_frame_unwind): Pass NULL as "free" to
5674 register_gdbarch_data.
5675 (frame_unwind_init): Append the dummy_frame_sniffer.
5676 (frame_unwind_find_by_frame): Simplify.
5677 * frame-base.c (struct frame_base_table): Delete field "p".
5678 (append_predicate): Delete parameter "p".
5679 (frame_base_append_predicate): Delete function.
5680 (frame_base_append_sniffer): Update call to append_predicate.
5681 (frame_base_free): Delete function.
5682 (frame_base_find_by_frame): Simplify.
5683 (_initialize_frame_base): Pass NULL as "free" to
5684 register_gdbarch_data.
5685 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5686 (x86_64_sigtramp_frame_sniffer): Replace
5687 "x86_64_sigtramp_frame_p".
5688 (x86_64_init_abi): Set the frame unwind sniffers.
5689 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5690 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5691 (m68k_gdbarch_init): Set the frame unwind sniffers.
5692 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5693 "i386_sigtramp_frame_p".
5694 (i386_frame_sniffer): Replace "i386_frame_p".
5695 (i386_gdbarch_init): Set the frame unwind sniffers.
5696 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5697 (avr_gdbarch_init): Set the frame unwind sniffers.
5698 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5699 "alpha_sigtramp_frame_p"
5700 (alpha_heuristic_frame_sniffer): Replace
5701 "alpha_heuristic_frame_p".
5702 (alpha_gdbarch_init): Set the frame unwind sniffers.
5703 (alpha_dwarf2_init_abi): Ditto.
5704 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5705 "alpha_debug_frame_p".
5706 (alpha_mdebug_frame_base_sniffer): Replace
5707 "alpha_mdebug_frame_base_p".
5708 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5709 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5710 (d10v_gdbarch_init): Set the frame unwind sniffer.
5711 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5712 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5713 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5714 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5715 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5716 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5718 2003-07-16 Michael Snyder <msnyder@redhat.com>
5720 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5721 should go thru sh_dsp_register_sim_regno, else the dsp regs
5722 will not get the right values.
5724 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5726 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5727 deprecated_store_floating by call to store_typed_floating.
5728 (sh_sh4_register_convert_to_raw): Substitute call to
5729 deprecated_extract_floating by call to extract_typed_floating.
5731 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5733 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5735 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5737 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5738 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5739 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5741 (do_pseudo_register): Remove.
5742 (sh_push_dummy_code): New function.
5743 (sh64_store_struct_return): Rename from sh_store_struct_return.
5744 Only called for sh64 now.
5745 (sh_extract_struct_value_address): Regcache'ify.
5746 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5747 and accomodate new tasks.
5748 (sh64_push_return_address): Rename from sh_push_return_address.
5749 Only called for sh64 now.
5750 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5752 (sh3e_sh4_extract_return_value): Regcache'ify.
5753 (sh_default_store_return_value): Ditto.
5754 (sh3e_sh4_store_return_value): Ditto.
5755 (sh_default_register_byte): Remove.
5756 (sh_sh4_register_byte): Remove.
5757 (sh_default_register_raw_size): Remove.
5758 (sh_sh4_register_raw_size): Remove.
5759 (sh_register_virtual_size): Remove.
5760 (sh_sh3e_register_virtual_type): Remove.
5761 (sh_sh3e_register_type): New function.
5762 (sh_sh4_register_virtual_type): Remove.
5763 (sh_sh4_register_type): New function.
5764 (sh_default_register_virtual_type): Remove.
5765 (sh_default_register_type): New function.
5766 (do_fv_register_info): Add parameters to accomodate call from
5767 sh_print_registers_info.
5768 (do_dr_register_info): Ditto.
5769 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5770 Add parameters to accomodate call from sh_print_registers_info.
5771 (sh_do_fp_register): Ditto.
5772 (sh64_do_pseudo_register): Call do_dr_register_info,
5773 do_fv_register_info and sh_do_fp_register with default parameters.
5774 (sh_do_register): Add parameters to accomodate call from
5775 sh_print_registers_info.
5776 (sh_print_register): Ditto.
5777 (sh_print_registers_info): Rename from sh_do_registers_info.
5778 Add parameters to be used as gdbarch_print_registers_info
5779 implementation. Accomodate removed do_pseudo_register function
5781 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5782 function pointer. Call sh_print_register with default parameters.
5783 (sh64_do_registers_info): Call sh_print_registers_info instead of
5784 sh_do_registers_info.
5785 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5786 detection of deprecated vs. non-deprecated functionality.
5787 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5788 function pointer assignments by direct function calls.
5790 2003-07-15 Andrew Cagney <cagney@redhat.com>
5792 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5793 (frame_register_unwind, create_new_frame): Ditto.
5794 (legacy_get_prev_frame, get_frame_type): Ditto.
5795 (get_frame_base_address): Use frame_base_find_by_frame.
5796 (get_frame_locals_address): Use frame_base_find_by_frame.
5797 (get_frame_args_address): Use frame_base_find_by_frame.
5798 * frame-base.h (frame_base_sniffer_ftype): Declare.
5799 (frame_base_append_sniffer): Declare.
5800 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5801 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5802 (frame_base_append_sniffer): New function.
5803 (frame_base_append_predicate): Add a NULL sniffer.
5804 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5805 (struct frame_base_table): Add "sniffer".
5806 (frame_base_free): Free the "sniffer" table.
5807 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5808 (frame_unwind_append_sniffer): Declare.
5809 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5810 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5811 (struct frame_unwind_table): Add "sniffer", delete "middle".
5812 (append_predicate): Add "sniffer" parameter, append the sniffer.
5813 (frame_unwind_init): Update append_predicate call.
5814 (frame_unwind_append_sniffer): New function.
5815 (frame_unwind_append_predicate): Update append_predicate call.
5816 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5818 2003-07-15 Andrew Cagney <cagney@redhat.com>
5820 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5821 before code inhibiting repeated unwind attempts. Add to
5822 commentary on that test's problems.
5823 * blockframe.c (inside_main_func): Look for "main" in the minimal
5825 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5828 2003-07-15 Andrew Cagney <cagney@redhat.com>
5830 * complaints.c (struct explanation): Define.
5831 (struct complaints): Change type of "explanation" to "struct
5833 (symfile_explanations): Convert to a "struct explanation" table.
5834 (vcomplaint): Update.
5836 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5838 * x86-64-linux-nat.c (regmap): Removed.
5839 (supply_gregset, fill_gregset): Call
5840 x86_64_linux_(fill,supply)_gregset functions.
5841 * x86-64-linux-tdep.c (USER_*): New defines.
5842 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5843 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5845 (fetch_core_registers): Ditto.
5846 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5847 * x86-64-linux-tdep.h: New file.
5848 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5850 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5852 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5854 * x86-64-tdep.c (x86_64_store_return_value): Use
5855 regcache_cooked_write_part instead of regcache_cooked_write.
5857 * configure.host: Add x86_64-*-freebsd*.
5858 * configure.tgt: Add x86_64-*-freebsd*.
5859 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5860 * amd64fbsd-nat.c: New file.
5861 * amd64fbsd-tdep.c: New file.
5862 * config/i386/nm-fbsd64.h: New file.
5863 * config/i386/fbsd64.mh: New file.
5864 * config/i386/fbsd64.mt: New file.
5866 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5868 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5869 `sc_regs_offset' and `sc_fpregs_offset'.
5870 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5871 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5872 (alpha_sigtramp_register_address): Rewrite to use new members of
5873 `struct gdbarch_tdep'.
5874 (alpha_gdbarch_init): Initialize new members of struct
5876 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5877 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5878 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5879 (alphafbsd_pc_in_sigtramp): Implement.
5880 (alphafbsd_sigtramp_offset): New function.
5881 (alphafbsd_sigcontext_addr): New function.
5882 (alphafbsd_init_abi): Initialize signal trampoline related members
5883 of `struct gdbarch_tdep'.
5884 (_initialize_alphafbsd_tdep): Add prototype.
5886 2003-07-11 Theodore A. Roth <troth@openavr.org>
5888 * Makefile.in (install-only): Quote sed expression when generating
5891 2003-07-11 Richard Henderson <rth@redhat.com>
5893 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5894 * dwarf2-frame.c: Include complaints.h.
5895 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5896 variable initialization; return NULL on error.
5897 (decode_frame_entry): New.
5899 2003-07-11 Andrew Cagney <cagney@redhat.com>
5901 * frame.h (frame_address_in_block): Delete declaration.
5902 * blockframe.c (frame_address_in_block): Delete function.
5903 (get_frame_block): Use get_frame_address_in_block.
5904 (block_innermost_frame): Ditto.
5905 * stack.c (print_frame, backtrace_command_1): Ditto.
5907 * frame.h (get_frame_address_in_block): Declare.
5908 (frame_unwind_address_in_block): Declare.
5909 * frame.c (frame_unwind_address_in_block): New function.
5910 (get_frame_address_in_block): New function.
5912 2003-07-10 Andrew Cagney <cagney@redhat.com>
5914 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5915 pre-default. Note: re-generate has no effect.
5917 2003-07-10 Andrew Cagney <cagney@redhat.com>
5919 * gdbarch.sh: When a variable, but not a function, compare against
5920 0. Fix problem in previous patch.
5921 * gdbarch.c: Re-generate.
5923 2003-07-10 Andrew Cagney <cagney@redhat.com>
5925 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5926 functions against NULL, not 0.
5927 * gdbarch.c: Re-generate.
5929 2003-07-10 Fred Fish <fnf@ninemoons.com>
5931 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5932 null string instead of a null pointer.
5933 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5935 2003-07-09 Michael Snyder <msnyder@redhat.com>
5937 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5939 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5941 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5942 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5943 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5944 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5945 * x86-64-tdep.c: ... from here.
5947 2003-07-09 Andreas Schwab <schwab@suse.de>
5949 * m68k-tdep.h (enum struct_return): Define.
5950 (struct gdbarch_tdep): Add struct_return.
5951 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5952 bytes are padded to the right, not to the left. Pass struct value
5953 address in register %a1, not on stack.
5954 (m68k_use_struct_convention): New function.
5955 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5956 struct_return in tdep to pcc_struct_return.
5957 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5960 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5962 * somread.c (som_symfile_offsets): Fix compilation error.
5964 2003-07-09 Andrew Cagney <cagney@redhat.com>
5966 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5967 Add comments about the checks.
5969 2003-07-08 Andrew Cagney <cagney@redhat.com>
5971 * Makefile.in: Make dependency section headers consistent.
5972 (config_h): Move to $BUILD headers section.
5973 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5974 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5975 (ada-exp.tab.c): Move to YACC/LEX section.
5976 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5977 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5979 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5981 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5982 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5983 of strerror with safe_strerror, use ISO C function definitions,
5984 and replace instances of sprintf with snprintf.
5986 2003-07-07 Andrew Cagney <cagney@redhat.com>
5988 * frame.c (get_prev_frame): Enable check for identical frames.
5989 Update comments. Update error messages.
5991 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5993 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5995 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5997 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5998 sort_symtab_syms, no longer necessary.
6000 2003-07-07 Joel Brobecker <brobecker@gnat.com>
6002 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
6004 2003-07-07 Joel Brobecker <brobecker@gnat.com>
6006 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
6007 (mips_register_byte): Likewise.
6009 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
6011 * Makefile.in (sparc_tdep_h): New.
6012 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
6013 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
6014 * sparc-linux-nat.c: Include "sparc-tdep.h".
6015 * sparc-nat.c: Likewise.
6016 * sparc-tdep.c: Likewise.
6017 * sparc64nbsd-nat.c: Likewise.
6018 * sparcnbsd-nat.c: Likewise.
6019 * sparcnbsd-tdep.c: Likewise.
6020 * sparc-tdep.h: New file.
6021 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
6022 and sparc_npc_regnum.
6024 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
6026 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
6027 (mips_linux_cannot_store_register): List supported instead of
6028 unsupported registers.
6030 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
6032 * disasm.c (dump_insns): Separate instructions from addresses.
6034 2003-07-07 Andreas Schwab <schwab@suse.de>
6036 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6038 * m68k-tdep.c (NUM_FREGS): Delete.
6039 (SIG_PC_FP_OFFSET): Delete.
6040 (TARGET_M68K): Delete.
6041 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
6042 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
6043 P_MOVEL_SP, P_MOVEML_SP): Define.
6044 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
6046 (m68k_register_raw_size): Delete.
6047 (m68k_register_virtual_size): Delete.
6048 (m68k_register_type): Renamed from m68k_register_virtual_type and
6049 add gdbarch argument.
6050 (m68k_store_struct_return): Delete.
6051 (m68k_deprecated_extract_return_value): Delete.
6052 (m68k_deprecated_extract_struct_value_address): Delete.
6053 (m68k_frame_chain): Delete.
6054 (m68k_frame_saved_pc): Delete.
6055 (m68k_fix_call_dummy): Delete.
6056 (m68k_push_dummy_frame): Delete.
6057 (m68k_pop_frame): Delete.
6058 (m68k_extract_return_value): New function.
6059 (m68k_store_return_value): Rewrite using regcache.
6060 (m68k_extract_struct_value_address): Rewrite using regcache.
6061 (m68k_push_dummy_call): New function.
6062 (struct m68k_frame_cache): Define.
6063 (m68k_alloc_frame_cache): New function.
6064 (m68k_analyze_frame_setup): New function.
6065 (m68k_analyze_register_saves): New function.
6066 (m68k_analyze_prologue): New function.
6067 (m68k_skip_prologue): Rewrite using above functions.
6068 (m68k_unwind_pc): New function.
6069 (m68k_frame_cache): New function.
6070 (m68k_frame_this_id): New function.
6071 (m68k_frame_prev_register): New function.
6072 (m68k_frame_unwind): New variable.
6073 (m68k_frame_p): New function.
6074 (m68k_sigtramp_frame_cache): New function.
6075 (m68k_sigtramp_frame_this_id): New function.
6076 (m68k_sigtramp_frame_prev_register): New function.
6077 (m68k_sigtramp_frame_unwind): New variable.
6078 (m68k_sigtramp_frame_p): New function.
6079 (m68k_frame_base_address): New function.
6080 (m68k_frame_base): New function.
6081 (m68k_unwind_dummy_id): New function.
6082 (fill_gregset): Use regcache_collect.
6083 (fill_fpregset): Likewise.
6084 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
6086 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
6087 deprecated_init_frame_pc, deprecated_store_struct_return,
6088 deprecated_extract_return_value, deprecated_store_return_value,
6089 deprecated_frame_chain, deprecated_frame_saved_pc,
6090 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
6091 deprecated_register_virtual_size,
6092 deprecated_max_register_raw_size,
6093 deprecated_max_register_virtual_size,
6094 deprecated_register_virtual_type, deprecated_register_size,
6095 deprecated_register_byte, deprecated_register_bytes,
6096 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
6097 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
6098 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
6099 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
6100 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
6101 deprecated_push_dummy_frame, deprecated_pop_frame,
6102 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
6103 only if SYSCALL_TRAP is defined. Set extract_return_value,
6104 store_return_value, extract_struct_value_address, register_type,
6105 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
6107 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
6108 M68K_MAX_REGISTER_SIZE): Define.
6109 (struct m68k_sigtramp_info): Define.
6110 (struct gdbarch_tdep): Add get_sigtramp_info.
6111 * m68klinux-nat.c (fetch_register): Use register_size instead of
6112 REGISTER_RAW_SIZE. Don't put assignment in if.
6113 (store_register): Likewise.
6114 (fetch_inferior_registers): Likewise.
6115 (store_inferior_registers): Likewise.
6116 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
6117 (m68k_linux_frame_saved_pc): Delete.
6118 (m68k_linux_sigcontext_reg_offset,
6119 m68k_linux_ucontext_reg_offset): Define.
6120 (m68k_linux_get_sigtramp_info): New function.
6121 (m68k_linux_extract_return_value): Rewrite using regcache.
6122 (m68k_linux_store_return_value): Likewise.
6123 (m68k_linux_extract_struct_value_address): Likewise.
6124 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
6125 Don't set deprecated_frame_saved_pc,
6126 deprecated_extract_return_value, deprecated_store_return_value,
6127 deprecated_extract_struct_value_address. Set
6128 extract_return_value, store_return_value,
6129 extract_struct_value_address.
6131 2003-07-07 Andrew Cagney <cagney@redhat.com>
6133 * expprint.c: Include "user-regs.h" instead of "frame.h".
6134 (print_subexp): Use user_reg_map_regnum_to_name, instead of
6135 frame_map_regnum_to_name.
6136 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
6137 (frame_map_name_to_regnum): Simplify, call
6138 user_reg_map_name_to_regnum.
6139 (frame_map_regnum_to_name): Simplify, call
6140 user_reg_map_regnum_to_name.
6141 (frame_register_unwind): Update.
6142 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
6143 (_initialize_frame_reg): Call user_reg_add_builtin.
6144 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
6145 (value_of_register): Use value_of_user_reg.
6146 * eval.c (evaluate_subexp_standard): Update.
6147 * parse.c (write_dollar_variable): Update.
6148 * d10v-tdep.c (d10v_print_registers_info): Update.
6149 * infcmd.c (registers_info): Update.
6150 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
6151 (builtin_regs_h): Delete macro.
6152 (user_regs_h): Define.
6153 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
6154 (builtin-regs.o): Delete target.
6155 (user-regs.o): Specify dependencies.
6156 (expprint.o): Update dependencies.
6157 (findvar.o): Update dependencies.
6158 (frame.o): Update dependencies.
6159 (std-regs.o): Update dependencies.
6161 2003-07-06 Christopher Faylor <cgf@redhat.com>
6163 * win32-nat.c (solib_symbols_add): Use one variable for all section
6164 address stuff. Pass variable rather than address of variable to
6165 safe_symbol_file_add.
6167 2003-07-06 Andreas Schwab <schwab@suse.de>
6169 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
6171 2003-07-04 Joel Brobecker <brobecker@gnat.com>
6173 * rs6000-nat.c (vmap_symtab): Fix compilation error.
6175 2003-07-04 Kris Warkentin <kewarken@qnx.com>
6177 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
6179 2003-07-04 Kris Warkentin <kewarken@qnx.com>
6181 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
6182 * config/i386/nto.mh: New file.
6183 * config/i386/nm-nto.h: New file.
6184 * configure.host: Add i[3456]86-*-nto*.
6186 2003-07-03 Joel Brobecker <brobecker@gnat.com>
6188 * remote-vx.c (vx_add_symbols): Fix compilation error.
6190 2003-07-03 Andrew Cagney <cagney@redhat.com>
6192 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
6193 * gdbarch.h, gdbarch.c: Re-generate.
6194 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
6195 (legacy_register_name): Declare.
6196 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
6197 (REGISTER_NAME): Define.
6198 * sparc-tdep.c (legacy_register_name): New function.
6199 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
6200 (REGISTER_NAME): Define.
6201 (hppa64_register_name): Declare.
6202 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
6203 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
6204 (hppa64_register_name): New function.
6205 (hppa_register_name): New function.
6206 * arch-utils.c (legacy_register_name): Delete.
6207 * arch-utils.h (legacy_register_name): Delete.
6209 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
6211 * cli/cli-interp.c (cli_interpreter_resume): Update the
6212 cli_uiout's stream to gdb_stdout.
6214 2003-07-03 Andrew Cagney <cagney@redhat.com>
6216 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6218 * gdbarch.h, gdbarch.c: Re-generate.
6219 * regcache.c (init_regcache_descr): Use legacy code when either
6220 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6222 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
6224 * NEWS: Move "set logging" entry into GDB 6.0 section.
6226 2003-07-02 Jim Blandy <jimb@redhat.com>
6228 * s390-tdep.c (struct frame_extra_info): new member:
6229 'stack_bought_valid'.
6230 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6231 initialize fextra_info->stack_bought.
6232 (s390_frameless_function_invocation): Don't trust the value of
6233 fextra_info_ptr->stack_bought unless
6234 fextra_info->stack_bought_valid is set.
6236 New S390 prologue analyzer.
6237 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6238 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6239 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6240 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6241 compute_x_addr, s390_on_stack, s390_store,
6242 s390_get_signal_frame_info): New functions.
6243 (S390_NUM_SPILL_SLOTS): New macro.
6244 (s390_get_frame_info): Rewritten.
6245 (is_arg_reg): Deleted.
6247 Break out the decoding of S/390 instructions into separate
6248 functions, to make it more legible, and easier to check
6250 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6251 is_rx, is_rxe): New functions.
6252 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6253 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6254 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6255 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6256 enums for opcode values. (Is this an improvement?)
6258 2003-07-02 Andrew Cagney <cagney@redhat.com>
6260 * i386-tdep.c: Revert change committed as part of trad-frame code
6263 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
6265 * breakpoint.c (insert_catchpoint): Make static.
6267 2003-07-02 Andreas Schwab <schwab@suse.de>
6269 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6270 former ia64_push_arguments and ia64_push_return_address, and use
6271 regcache functions instead of read/write_register.
6272 (ia64_gdbarch_init): Set push_dummy_call instead of
6273 deprecated_push_arguments and deprecated_push_return_address.
6275 2003-07-01 Andreas Jaeger <aj@suse.de>
6277 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6279 Set %rax only to number of SSE registers used.
6281 2003-07-01 Andrew Cagney <cagney@redhat.com>
6283 * trad-frame.h: Update comments, a -1 .addr is reserved.
6284 (trad_frame_value_p, trad_frame_addr_p): Declare.
6285 (trad_frame_reg_p): Declare.
6286 (trad_frame_set_value): Rename trad_frame_register_value.
6287 (trad_frame_set_unknown): Declare.
6288 * trad-frame.c (trad_frame_realreg_p): New function.
6289 (trad_frame_addr_p, trad_frame_value_p): New function.
6290 (trad_frame_set_unknown): New function.
6291 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6292 (trad_frame_prev_register): Use trad_frame_realreg_p,
6293 trad_frame_addr_p and trad_frame_value_p.
6294 (trad_frame_set_value): Rename trad_frame_register_value.
6295 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6296 and trad_frame_set_value.
6298 2003-06-30 Jim Blandy <jimb@redhat.com>
6300 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6301 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6302 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6303 for 16 registers, and then 32 more bytes.
6304 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6306 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6307 Move up in the file, since it's now used by is_simple_arg.
6308 (is_simple_arg): Don't assume registers are four bytes long.
6309 Exclude all double arguments. Extended floats are not simple
6311 (is_power_of_two): New function.
6312 (pass_by_copy_ref): Call is_power_of_two, and check that the
6313 length fits in a register, rather than listing all the acceptable
6314 sizes. Extended floats are not passed by reference.
6315 (s390_push_arguments): Don't assume registers are four bytes long.
6316 Reserve an argument register to point to the buffer for structures
6317 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6318 S390_STACK_FRAME_OVERHEAD.
6320 2003-06-30 Andreas Schwab <schwab@suse.de>
6322 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6323 format error message.
6325 2003-06-30 Joel Brobecker <brobecker@gnat.com>
6327 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6329 2003-06-30 David Carlton <carlton@kealia.com>
6331 Band-aid for PR c++/1245.
6332 * Makefile.in (cp-support.o): Depend on complaints_h.
6333 * cp-support.c: Include complaints.h. Add declaration for
6334 find_last_component.
6335 (cp_find_first_component): Separate code into
6336 cp_find_first_component_aux.
6337 (cp_find_first_component_aux): Call demangled_name_complaint.
6338 (demangled_name_complaint): New.
6340 2003-06-30 Andrew Cagney <cagney@redhat.com>
6342 * remote.c (remote_write_bytes): Explicitly compute and then use
6343 the payload size. Update comments to reflect. Fixes problem of
6344 GDB not sending small packets as found by Fred Fish.
6346 2003-06-30 Andrew Cagney <cagney@redhat.com>
6348 * remote.c (remote_async_wait): Fix -Wformat problem.
6350 2003-06-29 Andrew Cagney <cagney@redhat.com>
6352 * remote.c (remote_wait): Call error, and not warning, when the
6354 (remote_async_wait): Ditto.
6356 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
6358 * sparc-tdep.c (sparc_y_regnum): Make external again.
6360 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
6362 * cli/cli-logging.c (pop_output_files): Add void to function
6365 2003-06-29 Andrew Cagney <cagney@redhat.com>
6367 * frame.c (frame_register_unwind): Use unsigned char when dumping
6368 the buffer contents.
6370 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
6372 * cli/cli-logging.c: New file.
6373 * cli-out.c (struct ui_out_data): Add original_stream.
6374 (cli_redirect): New function.
6375 (cli_ui_out_impl): Add cli_redirect.
6376 (cli_out_new): Initialize original_stream.
6377 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6378 (uo_redirect, ui_out_redirect): New.
6379 * ui-out.h (struct ui_out_impl): Add redirect member.
6380 (redirect_ftype): New.
6381 (ui_out_redirect): Add prototype.
6382 * Makefile.in: Add rules for cli-logging.c.
6383 * NEWS: Mention "set logging".
6385 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
6387 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6389 2003-06-27 Andrew Cagney <cagney@redhat.com>
6391 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6392 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6393 * avr-tdep.c (avr_call_dummy_address): Delete function.
6394 (avr_gdbarch_init): Do not set call_dummy_address.
6396 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
6398 * symfile.c (syms_from_objfile): Move variables to inner block.
6399 Move the checks for the non-mainline case a bit earlier to avoid
6400 doing some useless computations.
6402 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
6404 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6406 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
6408 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6411 2003-06-26 Michael Chastain <mec@shout.net>
6413 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6414 gdb/testsuite/gdb.c++/pr-1210.exp.
6416 2003-06-26 Andrew Cagney <cagney@redhat.com>
6418 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6419 altivec_expression.h and altivec_registers.h.
6421 2003-06-26 Andrew Cagney <cagney@redhat.com>
6423 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6424 info->mach when MIPS16. Patch suggested by Fred Fish.
6426 2003-06-26 Andrew Cagney <cagney@redhat.com>
6428 * utils.c (internal_vproblem): Print the problem to a reason
6429 buffer and then pass to query. Make the msg variable more local.
6431 2003-06-26 Andrew Cagney <cagney@redhat.com>
6433 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6434 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6435 * gdbarch.h, gdbarch.c: Re-generate.
6436 * frame-base.c (default_frame_args_address): Update. Use
6437 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6439 (default_frame_locals_address): Ditto for
6440 DEPRECATED_FRAME_LOCALS_ADDRESS.
6441 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6442 (vax_frame_num_args): Update.
6443 (vax_gdbarch_init): Update.
6444 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6445 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6446 * mcore-tdep.c (mcore_gdbarch_init): Update.
6447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6448 * ia64-tdep.c (ia64_gdbarch_init): Update.
6449 * symtab.h (address_class): Update comments.
6450 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6451 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6452 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6453 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6454 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6455 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6456 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6457 * alpha-mdebug-tdep.c: Update.
6458 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6460 2003-06-26 Andreas Jaeger <aj@suse.de>
6462 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6463 of SSE registers so that varargs functions work. Rework handling
6464 of passing arguments on the stack.
6465 (x86_64_store_return_value): Return double and float values in SSE
6468 2003-06-24 Michael Chastain <mec@shout.net>
6470 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6471 the "constructor breakpoints ignored" bug.
6473 2003-06-25 David Carlton <carlton@kealia.com>
6475 * MAINTAINERS: Update e-mail address.
6477 2003-06-24 Jim Blandy <jimb@redhat.com>
6479 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6481 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6483 (ppc_linux_init_abi): Register it as the
6484 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6486 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6487 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6490 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6491 (ppc64_standard_linkage_target): Use it.
6493 2003-06-23 Andrew Cagney <cagney@redhat.com>
6495 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6496 for 0 "int0" and 4 "int32" sized registers.
6497 * gdbtypes.c (builtin_type_int0): Define.
6498 (build_gdbtypes): Initialize builtin_type_int0.
6499 * gdbtypes.h (builtin_type_int0): Declare.
6501 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6504 as characters are unsigned.
6506 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6509 * dwarfread.c (struct_type): Skip static fields without crashing.
6511 2003-06-22 Andrew Cagney <cagney@redhat.com>
6513 GDB 6.0 branch created.
6515 * PROBLEMS: Update. Empty.
6518 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6520 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6521 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6523 2003-06-22 Andrew Cagney <cagney@redhat.com>
6525 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6526 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6529 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6531 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6534 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
6536 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6537 argument of val_print.
6538 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6539 to the address argument of baseclass_offset or target_read_memory.
6540 Do add it to the argument of cp_print_value_fields.
6542 2003-06-21 Andrew Cagney <cagney@redhat.com>
6544 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6545 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6546 instead of 0..NUM_REGS.
6547 (mips_register_reggroup_p): New function.
6548 (mips_pseudo_register_write): New function.
6549 (mips_pseudo_register_read): New function.
6550 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6551 based on the register's type.
6552 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6554 (mips_get_saved_register): Simplify. Assert that REGNO is a
6556 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6557 (mips_register_type): Replace mips_register_virtual_type. Map
6558 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6560 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6561 that the register is cooked / virtual.
6562 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6563 Only get the extra info when needed.
6564 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6565 (mips32_heuristic_proc_desc): Fetch the cooked register.
6566 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6567 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6568 (mips_print_register): Use gdbarch_register_type, instead of
6569 REGISTER_VIRTUAL_TYPE.
6570 (print_gp_register_row): Use gdbarch_register_type, instead of
6571 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6572 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6573 Print the pseudo / cooked registers.
6574 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6575 Print the pseudo / cooked registers.
6576 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6577 REG_NUM is pseudo / cooked.
6578 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6579 (mips_n32n64_xfer_return_value): Ditto.
6580 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6581 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6582 (mips_register_sim_regno): New function.
6583 (mips_gdbarch_init): Set deprecated_register_byte,
6584 register_group_p, pseudo_register_write, pseudo_register_read,
6585 register_sim_regno, and num_pseudo_regs. Set register_type,
6586 instead of register_virtual_type.
6587 * Makefile.in (mips-tdep.o): Update dependencies.
6588 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6589 REGISTER_VIRTUAL_TYPE.
6590 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6591 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6592 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6593 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6594 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6596 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
6598 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6599 * cli/cli-cmds.c: Include "gdb_vfork.h".
6600 (shell_escape): Use vfork.
6602 2003-06-21 Andrew Cagney <cagney@redhat.com>
6604 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6605 32 bit floating-point register saves.
6607 * frame.h (deprecated_unwind_get_saved_register): Delete.
6608 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6609 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6610 and deprecated_get_next_frame_hack instead of
6611 deprecated_unwind_get_saved_register.
6613 * mips-tdep.c (mips_dump_tdep): Do not print
6614 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6616 * frame.c (get_frame_register): New function.
6617 (frame_unwind_register_signed): New function.
6618 (get_frame_register_signed): New function.
6619 (frame_unwind_register_unsigned): New function.
6620 (get_frame_register_unsigned): New function.
6621 * frame.h: Add comments on naming schema.
6622 (get_frame_register, frame_unwind_register_signed): Declare.
6623 (get_frame_register_signed, get_frame_register_signed): Declare.
6624 (frame_unwind_register_unsigned): Declare.
6625 (get_frame_register_unsigned): Declare.
6627 2003-06-20 Theodore A. Roth <troth@openavr.org>
6629 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6631 2003-06-20 Theodore A. Roth <troth@openavr.org>
6633 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6634 (avr_read_sp): Ditto.
6636 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
6638 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6639 * config/arm/nm-linux.h: Likewise.
6640 * config/arm/tm-linux.h: Likewise.
6641 * config/ia64/nm-linux.h: Likewise.
6642 * config/ia64/tm-ia64.h: Likewise.
6643 * config/s390/tm-linux.h: Likewise.
6644 * config/s390/tm-s390.h: Likewise.
6645 * s390-nat.c: Likewise.
6646 * s390-tdep.c: Likewise.
6648 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6649 * config/ia64/linux.mt: Likewise.
6650 * config/m68k/linux.mh: Likewise.
6651 * config/mips/linux.mt: Likewise.
6652 * config/powerpc/linux.mh: Likewise.
6653 * config/sh/linux.mt: Likewise.
6655 2003-06-19 Kris Warkentin <kewarken@qnx.com>
6657 * solib.c (solib_open): Change tests for whether to search
6658 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6661 2003-06-19 Theodore A. Roth <troth@openavr.org>
6663 * avr-tdep.c (avr_frame_address): Delete function.
6664 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6665 set_gdbarch_frame_args_address.
6667 2003-06-19 Andrew Cagney <cagney@redhat.com>
6669 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6670 (REGISTER_CONVERT_FROM_TYPE): Delete.
6671 (mips_register_convert_to_type): Delete declaration.
6672 (mips_register_convert_from_type): Delete declaration.
6673 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6676 2003-06-19 Michael Snyder <msnyder@redhat.com>
6678 * linux-nat.h: New file.
6679 * linux-nat.c: Include linux-nat.h.
6680 * lin-lwp.c: Include linux-nat.h.
6681 Move struct lwp_info def to linux-nat.h.
6682 * linux-proc.c: Include linux-nat.h.
6683 (linux_make_note_section): Iterate over lwps instead of threads.
6684 (linux_do_thread_registers): Use lwp instead of merged pid.
6685 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6686 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6687 Add dependency on linux_nat_h.
6689 2003-06-19 Theodore A. Roth <troth@openavr.org>
6691 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6693 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6695 * varobj.c (get_type, get_target_type): Use check_typedef.
6697 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6699 * breakpoint.c (insert_catchpoint): Call internal_error.
6701 2003-06-19 Theodore A. Roth <troth@openavr.org>
6703 * avr-tdep.c (avr_push_dummy_code): Delete function.
6704 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6706 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6708 * arch-utils.c (default_prepare_to_proceed): Remove.
6709 (generic_prepare_to_proceed): Remove.
6710 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6711 (generic_prepare_to_proceed): Remove prototype.
6712 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6713 * gdbarch.c: Regenerate.
6714 * gdbarch.h: Regenerate.
6715 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6716 * hppah-nat.c (hppa_switched_threads): Remove.
6717 * infrun.c (prepare_to_proceed): New static function, copied from
6718 generic_prepare_to_proceed. Remove select_it argument.
6719 (proceed): Call prepare_to_proceed.
6720 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6722 (ptrace_wait): Don't set the removed variables.
6723 (hppa_switched_threads): Remove.
6724 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6725 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6726 (lin_lwp_prepare_to_proceed): Remove prototype.
6727 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6728 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6730 2003-06-18 Theodore A. Roth <troth@openavr.org>
6732 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6734 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6735 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6736 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6737 (AVR_PROLOGUE_*): Enumerate prologue types.
6738 (struct frame_extra_info): Remove.
6739 (struct avr_unwind_cache): Define.
6740 (avr_write_sp): Delete function.
6741 (avr_read_fp): Ditto.
6742 (avr_init_extra_frame_info): Ditto.
6743 (avr_pop_frame): Ditto.
6744 (avr_frame_saved_pc): Ditto.
6745 (avr_saved_pc_after_call): Ditto.
6746 (avr_push_return_address): Ditto.
6747 (avr_frame_chain): Ditto.
6748 (avr_store_struct_return): Ditto.
6749 (avr_push_arguments): Ditto.
6750 (avr_scan_prologue): Update comments. Changed to set up the info for
6751 cache unwinding. Now returns end of prologue PC.
6752 (avr_skip_prologue): Better handling of functions lacking a prologue
6753 by using avr_scan_prologue.
6754 (avr_scan_arg_moves): New function.
6755 (avr_saved_regs_unwinder): Ditto.
6756 (avr_frame_unwind_cache): Ditto.
6757 (avr_unwind_pc): Ditto.
6758 (avr_frame_this_id): Ditto.
6759 (avr_frame_prev_register): Ditto.
6760 (avr_frame_p): Ditto.
6761 (avr_frame_base_address ): Ditto.
6762 (avr_unwind_dummy_id): Ditto.
6763 (avr_push_dummy_code): Ditto.
6764 (push_stack_item): Ditto.
6765 (pop_stack_item): Ditto.
6766 (avr_push_dummy_call): Ditto.
6767 (struct stack_item): Define.
6768 (avr_frame_unwind): Declare structure.
6769 (avr_frame_base): Ditto.
6770 (avr_gdbarch_init): Remove calls to
6771 set_gdbarch_deprecated_init_frame_pc,
6772 set_gdbarch_deprecated_target_read_fp,
6773 set_gdbarch_deprecated_dummy_write_sp,
6774 set_gdbarch_deprecated_fp_regnum,
6775 set_gdbarch_deprecated_push_arguments,
6776 set_gdbarch_deprecated_push_return_address,
6777 set_gdbarch_deprecated_pop_frame,
6778 set_gdbarch_deprecated_store_struct_return,
6779 set_gdbarch_deprecated_frame_init_saved_regs,
6780 set_gdbarch_deprecated_init_extra_frame_info,
6781 set_gdbarch_deprecated_frame_chain,
6782 set_gdbarch_deprecated_frame_saved_pc,
6783 set_gdbarch_deprecated_saved_pc_after_call.
6784 Add calls to set_gdbarch_push_dummy_call,
6785 set_gdbarch_push_dummy_code,
6786 frame_unwind_append_predicate,
6787 frame_base_set_default,
6788 set_gdbarch_unwind_dummy_id,
6789 set_gdbarch_unwind_pc.
6792 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6794 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6795 registers for H8/300S.
6796 (h8300_print_registers_info): Ditto.
6797 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6799 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
6801 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6802 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6803 (lin_lwp_wait): Likewise. Update comments.
6804 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6805 (pull_pid_from_list, linux_record_stopped_pid): New.
6807 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6809 * ada-lang.c (scan_discrim_bound): Name first argument.
6810 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6811 declared by ALL_BLOCK_SYMBOLS.
6813 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6815 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6816 ("regcache.h"): Include it.
6817 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6819 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6821 * NEWS: Mention gdbserver detach change and "disconnect" command.
6822 * infcmd.c (disconnect_command): New function.
6823 (_initialize_infcmd): Add ``disconnect'' command.
6824 * remote.c (remote_async_detach): Delete.
6825 (remote_detach): Merge remote_async_detach.
6826 (remote_disconnect): New.
6827 (init_remote_ops): Set to_disconnect.
6828 (init_remote_cisco_ops): Likewise.
6829 (init_remote_async_ops): Likewise. Use remote_detach.
6830 * target.c (cleanup_target): Default to_disconnect.
6831 (update_current_target): Inherit to_disconnect.
6832 (target_disconnect, debug_to_disconnect): New functions.
6833 (setup_target_debug): Set to_disconnect.
6834 * target.h (struct target_ops): Add to_disconnect.
6835 (target_disconnect): Add prototype.
6837 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6839 * breakpoint.c (insert_catchpoint): New function.
6840 (insert_breakpoints): Use catch_exceptions to call
6841 insert_catchpoint. Disable catchpoints if they fail to insert.
6843 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6845 * symfile.c (reread_symbols): Clear sym_private.
6847 2003-06-17 Andrew Cagney <cagney@redhat.com>
6849 * trad-frame.h (struct frame_info): Add opaque declaration.
6850 * remote-fileio.h (struct cmd_list_element): Add opaque
6852 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6855 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6857 * remote.c (remote_prepare_to_store): Replace call to
6858 deprecated_read_register_bytes with multiple regcache_raw_read
6861 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6863 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6864 (nto_find_and_open_solib): Likewise.
6865 (nto_init_solib_absolute_prefix): Likewise.
6866 (_initialize_nto_tdep): Fix indentation.
6868 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6870 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6872 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6874 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6876 2003-06-17 Jim Blandy <jimb@redhat.com>
6878 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6880 2003-06-16 Theodore A. Roth <troth@openavr.org>
6882 * avr-tdep.c (avr_extract_return_value): New function.
6883 (avr_gdbarch_init): Set extract_return_value method.
6885 2003-06-16 Andrew Cagney <cagney@redhat.com>
6887 * frame.h (deprecated_get_next_frame_hack): Declare.
6888 * frame.c (legacy_saved_regs_prev_register): Only require
6889 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6890 there are always saved regs.
6891 (deprecated_generic_get_saved_register): Do not require
6892 DEPRECATED_FRAME_INIT_SAVED_REGS.
6893 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6894 use frame ID unwind instead.
6895 (deprecated_get_next_frame_hack): New function.
6897 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6899 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6900 (h8300_push_dummy_call): ...this function. Some minor optimization.
6901 (h8300_push_return_address): Remove.
6902 (h8300_gdbarch_init): Remove calls to
6903 set_gdbarch_deprecated_dummy_write_sp,
6904 set_gdbarch_deprecated_push_arguments and
6905 set_gdbarch_deprecated_push_return_address.
6906 Add call to set_gdbarch_push_dummy_call.
6908 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6910 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6911 (E_PSEUDO_EXR_REGNUM): Ditto.
6912 (h8300_is_argument_spill): Check for instructions moving argument
6913 registers into safe registers.
6914 (h8300_skip_prologue): Check for stm instruction to push registers
6915 used for register variables onto stack.
6916 (gdb_print_insn_h8300): Remove.
6917 (h8300_examine_prologue): Add a comment.
6918 (h8300_register_name): Take pseudo registers into account.
6919 (h8300s_register_name): Ditto.
6920 (h8300sx_register_name): Ditto.
6921 (h8300_print_register): Ditto.
6922 (h8300_print_registers_info): Define "nice" printing order.
6923 (h8300_saved_pc_after_call): Take pseudo registers into account.
6924 (h8300_register_type): Ditto. Return type used for remote connection
6925 when requesting real CCR or EXR register, return actual type when
6926 requesting pseudo CCR or EXR.
6927 (h8300_pseudo_register_read): New function.
6928 (h8300_pseudo_register_write): Ditto.
6929 (h8300_dbg_reg_to_regnum): Ditto.
6930 (h8300s_dbg_reg_to_regnum): Ditto.
6931 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6932 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6933 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6934 set_gdbarch_print_insn architecture dependent.
6935 Call set_gdbarch_pseudo_register_read and
6936 set_gdbarch_pseudo_register_write.
6937 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6939 2003-06-16 Andrew Cagney <cagney@redhat.com>
6941 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6942 * gdbarch.h, gdbarch.c: Re-generate.
6943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6944 * s390-tdep.c (s390_gdbarch_init): Update.
6945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6946 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6947 * mips-tdep.c (mips_gdbarch_init): Update.
6948 * mcore-tdep.c (mcore_gdbarch_init): Update.
6949 * cris-tdep.c (cris_gdbarch_init): Update.
6950 * infcall.c (call_function_by_hand): Update.
6951 * ia64-tdep.c (ia64_push_arguments): Update comment.
6952 * frame.c (legacy_get_prev_frame): Do not assume
6953 SAVE_DUMMY_FRAME_TOS_P.
6954 * dummy-frame.c (find_dummy_frame): Update comment.
6956 2003-06-16 Andrew Cagney <cagney@redhat.com>
6958 * regcache.c (do_cooked_read): Do not use register_valid_p.
6960 2003-06-15 Theodore A. Roth <troth@openavr.org>
6962 * avr-tdep.c (avr_register_type): Remove a blank line.
6963 (avr_scan_prologue): Correct some comments.
6965 2003-06-15 Theodore A. Roth <troth@openavr.org>
6967 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6969 Properly scan prologues generated by gcc with the -mcall-prologues
6971 Add code to scan -mcall-prologues for mega devices.
6973 2003-06-15 Theodore A. Roth <troth@openavr.org>
6975 * avr-tdep.c (avr_register_byte): Delete function.
6976 (avr_register_raw_size): Delete function.
6977 (avr_register_virtual_size): Delete function.
6978 (avr_register_virtual_type): Delete function.
6979 (avr_register_type): New function.
6980 (avr_address_to_pointer): Remove unused code.
6981 (avr_read_fp): Need to read FP as two separate bytes due to change to
6982 avr_register_type() usage.
6983 (avr_gdbarch_init): Don't set deprecated_register_size.
6984 Don't set deprecated_register_bytes.
6985 Don't set deprecated_register_byte.
6986 Don't set deprecated_register_raw_size.
6987 Don't set deprecated_max_register_raw_size.
6988 Don't set deprecated_register_virtual_size.
6989 Don't set deprecated_max_register_virtual_size.
6990 Don't set deprecated_register_virtual_type.
6991 Set register_type method.
6993 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6995 * Makefile.in (linux-nat.o): Add rule.
6996 * linux-nat.c: New file.
6997 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6998 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6999 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
7000 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
7001 * config/arm/linux.mh (NATDEPFILES): Likewise.
7002 * config/i386/linux.mh (NATDEPFILES): Likewise.
7003 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7004 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7005 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7006 * config/mips/linux.mh (NATDEPFILES): Likewise.
7007 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7008 * config/s390/s390.mh (NATDEPFILES): Likewise.
7009 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7011 2003-06-15 Mark Kettenis <kettenis@gnu.org>
7013 * i387-tdep.c: Reorder includes, fix some whitespace issues and
7014 replace out-of-date comment.
7016 2003-06-15 Andrew Cagney <cagney@redhat.com>
7018 * rdi-share/host.h (Fail): Change to a varargs function.
7019 * remote-rdi.c (Fail): Update.
7021 2003-06-15 Mark Kettenis <kettenis@gnu.org>
7023 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
7024 (i386_convert_register_p, i386_register_to_value,
7025 i386_register_from_value): Handle types longer than 8 bytes.
7027 2003-06-15 Mark Kettenis <kettenis@gnu.org>
7029 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
7030 Move floating-point code to new function in i387-tdep.c.
7031 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
7032 New functions containing code moved here from i386-tdep.c.
7033 * i387-tdep.h: Add opaque declaration for `struct type'.
7034 (i387_register_to_value, i387_value_to_register): New prototypes.
7035 * x86-64-tdep.c (x86_64_convert_register_p): New function.
7036 (x86_64_init_abi): Set convert_register_p, register_to_value and
7037 value_to_register here.
7039 2003-06-14 Andrew Cagney <cagney@redhat.com>
7041 * mips-tdep.c (mips_register_to_value): Make static.
7042 (mips_value_to_register): Make static.
7043 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
7044 * ia64-tdep.c (ia64_register_raw_size): Make static.
7045 (ia64_register_virtual_size): Make static.
7046 (ia64_register_byte): Make static.
7047 * i387-tdep.c: Include "i387-tdep.h".
7048 (print_387_control_word): Delete function.
7049 (print_387_status_word): Delete function.
7050 (print_387_status_bits): Delete function.
7051 (print_387_control_bits): Delete function.
7052 * Makefile.in (i387-tdep.o): Update dependencies.
7053 * rdi-share/host.h (Fail): Declare.
7054 * remote-rdi.c (Fail): Update to match declaration.
7056 2003-06-14 Andrew Cagney <cagney@redhat.com>
7058 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
7059 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
7060 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
7061 * config/djgpp/fnchange.lst: Delete "remote-array.c".
7062 * README: Delete reference to remote-array.
7063 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
7064 (remote-array.o): Delete target.
7065 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
7066 * remote-array.c: Delete file.
7068 2003-06-14 Andrew Cagney <cagney@redhat.com>
7069 Mark Kettenis <kettenis@gnu.org>
7071 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
7072 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
7073 parameter with "frame".
7074 * gdbarch.h, gdbarch.c: Re-generate.
7075 * frame.h (put_frame_register): Declare.
7076 * frame.c (put_frame_register): New function.
7077 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
7078 (legacy_register_to_value): Rewrite, use "frame" to get the
7080 (legacy_value_to_register): Rewrite, use "frame" to find the
7081 register's location before storing.
7082 * arch-utils.h (legacy_convert_register_p): Update.
7083 (legacy_register_to_value, legacy_value_to_register): Update.
7084 * findvar.c (value_from_register): Rewrite, eliminate use of
7085 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
7086 "frame" to REGISTER_TO_VALUE.
7087 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
7088 lval_reg_frame_relative + lval_register branch of the switch. Do
7089 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
7090 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
7091 I386_EDI_REGNUM): New defines.
7092 (i386_next_regnum, i386_convert_register_p,
7093 i386_register_to_value, i386_value_to_register): New functions.
7094 (i386_register_convertible, i386_register_convert_to_virtual,
7095 i386_convert_to_raw): Remove functions.
7096 (i386_gdbarch_init): Set convert_register_p, register_to_value and
7097 value_to_register instead of register_convertible,
7098 register_convert_to_virtual and register_convert_to_raw.
7099 * mips-tdep.c (mips_convert_register_p): New function.
7100 (mips_value_to_register): Replace mips_register_convert_from_type.
7101 (mips_register_to_value): Replace mips_register_convert_to_type.
7102 (mips_gdbarch_init): Set conver_register_p, value_to_register and
7104 * alpha-tdep.c (alpha_convert_register_p): Update.
7105 (alpha_value_to_register): Update, store the register.
7106 (alpha_register_to_value): Update, fetch the register.
7108 2003-06-14 Theodore A. Roth <troth@openavr.org>
7110 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
7111 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
7112 Don't set deprecated_call_dummy_words.
7113 Remove commented out set_gdbarch_believe_pcc_promotion() call.
7114 Don't set remote_translate_xfer_address.
7115 (avr_io_reg_read_command): Remove commented out debug printf.
7118 2003-06-14 Theodore A. Roth <troth@openavr.org>
7120 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
7121 causes gdb to seg fault.
7123 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
7125 * sparc-nat.c (fetch_inferior_registers): Correct
7126 a reference to "registers".
7128 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
7130 * Makefile.in (exc_request_U_h): Define
7131 (exc_request_S_h): Likewise.
7132 (msg_reply_S_h): Likewise.
7133 (msg_U_h): Likewise.
7134 (notify_S_h): Likewise.
7135 (process_reply_S_h): Likewise.
7136 (gnu-nat.o): Depend on gdb_obstack_h
7137 * gnu-nat.c: Include "gdb_obstack.h".
7139 2003-06-13 Andrew Cagney <cagney@redhat.com>
7141 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
7142 * gdbarch.h, gdbarch.c: Re-generate.
7144 2003-06-13 Andrew Cagney <cagney@redhat.com>
7146 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
7147 when deprecated REGISTER macros can be deleted.
7148 * gdbarch.h, gdbarch.c: Re-generate.
7150 2003-06-13 Jim Blandy <jimb@redhat.com>
7152 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
7153 Linux entry point symbols for _dl_debug_state, too.
7155 2003-06-13 Andrew Cagney <cagney@redhat.com>
7157 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
7158 available, do not use the FP register, and always save the TOS.
7159 * dummy-frame.c (dummy_frame_this_id): Do not assert
7160 SAVE_DUMMY_FRAME_TOS.
7161 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
7162 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
7163 (i386_push_dummy_call): Add 8 to the returned SP.
7164 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
7165 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
7166 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
7167 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
7168 (x86_64_push_dummy_call): Return "sp + 16".
7169 (x86_64_init_abi): Do not set save_dummy_frame_tos.
7170 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7171 save_dummy_frame_tos.
7173 2003-06-13 Jim Blandy <jimb@redhat.com>
7175 * frv-tdep.c (frv_use_struct_convention): Delete static
7176 declaration for function deleted in my change of 2003-06-12.
7178 2003-06-13 Theodore A. Roth <troth@openavr.org>
7180 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
7181 (avr_pointer_to_address): Shift code addrs left 1 bit.
7182 (avr_convert_from_func_ptr_addr): Delete function since operation is
7183 better handled by avr_address_to_pointer and avr_pointer_to_address.
7184 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
7186 2003-06-13 Mark Kettenis <kettenis@gnu.org>
7188 From Kelley Cook <kelleycook@wideopenwest.com>:
7189 * configure.host: Accept i[34567]86 variants.
7190 * configure.tgt: Likewise.
7191 * nlm/configure.in: Likewise.
7192 * nlm/configure: Regenerated.
7194 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
7196 * arm-tdep.c (solib-svr4.h): Dont' include it.
7197 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
7198 * arm-linux-tdep.c: ... here. Make static.
7199 (arm_linux_init_abi): Register it.
7200 (solib-svr4.h): Include it.
7201 * Makefile.in: Update dependencies.
7202 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7203 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
7205 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
7207 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
7208 indicate registers used for return values.
7209 (struct frame_extra_info): Drop args_pointer and locals_pointer.
7210 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
7212 (h8300_init_extra_frame_info): Ditto.
7213 (h8300_frame_locals_address): Removed.
7214 (h8300_frame_args_address): Removed.
7215 (h8300_extract_return_value): Use new regcache structure. Only care
7217 (h8300h_extract_return_value): Same function for 32 bit CPUs.
7218 (h8300_store_return_value): Use new regcache structure. Only care
7220 (h8300h_store_return_value): Same function for 32 bit CPUs.
7221 (h8300_store_struct_return): Removed.
7222 (h8300_extract_struct_value_address): Use new regcache structure.
7223 (h8300h_extract_struct_value_address): Removed.
7224 (h8300_push_dummy_code): New function.
7225 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7226 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
7227 set_gdbarch_store_return_value architecture dependent.
7228 Call set_gdbarch_push_dummy_code and
7229 set_gdbarch_extract_struct_value_address.
7230 Remove calls to set_gdbarch_frame_args_address,
7231 set_gdbarch_frame_locals_address,
7232 set_gdbarch_deprecated_store_struct_return,
7233 set_gdbarch_deprecated_extract_return_value,
7234 set_gdbarch_deprecated_extract_struct_value_address,
7235 set_gdbarch_deprecated_call_dummy_words and
7236 set_gdbarch_deprecated_sizeof_call_dummy_words.
7238 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
7240 * h8300-tdep.c (h8300_register_byte): Remove.
7241 (h8300h_register_byte): Remove.
7242 (h8300_register_virtual_type): Remove. Substitute by...
7243 (h8300_register_type): New function.
7244 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7245 (h8300h_extract_struct_value_address): Ditto.
7246 (h8300_gdbarch_init): Drop calls to
7247 set_gdbarch_deprecated_register_byte and
7248 set_gdbarch_deprecated_register_virtual_type.
7249 Add call to set_gdbarch_register_type.
7251 2003-06-13 Andrew Cagney <cagney@redhat.com>
7253 * gdbarch.sh: Update comments on registers.
7254 (deprecated_register_byte): Rename register_byte.
7255 (deprecated_register_raw_size): Rename register_raw_size.
7256 (deprecated_register_virtual_size): Rename register_virtual_size.
7257 (deprecated_register_virtual_type): Rename register_virtual_type.
7258 * gdbarch.h, gdbarch.c: Re-generate.
7259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7260 * vax-tdep.c (vax_gdbarch_init): Update.
7261 * v850-tdep.c (v850_gdbarch_init): Update.
7262 * sparc-tdep.c (sparc_gdbarch_init): Update.
7263 * sh-tdep.c (sh_gdbarch_init): Update.
7264 * s390-tdep.c (s390_gdbarch_init): Update.
7265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7266 * ns32k-tdep.c: Update.
7267 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7268 * mips-tdep.c (mips_gdbarch_init): Update.
7269 * mcore-tdep.c (mcore_gdbarch_init): Update.
7270 * m68k-tdep.c (m68k_gdbarch_init): Update.
7271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7272 * ia64-tdep.c (ia64_gdbarch_init): Update.
7273 * hppa-tdep.c (hppa_gdbarch_init): Update.
7274 * h8300-tdep.c (h8300_gdbarch_init): Update.
7275 * frv-tdep.c (frv_gdbarch_init): Update.
7276 * cris-tdep.c (cris_gdbarch_init): Update.
7277 * avr-tdep.c (avr_gdbarch_init): Update.
7278 * alpha-tdep.c (alpha_gdbarch_init): Update.
7279 * arm-tdep.c (arm_gdbarch_init): Update.
7281 2003-06-13 Andrew Cagney <cagney@redhat.com>
7283 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7284 mips_o32_use_struct_convention with always_use_struct_convention.
7286 2003-06-12 David Carlton <carlton@kealia.com>
7288 * cp-namespace.c (cp_set_block_scope): Comment out
7289 processing_has_namespace_info branch.
7291 2003-06-12 Jim Blandy <jimb@redhat.com>
7293 Recognize and skip 64-bit PowerPC Linux linkage functions.
7294 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7295 insn_pattern, insns_match_pattern, d_field, ds_field): New
7296 functions, macros, and types for working with PPC instructions.
7297 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7298 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7299 ppc64_skip_trampoline_code): New functions, variables, and macros
7300 for recognizing and skipping linkage functions.
7301 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7302 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7304 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7305 register offsets for both the 32- and 64-bit interfaces.
7307 Actually finish the job started by my change of 2003-05-29.
7308 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7309 other #definition of this.
7310 (ppc_linux_skip_trampoline_code): Remove declaration.
7311 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7313 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7316 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7317 'long' on ppc64-*-linux*.
7319 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7320 isn't #defined, assume the register doesn't exist: act as if
7321 tdep->ppc_mq_regnum were -1.
7323 * configure.host, configure.tgt: Add entries for
7324 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7326 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7329 * arch-utils.c (always_use_struct_convention): New function.
7330 * arch-utils.h (always_use_struct_convention): New prototype.
7331 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7332 (alpha_gdbarch_init): Register always_use_struct_convention,
7333 instead of alpha_use_struct_convention.
7334 * cris-tdep.c (cris_use_struct_convention): Delete.
7335 (cris_gdbarch_init): Register always_use_struct_convention,
7336 instead of cris_use_struct_convention.
7337 * frv-tdep.c (frv_use_struct_convention): Delete.
7338 (frv_gdbarch_init): Register always_use_struct_convention,
7339 instead of frv_use_struct_convention.
7340 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7341 (h8300_gdbarch_init): Register always_use_struct_convention,
7342 instead of h8300_use_struct_convention.
7343 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
7344 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7345 instead of mips_o32_use_struct_convention.
7347 2003-06-12 Andrew Cagney <cagney@redhat.com>
7349 * wince.c: Include "mips-tdep.h".
7350 * mips-tdep.h (mips_next_pc): Declare.
7351 * mcore-tdep.c: Make more local functions static.
7352 * Makefile.in (wince.o): Update dependencies.
7354 2003-06-12 David Carlton <carlton@kealia.com>
7356 * symtab.c (lookup_symbol_aux_minsyms): Replace
7357 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7358 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7359 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7360 SYMBOL_NATURAL_NAME.
7362 2003-06-12 Andreas Schwab <schwab@suse.de>
7364 * Makefile.in (tuiDisassem.o): Update dependencies.
7366 2003-06-12 David Carlton <carlton@bactrian.org>
7368 * symtab.h: Delete declaration of make_symbol_overload_list.
7369 Add declaration of lookup_partial_symbol.
7370 * symtab.c (remove_params): Move to cp-support.c.
7371 (overload_list_add_symbol, make_symbol_overload_list)
7372 (sym_return_val_size, sym_return_val_index): Ditto.
7373 (lookup_partial_symbol): Make extern.
7374 * cp-support.h: Add declaration of make_symbol_overload_list.
7375 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7376 symtab.h, and block.h.
7377 (remove_params): Move here from symtab.c.
7378 (overload_list_add_symbol, make_symbol_overload_list)
7379 (sym_return_val_size, sym_return_val_index): Ditto.
7380 * valops.c: Include cp-support.h.
7381 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7382 frame_h, and block_h.
7383 (valops.o): Depend on cp_support_h.
7385 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
7387 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7388 substitute by NUM_REGS throughout.
7389 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7390 (h8300s_register_name): New function for H8S registers.
7391 (h8300sx_register_name): Ditto for H8SX registers.
7392 (h8300_print_register): Revise register printing, avoid depending
7394 (h8300_register_byte): Only care for H8/300 registers.
7395 (h8300h_register_byte): New function for any other architecture.
7396 (h8300_register_raw_size): Remove.
7397 (h8300_register_virtual_type): Revise to return actually useful
7399 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7400 (h8300h_extract_struct_value_address): New function for any other
7402 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7403 set_gdbarch_register_name, set_gdbarch_register_byte,
7404 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7405 Remove calls to set_gdbarch_deprecated_register_size,
7406 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7407 set_gdbarch_deprecated_max_register_raw_size,
7408 set_gdbarch_register_virtual_size and
7409 set_gdbarch_deprecated_max_register_virtual_size entirely.
7410 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7411 set_gdbarch_long_double_bit.
7413 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7415 * doublest.c (convert_doublest_to_floatformat): When dealing
7416 with the implied integer bit, only alter mant_bits if we are
7417 processing a full 32 bits of mantissa.
7419 2003-06-11 David Carlton <carlton@bactrian.org>
7421 * dictionary.h: New.
7422 * dictionary.c: New.
7423 * block.h: Add opaque declaration for struct dictionary.
7424 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7426 (BLOCK_DICT): New macro.
7427 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7428 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7430 (ALL_BLOCK_SYMBOLS): Update definition.
7431 * Makefile.in (SFILES): Add dictionary.c.
7432 (dictionary_h): New.
7433 (COMMON_OBS): Add dictionary.o.
7434 (dictionary.o): New.
7435 (ada-lang.o): Depend on dictionary_h.
7436 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7437 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7438 (mi-cmd-stack.o): Ditto.
7439 (gdbtk-cmds.o): Update dependencies.
7440 (gdbtk-stack.o): Ditto.
7441 * ada-lang.c: Include dictionary.h.
7442 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7443 (fill_in_ada_prototype, debug_print_block): Ditto.
7444 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7445 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7447 * mdebugread.c: Include dictionary.h.
7448 (struct parse_stack): Delete 'maxsyms' member.
7449 (parse_symbol): Update calls to new_block. Delete calls to
7450 shrink_block. Use dictionary methods.
7451 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7452 Update calls to new_symtab. Don't maintain maxsyms data.
7453 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7454 (add_symbol): Just call dict_add_symbol.
7455 (new_symtab): Delete 'maxsyms' argument.
7456 (new_symtab): Update calls to new_block.
7457 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7458 (shrink_block): Delete function.
7459 (fixup_sigtramp): Update call to new_block. Add symbol via
7461 * jv-lang.c: Include dictionary.h.
7462 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7463 appropriately. Set class_symtab->free_func. Make sure the
7464 blockvector is big enough to hold two blocks.
7465 (add_class_symtab_symbol): Use dictionary methods.
7466 (free_class_block): New function.
7467 (type_from_class): Replace explicit iteration by
7469 * symtab.h (struct symtab): Replace 'free_ptr' method by
7471 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7473 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7475 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7476 Include dictionary.h.
7477 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7478 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7480 * objfiles.c: Include dictionary.h.
7481 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7482 * buildsym.c: Include dictionary.h.
7483 (finish_block): Use dictionary methods.
7484 (end_symtab): Set free_func to NULL, not free_ptr.
7485 * tracepoint.c: Include dictionary.h.
7486 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7487 (scope_info): Ditto.
7488 * stack.c: Include dictionary.h.
7489 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7490 (print_block_frame_labels, print_frame_arg_vars)
7491 (print_frame_args): Ditto.
7492 * symmisc.c (free_symtab_block): Use dictionary methods.
7493 (dump_symtab): Ditto.
7494 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7495 Include dictionary.h.
7496 * symfile.h: Delete declarations of sort_block_syms,
7498 * symfile.c (sort_block_syms): Delete.
7499 (sort_symtab_syms): Delete.
7500 * symtab.c: Include dictionary.h.
7501 (lookup_block_symbol): Use dictionary iterators.
7502 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7503 (search_symbols, make_symbol_completion_list): Ditto.
7504 (make_symbol_overload_list): Ditto.
7505 * valops.c (value_of_local): Use dict_empty.
7506 Include dictionary.h.
7508 2003-06-11 J. Brobecker <brobecker@gnat.com>
7510 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7512 2003-06-11 David Carlton <carlton@bactrian.org>
7514 * block.h (BLOCK_SHOULD_SORT): Delete.
7515 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7517 * ada-lang.c (ada_add_block_symbols): Ditto.
7518 * symfile.c (sort_block_syms): Delete.
7519 (sort_symtab_syms): Ditto.
7520 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7522 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7523 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7524 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7525 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7526 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7527 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7528 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7530 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7532 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
7535 2003-06-11 Andrew Cagney <cagney@redhat.com>
7537 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7538 REGISTER_CONVERTIBLE.
7539 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7540 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7541 * gdbarch.h, gdbarch.c: Re-generate.
7542 * arch-utils.h (deprecated_register_convertible_not): Rename
7543 generic_register_convertible_not.
7544 * arch-utils.c (deprecated_register_convertible_not): Rename
7545 generic_register_convertible.
7546 (legacy_convert_register_p, legacy_register_to_value): Update.
7547 * sh-tdep.c (sh64_push_arguments): Update.
7548 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7549 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7550 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7551 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7552 * arch-utils.c (legacy_value_to_register): Update.
7553 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7554 (rs6000_register_convert_to_raw): Make parameter "from" const.
7555 * mips-tdep.c (mips_gdbarch_init): Update.
7556 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7557 * infcmd.c (default_print_registers_info): Update.
7558 * ia64-tdep.c (ia64_gdbarch_init): Update.
7559 (ia64_register_convert_to_raw): Make parameter "from" const.
7560 * i386-tdep.c (i386_gdbarch_init): Update.
7561 (i386_register_convert_to_raw): Update.
7563 2003-06-11 Andrew Cagney <cagney@redhat.com>
7565 * remote-fileio.c: Include "remote-fileio.h".
7566 * Makefile.in (remote-fileio.o): Update dependencies.
7567 (remote_fileio_h): Fix typo.
7569 2003-06-11 Andrew Cagney <cagney@redhat.com>
7571 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7572 (xstormy16_save_dummy_frame_tos): Make static.
7573 (_initialize_xstormy16_tdep): Add declaration.
7574 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7575 * v850-tdep.c: Make local functions static.
7576 (_initialize_v850_tdep): Add declaration.
7577 * sparc-tdep.c: Make local functions static.
7578 (_initialize_sparc_tdep): Add declaration.
7579 * sh-tdep.c: Make local functions static.
7580 (_initialize_sh_tdep): Add declaration.
7581 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7582 * s390-tdep.c: Make local functions static.
7583 (_initialize_s390_tdep): Add declaration.
7584 * dbxread.c (find_stab_function_addr): Make static.
7585 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7586 * ocd.c (_initialize_remote_ocd): Add declaration.
7587 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7588 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7589 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7590 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7591 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7592 * remote-array.c (_initialize_array): Add declaration.
7593 (_initialize_remote_monitors): Add declaration.
7594 * remote-mips.c: Make local functions static.
7595 (_initialize_remote_mips): Add declaration.
7596 * mcore-tdep.c: Make all local functions static.
7597 (_initialize_mcore_tdep): Add declaration.
7598 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7599 * abug-rom.c (_initialize_abug_rom): Add declaration.
7600 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7601 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7602 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7603 * remote-est.c (_initialize_est): Add declaration.
7604 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7605 (m68hc11_call_dummy_address): Make static.
7606 * ia64-tdep.c: Make local functions static.
7607 (_initialize_ia64_tdep): Add declaration.
7608 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7609 * monitor.c (monitor_wait_filter): Make static.
7610 (_initialize_remote_monitors): Add declaration.
7611 * remote-hms.c (_initialize_remote_hms): Add declaration.
7612 * remote-e7000.c (fetch_regs_from_dump): Make static.
7613 (expect_n): Make static.
7614 (_initialize_remote_e7000): Add declaration.
7615 * ser-e7kpc.c: Always include "defs.h".
7616 (_initialize_ser_e7000pc): Add declaration.
7617 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7618 * cris-tdep.c: Make all but one function static.
7619 (_initialize_cris_tdep): Add declaration.
7620 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7621 * solib.c (update_solib_list): Make static.
7622 (_initialize_solib): Add declaration.
7623 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7624 (_initialize_avr_tdep): Add declaration.
7625 * remote-rdi.c (voiddummy): Make static.
7626 (_initialize_remote_rdi): Add declaration.
7627 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7628 * remote-rdp.c (send_rdp): Make static.
7629 (_initialize_remote_rdp): Add declaration.
7630 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7632 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
7634 * remote-fileio.c: Make ari happy.
7636 2003-06-10 J. Brobecker <brobecker@gnat.com>
7638 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7639 fetching the trailing bytes of the buffer we are about to write.
7641 2003-06-10 Andrew Cagney <cagney@redhat.com>
7643 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7644 * Makefile.in (remote-fileio.o): Update dependencies.
7645 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7646 include <setjmp.h>, or <sys/types.h> conditional on USG.
7647 (remote_fio_jmp_buf): Delete global variable.
7649 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
7650 Martin M. Hunt <hunt@redhat.com>
7652 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7653 (SFILES): Add remote-fileio.c.
7654 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7655 dependencies for building remote.o.
7656 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7657 * remote-fileio.h: New header file defining remote File-I/O interface.
7658 * remote.c (remote_write_bytes, remote_read_bytes): Remove
7659 static storage class.
7660 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7662 (_initialize_remote): Call initialize_remote_fileio().
7663 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7664 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7665 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7666 (captured_main): Initialize new ui_files.
7667 * ui-file.c: Add read and fgets input functions.
7668 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7669 (null_file_read): New function.
7670 (ui_file_read): New function.
7671 (set_ui_file_read): New function.
7672 (stdio_file_read): New function.
7673 * ui-file.h: New type ui_file_read_ftype.
7674 (set_ui_file_read): Declare.
7675 (ui_file_read): Declare.
7677 2003-06-09 Andrew Cagney <cagney@redhat.com>
7679 * frame.h (deprecated_unwind_get_saved_register): Rename
7680 generic_unwind_get_saved_register, update comments.
7681 * mips-tdep.c (mips_get_saved_register): Update.
7682 * frame.c (deprecated_unwind_get_saved_register): Update.
7684 2003-06-09 Andrew Cagney <cagney@redhat.com>
7686 * vax-tdep.c (vax_frame_locals_address): Delete function.
7687 (vax_gdbarch_init): Do not set frame_locals_address.
7688 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7689 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7690 * s390-tdep.c (s390_frame_args_address): Delete function.
7691 (s390_gdbarch_init): Do not set frame_args_address or
7692 frame_locals_address.
7693 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7694 (ns32k_gdbarch_init): Do not set frame_locals_address.
7695 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7696 (hppa_frame_locals_address): Delete function.
7697 (hppa_gdbarch_init): Do not set frame_args_address, or
7698 frame_locals_address.
7699 * arm-tdep.c (arm_frame_args_address): Delete.
7700 (arm_frame_locals_address): Delete.
7701 (arm_gdbarch_init): Do not set frame_args_address, or
7702 frame_locals_address.
7704 2003-06-09 Andrew Cagney <cagney@redhat.com>
7706 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7707 * gdbarch.h, gdbarch.c: Re-generate.
7708 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7709 * arch-utils.c (frame_num_args_unknown): Delete function.
7710 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7711 (frame_info): Use FRAME_NUM_ARGS_P.
7712 * arm-tdep.c (arm_frame_num_args): Delete function.
7713 (arm_gdbarch_init): Do not set frame_num_args.
7714 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7715 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7716 (hppa_gdbarch_init): Do not set frame_num_args.
7717 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7719 frame_num_args to default frame_num_args_unknown.
7720 * v850-tdep.c (v850_gdbarch_init): Ditto.
7721 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7722 * sh-tdep.c (sh_gdbarch_init): Ditto.
7723 * s390-tdep.c (s390_gdbarch_init): Ditto.
7724 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7725 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7726 * mips-tdep.c (mips_gdbarch_init): Ditto.
7727 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7728 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7730 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7731 * i386-tdep.c (i386_gdbarch_init): Ditto.
7732 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7733 * frv-tdep.c (frv_gdbarch_init): Ditto.
7734 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7735 * cris-tdep.c (cris_gdbarch_init): Ditto.
7736 * avr-tdep.c (avr_gdbarch_init): Ditto.
7737 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7739 2003-06-09 Andrew Cagney <cagney@redhat.com>
7741 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7742 (print_frame_args): Moved to "stack.c".
7743 * stack.c: Include "gdb_assert.h".
7744 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7745 (print_frame_args): Moved from "printcmd.c".
7746 * frame.h (print_frame_args): Delete declaration.
7747 * Makefile.in (stack.o): Update dependencies.
7749 2003-06-08 Andrew Cagney <cagney@redhat.com>
7751 * frame.c (get_prev_frame): Remove reference to
7752 frame_args_address_correct in comments.
7753 * frame-base.c (default_frame_args_address): Delete code
7754 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7755 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7756 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7757 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7758 (vax_frame_args_address_correct): Delete declaration.
7760 2003-06-08 Andrew Cagney <cagney@redhat.com>
7762 * gdbarch.sh (UNWIND_SP): Add.
7763 * gdbarch.h, gdbarch.c: Re-generate.
7764 * frame.c (frame_sp_unwind): New function.
7765 (get_frame_sp): New function.
7766 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7767 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7768 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7770 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7771 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7773 2003-06-08 Andrew Cagney <cagney@redhat.com>
7775 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7778 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7779 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7780 * config/m68k/tm-sun3.h: Update.
7781 * config/m68k/tm-m68klynx.h: Update.
7782 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7784 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7785 trad_frame". Update comments.
7786 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7787 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7788 (trad_frame_register_value, trad_frame_prev_register): Update.
7790 2003-06-08 Andrew Cagney <cagney@redhat.com>
7792 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7793 from GCC's acinclude.m4.
7794 * configure.in: Check for getopt's delcaration.
7795 * aclocal.m4, config.in, configure: Re-generate.
7796 * main.c (error_init): Delete declaration.
7797 * defs.h (error_init): Declare.
7798 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7799 (rs6000_convert_from_func_ptr_addr): Make static.
7800 (_initialize_rs6000_tdep): Add declaration.
7801 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7802 (show_commands, set_verbose, show_history): Delete declaration.
7803 * top.h (set_verbose): Add declaration.
7804 (show_history, set_history, show_commands): Add declaration.
7805 (do_restore_instream_cleanup): Add declaration.
7806 * objc-lang.c (specialcmp): Make static.
7807 (print_object_command): Make static.
7808 (find_objc_msgsend): Make static.
7809 (find_objc_msgcall_submethod_helper): Make static.
7810 (find_objc_msgcall_submethod): Make static.
7811 (_initialize_objc_language): Add declaration.
7812 (find_implementation_from_class): Make static.
7813 (find_implementation): Make static.
7814 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7815 * objc-lang.h (lookup_struct_typedef): Add declaration.
7816 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7817 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7818 (do_restore_user_call_depth): Make static.
7819 (do_restore_instream_cleanup): Delete declaration.
7820 (dont_repeat): Delete declaration.
7821 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7822 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7823 * reggroups.c (_initialize_reggroup): Add declaration.
7824 * cp-support.c (_initialize_cp_support): Add declaration.
7825 * cp-abi.c (_initialize_cp_abi): Add declaration.
7826 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7827 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7828 (_initialize_gnu_v3_abi): Add declaration.
7829 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7830 (_initialize_gnu_v2_abi): Add declaration.
7831 * frame-base.c (_initialize_frame_base): Add declaration.
7832 * doublest.c (floatformat_from_length): Make static.
7833 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7834 * frame.c (create_sentinel_frame): Make static.
7835 (_initialize_frame): Add declaration.
7836 * top.c (do_catch_errors): Make static.
7837 (gdb_rl_operate_and_get_next_completion): Make static.
7838 * typeprint.c: Include "typeprint.h".
7839 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7840 (sentinel_frame_this_id): Make static.
7841 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7842 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7843 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7844 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7845 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7846 * maint.c (maintenance_print_architecture): Make static.
7847 * signals/signals.c (_initialize_signals): Add declaration.
7848 * std-regs.c (_initialize_frame_reg): Add declaration.
7849 * jv-exp.y (push_variable): ISO C definition.
7850 (push_qualified_expression_name): Ditto.
7851 * memattr.c (_initialize_mem): Add declaration.
7852 * remote.c (remote_check_watch_resources): Make static.
7853 (remote_stopped_by_watchpoint): Make static.
7854 (remote_stopped_data_address): Make static.
7855 * d10v-tdep.c (nr_dmap_regs): Make static.
7856 (a0_regnum): Make static.
7857 (d10v_frame_unwind_cache): Make static.
7858 (d10v_frame_p): Make static.
7859 * osabi.c (show_osabi): Make static.
7860 (_initialize_gdb_osabi): Add extern declaration.
7861 * gdbtypes.c (make_qualified_type): Make static.
7862 (safe_parse_type): Make static.
7863 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7864 * macrotab.c (macro_bcache_free): Make static.
7865 * interps.c (interp_set_quiet): Make static.
7866 (interpreter_exec_cmd): Make static.
7867 * stack.h (select_frame_command): New file.
7868 * stack.c: Include "stack.h".
7869 (select_frame_command_wrapper): Delete function.
7870 (select_frame_command): Make global.
7871 * infcall.c: Include "infcall.h".
7872 * linespec.c: Include "linespec.h".
7873 * symfile.c (sections_overlap): Make static.
7874 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7875 * charset.c (_initialize_charset): Add missing prototype.
7876 * regcache.c (init_legacy_regcache_descr): Make static.
7877 (do_regcache_xfree): Make static.
7878 (regcache_xfer_part): Make static.
7879 (_initialize_regcache): Add missing prototype.
7880 * breakpoint.c (parse_breakpoint_sals): Make static.
7881 (breakpoint_sals_to_pc): Make static.
7882 * interps.h (clear_interpreter_hooks): ISO C declaration.
7883 * Makefile.in (stack_h): Define.
7884 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7885 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7887 2003-06-08 Andrew Cagney <cagney@redhat.com>
7889 * Makefile.in (d10v-tdep.o): Update dependencies.
7890 (SFILES): Add trad-frame.c.
7891 (trad_frame_h): Define.
7892 (COMMON_OBS): Add trad-frame.o.
7893 (trad-frame.o): Specify dependencies.
7894 * d10v-tdep.c: Include "trad-frame.h".
7895 (saved_regs_unwinder): Delete function.
7896 (d10v_frame_prev_register): Use trad_frame_prev_register.
7897 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7898 trad_frame", delete "regs" and "prev_sp".
7899 (prologue_find_regs): Use trad-frame.
7900 * trad-frame.h, trad-frame.c: New files.
7902 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7904 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7906 2003-06-07 Adam Fedor <fedor@gnu.org>
7908 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7909 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7910 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7911 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7912 resolve_msgsend_super, resolve_msgsend_super_stret):
7915 2003-06-07 Andrew Cagney <cagney@redhat.com>
7917 * symfile.h: Re-indent, clean up comments.
7919 2003-06-07 Andrew Cagney <cagney@redhat.com>
7921 * inferior.h (deprecated_write_sp): Replace
7922 generic_target_write_sp.
7923 * regcache.c (deprecated_write_sp): Replace
7924 generic_target_write_sp.
7925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7926 * vax-tdep.c (vax_gdbarch_init): Update.
7927 * v850-tdep.c (v850_gdbarch_init): Update.
7928 * sparc-tdep.c (sparc_gdbarch_init): Update.
7929 * sh-tdep.c (sh_gdbarch_init): Update.
7930 * s390-tdep.c (s390_gdbarch_init): Update.
7931 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7932 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7933 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7934 * mcore-tdep.c (mcore_gdbarch_init): Update.
7935 * m68k-tdep.c (m68k_gdbarch_init): Update.
7936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7937 * ia64-tdep.c (ia64_gdbarch_init): Update.
7938 * h8300-tdep.c (h8300_gdbarch_init): Update.
7939 * frv-tdep.c (frv_gdbarch_init): Update.
7940 * cris-tdep.c (cris_gdbarch_init): Update.
7941 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7943 2003-06-07 Andrew Cagney <cagney@redhat.com>
7945 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7946 Assert that PC_REGNUM is valid.
7947 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7949 2003-06-07 Andrew Cagney <cagney@redhat.com>
7951 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7952 * gdbarch.h, gdbarch.c: Regenerate.
7953 * mn10300-tdep.c: Include "gdb_assert.h".
7954 (mn10300_read_fp): New function.
7955 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7956 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7957 * ia64-tdep.c: Include "gdb_assert.h".
7958 (ia64_read_fp): New function.
7959 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7960 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7961 * regcache.c (generic_target_read_sp): Delete function.
7962 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7963 * inferior.h (generic_target_read_sp): Delete declaration.
7964 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7965 generic_target_read_sp.
7966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7967 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7968 * sh-tdep.c (sh_gdbarch_init): Ditto.
7969 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7970 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7972 2003-06-07 Andrew Cagney <cagney@redhat.com>
7974 * gdbarch.sh: Comment each field of startup_gdbarch.
7975 * gdbarch.h, gdbarch.c: Re-generate.
7977 2003-06-07 Andrew Cagney <cagney@redhat.com>
7979 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7980 * gdbarch.h, gdbarch.c: Re-generate.
7981 * regcache.c: Update comments on read_pc et.al.
7982 (generic_target_read_pc): Delete function.
7983 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7984 * inferior.h (generic_target_read_pc): Delete declaration.
7985 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7986 generic_target_read_pc.
7987 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7988 * sh-tdep.c (sh_gdbarch_init): Ditto.
7989 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7990 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7992 2003-06-07 Andrew Cagney <cagney@redhat.com>
7994 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7995 "index" with "special_local_sect". Use strcmp instead of STREQ.
7996 Append period to coments.
7998 2003-06-06 Mark Mitchell <mark@codesourcery.com>
8000 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
8001 (elfstab_offset_sections): Likewise.
8002 * gdb-stabs.h (stab_section_info): Likewise.
8003 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
8004 * objfiles.c (objfile_relocate): Likewise.
8005 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
8006 * remote.c (get_offsets): Likewise.
8007 (remote_cisco_objfile_relocate): Likewise.
8008 * somread.c (som_symfile_offsets): Likewise.
8009 * symfile.c (alloc_section_addr_info): New function.
8010 (build_section_addr_info_from_section_tab): Use it.
8011 (free_section_addr_info): Adjust.
8012 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
8013 (syms_from_objfile): Allocate local_addr dynamically.
8014 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
8016 (add_symbol_file_command): Allocate sect_opts dynamically.
8017 (reread_symbols): Avoid use of SECT_OFF_MAX.
8018 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
8019 (alloc_section_addr_info): Declare it.
8020 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
8021 * win32-nat.c (solib_symbols_add): Allocate section_addrs
8023 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8025 2003-06-06 Andrew Cagney <cagney@redhat.com>
8027 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
8028 (d10v_frame_unwind_cache): Do not set "return_pc".
8030 2003-06-06 Michael Snyder <msnyder@redhat.com>
8032 * h8300-tdep.c: Make tidy (long lines).
8034 2003-06-06 Michal Ludvig <mludvig@suse.cz>
8036 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
8037 to regcache_collect().
8039 2003-06-05 J. Brobecker <brobecker@gnat.com>
8041 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
8042 pc_in_sigtramp multiarch method.
8043 (hppa_hpux_som_init_abi): Use it.
8044 (hppa_hpux_elf_init_abi): Likewise.
8045 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
8046 macro has been multiarched.
8047 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
8048 macro here, as hppa64 isn't multiarched yet.
8050 2003-06-05 Andrew Cagney <cagney@redhat.com>
8052 * Makefile.in (value_h): Add $(frame_h).
8053 * value.h: Include "frame.h".
8054 (struct value): Replace "frame_addr" with "frame_id".
8055 (VALUE_FRAME_ID): Replace VALUE_FRAME.
8056 * values.c (allocate_value): Use VALUE_FRAME_ID.
8057 (value_copy): Use VALUE_FRAME_ID.
8058 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
8059 * valops.c (value_assign): Update. Use frame_find_by_id.
8061 2003-06-05 Michal Ludvig <mludvig@suse.cz>
8063 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
8066 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
8068 * thread-db.c (check_event): For create/death event breakpoints,
8069 loop through all messages to ensure that we read the message
8070 corresponding to the breakpoint we are at.
8072 2003-06-04 Michael Snyder <msnyder@redhat.com>
8074 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
8076 2003-06-04 Mark Kettenis <kettenis@gnu.org>
8078 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
8079 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
8080 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
8081 when handling .eh_frame sections.
8083 2003-06-04 J. Brobecker <brobecker@gnat.com>
8085 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
8086 prepare_to_proceed procedure instead of the hppa-specific one.
8087 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
8089 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8091 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
8092 * config.in: Regenerated.
8093 * configure.in: Add test for syscall function and check for
8094 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
8095 * configure: Regenerated.
8096 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
8098 (kill_lwp): New function that uses tkill syscall or
8099 uses kill, depending on whether threading model is nptl or not.
8100 All callers of kill() changed to use kill_lwp().
8101 (lin_lwp_wait): Make special check when WIFEXITED occurs to
8102 see if all threads have already exited in the nptl model.
8103 (stop_and_resume_callback): New callback function used by the
8104 lin_lwp_wait thread exit handling code.
8105 (stop_wait_callback): Check for threads already having exited and
8106 delete such threads fromt the lwp list when discovered.
8107 (stop_callback): Don't assert retcode of kill call.
8109 Roland McGrath <roland@redhat.com>
8110 * i386-linux-nat.c (ps_get_thread_area): New function needed by
8113 2003-06-03 Richard Henderson <rth@redhat.com>
8115 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
8116 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
8117 (alpha_sigtramp_frame_prev_register): Likewise.
8118 (alpha_heuristic_frame_prev_register): Likewise.
8119 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
8121 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
8122 alpha-specific register id names.
8123 (alpha_mdebug_frame_unwind_cache): Likewise.
8124 (alpha_mdebug_frame_prev_register): Likewise.
8126 2003-06-03 Richard Henderson <rth@redhat.com>
8128 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
8129 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
8130 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
8131 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
8133 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8134 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8135 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8137 * alpha-linux-tdep.c: Remove unnecessary includes.
8138 * Makefile.in (alpha-linux-tdep.o): Update.
8140 2003-06-03 Richard Henderson <rth@redhat.com>
8142 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
8143 (alphabsd_fill_fpreg): Likewise.
8145 2003-06-03 J. Brobecker <brobecker@gnat.com>
8147 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
8148 references to struct frame_info fields by calls to the equivalent
8149 accessors. Necessary now that frame_info is opaque.
8151 2003-06-03 J. Brobecker <brobecker@gnat.com>
8153 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
8154 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
8155 structure, field no longer exists.
8157 2003-06-03 J. Brobecker <brobecker@gnat.com>
8159 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8160 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
8162 2003-06-03 J. Brobecker <brobecker@gnat.com>
8164 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
8165 references to struct frame_info fields by calls to the equivalent
8166 accessors. Necessary now that frame_info is opaque.
8168 2003-06-03 J. Brobecker <brobecker@gnat.com>
8170 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
8171 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
8172 structure, field no longer exists.
8174 2003-06-03 Theodore A. Roth <troth@openavr.org>
8176 * remote.c (init_remote_state): Compute sizeof_g_packet by
8177 accumulation of the size of all registers instead of blindly using
8178 DEPRECATED_REGISTER_BYTES.
8180 2003-06-03 Michael Snyder <msnyder@redhat.com>
8182 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
8183 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
8186 2003-06-03 J. Brobecker <brobecker@gnat.com>
8188 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
8189 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8191 2003-06-03 Andrew Cagney <cagney@redhat.com>
8193 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
8194 (sparc_convert_to_raw): Delete function.
8195 (sparc_gdbarch_init): Do not set register_convert_to_raw or
8196 register_convert_to_virtual.
8198 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
8200 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
8201 layer if not dealing with a statically-linked threaded program.
8203 2003-06-03 Kris Warkentin <kewarken@qnx.com>
8205 * solib.c (solib_open): Update comment to reflect actual search order.
8207 2003-06-03 Andrew Cagney <cagney@redhat.com>
8209 * frame.c (get_frame_memory_signed): New function.
8210 (get_frame_memory, get_frame_memory_unsigned): New function.
8211 (get_frame_arch): New function.
8212 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8213 (get_frame_memory, get_frame_unsigned_memory): Declare.
8214 * d10v-tdep.c (d10v_frame_unwind_cache): Use
8215 get_frame_memory_unsigned and get_frame_arch.
8216 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8218 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
8220 * MAINTAINERS (write after approval): Add myself.
8222 2003-06-03 Jim Blandy <jimb@redhat.com>
8224 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8225 elements of gregset_t are 64 bits each, but access registers
8226 are still 32 bits, so they're packed two per gregset_t
8227 element. Unpack/pack them properly.
8229 2003-06-02 David Carlton <carlton@bactrian.org>
8231 * linespec.c (find_methods): Break out code into
8232 add_matching_methods and add_constructors.
8233 (add_matching_methods): New.
8234 (add_constructors): Ditto.
8236 2003-06-02 Andrew Cagney <cagney@redhat.com>
8238 * sparc-tdep.c (sparc_print_registers): Delete call to
8239 REGISTER_CONVERTIBLE.
8240 (sparc_gdbarch_init): Do not set register_convertible.
8241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8242 * frv-tdep.c (frv_gdbarch_init): Ditto.
8243 * cris-tdep.c (cris_gdbarch_init): Ditto.
8245 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
8247 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
8248 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8249 (syms_from_objfile): Ditto.
8251 2003-06-03 Andreas Schwab <schwab@suse.de>
8253 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8254 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8256 2003-06-02 Richard Henderson <rth@redhat.com>
8258 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8259 a member of all_reggroup.
8261 2003-06-02 Richard Henderson <rth@redhat.com>
8263 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8264 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8265 (alpha_lds, alpha_sts): New.
8266 (alpha_convert_register_p): Change from _register_convertible.
8267 (alpha_register_to_value): Change from _convert_to_virtual;
8268 restructure and fail for type sizes other than 4 or 8.
8269 (alpha_value_to_register): Similarly.
8270 (alpha_extract_return_value): Use alpha_sts.
8271 (alpha_store_return_value): Use alpha_lds.
8272 (alpha_gdbarch_init): Update hooks.
8274 2003-06-02 Richard Henderson <rth@redhat.com>
8276 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8278 (alpha_sigtramp_register_address): Likewise.
8280 2003-06-02 Richard Henderson <rth@redhat.com>
8282 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8283 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8284 * alpha-tdep.h: Declare them.
8286 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8287 Remove zerobuf. Don't error on UNIQUE.
8288 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8289 (ALPHA_REGSET_UNIQUE): Provide default.
8290 (supply_gregset): Use alpha_supply_int_regs.
8291 (fill_gregset): Use alpha_fill_int_regs.
8292 (supply_fpregset): Use alpha_supply_fp_regs.
8293 (fill_fpregset): Use alpha_fill_fp_regs.
8294 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8295 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8296 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8297 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8298 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8299 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8301 2003-06-02 Richard Henderson <rth@redhat.com>
8303 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8305 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8306 (alpha_store_return_value): Likewise.
8308 2003-06-02 David Carlton <carlton@math.stanford.edu>
8310 * block.c (contained_in): Add 'const' to arguments.
8311 (block_function): Ditto.
8312 * block.h: Update declarations for block_function and
8315 2003-06-02 David Carlton <carlton@math.stanford.edu>
8317 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8318 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8319 * p-valprint.c (pascal_val_print): Ditto.
8320 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8322 2003-06-02 Richard Henderson <rth@redhat.com>
8324 * alpha-tdep.c (alpha_push_dummy_call): Use
8325 builtin_type_ieee_double_little instead of builtin_type_double.
8327 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
8328 sign-extension of 32-bit values.
8329 (alpha_store_return_value): Similarly.
8331 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8332 (alpha_extract_return_value): Likewise.
8333 (alpha_store_return_value): Likewise.
8335 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8336 (alpha_store_return_value): Error on IEEE Quad floats.
8338 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8339 (alpha_extract_struct_value_address): Likewise.
8340 (alpha_store_return_value): Likewise.
8341 (alpha_store_struct_return): Remove.
8342 (alpha_gdbarch_init): Update hook registration to match.
8344 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8345 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8346 macros where appropriate.
8347 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8348 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
8350 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8351 for SP, GP; void_func_ptr for PC; non-language-specific types
8353 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
8355 2003-06-02 Richard Henderson <rth@redhat.com>
8357 * top.h (lim_at_start): Declare.
8358 * main.c (captured_main): Set it.
8359 * top.c (lim_at_start): Define.
8360 (command_loop): Use it instead of &environ.
8361 * event-top.c (command_handler): Likewise.
8363 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8365 * mipsnbsd-tdep.c: Update copyright years.
8366 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8368 2003-06-01 Richard Henderson <rth@redhat.com>
8370 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8371 (alpha-linux-tdep.o): Update dependencies.
8372 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8373 * alpha-mdebug-tdep.c: Remove unneeded includes.
8375 2003-06-01 Richard Henderson <rth@redhat.com>
8377 * alpha-tdep.c (alpha_register_reggroup_p): New.
8378 (alpha_gdbarch_init): Register it.
8380 2003-06-02 Andrew Cagney <cagney@redhat.com>
8382 * dwarfread.c: Eliminate "register"
8383 (decode_die_type): Eliminate assignment within "if".
8384 (struct_type, decode_array_element_type): Ditto.
8385 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8386 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8387 (decode_modified_type, completedieinfo): Ditto.
8388 * block.c: Eliminate "register".
8389 (blockvector_for_pc_sect): Eliminate assignment within "if".
8390 * cp-support.h (struct symbol): Opaque declaration.
8391 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8393 2003-06-01 Richard Henderson <rth@redhat.com>
8395 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8396 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
8398 2003-06-01 Adam Fedor <fedor@gnu.org>
8400 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8401 * gdbarch.[ch]: Regenerate.
8402 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8403 (hppa_gdbarch_init): Set it in the gdbarch vector.
8404 * i386-tdep.c (i386_fetch_pointer_argument): New
8405 (i386_gdbarch_init): Set it into gdbarch.
8406 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8407 (rs6000_gdbarch_init): Set it in gdbarch.
8408 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8409 (sparc_gdbarch_init): Set it in gdbarch.
8411 2003-06-01 Andrew Cagney <cagney@redhat.com>
8413 * defs.h (extract_address): Delete declaration.
8414 * findvar.c (extract_address): Delete function.
8415 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8416 extract_address with the inline equivalent,
8417 extract_unsigned_integer.
8418 (xstormy16_extract_struct_value_address): Ditto.
8419 (xstormy16_pointer_to_address): Ditto.
8420 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8421 * v850-tdep.c (v850_push_arguments): Ditto.
8422 (v850_extract_return_value): Ditto.
8423 (v850_extract_struct_value_address): Ditto.
8424 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8425 (sparcnbsd_get_longjmp_target_64): Ditto.
8426 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8427 (get_longjmp_target): Ditto.
8428 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8429 (sh64_extract_struct_value_address): Ditto.
8430 (sh_push_arguments): Ditto.
8431 (sh64_push_arguments): Ditto.
8432 * remote-vxsparc.c (vx_read_register): Ditto.
8433 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8434 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8435 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8436 * mipsv4-nat.c (get_longjmp_target): Ditto.
8437 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8438 * mips-nat.c (get_longjmp_target): Ditto.
8439 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8440 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8441 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8442 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8443 * irix5-nat.c (get_longjmp_target): Ditto.
8444 * irix4-nat.c (get_longjmp_target): Ditto.
8445 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8446 (ia64_push_arguments): Ditto.
8447 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8448 * h8300-tdep.c (h8300_push_arguments): Ditto.
8449 (h8300_store_return_value): Ditto.
8450 (h8300_extract_struct_value_address): Ditto.
8451 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8452 (frv_push_arguments): Ditto.
8453 * avr-tdep.c (avr_pointer_to_address): Ditto.
8454 (avr_push_arguments): Ditto.
8455 * arm-tdep.c (arm_push_dummy_call): Ditto.
8456 (arm_get_longjmp_target): Ditto.
8457 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8458 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8459 (alpha_get_longjmp_target): Ditto.
8461 * solib-irix.c (extract_mips_address): Inline extract_address,
8462 replacing it with extract_signed_integer.
8463 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8464 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8465 (first_link_map_member, open_symbol_file_object): Ditto.
8466 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8467 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8468 (LM_NEXT, LM_NAME): Ditto.
8470 2003-06-01 Richard Henderson <rth@redhat.com>
8472 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8473 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8474 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8475 (alpha_cannot_store_register): Likewise.
8476 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8477 * alpha-nat.c (supply_gregset): Likewise.
8478 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
8480 2003-06-01 Andrew Cagney <cagney@redhat.com>
8482 * infcall.c (call_function_by_hand): Update comment on
8483 DEPRECATED_DUMMY_WRITE_SP.
8485 * mips-tdep.c (mips_gdbarch_init): Do not set
8486 deprecated_dummy_write_sp.
8487 (mips_eabi_push_dummy_call): Set the SP register.
8488 (mips_o64_push_dummy_call): Set the SP register.
8489 (mips_o32_push_dummy_call): Set the SP register.
8490 (mips_n32n64_push_dummy_call): Set the SP register.
8492 2003-06-01 Richard Henderson <rth@redhat.com>
8494 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8495 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8496 (supply_gregset): Likewise.
8497 * alpha-tdep.c (alpha_store_return_value): Likewise.
8498 (alpha_get_longjmp_target): Likewise.
8499 (alpha_register_name): Constify array.
8500 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8501 deprecated_register_size, deprecated_register_bytes,
8502 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8503 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8504 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
8506 2003-06-01 Richard Henderson <rth@redhat.com>
8508 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8509 from arg_reg_buffer to regcache to avoid double conversion.
8511 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8513 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8515 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8516 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8518 2003-06-01 Richard Henderson <rth@redhat.com>
8520 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8521 (decode_frame_entry): Set it. Skip FDE augmentation.
8523 2003-06-01 Richard Henderson <rth@redhat.com>
8525 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8526 not overlapping PC_REGNUM.
8528 2003-06-01 Richard Henderson <rth@redhat.com>
8530 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8531 alpha_push_arguments. Don't dump argument register data to
8532 the target stack. Fix float and 128-bit long double semantics.
8533 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8534 (alpha_fix_call_dummy): Remove.
8535 (alpha_call_dummy_words): Remove.
8536 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
8538 2003-06-01 Richard Henderson <rth@redhat.com>
8540 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8542 2003-06-01 Andrew Cagney <cagney@redhat.com>
8544 * mips-tdep.c (is_mips16_addr): New function.
8545 (make_mips16_addr, unmake_mips16_addr): New functions.
8546 (pc_is_mips16, mips_fetch_instruction): Use.
8547 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8548 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8549 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8550 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8552 * config/mips/tm-mips.h: Update copyright.
8553 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8554 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8555 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8556 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8557 (TM_PRINT_INSN_MACH): Delete.
8558 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8560 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8561 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8562 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8563 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8564 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8565 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8566 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8567 mips*-*-riscos* and mips*-*-sysv* onto mips.
8568 * config/mips/mips64.mt: New file.
8569 * config/mips/mips.mt: New file.
8570 * config/mips/littlemips.mt: Delete file.
8571 * config/mips/decstation.mt: Delete file.
8572 * config/mips/vr4300el.mt: Delete file.
8573 * config/mips/vr5000el.mt: Delete file.
8574 * config/mips/vr5000.mt: Delete file.
8575 * config/mips/vr4100.mt: Delete file.
8576 * config/mips/vr4xxxel.mt: Delete file.
8577 * config/mips/vr4300.mt: Delete file.
8578 * config/mips/vr4xxx.mt: Delete file.
8579 * config/mips/bigmips.mt: Delete file.
8580 * config/mips/bigmips64.mt: Delete file.
8581 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8582 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8583 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8584 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8585 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8587 * config/mips/tm-irix3.h: Ditto.
8588 * config/mips/tm-mipsv4.h: Ditto.
8589 * config/mips/tm-embed.h: Ditto.
8590 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8592 * config/mips/tm-vr5000el.h: Delete file.
8593 * config/mips/tm-tx39l.h: Delete file.
8594 * config/mips/tm-vr4300el.h: Delete file.
8595 * config/mips/tm-vr4xxxel.h: Delete file.
8596 * config/mips/tm-vr4300.h: Delete file.
8597 * config/mips/tm-vr4100.h: Delete file.
8598 * config/mips/tm-vr4xxx.h: Delete file.
8599 * config/mips/tm-vr5000.h: Delete file.
8600 * config/mips/tm-embedl64.h: Delete file.
8601 * config/mips/tm-embedl.h: Delete file.
8602 * config/mips/tm-embed64.h: Delete file.
8603 * config/mips/tm-bigmips64.h: Delete file.
8604 * config/mips/tm-bigmips.h: Delete file.
8606 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8609 * shnbsd-nat.c: Include "sh-tdep.h".
8611 From Richard Henderson <rth@redhat.com>:
8612 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8614 2003-05-31 Andrew Cagney <cagney@redhat.com>
8616 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8617 forward declaration.
8618 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8619 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8620 (mips_find_saved_regs): Use set_reg_offset.
8621 (mips_frame_init_saved_regs): Delete function.
8622 (mips_pop_frame): Call mips_find_saved_regs instead of
8623 DEPRECATED_FRAME_INIT_SAVED_REGS.
8625 2003-05-31 Andrew Cagney <cagney@redhat.com>
8627 * mips-tdep.c (mips_gdbarch_init): Do not set
8628 deprecated_max_register_raw_size, register_virtual_size, and
8629 deprecated_max_register_virtual_size.
8631 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8633 * i386-tdep.c: Include "dwarf2-frame.h".
8634 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8635 * Makefile.in (i386-tdep.o): Update dependencies.
8637 * dwarf2-frame.c, dwarf2-frame.h: New files.
8638 * Makefile.in (SFILES): Add dwarf2-frame.c.
8639 (dwarf2_frame_h): Define.
8640 (COMMON_OBS): Add dwarf2-frame.o.
8641 (dwarf2-frame.o): Add dependencies.
8643 2003-05-31 Andreas Jaeger <aj@suse.de>
8645 * x86-64-linux-nat.c: Fix comment.
8647 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8649 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8652 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8653 have a sigcontext_addr handler.
8654 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8655 sigcontext_addr handler.
8657 2003-05-31 Andrew Cagney <cagney@redhat.com>
8659 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8660 (print_fp_register_row): Replace do_fp_register_row.
8661 (mips_print_fp_register): Add "file" and "frame" parameters.
8662 (mips_print_register): Add "file" and "frame" parameters.
8663 (mips_print_registers_info): Replace mips_do_registers_info.
8664 (mips_gdbarch_init): Set print_registers_info instead of
8665 deprecated_do_registers_info.
8666 (mips_read_fp_register_single): Add "frame" parameter.
8667 (mips_read_fp_register_double): Add "frame" parameter.
8669 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8671 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8672 Fixes a bug where GDB would print the wrong register names for
8673 targets without SSE.
8675 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8676 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8679 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8680 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8681 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8684 From Michal Ludvig <mludvig@suse.cz>:
8685 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8687 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8688 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8689 I386_ST0_REGNUM): Move here from...
8690 * i386-tdep.c: ... here.
8691 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8692 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8693 registers if possible.
8694 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8695 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8697 (i386bsd_sc_reg_offset): New variable.
8698 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8699 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8701 (i386fbsd_sc_reg_offset): New variable.
8702 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8704 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8706 (i386fbsd4_sc_reg_offset): New variable.
8707 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8708 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8710 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8711 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8712 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8714 (i386nbsd_sc_reg_offset): New variable.
8715 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8716 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8718 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8720 (i386obsd_sc_reg_offset): New variable.
8721 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8722 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8724 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8725 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8726 for frame pointer offset in `struct sigcontext'.
8728 2003-05-31 Andrew Cagney <cagney@redhat.com>
8730 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8731 architecture methods call_dummy_words, sizeof_call_dummy_words,
8732 push_return_address, store_struct_return, and fix_call_dummy. Set
8733 push_dummy_call instead of deprecated_push_arguments.
8734 (mips_store_struct_return): Delete function.
8735 (mips_fix_call_dummy): Delete function.
8736 (mips_push_return_address): Delete function.
8737 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8738 RA_REGNUM and T9_REGNUM.
8739 (mips_n32n64_push_dummy_call): Ditto for
8740 mips_n32n64_push_arguments.
8741 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8742 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8744 2003-05-31 Andrew Cagney <cagney@redhat.com>
8746 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8747 "dummy_addr" to "bp_addr".
8748 * infcall.c (call_function_by_hand): Pass "funaddr" to
8749 gdbarch_push_dummy_call.
8750 * gdbarch.h, gdbarch.c: Re-generate.
8751 * i386-tdep.c (i386_push_dummy_call): Update.
8752 * arm-tdep.c (arm_push_dummy_call): Update.
8753 * d10v-tdep.c (d10v_push_dummy_call): Update.
8755 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8757 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8758 variable declarations.
8759 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8760 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8761 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8762 x86_64_init_frame_pc, x86_64_init_frame_pc,
8763 x86_64_function_has_prologue): Remove prototypes.
8764 (X86_64_NUM_GREGS): New define.
8765 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8766 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8767 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8768 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8769 XMM1_REGNUM): Remove defines.
8770 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8771 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8772 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8773 X86_64_XMM1_REGNUM): New defines.
8774 (struct x86_64_register_info): Renamed from `struct
8775 register_info'. Remove `size' member.
8776 (x86_64_register_info_table): Remove variable.
8777 (x86_64_register_info): New variable.
8778 (X86_64_NUM_REGS): New define.
8779 (X86_64_NUM_GREGS): Remove define.
8780 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8781 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8783 (x86_54_dwarf2_reg_to_regnum): Remove function.
8784 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8785 (x86_64_dwarf_reg_to_regnum): New function.
8786 (x86_64_register_name): Rewrite.
8787 (x86_64_register_raw_size): Remove function.
8788 (x86_64_register_byte_table): Remove variable.
8789 (x86_64_register_byte): Remove function.
8790 (x86_64_register_virtual_type): Remove function.
8791 (x86_64_register_type): New function.
8792 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8793 x86_64_register_convert_to_raw): Remove functions.
8794 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8795 (x86_64_use_struct_convention): Make static. Adjust for renamed
8797 (x86_64_frame_init_saved_regs): Remove function.
8798 (x86_64_push_arguments): Make static. Change to accept a regcache
8800 (x86_64_store_return_value, x86_64_extract_return_value): Make
8801 static. Rewrite based on i386 counterparts.
8802 (x86_64_push_dummy_call): New function.
8803 (X86_64_NUM_SAVED_REGS): New define.
8804 (x86_64_register_number): Remove function.
8805 (x86_64_store_struct_return): Remove function.
8806 (x86_64_frameless_function_invocation,
8807 x86_64_function_has_prologue): Remove functions.
8808 (PROLOG_BUFSIZE): Remove define.
8809 (struct x86_64_frame_cache): New structure.
8810 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8811 x86_64_frame_cache, x86_64_frame_this_id,
8812 x86_64_frame_prev_register, x86_64_frame_p,
8813 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8814 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8816 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8818 (x86_64_skip_prologue): Rewrite in terms of
8819 x86_64_analyze_prologue.
8820 (x86_64_frame_base_address): New function.
8821 (x86_64_frame_base): New variable.
8822 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8823 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8824 set deprecated_fp_regnum, deprecated_register_size,
8825 deprecated_register_bytes, register_raw_size, register_byte,
8826 register_virtual_type, register_convertiable,
8827 register_convert_to_virtual, convert_to_raw,
8828 deprecated_get_saved_register, deprecated_target_read_fp,
8829 deprecated_push_arguments, deprecated_push_return_address,
8830 deprecated_pop_frame, deprecated_store_struct_return,
8831 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8832 frameless_function_invocation, deprecated_frame_saved_pc,
8833 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8834 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8835 deprecated_init_frame_pc and virtual_frame_pointer. Call
8836 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8837 and x86_64_frame_p. Call frame_base_set_default to register
8839 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8840 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8841 (_initialize_x86_64_tdep): Remove function.
8842 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8843 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8844 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8846 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8847 (x86_64_linux_sigcontext_addr): Rewrite.
8848 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8849 x86_64_linux_frame_saved_pc): Remove functions.
8850 (x86_64_linux_pc_in_sigtramp): Renamed from
8851 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8853 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8855 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8856 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8857 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8858 (x86_64_regmap): Rename to regmap.
8859 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8861 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8863 (x86_64_fxsave_offset): Remove function.
8864 (supply_fpregset): Simply call x86_64_supply_fxsave.
8865 (fill_fpregset): Simply call x86_64_fill_fxsave.
8866 (fetch_inferior_registers, store_inferior_registers): Avoid
8867 asignment in if-statement.
8868 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8869 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8870 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8871 (fetch_core_registers): Remove function.
8872 (linux_elf_core_fns): Remove.
8873 (offsetoff): Don't define.
8874 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8875 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8876 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8878 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8879 protection against multiple includes instead of NM_X86_64_h. Add
8880 various comments. Include "config/nm-linux.h". Don't include
8882 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8883 GET_THREAD_SIGNALS): Remove defines.
8884 (x86_64_register_u_addr, kernel_u_size,
8885 lin_thread_get_thread_signals): Remove prototypes.
8886 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8887 [HAVE_LINK_H]: Don't include "solib.h".
8888 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8889 * config/i386/tm-x86-64linux.h: Fix comments.
8890 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8891 x86-64-tdep.o): Update dependencies.
8893 2003-05-30 Andrew Cagney <cagney@redhat.com>
8895 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8896 Change parameter type to a "struct regcache *".
8898 * gdbarch.sh: Regardless of the multi-arch level, always define
8899 the macro when not already defined.
8900 * gdbarch.h, gdbarch.c: Re-generate.
8902 2003-05-30 Richard Henderson <rth@redhat.com>
8904 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8905 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8906 (alpha_mdebug_frame_this_id): Likewise.
8907 (alpha_mdebug_frame_prev_register): Likewise.
8908 (alpha_mdebug_frame_base_address): Likewise.
8909 (alpha_mdebug_frame_locals_address): Likewise.
8910 (alpha_mdebug_frame_args_address): Likewise.
8911 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8912 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8913 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8915 (alpha_heuristic_frame_this_id): Make static.
8916 (alpha_heuristic_frame_prev_register): Likewise.
8917 (alpha_heuristic_frame_base_address): Likewise.
8918 * alpha-tdep.h: Update.
8920 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8922 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8923 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8925 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8926 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8927 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8928 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8929 I386_ST0_REGNUM): New defines.
8930 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8931 codestream_get): Remove define.
8932 (codestream_next_addr, condestream_addr, condestream_buf,
8933 codestream_off, codestream_cnt): Remove variables.
8934 (codestream_fill, codestream_seek, codestream_read): Remove
8936 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8938 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8939 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8940 i386_frame_saved_pc, i386_saved_pc_after_call,
8941 i386_frame_num_args, i386_frame_init_saved_regs,
8942 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8943 i386_push_arguments): Remove functions.
8944 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8945 functionality. Use i386_analyze_prologue instead of
8946 i386_get_frame_setup.
8947 (I386_NUM_SAVED_REGS): New define.
8948 (struct i386_frame_cache): New structure.
8949 (i386_alloc_frame_cache, i386_analyze_struct_return,
8950 i386_skip_probe, i386_analyze_frame_setup,
8951 i386_analyze_register_saves, i386_analyze_prologue,
8952 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8953 i386_frame_prev_register, i386_sigtramp_frame_cache,
8954 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8955 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8956 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8958 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8960 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8961 I386_EAX_REGNUM and I386_EDX_REGNUM.
8962 (i386_extract_return_value, i386_store_return_value): Use
8963 I386_ST0_REGNUM where appropriate.
8964 (i386_extract_struct_value_address): Rewrite to use extract_address.
8965 (i386_svr4_pc_in_sigtramp): Add comment.
8966 (i386_svr4_sigcontext_addr): Rewrite.
8967 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8969 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8970 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8971 of new defines. Set push_dummy_call, don't set
8972 deprecated_push_arguments, deprecated_push_return_address,
8973 deprecated_pop_frame. Don't set parm_boundary. Don't set
8974 deprecated_frame_chain, deprecated_frame_saved_pc,
8975 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8976 save_dummy_frame_tos, unwind_pc. Call
8977 frame_unwind_append_predicate and frame_base_set_default. Don't
8978 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8979 Don't set frameless_function_invocation. Don't set
8980 deprecated_register_bytes, deprecated_register_size,
8981 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8982 * i386-linux-tdep.c: Fix formatting in some comments.
8983 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8984 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8985 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8986 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8987 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8988 redundant parentheses.
8989 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8990 (i386_linux_sigcontext_addr): Use it. Rewrite.
8991 (find_minsym_and_objfile): Change name of second argument.
8992 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8993 changed. Use frame_pc_unwind instead of
8994 DEPRECATED_SAVED_PC_AFTER_CALL.
8995 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8996 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8997 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8999 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
9001 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
9002 (_initialize_i386_cygwin_tdep): New prototype.
9003 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
9004 deprecated_frame_chain_valid.
9005 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
9006 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
9007 Rely on the SVR4 defaults.
9008 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
9009 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
9011 2003-05-30 Andrew Cagney <cagney@redhat.com>
9013 * infcall.c (call_function_by_hand): Always call
9014 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
9016 2003-05-30 Richard Henderson <rth@redhat.com>
9018 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
9021 2003-05-29 Jim Blandy <jimb@redhat.com>
9023 Use gdbarch methods for solib stuff on PowerPC Linux.
9024 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
9025 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
9027 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
9028 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
9029 giving the same effect as the #definitions above.
9031 2003-05-29 Adam Fedor <fedor@gnu.org>
9033 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
9034 (find_implementation_from_class): Replace it with the standard
9035 case i.e. do nothing.
9037 2003-05-29 Richard Henderson <rth@redhat.com>
9039 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
9040 (alpha_linux_sigtramp_offset): Use it. Make static.
9041 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
9042 update for new frame model.
9043 * alpha-mdebug-tdep.c: New file.
9044 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
9045 (alpha_osf1_init_abi): Install it.
9046 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
9047 (linked_proc_desc_table): Remove.
9048 (alpha_frame_past_sigtramp_frame): Remove.
9049 (alpha_dynamic_sigtramp_offset): Remove.
9050 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
9051 (alpha_proc_desc_is_dyn_sigtramp): Remove.
9052 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
9053 (push_sigtramp_desc): Remove.
9054 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
9055 (alpha_cannot_store_register): Likewise.
9056 (alpha_sigcontext_addr): Remove.
9057 (alpha_find_saved_regs): Remove.
9058 (alpha_frame_init_saved_regs): Remove.
9059 (alpha_init_frame_pc_first): Remove.
9060 (read_next_frame_reg): Remove.
9061 (alpha_frame_saved_pc): Remove.
9062 (alpha_saved_pc_after_call): Remove.
9063 (temp_proc_desc, temp_saved_regs): Remove.
9064 (alpha_about_to_return): Remove.
9065 (cached_proc_desc): Remove.
9066 (alpha_frame_chain): Remove.
9067 (alpha_print_extra_frame_info): Remove.
9068 (alpha_init_extra_frame_info): Remove.
9069 (alpha_frame_locals_address): Remove.
9070 (alpha_frame_args_address): Remove.
9071 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
9072 (alpha_push_dummy_frame): Remove.
9073 (alpha_pop_frame): Remove.
9074 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
9075 (alpha_read_insn): New.
9076 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
9077 for different insn encodings.
9078 (alpha_in_lenient_prologue): Remove.
9079 (struct alpha_sigtramp_unwind_cache): New.
9080 (alpha_sigtramp_frame_unwind_cache): New.
9081 (alpha_sigtramp_register_address): New.
9082 (alpha_sigtramp_frame_this_id): New.
9083 (alpha_sigtramp_frame_prev_register): New.
9084 (alpha_sigtramp_frame_unwind): New.
9085 (alpha_sigtramp_frame_p): New.
9086 (struct alpha_heuristic_unwind_cache): New.
9087 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
9088 don't count nop insns that occur between functions.
9089 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
9090 heuristic_proc_desc, but without the mdebug wrapping.
9091 (alpha_heuristic_frame_this_id): New.
9092 (alpha_heuristic_frame_prev_register): New.
9093 (alpha_heuristic_frame_unwind): New.
9094 (alpha_heuristic_frame_p): New.
9095 (alpha_heuristic_frame_base_address): New.
9096 (alpha_heuristic_frame_base): New.
9097 (alpha_unwind_dummy_id): New.
9098 (alpha_unwind_pc): New.
9099 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
9100 frame related deprecated initializations; install replacements.
9101 (alpha_dump_tdep): Remove.
9102 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
9103 (alpha_read_insn, alpha_after_prologue,
9104 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
9105 alpha_heuristic_frame_prev_register,
9106 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
9107 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
9108 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
9109 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
9111 2003-05-29 Andrew Cagney <cagney@redhat.com>
9113 * gdb_assert.h (gdb_assert_fail): Provide different definitions
9114 dependant on the availability of ASSERT_FUNCTION.
9115 (ASSERT_FUNCTION): Do not define when there is no function name.
9117 2003-05-29 Kevin Buettner <kevinb@redhat.com>
9119 From Jimi X <jimix@watson.ibm.com>:
9120 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
9122 2003-05-28 Jim Blandy <jimb@redhat.com>
9124 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
9125 argument to ptrace to int; the system headers should give it the
9126 right type, and pointers don't fit in ints on powerpc64-*-*.
9128 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
9130 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
9133 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
9135 * stabsread.c (dbx_lookup_type): Make static.
9137 (add_undefined_type): Ditto.
9138 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
9141 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
9143 * hpread.c (hpread_has_name): Make static.
9144 (hpread_psymtab_to_symtab): Ditto.
9145 (file_exists): Ditto.
9146 (hpread_call_pxdb): Ditto.
9147 (hpread_pxdb_needed): Ditto.
9148 (hpread_quick_traverse): Ditto.
9149 (hpread_get_header): Ditto.
9150 (hpread_get_lntt): Ditto.
9151 (hpread_get_slt): Ditto.
9154 2003-05-25 Andreas Schwab <schwab@suse.de>
9156 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
9157 stack_align and deprecated_extra_stack_alignment_needed.
9158 (m68k_stack_align): Delete.
9160 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
9161 (m68k_register_virtual_size): Likewise.
9162 (altos_skip_prologue): Remove obsolete function.
9163 (isi_frame_num_args): Likewise.
9164 (news_frame_num_args): Likewise.
9165 (m68k_fix_call_dummy): Make static.
9166 (m68k_push_dummy_frame): Likewise.
9167 (m68k_pop_frame): Likewise.
9168 (m68k_skip_prologue): Likewise.
9169 (m68k_frame_init_saved_regs): Likewise.
9170 (m68k_saved_pc_after_call): Likewise.
9171 (m68k_get_longjmp_target): Make multi-arch.
9172 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
9173 structure. Register m68k_get_longjmp_target if enabled.
9174 * m68k-tdep.h (struct gdbarch_tdep): Define.
9175 * config/m68k/tm-m68k.h: Don't include "regcache.h".
9177 * Makefile.in (config.status): Also depend on configure.tgt
9179 (m68klinux-tdep.o): Update dependencies.
9180 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
9181 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
9182 (M68K_LINUX_JB_PC): Define.
9183 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
9184 and take additional parameter.
9185 (m68k_linux_sigtramp_saved_pc): Update.
9186 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
9187 m68k_linux_pc_in_sigtramp, in_plt_section,
9188 find_solib_trampoline_target.
9189 * config/m68k/tm-linux.h: Don't include any tm headers.
9190 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
9191 (JB_ELEMENT_SIZE): Likewise.
9193 (GET_LONGJMP_TARGET): Likewise.
9194 (IN_SIGTRAMP): Likewise.
9195 (SVR4_SHARED_LIBS): Define this and include "solib.h".
9197 2003-05-25 Mark Kettenis <kettenis@gnu.org>
9199 * sparc-tdep.c (sparc32_do_push_arguments): New function.
9200 (sparc32_push_arguments): Re-implement by calling
9201 sparc32_do_push_arguments.
9203 2003-05-25 Mark Kettenis <kettenis@gnu.org>
9205 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
9206 SPARC_O1_REGNUM): New defines.
9207 (sparc32_extract_return_value): Rewrite to operate on a regcache.
9208 (sparc32_store_return_value): New function.
9209 (sparc_extract_struct_value_address): Rewrite to operate on a
9211 (sparc_gdbarch_init): Don't set
9212 deprecated_extract_struct_value_address. Set
9213 extract_struct_value_address instead. Don't set
9214 deprecated_extract_return_value and deprecated_store_return_value
9215 for 32-bit targets. Set extract_return_value and
9216 store_return_value instead.
9217 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
9218 DEPRECATED_EXTRACT_RETURN_VALUE,
9219 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9220 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9221 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9222 (sparc_store_return_value): Remove prototype.
9223 (sparc32_store_return_value): New prototype.
9224 (sparc32_extract_return_value, sparc_extract_struct_value_address):
9227 2003-05-24 Mark Kettenis <kettenis@gnu.org>
9229 * sparcnbsd-tdep.c: Include "gdb_string.h".
9231 2003-05-23 Andrew Cagney <cagney@redhat.com>
9233 * p-valprint.c (pascal_val_print): Replace extract_address with
9234 the inline equivalent extract_unsigned_integer.
9235 * jv-valprint.c (java_value_print): Ditto.
9236 * ada-valprint.c (ada_val_print_1): Ditto.
9237 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9239 2003-05-23 Theodore A. Roth <troth@openavr.org>
9241 * blockframe.c (frameless_look_for_prologue): Remove unused
9242 after_prologue variable.
9244 2003-05-23 Mark Kettenis <kettenis@gnu.org>
9246 * blockframe.c (get_pc_function_start): Rewrite to avoid
9247 asignments in if-statements.
9249 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
9251 Committed by Elena Zannoni <ezannoni@redhat.com>.
9252 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
9253 files, don't relocate absolute symbols (and do use mst_abs).
9255 2003-05-23 Andrew Cagney <cagney@redhat.com>
9257 * objc-lang.c: Include "gdb_assert.h".
9258 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9259 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9260 (gdb_check, gdb_check_fatal): Delete functions.
9261 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9263 (parse_selector, parse_method, find_methods, find_imps): Ditto.
9264 * Makefile.in (objc-lang.o): Update dependencies.
9266 2003-05-22 Ian Lance Taylor <ian@airs.com>
9268 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9269 with fprintf_filtered, not fprintf_unfiltered.
9271 2003-05-22 Andrew Cagney <cagney@redhat.com>
9273 * stack.c (frame_info): Inline extract_address, replacing it with
9274 extract_unsigned_integer.
9275 * findvar.c (unsigned_pointer_to_address): Ditto.
9276 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9277 * dwarf2expr.c (dwarf2_read_address): Ditto.
9278 * frame.c (frame_pc_unwind): Update comment.
9279 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9281 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9283 * infptrace.c (detach): Call print_sys_errmsg rather than
9284 perror_with_name to issue warning message when errno is non-zero
9285 after calling ptrace detach.
9287 2003-05-21 J. Brobecker <brobecker@gnat.com>
9289 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9290 macro definitions from here...
9291 * hppa-tdep.c: ...to there.
9293 2003-05-20 Kevin Buettner <kevinb@redhat.com>
9295 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9296 register_ptrace_addr(). Fix all callers.
9298 2003-05-21 Andreas Schwab <schwab@suse.de>
9300 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9302 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9304 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9305 (_initialize_m68k_linux_tdep): New function.
9306 (m68k_linux_frame_saved_pc): Make static.
9307 (m68k_linux_extract_return_value): Likewise.
9308 (m68k_linux_store_return_value): Likewise.
9309 (m68k_linux_extract_struct_value_address): Likewise.
9310 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9312 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9313 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9314 (DEPRECATED_FRAME_SAVED_PC): Remove.
9316 2003-05-20 Kris Warkentin <kewarken@qnx.com>
9318 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9319 regset numbering rather than our own.
9321 2003-05-19 David Carlton <carlton@bactrian.org>
9323 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9325 2003-05-19 David Carlton <carlton@bactrian.org>
9327 Partial fix for PR c++/827.
9328 * cp-support.h: Include symtab.h.
9329 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9330 * cp-namespace.c: Update contributors.
9331 (cp_lookup_symbol_nonlocal): New.
9332 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9333 (lookup_symbol_file): Ditto.
9334 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9335 * block.h: Declare block_scope, block_using, block_global_block.
9336 * block.c (block_scope): New.
9337 (block_using, block_global_block): Ditto.
9338 * Makefile.in (cp_support_h): Depend on symtab_h.
9339 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9341 2003-05-19 David Carlton <carlton@bactrian.org>
9343 * language.h (struct language_defn): Add 'la_value_of_this'
9344 and 'la_lookup_symbol_nonlocal' members.
9345 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9346 lookup_symbol_static, lookup_symbol_global,
9347 lookup_symbol_aux_block.
9348 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9349 if we should search fields of this and how to do static/global
9351 (lookup_symbol_aux_block): Make extern.
9352 (basic_lookup_symbol_nonlocal): New.
9353 (lookup_symbol_static, lookup_symbol_global): Ditto.
9354 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9355 'la_lookup_symbol_nonlocal' members.
9356 * c-lang.c (c_language_defn, cplus_language_defn)
9357 (asm_language_defn, minimal_language_defn): Ditto.
9358 * jv-lang.c (java_language_defn): Ditto.
9359 * language.c (unknown_language_defn, auto_language_defn)
9360 (local_language_defn): Ditto.
9361 * m2-lang.c (m2_language_defn): Ditto.
9362 * objc-lang.c (objc_language_defn): Ditto.
9363 * scm-lang.c (scm_language_defn): Ditto.
9364 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9365 * p-lang.c (pascal_language_defn): Ditto for both.
9366 * Makefile.in (f-lang.o): Depend on value_h.
9369 2003-05-19 David Carlton <carlton@bactrian.org>
9371 * block.h: Declare block_static_block.
9372 * block.c (block_static_block): New.
9373 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9374 lookup_symbol_aux_local, calling block_static_block instead.
9375 (lookup_symbol_aux_local): Delete 'static_block' argument.
9377 2003-05-19 David Carlton <carlton@bactrian.org>
9379 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9381 2003-05-19 Michal Ludvig <mludvig@suse.cz>
9383 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9384 register numbers mapping.
9386 2003-05-18 Adam Fedor <fedor@gnu.org>
9388 * symtab.c (completion_list_objc_symbol): New function.
9389 (make_symbol_completion_list): Use it to add ObjC symbols
9390 when looking though the list.
9391 (language_search_unquoted_string): New function.
9392 (make_file_symbol_completion_list): Use it.
9394 2003-05-18 Andreas Schwab <schwab@suse.de>
9396 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9398 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9399 as m68k_linux_extract_return_value.
9400 (DEPRECATED_STORE_RETURN_VALUE): Define as
9401 m68k_linux_store_return_value.
9402 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9403 m68k_linux_extract_struct_value_address.
9404 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9405 get_next_frame, get_frame_base, get_frame_pc.
9406 (m68k_linux_frame_saved_pc): Use get_frame_base.
9407 (m68k_linux_extract_return_value): New function.
9408 (m68k_linux_store_return_value): New function.
9409 (m68k_linux_extract_struct_value_address): New function.
9410 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9412 * c-exp.y (typebase): Remove duplicate occurence of
9413 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
9414 of lookup_signed_typename.
9416 2003-05-18 Mark Kettenis <kettenis@gnu.org>
9418 * dwarf2loc.c (find_location_expression): Change type of second
9419 argument to `size_t *'.
9420 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9423 2003-05-18 David Carlton <carlton@bactrian.org>
9425 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9426 'linkage_name'. Add comment.
9427 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9429 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9430 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9431 (lookup_block_symbol): Ditto.
9433 2003-05-16 Andrew Cagney <cagney@redhat.com>
9435 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9436 * gdbarch.h, gdbarch.c: Re-generate.
9437 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9438 * TODO (REGISTER_BYTES): Delete reference.
9439 * alpha-tdep.c (alpha_gdbarch_init): Update.
9440 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9441 * x86-64-tdep.c (x86_64_init_abi): Update.
9442 * vax-tdep.c (vax_gdbarch_init): Update.
9443 * v850-tdep.c (v850_gdbarch_init): Update.
9444 * sparc-tdep.c (sparc_gdbarch_init): Update.
9445 * sh-tdep.c (sh_gdbarch_init): Update.
9446 * s390-tdep.c (s390_gdbarch_init): Update.
9447 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9448 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9449 (ns32k_gdbarch_init_32382): Update.
9450 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9451 * mcore-tdep.c (mcore_gdbarch_init): Update.
9452 * m68k-tdep.c (m68k_gdbarch_init): Update.
9453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9454 * ia64-tdep.c (ia64_gdbarch_init): Update.
9455 * i386-tdep.c (i386_gdbarch_init): Update.
9456 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9457 * hppa-tdep.c (hppa_gdbarch_init): Update.
9458 * h8300-tdep.c (h8300_gdbarch_init): Update.
9459 * frv-tdep.c (frv_gdbarch_init): Update.
9460 * cris-tdep.c (cris_gdbarch_init): Update.
9461 * avr-tdep.c (avr_gdbarch_init): Update.
9462 * arm-tdep.c (arm_gdbarch_init): Update.
9463 * sparc-tdep.c (sparc_pop_frame): Update.
9464 * rs6000-tdep.c (rs6000_pop_frame): Update.
9465 * remote.c (init_remote_state): Update.
9466 (remote_prepare_to_store): Update.
9467 * remote-vx.c (vx_prepare_to_store): Update.
9468 * remote-sds.c (sds_fetch_registers): Update.
9469 (sds_prepare_to_store): Update.
9470 * remote-array.c: Update.
9471 * regcache.c (init_legacy_regcache_descr): Update.
9472 (init_regcache_descr): Update.
9473 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9474 (mips_o64_extract_return_value): Update.
9475 * irix5-nat.c (fetch_core_registers): Update.
9476 * irix4-nat.c (fetch_core_registers): Update.
9477 * i386-tdep.h: Update.
9478 * hppa-tdep.c (pa_do_registers_info): Update.
9479 (pa_do_strcat_registers_info): Update.
9480 * cris-tdep.c (cris_register_bytes_ok): Update.
9481 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9482 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9483 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9484 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9485 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9486 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9487 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9488 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9489 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9490 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9491 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9492 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9493 (REGISTER_BYTES_OK): Update.
9494 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9495 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9497 2003-05-16 Ian Lance Taylor <ian@airs.com>
9499 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9500 (vax_print_insn, print_insn_arg): Remove static functions.
9501 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9502 print_insn_vax from opcodes library.
9503 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9505 2003-05-15 Andrew Cagney <cagney@redhat.com>
9507 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9508 * target.h (memory_breakpoint_from_pc): Delete declaration.
9509 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9510 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9511 * monitor.c (monitor_insert_breakpoint): Use
9512 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9513 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9514 * gdbarch.h, gdbarch.c: Re-generate.
9515 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9516 (sparc_gdbarch_init): Set breakpoint_from_pc to
9517 sparc_breakpoint_from_pc.
9518 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9519 (BREAKPOINT_FROM_PC): Define.
9520 (sparc_breakpoint_from_pc): Declare.
9521 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9522 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9523 (BREAKPOINT_FROM_PC): Define.
9524 (BREAKPOINT): Delete macro.
9525 * target.h: Update comment.
9526 * s390-tdep.c (s390_gdbarch_init): Update comments.
9527 * remote.c: Update comments.
9528 * remote-mips.c: Update comments.
9529 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9530 * mem-break.c: Update comment.
9531 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9532 (ia64_memory_insert_breakpoint): Update.
9533 * config/sparc/tm-sparc.h: Update comment.
9534 * config/pa/tm-hppa64.h: Update comment.
9535 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9536 (rs6000_breakpoint_from_pc): Update.
9537 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9538 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9539 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9540 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9541 (mips_breakpoint_from_pc): Update.
9542 (mips_dump_tdep): Update.
9544 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9545 * minsyms.c (lookup_minimal_symbol): Inline
9546 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9548 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9549 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9550 * p-lang.c (pascal_printstr): Ditto.
9551 * objc-lang.c (objc_printstr): Ditto.
9552 * m2-lang.c (m2_printstr): Ditto.
9553 * jv-valprint.c (java_print_value_fields): Ditto.
9554 * f-lang.c (f_printstr): Ditto.
9555 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9556 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9557 for repeat_count_threshold.
9558 * Makefile.in (cp-valprint.o): Update dependencies.
9560 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
9562 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9563 (examine_prologue): Support looking through leaf functions, knowing
9564 they start with mov r2,r12. Support skipping over indirect stores
9565 of the input registers. Upon hitting a non-nop branch instruction
9566 or predicated instruction, bail out by setting lim_pc to the current
9567 pc value in the loop. At the end, if the lim_pc value is still
9568 beyond our calculated value and we have trust_limit set,
9569 use the lim_pc value.
9571 2003-05-15 Andrew Cagney <cagney@redhat.com>
9573 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9574 generic_find_dummy_frame.
9575 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9576 (deprecated_generic_find_dummy_frame): Update.
9577 (deprecated_read_register_dummy): Update.
9578 * frame.c (deprecated_generic_get_saved_register): Update.
9580 2003-05-15 Theodore A. Roth <troth@openavr.org>
9582 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9583 (avr_gdbarch_init): Set breakpoint_from_pc method.
9585 2003-05-15 Andrew Cagney <cagney@redhat.com>
9587 * regcache.c (build_regcache): Set deprecated_register_valid
9589 (deprecated_grub_regcache_for_register_valid): Delete function.
9590 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9593 2003-05-15 David Carlton <carlton@bactrian.org>
9595 Committed by Elena Zannoni <ezannoni@redhat.com>
9596 * symtab.c (lookup_symbol_aux): Delete calls to
9597 lookup_symbol_aux_minsyms.
9598 (lookup_symbol_aux_minsyms): Comment out function and
9599 prototype. Delete lookup by mangled name.
9601 2003-05-14 Kevin Buettner <kevinb@redhat.com>
9603 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9604 correctly indicate an empty stack and ``stack_allocated'' to the
9605 indicate the number of elements initially allocated.
9606 (dwarf_expr_grow_stack): Simplify method for computing new
9607 stack size. Don't loop infinitely if ``stack_len'' is zero.
9608 (execute_stack_op): Move ``ctx->in_reg'' initialization
9609 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9610 be used in conjuction with DW_OP_piece. Revise error message
9613 2003-05-14 Theodore A. Roth <troth@openavr.org>
9615 * MAINTAINERS: Update my email address.
9616 * avr-tdep.c: Ditto.
9618 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
9620 * symtab.h (enum domain_enum): Rename from namespace_enum.
9621 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9622 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9623 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9624 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9625 TYPES_NAMESPACE, METHODS_NAMESPACE.
9626 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9627 (struct symbol, struct partial_symbol): Rename field
9628 'namespace_enum namespace' to 'domain_enum domain'.
9629 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9630 Delete old define kludge for namespace.
9632 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9633 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9634 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9635 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9636 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9637 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9638 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9639 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9640 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9641 occurrences of the above.
9643 2003-05-14 Ian Lance Taylor <ian@airs.com>
9645 * Makefile.in (install-only): Use $(SHELL) when running
9648 2003-05-13 Ian Lance Taylor <ian@airs.com>
9650 * MAINTAINERS (write after approval): Add myself.
9652 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9653 second and third arguments.
9654 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9655 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9657 2003-05-13 Andrew Cagney <cagney@redhat.com>
9659 * defs.h (store_address): Delete declaration.
9660 findvar.c (store_address): Delete function.
9661 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9662 store_unsigned_integer.
9663 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9664 * v850-tdep.c (v850_push_arguments): Ditto.
9665 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9666 * sh-tdep.c (sh64_get_saved_register): Ditto.
9667 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9668 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9669 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9670 (mips_get_saved_register): Ditto.
9671 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9672 (find_func_descr, ia64_push_arguments): Ditto.
9673 * i386-tdep.c (i386_push_arguments): Ditto.
9674 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9675 * frv-tdep.c (frv_push_arguments): Ditto.
9676 * frame.c (legacy_saved_regs_prev_register): Ditto.
9677 (deprecated_generic_get_saved_register): Ditto.
9678 * findvar.c (unsigned_address_to_pointer): Ditto.
9679 * dwarf2read.c (dwarf2_const_value): Ditto.
9680 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9681 * alpha-tdep.c (alpha_push_arguments): Ditto.
9683 2003-05-12 J. Brobecker <brobecker@gnat.com>
9685 * NEWS: Mention that the hppa-hpux port has been partially
9686 multiarched (32bit ABIT only, so far).
9688 2003-05-11 Andrew Cagney <cagney@redhat.com>
9690 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9691 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9692 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9693 sim/testsuite/sim/arm/misaligned2.ms, and
9694 sim/testsuite/sim/arm/misaligned3.ms.
9695 * disasm.h (struct ui_file): Add opaque struct declaration.
9696 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9697 * frame.h (struct ui_file): Ditto.
9699 2003-05-11 Mark Kettenis <kettenis@gnu.org>
9701 * value.h: Pretty print.
9703 2003-05-10 Mark Kettenis <kettenis@gnu.org>
9705 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9707 2003-05-08 Andrew Cagney <cagney@redhat.com>
9709 * regcache.h (max_register_size): Delete declaration.
9710 * regcache.c (max_register_size): Delete function.
9711 (struct regcache_descr): Delete field "max_register_size".
9712 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9713 registers fit in MAX_REGISTER_SIZE.
9714 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9715 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9716 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9717 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9718 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9719 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9720 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9721 * dve3900-rom.c, hppa-tdep.c: Ditto.
9723 2003-05-08 David Carlton <carlton@math.stanford.edu>
9725 * valops.c (push_word): Fix typo.
9727 2003-05-08 Andrew Cagney <cagney@redhat.com>
9729 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9730 * gdbarch.h: Re-generate.
9731 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9732 (legacy_max_register_raw_size): Delete declaration.
9733 * regcache.c (legacy_max_register_raw_size): Delete function.
9734 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9735 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9736 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9737 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9738 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9739 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9740 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9741 * findvar.c, dwarf2cfi.c: Ditto.
9743 2003-05-08 Andrew Cagney <cagney@redhat.com>
9745 * mips-tdep.c (read_signed_register): New function, moved to here
9747 (read_signed_register_pid): Ditto.
9748 * regcache.c (read_signed_register_pid): Delete function, moved to
9750 (read_signed_register): Ditto.
9751 * regcache.h (read_signed_register): Delete declaration.
9752 (read_signed_register_pid): Delete declaration.
9754 2003-05-08 Andrew Cagney <cagney@redhat.com>
9756 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9757 * gdbarch.h: Re-generate.
9758 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9759 (legacy_max_register_virtual_size): Delete declaration.
9760 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9761 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9762 * tracepoint.c (memrange_sortmerge): Ditto.
9763 * sparc-tdep.c (sparc_print_registers): Ditto.
9764 * regcache.c (legacy_max_register_virtual_size): Delete function.
9766 2002-05-08 J. Brobecker <brobecker@gnat.com>
9768 * fork-child.c (escape_bang_in_quoted_argument): New function.
9769 (fork_inferior): Escape '!' characters in quoted arguments
9772 2003-05-08 J. Brobecker <brobecker@gnat.com>
9774 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9775 the language of the CU is not currently supported by GDB.
9777 2003-05-08 J. Brobecker <brobecker@gnat.com>
9779 * defs.h (language): Add language_minimal enum value.
9780 * c-lang.c (minimal_language_defn): New language definition.
9781 (_initialize_c_language): Add the new minimal language to the list
9782 of languages known to GDB.
9784 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9786 * frame.c (get_frame_type): Don't attempt to lazily initialize
9787 frame's unwinder for legacy frames.
9789 2003-05-07 Andrew Cagney <cagney@redhat.com>
9791 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9792 and "regcache" parameters.
9793 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9795 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9797 * dwarf2read.c (dwarf_decode_lines): Only use output of
9798 check_cu_functions() when calling record_line(). Do not update
9799 the current address.
9801 2003-05-07 Andrew Cagney <cagney@redhat.com>
9803 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9806 2003-05-07 Jim Blandy <jimb@redhat.com>
9808 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9809 'maint info symtabs' and 'maint info psymtabs'.
9810 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9811 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9812 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9813 Declarations updated.
9814 * maint.c (maintenance_list_command): Delete.
9815 (_initialize_maint_cmds): Update calls to add_cmd.
9816 * gdbcmd.h (maintenancelistlist): Delete declaration.
9817 * cli/cli-cmds.c (maintenancelistlist): Delete.
9818 (init_cmd_lists): Don't initialize it.
9819 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9821 2003-05-07 Andrew Cagney <cagney@redhat.com>
9823 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9825 (d10v_print_registers_info): Update.
9826 (d10v_dmap_register, d10v_imap_register): Delete functions.
9827 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9828 and "imap_register".
9829 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9830 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9831 * arch-utils.c (generic_remote_translate_xfer_address): Add
9832 "regcache" and "gdbarch" parameters.
9833 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9834 parameter. Change class to multi-arch.
9835 * gdbarch.h, gdbarch.c: Re-generate.
9836 * remote.c (remote_xfer_memory): Use
9837 gdbarch_remote_translate_xfer_address.
9839 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9841 * infrun.c (prev_pc): Move declaration ahead of proceed().
9842 (proceed): Refresh prev_pc value before resuming.
9843 (stop_stepping): Remove code to refresh prev_pc.
9845 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9847 * nto-tdep.c: Removed stray comment.
9849 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9851 * i386-nto-tdep.c: Fix old K&R function definitions.
9852 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9853 Also change add_show_from_set() call to add_setshow_cmd().
9854 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9856 2003-05-05 Andrew Cagney <cagney@redhat.com>
9858 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9859 (fprint_dummy_frames): New function.
9860 (maintenance_print_dummy_frames): New function.
9861 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9862 * frame.c (fprint_frame_id): Make global.
9863 * frame.h (fprint_frame_id): Declare.
9864 * Makefile.in (dummy-frame.o): Update dependencies.
9866 2003-05-05 Andrew Cagney <cagney@redhat.com>
9868 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9869 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9870 SIZEOF_CALL_DUMMY_WORDS.
9871 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9872 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9873 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9874 CALL_DUMMY_BREAKPOINT_OFFSET.
9875 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9876 CALL_DUMMY_START_OFFSET.
9877 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9878 * gdbarch.h, gdbarch.c: Re-generate.
9879 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9880 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9881 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9882 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9883 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9884 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9885 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9886 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9887 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9888 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9889 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9890 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9891 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9892 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9893 * config/sparc/tm-sparc.h: Update.
9895 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9897 * configure.tgt: Add i[3456]86-*-nto*.
9898 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9899 * nto-tdep.c: New file. Neutrino target support routines.
9900 * nto-tdep.h: New file. Neutrino target header.
9901 * config/tm-qnxnto.h: New file.
9902 * config/i386/i386nto.mt: New file.
9903 * config/i386/tm-i386nto.h: New file.
9905 2003-05-04 Andrew Cagney <cagney@redhat.com>
9907 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9908 (load_infrun_state): Ditto.
9909 (struct thread_info): Drop "prev_func_name" field.
9910 * thread.c (load_infrun_state): Update.
9911 (save_infrun_state): Update.
9912 * infrun.c (prev_func_name): Delete variable.
9913 (init_wait_for_inferior): Do not clear prev_func_name.
9914 (stop_stepping, keep_going, context_switch): Do not swap
9916 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9917 instead of PC_IN_SIGTRAMP.
9919 2003-05-04 Andrew Cagney <cagney@redhat.com>
9921 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9922 REGISTER_BYTE with register_offset_hack.
9923 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9924 that REGISTER_BYTE is consistent with the regcache.
9925 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9926 * gdbarch.h, gdbarch.c: Regenerate.
9928 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9930 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9931 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9933 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9935 2003-05-03 J. Brobecker <brobecker@gnat.com>
9937 From Thierry Schneider <tpschneider1@yahoo.com>
9938 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9939 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9940 (mi-cmd-symbol.o): Add rule.
9942 2003-05-03 Andrew Cagney <cagney@redhat.com>
9944 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9945 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9946 * gdbarch.h, gdbarch.c: Re-generate.
9947 * d10v-tdep.c (d10v_push_dummy_code): New function.
9948 (d10v_gdbarch_init): Set push_dummy_code.
9949 * infcall.c (legacy_push_dummy_code): New function.
9950 (generic_push_dummy_code): New function.
9951 (push_dummy_code): New function.
9952 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9953 instead of dummy_addr, to push_dummy_call. Move call to
9954 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9956 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9958 2003-05-03 Andrew Cagney <cagney@redhat.com>
9960 * disasm.h (print_insn): Declare.
9961 * disasm.c (init_gdb_disassemble_info): New function.
9962 (gdb_disassembly): Call init_gdb_disassemble_info.
9963 (gdb_print_insn): New function.
9964 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9965 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9966 * mcore-tdep.c: Include "disasm.h"
9967 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9968 * d10v-tdep.c: Include "disasm.h".
9969 (display_trace): Call gdb_print_insn, instead of print_insn.
9970 (print_insn): Delete function.
9971 * printcmd.c: Include "disasm.h".
9972 (print_insn): Delete function.
9973 (print_formatted): Call gdb_print_insn, instead of print_insn.
9974 * Makefile.in (printcmd.o): Update dependencies.
9975 (mcore-tdep.o, d10v-tdep.o): Ditto.
9977 2003-05-02 Andrew Cagney <cagney@redhat.com>
9979 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9980 PC_REGNUM, re-indent.
9981 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9982 PC_REGNUM isn't set.
9984 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9985 * gdbarch.h, gdbarch.c: Re-generate.
9986 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9987 register_virtual_size, pc_regnum, or register_bytes.
9988 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9989 (d10v_register_type): Use D10V_PC_REGNUM.
9990 (d10v_print_registers_info, d10v_read_pc): Ditto.
9991 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9992 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9994 2003-05-02 David Carlton <carlton@bactrian.org>
9996 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9997 the name with mstrsave.
9999 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
10001 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
10002 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
10003 (host_charset_name, target_charset_name): New vars for use by
10005 (host_charset_enum, target_charset_enum): New enums for set/show
10007 (set_charset_sfunc, set_host_charset_sfunc,
10008 set_target_charset_sfunc): New functions.
10009 (set_host_charset, set_target_charset): Make static.
10010 (list_charsets, set_host_charset_command,
10011 set_target_charset_command): Delete functions.
10012 (show_charset_command): Rewrite as....
10013 (show_charset): Hook this up with the set/show command mechanism.
10014 (_initialize_charset): Change names of charsets to match the
10015 set/show enums. Use host_charset_name and target_charset_name.
10016 Use set/show mechanism for charset, host-charset, target-charset
10017 commands. Do not make 'show host-charset' and 'show
10018 target-charset' be aliases of 'show charset'.
10020 * charset.h (set_host_charset, set_target_charset): Don't export,
10021 they are not used outside the file.
10023 2003-05-01 Andrew Cagney <cagney@redhat.com>
10025 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
10026 (gdb_disassembly): Make "di" non static, always initialize and
10027 cleanup. Always use dis_asm_read_memory.
10028 (gdb_dis_asm_read_memory): Delete function.
10030 2003-05-01 Andrew Cagney <cagney@redhat.com>
10032 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
10033 (d10v_gdbarch_init): Set frame_align instead of stack_align.
10035 2003-04-30 Andrew Cagney <cagney@redhat.com>
10037 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
10038 "tm_print_insn_info".
10039 (TARGET_PRINT_INSN_INFO): Delete macro.
10040 (dis_asm_read_memory): Delete function declaration.
10041 (dis_asm_memory_error, dis_asm_print_address): Ditto.
10042 (tm_print_insn_info): Delete variable definition.
10043 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
10044 * gdbarch.h, gdbarch.c: Re-generate.
10045 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
10046 "deprecated_tm_print_insn_info".
10047 * mcore-tdep.c (mcore_dump_insn): Ditto.
10048 * mips-tdep.c (mips_gdbarch_init): Ditto.
10049 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
10050 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
10051 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
10052 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
10053 instead of TARGET_PRINT_INSN_INFO, add comment.
10054 * s390-tdep.c (s390_get_frame_info): Instead of
10055 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
10056 (s390_check_function_end, s390_is_sigreturn): Ditto.
10057 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
10058 (dis_asm_memory_error, dis_asm_print_address): Ditto.
10059 * disasm.c: Include "gdbcore.h".
10060 (_initialize_disasm): New function, initialize
10061 "deprecated_tm_print_insn_info".
10062 (deprecated_tm_print_insn_info): New variable.
10063 (dis_asm_read_memory): Moved from "corefile.c", made static.
10064 (dis_asm_print_address, dis_asm_memory_error): Ditto.
10065 * Makefile.in (disasm.o): Update dependencies.
10067 2003-04-30 Andrew Cagney <cagney@redhat.com>
10069 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
10071 2003-04-29 Adam Fedor <fedor@gnu.org>
10073 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
10074 * infcall.c (find_function_addr): Make non-static.
10075 * infcall.h (find_function_addr): Declare.
10076 * Makefile.in (eval.o): Update dependencies.
10078 2003-04-28 Adam Fedor <fedor@gnu.org>
10080 * symtab.c (symbol_find_demangled_name): Check for and demangle
10082 (symbol_init_demangled_name): Init for language_objc as well.
10084 2003-04-28 Andrew Cagney <cagney@redhat.com>
10086 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
10087 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
10088 * gdbarch.h, gdbarch.c: Re-generate.
10089 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
10090 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
10091 * inferior.h (deprecated_read_fp): Rename read_fp.
10092 (generic_target_read_fp): Delete declaration.
10093 * regcache.c (generic_target_read_fp): Delete function.
10094 (deprecated_read_fp): Replace read_fp, use
10095 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
10096 * d10v-tdep.c (d10v_read_fp): Delete function.
10097 (d10v_gdbarch_init): Do not set deprecated_read_fp.
10099 * sparc-tdep.c (sparc_gdbarch_init): Do not set
10100 deprecated_target_read_fp to generic_target_read_fp.
10101 * sh-tdep.c (sh_gdbarch_init): Ditto.
10102 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10104 * frv-tdep.c (frv_gdbarch_init): Ditto.
10106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
10107 deprecated_fp_regnum.
10108 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10109 * vax-tdep.c (vax_gdbarch_init): Ditto.
10110 * v850-tdep.c (v850_gdbarch_init): Ditto.
10111 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10112 * sh-tdep.c (sh_gdbarch_init): Ditto.
10113 * s390-tdep.c (s390_gdbarch_init): Ditto.
10114 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10115 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10116 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10117 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10119 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10120 * i386-tdep.c (i386_gdbarch_init): Ditto.
10121 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10122 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10123 * frv-tdep.c (frv_gdbarch_init): Ditto.
10124 * cris-tdep.c (cris_gdbarch_init): Ditto.
10125 * avr-tdep.c (avr_gdbarch_init): Ditto.
10126 * arm-tdep.c (arm_gdbarch_init): Ditto.
10127 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10129 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
10130 * v850-tdep.c (v850_gdbarch_init): Ditto.
10131 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10132 * sh-tdep.c (sh_gdbarch_init): Ditto.
10133 * s390-tdep.c (s390_gdbarch_init): Ditto.
10134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10136 * mips-tdep.c (mips_gdbarch_init): Ditto.
10137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10138 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10139 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10140 * frv-tdep.c (frv_gdbarch_init): Ditto.
10141 * avr-tdep.c (avr_gdbarch_init): Ditto.
10142 * arm-tdep.c (arm_gdbarch_init): Ditto.
10144 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
10145 DEPRECATED_FP_REGNUM.
10146 (vax_push_dummy_frame, vax_pop_frame): Ditto.
10147 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
10148 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10149 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
10150 (sparc32_register_virtual_type): Ditto.
10151 * sh-tdep.c (sh64_frame_chain): Ditto.
10152 (sh64_get_saved_register, sh64_pop_frame): Ditto.
10153 (sh_nofp_frame_init_saved_regs): Ditto.
10154 (sh64_nofp_frame_init_saved_regs): Ditto.
10155 (sh_fp_frame_init_saved_regs): Ditto.
10156 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10157 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10158 * procfs.c (procfs_fetch_registers): Ditto.
10159 (procfs_store_registers): Ditto.
10160 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
10161 (store_inferior_registers, fetch_core_registers): Ditto.
10162 (fetch_kcore_registers, clear_regs): Ditto.
10163 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
10164 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
10165 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
10166 * nlm/i386.c (do_status): Ditto.
10167 * mipsv4-nat.c (supply_gregset): Ditto.
10168 * mips-tdep.c: Ditto for comments.
10169 * mips-nat.c (fetch_inferior_registers): Ditto.
10170 (store_inferior_registers, fetch_core_registers): Ditto.
10171 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
10172 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
10173 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
10174 (i386_do_pop_frame, i386_register_type): Ditto.
10175 * hppa-tdep.c (hppa_frame_chain): Ditto.
10176 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
10177 (hppa_pop_frame, hppa_read_fp): Ditto.
10178 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
10179 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
10180 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
10181 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
10182 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
10183 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
10184 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
10185 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
10186 * blockframe.c: Ditto for comments.
10187 * arch-utils.h: Ditto for comments.
10188 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
10189 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
10190 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
10191 * alpha-tdep.h: Ditto for comments.
10192 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
10193 (alpha_cannot_store_register): Ditto.
10194 (alpha_push_dummy_frame): Ditto.
10195 * alpha-nat.c (supply_gregset): Ditto.
10197 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
10198 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
10199 * config/sparc/tm-sparc.h: Update comment.
10201 * hppa-tdep.c (hppa_init_extra_frame_info): Use
10202 deprecated_read_fp instead of TARGET_READ_FP.
10203 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
10204 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
10205 * sparc-tdep.c (sparc_init_extra_frame_info): Use
10206 deprecated_read_fp instead of read_fp.
10207 * s390-tdep.c (s390_push_arguments): Ditto.
10208 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10209 * frame.h: Ditto in comments.
10210 * frame.c (legacy_get_prev_frame): Ditto.
10211 * dummy-frame.c (dummy_frame_this_id): Ditto.
10212 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10214 2003-04-28 Andrew Cagney <cagney@redhat.com>
10216 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10217 * gdbarch.h, gdbarch.c: Re-generate.
10218 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10219 * vax-tdep.c (_initialize_vax_tdep): Update.
10220 * v850-tdep.c (_initialize_v850_tdep): Update.
10221 * sparc-tdep.c (_initialize_sparc_tdep): Update.
10222 * s390-tdep.c (_initialize_s390_tdep): Update.
10223 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10224 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10225 * mips-tdep.c (_initialize_mips_tdep): Update.
10226 * mcore-tdep.c (_initialize_mcore_tdep): Update.
10227 * m68k-tdep.c (_initialize_m68k_tdep): Update.
10228 * ia64-tdep.c (_initialize_ia64_tdep): Update.
10229 * hppa-tdep.c (_initialize_hppa_tdep): Update.
10230 * h8300-tdep.c (_initialize_h8300_tdep): Update.
10231 * frv-tdep.c (_initialize_frv_tdep): Update.
10232 * cris-tdep.c (cris_delayed_get_disassembler): Update.
10233 (_initialize_cris_tdep): Update.
10234 * arch-utils.c (legacy_print_insn): Update.
10235 * alpha-tdep.c (_initialize_alpha_tdep): Update.
10237 2003-04-26 Adam Fedor <fedor@gnu.org>
10239 * linespec.c (decode_objc): New function to decode ObjC calls
10240 (decode_line_1): Check for ObjC calls (using decode_objc)
10241 * Makefile (linespec.o): Update dependencies.
10243 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
10245 * breakpoint.h (struct breakpoint_ops): New.
10246 (struct breakpoint): Add ops member.
10248 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10249 (mention): Use new breakpoint ops member.
10250 (set_raw_breakpoint): Initialize ops field to NULL.
10251 (print_exception_catchpoint, print_one_exception_catchpoint)
10252 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10253 (gnu_v3_exception_catchpoint_ops): New.
10254 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10256 2003-04-25 Adam Fedor <fedor@gnu.org>
10258 * Makefile.in (COMMON_OBS): Add objc-lang.o
10260 2003-04-25 Andrew Cagney <cagney@redhat.com>
10262 * d10v-tdep.c (print_insn): Delete function.
10263 (display_trace): Use TARGET_PRINT_INSN.
10264 (_initialize_d10v_tdep): Do not set tm_print_insn.
10265 (d10v_gdbarch_init): Set print_insn.
10267 2003-04-25 Andrew Cagney <cagney@redhat.com>
10269 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10270 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10271 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10272 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10273 (nr_dmap_regs, a0_regnum): ... new functions.
10274 (d10v_print_registers_info): Use a0_regnum, use register_size.
10275 (d10v_register_byte): Delete function.
10276 (d10v_register_raw_size): Delete function.
10277 (d10v_register_type): Use a0_regnum.
10278 (d10v_print_registers_info): Use a0_regnum.
10279 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10280 (d10v_gdbarch_init): Do not set register_byte or
10281 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10282 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10284 (trace_command): Use XCALLOC.
10285 (print_insn): Delete reference to tm_print_insn.
10286 (saved_regs_unwinder): Use store_unsigned_integer instead of
10288 * frame.h (FRAME_OBSTACK_CALLOC): Define
10290 2003-04-25 David Carlton <carlton@bactrian.org>
10292 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10294 2003-04-24 Adam Fedor <fedor@gnu.org>
10296 * objc-lang.c: Include "valprint.h"
10297 * Makefile.in (objc-lang.o): Update dependencies.
10299 2003-04-24 Adam Fedor <fedor@gnu.org>
10301 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
10302 architecture dependant compilation and mark as unimplemented
10303 (until they get put in the gdbarch vector).
10305 2003-04-23 David Carlton <carlton@bactrian.org>
10307 * cp-support.c (cp_find_first_component): Accept 'operator' in
10310 2003-04-23 Andrew Cagney <cagney@redhat.com>
10312 * infcall.c (call_function_by_hand): Eliminate redundant
10313 indentation. Move "saved_async" and "old_cleanups" to where they
10316 2003-04-23 Andrew Cagney <cagney@redhat.com>
10318 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10319 and "buffer". Move the "name" code to where it is needed.
10321 2003-04-23 Andrew Cagney <cagney@redhat.com>
10323 * infcall.c (call_function_by_hand): Move variables "start_sp",
10324 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10325 code to ON_STACK switch branch.
10327 2003-04-23 Andrew Cagney <cagney@redhat.com>
10329 * infcall.c (call_function_by_hand): Make declaration of "i",
10330 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10333 2003-04-23 Andrew Cagney <cagney@redhat.com>
10335 * infcall.c (call_function_by_hand): Delete variable
10336 "n_method_args". Localize "param_type"'s declaration to the loop
10337 that it is used. Reinstate code assigning to said variable -
10338 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10339 Rationalize code using "param_type".
10341 2003-04-22 Andrew Cagney <cagney@redhat.com>
10343 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10344 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10345 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10346 to DEPRECATED_PUSH_RETURN_ADDRESS.
10348 2003-04-22 Kevin Buettner <kevinb@redhat.com>
10350 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10351 on the DWARF2 register number prior to fetching a register.
10353 2003-04-22 J. Brobecker <brobecker@gnat.com>
10355 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10356 Update all the tests using SOFT_FLOAT considering the fact that
10357 this macro was always set to 0.
10358 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10359 considering the fact that this macro was always set to 0.
10360 * hppa-tdep.h (hppa_store_return_value): Likewise.
10361 (hppa_extract_return_value): Likewise.
10363 2003-04-22 J. Brobecker <brobecker@gnat.com>
10365 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10366 the hppa-pro target only.
10368 2003-04-21 J. Brobecker <brobecker@gnat.com>
10370 Ongoing multi-arch conversion effort for HP/UX:
10371 * config/pa/tm-hppa.h: Move all macro that are no longer
10372 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10373 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10375 2003-04-21 J. Brobecker <brobecker@gnat.com>
10377 * config/pa/tm-hppa.h: Obsolete a section that was only used
10380 2003-04-21 J. Brobecker <brobecker@gnat.com>
10382 Ongoing multi-arch conversion for HP/UX.
10383 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10384 if already defined (allows hppa64 to stay non-multiarched for now).
10385 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10387 2003-04-21 Andrew Cagney <cagney@redhat.com>
10389 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10391 2003-04-21 Andrew Cagney <cagney@redhat.com>
10393 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10394 "i386_num_mmx_regs".
10396 2003-04-21 Andrew Cagney <cagney@redhat.com>
10398 * infcall.c: New file.
10399 * infcall.h: New file.
10400 * valarith.c: Include "infcall.h".
10401 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10402 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10403 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10404 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10405 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10406 (SFILES): Add "infcall.c"
10407 (COMMON_OBS): Add "infcall.o".
10408 (infcall.o): Specify dependencies.
10409 * value.h (call_function_by_hand): Delete declaration.
10410 * inferior.h (run_stack_dummy): Delete declaration.
10411 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10412 (run_stack_dummy): Move to "infcall.c", merged into
10413 call_function_by_hand.
10414 * valops.c (call_function_by_hand): Moved to "infcall.c".
10415 (find_function_addr, value_arg_coerce): Ditto.
10416 (unwindonsignal_p, coerce_float_to_double): Ditto.
10417 (_initialize_valops): Move "set/show coerce-float-to-double", and
10418 "set/show unwindonsignal" commands to "infcall.c".
10419 * v850-tdep.c, target.h: Update comments.
10420 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10421 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10422 (sh64_init_extra_frame_info): Update comments.
10423 * mn10300-tdep.c: Update comments.
10424 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10425 * config/sparc/tm-sparc.h: Update comments.
10426 * breakpoint.h: Update comments.
10427 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10428 * arm-tdep.c: Update comment.
10430 2003-04-19 Mark Kettenis <kettenis@gnu.org>
10432 * i386-tdep.c (i386_num_register_names): New variable.
10433 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10434 (MM0_REGNUM): Remove redundant parentheses in define.
10435 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10436 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10437 i386_mxcsr_regnum_p): Remove redundant parentheses.
10438 (i386_register_name): Use i386_num_register_names.
10440 * i386-tdep.c (i386_extract_return_value,
10441 i386_store_return_value): Correct check for availability of
10442 floating-point registers.
10444 * i386-tdep.c (i386_frame_num_args): Remove function.
10445 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10447 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10448 mmx_regnum_to_fp_regnum. Adjust all callers.
10450 * i386-tdep.c (i386_get_longjmp_target): Use
10451 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10452 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10455 2003-04-19 Mark Kettenis <kettenis@gnu.org>
10457 * core-regset.c: Update comments to reflect reality. Re-order
10459 (fetch_core_registers): Use switch instead of if. Remove
10460 redundant prototype.
10462 2003-04-18 Jim Blandy <jimb@redhat.com>
10464 * s390-tdep.c (s390_frame_align): New function.
10465 (s390_gdbarch_init): Register it with the gdbarch object.
10467 2003-04-17 Richard Henderson <rth@redhat.com>
10469 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10471 2003-04-17 Michael Snyder <msnyder@redhat.com>
10472 Karen Bennet <bennet@redhat.com>
10474 Committed by Elena Zannoni <ezannoni@redhat.com>
10475 * gdb_gcore.sh: New script to create a core dump of a process.
10477 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
10479 * values.c (value_being_returned): Don't fetch the return
10480 value if the return type is void.
10482 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10484 * thread-db.c: Reindented.
10486 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10488 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10489 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
10516 2003-04-16 Kevin Buettner <kevinb@redhat.com>
10518 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
10519 the size of ``long double'' to 16, instead of 8.
10521 2003-04-16 Mark Kettenis <kettenis@gnu.org>
10523 * i386-linux-nat.c: Add some whitespace to make things more
10525 (fetch_register, store_register, fetch_inferior_registers,
10526 store_inferior_registers): Get rid of assignment in if-statement.
10527 (store_register): Fix typo in error message.
10529 2003-04-16 Andrew Cagney <cagney@redhat.com>
10531 * utils.c (xmmalloc): Always allocate something, matches
10532 libiberty/xmalloc's semantics.
10533 (xmrealloc, xmcalloc): Ditto.
10535 2003-04-16 Andrew Cagney <cagney@redhat.com>
10537 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10539 (get_frame_type): Initialize unwind and type when needed.
10540 (get_frame_id, frame_register_unwind): Ditto.
10542 2003-04-16 Andrew Cagney <cagney@redhat.com>
10544 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10546 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10547 * sparcl-stub.c: Obsolete file.
10548 * config/sparc/tm-sparclet.h: Obsolete file.
10549 * sparclet-stub.c: Obsolete file.
10550 * sparclet-rom.c: Obsolete file.
10551 * sparcl-tdep.c: Obsolete file.
10552 * config/sparc/tm-sparclite.h: Obsolete file.
10553 * config/sparc/sparclite.mt: Obsolete file.
10554 * config/sparc/sparclet.mt: Obsolete file.
10555 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10556 sparc86x-*-* obsolete.
10558 2003-04-15 David Carlton <carlton@math.stanford.edu>
10560 * Makefile.in (SFILES): Add cp-namespace.c.
10561 (COMMON_OBS): Add cp-namespace.o.
10562 (block.o): Depend on gdb_obstack_h and cp_support_h.
10563 (buildsym.o): Depend on cp_support_h.
10564 (cp-namespace.o): New.
10565 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10566 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10567 (dwarf2read.o): Depend on cp_support_h.
10568 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10569 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10570 processing_current_namespace.
10571 (read_namespace): Update processing_current_namespace; check for
10572 anonymous namespaces.
10573 (dwarf2_name): New function.
10574 (dwarf2_extension): Ditto.
10575 * cp-support.h: Update copyright, contributors.
10576 Add inclusion guards.
10577 Add opaque declaration for structs obstack, block, symbol.
10578 (struct using_direct): New struct.
10579 Add declarations for cp_find_first_component,
10580 cp_entire_prefix_len, processing_has_namespace_info,
10581 processing_current_namespace, cp_is_anonymous,
10582 cp_add_using_directive, cp_initialize_namespace,
10583 cp_finalize_namespace, cp_set_block_scope,
10584 cp_scan_for_anonymous_namespaces.
10585 * cp-namespace.c: New file.
10586 * cp-support.c: Update copyright.
10587 Include ctype.h, gdb_assert.h, gdbcmd.h.
10588 New variable maint_cplus_cmd_list.
10589 (cp_find_first_component): New function.
10590 (cp_entire_prefix_len, maint_cplus_command)
10591 (first_component_command, _initialize_cp_support): Ditto.
10592 * buildsym.c: Include cp-support.h.
10593 New variable using_list.
10594 (add_symbol_to_list): Check for anonymous namespaces.
10595 (finish_block): Set block's scope.
10596 (start_symtab): Initialize C++ namespace support.
10597 (end_symtab): Finalize C++ namespace support.
10598 * block.h: Add opaque declarations for structs
10599 block_namespace_info, using_direct, and obstack.
10600 Add declarations for block_set_scope and block_set_using.
10601 (struct block): Add 'language_specific' member.
10602 (BLOCK_NAMESPACE): New macro.
10603 * block.c: Include gdb_obstack.h and cp-support.h.
10604 (struct block_namespace_info): New struct.
10605 (block_set_scope): New function.
10606 (block_set_using, block_initialize_namespace): Ditto.
10608 2003-04-14 Kevin Buettner <kevinb@redhat.com>
10610 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10611 (locate_base): Return early if there aren't any link map offsets.
10612 (svr4_solib_create_inferior_hook): Warn if shared library support
10615 2003-04-14 David Carlton <carlton@math.stanford.edu>
10617 * symtab.c (symbol_set_names): Add prefix when storing Java names
10618 in hash table. Fix for PR java/1039.
10620 2003-04-14 David Carlton <carlton@math.stanford.edu>
10622 * symtab.c (symbol_set_names): Rename 'name' arg to
10623 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10624 * symtab.h: Change 'name' argument in declaration of
10625 symbol_set_names to 'linkage_name'.
10626 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10628 2003-04-14 Andrew Cagney <cagney@redhat.com>
10630 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10631 return the fully sign-extended register value.
10632 (get_frame_pointer): Ditto.
10633 (mips_pop_frame): Initialize "proc_desc" after checking for a
10636 2003-04-14 Andrew Cagney <cagney@redhat.com>
10638 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10639 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10640 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10641 (mips_push_register): Delete function.
10642 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10645 2003-04-14 Jim Blandy <jimb@redhat.com>
10647 * symmisc.c: #include "gdb_regex.h".
10648 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10650 * maint.c (maintenance_list_command): New function.
10651 (_initialize_maint_cmds): Register the above as commands.
10652 * symtab.h (maintenance_list_symtabs,
10653 maintenance_list_psymtabs): New declarations.
10654 * cli/cli-cmds.c (maintenancelistlist): New variable.
10655 (init_cmd_lists): Initialize it.
10656 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10657 * gdbcmd.h (maintenancelistlist): New declaration.
10658 * Makefile.in (symmisc.o): Update dependencies.
10660 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
10662 * s390-nat.c: Include asm/types.h for addr_t.
10664 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
10666 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10667 actually incoming type.
10669 2003-04-13 Andrew Cagney <cagney@redhat.com>
10671 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10672 get_next_frame and get_frame_saved_regs.
10674 2003-04-13 Andrew Cagney <cagney@redhat.com>
10676 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10677 of gdbarch_num_regs.
10679 2003-04-13 Andrew Cagney <cagney@redhat.com>
10681 * frame.h: Mention what replaced what in "struct frame_info".
10682 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10683 deprecated_update_frame_base_hack and
10684 deprecated_update_frame_pc_hack.
10685 * hppa-tdep.c: Ditto.
10687 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10689 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10690 to read_reg and update its comment. Remove regnum member.
10691 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10692 Don't call read_reg when setting in_reg. Call read_reg to get
10693 the frame base if it's in a register. Return the register number
10694 on the stack instead of in the context. Remove extra arguments
10696 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10697 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10698 the register number on the expression stack.
10699 (needs_frame_read_reg): Remove extra arguments.
10701 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10703 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10705 (execute_stack_op): All callers updated.
10706 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10707 * dwarf2loc.c (find_location_expression): New function.
10708 (dwarf_expr_frame_base): Call it.
10709 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10710 (dwarf2_tracepoint_var_ref): New function, broken out from
10711 locexpr_tracepoint_var_ref.
10712 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10714 (loclist_read_variable, loclist_read_needs_frame): New functions.
10715 (loclist_describe_location, loclist_tracepoint_var_ref): New
10717 (dwarf2_loclist_funcs): New struct location_funcs.
10718 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10719 (struct dwarf2_locexpr_baton): Add comments.
10720 (dwarf2_loclist_funcs): New extern.
10721 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10722 base_address and base_known.
10723 (dwarf_loc_buffer): New variable.
10724 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10725 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10726 (dwarf2_has_info): Initialize dwarf_loc_offset.
10727 (dwarf2_build_psymtabs): Read in .debug_loc.
10728 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10730 (psymtab_to_symtab_1): Likewise. Move base address calculation
10732 (dwarf2_get_pc_bounds): ... here. Use the base address from
10734 (dwarf2_symbol_mark_computed): Handle location lists.
10736 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10738 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10739 if the linkage name demangled successfully.
10741 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10743 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10744 disassmbly_flavour): Removed.
10746 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10748 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10750 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10752 2003-04-12 Andrew Cagney <cagney@redhat.com>
10754 * frame.h (struct frame_info): Move definition from here ...
10755 * frame.c (struct frame_info): ... to here.
10757 2003-04-12 Andrew Cagney <cagney@redhat.com>
10759 * gdbthread.h (save_infrun_state): Delete parameter
10761 (struct thread_info): Delete field "prev_func_start".
10762 (load_infrun_state): Ditto.
10763 * thread.c (load_infrun_state, save_infrun_state): Update.
10764 * infrun.c (prev_func_start): Delete variable.
10765 (context_switch, init_wait_for_inferior): Update.
10766 (stop_stepping, keep_going): Update.
10768 2003-04-12 Andrew Cagney <cagney@redhat.com>
10770 * gdbarch.sh: Add missing opaque declarations.
10771 * gdbarch.h: Regnerate.
10772 * symtab.h: Add missing opaque declarations.
10773 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10774 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10775 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10776 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10777 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10778 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10779 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10780 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10781 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10782 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10783 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10784 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10785 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10787 2003-04-11 Andrew Cagney <cagney@redhat.com>
10789 * frame.c (get_frame_id): Return this frame's "id".
10790 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10792 (legacy_saved_regs_this_id): Replace function body with
10794 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10795 FRAME_OBSTACK_ZALLOC.
10796 (create_new_frame): Mark the frame ID as valid.
10798 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10800 * Makefile.in (libbfd_h): Added missing setting.
10801 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10802 according to the selected ABI.
10804 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10806 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10808 2003-04-11 Andrew Cagney <cagney@redhat.com>
10810 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10811 SAVED_PC_AFTER_CALL.
10812 * gdbarch.h, gdbarch.c: Regenerate.
10813 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10814 * x86-64-tdep.c (x86_64_init_abi): Update.
10815 * vax-tdep.c (vax_gdbarch_init): Update.
10816 * v850-tdep.c (v850_gdbarch_init): Update.
10817 * sparc-tdep.c (sparc_gdbarch_init): Update.
10818 * sh-tdep.c (sh_gdbarch_init): Update.
10819 * s390-tdep.c (s390_gdbarch_init): Update.
10820 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10821 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10822 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10823 * mips-tdep.c (mips_gdbarch_init): Update.
10824 * mcore-tdep.c (mcore_gdbarch_init): Update.
10825 * m68k-tdep.c (m68k_gdbarch_init): Update.
10826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10827 * ia64-tdep.c (ia64_gdbarch_init): Update.
10828 (ia64_saved_pc_after_call): Update declaration.
10829 * i386ly-tdep.c (i386lynx_init_abi): Update.
10830 * i386-tdep.c (i386_gdbarch_init): Update.
10831 * hppa-tdep.c (hppa_gdbarch_init): Update.
10832 * h8300-tdep.c (h8300_gdbarch_init): Update.
10833 * frv-tdep.c (frv_gdbarch_init): Update.
10834 * cris-tdep.c (cris_gdbarch_init): Update.
10835 * avr-tdep.c (avr_gdbarch_init): Update.
10836 * arm-tdep.c (arm_gdbarch_init): Update.
10837 * alpha-tdep.c (alpha_gdbarch_init): Update.
10838 * ns32knbsd-nat.c (frame_num_args): Update.
10839 * ns32k-tdep.c (umax_frame_num_args): Update.
10840 * mips-tdep.c (mips_init_frame_pc_first): Update.
10841 * infrun.c (step_over_function): Update.
10842 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10843 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10844 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10845 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10846 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10847 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10848 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10849 * arch-utils.c (init_frame_pc_default): Update.
10850 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10851 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10854 2003-04-11 Andrew Cagney <cagney@redhat.com>
10856 * i387-tdep.c: Update copyright.
10857 (i387_to_double): Delete function.
10858 (double_to_i387): Delete function.
10860 2003-04-10 Andrew Cagney <cagney@redhat.com>
10862 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10863 frame's function's address. Simplify.
10864 (d10v_frame_unwind_cache): Check that the frame's function is
10867 2003-04-10 Jim Blandy <jimb@redhat.com>
10869 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10870 call to set_gdbarch_deprecated_push_arguments.
10872 2003-04-10 Andrew Cagney <cagney@redhat.com>
10874 * frame.c (fprint_frame_id): New function.
10875 (fprint_frame_type, fprint_frame): New function.
10876 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10877 (create_sentinel_frame, get_frame_id): Ditto.
10878 (frame_id_p, frame_id_eq): Ditto.
10879 (frame_id_inner, create_new_frame): Ditto.
10880 (legacy_get_prev_frame, get_prev_frame): Ditto.
10881 (deprecated_update_frame_pc_hack): Ditto.
10882 (frame_register_unwind): Ditto.
10883 (deprecated_update_frame_base_hack): Ditto.
10885 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10887 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10888 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10889 frame_chain function.
10890 * Makefile.in: Add dependencies due to above change.
10892 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10894 * blockframe.c (legacy_frame_chain_valid): Move call to
10895 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10898 2003-04-09 Andrew Cagney <cagney@redhat.com>
10900 * frame.h (struct frame_id): Replace "pc" and "base" with
10901 "stack_addr" and "code_addr". Update comments.
10902 (frame_id_build): Update parameter names and comment.
10903 (struct frame_info): Replace "id_p" and "id" with "this_id".
10904 * dummy-frame.c (dummy_frame_this_id): Update.
10905 * breakpoint.c (print_one_breakpoint): Update.
10906 * frame.c (get_frame_id): Update.
10907 (get_frame_base, frame_id_build): Update.
10908 (create_sentinel_frame, legacy_get_prev_frame): Update.
10909 (deprecated_update_frame_base_hack): Update.
10910 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10911 (frame_id_inner): Ditto.
10913 2003-04-09 Andrew Cagney <cagney@redhat.com>
10915 * defs.h (gdb_print_host_address): Make "addr" parameter a
10917 * utils.c (gdb_print_host_address): Update.
10919 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10921 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10922 register number for R0 is 0.
10924 2003-04-09 J. Brobecker <brobecker@gnat.com>
10926 * frame.h (struct gdbarch): Add opaque structure definition
10927 to avoid a compilation warning on LynxOS 4.0.
10929 2003-04-09 Andrew Cagney <cagney@redhat.com>
10931 * frame.h (struct frame_info): Delete field "pc". Replace
10932 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10934 * frame.c (frame_pc_unwind): Update.
10935 (create_sentinel_frame): Do not set "pc".
10936 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10937 (get_frame_pc): Call frame_pc_unwind.
10938 (deprecated_update_frame_pc_hack): Update.
10939 (create_new_frame): Use "pc" not "->pc".
10941 2003-04-09 Andrew Cagney <cagney@redhat.com>
10943 * frame.c (get_frame_id): Eliminate code updating "frame".
10944 (legacy_get_prev_frame): Ditto.
10945 (get_frame_base): Return id.base directly.
10946 (deprecated_update_frame_base_hack): Update "id.base".
10947 * frame.h (struct frame_info): Delete field "frame".
10949 2003-04-09 Andrew Cagney <cagney@redhat.com>
10951 * NEWS: Mention that the "Sequent family" is obsolete.
10952 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10953 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10954 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10955 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10956 * config/i386/tm-ptx4.h: Obsolete file.
10957 * config/i386/tm-ptx.h: Obsolete file.
10958 * symm-tdep.c: Obsolete file.
10959 * config/i386/symmetry.mt: Obsolete file.
10960 * config/i386/tm-symmetry.h: Obsolete file.
10961 * symm-nat.c: Obsolete file.
10962 * config/i386/nm-symmetry.h: Obsolete file.
10963 * config/i386/xm-symmetry.h: Obsolete file.
10964 * config/i386/symmetry.mh: Obsolete file.
10965 * config/i386/nm-ptx4.h: Obsolete file.
10966 * config/i386/ptx4.mh: Obsolete file.
10967 * config/i386/ptx.mt: Obsolete file.
10968 * config/i386/ptx.mh: Obsolete file.
10969 * config/i386/xm-ptx4.h: Obsolete file.
10970 * config/i386/xm-ptx.h: Obsolete file.
10972 2003-04-09 Andrew Cagney <cagney@redhat.com>
10974 Obsolete mips*-*-mach3*.
10975 * NEWS: Mention that mips*-*-mach3* is obsolete.
10976 * m3-nat.c: Obsolete file.
10977 * config/nm-m3.h: Obsolete file.
10978 * config/mips/tm-mipsm3.h: Obsolete file.
10979 * config/mips/mipsm3.mt: Obsolete file.
10980 * config/mips/mipsm3.mh: Obsolete file.
10981 * config/mips/xm-mipsm3.h: Obsolete file.
10982 * mipsm3-nat.c: Obsolete file.
10983 * configure.host: Obsolete mips-dec-mach3*.
10984 * configure.tgt: Obsolete mips*-*-mach3*.
10986 2003-04-09 Andrew Cagney <cagney@redhat.com>
10988 * doublest.h: Update copyright.
10989 (deprecated_store_floating, deprecated_extract_floating): Rename
10990 store_floating and extract_floating. Update comments.
10991 * doublest.c: Update copyright.
10992 (extract_floating_by_length): Replace extract_floating.
10993 (store_floating_by_length): Replace store_floating.
10994 (deprecated_extract_floating): New function.
10995 (deprecated_store_floating): New function.
10996 (extract_typed_floating): Call extract_floating_by_length.
10997 (store_typed_floating): Call store_floating_by_length.
10998 * x86-64-tdep.c (x86_64_store_return_value): Update.
10999 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
11000 (sh64_extract_return_value): Update.
11001 (sh_sh4_register_convert_to_virtual): Update.
11002 (sh_sh64_register_convert_to_virtual): Update.
11003 (sh_sh4_register_convert_to_raw): Update.
11004 (sh_sh64_register_convert_to_raw): Update.
11005 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
11006 (rs6000_register_convert_to_raw): Update.
11007 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
11008 (ia64_register_convert_to_raw): Update.
11009 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
11010 (REGISTER_CONVERT_TO_VIRTUAL): Update.
11011 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
11012 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
11013 (alpha_register_convert_to_raw): Update.
11015 2003-04-08 Andrew Cagney <cagney@redhat.com>
11017 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
11018 * gdbarch.h, gdbarch.c: Re-generate.
11019 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
11020 (d10v_gdbarch_init): Do not set saved_pc_after_call.
11021 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
11022 conditionally, use frame_pc_unwind as an alternative. Add
11024 * arch-utils.c (init_frame_pc_default): Only call
11025 SAVED_PC_AFTER_CALL when available.
11027 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
11029 * infrun.c (stop_soon): Rename from stop_soon_quietly.
11030 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
11031 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
11032 (start_remote): Ditto.
11033 (handle_inferior_event): Ditto.
11034 (save_inferior_status): Ditto.
11035 (restore_inferior_status): Ditto.
11036 * infcmd.c (attach_command): Ditto.
11037 * fork-child.c (startup_inferior): Ditto.
11038 * inferior.h (stop_soon): Rename from stop_soon_quietly.
11039 * alpha-tdep.c (heuristic_proc_start): Ditto.
11040 * mips-tdep.c (heuristic_proc_start): Ditto.
11041 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
11042 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
11043 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
11044 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
11045 * remote-vx.c (vx_create_inferior): Ditto.
11047 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
11049 * infrun.c (stop_soon_quietly): Make it an enum, to better
11050 override the default behavior of handle_inferior_event.
11051 (clear_proceed_status): Update uses of stop_soon_quietly to
11052 reflect that it is now an enum.
11053 (start_remote): Ditto.
11054 (handle_inferior_event): Change logic a bit if stop_soon_quietly
11055 is set to handle the new GNU/Linux kernel behavior for
11056 attach/sigstop. Update uses of stop_soon_quietly.
11057 * inferior.h (enum stop_kind): New enum.
11058 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
11059 Reset normal handle_inferior_event behavior, afterwards.
11060 * fork-child.c (startup_inferior): Update.
11061 * alpha-tdep.c (heuristic_proc_start): Update.
11062 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
11063 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
11064 * solib-osf.c (osf_solib_create_inferior_hook): Update.
11065 * solib-irix.c (irix_solib_create_inferior_hook): Update.
11066 * remote-vx.c (vx_create_inferior): Update.
11067 * mips-tdep.c (heuristic_proc_start): Update.
11069 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
11071 * disasm.c (dump_insns): Move variables inside loop, or they will
11072 be freed more than once, causing wild memory corruptions.
11073 (gdb_disassembly): Look for the substring "-thread",
11074 instead of "-threads" in the target name, to make sure to find
11075 the 'multi-thread' target. Also, make sure we do the right thing
11076 with the "core" target.
11078 2003-04-07 Kevin Buettner <kevinb@redhat.com>
11080 * mips-tdep.c (mips_print_fp_register): New function, created from
11081 do_fp_register_row(). Registers are now (also) printed as hex.
11082 Only one register is printed per row.
11083 (mips_print_register, do_fp_register_row): Print floating point
11084 registers with mips_print_fp_register().
11086 2003-04-06 Andrew Cagney <cagney@redhat.com>
11088 * valprint.h (inspect_it): Add extern declaration.
11089 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
11090 (selectors_info, classes_info): Ditto.
11091 (find_objc_msgcall): Fix indentation.
11092 (objc_printstr): Delete extern declarations.
11094 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
11096 2003-04-06 Andrew Cagney <cagney@redhat.com>
11098 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
11100 * frame.c (legacy_saved_regs_this_id): Update.
11101 (legacy_get_prev_frame): Update.
11102 * xstormy16-tdep.c: Update comment.
11103 * sparc-tdep.c (sparc_frame_chain): Update comment.
11104 * blockframe.c (legacy_frame_chain_valid): Update.
11106 2003-04-06 Andrew Cagney <cagney@redhat.com>
11108 * valprint.c (val_print_type_code_int): Delete #ifdef
11109 PRINT_TYPELESS_INTEGER code.
11111 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
11112 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
11113 multi-arch definition.
11114 * gdbarch.h: Re-generate.
11116 2003-04-05 Andrew Cagney <cagney@redhat.com>
11118 Eliminate FRAME_FIND_SAVED_REGS.
11119 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11120 Change FSR parameter to a pointer.
11121 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
11122 Assume FSR parameter is a pointer.
11123 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11124 Make fsr a pointer.
11125 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
11126 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
11127 saved_regs a pointer.
11128 (hppa_frame_saved_pc): Ditto.
11129 (find_dummy_frame_regs): Make frame_saved_regs a pointer
11130 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
11132 (restore_pc_queue): Make fsr a pointer.
11133 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
11134 (hppa_frame_chain): Make saved_regs a pointer, call
11135 hppa_frame_init_saved_regs.
11136 * sparc-tdep.c: Include "gdb_assert.h".
11137 (sparc_frame_find_saved_regs): Replace internal_error with
11139 * remote-vxsparc.c (vx_read_register): Delete reference to
11140 FRAME_FIND_SAVED_REGS.
11141 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
11142 * gdbarch.h: Regenerate.
11143 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11144 (deprecated_get_frame_saved_regs): Delete declaration.
11145 (struct frame_saved_regs): Delete definition.
11146 * frame.c (deprecated_get_frame_saved_regs): Delete function.
11147 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
11148 (hppa_frame_find_saved_regs): Delete declaration.
11149 (FRAME_FIND_SAVED_REGS): Delete macro.
11150 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
11151 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
11152 FRAME_FIND_SAVED_REGS in comment.
11154 2003-04-05 Andrew Cagney <cagney@redhat.com>
11156 * frame.c (frame_func_unwind, get_frame_func): New functions.
11157 * frame.h (get_frame_func, frame_func_unwind): Declare.
11158 (struct frame_info): Add field "prev_func" for caching the
11159 previous frame's function address.
11160 * arm-tdep.c (arm_frameless_function_invocation): Combine
11161 get_pc_function_start and get_frame_pc into get_frame_func.
11162 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11163 (sh64_nofp_frame_init_saved_regs): Ditto.
11164 * s390-tdep.c (s390_function_start): Ditto.
11165 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
11166 (rs6000_frameless_function_invocation): Ditto.
11167 (rs6000_frame_saved_pc): Ditto.
11168 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
11169 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
11170 * i386-tdep.c (i386_frameless_signal_p): Ditto.
11171 (i386_frame_init_saved_regs): Ditto.
11172 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
11173 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
11174 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
11175 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
11176 * blockframe.c (frameless_look_for_prologue): Ditto.
11178 2003-04-05 Andrew Cagney <cagney@redhat.com>
11180 * frame.c (legacy_get_prev_frame): Link prev to next at the
11181 function start. Update comments.
11183 2003-04-05 Andrew Cagney <cagney@redhat.com>
11185 * frame.c (get_frame_id): Update comment.
11186 (legacy_get_prev_frame): Update comment.
11187 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
11188 * gdbarch.h: Regenerate.
11189 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
11190 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
11192 2003-04-05 Andrew Cagney <cagney@redhat.com>
11194 * stack.c (print_frame_info): Use get_frame_pc.
11196 2003-04-04 Andrew Cagney <cagney@redhat.com>
11198 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
11199 the frame's type from the unwinder.
11200 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
11201 (create_new_frame, legacy_get_prev_frame): When the unwinder's
11202 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
11203 (get_frame_base_address): Use get_frame_type.
11204 (get_frame_locals_address, get_frame_args_address): Ditto.
11205 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
11206 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
11207 (struct frame_info): Add comment explaining why the frame contains
11209 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
11210 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
11211 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11213 * frame-unwind.h: Include "frame.h".
11214 (struct frame_unwind): Add "type" field.
11215 * Makefile.in (frame_unwind_h): Add $(frame_h).
11217 2003-04-04 Andrew Cagney <cagney@redhat.com>
11219 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11220 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11221 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11223 (d10v_unwind_dummy_id): Use frame_id_build.
11224 * frame.c (find_frame_sal): Use get_frame_pc.
11225 (create_new_frame): Use deprecated_update_frame_pc_hack and
11226 deprecated_update_frame_base_hack.
11227 (create_sentinel_frame): Add comment about ->pc going away.
11228 (get_prev_frame): Add comment about ->pc going away.
11229 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11230 frame_id_build, deprecated_update_frame_pc_hack and
11231 deprecated_update_frame_base_hack.
11232 (select_frame): Use get_frame_pc.
11233 (legacy_saved_regs_this_id): Use frame_id_build.
11235 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
11237 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11238 signed integer case.
11239 (classify_argument): Handle enumerations and references.
11241 2003-04-04 Andrew Cagney <cagney@redhat.com>
11243 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11246 2003-04-01 Adam Fedor <fedor@gnu.org>
11248 * gdb/objc-lang.c (selectors_info): Replace calls to
11249 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11250 SYMBOL_NATURAL_NAME.
11251 (classes_info, find_methods): Likewise.
11253 2003-04-03 Kevin Buettner <kevinb@redhat.com>
11255 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11256 ``mach'' to the value determined by bfd_default_set_arch_mach().
11258 2003-04-02 Bob Rossi <bob_rossi@cox.net>
11260 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11261 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11262 (mi-cmd-file.o): Update dependencies.
11264 2003-04-01 Kevin Buettner <kevinb@redhat.com>
11266 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11267 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11269 2003-04-01 Adam Fedor <fedor@gnu.org>
11271 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11272 * language.h (struct language_defn): Add la_demangle.
11273 (language_demangle): Declare.
11274 * language.c (language_demangle): New function.
11275 (unk_lang_demangle): Likewise.
11276 (unknown_language_defn, auto_language_defn, local_language_defn):
11277 Add ukn_lang_demangle.
11278 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
11279 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
11280 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11281 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11282 * jv-lang.c (java_demangle): New function
11283 (java_language_defn): Use it for la_demangle element.
11284 * objc-lang.c (objc_demangle): Add options argument
11285 (objc_language_defn): Use objc_demangle for la_demangle element.
11286 * maint.c (maintenance_demangle): Replace switch with
11287 call to language_demangle.
11288 * utils.c (fprintf_symbol_filtered): Likewise.
11290 2003-04-01 Andrew Cagney <cagney@redhat.com>
11292 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11293 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11294 PRINT_TYPELESS_INTEGER.
11295 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11296 PUSH_RETURN_ADDRESS.
11298 2003-04-01 Andrew Cagney <cagney@redhat.com>
11300 * Makefile.in (d10v-tdep.o): Update dependencies.
11301 * d10v-tdep.c: Include "frame-base.h".
11302 (d10v_frame_unwind): Make constant.
11303 (d10v_frame_base_address): New function.
11304 (d10v_frame_base): New variable.
11305 (d10v_gdbarch_init): Set frame_base default.
11306 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11308 (d10v_frame_unwind_cache): Set and use "prev_sp".
11309 (d10v_frame_this_id): Use the previous frame's inner most stack
11310 address and this frame's func address for the frame ID. Use
11311 frame_id_build. Don't analyze beyond the current instruction.
11313 2003-04-01 Andrew Cagney <cagney@redhat.com>
11315 * frame.h (get_frame_locals_address, get_frame_args_address):
11316 Refer to the base address, instead of the address of the first
11317 local or parameter.
11319 2003-04-01 Andrew Cagney <cagney@redhat.com>
11321 Add frame debug info addresses:
11322 * frame-base.c: New file.
11323 * frame-base.h: New file.
11324 * frame.h (struct frame_base): Add opaque declaration.
11325 (get_frame_base): Update comment.
11326 (get_frame_base_address): Declare.
11327 (get_frame_locals_address): Declare.
11328 (get_frame_args_address): Declare.
11329 (struct frame_info): Add "base" and "base_cache". Update
11330 comments on the unwinder.
11331 * frame.c: Include "frame-base.h".
11332 (get_frame_locals_address): New function.
11333 (get_frame_base_address): New function.
11334 (get_frame_args_address): New function.
11335 * findvar.c (read_var_value): Use get_frame_locals_address and
11336 get_frame_args_address.
11337 * stack.c (frame_info): Use get_frame_locals_address and
11338 get_frame_args_address.
11339 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11340 moved to "frame-base.c".
11341 * printcmd.c (print_frame_nameless_args): Ditto.
11342 * symtab.h (address_class): Update comments.
11343 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11344 get_frame_base_address.
11345 * dwarf2expr.c (execute_stack_op): Ditto.
11346 * Makefile.in (frame_base_h): Define.
11347 (frame.o): Update dependencies.
11348 (frame-base.o): Add dependencies.
11349 (SFILES): Add frame-base.c.
11350 (COMMON_OBS): Add frame-base.o.
11352 2003-04-01 Andrew Cagney <cagney@redhat.com>
11354 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11355 CALL_DUMMY_LENGTH): Ditto.
11356 * gdbarch.c: Re-generate.
11357 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11358 (CALL_DUMMY_LENGTH): Delete macro.
11359 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11360 * arm-tdep.c (arm_gdbarch_init): Ditto.
11361 * avr-tdep.c (avr_gdbarch_init): Ditto.
11362 * cris-tdep.c (cris_gdbarch_init): Ditto.
11363 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11364 * frv-tdep.c (frv_gdbarch_init): Ditto.
11365 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11366 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11367 * i386-tdep.c (i386_gdbarch_init): Ditto.
11368 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11370 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11371 * mips-tdep.c (mips_gdbarch_init): Ditto.
11372 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11373 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11374 * s390-tdep.c (s390_gdbarch_init): Ditto.
11375 * sh-tdep.c (sh_gdbarch_init): Ditto.
11376 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11377 * v850-tdep.c (v850_gdbarch_init): Ditto.
11378 * vax-tdep.c (vax_gdbarch_init): Ditto.
11379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11381 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
11383 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11385 2003-04-01 Andrew Cagney <cagney@redhat.com>
11387 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11388 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11389 * gdbarch.h, gdbarch.c: Re-generate.
11390 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11391 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11392 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11393 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11394 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11395 * infcmd.c (run_stack_dummy): Simplify assuming
11396 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11397 * infrun.c (handle_inferior_event): Ditto.
11398 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11399 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11400 * arm-tdep.c (arm_gdbarch_init): Ditto.
11401 * avr-tdep.c (avr_gdbarch_init): Ditto.
11402 * cris-tdep.c (cris_gdbarch_init): Ditto.
11403 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11404 * frv-tdep.c (frv_gdbarch_init): Ditto.
11405 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11406 * i386-tdep.c (i386_gdbarch_init): Ditto.
11407 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11409 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11410 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11411 * mips-tdep.c (mips_gdbarch_init): Ditto.
11412 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11413 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11414 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11415 * s390-tdep.c (s390_gdbarch_init): Ditto.
11416 * sh-tdep.c (sh_gdbarch_init): Ditto.
11417 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11418 * v850-tdep.c (v850_gdbarch_init): Ditto.
11419 * vax-tdep.c (vax_gdbarch_init): Ditto.
11420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11422 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
11424 * symfile.c (symfile_relocate_debug_section): Update call to
11425 bfd_simple_get_relocated_section_contents.
11427 2003-03-31 Andrew Cagney <cagney@redhat.com>
11429 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11430 * gdbarch.h, gdbarch.c: Regenerate.
11431 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11432 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11434 * frame.h (generic_fix_call_dummy): Delete declaration.
11435 * dummy-frame.h: Update comment.
11436 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11439 * sh-tdep.c (sh_gdbarch_init): Ditto.
11440 * s390-tdep.c (s390_gdbarch_init): Ditto.
11441 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11442 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11444 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11445 * i386-tdep.c (i386_gdbarch_init): Ditto.
11446 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11447 * frv-tdep.c (frv_gdbarch_init): Ditto.
11448 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11449 * cris-tdep.c (cris_gdbarch_init): Ditto.
11450 * avr-tdep.c (avr_gdbarch_init): Ditto.
11451 * arm-tdep.c (arm_gdbarch_init): Ditto.
11453 2003-03-31 J. Brobecker <brobecker@gnat.com>
11455 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11456 (INIT_FRAME_AP): Likewise.
11457 (EXTRA_FRAME_INFO): Likewise.
11459 2003-03-31 Andrew Cagney <cagney@redhat.com>
11461 * gdbarch.sh: Include "symfile.h".
11462 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11463 * gdbarch.h, gdbarch.c: Re-generate.
11464 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11466 call_dummy_address, the default is at entry_point_address.
11467 * v850-tdep.c (v850_gdbarch_init): Ditto.
11468 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11469 * sh-tdep.c (sh_gdbarch_init): Ditto.
11470 * s390-tdep.c (s390_gdbarch_init): Ditto.
11471 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11472 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11473 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11474 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11475 * i386-tdep.c (i386_gdbarch_init): Ditto.
11476 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11477 * frv-tdep.c (frv_gdbarch_init): Ditto.
11478 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11479 * cris-tdep.c (cris_gdbarch_init): Ditto.
11480 * arm-tdep.c (arm_gdbarch_init): Ditto.
11482 2003-03-31 Andrew Cagney <cagney@redhat.com>
11484 * gdbarch.sh (CALL_DUMMY_P): Delete.
11485 * gdbarch.h, gdbarch.c: Re-generate.
11486 * inferior.h (CALL_DUMMY_P): Delete macro.
11487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11488 * vax-tdep.c (vax_gdbarch_init): Update.
11489 * v850-tdep.c (v850_gdbarch_init): Update.
11490 * sparc-tdep.c (sparc_gdbarch_init): Update.
11491 * sh-tdep.c (sh_gdbarch_init): Update.
11492 * s390-tdep.c (s390_gdbarch_init): Update.
11493 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11494 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11495 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11496 * mips-tdep.c (mips_gdbarch_init): Update.
11497 * mcore-tdep.c (mcore_gdbarch_init): Update.
11498 * m68k-tdep.c (m68k_gdbarch_init): Update.
11499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11500 * ia64-tdep.c (ia64_gdbarch_init): Update.
11501 * i386-tdep.c (i386_gdbarch_init): Update.
11502 * h8300-tdep.c (h8300_gdbarch_init): Update.
11503 * frv-tdep.c (frv_gdbarch_init): Update.
11504 * d10v-tdep.c (d10v_gdbarch_init): Update.
11505 * cris-tdep.c (cris_gdbarch_init): Update.
11506 * breakpoint.c (deprecated_frame_in_dummy): Update.
11507 * avr-tdep.c (avr_gdbarch_init): Update.
11508 * alpha-tdep.c (alpha_gdbarch_init): Update.
11509 * arm-tdep.c (arm_gdbarch_init): Update.
11510 * dummy-frame.c (dummy_frame_this_id): Update comments.
11511 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11512 * frame.c (legacy_get_prev_frame): Ditto.
11513 * valops.c (call_function_by_hand): Delete function.
11514 (hand_function_call): Rename to call_function_by_hand
11516 2003-03-30 Andrew Cagney <cagney@redhat.com>
11518 2002-11-10 Klee Dienes <kdienes@apple.com>
11519 * value.h (struct value): Update comment.
11521 2003-03-30 Andrew Cagney <cagney@redhat.com>
11523 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11525 (d10v_gdbarch_init): Do not set fp_regnum.
11527 * frame.c (get_frame_base): Force ID initialization.
11528 (get_prev_frame): Move computation of the frame ID from here ...
11529 (get_frame_id): ... to here.
11530 (legacy_get_prev_frame): Mark the frame ID as valid.
11531 * frame.h (struct frame_info): Add field "id_p".
11533 2003-03-30 Mark Kettenis <kettenis@gnu.org>
11535 * i386-tdep.c (i386_store_struct_return): Removed.
11536 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11538 2003-03-30 Andrew Cagney <cagney@redhat.com>
11540 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11541 * gdbarch.h, gdbarch.c: Regenerate.
11542 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11544 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11545 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11546 * i386-tdep.c (i386_gdbarch_init): Ditto.
11547 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11548 * cris-tdep.c (cris_gdbarch_init): Ditto.
11549 * vax-tdep.c (vax_gdbarch_init): Ditto.
11550 * s390-tdep.c (s390_gdbarch_init): Ditto.
11551 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11552 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11553 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11554 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11555 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11556 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11557 * sparc-tdep.c (sparc_gdbarch_init): Update.
11558 * sh-tdep.c (sh_gdbarch_init): Update.
11559 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11560 * mips-tdep.c (mips_gdbarch_init): Update.
11561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11562 * ia64-tdep.c (ia64_gdbarch_init): Update.
11563 * frv-tdep.c (frv_gdbarch_init): Update.
11564 * avr-tdep.c (avr_gdbarch_init): Update.
11565 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11566 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11567 instead of when push_dummy_call is not available.
11569 2003-03-30 Andrew Cagney <cagney@redhat.com>
11571 * infttrace.c: Include "gdbthread.h".
11572 (parent_attach_all): Fix function signature.
11573 (call_ptrace): Update call.
11574 * Makefile.in (infttrace.o): Update dependencies.
11576 2003-03-30 Andrew Cagney <cagney@redhat.com>
11578 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11579 PUSH_RETURN_ADDRESS.
11580 * gdbarch.h, gdbarch.c: Regenerate.
11581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11582 * x86-64-tdep.c (x86_64_init_abi): Update.
11583 * v850-tdep.c (v850_gdbarch_init): Update.
11584 * sparc-tdep.c (sparc_gdbarch_init): Update.
11585 * sh-tdep.c (sh_gdbarch_init): Update.
11586 * s390-tdep.c (s390_gdbarch_init): Update.
11587 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11589 * mips-tdep.c (mips_gdbarch_init): Update.
11590 * mcore-tdep.c (mcore_gdbarch_init): Update.
11591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11592 * ia64-tdep.c (ia64_gdbarch_init): Update.
11593 * i386-tdep.c (i386_gdbarch_init): Update.
11594 * h8300-tdep.c (h8300_gdbarch_init): Update.
11595 * frv-tdep.c (frv_gdbarch_init): Update.
11596 * cris-tdep.c (cris_gdbarch_init): Update.
11597 * avr-tdep.c (avr_gdbarch_init): Update.
11598 * arm-tdep.c (arm_gdbarch_init): Update.
11599 * valops.c (hand_function_call): Update.
11601 2003-03-29 Andrew Cagney <cagney@redhat.com>
11603 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11604 sizeof_call_dummy_words.
11605 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11607 * gdbarch.h: Regenerate.
11609 2003-03-29 Andrew Cagney <cagney@redhat.com>
11611 * infttrace.h: New file.
11612 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11613 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11614 (hpread_read_doc_function_type): Detect an initialized type1.
11615 (hpread_quick_traverse): Initialize mod_name_string.
11616 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11617 (som_solib_get_solib_by_pc): Declare.
11618 (so_lib_thread_start_addr): Declare.
11619 (no_shared_libraries): Declare.
11620 * somread.c (init_import_symbols): Make static. Add forward
11622 * config/pa/nm-hppah.h: Include "infttrace.h" for
11624 (hppa_insert_hw_watchpoint): Declare.
11625 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11626 * hppah-nat.c: Include "gdb_string.h".
11627 (parent_attach_all): Delete extern declaration, moved to
11629 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11631 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11632 * Makefile.in (infttrace_h): Define.
11633 (hpread.o): Update dependencies.
11634 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11635 * hppa-hpux-tdep.c: Include "gdb_string.h".
11636 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11637 * infrun.c (handle_inferior_event): Always initialize
11638 stepped_after_stopped_by_watchpoint. Add default and remove
11639 fallthrough in switch statement.
11640 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11642 (hppa_remove_hw_watchpoint): Ditto.
11644 2003-03-29 Andrew Cagney <cagney@redhat.com>
11646 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11649 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
11651 * arm-tdep.c (arm_push_arguments): Delete.
11652 (struct stack_item): New type.
11653 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11654 (arm_store_struct_return): Delte.
11655 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11656 arm_push_arguments or arm_store_struct_return.
11658 2003-03-28 Andrew Cagney <cagney@redhat.com>
11660 * Makefile.in (d10v-tdep.o): Update dependencies.
11661 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11662 * d10v-tdep.c: Include "remote.h".
11663 (target_resume_hook): Delete extern declaration.
11664 (target_wait_loop_hook): Ditto.
11665 (tdisassemble_command): Eliminate assignment in "if" conditional.
11666 (d10v_ts2_register_sim_regno): Eliminate call to
11667 legacy_register_sim_regno.
11668 (d10v_ts3_register_sim_regno): Ditto.
11670 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11672 * thread.c: Reindented.
11673 * lin-lwp.c: Ditto.
11674 * linux-proc.c: Ditto.
11676 2003-03-28 Bob Rossi <bob_rossi@cox.net>
11678 * MAINTAINERS (write after approval): Add myself.
11680 2003-03-27 Theodore A. Roth <troth@openavr.org>
11682 * objc-exp.y: Add missing semi-colons.
11684 2003-03-27 Andrew Cagney <cagney@redhat.com>
11686 * regcache.c (write_sp): Delete function and references.
11687 * inferior.h (write_sp): Delete declaration.
11688 * valops.c (hand_function_call): Replace write_sp with
11690 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11691 (sparc_pop_frame): Ditto.
11693 2003-03-27 Andrew Cagney <cagney@redhat.com>
11695 * NEWS: Mention removal of support for hppa*-*-bsd* and
11696 hppa*-*-osf* natives, and hppa*-*-pro* target.
11697 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11698 * config/pa/xm-pa.h: Obsolete file.
11699 * config/pa/xm-hppab.h: Obsolete file.
11700 * config/pa/nm-hppab.h: Obsolete file.
11701 * config/pa/tm-hppab.h: Obsolete file.
11702 * config/pa/tm-hppao.h: Obsolete file.
11703 * config/pa/nm-hppao.h: Obsolete file.
11704 * config/pa/tm-pro.h: Obsolete file.
11705 * config/pa/hppaosf.mt: Obsolete file.
11706 * config/pa/hppaosf.mh: Obsolete file.
11707 * config/pa/hppapro.mt: Obsolete file.
11708 * config/pa/hppabsd.mt: Obsolete file.
11709 * config/pa/hppabsd.mh: Obsolete file.
11710 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11711 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11714 2003-03-27 Andrew Cagney <cagney@redhat.com>
11716 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11717 push_arguments. Don't set push_return_address or write_sp.
11718 (d10v_push_dummy_call): Replace d10v_push_arguments.
11719 (d10v_push_return_address, d10v_write_sp): Delete function,
11720 handled by push_dummy_call.
11722 2003-03-26 Andrew Cagney <cagney@redhat.com>
11724 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11725 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11726 regcache and dummy_addr parameters.
11727 * gdbarch.h, gdbarch.c: Re-generate.
11728 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11729 available; assume it will handle stack alignment and return
11730 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11731 legacy_push_arguments.
11732 (legacy_push_arguments): Rename default_push_arguments.
11733 * value.h (legacy_push_arguments): Rename default_push_arguments.
11734 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11735 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11736 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11737 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11738 * config/i386/tm-symmetry.h: Update.
11739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11740 * x86-64-tdep.c (x86_64_init_abi): Update.
11741 * v850-tdep.c (v850_gdbarch_init): Update.
11742 * sparc-tdep.c (sparc_gdbarch_init): Update.
11743 * sh-tdep.c (sh_gdbarch_init): Update.
11744 * s390-tdep.c (s390_gdbarch_init): Update.
11745 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11746 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11747 * mips-tdep.c (mips_gdbarch_init): Update.
11748 * mcore-tdep.c (mcore_gdbarch_init): Update.
11749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11750 * ia64-tdep.c (ia64_gdbarch_init): Update.
11751 * i386-tdep.c (i386_gdbarch_init): Update.
11752 * hppa-tdep.c (hppa_gdbarch_init): Update.
11753 * h8300-tdep.c (h8300_gdbarch_init): Update.
11754 * frv-tdep.c (frv_gdbarch_init): Update.
11755 * d10v-tdep.c (d10v_gdbarch_init): Update.
11756 * cris-tdep.c (cris_gdbarch_init): Update.
11757 * avr-tdep.c (avr_gdbarch_init): Update.
11758 * arm-tdep.c (arm_gdbarch_init): Update.
11759 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11760 * alpha-tdep.c (alpha_gdbarch_init): Update.
11762 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11764 * signals/signals.c (do_target_signal_to_host): Correct realtime
11767 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11769 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11770 (struct sal_chain, map_catch_names): Remove.
11771 (catch_exception_command_1): Don't call
11772 handle_gnu_4_16_catch_command.
11774 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11776 From Mark Dettinger <dettinge@de.ibm.com>:
11777 * dwarf2cfi.c (read_2u): Increment pointer by two.
11779 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11781 * signals/signals.c: Fix typos in last change.
11783 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11785 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11786 not already defined. Use __SIGRTMIN if available.
11787 (target_signal_from_host): Remove SIGRTMIN block.
11788 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11789 the signal is within the realtime range.
11791 2003-03-25 Adam Fedor <fedor@gnu.org>
11793 * Makefile.in (infrun.o): Add $(language_h)
11794 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11795 for language specific trampolines.
11796 * language.h (struct language_defn): Add skip_trampoline.
11797 (skip_language_trampoline): Declare.
11798 * language.c (unk_lang_trampoline, skip_language_trampoline):
11800 (unknown_language_defn, auto_language_defn, local_language_defn):
11801 Add ukn_lang_trampoline.
11802 * ada-lang.c (ada_language_defn): Add NULL for language
11803 specific skip_trampoline.
11804 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11805 scm-lang.c: Likewise.
11806 * objc-lang.c (objc_skip_trampoline): New function.
11807 (objc_language_defn): Add objc_skip_trampoline.
11809 2003-03-25 Andrew Cagney <cagney@redhat.com>
11811 * frame.c (get_prev_frame): Delay validating a frame's ID -
11812 non-NULL, didn't go backwards - until an attempt to unwind it to
11813 the previous frame.
11815 2003-03-25 Andrew Cagney <cagney@redhat.com>
11817 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11818 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11819 * gdbarch.h, gdbarch.c: Re-generate.
11820 * config/sparc/tm-sparc.h
11821 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11822 * sparc-tdep.c (sparc_gdbarch_init): Set
11823 deprecated_extra_stack_alignment_needed.
11824 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11826 extra_stack_alignment_needed.
11827 * v850-tdep.c (v850_gdbarch_init): Ditto.
11828 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11830 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11831 * cris-tdep.c (cris_gdbarch_init): Ditto.
11832 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11835 2003-03-25 Andrew Cagney <cagney@redhat.com>
11837 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11838 STORE_STRUCT_RETURN.
11839 * gdbarch.h, gdbarch.c: Regenerate.
11840 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11841 (d10v_push_arguments): Set the struct return register.
11842 (d10v_gdbarch_init): Update.
11843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11844 * x86-64-tdep.c (x86_64_init_abi): Update.
11845 * vax-tdep.c (vax_gdbarch_init): Update.
11846 * v850-tdep.c (v850_gdbarch_init): Update.
11847 * sparc-tdep.c (sparc_gdbarch_init): Update.
11848 * sh-tdep.c (sh_gdbarch_init): Update.
11849 * s390-tdep.c (s390_gdbarch_init): Update.
11850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11851 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11852 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11853 * mips-tdep.c (mips_gdbarch_init): Update.
11854 * mcore-tdep.c (mcore_gdbarch_init): Update.
11855 * m68k-tdep.c (m68k_gdbarch_init): Update.
11856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11857 * ia64-tdep.c (ia64_gdbarch_init): Update.
11858 * i386-tdep.c (i386_gdbarch_init): Update.
11859 * hppa-tdep.c (hppa_gdbarch_init): Update.
11860 * h8300-tdep.c (h8300_gdbarch_init): Update.
11861 * frv-tdep.c (frv_gdbarch_init): Update.
11862 * cris-tdep.c (cris_gdbarch_init): Update.
11863 * avr-tdep.c (avr_gdbarch_init): Update.
11864 * arm-tdep.c (arm_gdbarch_init): Update.
11865 * alpha-tdep.c (alpha_gdbarch_init): Update.
11867 2003-03-25 Andrew Cagney <cagney@redhat.com>
11869 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11870 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11871 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11872 * gdbarch.h, gdbarch.c: Regenerate.
11873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11874 call_dummy_stack_adjust_p.
11875 * vax-tdep.c (vax_gdbarch_init): Ditto.
11876 * v850-tdep.c (v850_gdbarch_init): Ditto.
11877 * sh-tdep.c (sh_gdbarch_init): Ditto.
11878 * s390-tdep.c (s390_gdbarch_init): Ditto.
11879 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11880 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11881 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11882 * mips-tdep.c (mips_gdbarch_init): Ditto.
11883 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11884 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11886 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11887 * i386-tdep.c (i386_gdbarch_init): Ditto.
11888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11889 * frv-tdep.c (frv_gdbarch_init): Ditto.
11890 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11891 * cris-tdep.c (cris_gdbarch_init): Ditto.
11892 * avr-tdep.c (avr_gdbarch_init): Ditto.
11893 * arm-tdep.c (arm_gdbarch_init): Ditto.
11894 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11895 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11896 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11897 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11898 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11899 call_dummy_stack_adjust_p.
11900 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11901 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11902 * sparc-tdep.c (sparc32_push_arguments): Update.
11903 * valops.c (hand_function_call): Update.
11905 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11908 set_gdbarch_char_signed.
11910 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11913 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11915 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11917 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11918 (_initialize_arm_tdep): Don't set tm_print_insn.
11920 2003-03-24 Adam Fedor <fedor@gnu.org>
11922 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11923 * objc-lang.h: Add multiple inclusion protection.
11924 (start_msglist, add_msglist, end_msglist): Additional declarations.
11926 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11928 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11929 value was renamed to ARM_FLOAT_SOFT_FPA.
11931 2003-03-23 Andrew Cagney <cagney@redhat.com>
11933 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11934 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11935 * gdbarch.h, gdbarch.c: Regenerate.
11936 * valops.c (hand_function_call): Update.
11937 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11938 * frame.c (legacy_saved_regs_this_id): Update.
11939 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11940 * dummy-frame.h: Update.
11941 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11942 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11943 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11944 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11945 * config/m68k/tm-sun3.h: Update.
11946 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11948 * x86-64-tdep.c (x86_64_init_abi): Update.
11949 * vax-tdep.c (vax_gdbarch_init): Update.
11950 * v850-tdep.c (v850_gdbarch_init): Update.
11951 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11952 * sh-tdep.c (sh_gdbarch_init): Update.
11953 * s390-tdep.c (s390_gdbarch_init): Update.
11954 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11955 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11956 (frame_get_saved_regs): Update.
11957 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11958 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11959 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11960 * mips-tdep.c (mips_gdbarch_init): Update.
11961 * mcore-tdep.c (mcore_gdbarch_init): Update.
11962 * m68k-tdep.c (m68k_gdbarch_init): Update.
11963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11964 * ia64-tdep.c (ia64_gdbarch_init): Update.
11965 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11966 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11967 (i386_interix_back_one_frame): Update.
11968 * hppa-tdep.c (hppa_gdbarch_init): Update.
11969 (hppa_init_extra_frame_info): Update.
11970 * h8300-tdep.c (h8300_gdbarch_init): Update.
11971 * frv-tdep.c (frv_gdbarch_init): Update.
11972 * cris-tdep.c (cris_gdbarch_init): Update.
11973 * avr-tdep.c (avr_gdbarch_init): Update.
11974 * arm-tdep.c (arm_gdbarch_init): Update.
11975 * alpha-tdep.c (alpha_gdbarch_init): Update.
11977 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11979 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11980 (arm_get_fp_model): Declare.
11981 * arm-tdep.c (fp_model_strings): New string array.
11982 (arm_fp_model, current_fp_model): New variables.
11983 (arm_get_fp_model): New function.
11984 (arm_set_fp): New function.
11985 (set_fp_model_sfunc): New function.
11986 (show_fp_model): New function.
11987 (_initialize_arm_tdep): Add new command to set/show the FPU.
11988 (arm_extract_return_value): Use arm_get_fp_model.
11989 (arm_store_return_value): Likewise.
11990 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11991 to initialize the floating-point data types.
11992 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11995 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11997 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11998 the current setting of each value.
11999 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
12000 new_set and new_show. Use add_setshow_cmd_full and
12001 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
12002 commands and add new version as subcommands of "set/show arm".
12004 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
12006 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
12007 (set_arm_command, show_arm_command): New functions.
12008 (_initialize_arm_tdep): Add them.
12009 (num_disassembly_options): Renamed from num_flavor_options.
12010 (valid_disassembly_styles): Renamed from valid_flavors.
12011 (disassembly_style): Renamed from disassembly_flavor.
12012 (set_disassembly_style_sfunc): Renamed from
12013 set_disassembly_flavor_sfunc.
12014 (set_disassembly_style): Renamed from set_disassembly_flavor.
12015 (arm_othernames): Updated.
12016 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
12017 command. Add "set/show arm disassembly" commands. Deprecate
12018 "othernames" command.
12020 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
12022 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
12023 (arm-tdep.o): Depend on elf_arm_h.
12025 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
12027 * Makefile.in (coff_internal_h): Define.
12028 (arm-tdep.o): Update dependencies.
12030 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
12032 * arm-tdep.c (prologue_cache): Delete.
12033 (check_prologue_cache, save_prologue_cache): Delete.
12034 (arm_scan_prologue): Don't check or update the prologue_cache.
12035 (arm_gdb_arch_init): Don't initialize it.
12036 (_initialize_arm_tdep): Likewise.
12038 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
12040 * MAINTAINERS (tui): Maintainer of tui code.
12042 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
12044 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
12045 (i386-cygwin-tdep.o): Add dependencies.
12046 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
12047 * i386-cygwin-tdep.c: New file.
12048 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
12049 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
12051 2003-03-20 Andrew Cagney <cagney@redhat.com>
12053 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
12054 (handle_inferior_event): Remove code calling
12055 DYNAMIC_TRAMPOLINE_NEXTPC.
12057 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
12058 already has a full path.
12060 * main.c (gdb_main): Return 1.
12061 (captured_main): Call error to report an invalid interpreter.
12063 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
12064 * alpha-osf1-tdep.c: Include "gdb_string.h".
12066 2003-03-19 J. Brobecker <brobecker@gnat.com>
12068 Continuing work to convert the hppa targets to multiarch partial.
12070 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
12071 method, now that hppa_push_dummy_frame has a conformant prototype.
12072 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
12073 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
12074 for the switch to multiarch partial.
12076 2003-03-19 Kevin Buettner <kevinb@redhat.com>
12078 * mdebugread.c (parse_symbol): For stEnd, we're done counting
12079 when iss is issNull.
12081 2003-03-18 Kevin Buettner <kevinb@redhat.com>
12083 * mips-tdep.c (mips_register_name): Fix fencepost error involving
12084 NUM_REGS bounds check.
12086 2003-03-18 Kevin Buettner <kevinb@redhat.com>
12088 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
12089 * mips-tdep.c (gdb_assert.h): Include.
12090 (mips_generic_reg_names, mips_processor_reg_names): Make static.
12091 (mips_register_name): Handle integer registers explicitly. Add
12093 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
12094 (mips_lsi33k_reg_names): Don't list integer registers; they're
12095 handled by mips_register_name() now.
12096 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
12097 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
12098 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
12099 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
12100 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
12102 2003-03-18 Andrew Cagney <cagney@redhat.com>
12104 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
12106 * gdbtypes.h (print_scalar_formatted): Update declaration.
12107 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
12109 2003-03-18 J. Brobecker <brobecker@gnat.com>
12111 * infrun.c (observer.h): Add #include.
12112 (normal_stop): Add call to observer_notify_normal_stop.
12113 * Makefile.in (infrun.o): Add dependency on observer.h.
12115 2003-03-18 J. Brobecker <brobecker@gnat.com>
12117 Continuing work to convert the hppa targets to multiarch partial.
12118 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
12119 parameter. Reformat comment.
12120 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
12121 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
12122 to match new profile.
12124 2003-03-18 J. Brobecker <brobecker@gnat.com>
12126 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
12127 appear to be working in any case.
12129 2003-03-18 J. Brobecker <brobecker@gnat.com>
12131 * observer.c (observer_test_first_observer): New static variable.
12132 (observer_test_second_observer): Likewise.
12133 (observer_test_third_observer): Likewise.
12134 (observer_test_first_notification_function): New static function.
12135 (observer_test_second_notification_function): Likewise.
12136 (observer_test_third_notification_function): Likewise.
12138 2003-03-17 J. Brobecker <brobecker@gnat.com>
12140 * hppa-tdep.c (gdb_assert.h): Add missing #include.
12141 * somsolib.c (gdb_assert.h): Likewise.
12142 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
12143 (somsolib.o): Likewise.
12145 2003-03-17 Andrew Cagney <cagney@redhat.com>
12147 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
12148 BFD. Simplify setting of di.endian.
12150 2003-03-17 Andrew Cagney <cagney@redhat.com>
12152 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
12153 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
12155 From Elena Zannoni <ezannoni@redhat.com>
12156 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
12157 vector and floating-point parameters.
12158 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
12160 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
12162 2003-03-17 Fernando Nasser <fnasser@redhat.com>
12164 * MAINTAINERS: Remove my name from several maintainership roles.
12166 2003-03-17 Andrew Cagney <cagney@redhat.com>
12168 Fix frame off-by-one bug.
12169 * frame-unwind.h (frame_this_id_ftype): Replace
12170 frame_unwind_id_ftype.
12171 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
12172 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
12173 with "prev_register".
12174 * frame-unwind.c (frame_unwind_find_by_pc): Return
12175 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
12177 * dummy-frame.c (cached_find_dummy_frame): Delete function.
12178 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
12179 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
12180 (dummy_frame_unwind): Update.
12181 * sentinel-frame.c (sentinel_frame_prev_register): Replace
12182 sentinel_frame_register_unwind.
12183 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
12184 (sentinel_frame_unwinder): Update.
12185 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12186 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
12187 * frame.c (create_sentinel_frame): Update. Initialize
12188 "prologue_cache" instead of "unwind_cache".
12189 (frame_register_unwind): Call this frame's prev_register with the
12190 next frame and this frame's prologue cache.
12191 (get_prev_frame): Simplify. Always call prev frame's this_id with
12192 this frame and prev frame's prologue cache. Document that this
12193 call is shifted one to the left when compared to the
12194 frame_register_unwind call.
12195 (legacy_saved_regs_prev_register): Replace
12196 frame_saved_regs_register_unwind.
12197 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
12198 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
12199 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12200 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
12201 (d10v_frame_unwind): Update.
12202 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
12203 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
12204 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
12205 "saved_regs" with "this_saved_regs".
12207 2003-03-16 Andrew Cagney <cagney@redhat.com>
12209 * frame.c (frame_pop): Don't call target_store_registers. Fix
12210 problem reported by Mark Kettenis.
12212 2003-03-16 Mark Kettenis <kettenis@gnu.org>
12214 * i386-tdep.c (i386_register_type): Renamed from
12215 i386_register_virtual_type. Adjust function signature.
12216 (i386_gdbarch_init): Set register_type instead of
12217 deprecated_max_register_raw_size,
12218 deprecated_max_register_virtual_size and register_virtual_type.
12220 2003-03-14 Andrew Cagney <cagney@redhat.com>
12222 * frame.c (get_prev_frame): When a legacy frame, always call
12223 legacy_get_prev_frame. Simplify unwind code using assumption that
12224 the unwinder is new.
12225 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12226 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12227 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12229 2003-03-14 Andrew Cagney <cagney@redhat.com>
12231 * frame.c (get_saved_register): Delete function.
12232 * frame.h (get_saved_register): Delete declaration.
12233 * xstormy16-tdep.c: Update comment.
12234 * regcache.h: Update comments.
12235 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12236 get_saved_register and extract_address, use
12237 frame_read_unsigned_register.
12238 (sparc_frame_saved_pc): Ditto.
12239 (sparc_get_saved_register): Instead of get_saved_register, use
12241 (sparc_pop_frame): Ditto.
12242 * findvar.c: Update comments.
12243 (value_of_register): Call frame_register instead of
12244 get_saved_register.
12245 (value_from_register): Ditto.
12246 * config/sparc/tm-sparc.h: Update comment.
12247 * breakpoint.c: Update comment.
12249 2003-03-14 Andrew Cagney <cagney@redhat.com>
12251 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12252 GET_SAVED_REGISTER.
12253 * gdbarch.h, gdbarch.c: Re-generate.
12254 * frame.h: Update comments.
12255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12256 * x86-64-tdep.c (x86_64_init_abi): Update.
12257 * sparc-tdep.c (sparc_gdbarch_init): Update.
12258 * sh-tdep.c (sh_gdbarch_init): Update.
12259 * mips-tdep.c (mips_gdbarch_init): Update.
12260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12261 * cris-tdep.c (cris_gdbarch_init): Update.
12262 * ia64-tdep.c (ia64_gdbarch_init): Update.
12263 * frame.c (frame_register): Update.
12264 (get_saved_register): Update.
12265 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
12267 2003-03-13 Andrew Cagney <cagney@redhat.com>
12269 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12270 * gdbarch.h, gdbarch.c: Regenerate.
12271 * valops.c (hand_function_call): Update comment.
12272 * stack.c (return_command): Update comment.
12273 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12274 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12276 * x86-64-tdep.c (x86_64_init_abi): Update.
12277 * vax-tdep.c (vax_gdbarch_init): Update.
12278 * v850-tdep.c (v850_gdbarch_init): Update.
12279 * sparc-tdep.c (sparc_gdbarch_init): Update.
12280 * sh-tdep.c (sh_gdbarch_init): Update.
12281 * s390-tdep.c (s390_gdbarch_init): Update.
12282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12283 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12284 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12285 * mips-tdep.c (mips_gdbarch_init): Update.
12286 * mcore-tdep.c (mcore_gdbarch_init): Update.
12287 * m68k-tdep.c (m68k_gdbarch_init): Update.
12288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12289 * ia64-tdep.c (ia64_gdbarch_init): Update.
12290 * i386-tdep.c (i386_gdbarch_init): Update.
12291 * hppa-tdep.c (hppa_gdbarch_init): Update.
12292 * h8300-tdep.c (h8300_gdbarch_init): Update.
12293 * frv-tdep.c (frv_gdbarch_init): Update.
12294 * cris-tdep.c (cris_gdbarch_init): Update.
12295 * avr-tdep.c (avr_gdbarch_init): Update.
12296 * arm-tdep.c (arm_gdbarch_init): Update.
12297 * alpha-tdep.c (alpha_gdbarch_init): Update.
12299 2003-03-13 Andrew Cagney <cagney@redhat.com>
12301 * frame.c (legacy_frame_p): New function.
12302 (get_prev_frame): Use legacy_frame_p.
12303 * frame.h (legacy_frame_p): Declare.
12305 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12307 * MAINTAINERS (write after approval): Alphabetically
12310 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12312 * MAINTAINERS (write after approval): Add myself.
12314 2003-03-12 Andrew Cagney <cagney@redhat.com>
12316 * frame.c (get_prev_frame): Rename the frame parameter to
12318 (get_next_frame, legacy_get_prev_frame): Ditto.
12320 2003-03-12 Andrew Cagney <cagney@redhat.com>
12322 * frame.c (get_current_frame): Check target_has_registers before
12323 checking target_has_stack.
12324 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12325 instead of deprecated_selected_frame.
12326 * findvar.c (value_of_register): Pass "frame", not
12327 deprecated_selected_frame, to value_of_builtin_reg.
12329 2003-03-12 Andrew Cagney <cagney@redhat.com>
12331 * regcache.c (regcache_cooked_write_signed): New function.
12332 (regcache_cooked_write_unsigned): New function.
12333 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12334 (regcache_cooked_read_signed): Fix regnum in range assertion.
12335 * regcache.h (regcache_cooked_write_signed): Declare.
12336 (regcache_cooked_write_unsigned): Declare.
12338 2003-03-12 Andrew Cagney <cagney@redhat.com>
12340 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12341 * gdbarch.h, gdbarch.c: Re-generate.
12342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12343 * x86-64-tdep.h: Update.
12344 * x86-64-tdep.c (x86_64_init_abi): Update.
12345 * v850-tdep.c (v850_gdbarch_init): Update.
12346 * sparc-tdep.c (sparc_gdbarch_init): Update.
12347 * sh-tdep.c (sh_gdbarch_init): Update.
12348 * s390-tdep.c (s390_gdbarch_init): Update.
12349 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12350 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12351 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12352 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12353 * mips-tdep.c (mips_gdbarch_init): Update.
12354 * mcore-tdep.c (mcore_gdbarch_init): Update.
12355 * m68k-tdep.c (m68k_gdbarch_init): Update.
12356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12357 * ia64-tdep.c (ia64_gdbarch_init): Update.
12358 * i386-tdep.c (i386_gdbarch_init): Update.
12359 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12360 * hppa-tdep.c (hppa_gdbarch_init): Update.
12361 * h8300-tdep.c (h8300_gdbarch_init): Update.
12362 * frv-tdep.c (frv_gdbarch_init): Update.
12363 * cris-tdep.c (cris_gdbarch_init): Update.
12364 * avr-tdep.c (avr_gdbarch_init): Update.
12365 * arm-tdep.c (arm_gdbarch_init): Update.
12366 * alpha-tdep.c (alpha_gdbarch_init): Update.
12367 * sh-tdep.c (sh_init_extra_frame_info): Update.
12368 (sh64_init_extra_frame_info): Update.
12369 * ns32knbsd-nat.c (frame_num_args): Update.
12370 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12371 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12372 (xstormy16_frame_chain_valid): Update.
12373 * vax-tdep.c (vax_saved_pc_after_call): Update.
12374 * v850-tdep.c (v850_frame_chain): Update.
12375 (v850_pop_frame): Update.
12376 (v850_init_extra_frame_info): Update.
12377 * sparc-tdep.c (setup_arbitrary_frame): Update.
12378 * ns32k-tdep.c (umax_frame_num_args): Update.
12379 * s390-tdep.c (s390_pop_frame_regular): Update.
12380 * mn10300-tdep.c (mn10300_frame_chain): Update.
12381 (mn10300_pop_frame_regular): Update.
12382 (mn10300_init_extra_frame_info): Update.
12383 * mips-tdep.c (mips_init_frame_pc_first): Update.
12384 (mips_frame_chain): Update.
12385 (mips_pop_frame): Update.
12386 * mcore-tdep.c (mcore_frame_chain): Update.
12387 (mcore_pop_frame): Update.
12388 (mcore_init_extra_frame_info): Update.
12389 * arch-utils.c (init_frame_pc_default): Update.
12390 * m68k-tdep.c (isi_frame_num_args): Update.
12391 (delta68_frame_num_args): Update.
12392 (news_frame_num_args): Update.
12393 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12394 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12395 (alpha_frame_chain): Update.
12396 (alpha_pop_frame): Update.
12397 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12398 (hppa_init_extra_frame_info): Update.
12399 (hppa_frame_chain): Update.
12400 (hppa_frame_chain_valid): Update.
12401 * cris-tdep.c (cris_init_extra_frame_info): Update.
12402 * avr-tdep.c (avr_init_extra_frame_info): Update.
12403 * arm-tdep.c (arm_frame_chain_valid): Update.
12404 (arm_init_extra_frame_info): Update.
12405 (arm_pop_frame): Update.
12406 * frame.c (frame_pc_unwind): Update.
12407 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12408 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12409 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12410 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12411 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12412 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12414 2003-03-12 Andrew Cagney <cagney@redhat.com>
12416 Eliminate the need for POP_FRAME.
12417 * frame.c (do_frame_unwind_register): New function.
12418 (frame_pop): When no POP_FRAME, pop the frame using register
12419 unwind and a scratch regcache.
12420 (frame_saved_regs_pop): Delete function.
12421 (trad_frame_unwinder): Update.
12422 * d10v-tdep.c (d10v_frame_pop): Delete function.
12423 (d10v_frame_unwind): Update.
12424 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12425 (sentinel_frame_unwinder): Update.
12426 * dummy-frame.c (dummy_frame_pop): Delete function.
12427 (dummy_frame_unwind): Update.
12428 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12429 (struct frame_unwind): Update.
12431 2003-03-11 Kevin Buettner <kevinb@redhat.com>
12433 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12434 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12435 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12436 Do range checks on register number obtained from debugging info.
12437 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12438 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12439 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12441 (do_fp_register_row): Fix typo which caused double type to be
12442 used when attempting to unpack a float.
12444 2003-03-11 J. Brobecker <brobecker@gnat.com>
12446 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12448 2003-03-11 Andrew Cagney <cagney@redhat.com>
12450 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12451 frame. Problem found by Corinna Vinschen.
12453 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12455 * doublest.c (floatformat_from_length): Accept also
12456 the real size of 'long double' type.
12458 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
12460 From Klee Dienes <kdienes@apple.com>:
12461 * breakpoint.c (bpstat_copy): Copy the command lines as well
12462 as the old value, to match what is freed in bpstat_clear.
12464 2003-03-10 David Carlton <carlton@math.stanford.edu>
12466 * minsyms.c (add_minsym_to_hash_table): Replace
12467 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12468 (compare_minimal_symbols, compact_minimal_symbols)
12469 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12470 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12471 of DEPRECATED_SYMBOL_MATCHES_NAME.
12472 (lookup_minimal_symbol_solib_trampoline): Ditto.
12474 2003-03-10 Andrew Cagney <cagney@redhat.com>
12476 * regcache.h (regcache_cooked_read_ftype): Define.
12477 (regcache_save, regcache_restore): Add a cooked_read parameter.
12478 * regcache.c (regcache_save, regcache_restore): Update.
12479 (do_cooked_read): New function.
12480 (regcache_cpy): Pass do_cooked_read to regcache_save and
12483 2003-03-10 Andrew Cagney <cagney@redhat.com>
12485 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12486 * gdbarch.h, gdbarch.c: Re-generate.
12487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12488 * x86-64-tdep.h: Update.
12489 * x86-64-tdep.c (x86_64_init_abi): Update.
12490 * v850-tdep.c (v850_gdbarch_init): Update.
12491 * sparc-tdep.c (sparc_gdbarch_init): Update.
12492 * sh-tdep.c (sh_gdbarch_init): Update.
12493 * s390-tdep.c (s390_gdbarch_init): Update.
12494 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12495 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12496 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12497 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12498 * mips-tdep.c (mips_gdbarch_init): Update.
12499 * mcore-tdep.c (mcore_gdbarch_init): Update.
12500 * m68k-tdep.c (m68k_gdbarch_init): Update.
12501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12502 * ia64-tdep.c (ia64_gdbarch_init): Update.
12503 * i386-tdep.c (i386_gdbarch_init): Update.
12504 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12505 * hppa-tdep.c (hppa_gdbarch_init): Update.
12506 * h8300-tdep.c (h8300_gdbarch_init): Update.
12507 * frv-tdep.c (frv_gdbarch_init): Update.
12508 * cris-tdep.c (cris_gdbarch_init): Update.
12509 * avr-tdep.c (avr_gdbarch_init): Update.
12510 * arm-tdep.c (arm_gdbarch_init): Update.
12511 * alpha-tdep.c (alpha_gdbarch_init): Update.
12512 * sh-tdep.c (sh_init_extra_frame_info): Update.
12513 (sh64_init_extra_frame_info): Update.
12514 * ns32knbsd-nat.c (frame_num_args): Update.
12515 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12516 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12517 (xstormy16_frame_chain_valid): Update.
12518 * vax-tdep.c (vax_saved_pc_after_call): Update.
12519 * v850-tdep.c (v850_frame_chain): Update.
12520 (v850_pop_frame): Update.
12521 (v850_init_extra_frame_info): Update.
12522 * sparc-tdep.c (setup_arbitrary_frame): Update.
12523 * ns32k-tdep.c (umax_frame_num_args): Update.
12524 * s390-tdep.c (s390_pop_frame_regular): Update.
12525 * mn10300-tdep.c (mn10300_frame_chain): Update.
12526 (mn10300_pop_frame_regular): Update.
12527 (mn10300_init_extra_frame_info): Update.
12528 * mips-tdep.c (mips_init_frame_pc_first): Update.
12529 (mips_frame_chain): Update.
12530 (mips_pop_frame): Update.
12531 * mcore-tdep.c (mcore_frame_chain): Update.
12532 (mcore_pop_frame): Update.
12533 (mcore_init_extra_frame_info): Update.
12534 * arch-utils.c (init_frame_pc_default): Update.
12535 * m68k-tdep.c (isi_frame_num_args): Update.
12536 (delta68_frame_num_args): Update.
12537 (news_frame_num_args): Update.
12538 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12539 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12540 (alpha_frame_chain): Update.
12541 (alpha_pop_frame): Update.
12542 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12543 (hppa_init_extra_frame_info): Update.
12544 (hppa_frame_chain): Update.
12545 (hppa_frame_chain_valid): Update.
12546 * cris-tdep.c (cris_init_extra_frame_info): Update.
12547 * avr-tdep.c (avr_init_extra_frame_info): Update.
12548 * arm-tdep.c (arm_frame_chain_valid): Update.
12549 (arm_init_extra_frame_info): Update.
12550 (arm_pop_frame): Update.
12551 * frame.c (frame_pc_unwind): Update.
12552 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12553 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12554 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12555 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12556 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12557 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12559 2003-03-10 Andrew Cagney <cagney@redhat.com>
12561 * gdbarch.sh (gdbarch_unwind_pc): New method.
12562 * gdbarch.h, gdbarch.c: Regenerate.
12563 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12564 but use read_pc and FRAME_SAVED_PC as fall backs.
12565 (frame_saved_regs_pc_unwind): Delete function.
12566 (trad_frame_unwinder): Update.
12567 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12568 (struct frame_unwind): Update.
12569 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12570 (dummy_frame_unwind): Update.
12571 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12572 (sentinel_frame_unwinder): Update.
12573 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12574 (d10v_frame_unwind): Update.
12575 (d10v_unwind_pc): New function.
12576 (d10v_gdbarch_init): Set unwind_pc.
12578 2003-03-10 Andrew Cagney <cagney@redhat.com>
12580 * gdbarch.h: Re-generate.
12582 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12584 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12587 2003-03-08 Mark Kettenis <kettenis@gnu.org>
12589 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12591 2003-03-08 Andrew Cagney <cagney@redhat.com>
12593 * cli-out.c: Update copyright.
12594 (cli_out_data): Define typedef. Use instead of ui_out_data.
12596 2003-03-08 Andrew Cagney <cagney@redhat.com>
12598 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12601 2003-03-07 Andrew Cagney <cagney@redhat.com>
12603 * gdbarch.sh: Don't generate two macro definitions when an
12604 undefined macro taking no arguments.
12605 * gdbarch.h: Regenerate.
12607 2002-03-07 Michal Ludvig <mludvig@suse.cz>
12609 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12610 (x86_64_unwind_dummy_id): New functions.
12611 (x86_64_init_abi): Register these two new functions.
12613 2003-03-07 Michal Ludvig <mludvig@suse.cz>
12615 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12616 (x86_64_skip_prologue): Move prologue detection to
12618 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12620 2003-03-05 Andrew Cagney <cagney@redhat.com>
12622 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12623 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12624 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12625 to use unwind_dummy_id when a dummy frame.
12626 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12628 * gdbarch.h, gdbarch.c: Regneerate.
12630 2003-03-05 Andrew Cagney <cagney@redhat.com>
12632 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12633 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12634 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12637 2003-03-05 Andrew Cagney <cagney@redhat.com>
12639 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12640 (struct d10v_unwind_cache): Delete field "frameless". Replace
12641 "next_addr" with "sp_offset". Add "r11_offset".
12642 (d10v_frame_unwind_cache): Update.
12643 (prologue_find_regs): Update. When "mv r11, sp", save the
12644 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12645 RN was saved in r11_offset.
12647 2003-03-05 Andrew Cagney <cagney@redhat.com>
12649 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12650 cached PC value in the next frame.
12652 2003-03-05 Andrew Cagney <cagney@redhat.com>
12654 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12655 "id_unwind_cache" with "id".
12656 (frame_id_unwind): Delete declaration.
12657 * frame.c (frame_id_unwind): Delete function.
12658 (get_prev_frame): Call the frame id unwind method directly. Store
12659 the returned next frame's ID value in NEXT_FRAME. Note that there
12660 is a problem with the wrong unwind ID being called with the wrong
12663 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12665 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12667 2003-03-05 James Ingham <jingham@apple.com>
12668 Daniel Jacobowitz <drow@mvista.com>
12670 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12671 (auto_cp_abi): New variable.
12672 (current_cp_abi, num_cp_abis): Make static.
12673 (CP_ABI_MAX): Define.
12674 (cp_abis): Turn into an array.
12675 (value_virtual_fn_field): Fix formatting.
12676 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12678 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12679 (list_cp_abis, _initialize_cp_abi): New functions.
12680 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12681 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12682 switch_to_cp_abi. Update prototype for register_cp_abi.
12683 * Makefile.in (cp-abi.o): Update dependencies.
12684 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12685 instead of switch_to_cp_abi.
12686 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12688 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12690 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12692 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12694 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12695 * dwarf2loc.c: Include "regcache.h".
12696 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12698 * Makefile.in (dwarf2loc.o): Update dependencies.
12700 2003-03-04 Theodore A. Roth <troth@openavr.org>
12702 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12703 number of io registers reported by remote target is not a multiple of
12706 2003-03-04 David Carlton <carlton@math.stanford.edu>
12708 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12709 (lookup_symbol_aux_psymtabs): Update call to
12710 lookup_partial_symbol.
12711 (lookup_transparent_type, find_main_psymtab)
12712 (make_symbol_overload_list): Ditto.
12714 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12716 * MAINTAINERS (Write after approval): Update my email address.
12718 2003-03-03 Andrew Cagney <cagney@redhat.com>
12720 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12721 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12722 predicate. Replace MAX_REGISTER_RAW_SIZE.
12723 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12724 MAX_REGISTER_VIRTUAL_SIZE.
12725 * regcache.c (legacy_max_register_raw_size): New function.
12726 (legacy_max_register_virtual_size): New function.
12727 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12728 (MAX_REGISTER_RAW_SIZE): Define.
12729 (legacy_max_register_raw_size): Declare.
12730 (legacy_max_register_virtual_size): Declare.
12731 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12732 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12733 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12734 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12735 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12736 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12737 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12738 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12739 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12741 * vax-tdep.c (vax_gdbarch_init): Update.
12742 * v850-tdep.c (v850_gdbarch_init): Update.
12743 * sparc-tdep.c (sparc_gdbarch_init): Update.
12744 * sh-tdep.c (sh_gdbarch_init): Update.
12745 * s390-tdep.c (s390_gdbarch_init): Update.
12746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12747 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12748 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12749 * mips-tdep.c (mips_gdbarch_init): Update.
12750 * mcore-tdep.c (mcore_gdbarch_init): Update.
12751 * m68k-tdep.c (m68k_gdbarch_init): Update.
12752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12753 * ia64-tdep.c (ia64_gdbarch_init): Update.
12754 * i386-tdep.c (i386_gdbarch_init): Update.
12755 * hppa-tdep.c (hppa_gdbarch_init): Update.
12756 * h8300-tdep.c (h8300_gdbarch_init): Update.
12757 * frv-tdep.c (frv_gdbarch_init): Update.
12758 * cris-tdep.c (cris_gdbarch_init): Update.
12759 * avr-tdep.c (avr_gdbarch_init): Update.
12760 * arm-tdep.c (arm_gdbarch_init): Update.
12761 * alpha-tdep.c (alpha_gdbarch_init): Update.
12762 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12763 max_register_raw_size or max_register_virtual_size.
12765 2003-03-03 David Carlton <carlton@math.stanford.edu>
12767 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12768 SYMBOL_MATCHES_NAME, add comment.
12769 (SYMBOL_MATCHES_NATURAL_NAME): New.
12770 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12771 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12772 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12773 * symtab.c (lookup_partial_symbol): Use
12774 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12776 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12777 SYMBOL_MATCHES_NAME.
12780 2003-03-03 David Carlton <carlton@math.stanford.edu>
12782 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12783 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12784 by regexp matching against SYMBOL_NATURAL_NAME.
12786 2003-03-03 David Carlton <carlton@math.stanford.edu>
12788 * linespec.c (find_method): Extract code into collect_methods.
12789 (collect_methods): New.
12791 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12793 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12796 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12797 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12799 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12801 * arch-utils.c (generic_register_byte): Fix to use the loop index
12802 and not regnum when summing the size of all registers up to regnum.
12804 2003-03-01 Andrew Cagney <cagney@redhat.com>
12806 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12807 FRAME_INIT_SAVED_REGS.
12808 * gdbarch.h, gdbarch.c: Regenerate.
12809 * stack.c (frame_info): Update.
12810 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12811 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12812 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12813 * ns32k-tdep.c (ns32k_pop_frame): Update.
12814 * mips-tdep.c (mips_pop_frame): Update.
12815 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12816 * ia64-tdep.c (ia64_frame_chain): Update.
12817 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12818 (ia64_frameless_function_invocation): Update.
12819 (ia64_init_extra_frame_info): Update.
12820 (ia64_pop_frame_regular): Update.
12821 * frame.h (struct frame_info): Update comment.
12822 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12823 * frame.c (frame_saved_regs_register_unwind): Update.
12824 (frame_saved_regs_register_unwind): Update.
12825 (deprecated_generic_get_saved_register): Update.
12826 * cris-tdep.c: Update comment.
12827 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12830 * x86-64-tdep.c (x86_64_init_abi): Update.
12831 * vax-tdep.c (vax_gdbarch_init): Update.
12832 * v850-tdep.c (v850_gdbarch_init): Update.
12833 * sparc-tdep.c (sparc_gdbarch_init): Update.
12834 * sh-tdep.c (sh_gdbarch_init): Update.
12835 * s390-tdep.c (s390_gdbarch_init): Update.
12836 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12837 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12838 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12839 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12840 * mips-tdep.c (mips_gdbarch_init): Update.
12841 * mcore-tdep.c (mcore_gdbarch_init): Update.
12842 * m68k-tdep.c (m68k_gdbarch_init): Update.
12843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12844 * ia64-tdep.c (ia64_gdbarch_init): Update.
12845 * i386-tdep.c (i386_gdbarch_init): Update.
12846 * frv-tdep.c (frv_gdbarch_init): Update.
12847 * avr-tdep.c (avr_gdbarch_init): Update.
12848 * arm-tdep.c (arm_gdbarch_init): Update.
12849 * alpha-tdep.c (alpha_gdbarch_init): Update.
12851 2003-03-01 Andrew Cagney <cagney@redhat.com>
12853 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12854 option enum and switch. When no windows, set the interpreter to
12857 2003-03-01 Andrew Cagney <cagney@redhat.com>
12859 * main.c (captured_main): Replace magic option characters with an
12862 2003-03-01 Andrew Cagney <cagney@redhat.com>
12864 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12865 INIT_EXTRA_FRAME_INFO.
12866 * gdbarch.h, gdbarch.c: Regenerate.
12867 * arm-tdep.c: Update comments.
12868 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12869 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12870 * frame.h, avr-tdep.c: Ditto.
12871 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12872 (create_new_frame, legacy_get_prev_frame): Ditto.
12873 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12874 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12876 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12877 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12878 * v850-tdep.c (v850_gdbarch_init): Ditto.
12879 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12880 * sh-tdep.c (sh_gdbarch_init): Ditto.
12881 * s390-tdep.c (s390_gdbarch_init): Ditto.
12882 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12883 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12884 * mips-tdep.c (mips_gdbarch_init): Ditto.
12885 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12887 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12888 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12889 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12890 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12891 * frv-tdep.c (frv_gdbarch_init): Ditto.
12892 * cris-tdep.c (cris_gdbarch_init): Ditto.
12893 * avr-tdep.c (avr_gdbarch_init): Ditto.
12894 * arm-tdep.c (arm_gdbarch_init): Ditto.
12895 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12896 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12898 2003-03-01 Andrew Cagney <cagney@redhat.com>
12900 * gdbarch.sh (register_type): New function with predicate.
12901 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12902 * gdbarch.h, gdbarch.c: Re-generate.
12903 * arch-utils.c (generic_register_byte): Use generic_register_size.
12904 (generic_register_size): When available, use
12905 gdbarch_register_type.
12906 * regcache.c (init_regcache_descr): When available, initialize the
12907 register type array using gdbarch_register_type. If the
12908 architecture supplies gdbarch_register_type, do not use the legacy
12910 * d10v-tdep.c (d10v_register_type): Replace
12911 d10v_register_virtual_type.
12912 (d10v_gdbarch_init): Set register_type instead of
12913 register_virtual_type.
12915 2003-03-01 Andrew Cagney <cagney@redhat.com>
12917 * Makefile.in (ax-gdb.o): Update dependencies.
12918 * ax-gdb.c: Include "regcache.h".
12919 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12920 * findvar.c (value_of_register): Ditto.
12921 * infcmd.c (default_print_registers_info): Ditto.
12923 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12925 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12926 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12928 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12930 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12933 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12935 * Makefile.in (dwarf2loc.o): Update dependencies.
12936 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12937 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12938 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12939 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12940 (locexpr_tracepoint_var_ref): New function.
12941 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12943 2003-02-28 Andrew Cagney <cagney@redhat.com>
12945 * regcache.c (register_size): New function.
12946 * regcache.h (register_size): Declare
12947 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12948 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12950 2003-02-28 David Carlton <carlton@math.stanford.edu>
12952 * linespec.c (decode_compound): Extract code into find_method.
12953 (find_method): New.
12955 2003-02-28 J. Brobecker <brobecker@gnat.com>
12957 * Makefile.in: Add rules to build and link in observer.o.
12959 2003-02-27 J. Brobecker <brobecker@gnat.com>
12961 * observer.c: Minor comments edits.
12963 2003-02-27 J. Brobecker <brobecker@gnat.com>
12965 * observer.h, observer.c: New file.
12967 2003-02-27 Andrew Cagney <cagney@redhat.com>
12969 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12971 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12973 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12974 (M6812_OP_STS_EXT): Likewise.
12975 (m6811_prologue): Use the above to recognize prologue.
12976 (m6812_prologue): Likewise.
12978 2003-02-27 David Carlton <carlton@math.stanford.edu>
12980 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12982 (compare_psymbols): Ditto.
12983 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12985 2003-02-27 Michael Snyder <msnyder@redhat.com>
12987 * f-lang.c (build_fortran_types): New function.
12988 (_initialize_f_language): Gdbarch-register built-in fortran types.
12989 * doublest.c (extract_floating): Fix warning text.
12991 2003-02-27 Andrew Cagney <cagney@redhat.com>
12993 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12994 predicate. Replaces PUSH_DUMMY_FRAME.
12995 * gdbarch.h, gdbarch.c: Regnerate.
12996 * valops.c (hand_function_call): Update. Call
12997 generic_push_dummy_frame directly.
12998 * vax-tdep.c (vax_gdbarch_init): Update.
12999 * sparc-tdep.c (sparc_gdbarch_init): Update.
13000 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
13001 * m68k-tdep.c (m68k_gdbarch_init): Update.
13002 * hppa-tdep.c (hppa_gdbarch_init): Update.
13003 * alpha-tdep.c (alpha_gdbarch_init): Update.
13004 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
13005 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
13006 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
13007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
13008 push_dummy_frame to generic_push_dummy_frame.
13009 * v850-tdep.c (v850_gdbarch_init): Ditto.
13010 * sh-tdep.c (sh_gdbarch_init): Ditto.
13011 * s390-tdep.c (s390_gdbarch_init): Ditto.
13012 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13013 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13014 * mips-tdep.c (mips_gdbarch_init): Ditto.
13015 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13017 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13018 * i386-tdep.c (i386_gdbarch_init): Ditto.
13019 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13020 * frv-tdep.c (frv_gdbarch_init): Ditto.
13021 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13022 * cris-tdep.c (cris_gdbarch_init): Ditto.
13023 * avr-tdep.c (avr_gdbarch_init): Ditto.
13024 * arm-tdep.c (arm_gdbarch_init): Ditto.
13026 2003-02-26 Kevin Buettner <kevinb@redhat.com>
13028 * mips-tdep.c (show_mips_abi): New function.
13029 (_initialize_mips_tdep): Use show_mips_abi() to implement the
13030 command ``show mips abi''.
13032 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
13034 From Elena Zannoni <ezannoni@redhat.com>
13035 * dbxread.c (process_one_symbol): Only record line 0 if one or
13036 more sline entries have been seen for the function.
13038 2003-02-26 Michael Chastain <mec@shout.net>
13040 * configure: Regenerate with autoconf 000227.
13042 2003-02-26 Michael Chastain <mec@shout.net>
13044 Close PR build/660.
13045 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
13046 for old libc5/glibc.
13047 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
13049 2003-02-26 Kris Warkentin <kewarken@qnx.com>
13051 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
13052 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
13054 2003-02-26 Michael Chastain <mec@shout.net>
13056 * configure.in: New variable HAVE_UINTPTR_T.
13057 * configure, config.in: Regenerated.
13059 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
13062 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
13064 2003-02-25 Andrew Cagney <cagney@redhat.com>
13066 * frame.c (get_prev_frame): Add comment on check for
13067 inside_entry_func. Only check for inside_entry_file when not a
13068 dummy and not a sentinel. Check that the new frame is not inner
13071 2003-02-25 Andrew Cagney <cagney@redhat.com>
13073 * frame.c (frame_debug): New variable.
13074 (_initialize_frame): Add "set/show debug frame" command.
13075 (get_prev_frame): When frame_debug, print reason why unwind
13078 2003-02-25 Michael Chastain <mec@shout.net>
13080 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
13081 to avoid uintptr_t definition problems.
13083 2003-02-25 David Carlton <carlton@math.stanford.edu>
13085 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
13086 (SYMBOL_LINKAGE_NAME): Ditto.
13087 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
13088 SYMBOL_LINKAGE_NAME.
13089 (struct general_symbol_info): Expand comment.
13090 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
13091 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
13092 (SYMBOL_MATCHES_REGEXP): Ditto.
13093 * symtab.c (symbol_natural_name): New function.
13094 * objfiles.h: Replace all uses of SYMBOL_NAME by
13095 DEPRECATED_SYMBOL_NAME.
13096 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
13097 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
13098 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
13099 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
13100 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
13101 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
13102 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
13103 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
13104 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
13105 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
13106 * ada-exp.y: Ditto.
13107 * ada-exp.y: Update copyright.
13108 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
13109 * cp-valprint.c: Ditto.
13111 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
13113 * infptrace.c (detach): Do not flag error if ptrace detach fails
13114 and errno is set to ESRCH.
13116 2003-02-24 Andrew Cagney <cagney@redhat.com>
13118 * infptrace.c (udot_info): Change type of udot_off to long. Use
13119 paddr when printing udot_off's value.
13121 2003-02-24 David Carlton <carlton@math.stanford.edu>
13123 * symtab.c (make_symbol_overload_list): Only read in partial
13124 symtabs containing a matching partial symbol.
13126 2003-02-24 David Carlton <carlton@math.stanford.edu>
13128 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
13129 do the comparison, not strcmp.
13130 * symfile.c (compare_psymbols): Ditto.
13131 * defs.h: Declare strcmp_iw_ordered.
13132 * utils.c (strcmp_iw_ordered): New function.
13134 2003-02-24 Jim Blandy <jimb@redhat.com>
13136 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
13137 support, shared libs): Remove my name from here, to better reflect
13140 2003-02-24 Kris Warkentin <kewarken@qnx.com>
13142 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
13143 (target_ops): Add to_have_continuable_watchpoint.
13144 * target.c (update_current_target): Add INHERIT line for
13145 to_have_continuable_watchpoint.
13146 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
13147 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
13148 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
13149 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
13151 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
13153 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
13156 2003-02-24 Kris Warkentin <kewarken@qnx.com>
13158 * solib.c (solib_open): Call target defined search function after
13159 failing with solib-search-path.
13160 * solist.h (target_so_ops): Add find_and_open_solib function hook and
13161 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
13163 2003-02-24 Kris Warkentin <kewarken@qnx.com>
13165 * MAINTAINERS: Add myself to Write After section.
13167 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
13169 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
13171 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
13173 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
13174 (m68hc11_add_reggroups): New function.
13175 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
13176 (m68hc11_gdbarch_init): Install the reggroups.
13177 (_initialize_m68hc11_tdep): Initialize them.
13179 2003-02-21 James E Wilson <wilson@tuliptree.org>
13181 * MAINTAINERS: Update my email address.
13183 2003-02-21 David Carlton <carlton@math.stanford.edu>
13185 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
13187 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
13189 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
13190 * symtab.h: Add opaque declarations of struct axs_value and
13192 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
13193 (struct location_funcs): New type.
13194 (struct symbol): Add "loc" to aux_value.
13195 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
13196 * dwarf2read.c: Include "dwarf2expr.h".
13197 (dwarf2_symbol_mark_computed): New function.
13198 (read_func_scope): Use it.
13199 (var_decode_location): New function.
13200 (new_symbol): Use it.
13201 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
13203 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
13204 (dwarf2expr_h, dwarf2loc_h): New variables.
13205 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
13206 (dwarf2expr.o, dwarf2loc.o): New rules.
13207 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
13208 * buildsym.c (finish_block): Handle LOC_COMPUTED and
13210 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
13211 * m2-exp.y (yylex): Likewise.
13212 * printcmd.c (address_info, print_frame_args): Likewise.
13213 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13214 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13215 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13216 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13217 * symtab.c (lookup_block_symbol): Likewise.
13219 2003-02-20 Adam Fedor <fedor@gnu.org>
13221 * symtab.h: Remove objc_specific struct
13222 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13223 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13224 Have language_objc use cplus_specific struct.
13226 2003-02-20 Tom Tromey <tromey@redhat.com>
13228 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13229 TYPE_NAME, when printing a String value. PR java/1075.
13231 2003-02-20 Adam Fedor <fedor@gnu.org>
13233 * objc-lang.h (find_methods): Remove declaration.
13234 * objc-lang.c (find_methods): Make static.
13236 2003-02-20 Christopher Faylor <cgf@redhat.com>
13238 * win32-nat.c (get_image_name): Check return value from
13240 (child_xfer_memory): Ditto.
13242 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
13244 * configure.in (TARGET_SYSTEM_ROOT): Set default to
13245 ${exec_prefix}/${target_alias}/sys-root. Match explicit
13246 '${exec_prefix}' (in addition to the expansion thereof) as
13248 * configure: Rebuilt.
13250 2003-02-20 David Carlton <carlton@math.stanford.edu>
13252 * symtab.c (search_symbols): Revert the search_symbols part of my
13253 2002-12-23 patch. Add comment.
13255 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13257 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13258 * dbxread.c (elfstab_build_psymtabs): Don't call
13259 install_minimal_symbols.
13260 (stabsect_build_psymtabs): Likewise.
13261 * elfread.c (elf_symfile_read): Call install_minimal_symbols
13263 * somread.c (som_symfile_read): Call install_minimal_symbols
13264 and do_cleanups earlier.
13265 * nlmread.c (nlm_symfile_read): Likewise.
13266 * mdebugread.c (elfmdebug_build_psymtabs): Call
13267 install_minimal_symbols and make appropriate cleanups.
13269 2003-02-20 Kevin Buettner <kevinb@redhat.com>
13271 * solib.c (reload_shared_libraries): New function.
13272 (_initialize_solib): Add callbacks for ``set solib-search-path''
13273 and ``set solib-absolute-prefix''.
13275 2003-02-20 David Carlton <carlton@math.stanford.edu>
13277 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13279 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13280 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13281 * ada-typeprint.c (ada_typedef_print): Ditto.
13282 * ax-gdb.c (gen_var_ref): Ditto.
13283 * breakpoint.c (print_one_breakpoint): Ditto.
13284 * buildsym.c (finish_block): Ditto.
13285 * c-valprint.c (c_val_print): Ditto.
13286 * expprint.c (print_subexp): Ditto.
13287 * findvar.c (locate_var_value): Ditto.
13288 * infcmd.c (jump_command): Ditto.
13289 * linespec.c (decode_line_2, decode_compound): Ditto.
13290 * maint.c (maintenance_translate_address): Ditto.
13291 * objc-lang.c (compare_selectors, compare_classes): Ditto.
13292 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13294 * p-valprint.c (pascal_val_print): Ditto.
13295 * stabsread.c (define_symbol): Ditto.
13296 * stack.c (print_frame, frame_info, print_block_frame_locals)
13297 (print_frame_arg_vars, return_command): Ditto.
13298 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13299 * symmisc.c (print_symbol): Ditto.
13300 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13301 (compare_search_syms, print_symbol_info, print_msymbol_info)
13302 (rbreak_command): Ditto.
13303 * tracepoint.c (tracepoints_info): Ditto.
13304 * typeprint.c (typedef_print): Ditto.
13305 * valops.c (value_of_variable, hand_function_call): Ditto.
13306 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13307 * ada-typeprint.c: Update Copyright.
13308 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13309 * tracepoint.c, cli/cli-cmds.c: Ditto.
13311 2003-02-20 Kevin Buettner <kevinb@redhat.com>
13313 * frame.c (generic_unwind_get_saved_register): Make non-static.
13314 * frame.h (generic_unwind_get_saved_register): Declare.
13315 * mips-tdep.c (read_next_frame_reg): Fetch register from
13316 current regcache when frame is NULL.
13317 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13319 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13320 instead of frame_register_unwind().
13322 2003-02-20 Andrew Cagney <ac131313@redhat.com>
13324 * remote-sim.c (gdbsim_insert_breakpoint)
13325 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13328 2003-02-20 Andrew Cagney <ac131313@redhat.com>
13330 * remote.c (_initialize_remote): Add commands "set/show remote
13331 hardware-watchpoint-limit" and "set/show remote
13332 hardware-breakpoint-limit".
13333 (remote_hw_watchpoint_limit): Initialize to -1.
13334 (remote_hw_breakpoint_limit): Ditto.
13335 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13337 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13339 * coff-pe-read.c: New file - support reading of minimal symbols from a
13340 portable executable using the export table.
13341 * coff-pe-read.h: New file.
13342 * coffread.c: Include coff-pe-read.h.
13343 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13344 debugging symbols found.
13345 * Makefile.in (SFILES): Add coff-pe-read.o.
13346 (coff_pe_read_h): Define.
13347 (COMMON_OBS): Add coff-pe-read.o.
13348 (coffread.o): Add coff_pe_read_h dependency.
13349 (coff-pe-read.o): New target.
13351 2003-02-19 David Carlton <carlton@math.stanford.edu>
13353 * Makefile.in (SFILES): Add block.c.
13355 (COMMON_OBS): Add block.o.
13357 (x86-64-tdep.o): Add $(block_h).
13358 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13359 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13360 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13361 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13362 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13363 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13364 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13365 * value.h: Add opaque declaration for struct block.
13366 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13367 * ada-lang.h: Ditto.
13368 * x86-64-tdep.c: #include "block.h"
13369 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13370 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13371 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13372 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13373 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13374 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13375 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13376 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13377 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13378 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13379 * symtab.c (block_function): Ditto.
13380 (contained_in): Ditto.
13381 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13382 block.h. Add opaque declaration for struct block.
13383 * symtab.h: Move block_function and contained_in declarations to
13384 block.h. Add opaque declarations for struct block, struct
13386 (struct block): Move to block.h.
13387 (struct blockvector): Ditto.
13388 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13389 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13390 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13391 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13392 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13394 * block.c: New file.
13395 * block.h: New file.
13397 2003-02-19 Theodore A. Roth <troth@openavr.org>
13399 * avr-tdep.c (avr_extract_return_value): Remove function.
13400 (avr_store_return_value): Remove function.
13401 (avr_extract_struct_value_address): Remove function.
13402 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13404 2003-02-19 Andrew Cagney <ac131313@redhat.com>
13406 * rs6000-tdep.c: Include "gdb_assert.h".
13407 (registers_e500): Add "acc" and "spefscr".
13408 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13409 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13410 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13412 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13414 2003-02-18 Keith Seitz <keiths@redhat.com>
13416 * Makefile.in: Add gdbtk-interps.c.
13418 2003-02-18 Kevin Buettner <kevinb@redhat.com>
13420 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13421 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13423 2003-02-18 Andrew Cagney <cagney@redhat.com>
13425 * symtab.h (struct objfile): Add opaque declaration.
13427 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
13429 From Jim Ingham <jingham@apple.com>:
13430 * dbxread.c (process_one_symbol): Use last_function_start rather
13431 than function_start_offset to find the real beginning of the
13432 current function. The latter is just the text section offset on
13433 some systems, the former is always the real function start.
13435 2003-02-17 Andrew Cagney <cagney@redhat.com>
13437 * configure.in: Revert ${target} != ${host}.
13439 2003-02-17 Andrew Cagney <ac131313@redhat.com>
13441 * configure.in (Makefile): Use the test ${target} != ${host},
13442 instead of the absence of the "nm.h" file, to determine of the
13443 configuration non-native.
13444 * configure: Regenerate.
13446 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
13448 From Brian Ford <ford@vss.fsi.com>
13450 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13451 conditionalize tui_active test.
13452 (lookup_cmd_1): Ditto.
13454 2003-02-14 Mark Kettenis <kettenis@gnu.org>
13456 * configure.in: Add check for _etext.
13457 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13459 * config.in, configure: regenerated.
13461 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
13463 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13465 2003-02-14 Andrew Cagney <ac131313@redhat.com>
13467 * main.c (tui_version): Delete variable.
13468 (captured_main): When --tui, set interpreter_p to "tui" instead of
13469 enabling tui_version.
13470 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13472 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13473 * cli/cli-cmds.c (disassemble_command): Ditto.
13474 * defs.h (tui_version): Delete declaration.
13475 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13476 (tui-interp.o): Add rules.
13477 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13479 2003-02-14 Christopher Faylor <cgf@redhat.com>
13481 * win32-nat.c (register_loaded_dll): Correctly set address range for
13484 2003-02-12 Jason Molenda (jmolenda@apple.com)
13486 * symmisc.c (print_objfile_statistics): Include information about
13487 the number of psymtabs and symtabs in each object file.
13489 2003-02-13 Keith R Seitz <keiths@redhat.com>
13491 * main.h (struct captured_main_args): Add interpreter_p.
13492 * main.c (captured_main): Initialize interpreter_p from context.
13493 * gdb.c (main): Set interpreter_p argument.
13494 * Makefile.in (gdb.o): Add dependency for interps.h.
13496 2003-02-12 Andrew Cagney <ac131313@redhat.com>
13498 * event-top.c (cli_command_loop): Delete declaration.
13499 (_initialize_event_loop): Delete function setting event_loop_hook.
13500 * event-top.h (cli_command_loop): Declare. Update copyright.
13501 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13502 * interps.c (current_interp_command_loop): When event_loop_p, call
13505 2003-02-12 Andrew Cagney <ac131313@redhat.com>
13507 * interps.h (interp_command_loop_ftype): Change return type to
13510 2003-02-12 Michal Ludvig <mludvig@suse.cz>
13512 * x86-64-tdep.c (x86_64_extract_return_value)
13513 (x86_64_store_return_value): Use regcache instead of regbuf.
13514 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13515 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13517 2003-02-11 Andrew Cagney <ac131313@redhat.com>
13519 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13520 * aclocal.m4: Regenerate.
13521 * configure: Regenerate.
13523 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13524 TCL_LD_SEARCH_FLAGS.
13526 2003-02-10 Michal Ludvig <mludvig@suse.cz>
13528 * dwarf2cfi.c: Reindented.
13530 2003-02-09 Andrew Cagney <ac131313@redhat.com>
13532 * interps.c (clear_interpreter_hooks): Convert function definition
13535 2003-02-07 David Carlton <carlton@math.stanford.edu>
13537 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13539 2003-02-07 Kevin Buettner <kevinb@redhat.com>
13541 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13542 (struct type): ...to here.
13543 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13545 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13546 (replace_type): Set length on all type variants for a given type.
13548 2003-02-07 Andrew Cagney <ac131313@redhat.com>
13550 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13552 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
13554 2003-02-06 Andrew Cagney <ac131313@redhat.com>
13556 * Makefile.in (symm-nat.o): Update dependencies.
13557 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13558 (lynx-nat.o, ia64-linux-nat.): Ditto.
13559 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13560 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13561 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13563 * Makefile.in (inflow_h): Define.
13564 (procfs.o, inflow.o, procfs.o): Update dependencies.
13565 * inftarg.c (child_stop): Delete extern declaration of
13566 inferior_process_group. Include "inflow.h".
13567 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13568 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13569 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13570 (our_process_group, inferior_process_group): Extern declarations.
13572 * procfs.c: Include "gdb_assert.h".
13574 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13575 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13576 * jv-typeprint.c (java_type_print_base): Ditto.
13577 * typeprint.c (typedef_print): Eliminate STREQ.
13578 * cli/cli-script.c (define_command, define_command): Ditto.
13579 * main.c (captured_main): Ditto.
13580 * values.c (lookup_internalvar): Ditto.
13581 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13582 within `if' conditional.
13583 * linespec.c (decode_line_2): Ditto.
13584 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13585 (bfd_openw_with_cleanup): Ditto.
13587 2003-02-07 Mark Kettenis <kettenis@gnu.org>
13589 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13590 legacy_extract_return_value and store_return_value to
13591 legacy_return_value.
13593 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13595 * win32-nat.c (get_relocated_section_addrs): New function. Find
13596 section load addresses for symbol handling in relocated DLLs.
13597 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13599 2003-02-05 Fred Fish <fnf@intrinsity.com>
13601 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13603 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13605 (angel_RDI_info): Ditto.
13606 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13608 (threads_continue_all_with_signals): Ditto.
13610 2003-02-05 Jim Ingham <jingham@apple.com>
13611 Keith Seitz <keiths@redhat.com>
13612 Elena Zannoni <ezannoni@redhat.com>
13613 Andrew Cagney <ac131313@redhat.com>
13615 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13616 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13617 (SUBDIR_MI_OBS): Add "mi-interp.o".
13618 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13619 (SFILES): Add "interps.c".
13620 (COMMON_OBS): Add "interps.o".
13621 (interps_h, mi_main_h): Define.
13622 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13623 (mi-main.o, main.o, event-top.o): Update dependencies.
13624 * cli/cli-interp.c: New file.
13625 * interps.h, interps.c: New files.
13626 * top.c: (gdb_init): Don't install the default interpreter, handed
13628 * main.c: Include "interps.h".
13629 (interpreter_p): Note that it should malloc'ed.
13630 (captured_command_loop): Call current_interp_command_loop.
13631 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13632 xfree and xstrdup when updating interpreter_p. Install the
13633 default interpreter. Add hack to stop mi1's copyright notice
13635 * event-top.h (gdb_setup_readline): Declare.
13636 (gdb_disable_readline): Declare.
13637 * event-top.c: Include "interps.h".
13638 (display_gdb_prompt): Call current_interp_display_prompt_p.
13639 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13640 gdb_stdlog, and gdb_stdtarg.
13641 (_initialize_event_loop): Don't call gdb_setup_readline.
13642 * cli-out.c (cli_out_set_stream): New function.
13643 * cli-out.h (cli_out_set_stream): Declare.
13645 2003-02-06 Mark Kettenis <kettenis@gnu.org>
13647 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13648 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13649 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13650 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13651 config/i386/i386v42mp.mt: Removed.
13653 2003-02-05 Mark Kettenis <kettenis@gnu.org>
13655 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13658 2003-02-05 Michael Chastain <mec@shout.net>
13660 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13661 2.12.1 and earlier versions.
13663 2003-02-05 Andrew Cagney <ac131313@redhat.com>
13665 Remove orphaned hosts, targets and files.
13666 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13667 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13668 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13669 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13670 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13671 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13672 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13673 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13674 * config/sparc/tm-sp64sim.h: Delete.
13675 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13677 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13678 mips*-dec-mach3* targets.
13680 2003-02-04 Michael Chastain <mec@shout.net>
13682 * NEWS: Fix typo: sepcifying -> specifying.
13684 2003-02-04 Michael Chastain <mec@shout.net>
13686 * dwarfread.c: Add documentation on the state of dwarf-1,
13687 looking towards obsoletion.
13689 2003-02-03 Michael Chastain <mec@shout.net>
13691 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13692 gdb/testsuite/gdb.c++/pr-1023.exp.
13694 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13696 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13697 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13699 * utils.c (init_page_info): Delete reference to MPW in comments.
13700 * main.c (captured_main): Delete #ifdef MPW.
13702 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13704 * NEWS: Note that the m32r-*-elf* is obsolete.
13705 * monitor.c (monitor_expect): Obsolete reference to m32r.
13706 * configure.tgt: Mark m32r-*-elf* as obsolete.
13707 * MAINTAINERS: Mark m32k as obsolete.
13708 * m32r-rom.c: Obsolete file.
13709 * config/m32r/m32r.mt: Obsolete file.
13710 * config/m32r/tm-m32r.h: Obsolete file.
13711 * m32r-stub.c: Obsolete file.
13712 * m32r-tdep.c: Obsolete file.
13714 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13716 * NEWS: Mention that the z8k-zilog-none is obsolete.
13717 * MAINTAINERS: Mark z8k as obsolete.
13718 * configure.tgt: Obsolete the z8k-*-coff* target.
13719 * config/z8k/z8k.mt: Obsolete file.
13720 * config/z8k/tm-z8k.h: Obsolete file.
13721 * z8k-tdep.c: Obsolete file.
13723 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13725 * NEWS: Mention that the mn10200-elf is obsolete.
13726 * configure.tgt: Obsolete mn10200-*-* target.
13727 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13728 mention that the mn10200 is obsolete.
13729 * breakpoint.h: Ditto.
13730 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13731 * config/mn10200/mn10200.mt: Obsolete file.
13732 * config/mn10200/tm-mn10200.h: Obsolete file.
13733 * mn10200-tdep.c: Obsolete file.
13735 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13737 * MAINTAINERS: Mark h8500 as obsolete.
13738 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13739 * findvar.c (value_from_register): Ditto.
13740 * h8500-tdep.c: Mark file as obsolete.
13741 * config/h8500/h8500.mt: Ditto.
13742 * config/h8500/tm-h8500.h: Ditto.
13743 * NEWS: Mention that h8500 is obsolete.
13745 2003-02-04 David Carlton <carlton@math.stanford.edu>
13747 * objfiles.c (allocate_objfile): Always set name. Add comment at
13749 * jv-lang.c (get_dynamics_objfile): Add comment.
13751 2003-02-04 David Carlton <carlton@math.stanford.edu>
13753 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13754 * printcmd.c (build_address_symbolic): Replace uses of
13755 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13756 SYMBOL_NAME, and asm_demangle.
13759 2003-02-04 David Carlton <carlton@math.stanford.edu>
13761 * linespec.c (decode_compound): Extract code into
13763 (lookup_prefix_sym): New function.
13765 2003-02-04 David Carlton <carlton@math.stanford.edu>
13767 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13768 FLOAT_COERCION_BADNESS.
13769 * gdbtypes.c (rank_one_type): Replace all uses of
13770 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13772 2003-02-04 Jim Blandy <jimb@redhat.com>
13774 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13775 section, let dwarf_macinfo_section point to it, not
13778 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13780 Pointed out by Anton Blanchard <anton@samba.org>.
13781 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13782 (ppc_linux_at_sigtramp_return_path): Use it.
13784 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13786 * defs.h (streq): Add prototype.
13787 * utils.c (streq): New function.
13789 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13790 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13791 * mdebugread.c (new_symbol): Likewise.
13792 * stabsread.c (define_symbol): Likewise.
13793 * coffread.c (process_coff_symbol): Likewise.
13794 * dwarfread.c (new_symbol): Likewise.
13796 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13797 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13799 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13800 SYMBOL_INIT_DEMANGLED_NAME.
13801 * objfiles.c: Include "hashtab.h".
13802 (allocate_objfile): Call htab_set_functions_ex for the
13803 demangled_names_hash.
13804 (free_objfile): Call htab_delete for the demangled_names_hash.
13805 * objfiles.h (struct htab): Add declaration.
13806 (struct objfile): Add demangled_names_hash.
13807 * symfile.c: Include "hashtab.h".
13808 (reread_symbols): Call htab_delete for the demangled_names_hash.
13809 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13810 SYMBOL_NAME in the bcache.
13811 * symtab.c: Include "hashtab.h". Update comments.
13812 (create_demangled_names_hash, symbol_set_names): New functions.
13813 (symbol_find_demangled_name): New function, broken out from
13814 symbol_init_demangled_names.
13815 (symbol_init_demangled_names): Use it.
13816 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13817 (SYMBOL_SET_NAMES): New macro.
13818 (symbol_set_names): Add prototype.
13820 2003-02-03 Jim Blandy <jimb@redhat.com>
13822 Use a single, consistent representation for an empty minimal
13823 symbol table in an objfile.
13824 * objfiles.c (terminate_minimal_symbol_table): New function.
13825 (allocate_objfile): Call it.
13826 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13827 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13829 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13830 objfile has minimal symbols, compare minimal_symbol_count to zero,
13831 instead of comparing msymbols with NULL.
13832 * objfiles.c (have_minimal_symbols): Same.
13833 * solib-sunos.c (solib_add_common_symbols): Call
13834 terminate_minimal_symbol_table.
13835 * symfile.c (reread_symbols): Same.
13837 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13839 * s390-tdep.c (s390_address_class_type_flags)
13840 (s390_address_class_type_flags_to_name)
13841 (s390_address_class_name_to_type_flags): New functions.
13842 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13843 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13845 2003-02-03 Michael Snyder <msnyder@redhat.com>
13847 * arm-tdep.c: Fix spell-o in comment.
13849 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13851 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13852 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13853 error messages to contain BFD filename.
13855 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13857 Fix PR gdb/742 gdb/743 gdb/877
13858 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13859 (do_mixed_source_and_assembly): Use
13860 make_cleanup_ui_out_tuple_begin_end and
13861 make_cleanup_ui_out_tuple_begin_end.
13862 (do_mixed_source_and_assembly): Ditto.
13863 * thread.c (do_captured_list_thread_ids): Ditto.
13864 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13865 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13866 ui_out_tuple_end): Delete prototypes.
13867 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13868 ui_out_list_end, ui_out_tuple_end): Delete.
13870 From Kevin Buettner <kevinb@redhat.com>:
13871 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13872 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13873 (do_cleanup_table_end): New functions.
13874 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13875 Use cleanups to invoke_ui_out_tuple_end().
13876 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13877 * cli/cli-setshow.c (cmd_show_list): Use
13878 make_cleanup_ui_out_tuple_begin_end.
13880 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13882 * frame.c (frame_unwind_register): New function.
13883 (frame_unwind_unsigned_register): Use.
13884 (frame_unwind_signed_register): Use.
13885 (frame_read_register): New function.
13886 * frame.h (frame_unwind_register): Declare.
13887 (frame_read_register): Declare.
13889 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13890 and frame_unwind_register instead of read_memory, write_register
13891 and deprecated_write_register_bytes.
13893 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13895 * frame.h: Note that namelen can be negative.
13896 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13899 * NEWS: Mention that the d10v's `regs' command is deprecated.
13900 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13901 (d10v_print_registers_info): New function.
13902 (show_regs): Call d10v_print_registers_info.
13903 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13905 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13907 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13908 lost in the previous patch.
13910 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13912 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13913 * stack.c (print_frame_info_base): Output complete FRAME tuple
13914 for synthesized frames.
13916 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13918 * mips-nat.c (zerobuf): Delete.
13919 (fetch_inferior_registers): Alloc local zerobuf.
13920 (fetch_core_registers): Alloc local zerobuf.
13921 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13922 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13923 * thread-db.c (thread_db_store_registers): Ditto.
13924 * sh-tdep.c (sh_do_register): Ditto.
13925 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13926 * remote-sim.c (gdbsim_store_register): Ditto.
13927 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13928 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13929 * monitor.c (monitor_supply_register): Ditto.
13930 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13931 * mips-nat.c (fetch_inferior_registers): Ditto.
13932 * m68klinux-nat.c (fetch_register): Ditto.
13933 * lynx-nat.c (fetch_inferior_registers): Ditto.
13934 (fetch_inferior_registers): Ditto.
13935 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13936 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13937 (hpux_thread_store_registers): Ditto.
13938 * hppah-nat.c (fetch_register): Ditto.
13939 * hppab-nat.c (fetch_register): Ditto.
13940 * hppa-tdep.c (pa_register_look_aside): Ditto.
13941 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13942 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13944 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13946 * gdbarch.sh: Explictly specify all method levels. When a
13947 variable with an empty level, provide a non-multi-arch default.
13948 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13949 * gdbarch.h: Re-generate.
13950 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13951 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13953 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13955 * defs.h (host_pointer_to_address): Delete declaration.
13956 (address_to_host_pointer): Delete declaration.
13957 * utils.c (host_pointer_to_address): Delete function.
13958 (address_to_host_pointer): Delete function.
13959 * procfs.c (procfs_address_to_host_pointer): New function.
13960 * procfs.c (proc_set_watchpoint): Use.
13961 (procfs_can_use_hw_breakpoint): Update comments.
13962 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13963 (som_solib_add): Use.
13964 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13965 * hppa-tdep.c (unwind_command): Use.
13967 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13969 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13972 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13973 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13974 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13975 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13976 (define_symbol): Update.
13977 * symfile.c (generic_load): Remove references to nindy.
13978 * symtab.c: Remove references to nindy.
13980 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13982 * infcmd.c (print_float_info): Delete code conditional on
13984 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13985 * config/m68k/nm-apollo68b.h: Ditto.
13986 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13987 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13988 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13990 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13992 * config/i386/tm-i386os9k.h: Removed.
13994 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13995 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13996 they're identical to i[3456]86-*-sysv* now.
13997 * config/i386/i386v32.mh: Removed.
13998 * config/i386/xm-i386v32.h: Removed.
13999 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
14001 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
14003 * config/i386/i386dgux.mh: Removed.
14004 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
14006 * configure.in: Fix typo.
14007 * configure: Regenerated.
14009 2003-01-31 David Carlton <carlton@math.stanford.edu>
14011 * dwarf2read.c (dwarf2_locate_sections): Set
14012 dwarf_ranges_section.
14014 2003-01-31 Andrew Cagney <ac131313@redhat.com>
14016 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
14017 * utils.c: Update comments documenting legitimate uses of PTR.
14019 * utils.c: Re-indent.
14021 * config/djgpp/fnchange.lst: Delete nindy files.
14022 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
14023 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
14024 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
14025 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
14026 * nindy-share/README, nindy-share/Onindy.c: Delete files.
14027 * nindy-tdep.c, nindy-share/Makefile: Delete files.
14028 * Makefile.in (init.c): Remove nindy references.
14029 (saber_gdb): Delete rule.
14030 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
14031 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
14033 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
14034 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
14035 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
14036 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
14037 nindy-share/stop.h.
14038 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
14039 * saber.suppress: Delete file.
14041 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
14043 * dbxread.c (stabs_data): New static variable.
14044 (fill_symbuf): Support an in-memory buffer for stabs data.
14045 (stabs_seek): New function.
14046 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
14047 (read_ofile_symtab): Use stabs_seek.
14048 (elfstab_build_psymtabs): Take an asection* instead of
14049 an offset and size. Relocate the stabs data if necessary.
14050 Save the section* for dbx_psymtab_to_symtab.
14051 * dwarf2read.c: Add section variables for each debug section.
14052 (dwarf2_locate_sections): Fill them in.
14053 (dwarf2_read_section): Take an asection* argument.
14054 Relocate the section contents if necessary.
14055 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
14056 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
14057 it to dwarf2_read_section.
14058 (dwarf2_build_frame_info): Update callers.
14059 * elfread.c (elf_symfile_read): Update call to
14060 elfstab_build_psymtabs.
14061 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
14062 (DBX_STAB_SECTION): New macro.
14063 * stabsread.h (elfstab_build_psymtabs): Update prototype.
14064 * symfile.c (symfile_dummy_outputs): New function.
14065 (symfile_relocate_debug_section): New function.
14066 * symfile.h (symfile_relocate_debug_section): Add prototype.
14068 2003-01-31 Richard Henderson <rth@redhat.com>
14070 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
14071 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
14072 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
14073 * alpha-tdep.c (alpha_register_name): Add "unique".
14074 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
14075 (ALPHA_UNIQUE_REGNUM): New.
14076 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
14078 2003-01-31 Andrew Cagney <ac131313@redhat.com>
14080 * README: Remove reference to Ericsson 1800 monitor.
14081 * Makefile.in (remote-es.o): Delete rule.
14082 (ALLDEPFILES): Delete remote-es.c.
14083 * remote-es.c: Delete file.
14084 * config/m68k/es1800.mt: Delete file.
14085 * config/djgpp/fnchange.lst: Update.
14086 * configure.tgt: Delete m68*-ericsson-* target.
14088 2003-01-31 Adam Fedor <fedor@gnu.org>
14090 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
14091 Remove duplicate/shadowing variable of same name.
14093 2003-01-30 Jim Blandy <jimb@redhat.com>
14095 * symfile.c (find_separate_debug_file): Assert that the objfile's
14096 directory name we compute ends with a slash, and then assume that
14097 that's so everywhere we use it.
14099 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
14101 * valops.c (value_assign): Flush frame cache after stores to memory
14104 2003-01-30 Andrew Cagney <ac131313@redhat.com>
14106 * Makefile.in (mon960-rom.o): Delete rule.
14107 * mon960-rom.c: Delete file.
14109 2003-01-30 Andrew Cagney <ac131313@redhat.com>
14111 * d10v-tdep.c: Include "frame-unwind.h".
14112 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
14114 (next_addr, uses_frame): Delete.
14115 (struct d10v_unwind_cache): Define.
14116 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
14117 Use info instead of next_addr and uses_frame globals.
14118 (d10v_frame_init_saved_regs): Delete function.
14119 (d10v_init_extra_frame_info): Delete function.
14120 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
14121 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
14122 init_frame_pc or frame_saved_pc.
14123 (d10v_pop_frame): Delete function.
14124 (do_d10v_pop_frame): Delete function.
14125 (d10v_frame_chain): Delete function.
14126 (d10v_frame_chain_valid): Delete function.
14127 (d10v_frame_pc_unwind): New function.
14128 (d10v_frame_id_unwind): New function.
14129 (saved_regs_unwinder): New function.
14130 (d10v_frame_register_unwind): New function.
14131 (d10v_frame_pop): New function.
14132 (d10v_frame_unwind): New variable.
14133 (d10v_frame_p): New function.
14134 (d10v_frame_saved_pc): Delete function.
14135 * Makefile.in (d10v-tdep.o): Update dependencies.
14137 2003-01-30 J. Brobecker <brobecker@gnat.com>
14139 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
14140 causing some regressions due to a change in the default value
14143 2003-01-29 Richard Henderson <rth@redhat.com>
14144 Elena Zannoni <ezannoni@redhat.com>
14145 Daniel Jacobowitz <drow@mvista.com>
14148 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
14150 (RANGES_SECTION): New.
14151 (dwarf_ranges_buffer): New variable.
14152 (struct comp_unit_head): Add member "die".
14153 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
14154 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
14155 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
14156 (dwarf2_locate_sections): Likewise.
14157 (dwarf2_build_psymtabs): Read .debug_ranges.
14158 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
14159 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
14160 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
14161 Look for DW_AT_ranges and return the bounding box.
14163 2003-01-29 Brian Ford <ford@vss.fsi.com>
14165 * win32-nat.c (cygwin_pid): Removed as unused.
14166 (child_attach): Try fall back to Cygwin pid.
14168 2003-01-29 Jim Blandy <jimb@redhat.com>
14170 * objfiles.h (struct objfile): Doc fix.
14172 2003-01-29 Andrew Cagney <ac131313@redhat.com>
14174 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
14175 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
14176 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
14177 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
14178 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
14179 (FRAME_SAVED_PC): Change to a function with predicate.
14180 * gdbarch.h, gdbarch.c: Re-generate.
14182 2003-01-28 Andrew Cagney <ac131313@redhat.com>
14184 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
14186 * complaints.c (complain): Delete function.
14187 * complaints.h (struct deprecated_complaint): Delete definition.
14188 (complain): Delete declaration.
14190 2003-01-28 Kevin Buettner <kevinb@redhat.com>
14192 * mips-tdep.c (mips_init_extra_frame_info): Return early for
14195 2003-01-27 Andrew Cagney <ac131313@redhat.com>
14197 * sentinel-frame.h, sentinel-frame.c: New files.
14198 * Makefile.in (frame.o): Update dependencies.
14199 (SFILES): Add sentinel-frame.c.
14200 (sentinel_frame_h): Define.
14201 (COMMON_OBS): Add sentinel-frame.o.
14202 (sentinel-frame.o): Specify dependencies.
14203 * frame.c: Include "sentinel-frame.h".
14204 (frame_register_unwind): Rewrite assuming that there is always a a
14206 (frame_register, generic_unwind_get_saved_register): Ditto.
14207 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
14208 (create_sentinel_frame, unwind_to_current_frame): New functions.
14209 (get_current_frame): Rewrite using create_sentinel_frame and
14210 unwind_to_current_frame. When possible, always create a frame.
14211 (create_new_frame): Set next to the sentinel frame.
14212 (get_next_frame): Rewrite. Don't go below the level 0 frame.
14213 (deprecated_update_frame_pc_hack): Update the next frame's PC and
14214 ID cache when necessary.
14215 (frame_saved_regs_id_unwind): Use frame_relative_level.
14216 (deprecated_generic_get_saved_register): Use frame_relative_level,
14217 get_frame_saved_regs, get_frame_pc, get_frame_base and
14219 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14222 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
14224 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14226 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
14228 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14229 (maintenance_set_profile_cmd): Use error () instead of warning ().
14231 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
14233 * configure.in: Check that -pg works if using --enable-profiling.
14234 Check for monstartup and _mcleanup regardless of --enable-profiling.
14235 * maint.c: Check for monstartup and _mcleanup before using them.
14236 * config.in: Regenerated.
14237 * configure: Regenerated.
14239 2003-01-24 Nick Clifton <nickc@redhat.com>
14241 * Add sh2e support:
14243 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
14245 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14246 (sh2e_show_regs): New.
14247 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14248 * config/sh/tm-sh.h: Added sh2e to comments.
14250 2003-01-23 Jim Blandy <jimb@redhat.com>
14252 * symfile.c (syms_from_objfile): Don't print the "(no debugging
14253 symbols found)" message here; we haven't checked for a separate
14254 debug info file yet, so we don't know yet.
14255 (symbol_file_add_with_addrs_or_offsets): Print it here, after
14256 we've looked everywhere. Also, there's no need to print a special
14257 message when we're loading the separate debug info file: the one
14258 symbol_file_add prints is fine.
14260 2003-01-23 Alexander Larsson <alexl@redhat.com>
14261 Jim Blandy <jimb@redhat.com>
14263 Add support for executables whose debug info has been separated
14264 out into a separate file, leaving only a link behind.
14265 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14266 and separate_debug_objfile_backlink.
14267 (put_objfile_before): New declaration.
14268 * symfile.c: #include "filenames.h".
14269 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14270 debug info in a separate file, read that, too. Save the addrs
14271 argument, so we can use it again to read the separated debug info;
14272 syms_from_objfile modifies the table we pass it.
14273 (reread_symbols): After re-reading an objfile, call
14274 reread_separate_symbols to refresh its separate debug info
14275 objfile, if it has one.
14276 (reread_separate_symbols, find_separate_debug_file,
14277 get_debug_link_info, separate_debug_file_exists): New functions.
14278 (debug_file_directory): New global var.
14279 (_initialize_symfile): Initialize debug_file_directory, and
14280 provide the new `set debug-file-directory' command to let the user
14282 * objfiles.c (free_objfile): If this objfile has its debug info in
14283 a separate objfile, free that one too. If this is itself a
14284 separate debug info objfile, clear our parent's backlink.
14285 (put_objfile_before): New function.
14286 * utils.c (gnu_debuglink_crc32): New function.
14287 * defs.h (gnu_debuglink_crc32): New declaration.
14288 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14289 * configure.in: Handle --with-separate-debug-dir config option.
14290 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14291 * acconfig.h (DEBUGDIR): New macro.
14292 * configure, aclocal.m4, config.in: Regenerated.
14294 2003-01-22 Jim Blandy <jimb@redhat.com>
14296 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14297 like the old symbol_file_add, but taking new arguments: you can
14298 now pass in either a `struct section_addr_info' list to say where
14299 each section is loaded, or a `struct section_offsets' table. Pass
14300 these new arguments through to syms_from_objfile as appropriate.
14301 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
14302 with the appropriate quiescent values for the new arguments.
14304 * symfile.c: #include "gdb_assert.h".
14305 (syms_from_objfile): Add the ability to pass in a section offset
14306 table directly, as an alternative to the section_addr_info table.
14307 Document arguments better.
14308 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14309 * symfile.h (syms_from_objfile): Update declaration.
14310 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14312 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14314 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
14316 Original patch by Tom Tromey <tromey@cygnus.com> and
14317 Jason Molenda <jmolenda@apple.com>.
14318 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14319 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14320 * NEWS: Mention profiling.
14321 * configure.in (--enable-gdbtk): Fix typo.
14322 (--enable-profiling): New. Set PROFILE_CFLAGS.
14323 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14325 (profiling_state): New variable.
14326 (mcleanup_wrapper): New function.
14327 (_initialize_maint): Remove NOTYET, fix call to
14328 add_setshow_boolean_cmd for "maint set profile".
14329 * configure: Regenerated.
14331 2003-01-21 Martin M. Hunt <hunt@redhat.com>
14333 * Makefile.in (install-gdbtk): Install PNG images too.
14335 2003-01-21 Andrew Cagney <ac131313@redhat.com>
14337 * exec.c (text_start): Delete global variable.
14338 (exec_file_attach): Make text_start local to the function.
14339 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14340 * valops.c (hand_function_call): Delete code that handles
14341 BEFORE_TEXT_END and AFTER_TEXT_END.
14342 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14343 of CALL_DUMMY_LOCATION.
14344 * gdbarch.c: Regenerate.
14345 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14346 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14347 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14348 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14349 (text_end): Delete extern declaration.
14351 2003-01-21 Andrew Cagney <ac131313@redhat.com>
14353 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14354 * blockframe.c (backtrace_below_main): Move to "frame.c".
14355 (frame_chain_valid): Delete check for backtrace_below_main.
14356 (_initialize_blockframe): Delete initialization, move ``set
14357 backtrace-below-main'' command to "frame.c".
14358 (do_flush_frames_sfunc): Delete function.
14359 * frame.c: Include "command.h" and "gdbcmd.h".
14360 (frame_type_from_pc): New function.
14361 (create_new_frame): Use frame_type_from_pc.
14362 (legacy_get_prev_frame): New function.
14363 (get_prev_frame): Rewrite. When an old style frame, call
14364 legacy_get_prev_frame. Otherwize, unwind the PC first.
14365 (_initialize_frame): Add ``set backtrace-below-main'' command.
14366 * Makefile.in (frame.o): Update dependencies.
14368 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14370 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14371 DEPRECATED_REGISTERS_INFO.
14373 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14375 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14376 Maintainers'. Update `Various Maintainers'.
14378 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14380 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14381 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14382 Suppress actual parameters when `-'.
14383 * gdbarch.h, gdbarch.c: Regenerate.
14385 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14387 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14388 code handling dummy frames.
14390 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14392 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14393 (struct frame_unwind): Add field pop.
14394 * frame.h (frame_pop): Declare.
14395 * frame.c (frame_saved_regs_pop): New function.
14396 (trad_frame_unwinder): Add frame_saved_regs_pop.
14397 (frame_pop): New function.
14398 * dummy-frame.c (dummy_frame_pop): New function.
14399 (discard_innermost_dummy): New function.
14400 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14401 (dummy_frame_unwind): Add dummy_frame_pop.
14402 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14403 * valops.c (hand_function_call): Ditto.
14404 * stack.c (return_command): Ditto.
14406 2003-01-18 Andrew Cagney <ac131313@redhat.com>
14408 * cris-tdep.c: Fix function declaration indentation.
14409 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14410 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14411 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14412 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14413 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14414 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14416 2003-01-18 Michael Chastain <mec@shout.net>
14418 * README (Unpacking and Installation -- quick overview):
14419 Warn against ".../gdb-5.3/gdb/configure".
14421 2003-01-18 Andrew Cagney <ac131313@redhat.com>
14423 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14424 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14425 (struct frame_unwind): Declare opaque.
14426 (dummy_frame_p): Declare function.
14427 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14428 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14429 * dummy-frame.c: Include "frame-unwind.h".
14430 (dummy_frame_p): New function.
14431 (dummy_frame_unwind): New variable.
14432 * frame.c: Include "frame-unwind.h".
14433 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14434 to use the new unwind field.
14435 (set_unwind_by_pc): Delete function.
14436 (create_new_frame, get_prev_frame): Set unwind field using
14437 frame_unwind_find_by_pc.
14438 (trad_frame_unwind, trad_frame_unwinder): New variables.
14439 * frame.h (trad_frame_unwind): Declare variable.
14440 (frame_id_unwind_ftype): Delete declaration.
14441 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14442 (struct frame_unwind): Declare opaque.
14443 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14444 register_unwind with a single unwind pointer.
14445 * frame-unwind.h, frame-unwind.c: New files.
14446 * Makefile.in (SFILES): Add frame-unwind.c.
14447 (frame_unwind_h): Define.
14448 (COMMON_OBS): Add frame-unwind.o.
14449 (frame-unwind.o): Specify dependencies.
14450 (frame.o, dummy-frame.o): Update dependencies.
14452 2003-01-18 Andrew Cagney <ac131313@redhat.com>
14454 * ada-valprint.c: Eliminate PTR.
14455 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14456 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14457 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14458 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14459 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14460 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14461 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
14463 2003-01-17 Andrew Cagney <ac131313@redhat.com>
14465 * main.c (captured_main): Don't use PTR.
14466 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14467 * gdbtypes.c (lookup_primitive_typename): Ditto.
14468 (lookup_struct_elt_type): Ditto.
14469 * f-valprint.c (info_common_command): Ditto.
14470 (list_all_visible_commons): Ditto.
14471 * jv-typeprint.c (java_type_print_base): Ditto.
14473 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14474 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14475 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14476 i386-interix-nat.c and i386-interix-tdep.c. Rename
14477 m68klinux-nat.c and m68klinux-tdep.c. Rename
14478 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14479 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14480 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14481 * main.c (captured_main): Use xfree, not free.
14483 2003-01-16 Andrew Cagney <ac131313@redhat.com>
14485 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14486 ID back using a parameter.
14487 * frame.c (frame_id_unwind): Update call.
14488 (frame_saved_regs_id_unwind): Update.
14489 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14490 * dummy-frame.h (struct frame_id): Add opaque declaration.
14491 (dummy_frame_id_unwind): Update declaration.
14493 2003-01-15 Andrew Cagney <ac131313@redhat.com>
14495 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14497 2003-01-15 Stephen P. Smith <ischis2@cox.net>
14499 * MAINTAINERS (Stephen P. Smith): Updated email address.
14501 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
14504 * breakpoint.c (until_break_command): Add new argument. Use it to
14505 decide whether to stop only at the current frame or not.
14506 * breakpoint.h (until_break_command): Update prototype.
14507 * infcmd.c (until_command): Add new argument to until_break_command
14509 (advance_command): New function.
14510 (_initialize_infcmd): Update help string for 'until' command.
14511 Add new 'advance' command.
14513 2003-01-14 David Carlton <carlton@math.stanford.edu>
14515 * linespec.c (decode_line_1): Normalize comments.
14516 (set_flags): Ditto.
14517 (locate_first_half): Ditto.
14518 (decode_compound): Ditto.
14519 (symtab_from_filename): Ditto.
14520 (decode_all_digits): Ditto.
14521 (decode_dollar): Ditto.
14522 (find_methods): Ditto.
14523 (find_toplevel_char): Ditto.
14525 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14527 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14528 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14529 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14530 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14531 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14532 * language.c, language.h, m32r-tdep.c: Update copyright.
14533 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14534 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14535 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14536 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14537 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14538 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14540 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
14542 * stabsread.h (process_later, resolve_cfront_continuation):
14544 Update copyright years.
14545 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14546 Update copyright year.
14547 * dbxread.c(struct cont_elem): Obsolete.
14548 (process_later, process_now): Obsolete functions.
14549 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14550 Update copyright year.
14551 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14552 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14553 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14554 (parse_partial_symbols): Obsolete cfront support.
14556 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14558 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14559 read_cfront_baseclasses, read_cfront_member_functions,
14560 resolve_cfront_continuation,read_cfront_static_fields,
14561 copy_cfront_struct_fields): Obsolete functions.
14562 (define_symbol, read_one_struct_field): Obsolete cfront support.
14563 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14564 Update Copyright year.
14566 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
14568 * stack.c (print_frame_info, print_stack_frame_base_stub,
14569 print_stack_frame_base, show_and_print_stack_frame_stub,
14570 show_and_print_stack_frame, print_only_stack_frame_stub,
14571 print_only_stack_frame): Delete functions.
14572 (print_stack_frame_stub): Call print_frame_info instead of
14573 print_frame_info_base.
14574 (print_frame_info_base): Rename to print_frame_info.
14575 (backtrace_command_1): Call print_frame_info, instead of
14576 print_frame_info_base.
14577 (current_frame_command): Call print_stack_frame, instead of
14578 print_only_stack_frame.
14579 (frame_command): Call print_stack_frame, instead of
14580 show_and_print_stack_frame.
14581 (up_command): Ditto.
14582 (down_command): Ditto.
14583 * frame.h (print_only_stack_frame): Delete prototype.
14584 * infrun.c (normal_stop): Call print_stack_frame, instead of
14585 show_and_print_stack_frame.
14586 * thread.c (info_threads_command): Call print_stack_frame, instead
14587 of print_only_stack_frame.
14589 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14591 * README (Graphical interface to GDB): Update URL. Point at
14594 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14597 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14599 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14602 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14604 * thread-db.c (attach_thread): Prototype.
14605 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14606 thread information (ti), and valid flags (th_valid, ti_valid).
14607 (attach_thread): Move target_pid_to_str call to after the thread
14608 is added to GDB's list. Initialize the cache.
14609 (thread_get_info_callback, thread_db_map_id2thr)
14610 (thread_db_get_info): New functions.
14611 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14612 (thread_db_store_registers, thread_db_thread_alive)
14613 (thread_db_get_thread_local_address): Use them.
14614 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14615 of calling error() for threads in unknown state.
14617 (clear_lwpid_callback): New function.
14618 (thread_db_resume): Use it to clear the cache.
14620 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14622 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14623 (resume_callback): Remove dead code.
14625 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14627 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14629 * gdbarch.h, gdbarch.c: Regenerate.
14630 * stack.c (frame_info): Only initialize the saved registers when
14631 FRAME_INIT_SAVED_REGS_P.
14632 * frame.c (frame_saved_regs_register_unwind): Assert
14633 FRAME_INIT_SAVED_REGS_P.
14634 (deprecated_generic_get_saved_register): Ditto.
14636 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14638 * source.c (openp): Squelch warning about "filename".
14640 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14642 * source.c (openp): If the file does not exist don't necessarily
14645 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14648 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14649 (integer_types_same_name_p): New function.
14650 (rank_one_type): Use it.
14651 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14653 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14655 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14657 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14658 * configure.in: Add --with-sysroot.
14659 * configure: Regenerated.
14660 * main.c (gdb_sysroot): New variable.
14661 (captured_main): Initialize gdb_sysroot.
14662 * defs.h (gdb_sysroot): New extern declaration.
14663 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14665 2003-01-12 Michael Chastain <mec@shout.net>
14667 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14669 2003-01-12 Michael Chastain <mec@shout.net>
14671 * top.c (print_gdb_version): Bump copyright year to 2003.
14673 2003-01-12 David Carlton <carlton@bactrian.org>
14675 * linespec.c (symtab_from_filename): Rename variable 's' to
14678 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14680 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14682 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14684 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14686 * d10v-tdep.c: Include "gdb_assert.h".
14687 (d10v_store_return_value): Rewrite to match current interface.
14688 (d10v_extract_struct_value_address): Ditto.
14689 (d10v_extract_return_value): Ditto.
14690 (d10v_gdbarch_init): Set store_restore_value,
14691 extract_struct_value_address and extract_return_value.
14693 2003-01-12 J. Brobecker <brobecker@gnat.com>
14695 * hpread.c (set_namestring): New procedure replacing the
14696 SET_NAMESTRING macro.
14697 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14698 by calls to set_namestring.
14700 2003-01-11 J. Brobecker <brobecker@gnat.com>
14702 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14703 a compilation warning.
14704 (hpread_process_one_debug_symbol): Likewise.
14706 2003-01-10 David Carlton <carlton@math.stanford.edu>
14708 * linespec.c (decode_line_1): Rename variable 's' to
14710 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14711 (decode_dollar): Ditto.
14712 (decode_variable): Ditto.
14713 (symbol_found): Ditto.
14715 2003-01-09 Michael Chastain <mec@shout.net>
14717 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14719 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
14721 * win32-nat.c (set_process_privilege): New function.
14722 (child_attach): Call set_process_privilege() to enable the
14723 SE_DEBUG_NAME user privilege if available in process token.
14725 2003-01-10 J. Brobecker <brobecker@gnat.com>
14727 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14728 compilation error in the previous revision.
14730 2003-01-09 David Carlton <carlton@math.stanford.edu>
14732 * linespec.c: Update copyright.
14734 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
14736 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14737 than inferior_ptid.
14738 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14740 2003-01-09 Andrew Cagney <ac131313@redhat.com>
14742 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14744 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14745 (frame_saved_regs_zalloc): Update.
14746 (frame_saved_regs_register_unwind): Update.
14747 (create_new_frame): Update.
14748 (get_prev_frame): Update.
14749 (frame_extra_info_zalloc): Update.
14750 (deprecated_get_frame_saved_regs): Update.
14751 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14752 * cris-tdep.c: Update comment.
14754 * somsolib.h: Fix function indentation.
14755 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14756 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14757 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14758 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14759 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14761 * infrun.c (follow_fork): Use ISO C definition.
14762 * expprint.c (print_subexp): Use xfree instead of free.
14763 * charset.c: Include "gdb_string.h" instead of <string.h>.
14764 (register_iconv_charsets): Use ISO C definition.
14765 (host_charset, target_charset): Ditto.
14766 * Makefile.in (charset.o): Update dependencies.
14767 (mi-cmd-env.o): Update dependencies.
14769 2003-01-08 Andrew Cagney <cagney@redhat.com>
14771 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14774 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14776 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14777 build directories. Save edited gdb output in Mbuild.log. If a
14778 build fails, remove any final GDB executable.
14780 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14782 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14783 replacing hex constants with function names and stripping leading
14784 file name directory prefixes.
14786 2003-01-08 Andrew Cagney <cagney@redhat.com>
14788 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14791 2003-01-08 David Carlton <carlton@math.stanford.edu>
14793 * linespec.c (decode_line_1): Move code into decode_variable.
14794 (decode_variable): New function.
14796 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14798 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14800 2003-01-08 Andrew Cagney <cagney@redhat.com>
14802 * cris-tdep.c (cris_frame_init_saved_regs): Use
14803 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14805 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14806 (sh64_nofp_frame_init_saved_regs): Ditto.
14807 (sh_fp_frame_init_saved_regs): Ditto.
14808 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14809 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14810 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14811 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14813 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
14815 * minsyms.c (lookup_minimal_symbol): Update comment.
14816 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14817 (lookup_minimal_symbol_solib_trampoline): Likewise.
14819 2003-01-08 Andrew Cagney <cagney@redhat.com>
14821 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14822 frame_relative_level.
14824 * alpha-tdep.c: Use get_frame_extra_info.
14825 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14826 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14827 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14828 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14830 * alpha-tdep.c: Use get_next_frame.
14831 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14832 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14833 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14834 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14835 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14836 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14837 * xstormy16-tdep.c: Ditto.
14839 2003-01-07 Andrew Cagney <cagney@redhat.com>
14841 * alpha-tdep.c: Use get_frame_base.
14842 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14843 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14844 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14845 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14846 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14847 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14848 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14849 * config/sparc/tm-sparc.h: Ditto.
14851 2003-01-07 Andrew Cagney <cagney@redhat.com>
14853 * frame.c (deprecated_get_frame_context): New function.
14854 (deprecated_set_frame_context): New function.
14855 * frame.h (deprecated_get_frame_context): Declare.
14856 (deprecated_set_frame_context): Declare.
14857 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14858 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14860 2003-01-07 Andrew Cagney <cagney@redhat.com>
14862 * frame.c (deprecated_set_frame_next_hack): New function.
14863 (deprecated_set_frame_prev_hack): New function.
14864 * frame.h (deprecated_set_frame_next_hack): Declare.
14865 (deprecated_set_frame_prev_hack): Declare.
14866 * mcore-tdep.c (analyze_dummy_frame): Use
14867 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14868 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14870 2003-01-07 David Carlton <carlton@math.stanford.edu>
14872 * linespec.c (decode_line_1): Move code into decode_dollar.
14873 (decode_dollar): New function.
14875 2003-01-07 Andrew Cagney <cagney@redhat.com>
14877 * arm-tdep.c (arm_init_extra_frame_info): Use
14878 deprecated_update_frame_base_hack.
14879 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14880 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14881 (fix_frame_pointer): Ditto.
14882 (mn10300_analyze_prologue): Ditto.
14884 2003-01-07 Andrew Cagney <cagney@redhat.com>
14886 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14887 extra_info using frame_extra_info_zalloc.
14888 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14889 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14890 (sh64_init_extra_frame_info): Ditto.
14891 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14892 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14893 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14894 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14895 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14896 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14897 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14898 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14899 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14900 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14901 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14902 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14904 * mn10300-tdep.c (analyze_dummy_frame): Use
14905 deprecated_set_frame_extra_info_hack.
14906 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14908 2003-01-07 J. Brobecker <brobecker@gnat.com>
14910 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14911 class is not scText. These do not define "real" procedures.
14912 (parse_partial_symbols): Likewise.
14914 2003-01-06 Michael Snyder <msnyder@redhat.com>
14916 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14918 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14920 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14921 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14922 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14923 deprecated_frame_xmalloc_with_cleanup.
14924 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14925 deprecated_frame_xmalloc.
14926 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14927 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14929 2003-01-06 Andrew Cagney <cagney@redhat.com>
14931 * x86-64-linux-tdep.c: Include "osabi.h".
14932 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14934 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14936 2003-01-06 Andrew Cagney <cagney@redhat.com>
14938 * MAINTAINERS (Target Instruction Set Architectures): Update
14939 arm-elf. Can be built with -Werror, has been multiarched.
14941 * value.h (unpack_long): Make buffer parameter constant.
14942 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14943 * scm-lang.h (scm_parse): Ditto.
14944 * defs.h (extract_typed_address, extract_address): Ditto.
14945 (extract_long_unsigned_integer): Ditto.
14946 * inferior.h (unsigned_pointer_to_address): Ditto.
14947 (signed_pointer_to_address): Ditto.
14948 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14949 * gdbarch.h, gdbarch.c: Regenerate.
14950 * findvar.c (extract_long_unsigned_integer): Update.
14951 (extract_address): Update.
14952 (extract_typed_address): Update.
14953 (unsigned_pointer_to_address): Update.
14954 * values.c (unpack_long): Update.
14955 (unpack_double): Update.
14956 (unpack_pointer): Update.
14957 (unpack_field_as_long): Update.
14958 * d10v-tdep.c (d10v_pointer_to_address): Update.
14959 * avr-tdep.c (avr_pointer_to_address): Update.
14960 * scm-lang.c (scm_unpack): Update.
14961 * findvar.c (signed_pointer_to_address): Update.
14963 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14965 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14966 since it is in i386-tdep.c.
14968 2003-01-06 J. Brobecker <brobecker@gnat.com>
14970 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14971 failure introduced in the previous change.
14973 2003-01-05 Michael Chastain <mec@shout.net>
14975 * README: Remove references to deleted remote-*.c files:
14976 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14977 remote-nrom.c, remote-os9k.c, remote-udi.c.
14979 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14981 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14982 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14983 i386_get_longjmp_target.
14985 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14987 * arm-tdep.c (prologue_cache): Change to a pointer.
14988 (_initialize_arm_tdep): Allocate prologue_cache.
14989 (check_prologue_cache): Update.
14990 (save_prologue_cache): Update.
14991 (arm_gdbarch_init): Update.
14993 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14995 * stabsread.c (update_method_name_from_physname): Call complaint()
14998 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15000 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
15001 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
15002 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
15004 * blockframe.c: Include "gdbcmd.h" and "command.h".
15005 (backtrace_below_main): New variable.
15006 (file_frame_chain_valid, func_frame_chain_valid)
15007 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
15008 (generic_func_frame_chain_valid): Remove functions.
15009 (frame_chain_valid, do_flush_frames_sfunc): New functions.
15010 (_initialize_blockframe): New function.
15011 * Makefile.in (blockframe.o): Update dependencies.
15012 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
15013 comment. Call frame_chain_valid ().
15014 * frame.h: Remove old prototypes. Add prototype for
15015 frame_chain_valid and update comments to match.
15016 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
15017 Remove old comment.
15018 * gdbarch.h: Regenerated.
15019 * gdbarch.c: Regenerated.
15021 * alpha-tdep.c (alpha_gdbarch_init): Don't call
15022 set_gdbarch_frame_chain_valid.
15023 * avr-tdep.c (avr_gdbarch_init): Likewise.
15024 * cris-tdep.c (cris_gdbarch_init): Likewise.
15025 * frv-tdep.c (frv_gdbarch_init): Likewise.
15026 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
15027 * i386-tdep.c (i386_svr4_init_abi): Likewise.
15028 (i386_nw_init_abi): Likewise.
15029 (i386_gdbarch_init): Likewise.
15030 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
15031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
15032 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
15033 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
15034 * mips-tdep.c (mips_gdbarch_init): Likewise.
15035 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
15036 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
15037 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
15038 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15039 * s390-tdep.c (s390_gdbarch_init): Likewise.
15040 * sh-tdep.c (sh_gdbarch_init): Likewise.
15041 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15042 * v850-tdep.c (v850_gdbarch_init): Likewise.
15043 * vax-tdep.c (vax_gdbarch_init): Likewise.
15044 * x86-64-tdep.c (x86_64_init_abi): Likewise.
15046 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
15047 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
15048 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
15049 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
15050 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
15051 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
15052 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
15053 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
15055 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15057 * Makefile.in (acconfig_h): Remove incorrect macro.
15058 (config_h): Define.
15059 (osabi.o): Update dependencies.
15060 * configure.tgt: Set gdb_osabi based on target triplet.
15061 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
15062 * configure: Regenerated.
15063 * config.in: Regenerated.
15064 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
15065 (GDB_OSABI_DEFAULT): Define if not already defined.
15066 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
15067 (set_osabi_string): New variables.
15068 (gdbarch_register_osabi): Add new OS ABI to
15069 gdb_osabi_available_names.
15070 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
15071 (set_osabi, show_osabi): New functions.
15072 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
15074 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15076 * arch-utils.c (gdbarch_info_init): Set osabi to
15077 GDB_OSABI_UNINITIALIZED.
15078 * gdbarch.sh: Add osabi to struct gdbarch and to struct
15079 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
15080 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
15081 * gdbarch.c: Regenerated.
15082 * gdbarch.h: Regenerated.
15083 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
15085 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
15086 * osabi.h (enum gdb_osabi): Move to defs.h.
15087 (gdbarch_init_osabi): Update prototype.
15088 * defs.h (enum gdb_osabi): Moved here.
15089 * Makefile.in: Update dependencies.
15091 * alpha-tdep.h: Don't include "osabi.h".
15092 (struct gdbarch_tdep): Remove osabi member.
15093 * alpha-tdep.c: Include "osabi.h".
15094 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15095 iterate over arches. Update call to gdbarch_init_osabi.
15096 (alpha_dump_tdep): Don't dump osabi.
15097 * alpha-linux-tdep.c: Include "osabi.h".
15098 * alpha-osf1-tdep.c: Include "osabi.h".
15099 * alphafbsd-tdep.c: Include "osabi.h".
15100 * alphanbsd-tdep.c: Include "osabi.h".
15102 * arm-tdep.h: Don't include "osabi.h".
15103 (struct gdbarch_tdep): Remove osabi member.
15104 * arm-tdep.c: Include "osabi.h".
15105 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15106 iterate over arches. Update call to gdbarch_init_osabi.
15107 (arm_dump_tdep): Don't dump osabi.
15108 * arm-linux-tdep.c: Include "osabi.h".
15109 * armnbsd-tdep.c: Include "osabi.h".
15111 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
15112 Update call to gdbarch_init_osabi.
15114 * i386-tdep.h: Don't include "osabi.h".
15115 (struct gdbarch_tdep): Remove osabi member.
15116 * i386-tdep.c: Include "osabi.h".
15117 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15118 iterate over arches. Update call to gdbarch_init_osabi.
15119 (i386_dump_tdep): Don't dump osabi.
15120 * i386-linux-tdep.c: Include "osabi.h".
15121 * i386-sol2-tdep.c: Include "osabi.h".
15122 * i386bsd-tdep.c: Include "osabi.h".
15123 * i386gnu-tdep.c: Include "osabi.h".
15124 * i386ly-tdep.c: Include "osabi.h".
15125 * i386nbsd-tdep.c: Include "osabi.h".
15126 * i386obsd-tdep.c: Include "osabi.h".
15128 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
15129 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15130 check osabi when iterating over arches. Update call to
15131 gdbarch_init_osabi.
15132 (mips_dump_tdep): Don't dump osabi.
15134 * ns32k-tdep.h: Don't include "osabi.h".
15135 (struct gdbarch_tdep): Remove.
15136 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
15137 gdbarch_lookup_osabi. Don't iterate over arches. Don't
15138 allocate tdep. Update call to gdbarch_init_osabi.
15139 (ns32k_dump_tdep): Remove.
15140 (_initialize_ns32k_tdep): Update call to gdbarch_register.
15141 * ns32knbsd-tdep.c: Include "osabi.h".
15143 * ppc-tdep.h: Don't include "osabi.h".
15144 (struct gdbarch_tdep): Remove osabi member.
15145 * rs6000-tdep.c: Include "osabi.h".
15146 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
15147 osabi when iterating over arches. Update call to
15148 gdbarch_init_osabi.
15149 (rs6000_dump_tdep): Don't dump osabi.
15150 * ppc-linux-tdep.c: Include "osabi.h".
15151 * ppcnbsd-tdep.c: Include "osabi.h".
15153 * sh-tdep.h: Don't include "osabi.h".
15154 (struct gdbarch_tdep): Remove osabi member.
15155 * sh-tdep.c: Include "osabi.h".
15156 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15157 iterate over arches. Update call to gdbarch_init_osabi.
15158 (sh_dump_tdep): Don't dump osabi.
15159 * shnbsd-tdep.c: Include "osabi.h".
15161 * sparc-tdep.c: Include "osabi.h".
15162 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15163 iterate over arches. Update call to gdbarch_init_osabi.
15164 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
15167 * vax-tdep.h: Don't include "osabi.h".
15168 (struct gdbarch_tdep): Remove.
15169 * vax-tdep.c: Include "osabi.h".
15170 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15171 iterate over arches. Don't allocate tdep. Update call
15172 to gdbarch_init_osabi.
15173 (vax_dump_tdep): Remove.
15174 (_initialize_vax_tdep): Update call to gdbarch_register.
15176 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15178 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
15180 (breakpoint_re_set_one): Don't fetch the value for a disabled
15183 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15185 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
15186 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
15187 (COERCE_FLOAT_TO_DOUBLE): Remove.
15188 * gdbarch.c: Regenerate.
15189 * gdbarch.h: Regenerate.
15190 * Makefile.in: Remove value_h from gdbarch_h.
15191 * valops.c (coerce_float_to_double): New variable.
15192 (default_coerce_float_to_double): Remove.
15193 (standard_coerce_float_to_double): Remove.
15194 (value_arg_coerce): Use coerce_float_to_double.
15195 (_initialize_valops): Add "set coerce-float-to-double".
15196 * value.h (default_coerce_float_to_double): Remove prototype.
15197 (standard_coerce_float_to_double): Remove prototype.
15199 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
15201 * mdebugread.c (parse_symbol): Likewise.
15202 * stabsread.c (define_symbol): Mark all functions as prototyped.
15204 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
15205 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
15206 set_gdbarch_coerce_float_to_double.
15207 * arm-tdep.c (arm_gdbarch_init): Likewise.
15208 * frv-tdep.c (frv_gdbarch_init): Likewise.
15209 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
15210 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
15211 * mips-tdep.c (mips_gdbarch_init): Likewise.
15212 (mips_coerce_float_to_double): Remove.
15213 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15214 (rs6000_coerce_float_to_double): Remove.
15215 * s390-tdep.c (s390_gdbarch_init): Likewise.
15216 * sh-tdep.c (sh_gdbarch_init): Likewise.
15217 (sh_coerce_float_to_double): Remove.
15218 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15219 (sparc_coerce_float_to_double): Remove.
15220 * v850-tdep.c (v850_gdbarch_init): Likewise.
15221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15222 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15223 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15224 (hppa_coerce_float_to_double): Remove prototype.
15225 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15227 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15229 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15231 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15233 Suggested by Stewart Brown <sb24@avaya.com>:
15234 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15235 in recursive calls. Handle TYPE_CODE_TYPEDEF.
15236 (c_type_print_varspec_suffix): Likewise.
15238 2003-01-04 Mark Kettenis <kettenis@gnu.org>
15240 * configure.in: Don't set and AC_SUBST SUBDIRS.
15241 * configure: Regenerated.
15243 * configure.in: Remove code dealing with shared libraries.
15244 * Makefile.in: Remove HLDFLAGS and HLDENV.
15245 * configure: Regenerated.
15247 2003-01-04 Andrew Cagney <ac131313@redhat.com>
15249 * frame.c (deprecated_frame_xmalloc): New function.
15250 (deprecated_set_frame_saved_regs_hack): New function.
15251 (deprecated_set_frame_extra_info_hack): New function.
15252 * frame.h (deprecated_frame_xmalloc): Declare.
15253 (deprecated_set_frame_saved_regs_hack): Declare.
15254 (deprecated_set_frame_extra_info_hack): Declare.
15256 2003-01-04 Mark Kettenis <kettenis@gnu.org>
15258 * configure.in: Move code that provides the --enable-gdbtk option
15259 right after the code that handles the --enable-tui option, and
15260 polish it somewhat.
15261 * configure: Regenerated.
15263 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
15264 AC_CHECK_FUNCS and remove the old check for pread64.
15265 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15266 * acconfig.h (_GNU_SOURCE): Add.
15267 (HAVE_PREAD64): Remove.
15268 * configure, aclocal.m4, config.in: Regenerated.
15270 2003-01-03 Andrew Cagney <ac131313@redhat.com>
15272 * alpha-tdep.c: Use get_frame_saved_regs.
15273 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15274 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15275 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15276 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15277 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15279 2003-01-03 Mark Kettenis <kettenis@gnu.org>
15281 * configure.in: Remove all use of the SUBDIRS variable; add
15282 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15283 code providing the --enable-multi-ice option, and move it right in
15284 front of the code that checks whether gdbserver is supported.
15286 * configure: Regenerated.
15287 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15290 2003-01-03 Andrew Cagney <cagney@redhat.com>
15292 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15293 * avr-tdep.c, cris-tdep.c: Ditto.
15294 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15295 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15297 2003-01-03 Mark Kettenis <kettenis@gnu.org>
15299 * configure.in: Remove --enable-netrom option.
15300 * configure: Regenerated.
15302 2003-01-03 Mark Kettenis <kettenis@gnu.org>
15304 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15305 declaration for `struct re_pattern_buffer' instead.
15306 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15308 2003-01-03 J. Brobecker <brobecker@gnat.com>
15310 * mdebugread.c (parse_symbol): Count until the stEnd matching
15311 the structure name.
15313 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15315 * configure.in: Remove --with-cpu option.
15316 subscripts. Remove evil changequotes here.
15317 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15318 * config.in, configure: Regenerated.
15320 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15321 * configure.in: Cleanup section that sources GDB and BFD configure
15322 subscripts. Remove evil changequotes here.
15323 * config.in, configure: Regenerated.
15325 2003-01-02 Andrew Cagney <ac131313@redhat.com>
15327 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15328 frame accessor methods.
15329 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15330 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15331 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15332 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15333 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15334 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15335 * z8k-tdep.c: Ditto.
15337 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15339 * configure.in: Remove UI_OUT configuration code.
15340 * ada-lang.c: Update assuming UI_OUT is always true.
15341 * Makefile.in (UIOUT_CFLAGS): Remove.
15342 * configure: Regenerated.
15343 * TODO: Remove blurb about elimination of -DUI_OUT.
15345 * configure.in: Move code that provides the --enable-gdbcli,
15346 --enable-gdbmi options right before the code that handles the
15347 --enable-tui option. Polish a bit.
15348 * configure: Regenerated.
15350 * configure.in: Rewrite check for GNU regex and the
15351 --without-included regex option, and move it into the "Checks for
15352 library functions" section. This makes us use the system regex
15353 again by default on systems with version 2 of the GNU C library.
15354 This was apparently broken.
15355 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15356 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15357 * config.in, configure: Regenerated.
15359 * configure.in: Move code that provides the --enable-tui option
15360 before the "Checks for libraries" section. Polish the code
15361 somewhat and set need_curses to yes if we build the TUI. Rewrite
15362 code that looks for a library providing termcap functionality to
15363 match more closely what's done in the Readline library, and move
15364 it into to the "Checks for libraries" section.
15365 * configure: Regenerated.
15366 * Makefile.in (TERMCAP): Remove variable.
15367 * config/i386/go32.mh (TERMCAP): Remove variable.
15369 2003-01-02 Andrew Cagney <ac131313@redhat.com>
15371 * MAINTAINERS: Mention gdb_mbuild.sh.
15372 * gdb_mbuild.sh: Rewrite.
15374 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15376 * configure.in: Fix typo in last change.
15377 * config.in, configure: Regenerated.
15379 2003-01-02 Andrew Cagney <ac131313@redhat.com>
15381 * valarith.c (value_binop): Delete obsolete code and comments.
15382 * configure.host: Ditto.
15383 * buildsym.h (make_blockvector): Ditto.
15384 * buildsym.c (make_blockvector): Ditto.
15385 * defs.h (enum language): Ditto.
15386 (chill_demangle): Ditto.
15387 * elfread.c (elf_symtab_read): Ditto.
15388 * dwarfread.c (CHILL_PRODUCER): Ditto.
15389 (set_cu_language): Ditto.
15390 (handle_producer): Ditto.
15391 * expprint.c (print_subexp): Ditto.
15392 * gdbtypes.c (chill_varying_type): Ditto.
15393 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15394 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15395 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15396 (chill_varying_type): Ditto.
15397 * language.h (_LANG_chill): Ditto.
15398 * language.c (binop_result_type, integral_type): Ditto.
15399 (character_type, string_type, structured_type): Ditto.
15400 (lang_bool_type, binop_type_check): Ditto.
15401 * stabsread.h (os9k_stabs): Ditto.
15402 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15403 (define_symbol, read_type, read_struct_fields): Ditto.
15404 (read_array_type, read_enum_type, read_huge_number): Ditto.
15405 (read_range_type, start_stabs): Ditto.
15406 * symfile.c (init_filename_language_table): Ditto.
15407 (add_psymbol_with_dem_name_to_list): Ditto.
15408 * symtab.c (symbol_init_language_specific): Ditto.
15409 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15410 * symtab.h (struct general_symbol_info): Ditto.
15411 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15412 * typeprint.c (typedef_print): Ditto.
15413 * utils.c (fprintf_symbol_filtered): Ditto.
15414 * valops.c (value_cast, search_struct_field, value_slice): Delete
15416 (varying_to_slice): Delete function.
15417 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15418 (varying_to_slice): Delete declaration.
15419 * MAINTAINERS: Update.
15421 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15423 * configure.in: Reorganize "Checks for library functions section"
15424 a bit. Remove check for `btowc' and `isascii' functions.
15425 * configure: Regenerated.
15427 * acconfig.h (_MSE_INT_H): Remove.
15428 * configure.in: Create "Checks for header files" section, and move
15429 appropriate tests there. Don't check for objlist.h, wchar.h,
15430 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15431 misdetection fix. Also add "Checks for types", "Checks for
15432 compiler characteristics" and "Checks for library functions"
15434 * config.in, configure: Regenerated.
15436 * configure.in: Create "Checks for programs" section, and move
15437 appropriate tests there.
15439 2003-01-01 Mark Kettenis <kettenis@gnu.org>
15441 * configure.in: Create "Checks for libraries" section, and move
15442 appropriate tests there. Cleanup check for wctype in libw. Use
15443 AC_SEARCH_LIBS to see whether we need libsocket.
15444 * configure: Regenerated.
15446 For older changes see ChangeLog-2002
15452 version-control: never