* dwarf2-frame.c (dwarf2_reg_rule): Add REG_RA and REG_CFA.
[binutils-gdb.git] / gdb / ChangeLog
1 2003-12-27 Mark Kettenis <kettenis@gnu.org>
2
3 * dwarf2-frame.c (dwarf2_reg_rule): Add REG_RA and REG_CFA.
4 (dwarf2_frame_cache): Initialize PC_REGNUM with REG_RA and
5 SP_REGNUM with REG_CFA. Don't overwrite the initialized register
6 rule for registers left unspecified by the CFI. Remove the
7 special handling of PC_REGNUM. Add code to eleminate any REG_RA
8 rules.
9 (dwarf2_frame_prev_register): Remove the special handling of
10 SP_REGNUM. Add support for the REG_CFA rule.
11
12 2003-12-26 Mark Kettenis <kettenis@gnu.org>
13
14 * i386obsd-tdep.c: Include "regset.h", "gdb_assert.h" and
15 "gdb_string.h".
16 (i386obsd_r_reg_offset): New variable.
17 (i386obsd_aout_supply_regset)
18 (i386obsd_aout_regset_from_core_section): New functions.
19 (i386obsd_supply_reg, fetch_core_registers): Remove functions.
20 (i286obsd_core_fns): Remove variable.
21 (i386obsd_init_abi): Initialize TDEP->gregset_reg_offset,
22 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Set
23 regset_from_core_section. Use ARRAY_SIZE to initialize
24 TDEP->sc_num_regs.
25 (_initialize_i386obsd_tdep): Don't call add_core_fns.
26
27 * i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
28 (_initialize_i386bsd_tdep): Register i386bsd_core_osabi_sniffer.
29
30 * i386-linux-nat.c: Add comment.
31
32 2003-12-26 Christopher Faylor <cgf@redhat.com>
33
34 * win32-nat.c: Add some comments about below change.
35
36 2003-12-25 Christopher Faylor <cgf@redhat.com>
37
38 Fix for PR threads/1048
39 * win32-nat.c (thread_info_struct): Add reload_context flag.
40 (thread_rec): Don't reload thread context here. Just set a flag.
41 (do_child_fetch_inferior_registers): Reload thread context here if
42 appropriate. Avoid doing anything if current_thread is NULL thanks to
43 strange Windows behavior.
44 (child_fetch_inferior_registers): Avoid doing anything if
45 current_thread is NULL.
46 (do_child_store_inferior_registers): Ditto.
47 (child_store_inferior_registers): Ditto.
48 (child_kill_inferior): Ditto.
49 (fake_create_process): Pretend to create a process for pathological
50 windows attach situation.
51 (get_child_debug_event): Call fake_create_process when the first event
52 noticed is thread creation rather than process creation.
53 (child_attach): Always set attach_flag when attaching.
54 (child_create_inferior): Set attach_flag to zero since we're not
55 attaching.
56
57 2003-12-25 Christopher Faylor <cgf@redhat.com>
58
59 * win32-nat.c (get_child_debug_event): Keep main thread id around even
60 after thread exits since Windows insists on continuing to report events
61 against it.
62
63 2003-12-22 Mark Kettenis <kettenis@gnu.org>
64
65 * dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
66 address column.
67
68 2003-12-21 Jim Blandy <jimb@redhat.com>
69
70 * breakpoint.c (bpstat_do_actions): To ensure that
71 clear_proceed_status doesn't free the command tree we're
72 evaluating out from under us, zero the bpstat's pointer to it, and
73 take care of freeing it ourselves.
74 * cli/cli-script.c (make_cleanup_free_command_lines): Make this
75 function externally visible.
76 * cli/cli-script.h (make_cleanup_free_command_lines): New
77 declaration.
78
79 2003-12-20 Mark Kettenis <kettenis@gnu.org>
80
81 * x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
82 RIP.
83
84 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
85
86 * hppa-tdep.c (hppa_gdbarch_init): Set long double floating
87 point type to floatformat_ia64_quad_big.
88
89 2003-12-18 Kevin Buettner <kevinb@redhat.com>
90
91 * frv-tdep.c (skip_prologue_using_sal): New function. Taken verbatim
92 from mips-tdep.c.
93 (frv_analyze_prologue): Rework to account for intermixed prologue /
94 body instructions.
95
96 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
97
98 * hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
99 Document type sizes for hppa*-*-hpux* compilers available to me.
100
101 2003-12-18 Michael Chastain <mec.gnu@mindspring.com>
102
103 * hppam3-nat.c: Delete obsolete file.
104 * hppab-nat.c: Delete obsolete file.
105 * Makefile.in: Remove references.
106
107 2003-12-17 Jeff Johnston <jjohnstn@redhat.com>
108
109 * symtab.c (decode_line_spec): Change call to decode_line_1.
110
111 2003-12-17 Jeff Johnston <jjohnstn@redhat.com>
112
113 * linespec.h (decode_line_1): Add new not_found_ptr parameter.
114 * linespec.c (decode_line_1): Add new parameter. Pass on
115 new parameter to decode_variable and symtab_from_filename
116 functions.
117 (decode_variable): Add new not_found_ptr parameter. Throw exception
118 rather than failing if the not_found_ptr is non-null and the
119 function is not found.
120 (symtab_from_filename): Add new not_found_ptr parametr. Throw
121 exception rather than failing if the not_found_ptr is non-null and
122 the source file is not found.
123 * breakpoint.c: Change all callers of decode_line_1 to add default
124 extra parameter for decode_line_1 calls.
125 * tracepoint.c: Ditto.
126 * cli/cli-cmds.c: Ditto.
127
128 2003-12-16 J. Brobecker <brobecker@gnat.com>
129
130 * irix5-nat.c: Include mips-tdep.h.
131
132 2003-12-16 Mark Kettenis <kettenis@gnu.org>
133
134 * solib.h (SOLIB_CREATE_CATCH_LOAD_HOOK)
135 (SOLIB_CREATE_CATCH_UNLOAD_HOOK, SOLIB_LOADED_LIBRARY_PATHNAME)
136 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_HAVE_LOAD_EVENT)
137 (SOLIB_HAVE_UNLOAD_EVENT): Remove defines.
138
139 * blockframe.c (inside_main_func): Don't treat a zero PC specially.
140 Needed to fix PR backtrace/1476.
141
142 2003-12-16 David Carlton <carlton@kealia.com>
143
144 * cp-support.c (class_name_from_physname): Add DMGL_PARAMS.
145 (method_name_from_physname): Ditto.
146
147 2003-12-15 Mark Kettenis <kettenis@gnu.org>
148
149 * i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
150 (i386_sol2_init_abi): Initialize TDEP->gregset_reg_offset,
151 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
152 TDEP->sizeof_fpregset.
153 * config/i386/i386sol2.mh (XM_FILE): Set to xm-i386.h.
154 (XM_CLIBS): Remove.
155 (NATDEPFILES): Remove core-regset.o and corelow.o.
156 * config/i386/i386sol2.mt (TDEPFILES): Add corelow.o.
157
158 2003-12-14 Mark Kettenis <kettenis@gnu.org>
159
160 * proc-api.c (procfs_note): Add format string to fprintf call.
161
162 * i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
163 for `subl' and `xorl' instructions.
164
165 2003-12-13 Jim Blandy <jimb@redhat.com>
166
167 * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
168 Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
169 to strcmp and strncmp.
170
171 * osabi.c (gdbarch_init_osabi): Reformat error message with better
172 line breaks.
173
174 2003-12-13 Mark Kettenis <kettenis@gnu.org>
175
176 * blockframe.c (inside_main_func): Reformat. Introduce new local
177 variables to prevent long lines. Update comments to reflect
178 reality.
179
180 2003-12-12 Kevin Buettner <kevinb@redhat.com>
181
182 From David Mosberger <davidm@hpl.hp.com>:
183 * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
184 with a single unw_dyn_info_t pointer.
185 (libunwind_find_dyn_list): Likewise.
186 * libunwind-frame.h: Likewise.
187 * ia64-tdep.c (ia64_find_unwind_table): Switch to using
188 UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
189 entire unwind-table at once. Support for this table format has
190 been added to libunwind v0.95.
191 (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
192 (ia64_get_dyn_info_list): Adjust for interface change for
193 libunwind_find_dyn_list().
194
195 2003-12-12 Jeff Johnston <jjohnstn@redhat.com>
196
197 * breakpoint.c (breakpoint_enabled): New function to test whether
198 breakpoint is active and enabled.
199 (insert_bp_location, insert_breakpoints): Call new function to test
200 for enabled breakpoint.
201 (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
202 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
203 (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
204 (disable_watchpoints_before_interactive_call_start)
205 (breakpoint_re_set_one): Ditto.
206 (bpstat_stop_status): Use new function and simplify test.
207
208 2003-12-11 Mark Kettenis <kettenis@gnu.org>
209
210 * observer.c (observer_test_first_observer)
211 (observer_test_second_observer, observer_test_third_observer):
212 Don't define as `static'.
213 (observer_test_first_notification_function)
214 (observer_test_second_notification_function)
215 (observer_test_third_notification_function): Likewise.
216
217 2003-12-10 Mark Kettenis <kettenis@gnu.org>
218
219 * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
220 of (0).
221
222 2003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
223
224 * MAINTAINERS (write after approval): Add myself.
225
226 2003-12-11 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
227
228 * config/h8300/tm-h8300.h (h8300hmode): Remove.
229 (h8300hmode): Likewise.
230 (h8300smode): Likewise.
231 (h8300sxmode): Likewise.
232 (h8300_normal_mode): Likewise.
233 (GDB_TARGET_IS_H8300): Likewise.
234 (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
235 * h8300-tdep.c (is_h8300hmode): New function.
236 (is_h8300smode): New function.
237 (is_h8300sxmode): New function.
238 (is_h8300_normal_mode): New function.
239 (BINWORD): Use new functions.
240 (h8300_examine_prologue): Likewise.
241 (h8300_print_register): Likewise.
242 (h8300_print_registers_info): Likewise.
243 (h8300_register_type): Likewise.
244 (h8300_gdbarch_init): Remove use of globals like h8300hmode.
245 * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
246 (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
247 (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
248
249 2003-12-10 J. Brobecker <brobecker@gnat.com>
250
251 * frame.c (select_frame): Get the current frame PC using
252 get_frame_address_in_block() instead of get_frame_pc().
253 * stack.c (get_frame_language): Likewise.
254
255 2003-12-08 Kevin Buettner <kevinb@redhat.com>
256
257 * remote.c (remote_open_1, remote_cisco_open): Avoid closing
258 remote_desc more than once.
259
260 2003-12-07 Andrew Cagney <cagney@redhat.com>
261
262 * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
263 directly calling strcmp equivalents. Add disclaimer.
264
265 2003-12-06 Andrew Cagney <cagney@redhat.com>
266
267 * remote.c (remote_fetch_registers): For short packets, explicitly
268 supply a zero value. Use regcache_raw_supply. Fix suggested by
269 Jonathan Larmour.
270
271 2003-12-05 Jeff Johnston <jjohnstn@redhat.com>
272
273 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
274 format to be the i387 extended float format which is used for
275 long doubles stored in memory.
276
277 2003-12-05 Mark Kettenis <kettenis@gnu.org>
278
279 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
280 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
281 column instead of translating it.
282
283 2003-12-04 Michael Chastain <mec.gnu@mindspring.com>
284
285 Partial fix for PR c++/1465.
286 Fix for PR c++/1377.
287 * cp-support.h (cp_lookup_rtti_type): New function.
288 * cp-support.c (cp_lookup_rtti_type): New function.
289 * gnu-v2-abi.c: Update copyright years.
290 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
291 * gnu-v3-abi.c: Update copyright years.
292 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
293
294 2003-12-04 J. Brobecker <brobecker@gnat.com>
295
296 * stabsread.c (read_type): Save a reference to types that are defined
297 as cross references to other types.
298
299 2003-12-02 Roland McGrath <roland@redhat.com>
300
301 * thread-db.c (enable_thread_event): Change return type to
302 td_err_e. Return TD_OK or error code.
303 (enable_thread_event_reporting): Update callers.
304
305 2003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
306
307 * NEWS: Mention new C++ demangler code.
308
309 2003-12-03 Andrew Cagney <cagney@redhat.com>
310
311 * ppc-linux-nat.c (store_register, fetch_register): Convert
312 between ptrace and regcache's wordsize.
313 (ppc_register_u_addr): Use the ptrace wordsize.
314
315 2003-12-02 Kevin Buettner <kevinb@redhat.com>
316
317 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
318
319 2003-12-02 Daniel Jacobowitz <drow@mvista.com>
320
321 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
322 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
323 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
324 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
325 Delete.
326 (dwarf2_read_section): Remove offset and size arguments. Use
327 bfd_get_section_size_before_reloc and sectp->filepos.
328 (dwarf2_has_info): Clear section variables instead of offsets.
329 (dwarf2_locate_sections): Don't initialize the deleted variables.
330 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
331 (dwarf2_build_psymtabs_easy): Likewise.
332 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
333 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
334 declarations.
335 (dwarf2_read_section): Update prototype.
336 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
337 Use bfd_get_section_size_before_reloc instead of global size
338 variables.
339
340 2003-12-01 Michael Chastain <mec.gnu@mindspring.com>
341
342 * dwarfread.c: Update documentation on the state of dwarf-1.
343
344 2003-12-01 Andrew Cagney <cagney@redhat.com>
345
346 Obsolete old MIPS SVr3 and SVr4 systems.
347 * NEWS: Mention obsoleted systems.
348 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
349 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
350 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
351 obsolete.
352 * config/mips/decstation.mh: Mark as obsolete.
353 * config/mips/littlemips.mh: Mark as obsolete.
354 * config/mips/nm-mips.h: Mark as obsolete.
355 * config/mips/xm-mips.h: Mark as obsolete.
356 * config/mips/news-mips.mh: Mark as obsolete.
357 * config/mips/nm-news-mips.h: Mark as obsolete.
358 * config/mips/riscos.mh: Mark as obsolete.
359 * config/mips/nm-riscos.h: Mark as obsolete.
360 * config/mips/xm-riscos.h: Mark as obsolete.
361 * config/mips/mipsv4.mt: Mark as obsolete.
362 * config/mips/tm-mipsv4.h: Mark as obsolete.
363 * config/mips/xm-mipsv4.h: Mark as obsolete.
364
365 Obsolete old m68k systems.
366 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
367 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
368 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
369 m680[01]0-sun-sunos3* as obsolete.
370 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
371 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
372 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
373 * config/m68k/sun3os4.mh: Mark file obsolete.
374 * config/m68k/xm-sun3os4.h: Mark file obsolete.
375 * config/m68k/sun3os3.mh: Mark file obsolete.
376 * config/m68k/nm-sun3.h: Mark file obsolete.
377 * config/m68k/xm-sun3.h: Mark file obsolete.
378 * config/m68k/sun2os4.mh: Mark file obsolete.
379 * config/m68k/sun2os3.mh: Mark file obsolete.
380 * config/m68k/nm-sun2.h: Mark file obsolete.
381 * config/m68k/xm-sun2.h: Mark file obsolete.
382 * config/m68k/m68kv4.mh: Mark file obsolete.
383 * config/m68k/nm-sysv4.h: Mark file obsolete.
384 * config/m68k/xm-m68kv4.h: Mark file obsolete.
385 * config/m68k/m68klynx.mh: Mark file obsolete.
386 * config/m68k/nm-m68klynx.h: Mark file obsolete.
387 * config/m68k/dpx2.mh: Mark file obsolete.
388 * config/m68k/xm-dpx2.h: Mark file obsolete.
389 * config/m68k/nm-dpx2.h: Mark file obsolete.
390 * config/m68k/delta68.mh: Mark file obsolete.
391 * config/m68k/xm-delta68.h: Mark file obsolete.
392 * config/m68k/nm-delta68.h: Mark file obsolete.
393 * config/m68k/3b1.mh: Mark file obsolete.
394 * config/m68k/xm-3b1.h: Mark file obsolete.
395 * config/m68k/sun3os4.mt: Mark file obsolete.
396 * config/m68k/tm-sun3os4.h: Mark file obsolete.
397 * config/m68k/sun3os3.mt: Mark file obsolete.
398 * config/m68k/tm-sun3.h: Mark file obsolete.
399 * config/m68k/sun2os4.mt: Mark file obsolete.
400 * config/m68k/tm-sun2os4.h: Mark file obsolete.
401 * config/m68k/sun2os3.mt: Mark file obsolete.
402 * config/m68k/tm-sun2.h: Mark file obsolete.
403 * config/m68k/m68kv4.mt: Mark file obsolete.
404 * config/m68k/tm-m68kv4.h: Mark file obsolete.
405 * config/m68k/m68klynx.mt: Mark file obsolete.
406 * config/m68k/tm-m68klynx.h: Mark file obsolete.
407 * config/m68k/dpx2.mt: Mark file obsolete.
408 * config/m68k/tm-dpx2.h: Mark file obsolete.
409 * config/m68k/delta68.mt: Mark file obsolete.
410 * config/m68k/tm-delta68.h: Mark file obsolete.
411 * config/m68k/3b1.mt: Mark file obsolete.
412 * config/m68k/tm-3b1.h: Mark file obsolete.
413
414 2003-11-29 Mark Kettenis <kettenis@gnu.org>
415
416 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
417 (x86_64_reg_class): Remove enum.
418 (merge_classes, classify_argument, examine_argument): Remove
419 functions.
420 (INT_REGS, SSE_REGS): Remove macros.
421 (x86_64_push_arguments): Remove function.
422 (amd64_push_arguments): New function.
423 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
424 x86_64_push_arguments.
425
426 2003-11-28 Mark Kettenis <kettenis@gnu.org>
427
428 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
429 zero. Reorganize code a bit.
430
431 2003-11-27 Mark Kettenis <kettenis@gnu.org>
432
433 * dwarf2-frame.c: Fix another comment.
434
435 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
436 (x86_64_use_struct_convention, x86_64_extract_return_value,
437 x86_64_store_return_value): Remove.
438 (amd64_reg_class): New enum.
439 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
440 amd64_return_value): New functions.
441 (x86_64_init_abi): Don't set extract_return_value,
442 store_return_value and use_struct_convention. Set return_value to
443 amd64_return_value.
444 * i387-tdep.h (i387_return_value): New prototype.
445 * i387-tdep.c (i387_return_value): New function.
446
447 * dwarf2-frame.c: Fix some comments and whitespace problems.
448
449 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
450 "gdb_assert.h" and "gdb_string.h".
451 (i386nbsd_r_reg_offset): Rename from regmap.
452 (SIZEOF_STRUCT_REG): Remove.
453 (i386nbsd_supply_reg, fetch_core_registers,
454 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
455 Remove.
456 (i386nbsd_aout_supply_regset,
457 i386nbsd_aout_regset_from_core_section): New functions.
458 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
459 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
460 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
461 initialize TDEP->sc_num_regs.
462 (i386nbsdaout_init_abi): New function.
463 (i386nbsdelf_init_abi): Remove initialization of
464 TDEP->num_xmm_regs. Don't set num_regs here.
465 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
466 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
467
468 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
469 .note.netbsdcore.procinfo section to recognize NetBSD core files.
470
471 2003-11-26 Michael Chastain <mec.gnu@mindspring.com>
472
473 * cp-abi.c: Update copyright years.
474
475 2003-11-25 Andrew Cagney <cagney@redhat.com>
476
477 * thread-db.c (enable_thread_event): New function. Ensure that BP
478 is a code address.
479 (enable_thread_event_reporting): Use enable_thread_event.
480
481 2003-11-25 Michael Snyder <msnyder@redhat.com>
482
483 * mips-tdep.c (mips_o64_extract_return_value): Correct for
484 NUM_REGS (see changes 2003-06-21).
485 (mips_eabi_extract_return_value): Ditto.
486
487 2003-11-25 Andrew Cagney <cagney@redhat.com>
488
489 * infrun.c: Don't include "exec.h".
490 (handle_inferior_event): Pass current_target, instead of exec_ops,
491 to SOLIB_ADD. Add comments.
492 * Makefile.in (infrun.o): Update dependencies.
493
494 2003-11-24 Daniel Jacobowitz <drow@mvista.com>
495
496 * NEWS: Mention improved location expression support.
497
498 2003-11-23 Andrew Cagney <cagney@redhat.com>
499
500 * Makefile.in (infrun.o): Update dependencies.
501 * infrun.c: Include "exec.h".
502 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
503
504 2003-11-23 Andrew Cagney <cagney@redhat.com>
505
506 * frame.c (frame_unwind_signed_register): Delete function.
507 * frame.h (frame_unwind_register_signed): Delete declaration.
508 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
509
510 * arch-utils.h (generic_cannot_extract_struct_value_address):
511 Delete declaration.
512
513 * defs.h (DEPRECATED_STREQN): Rename STREQN.
514 (DEPRECATED_STREQ): Rename STREQ.
515 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
516 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
517 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
518 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
519 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
520 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
521 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
522 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
523 * source.c, sparc-tdep.c, stack.c, target.c: Update.
524
525 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
526 * elfread.c (elf_symtab_read): Delete STREQ from comment.
527
528 2003-11-22 Andrew Cagney <cagney@redhat.com>
529
530 * frame.c (deprecated_frame_xmalloc): Delete function.
531 (deprecated_set_frame_extra_info_hack): Delete function.
532 (deprecated_set_frame_saved_regs_hack): Delete function.
533 * frame.h (deprecated_frame_xmalloc): Delete declaration.
534 (deprecated_set_frame_extra_info_hack): Delete declaration.
535 (deprecated_set_frame_saved_regs_hack): Delete declaration.
536 * mcore-tdep.c (analyze_dummy_frame): Instead of
537 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
538 and deprecated_set_frame_extra_info_hack use
539 deprecated_frame_xmalloc_with_cleanup.
540 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
541 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
542 deprecated_set_frame_saved_regs_hack.
543
544 * mips-tdep.c (mips_frame_chain): Delete call to
545 deprecated_inside_entry_file.
546
547 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
548 (deprecated_set_frame_prev_hack): Delete declaration.
549 * frame.c (deprecated_set_frame_next_hack): Delete function.
550 (deprecated_set_frame_prev_hack): Delete function.
551 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
552 "deprecated_set_frame_next_hack" and
553 "deprecated_set_frame_prev_hack".
554 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
555
556 * mips-tdep.c (mips_register_convertible): Delete function.
557 (mips_register_convert_to_virtual): Delete function.
558 (mips_register_convert_to_raw): Delete function.
559 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
560 "deprecated_register_convert_to_virtual", or
561 "deprecated_register_convert_to_raw".
562 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
563 32/64 cooked to raw register conversions.
564
565 * frame.c (deprecated_get_frame_context): Delete function.
566 (deprecated_set_frame_context): Delete function.
567 (struct frame_info): Delete member "context".
568 * frame.h (deprecated_get_frame_context): Delete declaration.
569 (deprecated_set_frame_context): Delete declaration.
570
571 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
572 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
573 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
574 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
575
576 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
577 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
578 mips_regsize.
579 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
580 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
581 * config/mips/tm-irix5.h: Update copyright.
582 (SIGFRAME_REG_SIZE): Delete macro.
583
584 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
585 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
586 declaration.
587 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
588 * infcall.c (call_function_by_hand): Delete #ifdef
589 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
590 * infcmd.c (print_return_value): Ditto.
591
592 * mips-tdep.c (skip_prologue_using_sal): New function.
593 (mips32_skip_prologue, mips16_skip_prologue): Use
594 skip_prologue_using_sal to get an upper bound on the search.
595
596 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
597 #if 0'ed macro.
598 * infrun.c (step_into_function): Delete #ifdef
599 PROLOGUE_FIRSTLINE_OVERLAP code.
600 * symtab.c (find_function_start_sal): Ditto.
601
602 * remote-rdp.c: Update copyright.
603 (rdp_init): #if 0 references to "target_byte_order".
604
605 * mips-tdep.c (mips_o32_store_return_value): Delete function.
606 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
607 (mips_o32_extract_return_value): Delete function.
608 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
609 (mips_n32n64_extract_return_value): Delete function.
610 (mips_n32n64_store_return_value): Delete function.
611 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
612 instead of "store_return_value", "extract_return_value", and
613 "use_struct_convention".
614 (mips_n32n64_use_struct_convention): Delete function.
615
616 2003-11-21 Kevin Buettner <kevinb@redhat.com>
617
618 * frv-tdep.c (frv_frame_this_id): Eliminate call to
619 inside_entry_func().
620
621 2003-11-20 Mark Kettenis <kettenis@gnu.org>
622
623 * i386-tdep.c (i386_extract_return_value,
624 i386_store_return_value): Add gdbarch argument. Use it instead of
625 determining it from REGCACHE. Remove recursive call for
626 structures with a single member.
627 (i386_use_struct_convention): Remove.
628 (i386_reg_struct_return_p): New function.
629 (i386_return_value): New function.
630 (i386_gdbarch_init): Set return_value, don't set
631 extract_return_value, store_return_value and
632 use_struct_convention.
633 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
634
635 2003-11-20 Jim Blandy <jimb@redhat.com>
636
637 * osabi.c (_initialize_gdb_osabi): Don't return before registering
638 the 'set osabi' and 'show osabi' commands.
639
640 2003-11-19 Mark Kettenis <kettenis@gnu.org>
641
642 * frame.c (get_prev_frame): Use result from
643 get_frame_address_in_block instead of get_frame_pc as argument to
644 inside_main_func. Fixes PR backtrace/1435.
645
646 2003-11-19 Andrew Cagney <cagney@redhat.com>
647
648 * stack.c (return_command): Handle "void", "legacy" and "unknown
649 location" return values separatly.
650 * values.c (using_struct_return): Return 0 for a "void" return
651 type. Mention "register_value_being_returned".
652 (register_value_being_returned): Mention "using_struct_return".
653
654 2003-11-19 Daniel Jacobowitz <drow@mvista.com>
655
656 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
657 (frame_base_offset): Delete.
658 (read_func_scope): Delete call to decode_locdesc.
659 (decode_locdesc): Update comments. Don't set the removed variables.
660 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
661 DW_OP_fbreg support.
662
663 2003-11-18 Daniel Jacobowitz <drow@mvista.com>
664
665 * dwarf2read.c (optimized_out, islocal): Remove.
666 (decode_locdesc): Update comments. Don't set optimized_out
667 or islocal.
668
669 2003-11-17 Jeff Johnston <jjohnstn@redhat.com>
670 David Mosberger <davidm@hpl.hp.com>
671
672 * ia64-tdep.c: Include elf.h.
673 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
674 libunwind-ia64.h.
675 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
676 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
677 (ia64_is_fpreg, ia64_access_reg): Ditto.
678 (ia64_access_fpreg, ia64_access_mem): Ditto.
679 (get_kernel_table): Ditto.
680 (ia64_find_unwind_table): Ditto.
681 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
682 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
683 (ia64_libunwind_frame_prev_register): Ditto.
684 (ia64_libunwind_frame_sniffer): Ditto.
685 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
686 sniffer. Register libunwind functions needed by generic
687 libunwind frame code using libunwind_frame_set_descr().
688
689 2003-11-16 Daniel Jacobowitz <drow@mvista.com>
690
691 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
692 bp_shlib_disabled breakpoint if there is a shared library mapped
693 at its expected address.
694
695 2003-11-16 Andrew Cagney <cagney@redhat.com>
696
697 * configure.tgt: Delete mips*tx39*-elf*.
698 * config/mips/tm-tx39.h: Delete file.
699 * config/mips/tx39.mt: Delete file.
700 * config/mips/tx39.mt: Delete file.
701
702 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
703 * remote-mips.c (common_open): Instead of
704 "mips_read_register_type" and "mips_set_processor_type_command"
705 call "deprecated_mips_set_processor_regs_hack".
706 * config/mips/tm-mips.h (mips_read_processor_type): Delete
707 declaration.
708 (mips_set_processor_type_command): Delete declaration.
709 * mips-tdep.c (mips_gdbarch_init): Update comment.
710 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
711 (mips_set_processor_type): Delete function.
712 (NUM_MIPS_PROCESSOR_REGS): Define.
713 (mips_show_processor_type_command): Delete function.
714 (mips_set_processor_type_command): Delete function.
715 (tmp_mips_processor_type): Delete.
716 (mips_processor_type): Delete.
717 (mips_processor_type_table): Delete.
718 (mips_r3051_reg_names): Delete.
719 (mips_r3081_reg_names): Delete.
720 (mips_lsi33k_reg_names): Delete.
721 (mips_processor_reg_names): Delete.
722 (mips_read_processor_type): Delete function.
723 (deprecated_mips_set_processor_regs_hack): New function.
724 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
725 (mips_register_name): Get the processor names from the tdep.
726 (mips_tx39_reg_names): New array.
727 (mips_generic_reg_names): Wire to a standard set of names.
728 (mips_gdbarch_init): Set "mips_processor_reg_names".
729 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
730 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
731 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
732
733 2003-11-16 Andrew Cagney <cagney@redhat.com>
734
735 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
736 (mips_fpa0_regnum, mips_regnum): New function.
737 (mips_gdbarch_init): Fill in the "regnum" fields.
738 * mips-tdep.h (struct mips_regnum): Define.
739 (mips_regnum): Declare.
740 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
741 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
742 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
743 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
744 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
745 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
746 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
747 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
748 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
749 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
750 * remote-mips.c: Include "mips-tdep.h". Update.
751 * mipsnbsd-tdep.c: Update.
752 * mipsv4-nat.c: Update.
753 * mips-tdep.c: Update.
754 * mips-nat.c: Update.
755 * mips-linux-tdep.c: Update.
756 * mips-linux-nat.c: Update.
757 * irix5-nat.c: Update.
758 * dve3900-rom.c: Include "mips-tdep.h". Update.
759 (ignore_packet): Supress GCC warning.
760 * config/mips/nm-riscos.h: Update.
761
762 2003-11-16 Andrew Cagney <cagney@redhat.com>
763
764 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
765 register_size.
766 (mips_register_raw_size): Delete function.
767 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
768 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
769 Check and set "mips64_transfers_32bit_regs_p".
770 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
771 (mips_register_convertible): Check the architecture's
772 "mips64_transfers_32bit_regs_p".
773 (set_mips64_transfers_32bit_regs): New function.
774 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
775 "set remote-mips64-transfers-32bit-regs" command. Specify
776 set_mips64_transfers_32bit_regs as the set function.
777 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
778
779 2003-11-16 Mark Kettenis <kettenis@gnu.org>
780
781 * i386-tdep.h (i386_supply_gregset): Provide prototype.
782 * i386-tdep.c (i386_supply_gregset): Make public.
783
784 2003-11-16 Andrew Cagney <cagney@redhat.com>
785
786 * mips-tdep.c (mips_register_byte): Delete function.
787 (mips_gdbarch_init): Do not set "deprecated_register_byte".
788 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
789 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
790 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
791
792 2003-11-16 Mark Kettenis <kettenis@gnu.org>
793
794 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
795
796 2003-11-16 Andrew Cagney <cagney@redhat.com>
797
798 * config/mips/linux64.mt: Delete file.
799 * config/mips/tm-linux64.h: Delete file.
800 * config/mips/tm-mips64.h: Delete file.
801 * config/mips/embed64.mt: Delete file.
802 * config/djgpp/fnchange.lst: Update.
803 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
804 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
805 * config/mips/tm-irix6.h: Update copyright. Include
806 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
807 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
808 "OP_LDGPR".
809
810 2003-11-15 Andrew Cagney <cagney@redhat.com>
811
812 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
813 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
814 n32 registers 64 bit.
815 (mips_register_raw_size, mips_register_byte): For pseudo
816 registers, use the register's pseudo size and not the
817 corresponding raw register's size.
818 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
819 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
820 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
821 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
822
823 2003-11-15 Andrew Cagney <cagney@redhat.com>
824
825 * mips-tdep.c (struct gdbarch_tdep): Delete member
826 gdb_target_is_mips64.
827 (GDB_TARGET_IS_MIPS64): Delete macro.
828 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
829 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
830 (mips_addr_bits_remove): Simplify.
831
832 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
833 register_size.
834
835 Replace MIPS_REGSIZE with mips_regsize.
836 * mips-tdep.c (mips_regsize): New function.
837 * mips-tdep.h (mips_regsize): Declare.
838 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
839 (SIZEOF_STRUCT_REG): Update.
840 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
841 (mipsnbsd_fill_reg): Update.
842 (mipsnbsd_supply_fpreg): Update.
843 (mipsnbsd_fill_fpreg): Update.
844 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
845 * mips-tdep.c (mips_register_raw_size): Update.
846 (mips_register_type): Update.
847 (SIGFRAME_BASE): Update.
848 (SIGFRAME_PC_OFF): Update.
849 (SIGFRAME_REGSAVE_OFF): Update.
850 (SIGFRAME_FPREGSAVE_OFF): Update.
851 (SIGFRAME_REG_SIZE): Update.
852 (mips32_heuristic_proc_desc): Update.
853 (print_gp_register_row): Update.
854 (mips_dump_tdep): Do not print MIPS_REGSIZE.
855 * irix5-nat.c (supply_gregset): Update.
856 (fetch_core_registers): Update.
857 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
858 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
859 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
860 (MIPS_REGISTER_BYTE): Update.
861 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
862
863 2003-11-15 Andrew Cagney <cagney@redhat.com>
864
865 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
866 USE_REGISTER_NOT_ARG.
867 * stabsread.c (define_symbol): Update.
868
869 2003-11-15 Andrew Cagney <cagney@redhat.com>
870
871 * bcache.h (deprecated_bcache): Declare.
872 (bcache): Make returned buffer constant.
873 * bcache.c (deprecated_bcache): New function.
874 (bcache_data): New function.
875 (bcache): Call bcache data.
876 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
877 (add_psymbol_with_dem_name_to_list): Ditto.
878
879 2003-11-15 Mark Kettenis <kettenis@gnu.org>
880
881 * glibc-tdep.h (struct gdbarch): Declare opaque.
882 (glibc_skip_solib_resolver): Adjust prototype.
883 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
884 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
885 (arm_linux_init_abi): Set skip_solib_resolver.
886 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
887 (i386_linux_init_abi): Set skip_solib_resolver.
888 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
889 (arm_linux_skip_solib_resolver): Remove prototype.
890 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
891 (i386_linux_skip_solib_resolver): Remove prototype.
892
893 2003-11-14 Mark Kettenis <kettenis@gnu.org>
894
895 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
896 function.
897 * gdbarch.c, gdbarch.h: Regenerate.
898 * infrun.c (handle_inferior_event): Call
899 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
900 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
901 definition.
902 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
903 prototype.
904
905 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
906
907 * libunwind-frame.c: New file.
908 * libunwind-frame.h: New file.
909 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
910 * configure.in: Add --with-libunwind option support. Define
911 HAVE_LIBUNWIND if libunwind support selected / defaulted.
912 Also check for libunwind.h and libunwind-ia64.h headers.
913 * configure: Regenerated.
914 * Makefile.in: Add support for libunwind-frame.o.
915 * config.in: Regenerated.
916
917 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
918
919 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
920 set up the ia64 linux native target method for getting the kernel
921 unwind table.
922 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
923 * inftarg.c (child_xfer_partial): Enable section of code to
924 handle TARGET_OBJECT_UNWIND_TABLE.
925 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
926
927 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
928
929 * config/arm/nbsd.mt (TM_FILE): Define.
930 * config/arm/tm-nbsd.h: New file.
931
932 2003-11-14 Andrew Cagney <cagney@redhat.com>
933
934 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
935 * ppc-sysv-tdep.c: Include "objfiles.h".
936 (ppc64_sysv_abi_push_dummy_call): Provide the
937 the FN's objfile when looking for the descriptor.
938
939 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
940 "name_of_malloc" to ".malloc".
941
942 2003-11-13 Mark Kettenis <kettenis@gnu.org>
943
944 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
945
946 2003-11-13 David Carlton <carlton@kealia.com>
947
948 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
949
950 2003-11-13 Andrew Cagney <cagney@redhat.com>
951
952 * arch-utils.h (selected_architecture_name): Declare.
953 (selected_byte_order): Declare.
954 * arch-utils.c (selected_byte_order): New function.
955 (selected_architecture_name): New function.
956 (target_architecture_auto): Make static.
957 (set_architecture_string): Make static.
958 (target_byte_order): Make static.
959 (target_byte_order_auto): Make static.
960 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
961 non-multi-arch definition.
962 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
963 (target_byte_order, target_architecture): Delete declaration.
964 (target_byte_order_auto, target_architecture_auto): Ditto.
965 * gdbarch.h: Re-generate.
966 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
967 "selected_byte_order".
968
969 2003-11-13 Andrew Cagney <cagney@redhat.com>
970
971 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
972
973 2003-11-13 Jim Blandy <jimb@redhat.com>
974
975 * cp-namespace.c: Doc fix.
976
977 2003-11-12 Michael Snyder <msnyder@redhat.com>
978
979 * sh64_tdep.c: Regularize some names.
980 (sh_sh64_register_name): Rename to sh64_register_name.
981 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
982 (sh_sh64_register_byte): Rename to sh64_register_byte.
983 (sh_sh64_build_float_register_type):
984 Rename to sh64_build_float_register_type.
985 (sh_sh64_register_convert_to_virtual):
986 Rename to sh64_register_convert_to_virtual.
987 (sh_sh64_register_convert_to_raw):
988 Rename to sh64_register_convert_to_raw.
989
990 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
991 sh64_media_reg_base_num, sh64_compact_reg_base_num,
992 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
993 sh64_extract_return_value, sh64_show_media_regs,
994 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
995 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
996 sh64_pseudo_register_read, sh64_pseudo_register_write,
997 sh64_do_pseudo_register, sh_compact_print_registers_info):
998 Delete unused variable 'tdep'.
999
1000 * sh64-tdep.c: Coding standard and spelling comment fixes.
1001 (sh64_extract_return_value): Replace deprecated_store_floating
1002 with store_typed_floating.
1003 (sh_sh64_register_convert_to_raw): Replace
1004 deprecated_store_floating with store_typed_floating.
1005 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
1006 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
1007 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
1008 sh64_extract_struct_value_address, sh64_pop_frame,
1009 sh64_extract_return_value, sh64_store_return_value,
1010 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
1011 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
1012 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1013 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
1014 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
1015 deprecated_register_virtual_type, deprecated_register_raw_size,
1016 deprecated_max_register_raw_size, or
1017 deprecated_max_register_virtual_size. Instead, just set
1018 gdbarch_register_type.
1019 (sh_sh64_register_raw_size): Delete.
1020 (sh_sh64_register_virtual_size): Delete.
1021
1022 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
1023
1024 * dwarf2read.c (struct dwarf2_cu): New type.
1025
1026 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
1027 dwarf2_cu structure to pass down.
1028
1029 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
1030 (add_partial_enumeration, locate_pdi_sibling, process_die)
1031 (read_file_scope, read_func_scope)
1032 (read_lexical_block_scope, dwarf2_get_pc_bounds)
1033 (dwarf2_add_field, dwarf2_attach_fields_to_type)
1034 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
1035 (read_structure_scope, read_enumeration, read_array_type)
1036 (read_common_block, read_namespace, read_tag_pointer_type)
1037 (read_tag_ptr_to_member_type, read_tag_reference_type)
1038 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
1039 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
1040 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
1041 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
1042 (read_full_die. read_attribute_value, read_attribute)
1043 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
1044 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
1045 (die_containing_type, type_at_offset, tag_type_to_type)
1046 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
1047 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
1048
1049 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
1050
1051 PR breakpoints/1450
1052 * breakpoint.c (insert_bp_location): Fix a logic error by returning
1053 0 after a catchpoint fails.
1054
1055 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
1056
1057 * mips-tdep.c (msymbol_size): Delete.
1058
1059 2003-11-07 Michael Chastain <mec@shout.net>
1060
1061 * symtab.h (struct minimal_symbol): Add size.
1062 * dbxread.c: Use it.
1063 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
1064 Rename to record_minimal_symbol.
1065 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
1066 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
1067 (install_minimal_symbols): Ditto.
1068 * objfiles.c (terminate_minimal_symbol_table): Ditto.
1069 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
1070 * m68hc11-tdep.c: Ditto.
1071 * mips-tdep.c: Ditto.
1072 * sh64-tdep.c: Ditto.
1073
1074 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
1075
1076 * MAINTAINERS: Change my e-mail address.
1077
1078 2003-11-10 Andrew Cagney <cagney@redhat.com>
1079
1080 * gdbarch.sh (return_value): Replace "inval" and "outval" with
1081 "readbuf" and "writebuf".
1082 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1083 * d10v-tdep.c (d10v_return_value): Ditto.
1084 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1085 (ppc_sysv_abi_broken_return_value): Ditto.
1086 (ppc64_sysv_abi_return_value): Ditto.
1087 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
1088 (ppc_sysv_abi_return_value): Ditto.
1089 (ppc_sysv_abi_broken_return_value): Ditto.
1090 (ppc64_sysv_abi_return_value): Ditto.
1091 * values.c (register_value_being_returned): Update call.
1092 * stack.c (return_command): Update call.
1093 * gdbarch.h, gdbarch.c: Re-generate.
1094
1095 * target.h (struct target_ops): Order xfer buffer parameters "read
1096 write" not "write read".
1097 * bfd-target.c (target_bfd_xfer_partial): Update.
1098 * remote.c (remote_xfer_partial): Update.
1099 * inftarg.c (child_xfer_partial): Update.
1100 * target.c (default_xfer_partial): Update.
1101 (target_read_partial, target_write_partial): Update.
1102 (debug_to_xfer_partial): Update.
1103
1104 * arch-utils.h, arch-utils.c: Fix typo in comment.
1105
1106 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
1107 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1108 (set_gdbarch_from_file): Call
1109 "deprecated_current_gdbarch_select_hack".
1110
1111 2003-11-09 Andrew Cagney <cagney@redhat.com>
1112
1113 * arch-utils.c (gdbarch_update_p): New function.
1114 * gdbarch.sh (gdbarch_update_p): Delete function.
1115 (find_arch_by_info, gdbarch_find_by_info): New functions.
1116 (deprecated_current_gdbarch_select_hack): New function.
1117 * gdbarch.c: Re-generate.
1118
1119 * gdbarch.sh (clear_gdbarch_swap): Delete function.
1120 (swapout_gdbarch_swap): Delete function.
1121 (swapin_gdbarch_swap): Delete function.
1122 (init_gdbarch_swap): Delete function.
1123 (initialize_non_multiarch): Delete function.
1124 (current_gdbarch_swap_in_hack): New function.
1125 (current_gdbarch_swap_out_hack): New function.
1126 (current_gdbarch_swap_init_hack): New function.
1127 * gdbarch.c: Re-generate.
1128
1129 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
1130 parameter to "current_gdbarch". Add comment explaining why.
1131 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
1132 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
1133 * gdbarch.c: Re-generate.
1134
1135 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
1136 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
1137 * config/s390/xm-linux.h: Delete file.
1138 * config/m88k/xm-delta88v4.h: Delete stray.
1139
1140 * Makefile.in (arch-utils.o): Update dependencies.
1141 * arch-utils.c: Include "osabi.h".
1142 (gdbarch_info_fill): New function.
1143 * arch-utils.h (gdbarch_info_fill): Declare.
1144 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
1145 * gdbarch.c: Re-generate.
1146
1147 2003-11-09 Mark Kettenis <kettenis@gnu.org>
1148 David S. Miller <davem@redhat.com>
1149
1150 * glibc-tdep.c, glibc-tdep.h: New files.
1151 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
1152 * config/i386/linux.mt (TDEPFILES): Likewise.
1153 * i386-linux-tdep.c (glibc-tdep.h): Include.
1154 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1155 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1156 * arm-linux-tdep.c (glibc-tdep.h): Include.
1157 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1158 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1159 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
1160 (glibc_tdep_h): Define.
1161 (glibc-tdep.o): Add dependencies.
1162 (arm-linux-tdep.o): Update dependencies.
1163 (i386-linux-tdep.o): Likewise.
1164
1165 2003-11-09 Andrew Cagney <cagney@redhat.com>
1166
1167 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1168 * config/mips/nm-irix6.h: Delete file.
1169 * config/mips/nm-linux.h: Update copyright.
1170 (MIPS_GNULINUX_TARGET): Delete macro.
1171 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1172 * config/mips/xm-irix6.h: Delete file.
1173 * config/mips/linux.mh (XM_FILE): Delete definition.
1174 * config/mips/xm-linux.h: Delete file.
1175
1176 2003-11-09 Andrew Cagney <cagney@redhat.com>
1177
1178 * d10v-tdep.c (d10v_return_value): New function.
1179 (d10v_use_struct_convention): Delete function.
1180 (d10v_store_return_value): Delete function.
1181 (d10v_extract_struct_value_address): Delete function.
1182 (d10v_gdbarch_init): Set "return_value" instead of
1183 "extract_return_value", "store_return_value",
1184 "extract_struct_value_address", and "use_struct_convention".
1185 (RET1_REGNUM): Delete const.
1186
1187 2003-11-09 Mark Kettenis <kettenis@gnu.org>
1188
1189 From David S. Miller <davem@redhat.com>:
1190 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1191 * gdbarch.c, gdbarch.h: Regenerated.
1192 * arch-utils.c (generic_skip_solib_resolver): New function.
1193 * arch-utils.h (generic_skip_solib_resolver): New prototype.
1194 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1195
1196 2003-11-07 Andrew Cagney <cagney@redhat.com>
1197
1198 * top.c (print_gdb_version): Replace STREQ with strcmp.
1199 * valops.c (value_struct_elt_for_reference): Ditto.
1200 (value_struct_elt_for_reference): Ditto.
1201 * symtab.c (gdb_mangle_name): Ditto.
1202 (find_line_symtab): Ditto.
1203 * symmisc.c (maintenance_print_symbols): Ditto.
1204 * symfile.c (symbol_file_command): Ditto.
1205 * stabsread.c (define_symbol, read_type): Ditto.
1206 (cleanup_undefined_types, scan_file_globals): Ditto.
1207 * solib.c (solib_map_sections): Ditto.
1208 * solib-svr4.c (bfd_lookup_symbol): Ditto.
1209 * rs6000-tdep.c (skip_prologue): Ditto.
1210 * p-valprint.c (pascal_value_print): Ditto.
1211 (pascal_object_is_vtbl_ptr_type): Ditto.
1212 * objfiles.c (in_plt_section): Ditto.
1213 * minsyms.c (lookup_minimal_symbol): Ditto.
1214 (compact_minimal_symbols): Ditto.
1215 (find_solib_trampoline_target): Ditto.
1216 * mdebugread.c (parse_type): Ditto.
1217 * language.c (set_language_command): Ditto.
1218 (set_type_command, set_range_command): Ditto.
1219 * f-lang.c (add_common_block): Ditto.
1220 (add_common_block): Ditto.
1221 (find_first_common_named): Ditto.
1222 (patch_all_commons_by_name): Ditto.
1223 * elfread.c (elf_locate_sections): Ditto.
1224 (elf_locate_sections): Ditto.
1225 (elfstab_offset_sections): Ditto.
1226 * dwarf2read.c (dwarf2_locate_sections): Ditto.
1227 * dbxread.c (add_old_header_file): Ditto.
1228 (find_corresponding_bincl_psymtab): Ditto.
1229 (read_dbx_symtab, process_one_symbol): Ditto.
1230 * coffread.c (patch_opaque_types): Ditto.
1231 * cli/cli-decode.c (delete_cmd): Ditto.
1232 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1233 * c-typeprint.c (c_type_print_base): Ditto.
1234 * breakpoint.c (bpstat_stop_status): Ditto.
1235 (clear_command, breakpoint_re_set_one): Ditto.
1236
1237 2003-11-07 Andrew Cagney <cagney@redhat.com>
1238
1239 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
1240 * bcache.c (struct bstring): Make "length" an unsigned short, add
1241 "half_hash".
1242 (struct bcache): Add "half_hash_error_count".
1243 (bcache): Compute and save the "half_hash". Compare the
1244 "half_hash" before comparing the length. Update
1245 half_hash_error_count.
1246
1247 2003-11-07 Andrew Cagney <cagney@redhat.com>
1248
1249 * inftarg.c (child_xfer_partial): New function
1250 (init_child_ops): Set "to_xfer_partial".
1251
1252 2003-11-07 Andrew Cagney <cagney@redhat.com>
1253
1254 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1255 set "return_value" instead of "use_struct_convention".
1256 (ppc_linux_use_struct_convention): Delete function.
1257 (ppc_linux_return_value): New function.
1258 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1259 (ppc_sysv_abi_broken_return_value): New function.
1260 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1261 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1262 static.
1263 (ppc_sysv_abi_extract_return_value): Delete function.
1264 (ppc_sysv_abi_broken_extract_return_value): Delete function.
1265 (ppc_sysv_abi_store_return_value): Delete function.
1266 (ppc_sysv_abi_broken_store_return_value): Delete function.
1267 (ppc_sysv_abi_use_struct_convention): Delete function.
1268 (ppc64_sysv_abi_use_struct_convention): Delete function.
1269 (ppc64_sysv_abi_extract_return_value): Delete function.
1270 (ppc64_sysv_abi_store_return_value): Delete function.
1271 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1272 (ppcnbsd_init_abi): Set "return_value", instead of
1273 "use_struct_convention", "extract_return_value", and
1274 "store_return_value".
1275 (ppcnbsd_use_struct_convention): Delete function.
1276 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1277 (ppc_sysv_abi_return_value): Declare.
1278 (ppc_sysv_abi_broken_return_value): Declare.
1279 (ppc_sysv_abi_use_struct_convention): Delete.
1280 (ppc_sysv_abi_store_return_value): Delete.
1281 (ppc_sysv_abi_extract_return_value): Delete.
1282 (ppc_sysv_abi_broken_store_return_value): Delete.
1283 (ppc_sysv_abi_broken_extract_return_value): Delete.
1284 (ppc64_sysv_abi_use_struct_convention): Delete.
1285 (ppc64_sysv_abi_extract_return_value): Delete.
1286 (ppc64_sysv_abi_store_return_value): Delete.
1287 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1288 set "return_value" instead of "extract_return_value",
1289 "store_return_value", and "use_struct_convention".
1290
1291 2003-11-07 Mark Kettenis <kettenis@gnu.org>
1292
1293 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1294
1295 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1296 fscanf.
1297
1298 2003-11-07 Mark Kettenis <kettenis@gnu.org>
1299
1300 * fbsd-proc.c: Fix formatting.
1301
1302 2003-11-06 Kevin Buettner <kevinb@redhat.com>
1303
1304 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1305 Define.
1306 (new_variant): Set name for iacc0_regnum.
1307 (frv_register_name): Accommodate pseudo-registers.
1308 (frv_register_type): Add case for iacc0_regnum.
1309 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1310 (frv_gdbarch_init): Set number of pseudo registers. Establish
1311 pseudo-register read/write methods.
1312
1313 2003-11-06 Andrew Cagney <cagney@redhat.com>
1314
1315 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1316 * top.c (command_line_input): Ditto.
1317 * objc-exp.y (yylex): Ditto.
1318 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1319 * jv-exp.y (yylex): Ditto.
1320 * f-exp.y (yylex): Ditto.
1321 * event-top.c (command_line_handler): Ditto.
1322 * environ.c (get_in_environ): Ditto.
1323 (set_in_environ): Ditto.
1324 * dwarfread.c (handle_producer): Ditto.
1325 * dbxread.c (process_one_symbol): Ditto.
1326 * c-typeprint.c (c_type_print_base): Ditto.
1327 * c-exp.y (yylex): Ditto.
1328
1329 2003-11-06 Andrew Cagney <cagney@redhat.com>
1330 Jeff Johnston <jjohnstn@redhat.com>
1331
1332 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1333 (init_dummy_target): Set "to_xfer_partial".
1334
1335 2003-11-06 Andrew Cagney <cagney@redhat.com>
1336
1337 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1338 REGISTER_CONVENTION.
1339
1340 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1341
1342 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1343 static.
1344
1345 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1346
1347 * breakpoint.c (remove_breakpoint): Take an bp_location
1348 instead of a breakpoint argument. Check the bp_location's type.
1349 Fix a reversed condition for hardware breakpoints.
1350
1351 (insert_bp_location): Update call to remove_breakpoint.
1352 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1353 (remove_hw_watchpoints): Likewise.
1354 (reattach_breakpoints): Likewise.
1355 (detach_breakpoints): Likewise.
1356 (delete_breakpoint): Likewise.
1357
1358 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1359
1360 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1361 (beakpoint_init_inferior): Likewise.
1362 (breakpoint_here_p): Likewise. Only check addresses for software
1363 or hardware breakpoints.
1364 (breakpoint_inserted_here_p): Likewise.
1365 (breakpoint_thread_match): Likewise. Correct comment.
1366 (bpstat_have_active_hw_watchpoints): Likewise.
1367 (check_duplicates): Likewise.
1368
1369 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1370
1371 * breakpoints.c (insert_bp_location): New function, broken out
1372 from insert_breakpoints. Work on an bp_location instead of a
1373 breakpoint.
1374 (insert_breakpoints): Use it.
1375
1376 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1377
1378 * breakpoint.h (struct bp_location): Add section.
1379 (struct breakpoint): Remove section.
1380 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1381 (breakpoint_here_p, breakpoint_inserted_here_p)
1382 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1383 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1384 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1385 section through loc.
1386
1387 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1388
1389 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1390 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1391
1392 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1393
1394 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1395 arguments. Initialize owner and type for the new breakpoint
1396 location item.
1397 (set_raw_breakpoint): Update call to allocate_bp_location.
1398
1399 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1400
1401 * breakpoint.h (struct bp_location): Add a chain pointer.
1402 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1403 macros.
1404 (bp_location_chain): New variable.
1405 (allocate_bp_location): New function.
1406 (set_raw_breakpoint): Use it.
1407 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1408
1409 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
1410
1411 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1412 (struct breakpoint): Remove address, shadow_contents, inserted,
1413 requested_address, and duplicate. Add a struct bp_location.
1414 * breakpoint.c (condition_command, read_memory_nobpt)
1415 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1416 (reattach_breakpoints, update_breakpoints_after_exec)
1417 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1418 (breakpoint_init_inferior, breakpoint_here_p)
1419 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1420 (breakpoint_thread_match, bpstat_stop_status)
1421 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1422 (describe_other_breakpoints, check_duplicates)
1423 (make_breakpoint_permanent, create_thread_event_breakpoint)
1424 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1425 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1426 (watch_command_1, print_one_exception_catchpoint)
1427 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1428 use the breakpoint's ->loc.
1429 (set_raw_breakpoint): Likewise. Initialize ->loc.
1430 (delete_breakpoint): Likewise. Free ->loc.
1431
1432 2003-11-05 Andrew Cagney <cagney@redhat.com>
1433
1434 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1435 macro.
1436 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1437 * config/i386/tm-cygwin.h
1438 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1439 * config/powerpc/tm-linux.h
1440 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1441 (at_subroutine_call_instruction_target): Delete declaration.
1442 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1443 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1444 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1445
1446 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1447 "struct bfd_section" and "struct bfd".
1448 * target.h (struct section_table): Ditto.
1449 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1450 * solib-svr4.c (elf_locate_base): Ditto.
1451 * pa64solib.c (dld_cache_t): Ditto.
1452 * objfiles.h (struct obj_section): Ditto.
1453 * objfiles.c (add_to_objfile_sections): Ditto.
1454 * exec.c (bfdsec_to_vmap): Ditto.
1455 (add_to_section_table): Ditto.
1456 (build_section_table): Ditto.
1457 * corelow.c (get_core_register_section): Ditto.
1458 * coffread.c (find_linenos): Ditto.
1459 * elfread.c (elf_interpreter): Delete #if0'd function.
1460
1461 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1462 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1463 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1464 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1465
1466 * arch-utils.h (generic_cannot_extract_struct_value_address):
1467 Delete declaration.
1468 * wince.c (_initialize_wince): Fix multi-line string.
1469 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1470
1471 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1472
1473 * top.c (execute_command): Fix broken logic for command execution
1474 while inferior is running in async mode.
1475
1476 2003-11-06 Mark Kettenis <kettenis@gnu.org>
1477
1478 * dwarf2-frame.c (execute_cfa_program): Mark register as
1479 REG_SAVED_REG for DW_CFA_register opcode.
1480
1481 2003-11-05 Mark Kettenis <kettenis@gnu.org>
1482
1483 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1484 %rsp, %rip and %eflags to match ABI-change.
1485
1486 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1487
1488 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1489 (ia64_gdbarch_init): Don't bother calculating the os.
1490 Instead use the gdbarch_info struct and look at the osabi field.
1491 Also use gdbarch_list_lookup_by_info() to look for a
1492 candidate gdbarch.
1493
1494 2003-11-05 Kevin Buettner <kevinb@redhat.com>
1495
1496 * frv-tdep.c (frv_register_byte): Delete.
1497 (frv_extract_return_value, frv_store_return_value)
1498 (frv_extract_struct_value_address): Don't call frv_register_byte().
1499 Convert to non-deprecated form.
1500 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1501 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1502 set_gdbarch_deprecated_store_return_value(), and
1503 set_gdbarch_deprecated_extract_struct_value_address() into
1504 non-deprecated forms.
1505
1506 2003-11-05 Andrew Cagney <cagney@redhat.com>
1507
1508 * mips-tdep.c (mips_dump_tdep): Do not print
1509 PRINT_EXTRA_FRAME_INFO.
1510 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1511 Rename PRINT_EXTRA_FRAME_INFO.
1512 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1513 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1514 (mips_print_extra_frame_info): Delete declaration.
1515 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1516
1517 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1518
1519 * coffread.c (coff_symtab_read): Remove passing of info parameter
1520 to prim_record_minimal_symbol_and_info.
1521
1522 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1523
1524 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1525 (decode_base_type): Delete ifdeffed out code.
1526
1527 2003-11-04 Andrew Cagney <cagney@redhat.com>
1528
1529 * symtab.c (find_active_alias): Delete function.
1530 (lookup_block_symbol): Delete alias code.
1531 * stabsread.c (resolve_live_range): Delete function.
1532 (add_live_range): Delete function.
1533 (resolve_symbol_reference): Delete function.
1534 (define_symbol): Delete live range and alias code.
1535 (scan_file_globals): Delete alias code.
1536 * symtab.h (SYMBOL_RANGES): Delete macro.
1537 (struct range_list): Delete structure.
1538 (struct symbol): Delete field "ranges".
1539 (SYMBOL_ALIASES): Delete macro.
1540 (struct alias_list): Delete structure.
1541 (struct symbol): Delete field "aliases".
1542
1543 2003-11-04 Michael Snyder <msnyder@redhat.com>
1544
1545 * MAINTAINERS: Remove myself as owner of breakpoints and
1546 of sparc/solaris.
1547
1548 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
1549
1550 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1551 (sh_sh4al_dsp_register_name): Ditto.
1552 (sh4_nofpu_show_regs): Ditto.
1553 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1554 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1555
1556 2003-11-03 Andrew Cagney <cagney@redhat.com>
1557
1558 * bcache.c: Include "gdb_assert.h".
1559 (struct bcache): Add fields "expand_count" and
1560 "expand_hash_count".
1561 (expand_hash_table): Update the expand counts.
1562 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1563 on object sizes and hashes.
1564 * Makefile.in (bcache.o): Update dependencies.
1565
1566 2003-11-03 Andrew Cagney <cagney@redhat.com>
1567
1568 * exec.c (xfer_memory): Eliminate xfer_fn.
1569
1570 2003-10-31 Kevin Buettner <kevinb@redhat.com>
1571
1572 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1573 (opcodes/frv-desc.h): Include.
1574 (iacc0h_regnum, iacc0l_regnum): Define.
1575 (last_spr_regnum, frv_num_regs): Update.
1576 (new_variant): Don't supply default names for holes in the SPRs.
1577 Supply names for iacc0h_regnum and iacc0l_regnum.
1578 (frv_register_type): Use symbolic constants first_fpr_regnum and
1579 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1580 builtin_type_int instead of builtin_type_int32.
1581 (frv_register_sim_regno): New function.
1582 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1583 * Makefile.in (gdb_sim_frv_h): Define.
1584 (frv-tdep.o): Update dependencies.
1585
1586 2003-10-31 Andrew Cagney <cagney@redhat.com>
1587
1588 * avr-tdep.c (avr_frame_this_id): Do not call
1589 deprecated_inside_entry_file.
1590 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1591 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1592 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1593 * arm-tdep.c (arm_prologue_this_id): Ditto.
1594 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1595
1596 2003-10-31 Jim Blandy <jimb@redhat.com>
1597
1598 * elfread.c (elf_symtab_read): Allocate correct number of tail
1599 elements to sectinfo structure. (Fix from Woody LaRue.)
1600
1601 2003-10-31 Andrew Cagney <cagney@redhat.com>
1602
1603 * stack.c (return_command): Use get_frame_type, instead of
1604 CALL_DUMMY_HAS_COMPLETED.
1605 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1606 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1607
1608 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1609
1610 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1611 explicitly specify size of array.
1612 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1613 TDEP->sc_num_regs.
1614
1615 2003-10-31 Andrew Cagney <cagney@redhat.com>
1616
1617 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1618 function.
1619 (s390_gdbarch_init): Set extract_struct_value_address.
1620 * arch-utils.c (generic_cannot_extract_struct_value_address):
1621 Delete function.
1622 * arch-utils.h (generic_cannot_extract_struct_value_address):
1623 Delete definition.
1624
1625 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1626
1627 * i386-linux-nat.c (fetch_core_registers): Remove.
1628 (linux_elf_core_fns): Remove.
1629 (_initialize_i386_linux_nat): Remove.
1630
1631 2003-10-31 Andrew Cagney <cagney@redhat.com>
1632
1633 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1634 "exec.h".
1635 (exec_entry_point): New function.
1636 (enable_break): Create a "tmp_bfd_target", use that and
1637 entry_point_address when computing the relocation offset.
1638 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1639 * Makefile.in (solib-svr4.o): Update dependencies.
1640
1641 2003-10-31 Andrew Cagney <cagney@redhat.com>
1642
1643 * defs.h (XZALLOC): Define.
1644 * target.h (struct target_ops): Add "to_data";
1645 * bfd-target.h, bfd-target.c: New files.
1646 * Makefile.in (SFILES): Add "bfd-target.c".
1647 (COMMON_OBS): Add "bfd-target.o".
1648 (bfd-target.o): Specify dependencies.
1649 (bfd_target_h): Define.
1650 * defs.h (XZALLOC): Define.
1651
1652 2003-10-31 Andrew Cagney <cagney@redhat.com>
1653
1654 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1655 adjust_breakpoint_address.
1656 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1657 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1658 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1659 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1660
1661 2003-10-31 Andrew Cagney <cagney@redhat.com>
1662
1663 * target.h (struct target_ops): Replace "to_read_partial" and
1664 "to_write_partial" with "to_xfer_partial". Update comments.
1665 * target.c (debug_to_write_partial): Delete function.
1666 (debug_to_xfer_partial): Replace debug_to_read_partial.
1667 (add_target, update_current_target, setup_target_debug): Set
1668 "to_xfer_partial" instead of "to_read_partial" and
1669 "to_write_partial".
1670 (default_xfer_partial): Replace "default_write_partial".
1671 (default_read_partial): Delete.
1672 (target_read_partial, target_write_partial): Call
1673 "to_xfer_partial".
1674 * remote.c (init_remote_ops): Set "to_xfer_partial".
1675 (init_remote_async_ops): Ditto.
1676 (remote_xfer_partial): Replace "remote_read_partial".
1677
1678 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1679
1680 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1681 registers in `fxsave' format.
1682 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1683
1684 2003-10-30 Mark Kettenis <kettenis@gnu.org>
1685
1686 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1687 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1688 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1689
1690 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1691 specify size of array.
1692 (i386_linux_init_abi): Remove initialization of
1693 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1694 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1695
1696 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1697 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1698 core-regset.o.
1699
1700 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1701 the ELF header.
1702
1703 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1704
1705 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1706 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1707 core-regset.o.
1708
1709 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1710
1711 * corelow.c: Include "arch-utils.h", "regset.h" and
1712 "gdb_assert.h".
1713 (core_gdbarch): New variable.
1714 (sniff_core_bfd): Don't sniff if we have support for register sets
1715 in CORE_GDBARCH.
1716 (core_close): Reset CORE_GDBARCH.
1717 (core_open): Initialize CORE_GDBARCH.
1718 (get_core_register_section): Use register sets if they are
1719 supported by CORE_GDBARCH.
1720 (get_core_registers): Don't print error message if we have support
1721 for register sets in CORE_GDBARCH.
1722
1723 2003-10-29 Andrew Cagney <cagney@redhat.com>
1724
1725 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1726 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1727
1728 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1729
1730 * objfiles.h (clear_objfile_data): New prototype.
1731 * objfiles.c (clear_objfile_data): New function.
1732 * symfile.c (reread_symbols): Clear per-objfile data.
1733
1734 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1735
1736 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1737 printf_unfiltered instead of printf_filtered for output messages.
1738 (add_symbol_file_command): Ditto.
1739 (reread_symbols): Ditto.
1740 (overlay_auto_command): Ditto.
1741 (overlay_manual_command): Ditto.
1742 (overlay_off_command): Ditto.
1743
1744 2003-10-27 Mark Kettenis <kettenis@gnu.org>
1745
1746 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1747 (gdbarch_from_bfd): New function.
1748 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1749 deprecated_select_gdbarch_hack.
1750 * arch-utils.h (gdbarch_from_bfd): New prototype.
1751
1752 2003-10-27 Andrew Cagney <cagney@redhat.com>
1753
1754 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1755 arch_info. Use warning instead of fprintf_filtered. Do not use
1756 deprecated bfd_printable_arch_mach.
1757
1758 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1759
1760 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1761 Delete.
1762 (frv_register_type): Rename from frv_register_virtual_type. Add
1763 ``struct gdbarch *'' parameter.
1764 (frv_gdbarch_init): Delete calls to the following functions:
1765 set_gdbarch_deprecated_size(),
1766 set_gdbarch_deprecated_register_bytes(),
1767 set_gdbarch_deprecated_register_raw_size(),
1768 set_gdbarch_deprecated_max_register_raw_size(),
1769 set_gdbarch_deprecated_register_virtual_size(),
1770 set_gdbarch_deprecated_max_register_virtual_size(),
1771 set_gdbarch_deprecated_register_virtual_size(),
1772 set_gdbarch_deprecated_register_virtual_type().
1773 Add call to function set_gdbarch_register_type().
1774
1775 2003-10-26 Mark Kettenis <kettenis@gnu.org>
1776
1777 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1778 FDOFF_REGNUM): Remove defines.
1779 * win32-nat.c (do_child_fetch_inferior_registers): Include
1780 "i387-tdep.h".
1781 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1782 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1783 undefine I387_ST0_REGNUM.
1784
1785 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1786 * x86-64-tdep.c (x86_64_store_return_value): Use
1787 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1788
1789 Change register numbers to enumartion values.
1790 * i386-tdep.h (enum i386_regnum): New.
1791 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1792 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1793 I386_ST0_REGNUM): Remove defines.
1794 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1795 I386_EDI_REGNUM): Remove defines.
1796
1797 2003-10-24 Andrew Cagney <cagney@redhat.com>
1798
1799 * target.c: Include "gdbcore.h".
1800 (get_target_memory, get_target_memory_unsigned): New functions.
1801 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1802 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1803 Use get_target_memory_unsigned.
1804 * Makefile.in (target.o): Update dependencies.
1805
1806 2003-10-24 Andrew Cagney <cagney@redhat.com>
1807
1808 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1809 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1810 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1811 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1812 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1813
1814 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1815 (can_run_code_for): Use the OO term "singleton".
1816
1817 2003-10-23 Andrew Cagney <cagney@redhat.com>
1818
1819 * Makefile.in (stack.o): Add $(regcache_h).
1820 * stack.c: Include "regcache.h"
1821 (return_command): Rewrite. Use get_frame_id and
1822 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1823 about unhandled return-values.
1824 * value.h (set_return_value): Delete declaration.
1825 * values.c (set_return_value): Delete function.
1826
1827 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1828
1829 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1830 (pseudo_regs): Add comment regarding register stack registers.
1831 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1832 (floatformat_valid): New static routine.
1833 (floatformat_ia64_ext): Add name field and set up is_valid routine
1834 to floatformat_valid().
1835 (examine_prologue): For the previous cfm, use
1836 frame_unwind_register()
1837 if the cfm is not stored in a register-stack register. Save the
1838 previous cfm value in the prev_cfm field. Add debug output.
1839 (ia64_frame_this_id): Use frame_id_build_special() to also register
1840 the bsp. Add debug output.
1841 (ia64_sigtramp_frame_this_id): Ditto.
1842 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1843 registers and also add some checks for framelessness before accepting
1844 current register values for fields such as return address. For cfm,
1845 use the cached prev_cfm field if available. Add comment to explain
1846 PSR logic. Add debug output.
1847 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1848 as part of initialization.
1849 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1850 calculated. Cache the bsp and cfm values.
1851 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1852 instead of using ia64_frame_prev_register() which doesn't expect most
1853 registers to be saved. The saved values for bsp and sp
1854 can be taken from the cache. Add debug output.
1855 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1856 the bsp.
1857
1858 2003-10-23 Jim Blandy <jimb@redhat.com>
1859
1860 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1861 architecture the current arch can run code for --- but not if it's
1862 a superset.
1863 (can_run_code_for): New function.
1864
1865 2003-10-22 James E Wilson <wilson@specifixinc.com>
1866
1867 * MAINTAINERS: Move myself from paper trail section back to write
1868 after approval section.
1869
1870 2003-10-22 Andrew Cagney <cagney@redhat.com>
1871
1872 * exec.h: New file.
1873 * win32-nat.c: Include "exec.h".
1874 * solib.c: Include "exec.h".
1875 * target.h (build_section_table): Delete declaration.
1876 * somsolib.c: Include "exec.h".
1877 (exec_ops): Delete extern declaration.
1878 * rs6000-nat.c: Update copyright. Include "exec.h".
1879 (exec_ops): Delete extern declaration.
1880 * pa64solib.c: Update copyright. Include "exec.h".
1881 (exec_ops): Delete extern declaration.
1882 * exec.c: Update copyright. Include "exec.h".
1883 * corelow.c: Update dependencies. Include "exec.h".
1884 * Makefile.in (exec_h): Define.
1885 (exec.o, somsolib.o): Update dependencies.
1886 (pa64solib.o, corelow.o): Update dependencies.
1887
1888 2003-10-22 Andrew Cagney <cagney@redhat.com>
1889
1890 * target.c: Include "gdb_assert.h" (target_read): Call
1891 "target_read_partial", not "target_write_partial".
1892 (default_read_partial, default_write_partial): New function.
1893 (target_read_partial, target_write_partial): Simplify, assume that
1894 there is always a read/write method.
1895 (update_current_target, add_target): Always set "to_read_partial"
1896 and "to_write_partial".
1897 (target_write, target_read): Fail on a zero byte transfer.
1898 * Makefile.in (target.o): Update dependencies.
1899 * target.h: Update copyright date.
1900 (target_object): Fix typo.
1901
1902 2003-10-22 Andrew Cagney <cagney@redhat.com>
1903
1904 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1905 multi-arch method, add "targ" parameter.
1906 (struct target_ops): Declare.
1907 * gdbarch.h, gdbarch.c: Re-generate.
1908 * Makefile.in (c-valprint.o): Update dependencies.
1909 * arch-utils.h: Update copyright.
1910 (convert_from_func_ptr_addr_identity): Declare.
1911 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1912 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1913 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1914 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1915 * infcall.c (find_function_addr, call_function_by_hand): Update.
1916 * c-valprint.c: Include "target.h".
1917 (print_function_pointer_address): Update.
1918
1919 2003-10-22 Andrew Cagney <cagney@redhat.com>
1920
1921 * target.c (target_close): New function.
1922 (debug_to_close): Use "target_close".
1923 (push_target): Use "target_close".
1924 (unpush_target): Use "target_close".
1925 (pop_target): Use "target_close".
1926 * target.h (struct target_ops): Add "to_xclose".
1927 (target_open): Delete macro. Move comment to "to_open".
1928 (target_close): Replace macro with function that takes a target.
1929 * top.c (quit_target): Pass "current_target" to "target_close".
1930
1931 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1932
1933 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1934 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1935 * symtab.h (lookup_minimal_symbol_text): Update.
1936 * breakpoint.c (create_overlay_event_breakpoint,
1937 create_longjmp_breakpoint): Update callers.
1938 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1939 * symtab.c (find_pc_sect_line): Ditto.
1940
1941 2003-10-21 Andrew Cagney <cagney@redhat.com>
1942
1943 * target.c (errno): Delete extern declaration.
1944
1945 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1946
1947 * ia64-tdep.c: Change all occurrences of
1948 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1949 (ia64_frame_prev_register): Minor whitespace change.
1950
1951 2003-10-20 Michael Chastain <mec@shout.net>
1952
1953 * config/djgpp/fnchange.lst: Add lines for:
1954 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1955 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1956 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1957 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1958 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1959 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1960 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1961
1962 2003-10-20 Andrew Cagney <cagney@redhat.com>
1963
1964 * values.c (register_value_being_returned): Update comments. Use
1965 "gdbarch_return_value" when available.
1966 (using_struct_return): Ditto.
1967 (set_return_value): Ditto. Use "gdbarch_return_value" when
1968 available.. Print a warning, and not an error, when an unhandled
1969 return type is encountered.
1970 * infcmd.c: Include "gdb_assert.h".
1971 (print_return_value): When gdbarch_return_value_p, and using
1972 struct return, assume that the value is not available.
1973 * defs.h (return_value_convention): Define.
1974 * gdbarch.sh (gdbarch_return_value): New predicate method.
1975 * gdbarch.h, gdbarch.c: Re-generate
1976 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1977
1978 2003-10-20 Andrew Cagney <cagney@redhat.com>
1979
1980 * symtab.c: Replace "struct sec" with "struct bfd_section".
1981 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1982
1983 2003-10-19 Michael Chastain <mec@shout.net>
1984
1985 * config/djgpp/fnchange.lst: Add lines for:
1986 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1987 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1988 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1989
1990 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1991
1992 * amd64fbsd-nat.c (fetch_inferior_registers,
1993 store_inferior_registers): Remove functions.
1994 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1995
1996 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1997
1998 Add NetBSD/amd64 native configuration:
1999 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
2000 * amd64nbsd-tdep.c: New file.
2001 * amd64nbsd-nat.c: New file.
2002 * amd64bsd-nat.c: New file.
2003 * config/i386/nbsd64.mh: New file.
2004 * config/i386/nbsd64.mt: New file.
2005 * configure.host: Add x86_64-*-netbsd*.
2006 * configure.tgt: Add x86_64-*-netbsd*.
2007 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
2008 New targets.
2009 * NEWS (New native configurations): Mention NetBSD/amd64.
2010
2011 2003-10-17 Michael Chastain <mec@shout.net>
2012
2013 * config/djgpp/fnchange.lst: Remove dead lines for:
2014 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
2015 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
2016 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
2017 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
2018 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
2019 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
2020 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
2021 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
2022 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
2023 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
2024 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
2025 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
2026 gdb/config/sparc/tm-sparclite.h,
2027 gdb/gdbtk/generic/ChangeLog-2001,
2028 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
2029 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
2030 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
2031 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
2032 gdb/testsuite/gdb.mi/mi0-var-block.exp,
2033 gdb/testsuite/gdb.mi/mi0-var-child.exp,
2034 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
2035 gdb/testsuite/gdb.mi/mi0-var-display.exp,
2036 itcl/iwidgets3.0.0/demos/extfileselectionbox,
2037 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
2038 itcl/iwidgets3.0.0/demos/fileselectionbox,
2039 itcl/iwidgets3.0.0/demos/fileselectiondialog,
2040 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
2041 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
2042 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
2043 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
2044 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
2045 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
2046 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
2047 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
2048 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
2049 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
2050 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
2051 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
2052 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
2053 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
2054 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
2055 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
2056 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
2057 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
2058 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
2059 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
2060 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
2061 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
2062 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
2063 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
2064 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
2065 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
2066 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
2067 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
2068 itcl/iwidgets3.0.0/demos/html/shell.n.html,
2069 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
2070 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
2071 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
2072 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
2073 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
2074 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
2075 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
2076 itcl/iwidgets3.0.0/demos/scrolledcanvas,
2077 itcl/iwidgets3.0.0/demos/scrolledframe,
2078 itcl/iwidgets3.0.0/demos/scrolledhtml,
2079 itcl/iwidgets3.0.0/demos/scrolledlistbox,
2080 itcl/iwidgets3.0.0/demos/scrolledtext,
2081 itcl/iwidgets3.0.0/demos/selectionbox,
2082 itcl/iwidgets3.0.0/demos/selectiondialog,
2083 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
2084 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
2085 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
2086 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
2087 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
2088 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
2089 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
2090 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
2091 itcl/iwidgets3.0.0/doc/scrolledframe.n,
2092 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
2093 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
2094 itcl/iwidgets3.0.0/doc/scrolledtext.n,
2095 itcl/iwidgets3.0.0/doc/selectionbox.n,
2096 itcl/iwidgets3.0.0/doc/selectiondialog.n,
2097 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
2098 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
2099 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
2100 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
2101 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
2102 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
2103 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
2104 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
2105 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
2106 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
2107 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
2108 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
2109 itcl/iwidgets3.0.0/generic/selectionbox.itk,
2110 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
2111 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
2112 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
2113 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
2114 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
2115 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
2116 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
2117 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
2118 itcl/iwidgets3.0.0/tests/scrolledframe.test,
2119 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
2120 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
2121 itcl/iwidgets3.0.0/tests/scrolledtext.test,
2122 itcl/iwidgets3.0.0/tests/selectionbox.test,
2123 itcl/iwidgets3.0.0/tests/selectiondialog.test,
2124 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
2125 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
2126 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
2127 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
2128 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
2129 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
2130 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
2131 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
2132 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
2133 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
2134 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
2135 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
2136 tk/mac/tkMacProjects.sit.hqx.
2137
2138 2003-10-17 Andrew Cagney <cagney@redhat.com>
2139
2140 * target.c (target_section_by_addr): New function.
2141 (do_xfer_memory): Use "target_section_by_addr".
2142 * target.h (target_section_by_addr): Declare.
2143
2144 * target.h (struct target_ops): Add "to_read_partial" and
2145 "to_write_partial", delete "to_query".
2146 (target_read_partial, target_write_partial): Declare.
2147 (target_read, target_write): Declare.
2148 (target_query): Delete macro.
2149 * target.c (target_read_partial): New function.
2150 (target_write_partial, target_read, target_write): New function.
2151 (update_current_target): Delete inheritance of "to_query". Add
2152 comments about "to_read_partial" and "to_write_partial".
2153 (debug_to_partial_read, debug_to_partial_write): New functions.
2154 (debug_to_query): Delete function.
2155 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
2156 instead of "to_query".
2157 * remote.c (remote_read_partial): Replace "remote_query".
2158 (init_remote_ops): Set "to_read_partial" instead of "to_query".
2159 (init_remote_async_ops): Ditto.
2160 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
2161 "target_read_partial" instead of "target_query".
2162 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
2163 Use "target_read_partial" instead of "target_query".
2164
2165 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
2166
2167 * frame.h (struct frame_id): Add new field: special_addr.
2168 (frame_id_build_special): New prototype.
2169 * frame.c (frame_id_build_special): New function.
2170 (frame_id_build): Change to call frame_id_build_special().
2171 (frame_id_eq): Change to also test special_addr field.
2172 (frame_id_inner): Update comment.
2173
2174 2003-10-17 Andrew Cagney <cagney@redhat.com>
2175
2176 * target.c (update_current_target): Perform the target cleanup.
2177 Put the target stack beneath the squashed "current_target".
2178 (add_target): Delete disabled call to "cleanup_target".
2179 (cleanup_target): Delete function.
2180 (push_target, unpush_target): Do not call "cleanup_target".
2181
2182 2003-10-17 Andrew Cagney <cagney@redhat.com>
2183
2184 * target.c (target_stack): Change to a static target_ops.
2185 (update_current_target): Walk the "struct target_ops" stack.
2186 (pop_target, do_xfer_memory, target_info): Ditto.
2187 (find_target_beneath): Ditto.
2188 (push_target): Rewrite to use the "struct target_ops" stack.
2189 (unpush_target): Ditto.
2190 * target.h (struct target_stack_item): Delete definition.
2191 (target_stack): Delete declaration.
2192 (struct target_ops): Add field "beneath".
2193
2194 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
2195
2196 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2197 declaration.
2198 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
2199 (h8300_examine_prologue): Use h8300_normal_mode flag
2200 (h8300_gdbarch_init): Set architecture info for normal mode
2201
2202 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
2203
2204 * remote.c (remote_protocol_vcont): New variable.
2205 (set_remote_protocol_vcont_packet_cmd): New function.
2206 (show_remote_protocol_vcont_packet_cmd): New function.
2207 (init_all_packet_configs): Handle remote_protocol_vcont.
2208 (remote_vcont_probe): New function.
2209 (remote_vcont_resume): New function.
2210 (remote_resume): Use it.
2211 (remote_async_resume): Call remote_resume.
2212 (_initialize_remote): Add verbose-resume packet commands.
2213
2214 2003-10-16 Andrew Cagney <cagney@redhat.com>
2215
2216 * infrun.c (handle_inferior_event): Add comment about
2217 "frame_id_inner" being too weak.
2218
2219 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
2220
2221 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2222 second parameter, which is always null. Remove
2223 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2224 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2225 accordingly.
2226 * somsolib.c (som_solib_create_inferior_hook,
2227 som_solib_desire_dynamic_linker_symbols): Update callers.
2228 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
2229
2230 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
2231
2232 * remote-m32r-sdi.c : New file, interface to m32r on-chip
2233 debug interface, SDI (Scalable Debug Interface).
2234 * NEWS: Mention m32r SDI protocol was supported.
2235 * Makefile.in (remote-m32r-sdi.o): Add build rule.
2236 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2237
2238 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
2239
2240 * ia64-linux-tdep.c: Include gdbcore.h.
2241 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2242 (ia64_linux_sigcontext_register_addr): Find the address of the
2243 sigcontext area stored in the sigframe instead of using
2244 a magic offset constant.
2245
2246 2003-10-15 Andrew Cagney <cagney@redhat.com>
2247
2248 * remote.c (remote_search): Delete function.
2249 * target.h (target_search): Delete disabled macro.
2250 (struct target_ops): Delete disabled field "to_search".
2251
2252 2003-10-14 Kevin Buettner <kevinb@redhat.com>
2253
2254 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2255 instead of deprecated_inside_entry_file().
2256
2257 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
2258
2259 * sh-tdep.c: Fix copy/paste hangover in comment.
2260 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2261 mode.
2262 (sh3e_sh4_extract_return_value): Ditto.
2263
2264 2003-10-13 Richard Henderson <rth@redhat.com>
2265
2266 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2267 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
2268 match c_val_print a bit closer.
2269
2270 2003-10-13 Kevin Buettner <kevinb@redhat.com>
2271
2272 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2273 (frv_gdbarch_adjust_breakpoint_address): New function.
2274 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2275 method.
2276
2277 2003-10-13 Kevin Buettner <kevinb@redhat.com>
2278
2279 * breakpoint.h (struct breakpoint): Add new member
2280 ``requested_address''.
2281 * breakpoint.c (breakpoint_adjustment_warning)
2282 (adjust_breakpoint_address): New static functions.
2283 (print_it_typical): Issue warning if breakpoint's address is different
2284 from its requested address.
2285 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2286 (breakpoint_re_set_one): Set breakpoint's
2287 ``requested_address'' field. Set ``address'' field to the
2288 result of calling adjust_breakpoint_address() on the requested
2289 address.
2290
2291 2003-10-13 Kevin Buettner <kevinb@redhat.com>
2292
2293 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2294 * gdbarch.h, gdbarch.c: Regenerate.
2295
2296 2003-10-11 Mark Kettenis <kettenis@gnu.org>
2297
2298 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2299 TDEP->sc_num_regs.
2300
2301 * i386fbsd-tdep.c: New file.
2302 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2303 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2304 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2305 i386bsd-tdep.c.
2306 (_initialize_i386fbsd_tdep): New function.
2307 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2308 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2309 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2310 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2311 TDEP->sc_num_regs.
2312 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2313 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2314 to initialize TDEP->sc_num_regs.
2315 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2316 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2317 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2318 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2319 FreeBSD ELF OS/ABI's here.
2320 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2321 (i386fbsd-tdep.o): New target.
2322 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2323 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2324
2325 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2326 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2327 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2328 in initialization of TDEP->sc_num_regs.
2329
2330 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2331 (x86_64_init_abi): Initialize regset_from_core_section if
2332 appropriate.
2333
2334 * i386-tdep.c (i386_regset_from_core_section): New function.
2335 (i386_gdbarch_init): Initialize regset_from_core_section if
2336 appropriate.
2337 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2338
2339 * i386-tdep.h (struct regset): Declare opaque.
2340
2341 * gdbarch.sh (regset_from_core_section): New method.
2342 (struct regset): Declare opaque.
2343 * gdbarch.c, gdbarch.h: Regenerated.
2344
2345 2003-10-11 Alan Modra <amodra@bigpond.net.au>
2346
2347 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2348 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2349 Correct test for pc within section.
2350
2351 2003-10-11 Mark Kettenis <kettenis@gnu.org>
2352
2353 * gdbarch.sh: Remove trailing whitepsace from comments.
2354
2355 2003-10-08 Roland McGrath <roland@redhat.com>
2356
2357 * gcore.c (make_mem_sec): Function removed, folded into ...
2358 (gcore_create_callback): ... here. To omit a section, clear its
2359 SEC_LOAD bit rather than zeroing its size.
2360 Omit read-only sections only if they correspond to a known disk file.
2361 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2362
2363 2003-10-10 Michael Snyder <msnyder@redhat.com>
2364
2365 * d10v-tdep.c: Fix typo in comment.
2366
2367 2003-10-10 Andrew Cagney <cagney@redhat.com>
2368
2369 * rs6000-tdep.c (e500_store_return_value): Delete function.
2370 (e500_extract_return_value): Delete function.
2371 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2372 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2373 "ppc_sysv_abi_restore_return_value" where applicable.
2374 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2375 (ppc_sysv_abi_extract_return_value): Declare.
2376 (ppc_sysv_abi_broken_store_return_value): Declare.
2377 (ppc_sysv_abi_broken_extract_return_value): Declare.
2378 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2379 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2380 start of file.
2381 (do_ppc_sysv_return_value): New function.
2382 (ppc_sysv_abi_extract_return_value): New function.
2383 (ppc_sysv_abi_store_return_value): New function.
2384 (ppc_sysv_abi_broken_extract_return_value): New function.
2385 (ppc_sysv_abi_broken_store_return_value): New function.
2386 (ppc_sysv_abi_use_struct_convention): Call
2387 do_ppc_sysv_return_value.
2388
2389 2003-10-10 J. Brobecker <brobecker@gnat.com>
2390
2391 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2392 to lookup the main function symbol.
2393
2394 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
2395
2396 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2397 types correctly.
2398 (sh_push_dummy_call_fpu): Fix argument passing rules.
2399 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2400 float types.
2401 (sh3e_sh4_store_return_value): Ditto.
2402
2403 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
2404
2405 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2406 comment.
2407
2408 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
2409
2410 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2411 more readable code. Accomodate passing of bitfields.
2412
2413 2003-10-10 Andrew Cagney <cagney@redhat.com>
2414
2415 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2416 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2417 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2418 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2419 (ppc64_sysv_abi_push_dummy_call): New function.
2420 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2421 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2422 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2423
2424 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2425
2426 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2427 * README: Ditto.
2428 * d10v-tdep.c: Ditto.
2429 * h8300-tdep.c: Ditto.
2430 * remote-e7000.c: Ditto.
2431 * remote-hms.c: Ditto.
2432 * ser-e7kpc.c: Ditto.
2433 * sh-stub.c: Ditto.
2434 * sh-tdep.c: Ditto.
2435 * sh-tdep.h: Ditto.
2436 * sh3-rom.c: Ditto.
2437 * sh64-tdep.c: Ditto.
2438 * top.c: Ditto.
2439 * wince.c: Ditto.
2440 * config/d10v/d10v.mt: Ditto.
2441 * config/sh/embed.mt: Ditto.
2442 * config/sh/linux.mt: Ditto.
2443 * config/sh/tm-linux.h: Ditto.
2444 * config/sh/tm-sh.h: Ditto.
2445 * config/sh/wince.mt: Ditto.
2446
2447 2003-10-09 Andrew Cagney <cagney@redhat.com>
2448
2449 * ppc-tdep.h (struct type): Declare opaque.
2450 * x86-64-tdep.h (struct regcache): Declare opaque.
2451 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2452 coding style.
2453
2454 2003-10-09 Andrew Cagney <cagney@redhat.com>
2455
2456 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2457 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2458 (SOFTWARE_SINGLE_STEP_P): Ditto.
2459 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2460 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2461 (SOFTWARE_SINGLE_STEP_P): Ditto.
2462 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2463 software_single_step to rs6000_software_single_step.
2464
2465 2003-10-09 Andrew Cagney <cagney@redhat.com>
2466
2467 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2468
2469 2003-10-09 Michael Snyder <msnyder@redhat.com>
2470
2471 * frame.h: Fix typo in comment.
2472 * dummy-frame.c: Fix typo in comment.
2473 * d10v-tdep.c: Random whitespace/comment tweaks.
2474
2475 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
2476
2477 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
2478 (sh_push_dummy_code): Delete function, it's only used for dummy calls
2479 on stack.
2480
2481 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2482 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2483 in detail.
2484
2485 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
2486
2487 * remote-mips.c (mips_initialize): Remove unneeded call to
2488 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2489
2490 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
2491
2492 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2493 a memory pointer.
2494
2495 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2496
2497 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2498 for any lwp we resume.
2499 (running_callback): Add lwps that have pending status events
2500 against them to be considered running.
2501
2502 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2503
2504 * m32r-tdep.c : Include "dis-asm.h".
2505 * Makefile.in (m32r-tdep.o): Update dependencies.
2506
2507 2003-10-06 J. Brobecker <brobecker@gnat.com>
2508
2509 * completer.h (get_gdb_completer_word_break_characters): Delete.
2510 * completer.c: include language.h.
2511 (gdb_completer_word_break_characters): Delete.
2512 (get_gdb_completer_word_break_characters): Delete.
2513 (location_completer): Use the word break characters of the current
2514 language.
2515 (complete_line): Likewise.
2516 (line_completion_function): Likewise.
2517 (skip_quoted_chars): Likewise.
2518 * Makefile.in (completer.o): Add dependency on language.h.
2519 * top.c (init_main): Set the readline word break characters
2520 to GDB's default word break characters.
2521
2522 2003-10-06 J. Brobecker <brobecker@gnat.com>
2523
2524 * language.h (language_defn): new field, la_word_break_characters.
2525 * language.c (unknown_language_defn): Set new field to
2526 default_word_break_characters.
2527 (auto_language_defn): Likewise.
2528 (local_language_defn): Likewise.
2529 * ada-lang.c (ada_language_defn): Likewise.
2530 * c-lang.c (c_language_defn): Likewise.
2531 (cplus_language_defn): Likewise.
2532 (asm_language_defn): Likewise.
2533 (minimal_language_defn): Likewise.
2534 * f-lang.c (f_language_defn): Likewise.
2535 * jv-lang.c (java_language_defn): Likewise.
2536 * m2-lang.c (m2_language_defn): Likewise.
2537 * objc-lang.c (objc_language_defn): Likewise.
2538 * p-lang.c (pascal_language_defn): Likewise.
2539 * scm-lang.c (scm_language_defn): Likewise.
2540
2541 2003-10-06 Andrew Cagney <cagney@redhat.com>
2542
2543 * ppc-sysv-tdep.c: Re-indent.
2544
2545 2003-10-06 J. Brobecker <brobecker@gnat.com>
2546
2547 * language.h (default_word_break_characters): Add prototype.
2548 * language.c (default_word_break_characters): New function.
2549
2550 2003-10-06 Andreas Schwab <schwab@suse.de>
2551
2552 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2553 with %eax.
2554
2555 2003-10-06 Andrew Cagney <cagney@redhat.com>
2556
2557 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2558 "h8500-tdep.c".
2559 (z8k-tdep.o): Delete custom build rule.
2560
2561 2003-10-06 Andrew Cagney <cagney@redhat.com>
2562
2563 * Makefile.in: Update all dependencies.
2564
2565 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2566 No longer list PA as as obsolete candidate. List m32r as
2567 broken instead of obsolete.
2568
2569 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2570 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2571 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2572 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2573 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2574 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2575 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2576 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2577 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2578 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2579 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2580 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2581 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2582 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2583 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2584 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2585 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2586 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2587 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2588 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2589 * config/z8k/z8k.mt: Ditto.
2590
2591 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2592 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2593 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2594 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2595 sparclite were removed.
2596 * configure.host, configure.tgt: Remove corresponding tuples.
2597
2598 * breakpoint.c, breakpoint.h: Remove obsolete code.
2599 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2600 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2601 * stabsread.h, xcoffread.c: Ditto.
2602
2603 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2604 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2605 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2606 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2607
2608 2003-10-06 David Lecomber <dsl@sources.redhat.com>
2609
2610 * f-valprint.c: Reformatting
2611
2612 2003-10-06 Mark Kettenis <kettenis@gnu.org>
2613
2614 * x86-64-tdep.c: Remove duplicate comment.
2615
2616 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2617 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2618 names for return values. This fixes a bug since we looked at %rbx
2619 instead of %rdx.
2620
2621 2003-10-05 Mark Kettenis <kettenis@gnu.org>
2622
2623 * x86-64-tdep.c: Include "regset.h".
2624
2625 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2626 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2627 sizeof_fpregset.
2628 * i386-tdep.c: Include "regset.h".
2629 (i386_supply_gregset): New function.
2630 (i386_supply_fpregset): New function.
2631 (i386_gdbarch_init): Initialze register set-related members of
2632 TDEP.
2633 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2634 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2635
2636 2003-10-03 Andrew Cagney <cagney@redhat.com>
2637
2638 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2639 set extract_return_value, store_return_value and
2640 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2641 ppc64_sysv_abi_store_return_value and
2642 ppc64_sysv_abi_use_struct_convention.
2643 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2644 (ppc64_sysv_abi_store_return_value): Declare.
2645 (ppc64_sysv_abi_use_struct_convention): Declare.
2646 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2647 (ppc64_sysv_abi_extract_return_value): New function.
2648 (ppc64_sysv_abi_store_return_value): New function.
2649 (ppc64_sysv_abi_use_struct_convention): New function.
2650 (ppc64_sysv_abi_return_value): New function.
2651
2652 2003-10-03 Andrew Cagney <cagney@redhat.com>
2653
2654 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2655 convert a descriptor to a function when it's in the ".opd"
2656 section.
2657
2658 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2659
2660 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2661 reg_size to keep GCC silent.
2662
2663 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2664
2665 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2666 base for DW_EH_PE_textrel encodings.
2667 (read_encoded_value): Add a DW_EH_PE_textrel case.
2668 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2669 section.
2670
2671 2003-10-03 Mark Kettenis <kettenis@gnu.org>
2672
2673 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2674
2675 2003-10-02 Andrew Cagney <cagney@redhat.com>
2676
2677 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2678 REGISTER_RAW_SIZE.
2679 * gdbarch.h, gdbarch.c: Re-generate.
2680 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2681 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2682 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2683 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2684 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2685 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2686 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2687 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2688 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2689 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2690 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2691 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2692 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2693 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2694 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2695 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2696
2697 2003-10-02 Jim Blandy <jimb@redhat.com>
2698
2699 * dwarf2read.c (struct die_info): Doc fix.
2700
2701 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2702
2703 * sh-tdep.c: Running thru gdb_indent.sh.
2704
2705 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2706
2707 * sh-tdep.c (sh_justify_value_in_reg): New function.
2708 (sh_stack_allocsize): Ditto.
2709 (flt_argreg_array): New array used for floating point argument
2710 passing.
2711 (sh_init_flt_argreg): New function.
2712 (sh_next_flt_argreg): Ditto.
2713 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2714 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2715 Fix argument passing strategy.
2716 (sh_push_dummy_call_nofpu): Ditto.
2717
2718 2003-10-01 Andrew Cagney <cagney@redhat.com>
2719
2720 * value.h (register_value_being_returned): Declare. Replace
2721 "value_being_returned".
2722 * infcall.c (call_function_by_hand): Use
2723 register_value_being_returned.
2724 * infcmd.c (print_return_value): Call
2725 "register_value_being_returned", handle struct return locally.
2726 * values.c (register_value_being_returned): New function. Replace
2727 "value_being_returned".
2728
2729 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
2730
2731 * linux-proc.c (linux_do_registers): New function.
2732 (linux_make_note_section): Use linux_do_registers in case of
2733 single threaded inferior programs.
2734
2735 2003-10-01 Andrew Cagney <cagney@redhat.com>
2736
2737 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2738 use STRUCT_ADDR. When not using "struct return convention", pass
2739 "0" to "value_being_returned". Add FIXMEs.
2740 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2741 value_being_returned. Add comments.
2742 * values.c (value_being_returned): Add fixme.
2743 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2744 (hppa_value_returned_from_stack): Add FIXME.
2745
2746 2003-09-30 David Carlton <carlton@kealia.com>
2747
2748 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2749 'has_children' and 'next' by 'child' and 'sibling'.
2750 (read_comp_unit): Rework algorithm, breaking body into
2751 read_die_and_children and read_die_and_siblings.
2752 (read_die_and_children, read_die_and_siblings): New.
2753 (read_full_die): Add 'has_children' argument; set it instead of
2754 the die's 'has_children' field. Minor formatting cleanup.
2755 (free_die_list): Use die->child and die->sibling instead of
2756 die->next.
2757 (dump_die_list): Ditto.
2758 (sibling_die): Use die->sibling.
2759 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2760 'has_children' and 'next' fields.
2761 (process_die, read_file_scope, read_func_scope)
2762 (read_lexical_block_scope, read_structure_scope)
2763 (read_enumeration, read_array_type, read_common_block)
2764 (read_namespace, read_subroutine_type, dump_die): Ditto.
2765
2766 2003-09-30 Andrew Cagney <cagney@redhat.com>
2767
2768 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2769 to 224, not 220.
2770
2771 2003-09-30 Andrew Cagney <cagney@redhat.com>
2772
2773 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2774 REGISTER_VIRTUAL_SIZE.
2775 * gdbarch.h, gdbarch.c: Regenerate.
2776 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2777 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2778 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2779
2780 2003-09-29 Andrew Cagney <cagney@redhat.com>
2781
2782 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2783 REGISTER_VIRTUAL_TYPE.
2784 * gdbarch.h, gdbarch.c: Regenerate.
2785 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2786 * sh64-tdep.c, sparc-tdep.c: Update.
2787
2788 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2789 * remote-vxmips.c (vx_read_register): Ditto.
2790 * remote-vx68.c (vx_read_register): Ditto.
2791 * gnu-nat.c (inf_validate_procs): Ditto.
2792
2793 2003-09-29 J. Brobecker <brobecker@gnat.com>
2794
2795 * infcall.c (call_function_by_hand): Fix build failure
2796 introduced in the previous change to this file.
2797
2798 2003-09-29 Andrew Cagney <cagney@redhat.com>
2799
2800 * NEWS: Mention Objective-C.
2801
2802 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2803
2804 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2805 test if the register has been saved on the stack.
2806 (arm_scan_prologue_cache): When analysing the instruction
2807 "str lr, [sp, #-4]", save the address where lr has been stored.
2808
2809 2003-09-28 Andrew Cagney <cagney@redhat.com>
2810
2811 * frame.c (frame_read_unsigned_register): Delete function.
2812 * frame.h (frame_read_unsigned_register): Delete declaration.
2813 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2814 get_frame_register_unsigned.
2815 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2816 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2817 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2818
2819 * frame.h (frame_read_register): Delete declaration.
2820 * frame.c (frame_read_register): Delete function.
2821 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2822 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2823 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2824 * mips-tdep.c (mips_register_to_value): Ditto.
2825 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2826 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2827
2828 * frame.c (frame_read_signed_register): Delete function.
2829 (frame_read_unsigned_register): Update comments.
2830 * frame.h (frame_read_signed_register): Delete declaration.
2831 * h8300-tdep.c (h8300_print_register): Use
2832 get_frame_register_signed.
2833 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2834
2835 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2836 Rename VALUE_RETURNED_FROM_STACK.
2837 * infcmd.c (print_return_value): Update.
2838 * infcall.c (call_function_by_hand): Update.
2839
2840 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2841
2842 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2843 regcache argument and reverse the order of the other two
2844 arguments. Remove local regcache variable. Determine
2845 architecture from REGCACHE. Update comments.
2846 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2847 reverse the order of the other two arguments. Remove local
2848 regcache variable. Determine architecture from REGCACHE. Update
2849 comments.
2850 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2851 prototypes. Update comments.
2852 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2853 comment.
2854 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2855 Update.
2856 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2857 * i386-interix-nat.c (supply_fpregset): Update.
2858 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2859 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2860 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2861 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2862 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2863 Update.
2864 * i386obsd-tdep.c (fetch_core_registers): Update.
2865 * i386v4-nat.c (supply_fpregset): Update.
2866 * x86-64-linux-nat.c (supply_fpregset): Update.
2867 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2868
2869 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2870
2871 * i386-tdep.h: Put opaque declarations in alphabetical
2872 order. Remove spurious whitespace.
2873 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2874 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2875 * i386-tdep.c (MM0_REGNUM): Remove define.
2876 (i386_mmx_regnum_p): Add gdbarch argument.
2877 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2878 Rewrite using new macro definitions for FPU/SSE registers.
2879 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2880 definitions from i387-tdep.h.
2881 (i386_register_name): Update.
2882 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2883 new macro definitions for FPU/SSE registers.
2884 (i386_extract_return_value): Determine whether floating-point
2885 registers are present by examining REGCACHE's architecture.
2886 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2887 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2888 FPU/SSE registers.
2889 (i386_register_type): Update.
2890 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2891 definitions for FPU registers. Use REGCACHE's architecture to
2892 determine the appropriate register numbers.
2893 (i386_pseudo_register_read, i386_pseudo_register_write,
2894 i386_register_reggroup_p): Update.
2895 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2896 TDEP->mm0_regnum.
2897 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2898 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2899 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2900 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2901 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2902 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2903 *' to `void *'.
2904 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2905 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2906 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2907 definitions for FPU/SSE registers.
2908 (FXSAVE_MXCSR_ADDR): New define.
2909 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2910 TDEP->mm0_regnum.
2911 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2912 (I387_ST0_REGNUM): Define.
2913
2914 * regcache.h (get_regcache_arch): New prototype.
2915 * regcache.c (get_regcache_arch): New function.
2916
2917 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2918 whitespace.
2919
2920 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2921 Initialize using ARRAY_SIZE.
2922
2923 2003-09-27 Andrew Cagney <cagney@redhat.com>
2924
2925 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2926 "init_frame_pc_default".
2927 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2929 * vax-tdep.c (vax_gdbarch_init): Update.
2930 * v850-tdep.c (v850_gdbarch_init): Update.
2931 * sh64-tdep.c (sh64_gdbarch_init): Update.
2932 * s390-tdep.c (s390_gdbarch_init): Update.
2933 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2934 * mcore-tdep.c (mcore_gdbarch_init): Update.
2935 * h8300-tdep.c (h8300_gdbarch_init): Update.
2936 * cris-tdep.c (cris_gdbarch_init): Update.
2937 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2938
2939 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2940
2941 * regset.h: New file.
2942 * Makefile.in (regset_h): Add.
2943
2944 2003-09-25 Andrew Cagney <cagney@redhat.com>
2945
2946 * frame.h (deprecated_frame_saved_regs): Rename
2947 get_frame_saved_regs.
2948 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2949 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2950 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2951 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2952 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2953
2954 2003-09-25 Andrew Cagney <cagney@redhat.com>
2955
2956 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2957 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2958 and Java.
2959 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2960 arm*-*-* do not use the new frame code.
2961
2962 2003-09-25 David Carlton <carlton@kealia.com>
2963
2964 * c-exp.y: Remove 'register' declarations.
2965 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2966
2967 2003-09-25 David Carlton <carlton@kealia.com>
2968
2969 * c-exp.y: Include cp-support.h. Add qualified_type.
2970 (yylex): Delete nested type hack; add comments.
2971 * cp-namespace.c (cp_lookup_nested_type): New function.
2972 * cp-support.h: Declare cp_lookup_nested_type.
2973 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2974 instead of value_struct_elt_for_reference.
2975 * valops.c: Include cp-support.h.
2976 (value_aggregate_elt): New function.
2977 (value_namespace_elt): Ditto.
2978 (value_struct_elt_for_reference): Make static.
2979 * value.h: Delete declaration of value_struct_elt_for_reference;
2980 add declaration for value_aggregate_elt.
2981 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2982 (valops.o): Ditto.
2983
2984 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2985
2986 * stack.c: Include "reggroups.h".
2987 (frame_info): Only display registers in all_reggroup.
2988 * Makefile.in (stack.o): Update dependencies.
2989
2990 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2991
2992 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2993 "add ip, sp #n" in the prologue.
2994 (arm_scan_prologue): Ditto.
2995
2996 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2997
2998 * MAINTAINERS (write after approval): Add myself.
2999
3000 2003-09-25 Andreas Schwab <schwab@suse.de>
3001
3002 * m68k-tdep.c: Include "dwarf2-frame.h".
3003 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
3004 * Makefile.in (m68k-tdep.o): Update dependencies.
3005
3006 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
3007
3008 * sh-tdep.c (struct frame_extra_info): Remove.
3009 (struct sh_frame_cache): New structure.
3010 (GET_SOURCE_REG): New macro extracting source register of an opcode.
3011 (GET_TARGET_REG): Ditto but target register.
3012 (GET_PUSHED_REG): Remove.
3013 (IS_MOV_ARG_TO_REG): New macro.
3014 (IS_MOV_ARG_TO_IND_R14): New macro.
3015 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
3016 (IS_MOVW_PCREL_TO_REG): New macro.
3017 (IS_MOVL_PCREL_TO_REG): New macro.
3018 (IS_SUB_REG_FROM_SP): New macro.
3019 (IS_ARG_MOV): Remove.
3020 (IS_MOV_TO_R14): Remove.
3021 (IS_RESTORE_FP): New macro.
3022 (IS_RTS): New macro.
3023 (IS_LDS): New macro.
3024 (IS_MOV_FP_SP): New macro.
3025 (IS_ADD_REG_TO_FP): New macro.
3026 (IS_ADD_IMM_FP): New macro.
3027 (sh_skip_prologue_hard_way): Remove.
3028 (sh_saved_pc_after_call): Remove.
3029 (sh_frame_chain): Remove.
3030 (sh_find_callers_reg): Remove.
3031 (sh_nofp_frame_init_saved_regs): Remove.
3032 (sh_fp_frame_init_saved_regs): Remove.
3033 (sh_init_extra_frame_info): Remove.
3034 (sh_analyze_prologue): New function.
3035 (sh_skip_prologue): Remove deprecated code. Rely on new function
3036 sh_analyze_prologue when after_prologue fails.
3037 (sh_frame_saved_pc): Remove.
3038 (sh_alloc_frame_cache): New function.
3039 (sh_frame_cache): Ditto.
3040 (sh_frame_prev_register): Ditto.
3041 (sh_frame_this_id): Ditto.
3042 (sh_frame_unwind): New structure defining the heuristic frame
3043 sniffer interface.
3044 (sh_frame_sniffer): New function.
3045 (sh_unwind_sp): Ditto.
3046 (sh_unwind_pc): Ditto.
3047 (sh_unwind_dummy_id): Ditto.
3048 (sh_frame_base_address): Ditto.
3049 (sh_frame_base): New structure defining new frame base code.
3050 (sh_in_function_epilogue_p): New function.
3051 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
3052 code and to call all new code instead. Initialize dwarf2 and
3053 heuristic frame sniffer.
3054
3055 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
3056
3057 * parser-defs.h (struct exp_descriptor): New definition, containing
3058 language-specific info for printing, prefixifying, dumping, and
3059 evaluating expressions.
3060 (exp_descriptor_standard): Declare new variable.
3061 (print_subexp): Make global and declare here (from expprint.c).
3062 (dump_subexp): Ditto.
3063 (dump_subexp_body_standard): Declare.
3064 (operator_length_standard): Declare.
3065 (op_name_standard): Declare.
3066 (print_subexp): Declare.
3067 (print_subexp_standard): Declare.
3068
3069 * language.h (struct language_defn): Add la_exp_desc field to hold
3070 pointer to table for language-specific operators.
3071 Remove evaluate_exp field, which is now in struct exp_descriptor.
3072
3073 * parse.c (operator_length): Move most code to new
3074 operator_length_standard function. Use language-specific information.
3075 (operator_length_standard): New function taking most code from
3076 operator_length.
3077 (exp_descriptor_standard): New constant.
3078
3079 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
3080 and OP_EXTENDED_LAST.
3081
3082 * expprint.c (print_subexp): Use language-specific print_subexp.
3083 Make global; remove static declaration.
3084 Move most code to print_subexp_standard.
3085 (print_subexp_standard): New function, containing code formerly in
3086 print_subexp.
3087 (op_name): Add expression to argument signature.
3088 Use langauge-specific op_name.
3089 Move most code to op_name_standard.
3090 (op_name_standard): New function, containing code formerly in op_name.
3091 (dump_subexp): Use new version of op_name function.
3092 Use language-specific dump_subexp_body, and move most existing code to
3093 dump_subexp_body_standard.
3094 (dump_raw_expression): Use new op_name interface.
3095 (dump_subexp_body): Move most code to dump_subexp_body_standard.
3096 (dump_subexp_body_standard): New function, containing code formerly
3097 in dump_subexp_body.
3098
3099 * language.c (unknown_language): Add default la_exp_desc field and
3100 remove evaluate_exp field.
3101 (auto_language): Ditto.
3102 (local_language): Ditto.
3103 * f-lang.c (f_language_defn): Ditto.
3104 * c-lang.c (c_language_defn): Ditto.
3105 (cplus_language_defn): Ditto.
3106 (asm_language_defn): Ditto.
3107 (minimal_language_defn): Ditto.
3108 * p-lang.c (pascal_language_defn): Ditto.
3109 * m2-lang.c (m2_language_defn): Ditto.
3110 * objc-lang.c (objc_language_defn): Ditto.
3111
3112 * jv-lang.c (exp_descriptor_java): New variable, containing
3113 Java-specific expression evaluator.
3114 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
3115 field.
3116 * scm-lang.c (exp_descriptor_scm): New variable, containing
3117 Scheme-specific expression evaluator.
3118 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
3119 field.
3120 * objc-lang.c (print_object_command): Take evaluate_exp from the
3121 la_exp_desc field.
3122
3123 * Makefile.in (eval.o): Add dependency on parser-defs.h.
3124
3125 * eval.c: Include parser-defs.h for the full declaration of
3126 la_exp_desc's type.
3127 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
3128
3129 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
3130
3131 * parser-defs.h (operator_length): Declare.
3132
3133 * parse.c (length_of_subexp): Use operator_length to get operator
3134 lengths and arities for operators.
3135 Move most code to new operator_length function.
3136 (operator_length): New function absorbing most code from
3137 length_of_subexp.
3138 (prefixify_subexp): Remove large case and use operator_length instead.
3139 (parse_exp_1): Use renamings:
3140 dump_prefix_expression => dump_raw_expression and
3141 dump_postfix_expression => dump_prefix_expression.
3142
3143 * expression.h (dump_prefix_expression): Rename to ...
3144 (dump_raw_expression): New name.
3145 (dump_postfix_expression): Rename to ...
3146 (dump_prefix_expression): New name.
3147
3148 * expprint.c (dump_subexp): Make global. Add comment.
3149 Move most existing code to dump_subexp_body.
3150 (dump_subexp_body): New function.
3151 (dump_prefix_expression): Rename to dump_raw_expression.
3152 Remove attempt to print the expression via print_expression: it can't
3153 work before the expression is prefixified.
3154 (dump_raw_expression): Renamed from dump_prefix_expression.
3155 (dump_postfix_expression): Rename to dump_prefix_expression, since
3156 that's what it does.
3157 Remove 'note' parameter, since this routine must be used on
3158 prefixified expression.
3159 (dump_prefix_expression): Renamed from dump_postfix_expression.
3160
3161 2003-09-22 Jim Blandy <jimb@redhat.com>
3162
3163 * dwarf2read.c (read_array_type): When building the type for an
3164 array of unspecified length, make sure to choose the upper bound
3165 so that the array's total length comes out to be zero --- that's
3166 how we represent such arrays.
3167
3168 2003-09-22 Michael Chastain <mec@shout.net>
3169
3170 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3171
3172 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
3173
3174 * top.c (quit_force): Fix indirect call to quit_target so
3175 a struct qt_args pointer is passed.
3176
3177 2003-09-22 Andrew Cagney <cagney@redhat.com>
3178
3179 * arch-utils.h (init_frame_pc_noop): Delete declaration.
3180 * arch-utils.c (init_frame_pc_noop): Delete function.
3181 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3182 "init_frame_pc".
3183 * mips-tdep.c (mips_gdbarch_init): Ditto.
3184 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3185 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3186 declaration.
3187 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3188 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3189 declaration.
3190 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3191
3192 2003-09-22 Anthony Green <green@redhat.com>
3193
3194 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3195 declaration.
3196
3197 2003-09-20 Andrew Cagney <cagney@redhat.com>
3198
3199 * breakpoint.c: Eliminate ARGSUSED.
3200 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3201 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3202 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3203 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3204 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3205 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3206 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3207 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3208 * wince.c, remote-vx.c: Ditto.
3209
3210 * cli/cli-script.c: Remove "register" attributes.
3211 * config/pa/tm-hppa.h: Ditto.
3212 * cli/cli-decode.c: Ditto.
3213 * cli/cli-cmds.c: Ditto.
3214
3215 2003-09-19 Andrew Cagney <cagney@redhat.com>
3216
3217 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3218 DEPRECATED_NPC_REGNUM.
3219 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3220
3221 2003-09-19 Christopher Faylor <cgf@redhat.com>
3222
3223 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3224
3225 2003-09-19 Jim Blandy <jimb@redhat.com>
3226
3227 * macrotab.c (macro_include): Use the correct comparison to find
3228 the appropriate place for this inclusion in the list.
3229
3230 2003-09-19 Andrew Cagney <cagney@redhat.com>
3231
3232 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3233 (DEPRECATED_HPUX_TEXT_END): Define.
3234 (deprecated_hpux_text_end): Declare.
3235 (struct target_ops): Declare opaque.
3236 * hppah-nat.c (text_end): Make static.
3237 (deprecated_hpux_text_end): New function.
3238 * exec.c (text_end): Delete global variable.
3239 (NEED_TEXT_START_END): Do not define.
3240 (exec_file_attach): Replace code computing "text_end" code with
3241 call to DEPRECATED_HPUX_TEXT_END.
3242
3243 2003-09-19 Andrew Cagney <cagney@redhat.com>
3244
3245 * utils.c (align_up, align_down): New functions.
3246 * defs.h (align_up, align_down): Declare.
3247 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3248 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3249 and "align_down".
3250 (round_up, round_down): Delete functions.
3251 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3252 "align_down".
3253 (ROUND_DOWN, ROUND_UP): Delete macros.
3254 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3255 * h8300-tdep.c: Replace "round_up" and "round_down" with
3256 "align_up" and "align_down".
3257 (round_up, round_down): Delete macros.
3258 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3259 "align_down".
3260 (ROUND_UP, ROUND_DOWN): Delete macros.
3261
3262 2003-09-18 J. Brobecker <brobecker@gnat.com>
3263
3264 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3265 hard-coded constant. Use the proper machine name instead.
3266
3267 2003-09-17 Andrew Cagney <cagney@redhat.com>
3268
3269 * sparc-tdep.c (legacy_register_name): Delete function.
3270 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3271 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3272 * infcmd.c (gdb_register_name): Delete variable.
3273 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3274 REGISTER_NAME and "tm.h".
3275 * gdbarch.h, gdbarch.c: Regenerate.
3276 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3277 REGISTER_NAMES in comments.
3278 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3279 * m68klinux-nat.c (regmap): Ditto.
3280
3281 2003-09-17 Jim Blandy <jimb@redhat.com>
3282
3283 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3284
3285 2003-09-17 Andrew Cagney <cagney@redhat.com>
3286
3287 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3288 (ppcnbsd_init_abi): Set "use_struct_convention" to
3289 "ppcnbsd_use_struct_convention".
3290
3291 2003-09-17 Mark Kettenis <kettenis@gnu.org>
3292
3293 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3294 * gdbarch.h, gdbarch.c: Regenerate.
3295 (stabs_argument_has_addr): New architecture method.
3296 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3297 * arch-utils.c: Include "buildsym.h".
3298 (default_stabs_argument_has_addr): New function.
3299 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3300 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3301
3302 2003-09-17 Andrew Cagney <cagney@redhat.com>
3303
3304 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3305 * gdbarch.h, gdbarch.c: Regenerate.
3306 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3307 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3308 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3309 * sparcnbsd-tdep.c: Update.
3310
3311 2003-09-17 Andrew Cagney <cagney@redhat.com>
3312
3313 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3314 * gdbarch.h, gdbarch.c: Regenerate.
3315 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3316 * d10v-tdep.c, frame.c: Update.
3317 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3318 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3319 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3320 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3321 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3322 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3323 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3324 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3325 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3326 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3327 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3328 * config/pa/nm-hppah.h: Update.
3329
3330 2003-09-16 Andrew Cagney <cagney@redhat.com>
3331
3332 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3333 "use_struct_convention" to "ppc_linux_use_struct_convention".
3334 (ppc_linux_use_struct_convention): New function.
3335 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3336 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3337 "rs6000_use_struct_convention".
3338 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3339 declaration.
3340 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3341 Delete function.
3342
3343 2003-09-16 Andrew Cagney <cagney@redhat.com>
3344
3345 * buildsym.c: Remove more occurances of "register".
3346 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3347 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3348 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3349 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3350 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3351 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3352 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3353 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3354
3355 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
3356
3357 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3358 numbers to enumeration values.
3359 * sh-tdep.c: Accomodate above change.
3360 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3361 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3362 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3363 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3364 (IS_FPUSH): Rename from IS_FMOV.
3365 (sh_extract_struct_value_address): Remove useless comment.
3366 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3367 instead of own local values.
3368 (sh_dump_tdep): Remove.
3369 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3370 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3371
3372 2003-09-15 Andrew Cagney <cagney@redhat.com>
3373
3374 * doublest.c (convert_floatformat_to_doublest): No longer need to
3375 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3376
3377 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
3378
3379 * values.c (unpack_double): Call floatformat_is_valid.
3380
3381 2003-09-15 Mark Kettenis <kettenis@gnu.org>
3382
3383 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3384 ps_strings into a long.
3385
3386 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3387 _initialize_am64fbsd_nat.
3388
3389 2003-09-15 Kevin Buettner <kevinb@redhat.com>
3390
3391 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3392 associated with DW_AT_ranges attribute is out of bounds.
3393
3394 2003-09-15 David Lecomber <dsl@sources.redhat.com>
3395
3396 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3397
3398 2003-09-14 Michael Chastain <mec@shout.net>
3399
3400 * config/m68k/nm-apollo68v.h: Delete.
3401 * config/m68k/xm-apollo68v.h: Delete.
3402
3403 2003-09-14 Andrew Cagney <cagney@redhat.com>
3404
3405 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3406 * dcache.c: Update copyrights and descriptions.
3407 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3408
3409 2003-09-14 Andrew Cagney <cagney@redhat.com>
3410
3411 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3412 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3413
3414 2003-09-14 Andrew Cagney <cagney@redhat.com>
3415
3416 * alpha-nat.c: Remove some occurances of "register".
3417 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3418 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3419 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3420 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3421 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3422 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3423 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3424 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3425 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3426 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3427 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3428 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3429 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3430 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3431 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3432 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3433 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3434 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3435 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3436 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3437 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3438 * values.c, vax-tdep.c, xcoffread.c: Ditto.
3439
3440 2003-09-13 Andrew Cagney <cagney@redhat.com>
3441
3442 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3443 * ppc-tdep.h (struct regcache): Declare opaque.
3444 * objfiles.h (struct objfile_data): Declare opaque.
3445 * cp-support.h (struct objfile): Declare opaque.
3446 * linux-nat.h (target_waitstatus): Declare opaque.
3447
3448 2003-09-14 Mark Kettenis <kettenis@gnu.org>
3449
3450 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3451 (stabs_argument_has_addr): New architecture method.
3452 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3453 * arch-utils.c: Include "buildsym.h".
3454 (default_stabs_argument_has_addr): New function.
3455 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3456 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3457
3458 * cris-tdep.c (cris_gdbarch_init): Set
3459 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3460 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3461 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3462 * mips-tdep.c (mips_gdbarch_init): Likewise.
3463 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3464 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3465
3466 2003-09-13 Andrew Cagney <cagney@redhat.com>
3467
3468 * values.c (using_struct_return): Delete "function" and "funcaddr"
3469 parameters.
3470 * value.h (using_struct_return): Update declaration.
3471 * infcmd.c (finish_command_continuation): Update.
3472 (finish_command): Update.
3473 * infcall.c (call_function_by_hand): Update.
3474 * eval.c (evaluate_subexp_standard): Update.
3475
3476 2003-09-13 Christopher Faylor <cgf@redhat.com>
3477
3478 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3479 SSE registers since gdb will not operate correctly without this.
3480 Restore include file ordering munged in previous change.
3481 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3482
3483 2003-09-13 Mark Kettenis <kettenis@gnu.org>
3484
3485 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3486 REG_STRUCT_HAS_ADDR.
3487 * gdbarch.c, gdbarch.h: Updated.
3488 * infcall.c (call_function_by_hand): Update.
3489 * stabsread.c (define_symbol): Updated.
3490
3491 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3492
3493 2003-09-12 Christopher Faylor <cgf@redhat.com>
3494
3495 * win32-nat.c: Reorganize so that defines used by target headers are
3496 actually defined by the system headers.
3497 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3498 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3499
3500 2003-09-12 Jim Blandy <jimb@redhat.com>
3501
3502 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3503 the file has no .data, .bss, or .rodata sections. Instead wait
3504 until we see a variable alleged to live in one of those sections.
3505
3506 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3507 .bss section, presume that any variables we find live in the
3508 .rodata section.
3509
3510 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3511 offsets for global and static variables.
3512
3513 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3514 symbol types are, by definition, in the .data section, so it is
3515 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3516 If there is no .data section, there should be no N_DATA or N_DATA
3517 | N_EXT symbols.
3518
3519 2003-09-12 Mark Kettenis <kettenis@gnu.org>
3520
3521 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3522 (amd64fbsd_sigcontext_addr): Rewrite.
3523 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3524 with correct values.
3525 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3526 (amd64fbsd_init_abi): Fix typo.
3527
3528 2003-09-12 Andrew Cagney <cagney@redhat.com>
3529
3530 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3531 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3532
3533 2003-09-12 Andrew Cagney <cagney@redhat.com>
3534
3535 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3536 "entry_file_highpc". Update comments.
3537 * defs.h (deprecated_inside_entry_file): Rename
3538 "inside_entry_file".
3539 * blockframe.c (deprecated_inside_entry_file): Rename
3540 "inside_entry_file".
3541 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3542 * vax-tdep.c (vax_frame_chain): Update.
3543 * sh64-tdep.c (sh64_frame_chain): Update.
3544 * sh-tdep.c (sh_frame_chain): Update.
3545 * rs6000-tdep.c (rs6000_frame_chain): Update.
3546 * ns32k-tdep.c (ns32k_frame_chain): Update.
3547 * mips-tdep.c (mips_frame_chain): Update.
3548 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3549 * m32r-tdep.c (m32r_frame_this_id): Update.
3550 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3551 * frv-tdep.c (frv_frame_this_id): Update.
3552 * d10v-tdep.c (d10v_frame_this_id): Update.
3553 * cris-tdep.c (cris_frame_chain): Update.
3554 * blockframe.c (legacy_frame_chain_valid): Update.
3555 * avr-tdep.c (avr_frame_this_id): Update.
3556 * arm-tdep.c (arm_prologue_this_id): Update.
3557 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3558 * objfiles.c (objfile_relocate): Update.
3559 * mipsread.c (mipscoff_symfile_read): Update.
3560 (mipscoff_symfile_read): Update.
3561 * mdebugread.c (parse_partial_symbols): Update.
3562 * dwarfread.c (read_file_scope): Update.
3563 * dwarf2read.c (read_file_scope): Update.
3564 * dbxread.c (read_dbx_symtab): Update.
3565 (read_dbx_symtab): Update.
3566 * coffread.c (complete_symtab): Update.
3567
3568 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3569
3570 * top.c (quit_target): New static helper function.
3571 (quit_force): Moved code to quit_target(). Call quit_target()
3572 via catch_errors() to catch errors during quit.
3573
3574 2003-09-11 David Carlton <carlton@kealia.com>
3575
3576 * buildsym.c (finish_block): Use allocate_block to allocate the
3577 block.
3578 * mdebugread.c (new_block): Add FIXME.
3579
3580 2003-09-11 David Carlton <carlton@kealia.com>
3581
3582 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3583 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3584 (recursive_dump_type): Ditto.
3585 * printcmd.c (print_formatted): Ditto.
3586 * typeprint.c (print_type_scalar): Ditto.
3587 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3588 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3589 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3590 maint_cplus_cmd_list.
3591 * cp-support.c: Make maint_cplus_cmd_list extern.
3592 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3593 command.h.
3594 (lookup_symbol_file): Look in possible namespace blocks when
3595 appropriate.
3596 (initialize_namespace_symtab): New.
3597 (get_possible_namespace_block, free_namespace_block)
3598 (check_possible_namespace_symbols)
3599 (check_possible_namespace_symbols_loop)
3600 (check_one_possible_namespace_symbol)
3601 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3602 (_initialize_cp_namespace): Ditto.
3603 * block.h: Declare allocate_block.
3604 * block.c (allocate_block): New.
3605 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3606 allocate_block.
3607 * symfile.h: Update declaration of add_psymbol_to_list.
3608 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3609 question.
3610 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3611 scan_partial_symbols_call.
3612 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3613 helper functions.
3614 (add_partial_symbol): If necessary, scan mangled names for names
3615 of namespaces.
3616 (add_partial_namespace): Add NAMESPACE argument; generate partial
3617 symbols associated to namespaces.
3618 (add_partial_enumeration): Add NAMESPACE argument.
3619 (new_symbol): Allow namespace syms.
3620 (read_namespace): Generate namespace syms.
3621 * objfiles.h: Add opaque declaration of struct symtab.
3622 (struct objfile): Add cp_namespace_symtab member.
3623 * objfiles.c (allocate_objfile): Set
3624 objfile->cp_namespace_symtab.
3625 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3626 dictionary_h, command_h.
3627
3628 2003-09-11 Andrew Cagney <cagney@redhat.com>
3629
3630 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3631 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3632 near the function's end.
3633 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3634 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3635 regcache_raw_write_signed to set SP_REGNUM.
3636
3637 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
3638
3639 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3640 orig_addrs is set up properly.
3641
3642 2003-09-11 Andrew Cagney <cagney@redhat.com>
3643
3644 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3645 * gdbarch.h, gdbarch.c: Re-generate.
3646 * infcall.c (call_function_by_hand): Update.
3647 * hppa-tdep.c (hppa_push_arguments): Update.
3648 * ada-lang.c (place_on_stack): Update.
3649 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3650 * sparc-tdep.c (sparc_gdbarch_init): Update.
3651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3652 * hppa-tdep.c (hppa_gdbarch_init): Update.
3653 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3654 stack_align.
3655
3656 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
3657
3658 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3659 register do need a frame.
3660
3661 2003-09-11 Andrew Cagney <cagney@redhat.com>
3662
3663 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3664 buildable since GDB 5.0.
3665 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3666 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3667 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3668 * irix4-nat.c: Delete file.
3669 * config/mips/irix4.mh: Delete file.
3670 * config/mips/irix3.mh: Delete file.
3671 * config/mips/irix3.mt: Delete file.
3672 * config/mips/tm-irix3.h: Delete file.
3673 * config/mips/nm-irix3.h: Delete file.
3674 * config/mips/xm-irix3.h: Delete file.
3675 * config/mips/nm-irix4.h: Delete file.
3676 * config/mips/xm-irix4.h: Delete file.
3677 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3678
3679 2003-09-10 J. Brobecker <brobecker@gnat.com>
3680
3681 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3682 * Makefile.in (hppa-tdep.o): Update dependencies.
3683
3684 2003-09-10 James E Wilson <wilson@specifixinc.com>
3685
3686 * MAINTAINERS: Change my e-mail address. Move to paper trail
3687 section.
3688
3689 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3690
3691 * MAINTAINERS (frv): New ISA entry.
3692
3693 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3694
3695 * frv-tdep.c (dis-asm.h): Include.
3696 * Makefile.in (frv-tdep.o): Update dependencies.
3697
3698 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3699
3700 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3701 Fix typo for high range of floating registers.
3702
3703 2003-09-09 David Carlton <carlton@kealia.com>
3704
3705 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3706 highpc initialization here out of scan_partial_symbols.
3707 (scan_partial_symbols): Restructure into a recursive version,
3708 calling add_partial_namespace and add_partial_enumeration when
3709 appropriate.
3710 (add_partial_namespace): New.
3711 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3712
3713 2003-09-09 Andrew Cagney <cagney@redhat.com>
3714
3715 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3716 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3717 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3718 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3719
3720 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3721 (rs6000_push_dummy_call): Set the "TOC" register.
3722
3723 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3724 methods "max_register_raw_size", "max_register_virtual_size" or
3725 "register_virtual_size".
3726
3727 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3728
3729 * MAINTAINERS: Update my e-mail address.
3730
3731 2003-09-09 Andrew Cagney <cagney@redhat.com>
3732
3733 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3734 (rs6000_push_dummy_call): Store the struct return address.
3735 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3736
3737 2003-09-09 Andrew Cagney <cagney@redhat.com>
3738
3739 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3740 "ppc_sysv_abi_push_arguments".
3741 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3742 "ppc_sysv_abi_push_arguments".
3743 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3744 instead of "push_arguments".
3745 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3746
3747 2003-09-09 Andrew Cagney <cagney@redhat.com>
3748
3749 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3750 instead of CALL_DUMMY_ADDRESS.
3751
3752 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3753
3754 * p-lang.c: Eliminate "register".
3755 * c-lang.c: Ditto.
3756 * expprint.c: Ditto.
3757 * f-lang.c: Ditto.
3758 * jv-lang.c: Ditto.
3759 * language.c: Ditto.
3760 * m2-lang.c: Ditto.
3761 * parse.c: Ditto.
3762 * scm-lang.c: Ditto.
3763 * objc-lang.c: Ditto.
3764
3765 2003-09-09 Nick Clifton <nickc@redhat.com>
3766
3767 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3768
3769 2003-09-04 Andrew Cagney <cagney@redhat.com>
3770
3771 * avr-tdep.c: Include "dis-asm.h".
3772 * cris-tdep.c: Include "dis-asm.h".
3773 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3774 instead of corresponding typedef.
3775 * h8300-tdep.c: Include "dis-asm.h".
3776 * ia64-tdep.c: Include "dis-asm.h".
3777 * i386-tdep.c: Include "dis-asm.h".
3778 (i386_print_insn): Use "struct disassemble_info" instead of
3779 corresponding typedef.
3780 * m68k-tdep.c: Include "dis-asm.h".
3781 * mcore-tdep.c: Include "dis-asm.h".
3782 * mips-tdep.c: Include "dis-asm.h".
3783 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3784 instead of corresponding typedef.
3785 * ns32k-tdep.c: Include "dis-asm.h".
3786 * s390-tdep.c: Include "dis-asm.h".
3787 * sparc-tdep.c: Include "dis-asm.h".
3788 * vax-tdep.c: Include "dis-asm.h".
3789 * v850-tdep.c: Include "dis-asm.h".
3790 * mn10300-tdep.c: Include "dis-asm.h".
3791 * rs6000-tdep.c: Include "dis-asm.h".
3792 * xstormy16-tdep.c: Include "dis-asm.h".
3793 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3794 print_insn_xstormy16.
3795 * Makefile.in (v850-tdep.o): Update dependencies.
3796 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3797 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3798 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3799 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3800 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3801 (gdbarch_h): Remove $(dis_asm_h).
3802 * disasm.c: Include "dis-asm.h".
3803 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3804 corresponding typedef.
3805 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3806 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3807 * gdbarch.sh: Do not include "dis-asm.h".
3808 (struct disassemble_info): Declare opaque.
3809 (TARGET_PRINT_INSN): Update declaration.
3810 * gdbarch.h, gdbarch.c: Re-generate.
3811
3812 2003-09-08 Andrew Cagney <cagney@redhat.com>
3813
3814 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3815 CALL_DUMMY_ADDRESS, change to a predicate.
3816 * gdbarch.h, gdbarch.c: Re-generate.
3817 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3818 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3819 * infcall.c (call_function_by_hand): Ditto.
3820 * sparc-tdep.c (sparc_push_return_address): Ditto.
3821 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3822 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3823 CALL_DUMMY_ADDRESS with entry_point_address.
3824 * v850-tdep.c (v850_push_return_address): Ditto.
3825 * s390-tdep.c (s390_push_return_address): Ditto.
3826 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3827 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3828 * mcore-tdep.c (mcore_push_return_address): Ditto.
3829 * cris-tdep.c (cris_push_return_address): Ditto.
3830 * arm-tdep.c (arm_push_return_address): Ditto.
3831
3832 2003-09-08 Andrew Cagney <cagney@redhat.com>
3833
3834 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3835 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3836 and REG_UNMODIFIED to REG_SAME_VALUE.
3837 (execute_cfa_program): Update.
3838 (dwarf2_frame_cache): Update. Initialize table to
3839 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3840 location.
3841 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3842
3843 2003-09-08 Andrew Cagney <cagney@redhat.com>
3844
3845 * gnu-nat.c: Remove "inline" function attribute.
3846 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3847
3848 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3849
3850 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3851 target.
3852
3853 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3854
3855 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3856 (frame_extra_info): Rename this struct to frv_unwind_cache.
3857 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3858 Add fields ``prev_sp'' and ``base''.
3859 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3860 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3861 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3862 Delete.
3863 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3864 Revise all callers. Fill in the unwind cache argument and make
3865 other adjustments to account for new frame mechanisms.
3866 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3867 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3868 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3869 (frv_frame_unwind, frv_frame_base): New structs.
3870 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3871 additional arguments expected by this method and adjust function
3872 body accordingly.
3873 (frv_gdbarch_init): Remove calls to the following functions:
3874 set_gdbarch_deprecated_init_frame_pc(),
3875 set_gdbarch_deprecated_saved_pc_after_call(),
3876 set_gdbarch_deprecated_frame_chain(),
3877 set_gdbarch_deprecated_frame_saved_pc(),
3878 set_gdbarch_deprecated_frame_init_saved_regs(),
3879 set_gdbarch_deprecated_push_arguments(),
3880 set_gdbarch_deprecated_push_return_address(),
3881 set_gdbarch_deprecated_pop_frame(),
3882 set_gdbarch_deprecated_call_dummy_words(),
3883 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3884 set_gdbarch_deprecated_init_extra_frame_info(),
3885 set_gdbarch_deprecated_dummy_write_sp(), and
3886 set_gdbarch_deprecated_pc_in_call_dummy().
3887 Add calls to the following functions:
3888 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3889 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3890 frame_base_set_default().
3891 * Makefile.in (frv-tdep.o): Update dependencies.
3892
3893 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3894
3895 * dwarf2-frame.c (read_encoded_value): Add support for
3896 DW_EH_PE_aligned encoding.
3897
3898 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3899
3900 * infrun.c (normal_stop): Don't print a message if the inferior
3901 has exited.
3902
3903 2003-09-08 Jim Blandy <jimb@redhat.com>
3904
3905 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3906 * dbxread.c: #include "gdb_assert.h".
3907 (read_dbx_symtab): If the objfile has no .data section, use the
3908 section index for the .bss section instead.
3909
3910 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3911
3912 * frame.c (deprecated_safe_get_selected_frame): New function.
3913 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3914 * findvar.c (read_var_value): Call it.
3915
3916 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3917
3918 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3919 (sh64-tdep.o): Add dependencies.
3920 * configure.tgt: Add FIXME to sh-*-linux*.
3921 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3922 (sh_gdbarch_init): Always set correct sh_show_regs function
3923 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3924 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3925 * sh64-tdep.c: New file, containing all sh64 related code from
3926 sh-tdep.c.
3927 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3928 * config/sh/linux.mt (TDEPFILES): Ditto.
3929 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3930 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3931 * config/sh/wince.mt (TDEPFILES): Ditto.
3932
3933 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3934
3935 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3936 (stop_wait_callback): Handle !lp->signalled also.
3937 (lin_lwp_has_pending, flush_callback): New functions.
3938 (lin_lwp_wait): Call flush_callback.
3939 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3940 (linux_proc_pending_signals): New function.
3941 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3942
3943 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3944
3945 From Nick Kelsey <nickk@ubicom.com>:
3946 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3947 when the stop PC is at the beginning of a function also.
3948
3949 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3950
3951 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3952 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3953
3954 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3955
3956 * sol-thread.c: Include "gdb_string.h".
3957
3958 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3959
3960 * gcore.c: Reorder include files in alphabetical order. Include
3961 "gdb_assert.h". Various coding style fixes.
3962 (derive_stack_segment, derive_heap_segment): Replace check for
3963 non-null BOTTOM and TOP with gdb_assert.
3964 (derive_heap_segment): Replace check for successful creation of
3965 ZERO with gdb_assert.
3966 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3967
3968 2003-09-04 Andrew Cagney <cagney@redhat.com>
3969
3970 * thread-db.c (verbose_dlsym): New function.
3971 (thread_db_load): Use verbose_dlsym
3972 (thread_db_new_objfile): Print that libthread_db was loaded, and
3973 that thread debugging was enabled.
3974
3975 2003-09-04 Andrew Cagney <cagney@redhat.com>
3976
3977 * configure.tgt: Add "mips64*-*-*" target. Delete
3978 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3979 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3980 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3981 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3982 mips*-sony-*, and mips64*-*-elf* targets.
3983 * config/mips/embedl.mt: Delete file.
3984 * config/mips/embedl64.mt: Delete file.
3985 * config/mips/mips.mt: Delete file.
3986 * config/mips/mips64.mt: Delete file.
3987 * config/mips/tm-embed.h: Delete file.
3988 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3989 * config/mips/embed64.mt: Delete out-of-date comment.
3990
3991 2003-09-04 Andrew Cagney <cagney@redhat.com>
3992
3993 * hppa-tdep.c (hppa_gdbarch_init): Set
3994 "have_nonsteppable_watchpoint".
3995 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3996 * mips-tdep.c (mips_dump_tdep): Do not print
3997 HAVE_NONSTEPPABLE_WATCHPOINT.
3998 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3999 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4000 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4001 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4002
4003 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
4004
4005 * breakpoint.c (watchpoint_check): Remove accidentally checked in
4006 unused code. Add comment.
4007
4008 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
4009
4010 * breakpoint.c (watchpoint_check): Check for pc being in an
4011 epilogue if watchpoint frame couldn't be found.
4012
4013 2003-09-04 Andrew Cagney <cagney@redhat.com>
4014
4015 * Makefile.in: Re-generate all dependencies.
4016
4017 2003-09-03 Andrew Cagney <cagney@redhat.com>
4018
4019 * arch-utils.h (legacy_print_insn): Delete declaration.
4020 * arch-utils.c (legacy_print_insn): Delete function.
4021 * disasm.c (deprecated_tm_print_insn_info): Delete.
4022 (_initialize_disasm): Delete function, contained code initializing
4023 deprecated_tm_print_insn_info.
4024 * gdbarch.sh (deprecated_tm_print_insn): Delete.
4025 (deprecated_tm_print_insn_info): Delete.
4026 (TARGET_PRINT_INSN): Do not provide a default.
4027 * gdbarch.h, gdbarch.c: Re-generate.
4028
4029 2003-09-03 Andrew Cagney <cagney@redhat.com>
4030
4031 * disasm.c (fprintf_disasm): New function.
4032 (gdb_disassemble_info): Call "init_disassemble_info", instead of
4033 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
4034 reverts 2003-08-14 change.
4035 (_initialize_disasm): Call "init_disassemble_info", instead of
4036 INIT_DISASSEMBLE_INFO_NO_ARCH.
4037
4038 2003-09-03 Michael Snyder <msnyder@redhat.com>
4039
4040 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
4041
4042 2003-09-03 Andrew Cagney <cagney@redhat.com>
4043
4044 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
4045 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
4046 * symfile.c (syms_from_objfile): Update.
4047 (reread_symbols): `Update
4048 * exec.c (exec_file_attach): Update.
4049 (exec_file_attach): Update.
4050 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
4051 2003-08-29 change.
4052 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
4053
4054 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
4055
4056 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
4057 trad-frame.h.
4058 (arm_get_cache): Delete macro.
4059 (struct arm_prologue_cache): Update comments. Make saved_regs into
4060 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
4061 to prev_sp.
4062 (thumb_scan_prologue): Update for cache changes. Don't call
4063 DEPRECATED_PC_IN_CALL_DUMMY.
4064 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
4065 argument and use it in desperation search for our prologue. Do not
4066 search past the specified PC.
4067 (arm_make_prologue_cache): Simplify.
4068
4069 (arm_prologue_this_id, arm_prologue_prev_register)
4070 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
4071 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
4072 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
4073 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
4074 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
4075
4076 (arm_frame_chain_valid, arm_find_callers_reg)
4077 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
4078 (arm_pop_frame): Delete obsolete methods.
4079 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
4080
4081 (arm_gdbarch_init): Update for new frame methods. Register prologue
4082 and sigtramp unwinders. Set the default frame base method.
4083
4084 * Makefile.in (arm-tdep.o): Update dependencies.
4085 * varobj.c (find_frame_addr_in_frame_chain): Call
4086 get_frame_base_address.
4087 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4088
4089 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
4090
4091 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
4092 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
4093 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
4094 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
4095 Take NEXT_FRAME and CACHE arguments. Call
4096 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
4097 Set unwound_pc in CACHE instead of modifying the frame argument.
4098 Don't bother checking the frame type when looking for sigtramp
4099 frames.
4100 (arm_make_prologue_cache, arm_frame_chain)
4101 (arm_init_extra_frame_info): New functions.
4102
4103 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
4104
4105 * arm-tdep.c (arm_get_cache): Define.
4106 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
4107 unwound_sp, unwound_pc, and saved_regs.
4108 (thumb_scan_prologue): Take a cache instead of the frame.
4109 (arm_scan_prologue): Likewise.
4110 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
4111 instead of a temporary frame.
4112 (arm_init_extra_frame_info): Allocate and use a cache.
4113 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
4114
4115 2003-09-03 Andrew Cagney <cagney@redhat.com>
4116
4117 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
4118 * config/mips/wince.mt (TM_CLIBS): Ditto.
4119 * config/sh/wince.mt (TM_CLIBS): Ditto.
4120 * config/pa/hppa64.mt (TM_CLIBS): Delete.
4121 * config/sparc/sp64.mt (CC): Delete.
4122
4123 2003-09-03 Andrew Cagney <cagney@redhat.com>
4124
4125 * defs.h: Do not include "arch-utils.h".
4126 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
4127 GDB_MULTI_ARCH_PURE.
4128 * configure.in (GDB_MULTI_ARCH): Do not define.
4129 * configure, config.in: Regenerate.
4130 * configure.tgt: Do not set variable "gdb_multi_arch".
4131 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
4132 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
4133 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
4134 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
4135 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
4136 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
4137 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
4138 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
4139 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
4140 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
4141 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
4142 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
4143 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
4144 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
4145 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
4146 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
4147 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
4148 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
4149
4150 2003-08-30 Michael Chastain <mec@shout.net>
4151
4152 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
4153 * config/m68k/nm-hp300hpux.h: Delete.
4154 * config/m68k/tm-hp300hpux.h: Delete.
4155 * config/m68k/xm-hp300hpux.h: Delete.
4156 * config/m68k/xm-hp300bsd.h: Delete.
4157 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
4158 tm-hp300hpux.h, xm-hp300hpux.h.
4159 * somsolib.c: Remove comment about hp300 shared libraries.
4160
4161 2003-08-31 Mark Kettenis <kettenis@gnu.org>
4162
4163 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4164 Only define PTRACE_GET_THREAD_AREA is not already defined.
4165 Various style fixes in code and comments and some additional
4166 spelling fixes in comments. Move after functions dealing with
4167 debug registers.
4168 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4169 Fix coding-style.
4170
4171 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4172 frame_unwind_register_unsigned instead of
4173 frame_unwind_unsigned_register.
4174
4175 2003-08-30 Mark Kettenis <kettenis@gnu.org>
4176
4177 * configure.in: Search for gethostbyname in libnsl.
4178 * configure: Regenerated.
4179
4180 2003-08-29 Mark Kettenis <kettenis@gnu.org>
4181
4182 * configure.in: Remove redundant AC_MSG_RESULT in check for
4183 uintptr_t in stdint.h.
4184 * configure: Regenerated.
4185
4186 * amd64-nat.h (struct regcache): Add opaque declaration.
4187
4188 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4189 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4190 Change "register array" to "register cache" in comments.
4191 (x86_64_linux_gregset64_reg_offset): New variable.
4192 (GETREGS_SUPPLIES): Remove macro.
4193 (supply_gregset): Call amd64_supply_native_gregset instead of
4194 x86_64_linux_supply_gregset.
4195 (fill_gregset): Rename `regno' to `regnum'. Call
4196 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4197 (store_regs): Rename `regno' to `regnum'.
4198 (store_fpregs): Rename `regno' to `regnum'.
4199 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
4200 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4201 Reorganize function a bit.
4202 (store_inferior_registers): Rename `regno' to `regnum'. Use
4203 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4204 Reorganize function a bit.
4205 (_initialize_x86_64_linux_nat): New function.
4206 * config/i386/x86-64linux.mh.
4207
4208 2003-08-29 Andrew Cagney <cagney@redhat.com>
4209
4210 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4211 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4212 (target_remove_watchpoint): Delete macro.
4213 (target_insert_watchpoint): Delete macro.
4214 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4215 (remote_mips_stopped_by_watchpoint): Delete declaration.
4216 (remote_mips_remove_watchpoint): Delete declaration.
4217 (remote_mips_set_watchpoint): Delete declaration.
4218 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4219 * remote-mips.c (_initialize_remote_mips): Set
4220 "to_insert_watchpoint", "to_stopped_by_watchpoint",
4221 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4222 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4223 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4224 (mips_stopped_by_watchpoint): Rename
4225 remote_mips_stopped_by_watchpoint.
4226 (mips_can_hardware_watchpoint): Rename
4227 remote_mips_can_use_hardware_watchpoint, update function
4228 signature.
4229
4230 2003-08-29 Mark Kettenis <kettenis@gnu.org>
4231
4232 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4233 USER_DS. We haven't given them a register number yet.
4234
4235 * amd64-nat.h: New file.
4236 * amd64-nat.c: New file.
4237 * amd64fbsd-nat.c: Include "amd64-nat.h".
4238 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4239 (amd64fbsd32_r_reg_offset): New variable.
4240 (supply_gregset): Simply call amd64_supply_native_gregset.
4241 (fill_gregset): Rename `regno' to `regnum'. Simply call
4242 amd64_collect_native_gregset.
4243 (fill_fpregset): Rename `regno' to `regnum'.
4244 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
4245 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4246 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4247 `fpregset_t'. Call amd64_supply_native_gregset instead of
4248 supply_gregset. Call x86_64_supply_fxsave instead of
4249 supply_fpregset.
4250 (store_inferior_registers): Rename `regno' to `regnum'. Replace
4251 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4252 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4253 `fpregset_t'. Call amd64_collect_native_gregset instead of
4254 fill_gregset. Call x86_64_collect_fxsave instead of
4255 fill_fpregset.
4256 (_initialize_am64fbsd_nat): Initialize
4257 amd64_native_gregset32_reg_offset and
4258 amd64_native_gregset64_reg_offset.
4259 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4260
4261 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4262 null pointer. Fix typo in comment.
4263
4264 * regcache.c (supply_register): Reimplement to call
4265 regcache_raw_supply.
4266 (regcache_collect): Reimplement by calling regcache_raw_collect.
4267
4268 2003-08-28 Mark Kettenis <kettenis@gnu.org>
4269
4270 * regcache.c (register_buffer): Consitify first argument.
4271 (regcache_raw_supply, regcache_raw_collect): New
4272 functions.
4273
4274 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
4275
4276 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4277 by Nathan J. Williams.
4278
4279 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
4280
4281 * lin-lwp.c (wait_lwp): New function, copied from
4282 stop_wait_callback. Clean up.
4283 (stop_wait_callback): Use wait_lwp.
4284
4285 2003-08-28 Andrew Cagney <cagney@redhat.com>
4286
4287 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4288 flavour and disassembler options.
4289 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4290 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4291 deprecated_tm_print_insn_info.
4292
4293 2003-08-27 Andrew Cagney <cagney@redhat.com>
4294
4295 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4296 Use target_read_memory.
4297 (s390_get_frame_info): Update. Do not reference
4298 deprecated_tm_print_insn_info.
4299 (s390_check_function_end, s390_is_sigreturn): Ditto.
4300
4301 2003-08-27 Andrew Cagney <cagney@redhat.com>
4302
4303 * Makefile.in (cris-tdep.o): Update dependencies.
4304 * cris-tdep.c: Include "gdb_assert.h".
4305 (cris_gdbarch_init): Set print_insn.
4306 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4307 (cris_delayed_get_disassembler): Simplify, directly call the
4308 disassembler returned by cris_get_disassembler.
4309 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4310 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4311 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4312 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4313 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4314 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4315 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4316 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4317 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4318 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4319 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4320 (gdb_print_insn_sparc): Delete function.
4321 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4322 deprecated_tm_print_insn_info.
4323 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4324 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4325 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4327 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4328 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4329 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4330 (s390_gdbarch_init): Set print_insn.
4331
4332 2003-08-27 Andrew Cagney <cagney@redhat.com>
4333
4334 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4335 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4336 * infcall.c (call_function_by_hand): Convert the entry point
4337 address into a code address.
4338
4339 2003-08-27 Andrew Cagney <cagney@redhat.com>
4340
4341 * dsrec.c: Include "gdb_string.h".
4342 * Makefile.in (dsrec.o): Update dependencies.
4343
4344 2003-08-27 Michael Chastain <mec@shout.net>
4345
4346 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4347
4348 2003-08-27 Andrew Cagney <cagney@redhat.com>
4349
4350 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4351 (alpha_osf1_init_abi): Do not set call_dummy_address.
4352
4353 2003-08-27 David Carlton <carlton@kealia.com>
4354
4355 From Randolph Chung <tausq@debian.org>:
4356 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4357 compiles with -Wformat-nonliteral -Werror.
4358
4359 2003-08-26 Jim Blandy <jimb@redhat.com>
4360
4361 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4362 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4363 bfd_lookup_symbol, since we only want symbols in code sections.
4364 (look_for_base): Pass zero as the SECT_FLAGS argument to
4365 bfd_lookup_symbol, since we're not concerned about which section
4366 the symbol is in.
4367
4368 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4369
4370 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
4371 we are frameless or the return address register is already known.
4372
4373 2003-08-26 Andrew Cagney <cagney@redhat.com>
4374
4375 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4376 in size. Add comments.
4377
4378 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4379
4380 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
4381 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
4382
4383 2003-08-26 Jason Merrill <jason@redhat.com>
4384
4385 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4386 case out of #ifdef MIPS block.
4387
4388 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
4389
4390 PR java/1322
4391 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4392 available before calling SECT_OFF_TEXT.
4393 * PROBLEMS: Remove description of java/1322.
4394
4395 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4396
4397 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
4398 bof, and nat0-nat127 as pseudo-registers.
4399 (ia64_frame_cache): New struct used to cache frame info.
4400 (ia64_register_reggroup_p): New routine used to override default
4401 register grouping so registers without names are still saved and
4402 restored.
4403 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
4404 pseudo values.
4405 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4406 (ia64_pseudo_register_write): New routine to write pseudo-registers.
4407 (ia64_alloc_frame_cache): New routine to create a new
4408 ia64_frame_cache.
4409 (examine_prologue): Change prototype to add next_frame pointer.
4410 Assume frameless until otherwise proven. Verify that the cfm for
4411 current frame matches the cfm that should occur for the prologues
4412 alloc insn and if equal, mark as not frameless. At end of routine,
4413 if not frameless, calculate registers for the previous frame and store
4414 in the cache, if a cache is provided.
4415 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4416 and pass 0 for next_frame.
4417 (ia64_store_return_value): Change to use convert_typed_floating()
4418 instead of calling ia64_convert_to_raw().
4419 (ia64_extract_return_value): Change to use convert_typed_floating()
4420 instead of calling ia64_convert_to_virtual().
4421 (ia64_frame_cache): New routine to support new frame model.
4422 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4423 (ia64_frame_sniffer): Ditto.
4424 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4425 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4426 (ia64_sigtramp_frame_prev_register): Ditto.
4427 (ia64_sigtramp_frame_sniffer): Ditto.
4428 (ia64_frame_base_address): Ditto.
4429 (ia64_extract_struct_value_address): Change to issue error message.
4430 (ia64_frame_align): New routine to align sp.
4431 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
4432 (ia64_push_arguments): Removed. Logic moved to
4433 ia64_push_dummy_call().
4434 (ia64_push_return_address): Ditto.
4435 (ia64_unwind_dummy_id): New function.
4436 (ia64_unwind_pc): Ditto.
4437 (ia64_convert_register_p): Ditto.
4438 (ia64_register_to_value): Ditto.
4439 (ia64_value_to_register): Ditto.
4440 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4441 (ia64_register_byte, ia64_register_raw_size): Ditto.
4442 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4443 (ia64_saved_pc_after_call): Ditto.
4444 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4445 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4446 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4447 (ia64_register_convert_to_raw): Ditto.
4448 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4449 (ia64_init_extra_frame_info): Ditto.
4450 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4451 (ia64_gdbarch_init): Remove registering of deprecated functions that
4452 are no longer used. Add registration of new gdbarch functions.
4453 Remove registering deprecated_write_sp. Replace
4454 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4455 Delete set_gdbarch_deprecated_register_convertible(),
4456 set_gdbarch_deprecated_register_convert_to_virtual(), and
4457 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4458 set_gdbarch_deprecated_register_size(),
4459 set_gdbarch_deprecated_register_bytes(),
4460 set_gdbarch_pcregnum(),
4461 set_gdbarch_deprecated_register_byte(),
4462 set_gdbarch_deprecated_register_raw_size(),
4463 set_gdbarch_deprecated_max_register_raw_size(),
4464 set_gdbarch_deprecated_register_virtual_size(),
4465 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4466 Replace set_gdbarch_deprecated_extract_return_value() with
4467 set_gdbarch_extract_return_value(). Remove calls to:
4468 set_gdbarch_deprecated_saved_pc_after_call();
4469 set_gdbarch_deprecated_frame_chain(),
4470 set_gdbarch_deprecated_frame_saved_pc(),
4471 set_gdbarch_deprecated_frame_init_saved_regs(),
4472 set_gdbarch_deprecated_get_saved_register(),
4473 set_gdbarch_deprecated_call_dummy_words(),
4474 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4475 set_gdbarch_deprecated_init_extra_frame_info(),
4476 set_gdbarch_deprecated_frame_args_address(),
4477 set_gdbarch_deprecated_frame_locals_address(),
4478 and set_gdbarch_deprecated_dummy_write_sp().
4479 Add set_gdbarch_convert_register_p(),
4480 set_gdbarch_register_to_value(),
4481 set_gdbarch_value_to_register(),
4482 set_gdbarch_push_dummy_call(),
4483 set_gdbarch_frame_align(),
4484 set_gdbarch_unwind_dummy_id(),
4485 set_gdbarch_unwind_pc(),
4486 frame_unwind_append_sniffer(),
4487 frame_unwind_append_sniffer(),
4488 and frame_base_set_default().
4489
4490 2003-08-25 Chris Demetriou <cgd@broadcom.com>
4491
4492 * configure.tgt: Document need for special "mipsisa64" handling.
4493 (mipsisa64*-*-linux64): Handle as target linux64.
4494 (mipsisa64*-*-*): Handle as target embed64.
4495
4496 2003-08-18 Michael Chastain <mec@shout.net>
4497
4498 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4499 objfile bug.
4500
4501 2003-08-24 Mark Kettenis <kettenis@gnu.org>
4502
4503 * i387-tdep.h: Update copyright date.
4504 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4505
4506 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4507 CFLAGS games to reflect reality.
4508
4509 2003-08-24 Andrew Cagney <cagney@redhat.com>
4510
4511 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4512 GDB_MULTI_ARCH is always non-zero.
4513 * osabi.c (_initialize_gdb_osabi): Ditto.
4514 (gdbarch_init_osabi): Ditto.
4515 * sparc-tdep.c: Ditto for #if code.
4516
4517 2003-08-23 Mark Kettenis <kettenis@gnu.org>
4518
4519 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4520 Update comments.
4521 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4522 comments.
4523 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4524 x86_64_supply_fxsave.
4525 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4526 x86_64_supply_fxsave.
4527 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4528 x86_64_supply_fxsave.
4529
4530 2003-08-23 Andreas Jaeger <aj@suse.de>
4531
4532 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4533 i387_supply_fxsave.
4534
4535 2003-08-23 Mark Kettenis <kettenis@gnu.org>
4536
4537 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4538 i387_supply_register.
4539 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4540 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4541 i387_supply_fsave.
4542 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4543 i387_supply_fxsave.
4544 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4545 i387_supply_fsave.
4546 * i386bsd-nat.c (supply_fpregset): Adjust call to
4547 i387_supply_fsave.
4548 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4549 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4550 supply_fpregset.
4551 (store_inferior_registers): Remove extraneous whitespace. Call
4552 i387_fill_fsave instead of fill_fpregset.
4553 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4554 (supply_fpregset): Likewise.
4555 * i386v4-nat.c (supply_fpregset): Adjust call to
4556 i387_supply_fsave.
4557 * i386-interix-nat.c (supply_fpregset): Adjust call to
4558 i387_supply_fsave.
4559 * i386-linux-nat.c (supply_fpregset): Adjust call to
4560 i387_supply_fsave.
4561 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4562 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4563 i387supply_fsave and i387_supply_fxsave.
4564 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4565 Incorporate code from `i387_supply_register.
4566 (i387_supply_register): Remove.
4567 (i387_supply_fxsave): Add `regnum' argument.
4568 Update comments.
4569 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4570 prototype.
4571 (i387_supply_register): remove prototype.
4572 Update comments.
4573
4574 2003-08-22 Michael Chastain <mec@shout.net>
4575
4576 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4577 Add lines for files in gdb/testsuite/gdb.cp/* that are
4578 still not 8.3 unique.
4579
4580 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
4581
4582 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4583 TYPE_VPTR_FIELDNO is valid.
4584
4585 2003-08-19 Mark Kettenis <kettenis@gnu.org>
4586
4587 * utils.c (set_width_command): Remove prototypes.
4588 (set_screen_size): New prototype.
4589 (init_page_info): Simplify by fetching the screen size from
4590 Readline. Call set_screen_size.
4591 (set_screen_size): New function.
4592 (set_width): Add missing whitespace in comment.
4593 (set_width_command): Call set_screen_size.
4594 (set_height_command): New function.
4595 (initialize_utils): Fix formatting. Make "set height" command
4596 call set_height_command. Remove redundant code that turns off
4597 pagination if output isn't a terminal. Remove redundant call to
4598 set_width_command.
4599
4600 2003-08-22 Mark Kettenis <kettenis@gnu.org>
4601
4602 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4603 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4604 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4605 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4606 `case' keyword.
4607 (sparc64_register_info): Give the reister with number
4608 SPARC64_STATE_REGNUM a name.
4609 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4610 %asi and %ccr.
4611 (sparc64_push_dummy_call): Take BIAS into account when checking
4612 stcak alignment.
4613 (sparc_software_single_step): Remove assertions that check whether
4614 NPC and NNPC were zero.
4615 (sparc_supply_rwindow): Make public. Merge functionality with
4616 sparc64_supply_rwindow.
4617 (sparc_fill_rwindow): Make public. Merge functionality with
4618 sparc64_fill_rwindow.
4619 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4620 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4621 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4622 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4623 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4624
4625 * reggroups.c: Add whitespace after declarations of local
4626 variables in functions.
4627
4628 2003-08-21 Michael Chastain <mec@shout.net>
4629
4630 * gdbtypes.h: Change array bound type from an int to enum.
4631
4632 2003-08-21 Andrew Cagney <cagney@redhat.com>
4633
4634 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4635 * config/sparc/tm-sparc.h: Ditto.
4636 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4637 unconditionally.
4638 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4639
4640 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4641
4642 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4643 (register_objfile_data, set_objfile_data, objfile_data): New
4644 prototypes.
4645 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4646 prototypes.
4647 (allocate_objfile): Call objfile_alloc_data.
4648 (free_objfile): Call objfile_free_data.
4649 (struct objfile_data): New.
4650 (struct objfile_data_registration): New.
4651 (struct objfile_data_registry): New.
4652 (objfile_data_registry): New variable.
4653 (register_objfile_data): New function.
4654 (objfile_alloc_data, objfile_free_data): New functions.
4655 (set_objfile_data, objfile_data): New functions.
4656 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4657 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4658 (_initialize_dwarf2_frame): New function and prototype.
4659
4660 2003-08-21 Andrew Cagney <cagney@redhat.com>
4661
4662 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4663 a specific architecture.
4664 * arch-utils.h (set_architecture_from_arch_mach): Delete
4665 declaration.
4666 (target_architecture_hook): Delete declaration.
4667 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4668 (default_float_format): Assume GDB_MULTI_ARCH.
4669 (default_double_format): Assume GDB_MULTI_ARCH.
4670 (set_endian_from_file): Delete function.
4671 (arch_ok): Delete function.
4672 (set_arch): Delete function.
4673 (set_architecture_from_arch_mach): Delete function.
4674 (set_architecture_from_file): Delete function.
4675 (set_architecture): Assume GDB_MULTI_ARCH.
4676 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4677
4678 2003-08-21 Mark Kettenis <kettenis@gnu.org>
4679
4680 Rewrite FreeBSD/sparc64 native configuration.
4681 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4682 * sparc64fbsd-nat.c: New file.
4683 * sparc64fbsd-tdep.c: New file.
4684 * sparc64-tdep.c sparc64-tdep.h: New files.
4685 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4686 sparc64fbsd-tdep.o): New dependencies.
4687 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4688 and sparc64fbsd-tdep.c.
4689 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4690 * config/sparc/fbsd.mh: Remove copyright notice.
4691 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4692 sparcbsd-nat.o.
4693 * config/sparc/fbsd.mt: Remove copyright notice.
4694 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4695 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4696 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4697 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4698 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4699 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4700 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4701 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4702 "sparc/tm-sp64.h".
4703 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4704 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4705
4706 2003-08-21 Michael Chastain <mec@shout.net>
4707
4708 * symtab.h: Add doco on the space critical structures and
4709 some measurements of space usage.
4710
4711 2003-08-21 Michael Snyder <msnyder@redhat.com>
4712
4713 * tracepoint.c (trace_dump_command): Trace break address
4714 is subject to DECR_PC_AFTER_BREAK.
4715 (set_traceframe_context): Make "trace_line" an int.
4716 Fixes suggested by Mark Newman <mark.newman@lmco.com>
4717
4718 2003-08-20 Michael Snyder <msnyder@redhat.com>
4719
4720 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4721 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4722 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4723 argument passing.
4724 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4725 functions, replace sh_push_dummy_call.
4726 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4727
4728 2003-08-20 Michael Chastain <mec@shout.net>
4729
4730 * gdbtypes.h (struct main_type): Rearrange to save space.
4731
4732 2003-08-20 Michael Snyder <msnyder@redhat.com>
4733
4734 * trad-frame.c: Comment typo fix.
4735
4736 2003-08-20 Michael Snyder <msnyder@redhat.com>
4737 Kevin Buettner <kevinb@redhat.com>
4738
4739 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4740 (frv_frame_init_saved_regs): Add declaration.
4741 (frame_extra_info): Add new field ``saved_regs''.
4742 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4743 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4744 Update frame related code.
4745 (frv_extract_struct_value_address): Adjust formatting.
4746 * Makefile.in (frv-tdep.o): Update dependencies.
4747 * config/frv/tm-frv.h (target_insert_watchpoint)
4748 (target_remove_watchpoint, target_insert_hw_breakpoint)
4749 (target_remove_hw_breakpoint): Delete these macros.
4750 (remote_insert_watchpoint, remote_remove_watchpoint)
4751 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4752 these declarations.
4753
4754 2003-08-20 Michael Chastain <mec@shout.net>
4755
4756 * defs.h (ENUM_BITFIELD): New macro.
4757 * symtab.h (ENUM_BITFIELD): Use it.
4758 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4759
4760 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4761
4762 * MAINTAINERS (write after approval): Add myself.
4763
4764 2003-08-18 Andrew Cagney <cagney@redhat.com>
4765
4766 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4767 * gdbarch.h, gdbarch.c: Re-generate.
4768 * infcall.c (call_function_by_hand): Adjust the SP by
4769 frame_red_zone_size before allocating any stack space.
4770 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4771 * x86-64-tdep.c (x86_64_frame_align): New function.
4772 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4773
4774 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4775 Remove code adjusting SP so that it skips over the Red Zone.
4776
4777 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4778
4779 * NEWS (New native configurations): Mention FreeBSD/amd64.
4780
4781 2003-08-18 Andrew Cagney <cagney@redhat.com>
4782
4783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4784 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4785 "m68k_frame_p".
4786 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4787
4788 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4789
4790 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4791
4792 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4793
4794 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4795 Define.
4796 * i386-linux-nat.c: Include "linux-nat.h".
4797 (child_post_startup_inferior): New function.
4798
4799 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4800
4801 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4802 at the start of a frameless function. This probably fixes PR
4803 backtrace/1338.
4804
4805 2003-08-17 Michael Chastain <mec@shout.net>
4806
4807 * symfile.c (find_sym_fns): Remove special case for apollo target.
4808
4809 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4810
4811 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4812 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4813 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4814 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4815 (linux_supports_tracevforkdone): New function.
4816 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4817 TRACEVFORKDONE.
4818 (child_follow_fork): Handle vfork.
4819 (linux_handle_extended_wait): Likewise. Also handle exec.
4820 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4821 * NEWS: Mention fork tracing.
4822
4823 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4824
4825 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4826
4827 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4828
4829 * Makefile.in (i386-linux-nat.o): Update dependencies.
4830 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4831 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4832 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4833 * i386-linux-nat.c: Include "linux-nat.h".
4834 (child_post_startup_inferior): New function.
4835 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4836 * infptrace.c (kill_inferior): Wrap in #ifdef.
4837 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4838 attaching to each LWP.
4839 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4840 (init_lin_lwp_ops): Fill in some more operations.
4841 * linux-nat.h (linux_enable_event_reporting)
4842 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4843 prototypes.
4844 * linux-nat.c (linux_enable_event_reporting): New function.
4845 (child_post_attach, linux_child_post_startup_inferior)
4846 (child_post_startup_inferior, child_follow_fork)
4847 (linux_handle_extended_wait, kill_inferior): New functions.
4848
4849 2003-08-16 Andrew Cagney <cagney@redhat.com>
4850
4851 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4852 * gdbarch.h, gdbarch.c: Re-generate.
4853
4854 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4855
4856 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4857
4858 2003-08-16 Andrew Cagney <cagney@redhat.com>
4859
4860 * NEWS: Mention that "set prompt-escape-char" was deleted.
4861 * top.c (get_prompt_1): Delete function.
4862 (gdb_prompt_escape):
4863 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4864 prompt-escape-char" command.
4865 (MAX_PROMPT_SIZE): Delete macro.
4866 (get_prompt): Simplify, do not call get_prompt_1.
4867
4868 2003-08-16 Andrew Cagney <cagney@redhat.com>
4869
4870 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4871 -Werror. -Wformat-nonliteral problems.
4872
4873 2003-08-15 J. Brobecker <brobecker@gnat.com>
4874
4875 Further multiarching work mostly for hppa64-*-hpux11:
4876 * hppa-tdep.h: New file.
4877 * hppa-tdep.c: #include hppa-tdep.c.
4878 (hppa32_num_regs): Renamed from hppa_num_regs.
4879 (hppa64_num_regs): New constant.
4880 (hppa64_call_dummy_breakpoint_offset): New constant.
4881 (hppa32_call_dummy_length): New constant.
4882 (hppa64_call_dummy_length): New constant.
4883 (hppa32_stack_align): Make name 32bit explicit.
4884 (hppa32_register_virtual_type): Likewise.
4885 (hppa32_extract_return_value): Likewise.
4886 (hppa32_use_struct_convention): Likewise.
4887 (hppa32_store_return_value): Likewise.
4888 (hppa64_register_virtual_type): New function.
4889 (hppa64_extract_return_value): New function.
4890 (hppa64_use_struct_convention): New function.
4891 (hppa64_store_return_value): New function.
4892 (hppa_frame_locals_address): Remove declaration, function does
4893 not exist anymore.
4894 (hppa_register_byte): Add support for PA64 ABI.
4895 (hppa_gdbarch_init): Add support for PA64 ABI.
4896 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4897 Make name 32bit explicit.
4898 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4899 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4900 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4901 (hppa64_hpux_frame_base_before_sigtramp): New function.
4902 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4903 * config/pa/tm-hppa64.h: Remove macros that are no longer
4904 necessary now that the gdbarch vector is properly setup.
4905 Transform some macros into function calls. Some minor cleanup.
4906 * config/pa/tm-hppah.h: Update function calls in macros
4907 following the function renaming in hppa-hpux-tdep.c.
4908 * Makefile.in (hppa_tdep_h): New variable.
4909 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4910
4911 2003-08-14 Michael Snyder <msnyder@redhat.com>
4912
4913 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4914
4915 2003-08-13 J. Brobecker <brobecker@gnat.com>
4916
4917 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4918 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4919 routine.
4920
4921 2003-08-13 Michael Snyder <msnyder@redhat.com>
4922
4923 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4924 (frv_saved_pc_after_call): Use deprecated ftype.
4925 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4926 (frv_remote_translate_xfer_address): Remove.
4927 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4928
4929 2003-08-13 J. Brobecker <brobecker@gnat.com>
4930
4931 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4932 initialization after the common gdbarch initialization, not before.
4933
4934 2003-08-13 J. Brobecker <brobecker@gnat.com>
4935
4936 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4937 (ADDR_BITS_REMOVE): Remove, redundant.
4938
4939 2003-08-13 J. Brobecker <brobecker@gnat.com>
4940
4941 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4942 gdbarch method to clear the 2 low bits of text addresses.
4943
4944 2003-08-12 Andrew Cagney <cagney@redhat.com>
4945
4946 * Makefile.in (dsrec.o): Update dependencies.
4947 * dsrec.c: Include "gdb_assert.h".
4948 (make_srec): Use snprintf instead of sprintf, use a literal format
4949 string.
4950
4951 2003-08-12 Andrew Cagney <cagney@redhat.com>
4952
4953 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4954 FRAME_OBSTACK_ZALLOC.
4955
4956 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4957
4958 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4959 SSE registers.
4960
4961 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4962
4963 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4964 amd64fbsd_sc_reg_offset): Add extern declarations.
4965 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4966 declarations.
4967
4968 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4969
4970 * MAINTAINERS (write after approval): Update my mail address.
4971
4972 2003-08-10 Andrew Cagney <cagney@redhat.com>
4973
4974 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4975
4976 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4977
4978 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4979 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4980 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4981 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4982 i386bsd_sc_reg_offset): Add extern declarations.
4983 * i386obsd-nat.c: Include "i386-tdep.h"
4984 (_initialize_i386obsd_nat): Remove extern declarations.
4985 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4986 declarations.
4987 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4988 declarations.
4989
4990 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4991 instead of frame_read_register.
4992 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4993 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4994 SP_REGNUM.
4995 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4996 instead of frame_unwind_unsigned_register. Use
4997 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4998 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4999 instead of read_register. Use builtin_type_void_data_ptr instead
5000 of builtin_type_void_func_ptr when extracting the address of the
5001 jmp_buf.
5002 (i386_extract_return_value, i386_store_return_value,
5003 i386_pseudo_register_read, i386_pseudo_register_write): Use
5004 register_size instead REGISTER_RAW_SIZE.
5005
5006 2003-08-10 Andrew Cagney <cagney@redhat.com>
5007
5008 * infcall.c (call_function_by_hand): Use xstrprintf instead of
5009 sprintf. Make "name" constant.
5010
5011 2003-08-10 Mark Kettenis <kettenis@gnu.org>
5012
5013 * i387-tdep.c (i387_register_to_value): Use get_frame_register
5014 instead of frame_read_register.
5015 (i387_print_float_info): Use get_frame_register and
5016 get_frame_register_unsigned instead of frame_register_read.
5017
5018 * i386fbsd-nat.c: Include "i386-tdep.h".
5019 (child_resume): Make `eflags' an ULONGEST. Use
5020 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
5021 instead of register_read and register_write.
5022
5023 * i386bsd-nat.c (fetch_inferior_registers,
5024 store_inferior_registers): Don't use && at the end of a line.
5025 (_initialize_i386bsd_nat): Fix typo.
5026
5027 * frame.c (_initialize_frame): Add missing backslash.
5028
5029 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
5030 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
5031 and supply_register instead of manipulating the register buffer
5032 directly.
5033
5034 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
5035 * config/i386/nm-i386sol2.h
5036 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
5037
5038 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
5039 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
5040 instructions that GCC likes to mingle into the prologue. Fixes
5041 gdb/1253 and gdb/1255.
5042
5043 2003-08-09 Andrew Cagney <cagney@redhat.com>
5044
5045 Fix GDB PR cli/926.
5046 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
5047 * command.h (add_setshow_uinteger_cmd): Declare.
5048 * frame.c (set_backtrace_cmd): New function.
5049 (show_backtrace_cmd): New function.
5050 * frame.c (_initialize_frame): Replace "set/show
5051 backtrace-below-main" with "set/show backtrace past-main". Add
5052 command "set/show backtrace limit".
5053 (backtrace_past_main): Rename "backtrace_below_main".
5054 (backtrace_limit): New variable.
5055 (get_prev_frame): Update. Check the backtrace_limit.
5056
5057 2003-08-09 Andrew Cagney <cagney@redhat.com>
5058
5059 * defs.h (xstrprintf): Declare.
5060 * utils.c (xstrprintf): New function.
5061 * breakpoint.c (insert_breakpoints): Replace sprintf and
5062 non-literal format strings, with xstrprintf and cleanups.
5063 (delete_breakpoint,breakpoint_re_set): Ditto.
5064 (commands_command, insert_breakpoints): Ditto.
5065 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
5066 (break_at_finish_command_1): Ditto.
5067
5068 2003-08-09 Andrew Cagney <cagney@redhat.com>
5069
5070 * MAINTAINERS (language support): List Adam Fedor as Objective C
5071 maintainer.
5072
5073 2003-08-08 J. Brobecker <brobecker@gnat.com>
5074
5075 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
5076 are now multiarched.
5077
5078 2003-08-08 J. Brobecker <brobecker@gnat.com>
5079
5080 * config/pa/tm-hppa64.h: Remove lots of macros that are no
5081 longer necessary now that hppa64 is partially multiarch'ed.
5082
5083 2003-08-08 Andrew Cagney <cagney@redhat.com>
5084
5085 * interps.c (interp_set): Check for a NULL "old_interp".
5086
5087 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
5088
5089 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
5090 (install-only): Support DESTDIR.
5091 (uninstall): Likewise.
5092 (install-gdbtk): Likewise.
5093
5094 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
5095
5096 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
5097 contains something meaningful at all times.
5098
5099 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
5100
5101 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
5102
5103 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
5104
5105 * MAINTAINERS (write after approval): Added self.
5106
5107 2003-08-07 Andrew Cagney <cagney@redhat.com>
5108
5109 * inferior.h (AT_SYMBOL): Define.
5110 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
5111 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
5112 * mips-tdep.c (mips_call_dummy_address): Delete function.
5113 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
5114 set call_dummy_address.
5115
5116 2003-08-07 Andrew Cagney <cagney@redhat.com>
5117
5118 * language.c (op_error): Delete function.
5119 (binop_type_check): Delete function.
5120 * language.h (type_op_error, range_op_error): Delete macros.
5121 (op_error): Delete declaration.
5122
5123 2003-08-07 Andrew Cagney <cagney@redhat.com>
5124
5125 * interps.h (INTERP_MI2, INTERP_MI3): Define.
5126
5127 2003-08-07 Michal Ludvig <mludvig@suse.cz>
5128
5129 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
5130 (x86_64_push_arguments): Skip the red zone.
5131
5132 2003-08-05 Andrew Cagney <cagney@redhat.com>
5133
5134 * reggroups.c (reggroup_next): Check for the final entry.
5135
5136 2003-08-04 Andrew Cagney <cagney@redhat.com>
5137
5138 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
5139 * cli/cli-script.c (define_command): Call query directly, instead
5140 of passing it a buffer.
5141 * ocd.c (ocd_error): Pass error a constant format string.
5142 * remote-mips.c (mips_error): Use fputs_filtered.
5143
5144 * solib-svr4.c (_initialize_svr4_solib): Update
5145 register_gdbarch_data call.
5146 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
5147
5148 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
5149 (register_gdbarch_data): Delete "free" parameter. Update
5150 comments.
5151 * gdbarch.h, gdbarch.c: Re-generate.
5152 * reggroups.c (_initialize_reggroup): Update.
5153 * gnu-v3-abi.c (init_gnuv3_ops): Update.
5154 * frame-base.c (_initialize_frame_base): Update.
5155 * frame-unwind.c (_initialize_frame_unwind): Update.
5156 * user-regs.c (_initialize_user_regs): Update.
5157 * remote.c (_initialize_remote): Update.
5158 * regcache.c (_initialize_regcache): Update.
5159
5160 * regcache.c (xfree_regcache_descr): Delete function.
5161 (_initialize_regcache): Update call to register_gdbarch_data.
5162 (init_regcache_descr, init_legacy_regcache_descr): Use
5163 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
5164
5165 * remote.c (free_remote_state): Delete function.
5166 (_initialize_remote): Update register_gdbarch_data.
5167 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5168 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5169
5170 2003-08-04 Andrew Cagney <cagney@redhat.com>
5171
5172 * reggroups.c (struct reggroup_el): Define.
5173 (struct reggroups): Delete field "nr_group". Replace array
5174 "group" with a "first" to "last" linked list.
5175 (reggroups_init): Update. Allocate using gdbarch's obstack.
5176 (reggroups_free): Delete function.
5177 (add_group): Update. Add "el" parameter.
5178 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5179 (default_groups): Update.
5180 (reggroup_next): Replace reggroups.
5181 (reggroups_dump): Update.
5182 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5183 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5184 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5185
5186 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
5187
5188 * Makefile.in (tui-interp.o): Update dependencies.
5189
5190 2003-08-04 David Carlton <carlton@kealia.com>
5191
5192 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5193 to internal_error call.
5194 * source.c (forward_search_command): Add "%s" format argument.
5195 (reverse_search_command): Ditto.
5196 * top.c (quit_confirm): Ditto.
5197 * cli/cli-setshow.c (do_setshow_command): Ditto.
5198 * cp-valprint.c (cp_print_class_method): Replace
5199 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5200 (cp_print_class_member): Ditto.
5201 * event-top.c (command_line_handler): Ditto.
5202 * linux-proc.c (linux_info_proc_cmd): Ditto.
5203 * p-typeprint.c (pascal_type_print_base): Ditto.
5204 * p-valprint.c (pascal_object_print_class_method): Ditto.
5205 (pascal_object_print_class_member): Ditto.
5206 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5207 * remote.c (remote_cisco_section_offsets): Ditto.
5208 * top.c (command_line_input): Ditto.
5209 * utils.c (vwarning,error_stream,quit): Ditto.
5210 * valprint.c (print_floating,print_binary_chars)
5211 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5212
5213 2003-08-04 Andrew Cagney <cagney@redhat.com>
5214
5215 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5216
5217 2003-08-02 Andrew Cagney <cagney@redhat.com>
5218
5219 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5220 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5221 amd64fbsd-nat.c.
5222
5223 2003-08-02 Andrew Cagney <cagney@redhat.com>
5224
5225 * Makefile.in: Update all dependencies and definitions.
5226
5227 2003-08-02 Adam Fedor <fedor@gnu.org>
5228
5229 * linespec.c (is_objc_method_format): New function
5230 (decode_line_1, locate_first_half): Use it.
5231 Fixes PR objc/1298
5232
5233 2003-08-01 Andrew Cagney <cagney@redhat.com>
5234
5235 * NEWS: Mention that m32r is multi-arch.
5236 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5237 * configure.tgt: Recognize m32r-*-*.
5238 * config/m32r/tm-m32r.h: Delete file.
5239 * config/m32r/m32r.mt: New file.
5240 * m32r-rom.c (m32r_upload_command): Use hostent only when
5241 gethostname succeeds, in order to avoid a compilation
5242 warning.
5243 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5244 compiler warning.
5245
5246 2003-08-01 Michael Snyder <msnyder@redhat.com>
5247
5248 * sh-tdep.c (sh_frame_align): New gdbarch method.
5249 (sh_gdbarch_init): Set up frame_align method.
5250
5251 2003-07-31 Michael Snyder <msnyder@redhat.com>
5252
5253 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5254 which is already covered by the new frames infrastructure.
5255
5256 2003-07-31 Andrew Cagney <cagney@redhat.com>
5257
5258 * user-regs.c (struct user_reg): Add "next" link.
5259 (struct user_regs): Replace "user" with "first" and "last" links.
5260 (append_user_reg): Add pre-allocated "reg" parameter.
5261 (builtin_user_regs): Provide initial value for "last".
5262 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5263 (user_regs_init): Allocate memory from the gdbarch obstack.
5264 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5265 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5266 linked list.
5267 (usernum_to_user_reg): New function.
5268 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5269 (value_of_user_reg): Use usernum_to_user_reg.
5270 (user_regs_free): Delete function.
5271 (_initialize_user_regs): Update register_gdbarch_data call.
5272
5273 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
5274
5275 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5276
5277 2003-07-30 Michael Snyder <msnyder@redhat.com>
5278
5279 * value.h (value_being_returned): Add a struct_addr argument.
5280 * infcall.c (call_function_by_hand): Pass struct_addr to
5281 value_being_returned.
5282 * infcmd.c (print_return_value): Pass zero as struct_addr.
5283 * values.c (value_being_returned): If struct_addr is passed,
5284 use it instead of trying to recover it from the inferior.
5285
5286 2003-07-30 Kevin Buettner <kevinb@redhat.com>
5287
5288 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5289 the prologue analyzer won't need to attempt to extract the pc
5290 value from the woefully incomplete dummy frame.
5291 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5292 possible. Disable code which modifies the frame.
5293
5294 2003-07-28 Andrew Cagney <cagney@redhat.com>
5295
5296 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5297 to level 2.
5298 (annotate_breakpoints_table, annotate_record): Ditto.
5299 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5300 (annotate_field_name_end, annotate_field_value): Ditto.
5301 (annotate_field_end, annotate_frame_source_begin): Ditto.
5302 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5303 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5304 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5305 (annotate_frame_address_end, annotate_frame_address): Ditto.
5306 (annotate_frame_args, annotate_frame_end): Ditto.
5307 (annotate_frame_where, annotate_arg_begin): Ditto.
5308 (annotate_arg_name_end, annotate_arg_value): Ditto.
5309 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5310 (annotate_function_call, annotate_signal_name): Ditto.
5311 (annotate_signal_string, annotate_signal_name_end): Ditto.
5312 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5313 (annotate_value_begin, annotate_value_history_value): Ditto.
5314 (annotate_value_history_end, annotate_value_end): Ditto.
5315 (annotate_display_begin, annotate_display_number_end): Ditto.
5316 (annotate_display_format, annotate_display_expression): Ditto.
5317 (annotate_display_expression_end, annotate_display_value): Ditto.
5318 (annotate_display_end, annotate_array_section_begin): Ditto.
5319 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5320 (annotate_elt, annotate_array_section_end): Ditto.
5321
5322 2003-07-28 Andrew Cagney <cagney@redhat.com>
5323
5324 * regcache.c (struct regcache_descr): Update comments on
5325 nr_raw_registers.
5326 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5327 sizeof_raw_register_valid_p.
5328 (init_regcache_descr): Set nr_raw_registers and
5329 sizeof_raw_register_valid_p before calling
5330 init_legacy_regcache_descr.
5331
5332 2003-07-28 Andrew Cagney <cagney@redhat.com>
5333
5334 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5335 MOD NUM_REGS.
5336
5337 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
5338
5339 * thread.c (info_threads_command): Use get_selected_frame ().
5340 Check that there is at least one non-sentinel frame.
5341
5342 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5343
5344 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5345 (m68hc11_pop_frame): Remove.
5346 (m68hc11_frame_saved_pc): Remove.
5347 (m68hc11_frame_chain): Remove.
5348 (m68hc11_frame_init_saved_regs): Remove.
5349 (m68hc11_init_extra_frame_info): Remove.
5350 (m68hc11_store_struct_return): Remove.
5351 (m68hc11_saved_pc_after_call): Remove.
5352
5353 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5354
5355 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5356 frame unwind information.
5357 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5358 and adapted for frame unwinding.
5359 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5360 (m68hc11_unwind_pc): New function.
5361 (m68hc11_frame_unwind_cache): New function to analyze frames.
5362 (m68hc11_frame_this_id): New function to create new frame struct.
5363 (m68hc11_frame_prev_register): New function to unwind a register from
5364 the frame.
5365 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5366 (m68hc11_frame_p): New function for the above.
5367 (m68hc11_frame_base_address): New function to return fp of frame.
5368 (m68hc11_frame_args_address): Update for frame.
5369 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5370 (m68hc11_unwind_sp): New function.
5371 (m68hc11_unwind_dummy_id): New function.
5372 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5373 calls.
5374
5375 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5376
5377 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5378 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5379 when we are beyond the current pc.
5380
5381 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5382
5383 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5384 from m68hc11_push_arguments.
5385 (m68hc11_push_arguments): Remove.
5386 (m68hc11_push_return_address): Remove.
5387 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5388 handlers; remove deprecated_extra_stack_alignment_needed.
5389
5390 2003-07-27 Andrew Cagney <cagney@redhat.com>
5391
5392 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5393 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5394 REAL_PC and not the pointer.
5395 * hppa-hpux-tdep.c: Include frame.h
5396
5397 2003-07-27 Andrew Cagney <cagney@redhat.com>
5398
5399 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5400 GDB_MULTI_ACH_PARTIAL.
5401
5402 2003-07-27 Andrew Cagney <cagney@redhat.com>
5403
5404 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5405 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5406 operator at start and not end of line.
5407 (decode_prologue): Ditto.
5408 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5409 frame_unwind_register_unsigned instead of
5410 frame_unwind_unsigned_register.
5411 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5412 read_register.
5413 (m32r_push_dummy_call): Use register_size instead of
5414 REGISTER_RAW_SIZE.
5415 (m32r_frame_sniffer): Replace m32r_frame_p.
5416 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5417 * m32r-rom.c (report_transfer_performance): Delete extern
5418 declaration.
5419 (m32r_load, m32r_upload_command): Use print_transfer_performance
5420 instead of report_transfer_performance.
5421 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5422 / add_show_from_set.
5423
5424 2003-07-26 Andrew Cagney <cagney@redhat.com>
5425
5426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5427 store_return_value and extract_struct_value_address.
5428
5429 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
5430
5431 PR c++/1267
5432 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5433 NULL, default to the section containing PC.
5434
5435 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5436
5437 * NEWS: Mention "regs" deprecated for m68hc11 too.
5438
5439 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5440 (m68hc11_print_register): New function to print out one register.
5441 (m68hc11_print_registers_info): New function to print registers.
5442 (show_regs): Deprecate and use the above.
5443 (m68hc11_gdbarch_init): Install the print_registers_info.
5444
5445 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5446
5447 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5448 that we have a SIGTRAP before returning non-zero.
5449
5450 2003-07-23 Michal Ludvig <mludvig@suse.cz>
5451 Elena Zannoni <ezannoni@redhat.com>
5452
5453 * linespec.c (decode_line_2): Avoid crash if
5454 find_function_start_sal() returns empty record.
5455
5456 2003-07-23 Andreas Schwab <schwab@suse.de>
5457
5458 * ia64-tdep.c (ia64_print_insn): New function.
5459 (ia64_gdbarch_init): Set print_insn to it.
5460 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5461 deprecated_tm_print_insn_info.
5462
5463 2003-07-22 Michael Snyder <msnyder@redhat.com>
5464
5465 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5466 handle 8-bit returns (long long).
5467 (h8300h_extract_return_value): Ditto.
5468 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5469
5470 2003-07-22 Andrew Cagney <cagney@redhat.com>
5471
5472 * gdbarch.c Include "gdb_obstack.h".
5473 (struct gdbarch): Add an "obstack".
5474 (alloc_gdbarch_data): Allocate the gdbarch data using
5475 GDBARCH_OBSTACK_CALLOC.
5476 (free_gdbarch_data): Delete function.
5477 (gdbarch_obstack_zalloc): New function.
5478 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5479 Assert that the architecture is not initialized.
5480 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5481 vector from the obstack.
5482 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5483 architecture obstack.
5484 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5485 (set_gdbarch_data): Assert that the data is not initialized.
5486 (struct gdbarch_data): Delete member "free".
5487 (register_gdbarch_data): Do not initialize "free".
5488 * gdbarch.h, gdbarch.c: Re-generate.
5489
5490 2003-07-22 Andrew Cagney <cagney@redhat.com>
5491
5492 * configure.in (build_warnings): Add -Wformat-nonliteral.
5493 * configure: Re-generate.
5494
5495 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
5496
5497 * dwarf2loc.c (locexpr_describe_location): Fix typos.
5498
5499 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
5500
5501 * findvar.c (read_var_value): Remove case for thread local storage
5502 variables. It is now entirely handled by the dwarf2 location
5503 expression code.
5504 * printcmd.c (address_info): Ditto.
5505 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5506 enumeration value.
5507 (struct symbol): Remove objfile field, which was used by
5508 LOC_THREAD_LOCAL_STATIC only.
5509 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5510 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5511 usage of objfile pointer.
5512 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5513 thread local variables.
5514 Add include of objfiles.h.
5515 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5516 storage variables.
5517 * Makefile.in (dwarf2loc.o): Update dependencies.
5518
5519 2003-07-22 Andrew Cagney <cagney@redhat.com>
5520
5521 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5522 get_frame_base.
5523 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5524 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5525 (struct value): Add opaque declaration.
5526 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5527
5528 2003-07-21 Andrew Cagney <cagney@redhat.com>
5529
5530 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5531 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5532
5533 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5534
5535 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
5536 regcache_cooked_read_unsigned instead of read_register.
5537 (m68hc11_saved_pc_after_call): Likewise.
5538 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5539 instead of write_register.
5540 (m68hc11_register_type): New function.
5541 (m68hc11_register_virtual_type): Remove.
5542 (m68hc11_store_return_value): Convert to use the regcache.
5543 (m68hc11_extract_struct_value_address): Likewise.
5544 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5545 m68hc11_register_type; undeprecate store_return_value and
5546 extract_struct_value_address.
5547
5548 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5549
5550 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5551 and translate to use regcache.
5552 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5553
5554 2003-07-18 Andrew Cagney <cagney@redhat.com>
5555
5556 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5557 * gdbarch.h, gdbarch.c: Re-generate.
5558 * i386-tdep.c (i386_gdbarch_init): Do not set
5559 DWARF2_BUILD_FRAME_INFO.
5560 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5561 unconditionally.
5562 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5563 DWARF2_BUILD_FRAME_INFO.
5564
5565 2003-07-18 Andrew Cagney <cagney@redhat.com>
5566
5567 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5568 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5569
5570 2003-07-18 Andrew Cagney <cagney@redhat.com>
5571
5572 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5573 frame_unwind_address_in_block, instead of frame_pc_unwind.
5574 (dwarf2_frame_cache): Ditto.
5575
5576 2003-07-18 Andrew Cagney <cagney@redhat.com>
5577
5578 * user-regs.h (struct gdbarch): Declare opaque.
5579 * ui-out.h (struct ui_file): Declare opaque.
5580 * dwarf2-frame.h (struct frame_info): Declare opaque.
5581
5582 2003-07-18 Kris Warkentin <kewarken@qnx.com>
5583
5584 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5585 #include "...".
5586 (procfs_meminfo): Change strerror to safe_strerror.
5587 (procfs_can_run): Remove K&R badness.
5588
5589 2003-07-17 Michael Snyder <msnyder@redhat.com>
5590
5591 * remote-sim.c: Comment typo fix.
5592
5593 2003-07-17 Andrew Cagney <cagney@redhat.com>
5594
5595 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5596 configure.
5597 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5598 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5599 GDB_MULTI_ARCH_PARTIAL.
5600
5601 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
5602
5603 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5604 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5605 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5606
5607 2003-07-16 Theodore A. Roth <troth@openavr.org>
5608
5609 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5610 found.
5611 (avr_frame_unwind_cache): Don't unwind FP for main.
5612 Update a comment.
5613 Save the computed prev_sp.
5614 (avr_saved_regs_unwinder): Remove function.
5615 (avr_frame_prev_register): Use PC unwind logic from
5616 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5617
5618 2003-07-16 Andrew Cagney <cagney@redhat.com>
5619
5620 * frame-base.h (frame_base_p_ftype): Delete definition.
5621 (frame_base_append_predicate): Delete declaration.
5622 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5623 (frame_unwind_append_predicate): Delete declaration.
5624 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5625 (append_predicate): Delete parameter "p".
5626 (frame_unwind_append_predicate): Delete function.
5627 (frame_unwind_append_sniffer): Update call to append_predicate.
5628 (frame_unwind_free): Delete function.
5629 (_initialize_frame_unwind): Pass NULL as "free" to
5630 register_gdbarch_data.
5631 (frame_unwind_init): Append the dummy_frame_sniffer.
5632 (frame_unwind_find_by_frame): Simplify.
5633 * frame-base.c (struct frame_base_table): Delete field "p".
5634 (append_predicate): Delete parameter "p".
5635 (frame_base_append_predicate): Delete function.
5636 (frame_base_append_sniffer): Update call to append_predicate.
5637 (frame_base_free): Delete function.
5638 (frame_base_find_by_frame): Simplify.
5639 (_initialize_frame_base): Pass NULL as "free" to
5640 register_gdbarch_data.
5641 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5642 (x86_64_sigtramp_frame_sniffer): Replace
5643 "x86_64_sigtramp_frame_p".
5644 (x86_64_init_abi): Set the frame unwind sniffers.
5645 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5646 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5647 (m68k_gdbarch_init): Set the frame unwind sniffers.
5648 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5649 "i386_sigtramp_frame_p".
5650 (i386_frame_sniffer): Replace "i386_frame_p".
5651 (i386_gdbarch_init): Set the frame unwind sniffers.
5652 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5653 (avr_gdbarch_init): Set the frame unwind sniffers.
5654 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5655 "alpha_sigtramp_frame_p"
5656 (alpha_heuristic_frame_sniffer): Replace
5657 "alpha_heuristic_frame_p".
5658 (alpha_gdbarch_init): Set the frame unwind sniffers.
5659 (alpha_dwarf2_init_abi): Ditto.
5660 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5661 "alpha_debug_frame_p".
5662 (alpha_mdebug_frame_base_sniffer): Replace
5663 "alpha_mdebug_frame_base_p".
5664 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5665 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5666 (d10v_gdbarch_init): Set the frame unwind sniffer.
5667 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5668 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5669 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5670 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5671 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5672 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5673
5674 2003-07-16 Michael Snyder <msnyder@redhat.com>
5675
5676 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5677 should go thru sh_dsp_register_sim_regno, else the dsp regs
5678 will not get the right values.
5679
5680 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5681
5682 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5683 deprecated_store_floating by call to store_typed_floating.
5684 (sh_sh4_register_convert_to_raw): Substitute call to
5685 deprecated_extract_floating by call to extract_typed_floating.
5686
5687 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5688
5689 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5690
5691 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5692
5693 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5694 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5695 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5696 as possible.
5697 (do_pseudo_register): Remove.
5698 (sh_push_dummy_code): New function.
5699 (sh64_store_struct_return): Rename from sh_store_struct_return.
5700 Only called for sh64 now.
5701 (sh_extract_struct_value_address): Regcache'ify.
5702 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5703 and accomodate new tasks.
5704 (sh64_push_return_address): Rename from sh_push_return_address.
5705 Only called for sh64 now.
5706 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5707 Regcache'ify.
5708 (sh3e_sh4_extract_return_value): Regcache'ify.
5709 (sh_default_store_return_value): Ditto.
5710 (sh3e_sh4_store_return_value): Ditto.
5711 (sh_default_register_byte): Remove.
5712 (sh_sh4_register_byte): Remove.
5713 (sh_default_register_raw_size): Remove.
5714 (sh_sh4_register_raw_size): Remove.
5715 (sh_register_virtual_size): Remove.
5716 (sh_sh3e_register_virtual_type): Remove.
5717 (sh_sh3e_register_type): New function.
5718 (sh_sh4_register_virtual_type): Remove.
5719 (sh_sh4_register_type): New function.
5720 (sh_default_register_virtual_type): Remove.
5721 (sh_default_register_type): New function.
5722 (do_fv_register_info): Add parameters to accomodate call from
5723 sh_print_registers_info.
5724 (do_dr_register_info): Ditto.
5725 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5726 Add parameters to accomodate call from sh_print_registers_info.
5727 (sh_do_fp_register): Ditto.
5728 (sh64_do_pseudo_register): Call do_dr_register_info,
5729 do_fv_register_info and sh_do_fp_register with default parameters.
5730 (sh_do_register): Add parameters to accomodate call from
5731 sh_print_registers_info.
5732 (sh_print_register): Ditto.
5733 (sh_print_registers_info): Rename from sh_do_registers_info.
5734 Add parameters to be used as gdbarch_print_registers_info
5735 implementation. Accomodate removed do_pseudo_register function
5736 pointer.
5737 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5738 function pointer. Call sh_print_register with default parameters.
5739 (sh64_do_registers_info): Call sh_print_registers_info instead of
5740 sh_do_registers_info.
5741 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5742 detection of deprecated vs. non-deprecated functionality.
5743 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5744 function pointer assignments by direct function calls.
5745
5746 2003-07-15 Andrew Cagney <cagney@redhat.com>
5747
5748 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5749 (frame_register_unwind, create_new_frame): Ditto.
5750 (legacy_get_prev_frame, get_frame_type): Ditto.
5751 (get_frame_base_address): Use frame_base_find_by_frame.
5752 (get_frame_locals_address): Use frame_base_find_by_frame.
5753 (get_frame_args_address): Use frame_base_find_by_frame.
5754 * frame-base.h (frame_base_sniffer_ftype): Declare.
5755 (frame_base_append_sniffer): Declare.
5756 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5757 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5758 (frame_base_append_sniffer): New function.
5759 (frame_base_append_predicate): Add a NULL sniffer.
5760 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5761 (struct frame_base_table): Add "sniffer".
5762 (frame_base_free): Free the "sniffer" table.
5763 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5764 (frame_unwind_append_sniffer): Declare.
5765 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5766 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5767 (struct frame_unwind_table): Add "sniffer", delete "middle".
5768 (append_predicate): Add "sniffer" parameter, append the sniffer.
5769 (frame_unwind_init): Update append_predicate call.
5770 (frame_unwind_append_sniffer): New function.
5771 (frame_unwind_append_predicate): Update append_predicate call.
5772 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5773
5774 2003-07-15 Andrew Cagney <cagney@redhat.com>
5775
5776 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5777 before code inhibiting repeated unwind attempts. Add to
5778 commentary on that test's problems.
5779 * blockframe.c (inside_main_func): Look for "main" in the minimal
5780 symbol table.
5781 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5782 identical.
5783
5784 2003-07-15 Andrew Cagney <cagney@redhat.com>
5785
5786 * complaints.c (struct explanation): Define.
5787 (struct complaints): Change type of "explanation" to "struct
5788 explanation".
5789 (symfile_explanations): Convert to a "struct explanation" table.
5790 (vcomplaint): Update.
5791
5792 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5793
5794 * x86-64-linux-nat.c (regmap): Removed.
5795 (supply_gregset, fill_gregset): Call
5796 x86_64_linux_(fill,supply)_gregset functions.
5797 * x86-64-linux-tdep.c (USER_*): New defines.
5798 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5799 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5800 New functions.
5801 (fetch_core_registers): Ditto.
5802 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5803 * x86-64-linux-tdep.h: New file.
5804 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5805 and core-regset.o.
5806 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5807
5808 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5809
5810 * x86-64-tdep.c (x86_64_store_return_value): Use
5811 regcache_cooked_write_part instead of regcache_cooked_write.
5812
5813 * configure.host: Add x86_64-*-freebsd*.
5814 * configure.tgt: Add x86_64-*-freebsd*.
5815 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5816 * amd64fbsd-nat.c: New file.
5817 * amd64fbsd-tdep.c: New file.
5818 * config/i386/nm-fbsd64.h: New file.
5819 * config/i386/fbsd64.mh: New file.
5820 * config/i386/fbsd64.mt: New file.
5821
5822 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5823
5824 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5825 `sc_regs_offset' and `sc_fpregs_offset'.
5826 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5827 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5828 (alpha_sigtramp_register_address): Rewrite to use new members of
5829 `struct gdbarch_tdep'.
5830 (alpha_gdbarch_init): Initialize new members of struct
5831 gdbarch_tdep'.
5832 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5833 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5834 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5835 (alphafbsd_pc_in_sigtramp): Implement.
5836 (alphafbsd_sigtramp_offset): New function.
5837 (alphafbsd_sigcontext_addr): New function.
5838 (alphafbsd_init_abi): Initialize signal trampoline related members
5839 of `struct gdbarch_tdep'.
5840 (_initialize_alphafbsd_tdep): Add prototype.
5841
5842 2003-07-11 Theodore A. Roth <troth@openavr.org>
5843
5844 * Makefile.in (install-only): Quote sed expression when generating
5845 transformed_name.
5846
5847 2003-07-11 Richard Henderson <rth@redhat.com>
5848
5849 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5850 * dwarf2-frame.c: Include complaints.h.
5851 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5852 variable initialization; return NULL on error.
5853 (decode_frame_entry): New.
5854
5855 2003-07-11 Andrew Cagney <cagney@redhat.com>
5856
5857 * frame.h (frame_address_in_block): Delete declaration.
5858 * blockframe.c (frame_address_in_block): Delete function.
5859 (get_frame_block): Use get_frame_address_in_block.
5860 (block_innermost_frame): Ditto.
5861 * stack.c (print_frame, backtrace_command_1): Ditto.
5862
5863 * frame.h (get_frame_address_in_block): Declare.
5864 (frame_unwind_address_in_block): Declare.
5865 * frame.c (frame_unwind_address_in_block): New function.
5866 (get_frame_address_in_block): New function.
5867
5868 2003-07-10 Andrew Cagney <cagney@redhat.com>
5869
5870 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5871 pre-default. Note: re-generate has no effect.
5872
5873 2003-07-10 Andrew Cagney <cagney@redhat.com>
5874
5875 * gdbarch.sh: When a variable, but not a function, compare against
5876 0. Fix problem in previous patch.
5877 * gdbarch.c: Re-generate.
5878
5879 2003-07-10 Andrew Cagney <cagney@redhat.com>
5880
5881 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5882 functions against NULL, not 0.
5883 * gdbarch.c: Re-generate.
5884
5885 2003-07-10 Fred Fish <fnf@ninemoons.com>
5886
5887 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5888 null string instead of a null pointer.
5889 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5890
5891 2003-07-09 Michael Snyder <msnyder@redhat.com>
5892
5893 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5894
5895 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5896
5897 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5898 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5899 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5900 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5901 * x86-64-tdep.c: ... from here.
5902
5903 2003-07-09 Andreas Schwab <schwab@suse.de>
5904
5905 * m68k-tdep.h (enum struct_return): Define.
5906 (struct gdbarch_tdep): Add struct_return.
5907 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5908 bytes are padded to the right, not to the left. Pass struct value
5909 address in register %a1, not on stack.
5910 (m68k_use_struct_convention): New function.
5911 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5912 struct_return in tdep to pcc_struct_return.
5913 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5914 reg_struct_return.
5915
5916 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5917
5918 * somread.c (som_symfile_offsets): Fix compilation error.
5919
5920 2003-07-09 Andrew Cagney <cagney@redhat.com>
5921
5922 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5923 Add comments about the checks.
5924
5925 2003-07-08 Andrew Cagney <cagney@redhat.com>
5926
5927 * Makefile.in: Make dependency section headers consistent.
5928 (config_h): Move to $BUILD headers section.
5929 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5930 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5931 (ada-exp.tab.c): Move to YACC/LEX section.
5932 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5933 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5934
5935 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5936
5937 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5938 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5939 of strerror with safe_strerror, use ISO C function definitions,
5940 and replace instances of sprintf with snprintf.
5941
5942 2003-07-07 Andrew Cagney <cagney@redhat.com>
5943
5944 * frame.c (get_prev_frame): Enable check for identical frames.
5945 Update comments. Update error messages.
5946
5947 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5948
5949 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5950
5951 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5952
5953 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5954 sort_symtab_syms, no longer necessary.
5955
5956 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5957
5958 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5959
5960 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5961
5962 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5963 (mips_register_byte): Likewise.
5964
5965 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5966
5967 * Makefile.in (sparc_tdep_h): New.
5968 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5969 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5970 * sparc-linux-nat.c: Include "sparc-tdep.h".
5971 * sparc-nat.c: Likewise.
5972 * sparc-tdep.c: Likewise.
5973 * sparc64nbsd-nat.c: Likewise.
5974 * sparcnbsd-nat.c: Likewise.
5975 * sparcnbsd-tdep.c: Likewise.
5976 * sparc-tdep.h: New file.
5977 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5978 and sparc_npc_regnum.
5979
5980 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5981
5982 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5983 (mips_linux_cannot_store_register): List supported instead of
5984 unsupported registers.
5985
5986 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5987
5988 * disasm.c (dump_insns): Separate instructions from addresses.
5989
5990 2003-07-07 Andreas Schwab <schwab@suse.de>
5991
5992 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5993 dependencies.
5994 * m68k-tdep.c (NUM_FREGS): Delete.
5995 (SIG_PC_FP_OFFSET): Delete.
5996 (TARGET_M68K): Delete.
5997 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5998 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5999 P_MOVEL_SP, P_MOVEML_SP): Define.
6000 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
6001 P_TRAP): Delete.
6002 (m68k_register_raw_size): Delete.
6003 (m68k_register_virtual_size): Delete.
6004 (m68k_register_type): Renamed from m68k_register_virtual_type and
6005 add gdbarch argument.
6006 (m68k_store_struct_return): Delete.
6007 (m68k_deprecated_extract_return_value): Delete.
6008 (m68k_deprecated_extract_struct_value_address): Delete.
6009 (m68k_frame_chain): Delete.
6010 (m68k_frame_saved_pc): Delete.
6011 (m68k_fix_call_dummy): Delete.
6012 (m68k_push_dummy_frame): Delete.
6013 (m68k_pop_frame): Delete.
6014 (m68k_extract_return_value): New function.
6015 (m68k_store_return_value): Rewrite using regcache.
6016 (m68k_extract_struct_value_address): Rewrite using regcache.
6017 (m68k_push_dummy_call): New function.
6018 (struct m68k_frame_cache): Define.
6019 (m68k_alloc_frame_cache): New function.
6020 (m68k_analyze_frame_setup): New function.
6021 (m68k_analyze_register_saves): New function.
6022 (m68k_analyze_prologue): New function.
6023 (m68k_skip_prologue): Rewrite using above functions.
6024 (m68k_unwind_pc): New function.
6025 (m68k_frame_cache): New function.
6026 (m68k_frame_this_id): New function.
6027 (m68k_frame_prev_register): New function.
6028 (m68k_frame_unwind): New variable.
6029 (m68k_frame_p): New function.
6030 (m68k_sigtramp_frame_cache): New function.
6031 (m68k_sigtramp_frame_this_id): New function.
6032 (m68k_sigtramp_frame_prev_register): New function.
6033 (m68k_sigtramp_frame_unwind): New variable.
6034 (m68k_sigtramp_frame_p): New function.
6035 (m68k_frame_base_address): New function.
6036 (m68k_frame_base): New function.
6037 (m68k_unwind_dummy_id): New function.
6038 (fill_gregset): Use regcache_collect.
6039 (fill_fpregset): Likewise.
6040 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
6041 defined.
6042 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
6043 deprecated_init_frame_pc, deprecated_store_struct_return,
6044 deprecated_extract_return_value, deprecated_store_return_value,
6045 deprecated_frame_chain, deprecated_frame_saved_pc,
6046 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
6047 deprecated_register_virtual_size,
6048 deprecated_max_register_raw_size,
6049 deprecated_max_register_virtual_size,
6050 deprecated_register_virtual_type, deprecated_register_size,
6051 deprecated_register_byte, deprecated_register_bytes,
6052 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
6053 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
6054 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
6055 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
6056 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
6057 deprecated_push_dummy_frame, deprecated_pop_frame,
6058 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
6059 only if SYSCALL_TRAP is defined. Set extract_return_value,
6060 store_return_value, extract_struct_value_address, register_type,
6061 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
6062 predicates.
6063 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
6064 M68K_MAX_REGISTER_SIZE): Define.
6065 (struct m68k_sigtramp_info): Define.
6066 (struct gdbarch_tdep): Add get_sigtramp_info.
6067 * m68klinux-nat.c (fetch_register): Use register_size instead of
6068 REGISTER_RAW_SIZE. Don't put assignment in if.
6069 (store_register): Likewise.
6070 (fetch_inferior_registers): Likewise.
6071 (store_inferior_registers): Likewise.
6072 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
6073 (m68k_linux_frame_saved_pc): Delete.
6074 (m68k_linux_sigcontext_reg_offset,
6075 m68k_linux_ucontext_reg_offset): Define.
6076 (m68k_linux_get_sigtramp_info): New function.
6077 (m68k_linux_extract_return_value): Rewrite using regcache.
6078 (m68k_linux_store_return_value): Likewise.
6079 (m68k_linux_extract_struct_value_address): Likewise.
6080 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
6081 Don't set deprecated_frame_saved_pc,
6082 deprecated_extract_return_value, deprecated_store_return_value,
6083 deprecated_extract_struct_value_address. Set
6084 extract_return_value, store_return_value,
6085 extract_struct_value_address.
6086
6087 2003-07-07 Andrew Cagney <cagney@redhat.com>
6088
6089 * expprint.c: Include "user-regs.h" instead of "frame.h".
6090 (print_subexp): Use user_reg_map_regnum_to_name, instead of
6091 frame_map_regnum_to_name.
6092 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
6093 (frame_map_name_to_regnum): Simplify, call
6094 user_reg_map_name_to_regnum.
6095 (frame_map_regnum_to_name): Simplify, call
6096 user_reg_map_regnum_to_name.
6097 (frame_register_unwind): Update.
6098 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
6099 (_initialize_frame_reg): Call user_reg_add_builtin.
6100 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
6101 (value_of_register): Use value_of_user_reg.
6102 * eval.c (evaluate_subexp_standard): Update.
6103 * parse.c (write_dollar_variable): Update.
6104 * d10v-tdep.c (d10v_print_registers_info): Update.
6105 * infcmd.c (registers_info): Update.
6106 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
6107 (builtin_regs_h): Delete macro.
6108 (user_regs_h): Define.
6109 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
6110 (builtin-regs.o): Delete target.
6111 (user-regs.o): Specify dependencies.
6112 (expprint.o): Update dependencies.
6113 (findvar.o): Update dependencies.
6114 (frame.o): Update dependencies.
6115 (std-regs.o): Update dependencies.
6116
6117 2003-07-06 Christopher Faylor <cgf@redhat.com>
6118
6119 * win32-nat.c (solib_symbols_add): Use one variable for all section
6120 address stuff. Pass variable rather than address of variable to
6121 safe_symbol_file_add.
6122
6123 2003-07-06 Andreas Schwab <schwab@suse.de>
6124
6125 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
6126
6127 2003-07-04 Joel Brobecker <brobecker@gnat.com>
6128
6129 * rs6000-nat.c (vmap_symtab): Fix compilation error.
6130
6131 2003-07-04 Kris Warkentin <kewarken@qnx.com>
6132
6133 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
6134
6135 2003-07-04 Kris Warkentin <kewarken@qnx.com>
6136
6137 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
6138 * config/i386/nto.mh: New file.
6139 * config/i386/nm-nto.h: New file.
6140 * configure.host: Add i[3456]86-*-nto*.
6141
6142 2003-07-03 Joel Brobecker <brobecker@gnat.com>
6143
6144 * remote-vx.c (vx_add_symbols): Fix compilation error.
6145
6146 2003-07-03 Andrew Cagney <cagney@redhat.com>
6147
6148 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
6149 * gdbarch.h, gdbarch.c: Re-generate.
6150 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
6151 (legacy_register_name): Declare.
6152 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
6153 (REGISTER_NAME): Define.
6154 * sparc-tdep.c (legacy_register_name): New function.
6155 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
6156 (REGISTER_NAME): Define.
6157 (hppa64_register_name): Declare.
6158 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
6159 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
6160 (hppa64_register_name): New function.
6161 (hppa_register_name): New function.
6162 * arch-utils.c (legacy_register_name): Delete.
6163 * arch-utils.h (legacy_register_name): Delete.
6164
6165 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
6166
6167 * cli/cli-interp.c (cli_interpreter_resume): Update the
6168 cli_uiout's stream to gdb_stdout.
6169
6170 2003-07-03 Andrew Cagney <cagney@redhat.com>
6171
6172 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6173 predicate.
6174 * gdbarch.h, gdbarch.c: Re-generate.
6175 * regcache.c (init_regcache_descr): Use legacy code when either
6176 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6177
6178 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
6179
6180 * NEWS: Move "set logging" entry into GDB 6.0 section.
6181
6182 2003-07-02 Jim Blandy <jimb@redhat.com>
6183
6184 * s390-tdep.c (struct frame_extra_info): new member:
6185 'stack_bought_valid'.
6186 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6187 initialize fextra_info->stack_bought.
6188 (s390_frameless_function_invocation): Don't trust the value of
6189 fextra_info_ptr->stack_bought unless
6190 fextra_info->stack_bought_valid is set.
6191
6192 New S390 prologue analyzer.
6193 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6194 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6195 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6196 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6197 compute_x_addr, s390_on_stack, s390_store,
6198 s390_get_signal_frame_info): New functions.
6199 (S390_NUM_SPILL_SLOTS): New macro.
6200 (s390_get_frame_info): Rewritten.
6201 (is_arg_reg): Deleted.
6202
6203 Break out the decoding of S/390 instructions into separate
6204 functions, to make it more legible, and easier to check
6205 against the spec.
6206 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6207 is_rx, is_rxe): New functions.
6208 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6209 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6210 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6211 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6212 enums for opcode values. (Is this an improvement?)
6213
6214 2003-07-02 Andrew Cagney <cagney@redhat.com>
6215
6216 * i386-tdep.c: Revert change committed as part of trad-frame code
6217 below.
6218
6219 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
6220
6221 * breakpoint.c (insert_catchpoint): Make static.
6222
6223 2003-07-02 Andreas Schwab <schwab@suse.de>
6224
6225 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6226 former ia64_push_arguments and ia64_push_return_address, and use
6227 regcache functions instead of read/write_register.
6228 (ia64_gdbarch_init): Set push_dummy_call instead of
6229 deprecated_push_arguments and deprecated_push_return_address.
6230
6231 2003-07-01 Andreas Jaeger <aj@suse.de>
6232
6233 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6234 before the call.
6235 Set %rax only to number of SSE registers used.
6236
6237 2003-07-01 Andrew Cagney <cagney@redhat.com>
6238
6239 * trad-frame.h: Update comments, a -1 .addr is reserved.
6240 (trad_frame_value_p, trad_frame_addr_p): Declare.
6241 (trad_frame_reg_p): Declare.
6242 (trad_frame_set_value): Rename trad_frame_register_value.
6243 (trad_frame_set_unknown): Declare.
6244 * trad-frame.c (trad_frame_realreg_p): New function.
6245 (trad_frame_addr_p, trad_frame_value_p): New function.
6246 (trad_frame_set_unknown): New function.
6247 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6248 (trad_frame_prev_register): Use trad_frame_realreg_p,
6249 trad_frame_addr_p and trad_frame_value_p.
6250 (trad_frame_set_value): Rename trad_frame_register_value.
6251 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6252 and trad_frame_set_value.
6253
6254 2003-06-30 Jim Blandy <jimb@redhat.com>
6255
6256 Patch from IBM (authors unspecified, probably Ulrich Weigand and
6257 Gerhard Tonn) for argument passing on the S/390 and S/390x:
6258 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6259 for 16 registers, and then 32 more bytes.
6260 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6261 New macros.
6262 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6263 Move up in the file, since it's now used by is_simple_arg.
6264 (is_simple_arg): Don't assume registers are four bytes long.
6265 Exclude all double arguments. Extended floats are not simple
6266 args.
6267 (is_power_of_two): New function.
6268 (pass_by_copy_ref): Call is_power_of_two, and check that the
6269 length fits in a register, rather than listing all the acceptable
6270 sizes. Extended floats are not passed by reference.
6271 (s390_push_arguments): Don't assume registers are four bytes long.
6272 Reserve an argument register to point to the buffer for structures
6273 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6274 S390_STACK_FRAME_OVERHEAD.
6275
6276 2003-06-30 Andreas Schwab <schwab@suse.de>
6277
6278 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6279 format error message.
6280
6281 2003-06-30 Joel Brobecker <brobecker@gnat.com>
6282
6283 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6284
6285 2003-06-30 David Carlton <carlton@kealia.com>
6286
6287 Band-aid for PR c++/1245.
6288 * Makefile.in (cp-support.o): Depend on complaints_h.
6289 * cp-support.c: Include complaints.h. Add declaration for
6290 find_last_component.
6291 (cp_find_first_component): Separate code into
6292 cp_find_first_component_aux.
6293 (cp_find_first_component_aux): Call demangled_name_complaint.
6294 (demangled_name_complaint): New.
6295
6296 2003-06-30 Andrew Cagney <cagney@redhat.com>
6297
6298 * remote.c (remote_write_bytes): Explicitly compute and then use
6299 the payload size. Update comments to reflect. Fixes problem of
6300 GDB not sending small packets as found by Fred Fish.
6301
6302 2003-06-30 Andrew Cagney <cagney@redhat.com>
6303
6304 * remote.c (remote_async_wait): Fix -Wformat problem.
6305
6306 2003-06-29 Andrew Cagney <cagney@redhat.com>
6307
6308 * remote.c (remote_wait): Call error, and not warning, when the
6309 packet is corrupt.
6310 (remote_async_wait): Ditto.
6311
6312 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
6313
6314 * sparc-tdep.c (sparc_y_regnum): Make external again.
6315
6316 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
6317
6318 * cli/cli-logging.c (pop_output_files): Add void to function
6319 definition.
6320
6321 2003-06-29 Andrew Cagney <cagney@redhat.com>
6322
6323 * frame.c (frame_register_unwind): Use unsigned char when dumping
6324 the buffer contents.
6325
6326 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
6327
6328 * cli/cli-logging.c: New file.
6329 * cli-out.c (struct ui_out_data): Add original_stream.
6330 (cli_redirect): New function.
6331 (cli_ui_out_impl): Add cli_redirect.
6332 (cli_out_new): Initialize original_stream.
6333 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6334 (uo_redirect, ui_out_redirect): New.
6335 * ui-out.h (struct ui_out_impl): Add redirect member.
6336 (redirect_ftype): New.
6337 (ui_out_redirect): Add prototype.
6338 * Makefile.in: Add rules for cli-logging.c.
6339 * NEWS: Mention "set logging".
6340
6341 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
6342
6343 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6344
6345 2003-06-27 Andrew Cagney <cagney@redhat.com>
6346
6347 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6348 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6349 * avr-tdep.c (avr_call_dummy_address): Delete function.
6350 (avr_gdbarch_init): Do not set call_dummy_address.
6351
6352 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
6353
6354 * symfile.c (syms_from_objfile): Move variables to inner block.
6355 Move the checks for the non-mainline case a bit earlier to avoid
6356 doing some useless computations.
6357
6358 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
6359
6360 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6361
6362 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
6363
6364 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6365 sections.
6366
6367 2003-06-26 Michael Chastain <mec@shout.net>
6368
6369 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6370 gdb/testsuite/gdb.c++/pr-1210.exp.
6371
6372 2003-06-26 Andrew Cagney <cagney@redhat.com>
6373
6374 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6375 altivec_expression.h and altivec_registers.h.
6376
6377 2003-06-26 Andrew Cagney <cagney@redhat.com>
6378
6379 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6380 info->mach when MIPS16. Patch suggested by Fred Fish.
6381
6382 2003-06-26 Andrew Cagney <cagney@redhat.com>
6383
6384 * utils.c (internal_vproblem): Print the problem to a reason
6385 buffer and then pass to query. Make the msg variable more local.
6386
6387 2003-06-26 Andrew Cagney <cagney@redhat.com>
6388
6389 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6390 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6391 * gdbarch.h, gdbarch.c: Re-generate.
6392 * frame-base.c (default_frame_args_address): Update. Use
6393 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6394 not available.
6395 (default_frame_locals_address): Ditto for
6396 DEPRECATED_FRAME_LOCALS_ADDRESS.
6397 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6398 (vax_frame_num_args): Update.
6399 (vax_gdbarch_init): Update.
6400 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6401 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6402 * mcore-tdep.c (mcore_gdbarch_init): Update.
6403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6404 * ia64-tdep.c (ia64_gdbarch_init): Update.
6405 * symtab.h (address_class): Update comments.
6406 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6407 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6408 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6409 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6410 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6411 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6412 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6413 * alpha-mdebug-tdep.c: Update.
6414 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6415
6416 2003-06-26 Andreas Jaeger <aj@suse.de>
6417
6418 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6419 of SSE registers so that varargs functions work. Rework handling
6420 of passing arguments on the stack.
6421 (x86_64_store_return_value): Return double and float values in SSE
6422 register.
6423
6424 2003-06-24 Michael Chastain <mec@shout.net>
6425
6426 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6427 the "constructor breakpoints ignored" bug.
6428
6429 2003-06-25 David Carlton <carlton@kealia.com>
6430
6431 * MAINTAINERS: Update e-mail address.
6432
6433 2003-06-24 Jim Blandy <jimb@redhat.com>
6434
6435 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6436
6437 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6438 function.
6439 (ppc_linux_init_abi): Register it as the
6440 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6441
6442 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6443 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6444 method.
6445
6446 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6447 (ppc64_standard_linkage_target): Use it.
6448
6449 2003-06-23 Andrew Cagney <cagney@redhat.com>
6450
6451 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6452 for 0 "int0" and 4 "int32" sized registers.
6453 * gdbtypes.c (builtin_type_int0): Define.
6454 (build_gdbtypes): Initialize builtin_type_int0.
6455 * gdbtypes.h (builtin_type_int0): Declare.
6456
6457 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6458
6459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6460 as characters are unsigned.
6461
6462 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6463
6464 PR gdb/1179
6465 * dwarfread.c (struct_type): Skip static fields without crashing.
6466
6467 2003-06-22 Andrew Cagney <cagney@redhat.com>
6468
6469 GDB 6.0 branch created.
6470 * README: Update.
6471 * PROBLEMS: Update. Empty.
6472 * NEWS: Update.
6473
6474 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6475
6476 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6477 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6478
6479 2003-06-22 Andrew Cagney <cagney@redhat.com>
6480
6481 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6482 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6483 Velikov.
6484
6485 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
6486
6487 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6488 compilers.
6489
6490 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
6491
6492 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6493 argument of val_print.
6494 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6495 to the address argument of baseclass_offset or target_read_memory.
6496 Do add it to the argument of cp_print_value_fields.
6497
6498 2003-06-21 Andrew Cagney <cagney@redhat.com>
6499
6500 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6501 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6502 instead of 0..NUM_REGS.
6503 (mips_register_reggroup_p): New function.
6504 (mips_pseudo_register_write): New function.
6505 (mips_pseudo_register_read): New function.
6506 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6507 based on the register's type.
6508 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6509 cooked.
6510 (mips_get_saved_register): Simplify. Assert that REGNO is a
6511 pseudo / cooked.
6512 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6513 (mips_register_type): Replace mips_register_virtual_type. Map
6514 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6515 when available.
6516 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6517 that the register is cooked / virtual.
6518 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6519 Only get the extra info when needed.
6520 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6521 (mips32_heuristic_proc_desc): Fetch the cooked register.
6522 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6523 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6524 (mips_print_register): Use gdbarch_register_type, instead of
6525 REGISTER_VIRTUAL_TYPE.
6526 (print_gp_register_row): Use gdbarch_register_type, instead of
6527 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6528 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6529 Print the pseudo / cooked registers.
6530 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6531 Print the pseudo / cooked registers.
6532 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6533 REG_NUM is pseudo / cooked.
6534 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6535 (mips_n32n64_xfer_return_value): Ditto.
6536 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6537 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6538 (mips_register_sim_regno): New function.
6539 (mips_gdbarch_init): Set deprecated_register_byte,
6540 register_group_p, pseudo_register_write, pseudo_register_read,
6541 register_sim_regno, and num_pseudo_regs. Set register_type,
6542 instead of register_virtual_type.
6543 * Makefile.in (mips-tdep.o): Update dependencies.
6544 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6545 REGISTER_VIRTUAL_TYPE.
6546 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6547 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6548 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6549 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6550 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6551
6552 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
6553
6554 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6555 * cli/cli-cmds.c: Include "gdb_vfork.h".
6556 (shell_escape): Use vfork.
6557
6558 2003-06-21 Andrew Cagney <cagney@redhat.com>
6559
6560 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6561 32 bit floating-point register saves.
6562
6563 * frame.h (deprecated_unwind_get_saved_register): Delete.
6564 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6565 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6566 and deprecated_get_next_frame_hack instead of
6567 deprecated_unwind_get_saved_register.
6568
6569 * mips-tdep.c (mips_dump_tdep): Do not print
6570 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6571
6572 * frame.c (get_frame_register): New function.
6573 (frame_unwind_register_signed): New function.
6574 (get_frame_register_signed): New function.
6575 (frame_unwind_register_unsigned): New function.
6576 (get_frame_register_unsigned): New function.
6577 * frame.h: Add comments on naming schema.
6578 (get_frame_register, frame_unwind_register_signed): Declare.
6579 (get_frame_register_signed, get_frame_register_signed): Declare.
6580 (frame_unwind_register_unsigned): Declare.
6581 (get_frame_register_unsigned): Declare.
6582
6583 2003-06-20 Theodore A. Roth <troth@openavr.org>
6584
6585 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6586
6587 2003-06-20 Theodore A. Roth <troth@openavr.org>
6588
6589 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6590 (avr_read_sp): Ditto.
6591
6592 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
6593
6594 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6595 * config/arm/nm-linux.h: Likewise.
6596 * config/arm/tm-linux.h: Likewise.
6597 * config/ia64/nm-linux.h: Likewise.
6598 * config/ia64/tm-ia64.h: Likewise.
6599 * config/s390/tm-linux.h: Likewise.
6600 * config/s390/tm-s390.h: Likewise.
6601 * s390-nat.c: Likewise.
6602 * s390-tdep.c: Likewise.
6603
6604 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6605 * config/ia64/linux.mt: Likewise.
6606 * config/m68k/linux.mh: Likewise.
6607 * config/mips/linux.mt: Likewise.
6608 * config/powerpc/linux.mh: Likewise.
6609 * config/sh/linux.mt: Likewise.
6610
6611 2003-06-19 Kris Warkentin <kewarken@qnx.com>
6612
6613 * solib.c (solib_open): Change tests for whether to search
6614 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6615 comments.
6616
6617 2003-06-19 Theodore A. Roth <troth@openavr.org>
6618
6619 * avr-tdep.c (avr_frame_address): Delete function.
6620 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6621 set_gdbarch_frame_args_address.
6622
6623 2003-06-19 Andrew Cagney <cagney@redhat.com>
6624
6625 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6626 (REGISTER_CONVERT_FROM_TYPE): Delete.
6627 (mips_register_convert_to_type): Delete declaration.
6628 (mips_register_convert_from_type): Delete declaration.
6629 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6630 kernel/.
6631
6632 2003-06-19 Michael Snyder <msnyder@redhat.com>
6633
6634 * linux-nat.h: New file.
6635 * linux-nat.c: Include linux-nat.h.
6636 * lin-lwp.c: Include linux-nat.h.
6637 Move struct lwp_info def to linux-nat.h.
6638 * linux-proc.c: Include linux-nat.h.
6639 (linux_make_note_section): Iterate over lwps instead of threads.
6640 (linux_do_thread_registers): Use lwp instead of merged pid.
6641 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6642 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6643 Add dependency on linux_nat_h.
6644
6645 2003-06-19 Theodore A. Roth <troth@openavr.org>
6646
6647 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6648
6649 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6650
6651 * varobj.c (get_type, get_target_type): Use check_typedef.
6652
6653 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6654
6655 * breakpoint.c (insert_catchpoint): Call internal_error.
6656
6657 2003-06-19 Theodore A. Roth <troth@openavr.org>
6658
6659 * avr-tdep.c (avr_push_dummy_code): Delete function.
6660 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6661
6662 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6663
6664 * arch-utils.c (default_prepare_to_proceed): Remove.
6665 (generic_prepare_to_proceed): Remove.
6666 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6667 (generic_prepare_to_proceed): Remove prototype.
6668 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6669 * gdbarch.c: Regenerate.
6670 * gdbarch.h: Regenerate.
6671 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6672 * hppah-nat.c (hppa_switched_threads): Remove.
6673 * infrun.c (prepare_to_proceed): New static function, copied from
6674 generic_prepare_to_proceed. Remove select_it argument.
6675 (proceed): Call prepare_to_proceed.
6676 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6677 variables.
6678 (ptrace_wait): Don't set the removed variables.
6679 (hppa_switched_threads): Remove.
6680 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6681 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6682 (lin_lwp_prepare_to_proceed): Remove prototype.
6683 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6684 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6685
6686 2003-06-18 Theodore A. Roth <troth@openavr.org>
6687
6688 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6689 trad-frame.h.
6690 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6691 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6692 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6693 (AVR_PROLOGUE_*): Enumerate prologue types.
6694 (struct frame_extra_info): Remove.
6695 (struct avr_unwind_cache): Define.
6696 (avr_write_sp): Delete function.
6697 (avr_read_fp): Ditto.
6698 (avr_init_extra_frame_info): Ditto.
6699 (avr_pop_frame): Ditto.
6700 (avr_frame_saved_pc): Ditto.
6701 (avr_saved_pc_after_call): Ditto.
6702 (avr_push_return_address): Ditto.
6703 (avr_frame_chain): Ditto.
6704 (avr_store_struct_return): Ditto.
6705 (avr_push_arguments): Ditto.
6706 (avr_scan_prologue): Update comments. Changed to set up the info for
6707 cache unwinding. Now returns end of prologue PC.
6708 (avr_skip_prologue): Better handling of functions lacking a prologue
6709 by using avr_scan_prologue.
6710 (avr_scan_arg_moves): New function.
6711 (avr_saved_regs_unwinder): Ditto.
6712 (avr_frame_unwind_cache): Ditto.
6713 (avr_unwind_pc): Ditto.
6714 (avr_frame_this_id): Ditto.
6715 (avr_frame_prev_register): Ditto.
6716 (avr_frame_p): Ditto.
6717 (avr_frame_base_address ): Ditto.
6718 (avr_unwind_dummy_id): Ditto.
6719 (avr_push_dummy_code): Ditto.
6720 (push_stack_item): Ditto.
6721 (pop_stack_item): Ditto.
6722 (avr_push_dummy_call): Ditto.
6723 (struct stack_item): Define.
6724 (avr_frame_unwind): Declare structure.
6725 (avr_frame_base): Ditto.
6726 (avr_gdbarch_init): Remove calls to
6727 set_gdbarch_deprecated_init_frame_pc,
6728 set_gdbarch_deprecated_target_read_fp,
6729 set_gdbarch_deprecated_dummy_write_sp,
6730 set_gdbarch_deprecated_fp_regnum,
6731 set_gdbarch_deprecated_push_arguments,
6732 set_gdbarch_deprecated_push_return_address,
6733 set_gdbarch_deprecated_pop_frame,
6734 set_gdbarch_deprecated_store_struct_return,
6735 set_gdbarch_deprecated_frame_init_saved_regs,
6736 set_gdbarch_deprecated_init_extra_frame_info,
6737 set_gdbarch_deprecated_frame_chain,
6738 set_gdbarch_deprecated_frame_saved_pc,
6739 set_gdbarch_deprecated_saved_pc_after_call.
6740 Add calls to set_gdbarch_push_dummy_call,
6741 set_gdbarch_push_dummy_code,
6742 frame_unwind_append_predicate,
6743 frame_base_set_default,
6744 set_gdbarch_unwind_dummy_id,
6745 set_gdbarch_unwind_pc.
6746 Wrap a long line.
6747
6748 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6749
6750 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6751 registers for H8/300S.
6752 (h8300_print_registers_info): Ditto.
6753 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6754
6755 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
6756
6757 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6758 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6759 (lin_lwp_wait): Likewise. Update comments.
6760 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6761 (pull_pid_from_list, linux_record_stopped_pid): New.
6762
6763 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6764
6765 * ada-lang.c (scan_discrim_bound): Name first argument.
6766 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6767 declared by ALL_BLOCK_SYMBOLS.
6768
6769 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6770
6771 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6772 ("regcache.h"): Include it.
6773 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6774
6775 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6776
6777 * NEWS: Mention gdbserver detach change and "disconnect" command.
6778 * infcmd.c (disconnect_command): New function.
6779 (_initialize_infcmd): Add ``disconnect'' command.
6780 * remote.c (remote_async_detach): Delete.
6781 (remote_detach): Merge remote_async_detach.
6782 (remote_disconnect): New.
6783 (init_remote_ops): Set to_disconnect.
6784 (init_remote_cisco_ops): Likewise.
6785 (init_remote_async_ops): Likewise. Use remote_detach.
6786 * target.c (cleanup_target): Default to_disconnect.
6787 (update_current_target): Inherit to_disconnect.
6788 (target_disconnect, debug_to_disconnect): New functions.
6789 (setup_target_debug): Set to_disconnect.
6790 * target.h (struct target_ops): Add to_disconnect.
6791 (target_disconnect): Add prototype.
6792
6793 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6794
6795 * breakpoint.c (insert_catchpoint): New function.
6796 (insert_breakpoints): Use catch_exceptions to call
6797 insert_catchpoint. Disable catchpoints if they fail to insert.
6798
6799 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6800
6801 * symfile.c (reread_symbols): Clear sym_private.
6802
6803 2003-06-17 Andrew Cagney <cagney@redhat.com>
6804
6805 * trad-frame.h (struct frame_info): Add opaque declaration.
6806 * remote-fileio.h (struct cmd_list_element): Add opaque
6807 declaration.
6808 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6809 comments.
6810
6811 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6812
6813 * remote.c (remote_prepare_to_store): Replace call to
6814 deprecated_read_register_bytes with multiple regcache_raw_read
6815 calls.
6816
6817 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6818
6819 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6820 (nto_find_and_open_solib): Likewise.
6821 (nto_init_solib_absolute_prefix): Likewise.
6822 (_initialize_nto_tdep): Fix indentation.
6823
6824 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6825
6826 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6827
6828 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6829
6830 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6831
6832 2003-06-17 Jim Blandy <jimb@redhat.com>
6833
6834 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6835
6836 2003-06-16 Theodore A. Roth <troth@openavr.org>
6837
6838 * avr-tdep.c (avr_extract_return_value): New function.
6839 (avr_gdbarch_init): Set extract_return_value method.
6840
6841 2003-06-16 Andrew Cagney <cagney@redhat.com>
6842
6843 * frame.h (deprecated_get_next_frame_hack): Declare.
6844 * frame.c (legacy_saved_regs_prev_register): Only require
6845 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6846 there are always saved regs.
6847 (deprecated_generic_get_saved_register): Do not require
6848 DEPRECATED_FRAME_INIT_SAVED_REGS.
6849 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6850 use frame ID unwind instead.
6851 (deprecated_get_next_frame_hack): New function.
6852
6853 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6854
6855 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6856 (h8300_push_dummy_call): ...this function. Some minor optimization.
6857 (h8300_push_return_address): Remove.
6858 (h8300_gdbarch_init): Remove calls to
6859 set_gdbarch_deprecated_dummy_write_sp,
6860 set_gdbarch_deprecated_push_arguments and
6861 set_gdbarch_deprecated_push_return_address.
6862 Add call to set_gdbarch_push_dummy_call.
6863
6864 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6865
6866 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6867 (E_PSEUDO_EXR_REGNUM): Ditto.
6868 (h8300_is_argument_spill): Check for instructions moving argument
6869 registers into safe registers.
6870 (h8300_skip_prologue): Check for stm instruction to push registers
6871 used for register variables onto stack.
6872 (gdb_print_insn_h8300): Remove.
6873 (h8300_examine_prologue): Add a comment.
6874 (h8300_register_name): Take pseudo registers into account.
6875 (h8300s_register_name): Ditto.
6876 (h8300sx_register_name): Ditto.
6877 (h8300_print_register): Ditto.
6878 (h8300_print_registers_info): Define "nice" printing order.
6879 (h8300_saved_pc_after_call): Take pseudo registers into account.
6880 (h8300_register_type): Ditto. Return type used for remote connection
6881 when requesting real CCR or EXR register, return actual type when
6882 requesting pseudo CCR or EXR.
6883 (h8300_pseudo_register_read): New function.
6884 (h8300_pseudo_register_write): Ditto.
6885 (h8300_dbg_reg_to_regnum): Ditto.
6886 (h8300s_dbg_reg_to_regnum): Ditto.
6887 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6888 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6889 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6890 set_gdbarch_print_insn architecture dependent.
6891 Call set_gdbarch_pseudo_register_read and
6892 set_gdbarch_pseudo_register_write.
6893 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6894
6895 2003-06-16 Andrew Cagney <cagney@redhat.com>
6896
6897 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6898 * gdbarch.h, gdbarch.c: Re-generate.
6899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6900 * s390-tdep.c (s390_gdbarch_init): Update.
6901 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6902 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6903 * mips-tdep.c (mips_gdbarch_init): Update.
6904 * mcore-tdep.c (mcore_gdbarch_init): Update.
6905 * cris-tdep.c (cris_gdbarch_init): Update.
6906 * infcall.c (call_function_by_hand): Update.
6907 * ia64-tdep.c (ia64_push_arguments): Update comment.
6908 * frame.c (legacy_get_prev_frame): Do not assume
6909 SAVE_DUMMY_FRAME_TOS_P.
6910 * dummy-frame.c (find_dummy_frame): Update comment.
6911
6912 2003-06-16 Andrew Cagney <cagney@redhat.com>
6913
6914 * regcache.c (do_cooked_read): Do not use register_valid_p.
6915
6916 2003-06-15 Theodore A. Roth <troth@openavr.org>
6917
6918 * avr-tdep.c (avr_register_type): Remove a blank line.
6919 (avr_scan_prologue): Correct some comments.
6920
6921 2003-06-15 Theodore A. Roth <troth@openavr.org>
6922
6923 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6924 prologue types.
6925 Properly scan prologues generated by gcc with the -mcall-prologues
6926 option.
6927 Add code to scan -mcall-prologues for mega devices.
6928
6929 2003-06-15 Theodore A. Roth <troth@openavr.org>
6930
6931 * avr-tdep.c (avr_register_byte): Delete function.
6932 (avr_register_raw_size): Delete function.
6933 (avr_register_virtual_size): Delete function.
6934 (avr_register_virtual_type): Delete function.
6935 (avr_register_type): New function.
6936 (avr_address_to_pointer): Remove unused code.
6937 (avr_read_fp): Need to read FP as two separate bytes due to change to
6938 avr_register_type() usage.
6939 (avr_gdbarch_init): Don't set deprecated_register_size.
6940 Don't set deprecated_register_bytes.
6941 Don't set deprecated_register_byte.
6942 Don't set deprecated_register_raw_size.
6943 Don't set deprecated_max_register_raw_size.
6944 Don't set deprecated_register_virtual_size.
6945 Don't set deprecated_max_register_virtual_size.
6946 Don't set deprecated_register_virtual_type.
6947 Set register_type method.
6948
6949 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6950
6951 * Makefile.in (linux-nat.o): Add rule.
6952 * linux-nat.c: New file.
6953 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6954 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6955 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6956 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6957 * config/arm/linux.mh (NATDEPFILES): Likewise.
6958 * config/i386/linux.mh (NATDEPFILES): Likewise.
6959 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6960 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6961 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6962 * config/mips/linux.mh (NATDEPFILES): Likewise.
6963 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6964 * config/s390/s390.mh (NATDEPFILES): Likewise.
6965 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6966
6967 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6968
6969 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6970 replace out-of-date comment.
6971
6972 2003-06-15 Andrew Cagney <cagney@redhat.com>
6973
6974 * rdi-share/host.h (Fail): Change to a varargs function.
6975 * remote-rdi.c (Fail): Update.
6976
6977 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6978
6979 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6980 (i386_convert_register_p, i386_register_to_value,
6981 i386_register_from_value): Handle types longer than 8 bytes.
6982
6983 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6984
6985 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6986 Move floating-point code to new function in i387-tdep.c.
6987 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6988 New functions containing code moved here from i386-tdep.c.
6989 * i387-tdep.h: Add opaque declaration for `struct type'.
6990 (i387_register_to_value, i387_value_to_register): New prototypes.
6991 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6992 (x86_64_init_abi): Set convert_register_p, register_to_value and
6993 value_to_register here.
6994
6995 2003-06-14 Andrew Cagney <cagney@redhat.com>
6996
6997 * mips-tdep.c (mips_register_to_value): Make static.
6998 (mips_value_to_register): Make static.
6999 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
7000 * ia64-tdep.c (ia64_register_raw_size): Make static.
7001 (ia64_register_virtual_size): Make static.
7002 (ia64_register_byte): Make static.
7003 * i387-tdep.c: Include "i387-tdep.h".
7004 (print_387_control_word): Delete function.
7005 (print_387_status_word): Delete function.
7006 (print_387_status_bits): Delete function.
7007 (print_387_control_bits): Delete function.
7008 * Makefile.in (i387-tdep.o): Update dependencies.
7009 * rdi-share/host.h (Fail): Declare.
7010 * remote-rdi.c (Fail): Update to match declaration.
7011
7012 2003-06-14 Andrew Cagney <cagney@redhat.com>
7013
7014 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
7015 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
7016 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
7017 * config/djgpp/fnchange.lst: Delete "remote-array.c".
7018 * README: Delete reference to remote-array.
7019 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
7020 (remote-array.o): Delete target.
7021 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
7022 * remote-array.c: Delete file.
7023
7024 2003-06-14 Andrew Cagney <cagney@redhat.com>
7025 Mark Kettenis <kettenis@gnu.org>
7026
7027 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
7028 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
7029 parameter with "frame".
7030 * gdbarch.h, gdbarch.c: Re-generate.
7031 * frame.h (put_frame_register): Declare.
7032 * frame.c (put_frame_register): New function.
7033 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
7034 (legacy_register_to_value): Rewrite, use "frame" to get the
7035 register value.
7036 (legacy_value_to_register): Rewrite, use "frame" to find the
7037 register's location before storing.
7038 * arch-utils.h (legacy_convert_register_p): Update.
7039 (legacy_register_to_value, legacy_value_to_register): Update.
7040 * findvar.c (value_from_register): Rewrite, eliminate use of
7041 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
7042 "frame" to REGISTER_TO_VALUE.
7043 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
7044 lval_reg_frame_relative + lval_register branch of the switch. Do
7045 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
7046 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
7047 I386_EDI_REGNUM): New defines.
7048 (i386_next_regnum, i386_convert_register_p,
7049 i386_register_to_value, i386_value_to_register): New functions.
7050 (i386_register_convertible, i386_register_convert_to_virtual,
7051 i386_convert_to_raw): Remove functions.
7052 (i386_gdbarch_init): Set convert_register_p, register_to_value and
7053 value_to_register instead of register_convertible,
7054 register_convert_to_virtual and register_convert_to_raw.
7055 * mips-tdep.c (mips_convert_register_p): New function.
7056 (mips_value_to_register): Replace mips_register_convert_from_type.
7057 (mips_register_to_value): Replace mips_register_convert_to_type.
7058 (mips_gdbarch_init): Set conver_register_p, value_to_register and
7059 register_to_value.
7060 * alpha-tdep.c (alpha_convert_register_p): Update.
7061 (alpha_value_to_register): Update, store the register.
7062 (alpha_register_to_value): Update, fetch the register.
7063
7064 2003-06-14 Theodore A. Roth <troth@openavr.org>
7065
7066 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
7067 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
7068 Don't set deprecated_call_dummy_words.
7069 Remove commented out set_gdbarch_believe_pcc_promotion() call.
7070 Don't set remote_translate_xfer_address.
7071 (avr_io_reg_read_command): Remove commented out debug printf.
7072 Wrap a long line.
7073
7074 2003-06-14 Theodore A. Roth <troth@openavr.org>
7075
7076 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
7077 causes gdb to seg fault.
7078
7079 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
7080
7081 * sparc-nat.c (fetch_inferior_registers): Correct
7082 a reference to "registers".
7083
7084 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
7085
7086 * Makefile.in (exc_request_U_h): Define
7087 (exc_request_S_h): Likewise.
7088 (msg_reply_S_h): Likewise.
7089 (msg_U_h): Likewise.
7090 (notify_S_h): Likewise.
7091 (process_reply_S_h): Likewise.
7092 (gnu-nat.o): Depend on gdb_obstack_h
7093 * gnu-nat.c: Include "gdb_obstack.h".
7094
7095 2003-06-13 Andrew Cagney <cagney@redhat.com>
7096
7097 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
7098 * gdbarch.h, gdbarch.c: Re-generate.
7099
7100 2003-06-13 Andrew Cagney <cagney@redhat.com>
7101
7102 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
7103 when deprecated REGISTER macros can be deleted.
7104 * gdbarch.h, gdbarch.c: Re-generate.
7105
7106 2003-06-13 Jim Blandy <jimb@redhat.com>
7107
7108 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
7109 Linux entry point symbols for _dl_debug_state, too.
7110
7111 2003-06-13 Andrew Cagney <cagney@redhat.com>
7112
7113 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
7114 available, do not use the FP register, and always save the TOS.
7115 * dummy-frame.c (dummy_frame_this_id): Do not assert
7116 SAVE_DUMMY_FRAME_TOS.
7117 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
7118 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
7119 (i386_push_dummy_call): Add 8 to the returned SP.
7120 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
7121 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
7122 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
7123 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
7124 (x86_64_push_dummy_call): Return "sp + 16".
7125 (x86_64_init_abi): Do not set save_dummy_frame_tos.
7126 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7127 save_dummy_frame_tos.
7128
7129 2003-06-13 Jim Blandy <jimb@redhat.com>
7130
7131 * frv-tdep.c (frv_use_struct_convention): Delete static
7132 declaration for function deleted in my change of 2003-06-12.
7133
7134 2003-06-13 Theodore A. Roth <troth@openavr.org>
7135
7136 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
7137 (avr_pointer_to_address): Shift code addrs left 1 bit.
7138 (avr_convert_from_func_ptr_addr): Delete function since operation is
7139 better handled by avr_address_to_pointer and avr_pointer_to_address.
7140 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
7141
7142 2003-06-13 Mark Kettenis <kettenis@gnu.org>
7143
7144 From Kelley Cook <kelleycook@wideopenwest.com>:
7145 * configure.host: Accept i[34567]86 variants.
7146 * configure.tgt: Likewise.
7147 * nlm/configure.in: Likewise.
7148 * nlm/configure: Regenerated.
7149
7150 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
7151
7152 * arm-tdep.c (solib-svr4.h): Dont' include it.
7153 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
7154 * arm-linux-tdep.c: ... here. Make static.
7155 (arm_linux_init_abi): Register it.
7156 (solib-svr4.h): Include it.
7157 * Makefile.in: Update dependencies.
7158 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7159 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
7160
7161 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
7162
7163 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
7164 indicate registers used for return values.
7165 (struct frame_extra_info): Drop args_pointer and locals_pointer.
7166 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
7167 members.
7168 (h8300_init_extra_frame_info): Ditto.
7169 (h8300_frame_locals_address): Removed.
7170 (h8300_frame_args_address): Removed.
7171 (h8300_extract_return_value): Use new regcache structure. Only care
7172 for 16 bit CPUs.
7173 (h8300h_extract_return_value): Same function for 32 bit CPUs.
7174 (h8300_store_return_value): Use new regcache structure. Only care
7175 for 16 bit CPUs.
7176 (h8300h_store_return_value): Same function for 32 bit CPUs.
7177 (h8300_store_struct_return): Removed.
7178 (h8300_extract_struct_value_address): Use new regcache structure.
7179 (h8300h_extract_struct_value_address): Removed.
7180 (h8300_push_dummy_code): New function.
7181 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7182 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
7183 set_gdbarch_store_return_value architecture dependent.
7184 Call set_gdbarch_push_dummy_code and
7185 set_gdbarch_extract_struct_value_address.
7186 Remove calls to set_gdbarch_frame_args_address,
7187 set_gdbarch_frame_locals_address,
7188 set_gdbarch_deprecated_store_struct_return,
7189 set_gdbarch_deprecated_extract_return_value,
7190 set_gdbarch_deprecated_extract_struct_value_address,
7191 set_gdbarch_deprecated_call_dummy_words and
7192 set_gdbarch_deprecated_sizeof_call_dummy_words.
7193
7194 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
7195
7196 * h8300-tdep.c (h8300_register_byte): Remove.
7197 (h8300h_register_byte): Remove.
7198 (h8300_register_virtual_type): Remove. Substitute by...
7199 (h8300_register_type): New function.
7200 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7201 (h8300h_extract_struct_value_address): Ditto.
7202 (h8300_gdbarch_init): Drop calls to
7203 set_gdbarch_deprecated_register_byte and
7204 set_gdbarch_deprecated_register_virtual_type.
7205 Add call to set_gdbarch_register_type.
7206
7207 2003-06-13 Andrew Cagney <cagney@redhat.com>
7208
7209 * gdbarch.sh: Update comments on registers.
7210 (deprecated_register_byte): Rename register_byte.
7211 (deprecated_register_raw_size): Rename register_raw_size.
7212 (deprecated_register_virtual_size): Rename register_virtual_size.
7213 (deprecated_register_virtual_type): Rename register_virtual_type.
7214 * gdbarch.h, gdbarch.c: Re-generate.
7215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7216 * vax-tdep.c (vax_gdbarch_init): Update.
7217 * v850-tdep.c (v850_gdbarch_init): Update.
7218 * sparc-tdep.c (sparc_gdbarch_init): Update.
7219 * sh-tdep.c (sh_gdbarch_init): Update.
7220 * s390-tdep.c (s390_gdbarch_init): Update.
7221 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7222 * ns32k-tdep.c: Update.
7223 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7224 * mips-tdep.c (mips_gdbarch_init): Update.
7225 * mcore-tdep.c (mcore_gdbarch_init): Update.
7226 * m68k-tdep.c (m68k_gdbarch_init): Update.
7227 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7228 * ia64-tdep.c (ia64_gdbarch_init): Update.
7229 * hppa-tdep.c (hppa_gdbarch_init): Update.
7230 * h8300-tdep.c (h8300_gdbarch_init): Update.
7231 * frv-tdep.c (frv_gdbarch_init): Update.
7232 * cris-tdep.c (cris_gdbarch_init): Update.
7233 * avr-tdep.c (avr_gdbarch_init): Update.
7234 * alpha-tdep.c (alpha_gdbarch_init): Update.
7235 * arm-tdep.c (arm_gdbarch_init): Update.
7236
7237 2003-06-13 Andrew Cagney <cagney@redhat.com>
7238
7239 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7240 mips_o32_use_struct_convention with always_use_struct_convention.
7241
7242 2003-06-12 David Carlton <carlton@kealia.com>
7243
7244 * cp-namespace.c (cp_set_block_scope): Comment out
7245 processing_has_namespace_info branch.
7246
7247 2003-06-12 Jim Blandy <jimb@redhat.com>
7248
7249 Recognize and skip 64-bit PowerPC Linux linkage functions.
7250 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7251 insn_pattern, insns_match_pattern, d_field, ds_field): New
7252 functions, macros, and types for working with PPC instructions.
7253 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7254 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7255 ppc64_skip_trampoline_code): New functions, variables, and macros
7256 for recognizing and skipping linkage functions.
7257 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7258 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7259
7260 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7261 register offsets for both the 32- and 64-bit interfaces.
7262
7263 Actually finish the job started by my change of 2003-05-29.
7264 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7265 other #definition of this.
7266 (ppc_linux_skip_trampoline_code): Remove declaration.
7267 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7268 static.
7269 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7270 method for GDBARCH.
7271
7272 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7273 'long' on ppc64-*-linux*.
7274
7275 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7276 isn't #defined, assume the register doesn't exist: act as if
7277 tdep->ppc_mq_regnum were -1.
7278
7279 * configure.host, configure.tgt: Add entries for
7280 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7281 powerpc/linux.mt.
7282 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7283 New files.
7284
7285 * arch-utils.c (always_use_struct_convention): New function.
7286 * arch-utils.h (always_use_struct_convention): New prototype.
7287 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7288 (alpha_gdbarch_init): Register always_use_struct_convention,
7289 instead of alpha_use_struct_convention.
7290 * cris-tdep.c (cris_use_struct_convention): Delete.
7291 (cris_gdbarch_init): Register always_use_struct_convention,
7292 instead of cris_use_struct_convention.
7293 * frv-tdep.c (frv_use_struct_convention): Delete.
7294 (frv_gdbarch_init): Register always_use_struct_convention,
7295 instead of frv_use_struct_convention.
7296 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7297 (h8300_gdbarch_init): Register always_use_struct_convention,
7298 instead of h8300_use_struct_convention.
7299 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
7300 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7301 instead of mips_o32_use_struct_convention.
7302
7303 2003-06-12 Andrew Cagney <cagney@redhat.com>
7304
7305 * wince.c: Include "mips-tdep.h".
7306 * mips-tdep.h (mips_next_pc): Declare.
7307 * mcore-tdep.c: Make more local functions static.
7308 * Makefile.in (wince.o): Update dependencies.
7309
7310 2003-06-12 David Carlton <carlton@kealia.com>
7311
7312 * symtab.c (lookup_symbol_aux_minsyms): Replace
7313 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7314 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7315 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7316 SYMBOL_NATURAL_NAME.
7317
7318 2003-06-12 Andreas Schwab <schwab@suse.de>
7319
7320 * Makefile.in (tuiDisassem.o): Update dependencies.
7321
7322 2003-06-12 David Carlton <carlton@bactrian.org>
7323
7324 * symtab.h: Delete declaration of make_symbol_overload_list.
7325 Add declaration of lookup_partial_symbol.
7326 * symtab.c (remove_params): Move to cp-support.c.
7327 (overload_list_add_symbol, make_symbol_overload_list)
7328 (sym_return_val_size, sym_return_val_index): Ditto.
7329 (lookup_partial_symbol): Make extern.
7330 * cp-support.h: Add declaration of make_symbol_overload_list.
7331 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7332 symtab.h, and block.h.
7333 (remove_params): Move here from symtab.c.
7334 (overload_list_add_symbol, make_symbol_overload_list)
7335 (sym_return_val_size, sym_return_val_index): Ditto.
7336 * valops.c: Include cp-support.h.
7337 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7338 frame_h, and block_h.
7339 (valops.o): Depend on cp_support_h.
7340
7341 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
7342
7343 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7344 substitute by NUM_REGS throughout.
7345 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7346 (h8300s_register_name): New function for H8S registers.
7347 (h8300sx_register_name): Ditto for H8SX registers.
7348 (h8300_print_register): Revise register printing, avoid depending
7349 on 32 bit long.
7350 (h8300_register_byte): Only care for H8/300 registers.
7351 (h8300h_register_byte): New function for any other architecture.
7352 (h8300_register_raw_size): Remove.
7353 (h8300_register_virtual_type): Revise to return actually useful
7354 type.
7355 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7356 (h8300h_extract_struct_value_address): New function for any other
7357 architecture.
7358 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7359 set_gdbarch_register_name, set_gdbarch_register_byte,
7360 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7361 Remove calls to set_gdbarch_deprecated_register_size,
7362 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7363 set_gdbarch_deprecated_max_register_raw_size,
7364 set_gdbarch_register_virtual_size and
7365 set_gdbarch_deprecated_max_register_virtual_size entirely.
7366 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7367 set_gdbarch_long_double_bit.
7368
7369 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7370
7371 * doublest.c (convert_doublest_to_floatformat): When dealing
7372 with the implied integer bit, only alter mant_bits if we are
7373 processing a full 32 bits of mantissa.
7374
7375 2003-06-11 David Carlton <carlton@bactrian.org>
7376
7377 * dictionary.h: New.
7378 * dictionary.c: New.
7379 * block.h: Add opaque declaration for struct dictionary.
7380 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7381 'sym' members.
7382 (BLOCK_DICT): New macro.
7383 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7384 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7385 BLOCK_SHOULD_SORT.
7386 (ALL_BLOCK_SYMBOLS): Update definition.
7387 * Makefile.in (SFILES): Add dictionary.c.
7388 (dictionary_h): New.
7389 (COMMON_OBS): Add dictionary.o.
7390 (dictionary.o): New.
7391 (ada-lang.o): Depend on dictionary_h.
7392 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7393 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7394 (mi-cmd-stack.o): Ditto.
7395 (gdbtk-cmds.o): Update dependencies.
7396 (gdbtk-stack.o): Ditto.
7397 * ada-lang.c: Include dictionary.h.
7398 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7399 (fill_in_ada_prototype, debug_print_block): Ditto.
7400 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7401 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7402 'is_sorted'.
7403 * mdebugread.c: Include dictionary.h.
7404 (struct parse_stack): Delete 'maxsyms' member.
7405 (parse_symbol): Update calls to new_block. Delete calls to
7406 shrink_block. Use dictionary methods.
7407 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7408 Update calls to new_symtab. Don't maintain maxsyms data.
7409 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7410 (add_symbol): Just call dict_add_symbol.
7411 (new_symtab): Delete 'maxsyms' argument.
7412 (new_symtab): Update calls to new_block.
7413 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7414 (shrink_block): Delete function.
7415 (fixup_sigtramp): Update call to new_block. Add symbol via
7416 dict_add_symbol.
7417 * jv-lang.c: Include dictionary.h.
7418 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7419 appropriately. Set class_symtab->free_func. Make sure the
7420 blockvector is big enough to hold two blocks.
7421 (add_class_symtab_symbol): Use dictionary methods.
7422 (free_class_block): New function.
7423 (type_from_class): Replace explicit iteration by
7424 ALL_BLOCK_SYMBOLS.
7425 * symtab.h (struct symtab): Replace 'free_ptr' method by
7426 'free_func'.
7427 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7428 sort_symtab_syms.
7429 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7430 sort_symtab_syms.
7431 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7432 Include dictionary.h.
7433 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7434 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7435 sort_symtab_syms.
7436 * objfiles.c: Include dictionary.h.
7437 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7438 * buildsym.c: Include dictionary.h.
7439 (finish_block): Use dictionary methods.
7440 (end_symtab): Set free_func to NULL, not free_ptr.
7441 * tracepoint.c: Include dictionary.h.
7442 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7443 (scope_info): Ditto.
7444 * stack.c: Include dictionary.h.
7445 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7446 (print_block_frame_labels, print_frame_arg_vars)
7447 (print_frame_args): Ditto.
7448 * symmisc.c (free_symtab_block): Use dictionary methods.
7449 (dump_symtab): Ditto.
7450 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7451 Include dictionary.h.
7452 * symfile.h: Delete declarations of sort_block_syms,
7453 sort_symtab_syms.
7454 * symfile.c (sort_block_syms): Delete.
7455 (sort_symtab_syms): Delete.
7456 * symtab.c: Include dictionary.h.
7457 (lookup_block_symbol): Use dictionary iterators.
7458 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7459 (search_symbols, make_symbol_completion_list): Ditto.
7460 (make_symbol_overload_list): Ditto.
7461 * valops.c (value_of_local): Use dict_empty.
7462 Include dictionary.h.
7463
7464 2003-06-11 J. Brobecker <brobecker@gnat.com>
7465
7466 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7467
7468 2003-06-11 David Carlton <carlton@bactrian.org>
7469
7470 * block.h (BLOCK_SHOULD_SORT): Delete.
7471 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7472 blocks.
7473 * ada-lang.c (ada_add_block_symbols): Ditto.
7474 * symfile.c (sort_block_syms): Delete.
7475 (sort_symtab_syms): Ditto.
7476 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7477 declarations.
7478 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7479 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7480 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7481 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7482 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7483 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7484 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7485
7486 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7487
7488 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
7489 bits to 128.
7490
7491 2003-06-11 Andrew Cagney <cagney@redhat.com>
7492
7493 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7494 REGISTER_CONVERTIBLE.
7495 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7496 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7497 * gdbarch.h, gdbarch.c: Re-generate.
7498 * arch-utils.h (deprecated_register_convertible_not): Rename
7499 generic_register_convertible_not.
7500 * arch-utils.c (deprecated_register_convertible_not): Rename
7501 generic_register_convertible.
7502 (legacy_convert_register_p, legacy_register_to_value): Update.
7503 * sh-tdep.c (sh64_push_arguments): Update.
7504 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7505 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7506 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7507 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7508 * arch-utils.c (legacy_value_to_register): Update.
7509 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7510 (rs6000_register_convert_to_raw): Make parameter "from" const.
7511 * mips-tdep.c (mips_gdbarch_init): Update.
7512 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7513 * infcmd.c (default_print_registers_info): Update.
7514 * ia64-tdep.c (ia64_gdbarch_init): Update.
7515 (ia64_register_convert_to_raw): Make parameter "from" const.
7516 * i386-tdep.c (i386_gdbarch_init): Update.
7517 (i386_register_convert_to_raw): Update.
7518
7519 2003-06-11 Andrew Cagney <cagney@redhat.com>
7520
7521 * remote-fileio.c: Include "remote-fileio.h".
7522 * Makefile.in (remote-fileio.o): Update dependencies.
7523 (remote_fileio_h): Fix typo.
7524
7525 2003-06-11 Andrew Cagney <cagney@redhat.com>
7526
7527 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7528 (xstormy16_save_dummy_frame_tos): Make static.
7529 (_initialize_xstormy16_tdep): Add declaration.
7530 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7531 * v850-tdep.c: Make local functions static.
7532 (_initialize_v850_tdep): Add declaration.
7533 * sparc-tdep.c: Make local functions static.
7534 (_initialize_sparc_tdep): Add declaration.
7535 * sh-tdep.c: Make local functions static.
7536 (_initialize_sh_tdep): Add declaration.
7537 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7538 * s390-tdep.c: Make local functions static.
7539 (_initialize_s390_tdep): Add declaration.
7540 * dbxread.c (find_stab_function_addr): Make static.
7541 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7542 * ocd.c (_initialize_remote_ocd): Add declaration.
7543 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7544 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7545 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7546 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7547 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7548 * remote-array.c (_initialize_array): Add declaration.
7549 (_initialize_remote_monitors): Add declaration.
7550 * remote-mips.c: Make local functions static.
7551 (_initialize_remote_mips): Add declaration.
7552 * mcore-tdep.c: Make all local functions static.
7553 (_initialize_mcore_tdep): Add declaration.
7554 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7555 * abug-rom.c (_initialize_abug_rom): Add declaration.
7556 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7557 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7558 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7559 * remote-est.c (_initialize_est): Add declaration.
7560 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7561 (m68hc11_call_dummy_address): Make static.
7562 * ia64-tdep.c: Make local functions static.
7563 (_initialize_ia64_tdep): Add declaration.
7564 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7565 * monitor.c (monitor_wait_filter): Make static.
7566 (_initialize_remote_monitors): Add declaration.
7567 * remote-hms.c (_initialize_remote_hms): Add declaration.
7568 * remote-e7000.c (fetch_regs_from_dump): Make static.
7569 (expect_n): Make static.
7570 (_initialize_remote_e7000): Add declaration.
7571 * ser-e7kpc.c: Always include "defs.h".
7572 (_initialize_ser_e7000pc): Add declaration.
7573 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7574 * cris-tdep.c: Make all but one function static.
7575 (_initialize_cris_tdep): Add declaration.
7576 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7577 * solib.c (update_solib_list): Make static.
7578 (_initialize_solib): Add declaration.
7579 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7580 (_initialize_avr_tdep): Add declaration.
7581 * remote-rdi.c (voiddummy): Make static.
7582 (_initialize_remote_rdi): Add declaration.
7583 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7584 * remote-rdp.c (send_rdp): Make static.
7585 (_initialize_remote_rdp): Add declaration.
7586 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7587
7588 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
7589
7590 * remote-fileio.c: Make ari happy.
7591
7592 2003-06-10 J. Brobecker <brobecker@gnat.com>
7593
7594 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7595 fetching the trailing bytes of the buffer we are about to write.
7596
7597 2003-06-10 Andrew Cagney <cagney@redhat.com>
7598
7599 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7600 * Makefile.in (remote-fileio.o): Update dependencies.
7601 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7602 include <setjmp.h>, or <sys/types.h> conditional on USG.
7603 (remote_fio_jmp_buf): Delete global variable.
7604
7605 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
7606 Martin M. Hunt <hunt@redhat.com>
7607
7608 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7609 (SFILES): Add remote-fileio.c.
7610 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7611 dependencies for building remote.o.
7612 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7613 * remote-fileio.h: New header file defining remote File-I/O interface.
7614 * remote.c (remote_write_bytes, remote_read_bytes): Remove
7615 static storage class.
7616 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7617 'F' packet.
7618 (_initialize_remote): Call initialize_remote_fileio().
7619 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7620 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7621 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7622 (captured_main): Initialize new ui_files.
7623 * ui-file.c: Add read and fgets input functions.
7624 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7625 (null_file_read): New function.
7626 (ui_file_read): New function.
7627 (set_ui_file_read): New function.
7628 (stdio_file_read): New function.
7629 * ui-file.h: New type ui_file_read_ftype.
7630 (set_ui_file_read): Declare.
7631 (ui_file_read): Declare.
7632
7633 2003-06-09 Andrew Cagney <cagney@redhat.com>
7634
7635 * frame.h (deprecated_unwind_get_saved_register): Rename
7636 generic_unwind_get_saved_register, update comments.
7637 * mips-tdep.c (mips_get_saved_register): Update.
7638 * frame.c (deprecated_unwind_get_saved_register): Update.
7639
7640 2003-06-09 Andrew Cagney <cagney@redhat.com>
7641
7642 * vax-tdep.c (vax_frame_locals_address): Delete function.
7643 (vax_gdbarch_init): Do not set frame_locals_address.
7644 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7645 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7646 * s390-tdep.c (s390_frame_args_address): Delete function.
7647 (s390_gdbarch_init): Do not set frame_args_address or
7648 frame_locals_address.
7649 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7650 (ns32k_gdbarch_init): Do not set frame_locals_address.
7651 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7652 (hppa_frame_locals_address): Delete function.
7653 (hppa_gdbarch_init): Do not set frame_args_address, or
7654 frame_locals_address.
7655 * arm-tdep.c (arm_frame_args_address): Delete.
7656 (arm_frame_locals_address): Delete.
7657 (arm_gdbarch_init): Do not set frame_args_address, or
7658 frame_locals_address.
7659
7660 2003-06-09 Andrew Cagney <cagney@redhat.com>
7661
7662 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7663 * gdbarch.h, gdbarch.c: Re-generate.
7664 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7665 * arch-utils.c (frame_num_args_unknown): Delete function.
7666 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7667 (frame_info): Use FRAME_NUM_ARGS_P.
7668 * arm-tdep.c (arm_frame_num_args): Delete function.
7669 (arm_gdbarch_init): Do not set frame_num_args.
7670 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7671 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7672 (hppa_gdbarch_init): Do not set frame_num_args.
7673 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7675 frame_num_args to default frame_num_args_unknown.
7676 * v850-tdep.c (v850_gdbarch_init): Ditto.
7677 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7678 * sh-tdep.c (sh_gdbarch_init): Ditto.
7679 * s390-tdep.c (s390_gdbarch_init): Ditto.
7680 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7681 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7682 * mips-tdep.c (mips_gdbarch_init): Ditto.
7683 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7684 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7686 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7687 * i386-tdep.c (i386_gdbarch_init): Ditto.
7688 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7689 * frv-tdep.c (frv_gdbarch_init): Ditto.
7690 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7691 * cris-tdep.c (cris_gdbarch_init): Ditto.
7692 * avr-tdep.c (avr_gdbarch_init): Ditto.
7693 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7694
7695 2003-06-09 Andrew Cagney <cagney@redhat.com>
7696
7697 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7698 (print_frame_args): Moved to "stack.c".
7699 * stack.c: Include "gdb_assert.h".
7700 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7701 (print_frame_args): Moved from "printcmd.c".
7702 * frame.h (print_frame_args): Delete declaration.
7703 * Makefile.in (stack.o): Update dependencies.
7704
7705 2003-06-08 Andrew Cagney <cagney@redhat.com>
7706
7707 * frame.c (get_prev_frame): Remove reference to
7708 frame_args_address_correct in comments.
7709 * frame-base.c (default_frame_args_address): Delete code
7710 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7711 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7712 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7713 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7714 (vax_frame_args_address_correct): Delete declaration.
7715
7716 2003-06-08 Andrew Cagney <cagney@redhat.com>
7717
7718 * gdbarch.sh (UNWIND_SP): Add.
7719 * gdbarch.h, gdbarch.c: Re-generate.
7720 * frame.c (frame_sp_unwind): New function.
7721 (get_frame_sp): New function.
7722 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7723 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7724 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7725 value.
7726 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7727 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7728
7729 2003-06-08 Andrew Cagney <cagney@redhat.com>
7730
7731 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7732 REMOTE_BREAKPOINT.
7733 * remote.c: Update.
7734 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7735 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7736 * config/m68k/tm-sun3.h: Update.
7737 * config/m68k/tm-m68klynx.h: Update.
7738 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7739
7740 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7741 trad_frame". Update comments.
7742 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7743 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7744 (trad_frame_register_value, trad_frame_prev_register): Update.
7745
7746 2003-06-08 Andrew Cagney <cagney@redhat.com>
7747
7748 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7749 from GCC's acinclude.m4.
7750 * configure.in: Check for getopt's delcaration.
7751 * aclocal.m4, config.in, configure: Re-generate.
7752 * main.c (error_init): Delete declaration.
7753 * defs.h (error_init): Declare.
7754 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7755 (rs6000_convert_from_func_ptr_addr): Make static.
7756 (_initialize_rs6000_tdep): Add declaration.
7757 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7758 (show_commands, set_verbose, show_history): Delete declaration.
7759 * top.h (set_verbose): Add declaration.
7760 (show_history, set_history, show_commands): Add declaration.
7761 (do_restore_instream_cleanup): Add declaration.
7762 * objc-lang.c (specialcmp): Make static.
7763 (print_object_command): Make static.
7764 (find_objc_msgsend): Make static.
7765 (find_objc_msgcall_submethod_helper): Make static.
7766 (find_objc_msgcall_submethod): Make static.
7767 (_initialize_objc_language): Add declaration.
7768 (find_implementation_from_class): Make static.
7769 (find_implementation): Make static.
7770 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7771 * objc-lang.h (lookup_struct_typedef): Add declaration.
7772 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7773 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7774 (do_restore_user_call_depth): Make static.
7775 (do_restore_instream_cleanup): Delete declaration.
7776 (dont_repeat): Delete declaration.
7777 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7778 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7779 * reggroups.c (_initialize_reggroup): Add declaration.
7780 * cp-support.c (_initialize_cp_support): Add declaration.
7781 * cp-abi.c (_initialize_cp_abi): Add declaration.
7782 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7783 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7784 (_initialize_gnu_v3_abi): Add declaration.
7785 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7786 (_initialize_gnu_v2_abi): Add declaration.
7787 * frame-base.c (_initialize_frame_base): Add declaration.
7788 * doublest.c (floatformat_from_length): Make static.
7789 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7790 * frame.c (create_sentinel_frame): Make static.
7791 (_initialize_frame): Add declaration.
7792 * top.c (do_catch_errors): Make static.
7793 (gdb_rl_operate_and_get_next_completion): Make static.
7794 * typeprint.c: Include "typeprint.h".
7795 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7796 (sentinel_frame_this_id): Make static.
7797 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7798 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7799 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7800 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7801 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7802 * maint.c (maintenance_print_architecture): Make static.
7803 * signals/signals.c (_initialize_signals): Add declaration.
7804 * std-regs.c (_initialize_frame_reg): Add declaration.
7805 * jv-exp.y (push_variable): ISO C definition.
7806 (push_qualified_expression_name): Ditto.
7807 * memattr.c (_initialize_mem): Add declaration.
7808 * remote.c (remote_check_watch_resources): Make static.
7809 (remote_stopped_by_watchpoint): Make static.
7810 (remote_stopped_data_address): Make static.
7811 * d10v-tdep.c (nr_dmap_regs): Make static.
7812 (a0_regnum): Make static.
7813 (d10v_frame_unwind_cache): Make static.
7814 (d10v_frame_p): Make static.
7815 * osabi.c (show_osabi): Make static.
7816 (_initialize_gdb_osabi): Add extern declaration.
7817 * gdbtypes.c (make_qualified_type): Make static.
7818 (safe_parse_type): Make static.
7819 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7820 * macrotab.c (macro_bcache_free): Make static.
7821 * interps.c (interp_set_quiet): Make static.
7822 (interpreter_exec_cmd): Make static.
7823 * stack.h (select_frame_command): New file.
7824 * stack.c: Include "stack.h".
7825 (select_frame_command_wrapper): Delete function.
7826 (select_frame_command): Make global.
7827 * infcall.c: Include "infcall.h".
7828 * linespec.c: Include "linespec.h".
7829 * symfile.c (sections_overlap): Make static.
7830 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7831 * charset.c (_initialize_charset): Add missing prototype.
7832 * regcache.c (init_legacy_regcache_descr): Make static.
7833 (do_regcache_xfree): Make static.
7834 (regcache_xfer_part): Make static.
7835 (_initialize_regcache): Add missing prototype.
7836 * breakpoint.c (parse_breakpoint_sals): Make static.
7837 (breakpoint_sals_to_pc): Make static.
7838 * interps.h (clear_interpreter_hooks): ISO C declaration.
7839 * Makefile.in (stack_h): Define.
7840 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7841 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7842
7843 2003-06-08 Andrew Cagney <cagney@redhat.com>
7844
7845 * Makefile.in (d10v-tdep.o): Update dependencies.
7846 (SFILES): Add trad-frame.c.
7847 (trad_frame_h): Define.
7848 (COMMON_OBS): Add trad-frame.o.
7849 (trad-frame.o): Specify dependencies.
7850 * d10v-tdep.c: Include "trad-frame.h".
7851 (saved_regs_unwinder): Delete function.
7852 (d10v_frame_prev_register): Use trad_frame_prev_register.
7853 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7854 trad_frame", delete "regs" and "prev_sp".
7855 (prologue_find_regs): Use trad-frame.
7856 * trad-frame.h, trad-frame.c: New files.
7857
7858 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7859
7860 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7861
7862 2003-06-07 Adam Fedor <fedor@gnu.org>
7863
7864 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7865 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7866 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7867 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7868 resolve_msgsend_super, resolve_msgsend_super_stret):
7869 Use it.
7870
7871 2003-06-07 Andrew Cagney <cagney@redhat.com>
7872
7873 * symfile.h: Re-indent, clean up comments.
7874
7875 2003-06-07 Andrew Cagney <cagney@redhat.com>
7876
7877 * inferior.h (deprecated_write_sp): Replace
7878 generic_target_write_sp.
7879 * regcache.c (deprecated_write_sp): Replace
7880 generic_target_write_sp.
7881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7882 * vax-tdep.c (vax_gdbarch_init): Update.
7883 * v850-tdep.c (v850_gdbarch_init): Update.
7884 * sparc-tdep.c (sparc_gdbarch_init): Update.
7885 * sh-tdep.c (sh_gdbarch_init): Update.
7886 * s390-tdep.c (s390_gdbarch_init): Update.
7887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7888 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7889 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7890 * mcore-tdep.c (mcore_gdbarch_init): Update.
7891 * m68k-tdep.c (m68k_gdbarch_init): Update.
7892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7893 * ia64-tdep.c (ia64_gdbarch_init): Update.
7894 * h8300-tdep.c (h8300_gdbarch_init): Update.
7895 * frv-tdep.c (frv_gdbarch_init): Update.
7896 * cris-tdep.c (cris_gdbarch_init): Update.
7897 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7898
7899 2003-06-07 Andrew Cagney <cagney@redhat.com>
7900
7901 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7902 Assert that PC_REGNUM is valid.
7903 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7904
7905 2003-06-07 Andrew Cagney <cagney@redhat.com>
7906
7907 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7908 * gdbarch.h, gdbarch.c: Regenerate.
7909 * mn10300-tdep.c: Include "gdb_assert.h".
7910 (mn10300_read_fp): New function.
7911 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7912 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7913 * ia64-tdep.c: Include "gdb_assert.h".
7914 (ia64_read_fp): New function.
7915 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7916 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7917 * regcache.c (generic_target_read_sp): Delete function.
7918 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7919 * inferior.h (generic_target_read_sp): Delete declaration.
7920 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7921 generic_target_read_sp.
7922 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7923 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7924 * sh-tdep.c (sh_gdbarch_init): Ditto.
7925 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7926 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7927
7928 2003-06-07 Andrew Cagney <cagney@redhat.com>
7929
7930 * gdbarch.sh: Comment each field of startup_gdbarch.
7931 * gdbarch.h, gdbarch.c: Re-generate.
7932
7933 2003-06-07 Andrew Cagney <cagney@redhat.com>
7934
7935 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7936 * gdbarch.h, gdbarch.c: Re-generate.
7937 * regcache.c: Update comments on read_pc et.al.
7938 (generic_target_read_pc): Delete function.
7939 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7940 * inferior.h (generic_target_read_pc): Delete declaration.
7941 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7942 generic_target_read_pc.
7943 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7944 * sh-tdep.c (sh_gdbarch_init): Ditto.
7945 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7947
7948 2003-06-07 Andrew Cagney <cagney@redhat.com>
7949
7950 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7951 "index" with "special_local_sect". Use strcmp instead of STREQ.
7952 Append period to coments.
7953
7954 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7955
7956 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7957 (elfstab_offset_sections): Likewise.
7958 * gdb-stabs.h (stab_section_info): Likewise.
7959 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7960 * objfiles.c (objfile_relocate): Likewise.
7961 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7962 * remote.c (get_offsets): Likewise.
7963 (remote_cisco_objfile_relocate): Likewise.
7964 * somread.c (som_symfile_offsets): Likewise.
7965 * symfile.c (alloc_section_addr_info): New function.
7966 (build_section_addr_info_from_section_tab): Use it.
7967 (free_section_addr_info): Adjust.
7968 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7969 (syms_from_objfile): Allocate local_addr dynamically.
7970 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7971 dynamically.
7972 (add_symbol_file_command): Allocate sect_opts dynamically.
7973 (reread_symbols): Avoid use of SECT_OFF_MAX.
7974 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7975 (alloc_section_addr_info): Declare it.
7976 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7977 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7978 dynamically.
7979 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7980
7981 2003-06-06 Andrew Cagney <cagney@redhat.com>
7982
7983 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7984 (d10v_frame_unwind_cache): Do not set "return_pc".
7985
7986 2003-06-06 Michael Snyder <msnyder@redhat.com>
7987
7988 * h8300-tdep.c: Make tidy (long lines).
7989
7990 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7991
7992 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7993 to regcache_collect().
7994
7995 2003-06-05 J. Brobecker <brobecker@gnat.com>
7996
7997 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7998 pc_in_sigtramp multiarch method.
7999 (hppa_hpux_som_init_abi): Use it.
8000 (hppa_hpux_elf_init_abi): Likewise.
8001 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
8002 macro has been multiarched.
8003 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
8004 macro here, as hppa64 isn't multiarched yet.
8005
8006 2003-06-05 Andrew Cagney <cagney@redhat.com>
8007
8008 * Makefile.in (value_h): Add $(frame_h).
8009 * value.h: Include "frame.h".
8010 (struct value): Replace "frame_addr" with "frame_id".
8011 (VALUE_FRAME_ID): Replace VALUE_FRAME.
8012 * values.c (allocate_value): Use VALUE_FRAME_ID.
8013 (value_copy): Use VALUE_FRAME_ID.
8014 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
8015 * valops.c (value_assign): Update. Use frame_find_by_id.
8016
8017 2003-06-05 Michal Ludvig <mludvig@suse.cz>
8018
8019 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
8020 in each pass.
8021
8022 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
8023
8024 * thread-db.c (check_event): For create/death event breakpoints,
8025 loop through all messages to ensure that we read the message
8026 corresponding to the breakpoint we are at.
8027
8028 2003-06-04 Michael Snyder <msnyder@redhat.com>
8029
8030 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
8031
8032 2003-06-04 Mark Kettenis <kettenis@gnu.org>
8033
8034 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
8035 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
8036 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
8037 when handling .eh_frame sections.
8038
8039 2003-06-04 J. Brobecker <brobecker@gnat.com>
8040
8041 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
8042 prepare_to_proceed procedure instead of the hppa-specific one.
8043 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
8044
8045 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8046
8047 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
8048 * config.in: Regenerated.
8049 * configure.in: Add test for syscall function and check for
8050 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
8051 * configure: Regenerated.
8052 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
8053 <sys/syscall.h>.
8054 (kill_lwp): New function that uses tkill syscall or
8055 uses kill, depending on whether threading model is nptl or not.
8056 All callers of kill() changed to use kill_lwp().
8057 (lin_lwp_wait): Make special check when WIFEXITED occurs to
8058 see if all threads have already exited in the nptl model.
8059 (stop_and_resume_callback): New callback function used by the
8060 lin_lwp_wait thread exit handling code.
8061 (stop_wait_callback): Check for threads already having exited and
8062 delete such threads fromt the lwp list when discovered.
8063 (stop_callback): Don't assert retcode of kill call.
8064
8065 Roland McGrath <roland@redhat.com>
8066 * i386-linux-nat.c (ps_get_thread_area): New function needed by
8067 nptl libthread_db.
8068
8069 2003-06-03 Richard Henderson <rth@redhat.com>
8070
8071 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
8072 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
8073 (alpha_sigtramp_frame_prev_register): Likewise.
8074 (alpha_heuristic_frame_prev_register): Likewise.
8075 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
8076
8077 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
8078 alpha-specific register id names.
8079 (alpha_mdebug_frame_unwind_cache): Likewise.
8080 (alpha_mdebug_frame_prev_register): Likewise.
8081
8082 2003-06-03 Richard Henderson <rth@redhat.com>
8083
8084 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
8085 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
8086 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
8087 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
8088 unwind routines.
8089 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8090 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8091 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8092
8093 * alpha-linux-tdep.c: Remove unnecessary includes.
8094 * Makefile.in (alpha-linux-tdep.o): Update.
8095
8096 2003-06-03 Richard Henderson <rth@redhat.com>
8097
8098 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
8099 (alphabsd_fill_fpreg): Likewise.
8100
8101 2003-06-03 J. Brobecker <brobecker@gnat.com>
8102
8103 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
8104 references to struct frame_info fields by calls to the equivalent
8105 accessors. Necessary now that frame_info is opaque.
8106
8107 2003-06-03 J. Brobecker <brobecker@gnat.com>
8108
8109 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
8110 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
8111 structure, field no longer exists.
8112
8113 2003-06-03 J. Brobecker <brobecker@gnat.com>
8114
8115 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8116 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
8117
8118 2003-06-03 J. Brobecker <brobecker@gnat.com>
8119
8120 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
8121 references to struct frame_info fields by calls to the equivalent
8122 accessors. Necessary now that frame_info is opaque.
8123
8124 2003-06-03 J. Brobecker <brobecker@gnat.com>
8125
8126 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
8127 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
8128 structure, field no longer exists.
8129
8130 2003-06-03 Theodore A. Roth <troth@openavr.org>
8131
8132 * remote.c (init_remote_state): Compute sizeof_g_packet by
8133 accumulation of the size of all registers instead of blindly using
8134 DEPRECATED_REGISTER_BYTES.
8135
8136 2003-06-03 Michael Snyder <msnyder@redhat.com>
8137
8138 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
8139 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
8140 for h8300sx.
8141
8142 2003-06-03 J. Brobecker <brobecker@gnat.com>
8143
8144 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
8145 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8146
8147 2003-06-03 Andrew Cagney <cagney@redhat.com>
8148
8149 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
8150 (sparc_convert_to_raw): Delete function.
8151 (sparc_gdbarch_init): Do not set register_convert_to_raw or
8152 register_convert_to_virtual.
8153
8154 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
8155
8156 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
8157 layer if not dealing with a statically-linked threaded program.
8158
8159 2003-06-03 Kris Warkentin <kewarken@qnx.com>
8160
8161 * solib.c (solib_open): Update comment to reflect actual search order.
8162
8163 2003-06-03 Andrew Cagney <cagney@redhat.com>
8164
8165 * frame.c (get_frame_memory_signed): New function.
8166 (get_frame_memory, get_frame_memory_unsigned): New function.
8167 (get_frame_arch): New function.
8168 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8169 (get_frame_memory, get_frame_unsigned_memory): Declare.
8170 * d10v-tdep.c (d10v_frame_unwind_cache): Use
8171 get_frame_memory_unsigned and get_frame_arch.
8172 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8173
8174 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
8175
8176 * MAINTAINERS (write after approval): Add myself.
8177
8178 2003-06-03 Jim Blandy <jimb@redhat.com>
8179
8180 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8181 elements of gregset_t are 64 bits each, but access registers
8182 are still 32 bits, so they're packed two per gregset_t
8183 element. Unpack/pack them properly.
8184
8185 2003-06-02 David Carlton <carlton@bactrian.org>
8186
8187 * linespec.c (find_methods): Break out code into
8188 add_matching_methods and add_constructors.
8189 (add_matching_methods): New.
8190 (add_constructors): Ditto.
8191
8192 2003-06-02 Andrew Cagney <cagney@redhat.com>
8193
8194 * sparc-tdep.c (sparc_print_registers): Delete call to
8195 REGISTER_CONVERTIBLE.
8196 (sparc_gdbarch_init): Do not set register_convertible.
8197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8198 * frv-tdep.c (frv_gdbarch_init): Ditto.
8199 * cris-tdep.c (cris_gdbarch_init): Ditto.
8200
8201 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
8202
8203 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
8204 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8205 (syms_from_objfile): Ditto.
8206
8207 2003-06-03 Andreas Schwab <schwab@suse.de>
8208
8209 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8210 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8211
8212 2003-06-02 Richard Henderson <rth@redhat.com>
8213
8214 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8215 a member of all_reggroup.
8216
8217 2003-06-02 Richard Henderson <rth@redhat.com>
8218
8219 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8220 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8221 (alpha_lds, alpha_sts): New.
8222 (alpha_convert_register_p): Change from _register_convertible.
8223 (alpha_register_to_value): Change from _convert_to_virtual;
8224 restructure and fail for type sizes other than 4 or 8.
8225 (alpha_value_to_register): Similarly.
8226 (alpha_extract_return_value): Use alpha_sts.
8227 (alpha_store_return_value): Use alpha_lds.
8228 (alpha_gdbarch_init): Update hooks.
8229
8230 2003-06-02 Richard Henderson <rth@redhat.com>
8231
8232 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8233 regnum identifiers.
8234 (alpha_sigtramp_register_address): Likewise.
8235
8236 2003-06-02 Richard Henderson <rth@redhat.com>
8237
8238 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8239 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8240 * alpha-tdep.h: Declare them.
8241
8242 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8243 Remove zerobuf. Don't error on UNIQUE.
8244 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8245 (ALPHA_REGSET_UNIQUE): Provide default.
8246 (supply_gregset): Use alpha_supply_int_regs.
8247 (fill_gregset): Use alpha_fill_int_regs.
8248 (supply_fpregset): Use alpha_supply_fp_regs.
8249 (fill_fpregset): Use alpha_fill_fp_regs.
8250 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8251 (alphabsd_supply_reg): Use alpha_supply_int_regs.
8252 (alphabsd_fill_reg): Use alpha_fill_int_regs.
8253 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8254 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8255 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8256
8257 2003-06-02 Richard Henderson <rth@redhat.com>
8258
8259 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8260
8261 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8262 (alpha_store_return_value): Likewise.
8263
8264 2003-06-02 David Carlton <carlton@math.stanford.edu>
8265
8266 * block.c (contained_in): Add 'const' to arguments.
8267 (block_function): Ditto.
8268 * block.h: Update declarations for block_function and
8269 contained_in.
8270
8271 2003-06-02 David Carlton <carlton@math.stanford.edu>
8272
8273 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8274 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8275 * p-valprint.c (pascal_val_print): Ditto.
8276 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8277
8278 2003-06-02 Richard Henderson <rth@redhat.com>
8279
8280 * alpha-tdep.c (alpha_push_dummy_call): Use
8281 builtin_type_ieee_double_little instead of builtin_type_double.
8282
8283 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
8284 sign-extension of 32-bit values.
8285 (alpha_store_return_value): Similarly.
8286
8287 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8288 (alpha_extract_return_value): Likewise.
8289 (alpha_store_return_value): Likewise.
8290
8291 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8292 (alpha_store_return_value): Error on IEEE Quad floats.
8293
8294 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8295 (alpha_extract_struct_value_address): Likewise.
8296 (alpha_store_return_value): Likewise.
8297 (alpha_store_struct_return): Remove.
8298 (alpha_gdbarch_init): Update hook registration to match.
8299
8300 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8301 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8302 macros where appropriate.
8303 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8304 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
8305
8306 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8307 for SP, GP; void_func_ptr for PC; non-language-specific types
8308 for all others.
8309 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
8310
8311 2003-06-02 Richard Henderson <rth@redhat.com>
8312
8313 * top.h (lim_at_start): Declare.
8314 * main.c (captured_main): Set it.
8315 * top.c (lim_at_start): Define.
8316 (command_loop): Use it instead of &environ.
8317 * event-top.c (command_handler): Likewise.
8318
8319 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8320
8321 * mipsnbsd-tdep.c: Update copyright years.
8322 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8323
8324 2003-06-01 Richard Henderson <rth@redhat.com>
8325
8326 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8327 (alpha-linux-tdep.o): Update dependencies.
8328 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8329 * alpha-mdebug-tdep.c: Remove unneeded includes.
8330
8331 2003-06-01 Richard Henderson <rth@redhat.com>
8332
8333 * alpha-tdep.c (alpha_register_reggroup_p): New.
8334 (alpha_gdbarch_init): Register it.
8335
8336 2003-06-02 Andrew Cagney <cagney@redhat.com>
8337
8338 * dwarfread.c: Eliminate "register"
8339 (decode_die_type): Eliminate assignment within "if".
8340 (struct_type, decode_array_element_type): Ditto.
8341 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8342 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8343 (decode_modified_type, completedieinfo): Ditto.
8344 * block.c: Eliminate "register".
8345 (blockvector_for_pc_sect): Eliminate assignment within "if".
8346 * cp-support.h (struct symbol): Opaque declaration.
8347 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8348
8349 2003-06-01 Richard Henderson <rth@redhat.com>
8350
8351 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8352 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
8353
8354 2003-06-01 Adam Fedor <fedor@gnu.org>
8355
8356 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8357 * gdbarch.[ch]: Regenerate.
8358 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8359 (hppa_gdbarch_init): Set it in the gdbarch vector.
8360 * i386-tdep.c (i386_fetch_pointer_argument): New
8361 (i386_gdbarch_init): Set it into gdbarch.
8362 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8363 (rs6000_gdbarch_init): Set it in gdbarch.
8364 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8365 (sparc_gdbarch_init): Set it in gdbarch.
8366
8367 2003-06-01 Andrew Cagney <cagney@redhat.com>
8368
8369 * defs.h (extract_address): Delete declaration.
8370 * findvar.c (extract_address): Delete function.
8371 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8372 extract_address with the inline equivalent,
8373 extract_unsigned_integer.
8374 (xstormy16_extract_struct_value_address): Ditto.
8375 (xstormy16_pointer_to_address): Ditto.
8376 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8377 * v850-tdep.c (v850_push_arguments): Ditto.
8378 (v850_extract_return_value): Ditto.
8379 (v850_extract_struct_value_address): Ditto.
8380 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8381 (sparcnbsd_get_longjmp_target_64): Ditto.
8382 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8383 (get_longjmp_target): Ditto.
8384 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8385 (sh64_extract_struct_value_address): Ditto.
8386 (sh_push_arguments): Ditto.
8387 (sh64_push_arguments): Ditto.
8388 * remote-vxsparc.c (vx_read_register): Ditto.
8389 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8390 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8391 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8392 * mipsv4-nat.c (get_longjmp_target): Ditto.
8393 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8394 * mips-nat.c (get_longjmp_target): Ditto.
8395 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8396 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8397 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8398 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8399 * irix5-nat.c (get_longjmp_target): Ditto.
8400 * irix4-nat.c (get_longjmp_target): Ditto.
8401 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8402 (ia64_push_arguments): Ditto.
8403 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8404 * h8300-tdep.c (h8300_push_arguments): Ditto.
8405 (h8300_store_return_value): Ditto.
8406 (h8300_extract_struct_value_address): Ditto.
8407 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8408 (frv_push_arguments): Ditto.
8409 * avr-tdep.c (avr_pointer_to_address): Ditto.
8410 (avr_push_arguments): Ditto.
8411 * arm-tdep.c (arm_push_dummy_call): Ditto.
8412 (arm_get_longjmp_target): Ditto.
8413 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8414 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8415 (alpha_get_longjmp_target): Ditto.
8416
8417 * solib-irix.c (extract_mips_address): Inline extract_address,
8418 replacing it with extract_signed_integer.
8419 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8420 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8421 (first_link_map_member, open_symbol_file_object): Ditto.
8422 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8423 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8424 (LM_NEXT, LM_NAME): Ditto.
8425
8426 2003-06-01 Richard Henderson <rth@redhat.com>
8427
8428 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8429 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8430 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8431 (alpha_cannot_store_register): Likewise.
8432 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8433 * alpha-nat.c (supply_gregset): Likewise.
8434 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
8435
8436 2003-06-01 Andrew Cagney <cagney@redhat.com>
8437
8438 * infcall.c (call_function_by_hand): Update comment on
8439 DEPRECATED_DUMMY_WRITE_SP.
8440
8441 * mips-tdep.c (mips_gdbarch_init): Do not set
8442 deprecated_dummy_write_sp.
8443 (mips_eabi_push_dummy_call): Set the SP register.
8444 (mips_o64_push_dummy_call): Set the SP register.
8445 (mips_o32_push_dummy_call): Set the SP register.
8446 (mips_n32n64_push_dummy_call): Set the SP register.
8447
8448 2003-06-01 Richard Henderson <rth@redhat.com>
8449
8450 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8451 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8452 (supply_gregset): Likewise.
8453 * alpha-tdep.c (alpha_store_return_value): Likewise.
8454 (alpha_get_longjmp_target): Likewise.
8455 (alpha_register_name): Constify array.
8456 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8457 deprecated_register_size, deprecated_register_bytes,
8458 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8459 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8460 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
8461
8462 2003-06-01 Richard Henderson <rth@redhat.com>
8463
8464 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8465 from arg_reg_buffer to regcache to avoid double conversion.
8466
8467 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8468
8469 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8470 SP_REGNUM.
8471 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8472 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8473
8474 2003-06-01 Richard Henderson <rth@redhat.com>
8475
8476 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8477 (decode_frame_entry): Set it. Skip FDE augmentation.
8478
8479 2003-06-01 Richard Henderson <rth@redhat.com>
8480
8481 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8482 not overlapping PC_REGNUM.
8483
8484 2003-06-01 Richard Henderson <rth@redhat.com>
8485
8486 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8487 alpha_push_arguments. Don't dump argument register data to
8488 the target stack. Fix float and 128-bit long double semantics.
8489 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8490 (alpha_fix_call_dummy): Remove.
8491 (alpha_call_dummy_words): Remove.
8492 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
8493
8494 2003-06-01 Richard Henderson <rth@redhat.com>
8495
8496 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8497
8498 2003-06-01 Andrew Cagney <cagney@redhat.com>
8499
8500 * mips-tdep.c (is_mips16_addr): New function.
8501 (make_mips16_addr, unmake_mips16_addr): New functions.
8502 (pc_is_mips16, mips_fetch_instruction): Use.
8503 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8504 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8505 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8506 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8507 TARGET_MIPS.
8508 * config/mips/tm-mips.h: Update copyright.
8509 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8510 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8511 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8512 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8513 (TM_PRINT_INSN_MACH): Delete.
8514 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8515
8516 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8517 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8518 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8519 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8520 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8521 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8522 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8523 mips*-*-riscos* and mips*-*-sysv* onto mips.
8524 * config/mips/mips64.mt: New file.
8525 * config/mips/mips.mt: New file.
8526 * config/mips/littlemips.mt: Delete file.
8527 * config/mips/decstation.mt: Delete file.
8528 * config/mips/vr4300el.mt: Delete file.
8529 * config/mips/vr5000el.mt: Delete file.
8530 * config/mips/vr5000.mt: Delete file.
8531 * config/mips/vr4100.mt: Delete file.
8532 * config/mips/vr4xxxel.mt: Delete file.
8533 * config/mips/vr4300.mt: Delete file.
8534 * config/mips/vr4xxx.mt: Delete file.
8535 * config/mips/bigmips.mt: Delete file.
8536 * config/mips/bigmips64.mt: Delete file.
8537 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8538 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8539 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8540 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8541 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8542 "tm-bigmips.h".
8543 * config/mips/tm-irix3.h: Ditto.
8544 * config/mips/tm-mipsv4.h: Ditto.
8545 * config/mips/tm-embed.h: Ditto.
8546 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8547 "tm-bigmips64.h".
8548 * config/mips/tm-vr5000el.h: Delete file.
8549 * config/mips/tm-tx39l.h: Delete file.
8550 * config/mips/tm-vr4300el.h: Delete file.
8551 * config/mips/tm-vr4xxxel.h: Delete file.
8552 * config/mips/tm-vr4300.h: Delete file.
8553 * config/mips/tm-vr4100.h: Delete file.
8554 * config/mips/tm-vr4xxx.h: Delete file.
8555 * config/mips/tm-vr5000.h: Delete file.
8556 * config/mips/tm-embedl64.h: Delete file.
8557 * config/mips/tm-embedl.h: Delete file.
8558 * config/mips/tm-embed64.h: Delete file.
8559 * config/mips/tm-bigmips64.h: Delete file.
8560 * config/mips/tm-bigmips.h: Delete file.
8561
8562 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8563
8564 Fix gdb/1216.
8565 * shnbsd-nat.c: Include "sh-tdep.h".
8566
8567 From Richard Henderson <rth@redhat.com>:
8568 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8569
8570 2003-05-31 Andrew Cagney <cagney@redhat.com>
8571
8572 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8573 forward declaration.
8574 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8575 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8576 (mips_find_saved_regs): Use set_reg_offset.
8577 (mips_frame_init_saved_regs): Delete function.
8578 (mips_pop_frame): Call mips_find_saved_regs instead of
8579 DEPRECATED_FRAME_INIT_SAVED_REGS.
8580
8581 2003-05-31 Andrew Cagney <cagney@redhat.com>
8582
8583 * mips-tdep.c (mips_gdbarch_init): Do not set
8584 deprecated_max_register_raw_size, register_virtual_size, and
8585 deprecated_max_register_virtual_size.
8586
8587 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8588
8589 * i386-tdep.c: Include "dwarf2-frame.h".
8590 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8591 * Makefile.in (i386-tdep.o): Update dependencies.
8592
8593 * dwarf2-frame.c, dwarf2-frame.h: New files.
8594 * Makefile.in (SFILES): Add dwarf2-frame.c.
8595 (dwarf2_frame_h): Define.
8596 (COMMON_OBS): Add dwarf2-frame.o.
8597 (dwarf2-frame.o): Add dependencies.
8598
8599 2003-05-31 Andreas Jaeger <aj@suse.de>
8600
8601 * x86-64-linux-nat.c: Fix comment.
8602
8603 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8604
8605 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8606 function signature.
8607
8608 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8609 have a sigcontext_addr handler.
8610 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8611 sigcontext_addr handler.
8612
8613 2003-05-31 Andrew Cagney <cagney@redhat.com>
8614
8615 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8616 (print_fp_register_row): Replace do_fp_register_row.
8617 (mips_print_fp_register): Add "file" and "frame" parameters.
8618 (mips_print_register): Add "file" and "frame" parameters.
8619 (mips_print_registers_info): Replace mips_do_registers_info.
8620 (mips_gdbarch_init): Set print_registers_info instead of
8621 deprecated_do_registers_info.
8622 (mips_read_fp_register_single): Add "frame" parameter.
8623 (mips_read_fp_register_double): Add "frame" parameter.
8624
8625 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8626
8627 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8628 Fixes a bug where GDB would print the wrong register names for
8629 targets without SSE.
8630
8631 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8632 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8633 registers.
8634
8635 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8636 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8637 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8638 TDEP->sc_sp_offset.
8639
8640 From Michal Ludvig <mludvig@suse.cz>:
8641 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8642 and `sc_num_regs'.
8643 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8644 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8645 I386_ST0_REGNUM): Move here from...
8646 * i386-tdep.c: ... here.
8647 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8648 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8649 registers if possible.
8650 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8651 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8652 Remove variables.
8653 (i386bsd_sc_reg_offset): New variable.
8654 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8655 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8656 TDEP->sc_sp_offset.
8657 (i386fbsd_sc_reg_offset): New variable.
8658 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8659 TDEP->sc_num_regs.
8660 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8661 variables.
8662 (i386fbsd4_sc_reg_offset): New variable.
8663 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8664 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8665 TDEP->sc_sp_offset.
8666 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8667 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8668 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8669 Remove variables.
8670 (i386nbsd_sc_reg_offset): New variable.
8671 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8672 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8673 TDEP->sc_sp_offset.
8674 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8675 Remove variables.
8676 (i386obsd_sc_reg_offset): New variable.
8677 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8678 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8679 TDEP->sc_sp_offset.
8680 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8681 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8682 for frame pointer offset in `struct sigcontext'.
8683
8684 2003-05-31 Andrew Cagney <cagney@redhat.com>
8685
8686 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8687 architecture methods call_dummy_words, sizeof_call_dummy_words,
8688 push_return_address, store_struct_return, and fix_call_dummy. Set
8689 push_dummy_call instead of deprecated_push_arguments.
8690 (mips_store_struct_return): Delete function.
8691 (mips_fix_call_dummy): Delete function.
8692 (mips_push_return_address): Delete function.
8693 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8694 RA_REGNUM and T9_REGNUM.
8695 (mips_n32n64_push_dummy_call): Ditto for
8696 mips_n32n64_push_arguments.
8697 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8698 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8699
8700 2003-05-31 Andrew Cagney <cagney@redhat.com>
8701
8702 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8703 "dummy_addr" to "bp_addr".
8704 * infcall.c (call_function_by_hand): Pass "funaddr" to
8705 gdbarch_push_dummy_call.
8706 * gdbarch.h, gdbarch.c: Re-generate.
8707 * i386-tdep.c (i386_push_dummy_call): Update.
8708 * arm-tdep.c (arm_push_dummy_call): Update.
8709 * d10v-tdep.c (d10v_push_dummy_call): Update.
8710
8711 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8712
8713 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8714 variable declarations.
8715 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8716 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8717 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8718 x86_64_init_frame_pc, x86_64_init_frame_pc,
8719 x86_64_function_has_prologue): Remove prototypes.
8720 (X86_64_NUM_GREGS): New define.
8721 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8722 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8723 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8724 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8725 XMM1_REGNUM): Remove defines.
8726 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8727 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8728 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8729 X86_64_XMM1_REGNUM): New defines.
8730 (struct x86_64_register_info): Renamed from `struct
8731 register_info'. Remove `size' member.
8732 (x86_64_register_info_table): Remove variable.
8733 (x86_64_register_info): New variable.
8734 (X86_64_NUM_REGS): New define.
8735 (X86_64_NUM_GREGS): Remove define.
8736 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8737 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8738 Remove variables.
8739 (x86_54_dwarf2_reg_to_regnum): Remove function.
8740 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8741 (x86_64_dwarf_reg_to_regnum): New function.
8742 (x86_64_register_name): Rewrite.
8743 (x86_64_register_raw_size): Remove function.
8744 (x86_64_register_byte_table): Remove variable.
8745 (x86_64_register_byte): Remove function.
8746 (x86_64_register_virtual_type): Remove function.
8747 (x86_64_register_type): New function.
8748 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8749 x86_64_register_convert_to_raw): Remove functions.
8750 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8751 (x86_64_use_struct_convention): Make static. Adjust for renamed
8752 defines.
8753 (x86_64_frame_init_saved_regs): Remove function.
8754 (x86_64_push_arguments): Make static. Change to accept a regcache
8755 as argument.
8756 (x86_64_store_return_value, x86_64_extract_return_value): Make
8757 static. Rewrite based on i386 counterparts.
8758 (x86_64_push_dummy_call): New function.
8759 (X86_64_NUM_SAVED_REGS): New define.
8760 (x86_64_register_number): Remove function.
8761 (x86_64_store_struct_return): Remove function.
8762 (x86_64_frameless_function_invocation,
8763 x86_64_function_has_prologue): Remove functions.
8764 (PROLOG_BUFSIZE): Remove define.
8765 (struct x86_64_frame_cache): New structure.
8766 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8767 x86_64_frame_cache, x86_64_frame_this_id,
8768 x86_64_frame_prev_register, x86_64_frame_p,
8769 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8770 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8771 functions.
8772 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8773 variables.
8774 (x86_64_skip_prologue): Rewrite in terms of
8775 x86_64_analyze_prologue.
8776 (x86_64_frame_base_address): New function.
8777 (x86_64_frame_base): New variable.
8778 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8779 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8780 set deprecated_fp_regnum, deprecated_register_size,
8781 deprecated_register_bytes, register_raw_size, register_byte,
8782 register_virtual_type, register_convertiable,
8783 register_convert_to_virtual, convert_to_raw,
8784 deprecated_get_saved_register, deprecated_target_read_fp,
8785 deprecated_push_arguments, deprecated_push_return_address,
8786 deprecated_pop_frame, deprecated_store_struct_return,
8787 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8788 frameless_function_invocation, deprecated_frame_saved_pc,
8789 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8790 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8791 deprecated_init_frame_pc and virtual_frame_pointer. Call
8792 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8793 and x86_64_frame_p. Call frame_base_set_default to register
8794 x86_64_frame_base.
8795 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8796 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8797 (_initialize_x86_64_tdep): Remove function.
8798 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8799 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8800 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8801 define.
8802 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8803 (x86_64_linux_sigcontext_addr): Rewrite.
8804 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8805 x86_64_linux_frame_saved_pc): Remove functions.
8806 (x86_64_linux_pc_in_sigtramp): Renamed from
8807 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8808 trampoline.
8809 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8810 Remove_functions.
8811 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8812 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8813 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8814 (x86_64_regmap): Rename to regmap.
8815 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8816 x86_64_num_gregs.
8817 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8818 x86_64_regmap.
8819 (x86_64_fxsave_offset): Remove function.
8820 (supply_fpregset): Simply call x86_64_supply_fxsave.
8821 (fill_fpregset): Simply call x86_64_fill_fxsave.
8822 (fetch_inferior_registers, store_inferior_registers): Avoid
8823 asignment in if-statement.
8824 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8825 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8826 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8827 (fetch_core_registers): Remove function.
8828 (linux_elf_core_fns): Remove.
8829 (offsetoff): Don't define.
8830 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8831 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8832 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8833 add core-regset.o.
8834 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8835 protection against multiple includes instead of NM_X86_64_h. Add
8836 various comments. Include "config/nm-linux.h". Don't include
8837 <signal.h>.
8838 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8839 GET_THREAD_SIGNALS): Remove defines.
8840 (x86_64_register_u_addr, kernel_u_size,
8841 lin_thread_get_thread_signals): Remove prototypes.
8842 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8843 [HAVE_LINK_H]: Don't include "solib.h".
8844 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8845 * config/i386/tm-x86-64linux.h: Fix comments.
8846 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8847 x86-64-tdep.o): Update dependencies.
8848
8849 2003-05-30 Andrew Cagney <cagney@redhat.com>
8850
8851 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8852 Change parameter type to a "struct regcache *".
8853
8854 * gdbarch.sh: Regardless of the multi-arch level, always define
8855 the macro when not already defined.
8856 * gdbarch.h, gdbarch.c: Re-generate.
8857
8858 2003-05-30 Richard Henderson <rth@redhat.com>
8859
8860 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8861 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8862 (alpha_mdebug_frame_this_id): Likewise.
8863 (alpha_mdebug_frame_prev_register): Likewise.
8864 (alpha_mdebug_frame_base_address): Likewise.
8865 (alpha_mdebug_frame_locals_address): Likewise.
8866 (alpha_mdebug_frame_args_address): Likewise.
8867 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8868 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8869 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8870 loop increment.
8871 (alpha_heuristic_frame_this_id): Make static.
8872 (alpha_heuristic_frame_prev_register): Likewise.
8873 (alpha_heuristic_frame_base_address): Likewise.
8874 * alpha-tdep.h: Update.
8875
8876 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8877
8878 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8879 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8880 defenitions.
8881 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8882 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8883 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8884 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8885 I386_ST0_REGNUM): New defines.
8886 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8887 codestream_get): Remove define.
8888 (codestream_next_addr, condestream_addr, condestream_buf,
8889 codestream_off, codestream_cnt): Remove variables.
8890 (codestream_fill, codestream_seek, codestream_read): Remove
8891 functions.
8892 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8893 functionality.
8894 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8895 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8896 i386_frame_saved_pc, i386_saved_pc_after_call,
8897 i386_frame_num_args, i386_frame_init_saved_regs,
8898 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8899 i386_push_arguments): Remove functions.
8900 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8901 functionality. Use i386_analyze_prologue instead of
8902 i386_get_frame_setup.
8903 (I386_NUM_SAVED_REGS): New define.
8904 (struct i386_frame_cache): New structure.
8905 (i386_alloc_frame_cache, i386_analyze_struct_return,
8906 i386_skip_probe, i386_analyze_frame_setup,
8907 i386_analyze_register_saves, i386_analyze_prologue,
8908 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8909 i386_frame_prev_register, i386_sigtramp_frame_cache,
8910 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8911 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8912 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8913 New functions.
8914 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8915 New variables.
8916 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8917 I386_EAX_REGNUM and I386_EDX_REGNUM.
8918 (i386_extract_return_value, i386_store_return_value): Use
8919 I386_ST0_REGNUM where appropriate.
8920 (i386_extract_struct_value_address): Rewrite to use extract_address.
8921 (i386_svr4_pc_in_sigtramp): Add comment.
8922 (i386_svr4_sigcontext_addr): Rewrite.
8923 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8924 TDEP->sc_sp_offset.
8925 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8926 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8927 of new defines. Set push_dummy_call, don't set
8928 deprecated_push_arguments, deprecated_push_return_address,
8929 deprecated_pop_frame. Don't set parm_boundary. Don't set
8930 deprecated_frame_chain, deprecated_frame_saved_pc,
8931 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8932 save_dummy_frame_tos, unwind_pc. Call
8933 frame_unwind_append_predicate and frame_base_set_default. Don't
8934 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8935 Don't set frameless_function_invocation. Don't set
8936 deprecated_register_bytes, deprecated_register_size,
8937 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8938 * i386-linux-tdep.c: Fix formatting in some comments.
8939 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8940 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8941 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8942 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8943 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8944 redundant parentheses.
8945 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8946 (i386_linux_sigcontext_addr): Use it. Rewrite.
8947 (find_minsym_and_objfile): Change name of second argument.
8948 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8949 changed. Use frame_pc_unwind instead of
8950 DEPRECATED_SAVED_PC_AFTER_CALL.
8951 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8952 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8953 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8954 unwinder.
8955 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8956 "dummy-frame.h".
8957 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8958 (_initialize_i386_cygwin_tdep): New prototype.
8959 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8960 deprecated_frame_chain_valid.
8961 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8962 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8963 Rely on the SVR4 defaults.
8964 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8965 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8966
8967 2003-05-30 Andrew Cagney <cagney@redhat.com>
8968
8969 * infcall.c (call_function_by_hand): Always call
8970 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8971
8972 2003-05-30 Richard Henderson <rth@redhat.com>
8973
8974 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8975 increment.
8976
8977 2003-05-29 Jim Blandy <jimb@redhat.com>
8978
8979 Use gdbarch methods for solib stuff on PowerPC Linux.
8980 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8981 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8982 show through.
8983 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8984 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8985 giving the same effect as the #definitions above.
8986
8987 2003-05-29 Adam Fedor <fedor@gnu.org>
8988
8989 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8990 (find_implementation_from_class): Replace it with the standard
8991 case i.e. do nothing.
8992
8993 2003-05-29 Richard Henderson <rth@redhat.com>
8994
8995 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8996 (alpha_linux_sigtramp_offset): Use it. Make static.
8997 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8998 update for new frame model.
8999 * alpha-mdebug-tdep.c: New file.
9000 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
9001 (alpha_osf1_init_abi): Install it.
9002 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
9003 (linked_proc_desc_table): Remove.
9004 (alpha_frame_past_sigtramp_frame): Remove.
9005 (alpha_dynamic_sigtramp_offset): Remove.
9006 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
9007 (alpha_proc_desc_is_dyn_sigtramp): Remove.
9008 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
9009 (push_sigtramp_desc): Remove.
9010 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
9011 (alpha_cannot_store_register): Likewise.
9012 (alpha_sigcontext_addr): Remove.
9013 (alpha_find_saved_regs): Remove.
9014 (alpha_frame_init_saved_regs): Remove.
9015 (alpha_init_frame_pc_first): Remove.
9016 (read_next_frame_reg): Remove.
9017 (alpha_frame_saved_pc): Remove.
9018 (alpha_saved_pc_after_call): Remove.
9019 (temp_proc_desc, temp_saved_regs): Remove.
9020 (alpha_about_to_return): Remove.
9021 (cached_proc_desc): Remove.
9022 (alpha_frame_chain): Remove.
9023 (alpha_print_extra_frame_info): Remove.
9024 (alpha_init_extra_frame_info): Remove.
9025 (alpha_frame_locals_address): Remove.
9026 (alpha_frame_args_address): Remove.
9027 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
9028 (alpha_push_dummy_frame): Remove.
9029 (alpha_pop_frame): Remove.
9030 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
9031 (alpha_read_insn): New.
9032 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
9033 for different insn encodings.
9034 (alpha_in_lenient_prologue): Remove.
9035 (struct alpha_sigtramp_unwind_cache): New.
9036 (alpha_sigtramp_frame_unwind_cache): New.
9037 (alpha_sigtramp_register_address): New.
9038 (alpha_sigtramp_frame_this_id): New.
9039 (alpha_sigtramp_frame_prev_register): New.
9040 (alpha_sigtramp_frame_unwind): New.
9041 (alpha_sigtramp_frame_p): New.
9042 (struct alpha_heuristic_unwind_cache): New.
9043 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
9044 don't count nop insns that occur between functions.
9045 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
9046 heuristic_proc_desc, but without the mdebug wrapping.
9047 (alpha_heuristic_frame_this_id): New.
9048 (alpha_heuristic_frame_prev_register): New.
9049 (alpha_heuristic_frame_unwind): New.
9050 (alpha_heuristic_frame_p): New.
9051 (alpha_heuristic_frame_base_address): New.
9052 (alpha_heuristic_frame_base): New.
9053 (alpha_unwind_dummy_id): New.
9054 (alpha_unwind_pc): New.
9055 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
9056 frame related deprecated initializations; install replacements.
9057 (alpha_dump_tdep): Remove.
9058 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
9059 (alpha_read_insn, alpha_after_prologue,
9060 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
9061 alpha_heuristic_frame_prev_register,
9062 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
9063 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
9064 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
9065 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
9066
9067 2003-05-29 Andrew Cagney <cagney@redhat.com>
9068
9069 * gdb_assert.h (gdb_assert_fail): Provide different definitions
9070 dependant on the availability of ASSERT_FUNCTION.
9071 (ASSERT_FUNCTION): Do not define when there is no function name.
9072
9073 2003-05-29 Kevin Buettner <kevinb@redhat.com>
9074
9075 From Jimi X <jimix@watson.ibm.com>:
9076 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
9077
9078 2003-05-28 Jim Blandy <jimb@redhat.com>
9079
9080 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
9081 argument to ptrace to int; the system headers should give it the
9082 right type, and pointers don't fit in ints on powerpc64-*-*.
9083
9084 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
9085
9086 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
9087 DW_TAG_catch_block.
9088
9089 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
9090
9091 * stabsread.c (dbx_lookup_type): Make static.
9092 (read_type): Ditto.
9093 (add_undefined_type): Ditto.
9094 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
9095 not export.
9096
9097 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
9098
9099 * hpread.c (hpread_has_name): Make static.
9100 (hpread_psymtab_to_symtab): Ditto.
9101 (file_exists): Ditto.
9102 (hpread_call_pxdb): Ditto.
9103 (hpread_pxdb_needed): Ditto.
9104 (hpread_quick_traverse): Ditto.
9105 (hpread_get_header): Ditto.
9106 (hpread_get_lntt): Ditto.
9107 (hpread_get_slt): Ditto.
9108 (class_of): Ditto.
9109
9110 2003-05-25 Andreas Schwab <schwab@suse.de>
9111
9112 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
9113 stack_align and deprecated_extra_stack_alignment_needed.
9114 (m68k_stack_align): Delete.
9115
9116 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
9117 (m68k_register_virtual_size): Likewise.
9118 (altos_skip_prologue): Remove obsolete function.
9119 (isi_frame_num_args): Likewise.
9120 (news_frame_num_args): Likewise.
9121 (m68k_fix_call_dummy): Make static.
9122 (m68k_push_dummy_frame): Likewise.
9123 (m68k_pop_frame): Likewise.
9124 (m68k_skip_prologue): Likewise.
9125 (m68k_frame_init_saved_regs): Likewise.
9126 (m68k_saved_pc_after_call): Likewise.
9127 (m68k_get_longjmp_target): Make multi-arch.
9128 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
9129 structure. Register m68k_get_longjmp_target if enabled.
9130 * m68k-tdep.h (struct gdbarch_tdep): Define.
9131 * config/m68k/tm-m68k.h: Don't include "regcache.h".
9132
9133 * Makefile.in (config.status): Also depend on configure.tgt
9134 and configure.host.
9135 (m68klinux-tdep.o): Update dependencies.
9136 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
9137 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
9138 (M68K_LINUX_JB_PC): Define.
9139 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
9140 and take additional parameter.
9141 (m68k_linux_sigtramp_saved_pc): Update.
9142 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
9143 m68k_linux_pc_in_sigtramp, in_plt_section,
9144 find_solib_trampoline_target.
9145 * config/m68k/tm-linux.h: Don't include any tm headers.
9146 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
9147 (JB_ELEMENT_SIZE): Likewise.
9148 (JB_PC): Likewise.
9149 (GET_LONGJMP_TARGET): Likewise.
9150 (IN_SIGTRAMP): Likewise.
9151 (SVR4_SHARED_LIBS): Define this and include "solib.h".
9152
9153 2003-05-25 Mark Kettenis <kettenis@gnu.org>
9154
9155 * sparc-tdep.c (sparc32_do_push_arguments): New function.
9156 (sparc32_push_arguments): Re-implement by calling
9157 sparc32_do_push_arguments.
9158
9159 2003-05-25 Mark Kettenis <kettenis@gnu.org>
9160
9161 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
9162 SPARC_O1_REGNUM): New defines.
9163 (sparc32_extract_return_value): Rewrite to operate on a regcache.
9164 (sparc32_store_return_value): New function.
9165 (sparc_extract_struct_value_address): Rewrite to operate on a
9166 regcache.
9167 (sparc_gdbarch_init): Don't set
9168 deprecated_extract_struct_value_address. Set
9169 extract_struct_value_address instead. Don't set
9170 deprecated_extract_return_value and deprecated_store_return_value
9171 for 32-bit targets. Set extract_return_value and
9172 store_return_value instead.
9173 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
9174 DEPRECATED_EXTRACT_RETURN_VALUE,
9175 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9176 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9177 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9178 (sparc_store_return_value): Remove prototype.
9179 (sparc32_store_return_value): New prototype.
9180 (sparc32_extract_return_value, sparc_extract_struct_value_address):
9181 Adjust prototypes.
9182
9183 2003-05-24 Mark Kettenis <kettenis@gnu.org>
9184
9185 * sparcnbsd-tdep.c: Include "gdb_string.h".
9186
9187 2003-05-23 Andrew Cagney <cagney@redhat.com>
9188
9189 * p-valprint.c (pascal_val_print): Replace extract_address with
9190 the inline equivalent extract_unsigned_integer.
9191 * jv-valprint.c (java_value_print): Ditto.
9192 * ada-valprint.c (ada_val_print_1): Ditto.
9193 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9194
9195 2003-05-23 Theodore A. Roth <troth@openavr.org>
9196
9197 * blockframe.c (frameless_look_for_prologue): Remove unused
9198 after_prologue variable.
9199
9200 2003-05-23 Mark Kettenis <kettenis@gnu.org>
9201
9202 * blockframe.c (get_pc_function_start): Rewrite to avoid
9203 asignments in if-statements.
9204
9205 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
9206
9207 Committed by Elena Zannoni <ezannoni@redhat.com>.
9208 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
9209 files, don't relocate absolute symbols (and do use mst_abs).
9210
9211 2003-05-23 Andrew Cagney <cagney@redhat.com>
9212
9213 * objc-lang.c: Include "gdb_assert.h".
9214 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9215 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9216 (gdb_check, gdb_check_fatal): Delete functions.
9217 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9218 gdb_assert.
9219 (parse_selector, parse_method, find_methods, find_imps): Ditto.
9220 * Makefile.in (objc-lang.o): Update dependencies.
9221
9222 2003-05-22 Ian Lance Taylor <ian@airs.com>
9223
9224 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9225 with fprintf_filtered, not fprintf_unfiltered.
9226
9227 2003-05-22 Andrew Cagney <cagney@redhat.com>
9228
9229 * stack.c (frame_info): Inline extract_address, replacing it with
9230 extract_unsigned_integer.
9231 * findvar.c (unsigned_pointer_to_address): Ditto.
9232 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9233 * dwarf2expr.c (dwarf2_read_address): Ditto.
9234 * frame.c (frame_pc_unwind): Update comment.
9235 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9236
9237 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
9238
9239 * infptrace.c (detach): Call print_sys_errmsg rather than
9240 perror_with_name to issue warning message when errno is non-zero
9241 after calling ptrace detach.
9242
9243 2003-05-21 J. Brobecker <brobecker@gnat.com>
9244
9245 * config/pa/tm-hppa.h: Delete some unused macros. Move some
9246 macro definitions from here...
9247 * hppa-tdep.c: ...to there.
9248
9249 2003-05-20 Kevin Buettner <kevinb@redhat.com>
9250
9251 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9252 register_ptrace_addr(). Fix all callers.
9253
9254 2003-05-21 Andreas Schwab <schwab@suse.de>
9255
9256 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9257 dependencies.
9258 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9259 end.
9260 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9261 (_initialize_m68k_linux_tdep): New function.
9262 (m68k_linux_frame_saved_pc): Make static.
9263 (m68k_linux_extract_return_value): Likewise.
9264 (m68k_linux_store_return_value): Likewise.
9265 (m68k_linux_extract_struct_value_address): Likewise.
9266 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9267 Remove.
9268 (DEPRECATED_STORE_RETURN_VALUE): Remove.
9269 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9270 (DEPRECATED_FRAME_SAVED_PC): Remove.
9271
9272 2003-05-20 Kris Warkentin <kewarken@qnx.com>
9273
9274 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9275 regset numbering rather than our own.
9276
9277 2003-05-19 David Carlton <carlton@bactrian.org>
9278
9279 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9280
9281 2003-05-19 David Carlton <carlton@bactrian.org>
9282
9283 Partial fix for PR c++/827.
9284 * cp-support.h: Include symtab.h.
9285 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9286 * cp-namespace.c: Update contributors.
9287 (cp_lookup_symbol_nonlocal): New.
9288 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9289 (lookup_symbol_file): Ditto.
9290 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9291 * block.h: Declare block_scope, block_using, block_global_block.
9292 * block.c (block_scope): New.
9293 (block_using, block_global_block): Ditto.
9294 * Makefile.in (cp_support_h): Depend on symtab_h.
9295 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9296
9297 2003-05-19 David Carlton <carlton@bactrian.org>
9298
9299 * language.h (struct language_defn): Add 'la_value_of_this'
9300 and 'la_lookup_symbol_nonlocal' members.
9301 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9302 lookup_symbol_static, lookup_symbol_global,
9303 lookup_symbol_aux_block.
9304 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9305 if we should search fields of this and how to do static/global
9306 lookup.
9307 (lookup_symbol_aux_block): Make extern.
9308 (basic_lookup_symbol_nonlocal): New.
9309 (lookup_symbol_static, lookup_symbol_global): Ditto.
9310 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9311 'la_lookup_symbol_nonlocal' members.
9312 * c-lang.c (c_language_defn, cplus_language_defn)
9313 (asm_language_defn, minimal_language_defn): Ditto.
9314 * jv-lang.c (java_language_defn): Ditto.
9315 * language.c (unknown_language_defn, auto_language_defn)
9316 (local_language_defn): Ditto.
9317 * m2-lang.c (m2_language_defn): Ditto.
9318 * objc-lang.c (objc_language_defn): Ditto.
9319 * scm-lang.c (scm_language_defn): Ditto.
9320 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9321 * p-lang.c (pascal_language_defn): Ditto for both.
9322 * Makefile.in (f-lang.o): Depend on value_h.
9323 (p-lang.o): Ditto.
9324
9325 2003-05-19 David Carlton <carlton@bactrian.org>
9326
9327 * block.h: Declare block_static_block.
9328 * block.c (block_static_block): New.
9329 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9330 lookup_symbol_aux_local, calling block_static_block instead.
9331 (lookup_symbol_aux_local): Delete 'static_block' argument.
9332
9333 2003-05-19 David Carlton <carlton@bactrian.org>
9334
9335 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9336
9337 2003-05-19 Michal Ludvig <mludvig@suse.cz>
9338
9339 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9340 register numbers mapping.
9341
9342 2003-05-18 Adam Fedor <fedor@gnu.org>
9343
9344 * symtab.c (completion_list_objc_symbol): New function.
9345 (make_symbol_completion_list): Use it to add ObjC symbols
9346 when looking though the list.
9347 (language_search_unquoted_string): New function.
9348 (make_file_symbol_completion_list): Use it.
9349
9350 2003-05-18 Andreas Schwab <schwab@suse.de>
9351
9352 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9353 dependencies.
9354 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9355 as m68k_linux_extract_return_value.
9356 (DEPRECATED_STORE_RETURN_VALUE): Define as
9357 m68k_linux_store_return_value.
9358 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9359 m68k_linux_extract_struct_value_address.
9360 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9361 get_next_frame, get_frame_base, get_frame_pc.
9362 (m68k_linux_frame_saved_pc): Use get_frame_base.
9363 (m68k_linux_extract_return_value): New function.
9364 (m68k_linux_store_return_value): New function.
9365 (m68k_linux_extract_struct_value_address): New function.
9366 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9367
9368 * c-exp.y (typebase): Remove duplicate occurence of
9369 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
9370 of lookup_signed_typename.
9371
9372 2003-05-18 Mark Kettenis <kettenis@gnu.org>
9373
9374 * dwarf2loc.c (find_location_expression): Change type of second
9375 argument to `size_t *'.
9376 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9377 for size variable.
9378
9379 2003-05-18 David Carlton <carlton@bactrian.org>
9380
9381 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9382 'linkage_name'. Add comment.
9383 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9384 'linkage_name'.
9385 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9386 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9387 (lookup_block_symbol): Ditto.
9388
9389 2003-05-16 Andrew Cagney <cagney@redhat.com>
9390
9391 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9392 * gdbarch.h, gdbarch.c: Re-generate.
9393 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9394 * TODO (REGISTER_BYTES): Delete reference.
9395 * alpha-tdep.c (alpha_gdbarch_init): Update.
9396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9397 * x86-64-tdep.c (x86_64_init_abi): Update.
9398 * vax-tdep.c (vax_gdbarch_init): Update.
9399 * v850-tdep.c (v850_gdbarch_init): Update.
9400 * sparc-tdep.c (sparc_gdbarch_init): Update.
9401 * sh-tdep.c (sh_gdbarch_init): Update.
9402 * s390-tdep.c (s390_gdbarch_init): Update.
9403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9404 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9405 (ns32k_gdbarch_init_32382): Update.
9406 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9407 * mcore-tdep.c (mcore_gdbarch_init): Update.
9408 * m68k-tdep.c (m68k_gdbarch_init): Update.
9409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9410 * ia64-tdep.c (ia64_gdbarch_init): Update.
9411 * i386-tdep.c (i386_gdbarch_init): Update.
9412 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9413 * hppa-tdep.c (hppa_gdbarch_init): Update.
9414 * h8300-tdep.c (h8300_gdbarch_init): Update.
9415 * frv-tdep.c (frv_gdbarch_init): Update.
9416 * cris-tdep.c (cris_gdbarch_init): Update.
9417 * avr-tdep.c (avr_gdbarch_init): Update.
9418 * arm-tdep.c (arm_gdbarch_init): Update.
9419 * sparc-tdep.c (sparc_pop_frame): Update.
9420 * rs6000-tdep.c (rs6000_pop_frame): Update.
9421 * remote.c (init_remote_state): Update.
9422 (remote_prepare_to_store): Update.
9423 * remote-vx.c (vx_prepare_to_store): Update.
9424 * remote-sds.c (sds_fetch_registers): Update.
9425 (sds_prepare_to_store): Update.
9426 * remote-array.c: Update.
9427 * regcache.c (init_legacy_regcache_descr): Update.
9428 (init_regcache_descr): Update.
9429 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9430 (mips_o64_extract_return_value): Update.
9431 * irix5-nat.c (fetch_core_registers): Update.
9432 * irix4-nat.c (fetch_core_registers): Update.
9433 * i386-tdep.h: Update.
9434 * hppa-tdep.c (pa_do_registers_info): Update.
9435 (pa_do_strcat_registers_info): Update.
9436 * cris-tdep.c (cris_register_bytes_ok): Update.
9437 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9438 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9439 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9440 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9441 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9442 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9443 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9444 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9445 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9446 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9447 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9448 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9449 (REGISTER_BYTES_OK): Update.
9450 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9451 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9452
9453 2003-05-16 Ian Lance Taylor <ian@airs.com>
9454
9455 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9456 (vax_print_insn, print_insn_arg): Remove static functions.
9457 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9458 print_insn_vax from opcodes library.
9459 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9460
9461 2003-05-15 Andrew Cagney <cagney@redhat.com>
9462
9463 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9464 * target.h (memory_breakpoint_from_pc): Delete declaration.
9465 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9466 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9467 * monitor.c (monitor_insert_breakpoint): Use
9468 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9469 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9470 * gdbarch.h, gdbarch.c: Re-generate.
9471 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9472 (sparc_gdbarch_init): Set breakpoint_from_pc to
9473 sparc_breakpoint_from_pc.
9474 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9475 (BREAKPOINT_FROM_PC): Define.
9476 (sparc_breakpoint_from_pc): Declare.
9477 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9478 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9479 (BREAKPOINT_FROM_PC): Define.
9480 (BREAKPOINT): Delete macro.
9481 * target.h: Update comment.
9482 * s390-tdep.c (s390_gdbarch_init): Update comments.
9483 * remote.c: Update comments.
9484 * remote-mips.c: Update comments.
9485 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9486 * mem-break.c: Update comment.
9487 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9488 (ia64_memory_insert_breakpoint): Update.
9489 * config/sparc/tm-sparc.h: Update comment.
9490 * config/pa/tm-hppa64.h: Update comment.
9491 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9492 (rs6000_breakpoint_from_pc): Update.
9493 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9494 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9495 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9496 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9497 (mips_breakpoint_from_pc): Update.
9498 (mips_dump_tdep): Update.
9499
9500 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9501 * minsyms.c (lookup_minimal_symbol): Inline
9502 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9503
9504 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9505 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9506 * p-lang.c (pascal_printstr): Ditto.
9507 * objc-lang.c (objc_printstr): Ditto.
9508 * m2-lang.c (m2_printstr): Ditto.
9509 * jv-valprint.c (java_print_value_fields): Ditto.
9510 * f-lang.c (f_printstr): Ditto.
9511 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9512 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9513 for repeat_count_threshold.
9514 * Makefile.in (cp-valprint.o): Update dependencies.
9515
9516 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
9517
9518 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9519 (examine_prologue): Support looking through leaf functions, knowing
9520 they start with mov r2,r12. Support skipping over indirect stores
9521 of the input registers. Upon hitting a non-nop branch instruction
9522 or predicated instruction, bail out by setting lim_pc to the current
9523 pc value in the loop. At the end, if the lim_pc value is still
9524 beyond our calculated value and we have trust_limit set,
9525 use the lim_pc value.
9526
9527 2003-05-15 Andrew Cagney <cagney@redhat.com>
9528
9529 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9530 generic_find_dummy_frame.
9531 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9532 (deprecated_generic_find_dummy_frame): Update.
9533 (deprecated_read_register_dummy): Update.
9534 * frame.c (deprecated_generic_get_saved_register): Update.
9535
9536 2003-05-15 Theodore A. Roth <troth@openavr.org>
9537
9538 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9539 (avr_gdbarch_init): Set breakpoint_from_pc method.
9540
9541 2003-05-15 Andrew Cagney <cagney@redhat.com>
9542
9543 * regcache.c (build_regcache): Set deprecated_register_valid
9544 directly.
9545 (deprecated_grub_regcache_for_register_valid): Delete function.
9546 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9547 declaration.
9548
9549 2003-05-15 David Carlton <carlton@bactrian.org>
9550
9551 Committed by Elena Zannoni <ezannoni@redhat.com>
9552 * symtab.c (lookup_symbol_aux): Delete calls to
9553 lookup_symbol_aux_minsyms.
9554 (lookup_symbol_aux_minsyms): Comment out function and
9555 prototype. Delete lookup by mangled name.
9556
9557 2003-05-14 Kevin Buettner <kevinb@redhat.com>
9558
9559 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9560 correctly indicate an empty stack and ``stack_allocated'' to the
9561 indicate the number of elements initially allocated.
9562 (dwarf_expr_grow_stack): Simplify method for computing new
9563 stack size. Don't loop infinitely if ``stack_len'' is zero.
9564 (execute_stack_op): Move ``ctx->in_reg'' initialization
9565 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9566 be used in conjuction with DW_OP_piece. Revise error message
9567 accordingly.
9568
9569 2003-05-14 Theodore A. Roth <troth@openavr.org>
9570
9571 * MAINTAINERS: Update my email address.
9572 * avr-tdep.c: Ditto.
9573
9574 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
9575
9576 * symtab.h (enum domain_enum): Rename from namespace_enum.
9577 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9578 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9579 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9580 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9581 TYPES_NAMESPACE, METHODS_NAMESPACE.
9582 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9583 (struct symbol, struct partial_symbol): Rename field
9584 'namespace_enum namespace' to 'domain_enum domain'.
9585 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9586 Delete old define kludge for namespace.
9587
9588 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9589 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9590 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9591 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9592 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9593 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9594 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9595 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9596 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9597 occurrences of the above.
9598
9599 2003-05-14 Ian Lance Taylor <ian@airs.com>
9600
9601 * Makefile.in (install-only): Use $(SHELL) when running
9602 mkinstalldirs.
9603
9604 2003-05-13 Ian Lance Taylor <ian@airs.com>
9605
9606 * MAINTAINERS (write after approval): Add myself.
9607
9608 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9609 second and third arguments.
9610 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9611 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9612
9613 2003-05-13 Andrew Cagney <cagney@redhat.com>
9614
9615 * defs.h (store_address): Delete declaration.
9616 findvar.c (store_address): Delete function.
9617 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9618 store_unsigned_integer.
9619 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9620 * v850-tdep.c (v850_push_arguments): Ditto.
9621 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9622 * sh-tdep.c (sh64_get_saved_register): Ditto.
9623 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9624 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9625 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9626 (mips_get_saved_register): Ditto.
9627 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9628 (find_func_descr, ia64_push_arguments): Ditto.
9629 * i386-tdep.c (i386_push_arguments): Ditto.
9630 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9631 * frv-tdep.c (frv_push_arguments): Ditto.
9632 * frame.c (legacy_saved_regs_prev_register): Ditto.
9633 (deprecated_generic_get_saved_register): Ditto.
9634 * findvar.c (unsigned_address_to_pointer): Ditto.
9635 * dwarf2read.c (dwarf2_const_value): Ditto.
9636 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9637 * alpha-tdep.c (alpha_push_arguments): Ditto.
9638
9639 2003-05-12 J. Brobecker <brobecker@gnat.com>
9640
9641 * NEWS: Mention that the hppa-hpux port has been partially
9642 multiarched (32bit ABIT only, so far).
9643
9644 2003-05-11 Andrew Cagney <cagney@redhat.com>
9645
9646 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9647 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9648 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9649 sim/testsuite/sim/arm/misaligned2.ms, and
9650 sim/testsuite/sim/arm/misaligned3.ms.
9651 * disasm.h (struct ui_file): Add opaque struct declaration.
9652 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9653 * frame.h (struct ui_file): Ditto.
9654
9655 2003-05-11 Mark Kettenis <kettenis@gnu.org>
9656
9657 * value.h: Pretty print.
9658
9659 2003-05-10 Mark Kettenis <kettenis@gnu.org>
9660
9661 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9662
9663 2003-05-08 Andrew Cagney <cagney@redhat.com>
9664
9665 * regcache.h (max_register_size): Delete declaration.
9666 * regcache.c (max_register_size): Delete function.
9667 (struct regcache_descr): Delete field "max_register_size".
9668 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9669 registers fit in MAX_REGISTER_SIZE.
9670 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9671 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9672 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9673 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9674 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9675 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9676 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9677 * dve3900-rom.c, hppa-tdep.c: Ditto.
9678
9679 2003-05-08 David Carlton <carlton@math.stanford.edu>
9680
9681 * valops.c (push_word): Fix typo.
9682
9683 2003-05-08 Andrew Cagney <cagney@redhat.com>
9684
9685 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9686 * gdbarch.h: Re-generate.
9687 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9688 (legacy_max_register_raw_size): Delete declaration.
9689 * regcache.c (legacy_max_register_raw_size): Delete function.
9690 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9691 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9692 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9693 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9694 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9695 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9696 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9697 * findvar.c, dwarf2cfi.c: Ditto.
9698
9699 2003-05-08 Andrew Cagney <cagney@redhat.com>
9700
9701 * mips-tdep.c (read_signed_register): New function, moved to here
9702 from "regcache.c".
9703 (read_signed_register_pid): Ditto.
9704 * regcache.c (read_signed_register_pid): Delete function, moved to
9705 "mips-tdep.c".
9706 (read_signed_register): Ditto.
9707 * regcache.h (read_signed_register): Delete declaration.
9708 (read_signed_register_pid): Delete declaration.
9709
9710 2003-05-08 Andrew Cagney <cagney@redhat.com>
9711
9712 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9713 * gdbarch.h: Re-generate.
9714 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9715 (legacy_max_register_virtual_size): Delete declaration.
9716 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9717 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9718 * tracepoint.c (memrange_sortmerge): Ditto.
9719 * sparc-tdep.c (sparc_print_registers): Ditto.
9720 * regcache.c (legacy_max_register_virtual_size): Delete function.
9721
9722 2002-05-08 J. Brobecker <brobecker@gnat.com>
9723
9724 * fork-child.c (escape_bang_in_quoted_argument): New function.
9725 (fork_inferior): Escape '!' characters in quoted arguments
9726 only when needed.
9727
9728 2003-05-08 J. Brobecker <brobecker@gnat.com>
9729
9730 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9731 the language of the CU is not currently supported by GDB.
9732
9733 2003-05-08 J. Brobecker <brobecker@gnat.com>
9734
9735 * defs.h (language): Add language_minimal enum value.
9736 * c-lang.c (minimal_language_defn): New language definition.
9737 (_initialize_c_language): Add the new minimal language to the list
9738 of languages known to GDB.
9739
9740 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9741
9742 * frame.c (get_frame_type): Don't attempt to lazily initialize
9743 frame's unwinder for legacy frames.
9744
9745 2003-05-07 Andrew Cagney <cagney@redhat.com>
9746
9747 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9748 and "regcache" parameters.
9749 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9750
9751 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9752
9753 * dwarf2read.c (dwarf_decode_lines): Only use output of
9754 check_cu_functions() when calling record_line(). Do not update
9755 the current address.
9756
9757 2003-05-07 Andrew Cagney <cagney@redhat.com>
9758
9759 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9760 code.
9761
9762 2003-05-07 Jim Blandy <jimb@redhat.com>
9763
9764 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9765 'maint info symtabs' and 'maint info psymtabs'.
9766 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9767 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9768 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9769 Declarations updated.
9770 * maint.c (maintenance_list_command): Delete.
9771 (_initialize_maint_cmds): Update calls to add_cmd.
9772 * gdbcmd.h (maintenancelistlist): Delete declaration.
9773 * cli/cli-cmds.c (maintenancelistlist): Delete.
9774 (init_cmd_lists): Don't initialize it.
9775 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9776
9777 2003-05-07 Andrew Cagney <cagney@redhat.com>
9778
9779 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9780 "regcache".
9781 (d10v_print_registers_info): Update.
9782 (d10v_dmap_register, d10v_imap_register): Delete functions.
9783 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9784 and "imap_register".
9785 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9786 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9787 * arch-utils.c (generic_remote_translate_xfer_address): Add
9788 "regcache" and "gdbarch" parameters.
9789 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9790 parameter. Change class to multi-arch.
9791 * gdbarch.h, gdbarch.c: Re-generate.
9792 * remote.c (remote_xfer_memory): Use
9793 gdbarch_remote_translate_xfer_address.
9794
9795 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9796
9797 * infrun.c (prev_pc): Move declaration ahead of proceed().
9798 (proceed): Refresh prev_pc value before resuming.
9799 (stop_stepping): Remove code to refresh prev_pc.
9800
9801 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9802
9803 * nto-tdep.c: Removed stray comment.
9804
9805 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9806
9807 * i386-nto-tdep.c: Fix old K&R function definitions.
9808 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9809 Also change add_show_from_set() call to add_setshow_cmd().
9810 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9811
9812 2003-05-05 Andrew Cagney <cagney@redhat.com>
9813
9814 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9815 (fprint_dummy_frames): New function.
9816 (maintenance_print_dummy_frames): New function.
9817 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9818 * frame.c (fprint_frame_id): Make global.
9819 * frame.h (fprint_frame_id): Declare.
9820 * Makefile.in (dummy-frame.o): Update dependencies.
9821
9822 2003-05-05 Andrew Cagney <cagney@redhat.com>
9823
9824 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9825 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9826 SIZEOF_CALL_DUMMY_WORDS.
9827 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9828 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9829 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9830 CALL_DUMMY_BREAKPOINT_OFFSET.
9831 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9832 CALL_DUMMY_START_OFFSET.
9833 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9834 * gdbarch.h, gdbarch.c: Re-generate.
9835 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9836 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9837 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9838 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9839 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9840 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9841 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9842 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9843 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9844 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9845 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9846 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9847 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9848 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9849 * config/sparc/tm-sparc.h: Update.
9850
9851 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9852
9853 * configure.tgt: Add i[3456]86-*-nto*.
9854 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9855 * nto-tdep.c: New file. Neutrino target support routines.
9856 * nto-tdep.h: New file. Neutrino target header.
9857 * config/tm-qnxnto.h: New file.
9858 * config/i386/i386nto.mt: New file.
9859 * config/i386/tm-i386nto.h: New file.
9860
9861 2003-05-04 Andrew Cagney <cagney@redhat.com>
9862
9863 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9864 (load_infrun_state): Ditto.
9865 (struct thread_info): Drop "prev_func_name" field.
9866 * thread.c (load_infrun_state): Update.
9867 (save_infrun_state): Update.
9868 * infrun.c (prev_func_name): Delete variable.
9869 (init_wait_for_inferior): Do not clear prev_func_name.
9870 (stop_stepping, keep_going, context_switch): Do not swap
9871 prev_func_name.
9872 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9873 instead of PC_IN_SIGTRAMP.
9874
9875 2003-05-04 Andrew Cagney <cagney@redhat.com>
9876
9877 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9878 REGISTER_BYTE with register_offset_hack.
9879 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9880 that REGISTER_BYTE is consistent with the regcache.
9881 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9882 * gdbarch.h, gdbarch.c: Regenerate.
9883
9884 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9885
9886 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9887 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9888
9889 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9890
9891 2003-05-03 J. Brobecker <brobecker@gnat.com>
9892
9893 From Thierry Schneider <tpschneider1@yahoo.com>
9894 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9895 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9896 (mi-cmd-symbol.o): Add rule.
9897
9898 2003-05-03 Andrew Cagney <cagney@redhat.com>
9899
9900 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9901 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9902 * gdbarch.h, gdbarch.c: Re-generate.
9903 * d10v-tdep.c (d10v_push_dummy_code): New function.
9904 (d10v_gdbarch_init): Set push_dummy_code.
9905 * infcall.c (legacy_push_dummy_code): New function.
9906 (generic_push_dummy_code): New function.
9907 (push_dummy_code): New function.
9908 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9909 instead of dummy_addr, to push_dummy_call. Move call to
9910 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9911 switch.
9912 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9913
9914 2003-05-03 Andrew Cagney <cagney@redhat.com>
9915
9916 * disasm.h (print_insn): Declare.
9917 * disasm.c (init_gdb_disassemble_info): New function.
9918 (gdb_disassembly): Call init_gdb_disassemble_info.
9919 (gdb_print_insn): New function.
9920 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9921 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9922 * mcore-tdep.c: Include "disasm.h"
9923 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9924 * d10v-tdep.c: Include "disasm.h".
9925 (display_trace): Call gdb_print_insn, instead of print_insn.
9926 (print_insn): Delete function.
9927 * printcmd.c: Include "disasm.h".
9928 (print_insn): Delete function.
9929 (print_formatted): Call gdb_print_insn, instead of print_insn.
9930 * Makefile.in (printcmd.o): Update dependencies.
9931 (mcore-tdep.o, d10v-tdep.o): Ditto.
9932
9933 2003-05-02 Andrew Cagney <cagney@redhat.com>
9934
9935 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9936 PC_REGNUM, re-indent.
9937 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9938 PC_REGNUM isn't set.
9939
9940 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9941 * gdbarch.h, gdbarch.c: Re-generate.
9942 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9943 register_virtual_size, pc_regnum, or register_bytes.
9944 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9945 (d10v_register_type): Use D10V_PC_REGNUM.
9946 (d10v_print_registers_info, d10v_read_pc): Ditto.
9947 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9948 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9949
9950 2003-05-02 David Carlton <carlton@bactrian.org>
9951
9952 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9953 the name with mstrsave.
9954
9955 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9956
9957 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9958 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9959 (host_charset_name, target_charset_name): New vars for use by
9960 set/show commands.
9961 (host_charset_enum, target_charset_enum): New enums for set/show
9962 commands.
9963 (set_charset_sfunc, set_host_charset_sfunc,
9964 set_target_charset_sfunc): New functions.
9965 (set_host_charset, set_target_charset): Make static.
9966 (list_charsets, set_host_charset_command,
9967 set_target_charset_command): Delete functions.
9968 (show_charset_command): Rewrite as....
9969 (show_charset): Hook this up with the set/show command mechanism.
9970 (_initialize_charset): Change names of charsets to match the
9971 set/show enums. Use host_charset_name and target_charset_name.
9972 Use set/show mechanism for charset, host-charset, target-charset
9973 commands. Do not make 'show host-charset' and 'show
9974 target-charset' be aliases of 'show charset'.
9975
9976 * charset.h (set_host_charset, set_target_charset): Don't export,
9977 they are not used outside the file.
9978
9979 2003-05-01 Andrew Cagney <cagney@redhat.com>
9980
9981 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9982 (gdb_disassembly): Make "di" non static, always initialize and
9983 cleanup. Always use dis_asm_read_memory.
9984 (gdb_dis_asm_read_memory): Delete function.
9985
9986 2003-05-01 Andrew Cagney <cagney@redhat.com>
9987
9988 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9989 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9990
9991 2003-04-30 Andrew Cagney <cagney@redhat.com>
9992
9993 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9994 "tm_print_insn_info".
9995 (TARGET_PRINT_INSN_INFO): Delete macro.
9996 (dis_asm_read_memory): Delete function declaration.
9997 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9998 (tm_print_insn_info): Delete variable definition.
9999 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
10000 * gdbarch.h, gdbarch.c: Re-generate.
10001 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
10002 "deprecated_tm_print_insn_info".
10003 * mcore-tdep.c (mcore_dump_insn): Ditto.
10004 * mips-tdep.c (mips_gdbarch_init): Ditto.
10005 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
10006 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
10007 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
10008 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
10009 instead of TARGET_PRINT_INSN_INFO, add comment.
10010 * s390-tdep.c (s390_get_frame_info): Instead of
10011 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
10012 (s390_check_function_end, s390_is_sigreturn): Ditto.
10013 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
10014 (dis_asm_memory_error, dis_asm_print_address): Ditto.
10015 * disasm.c: Include "gdbcore.h".
10016 (_initialize_disasm): New function, initialize
10017 "deprecated_tm_print_insn_info".
10018 (deprecated_tm_print_insn_info): New variable.
10019 (dis_asm_read_memory): Moved from "corefile.c", made static.
10020 (dis_asm_print_address, dis_asm_memory_error): Ditto.
10021 * Makefile.in (disasm.o): Update dependencies.
10022
10023 2003-04-30 Andrew Cagney <cagney@redhat.com>
10024
10025 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
10026
10027 2003-04-29 Adam Fedor <fedor@gnu.org>
10028
10029 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
10030 * infcall.c (find_function_addr): Make non-static.
10031 * infcall.h (find_function_addr): Declare.
10032 * Makefile.in (eval.o): Update dependencies.
10033
10034 2003-04-28 Adam Fedor <fedor@gnu.org>
10035
10036 * symtab.c (symbol_find_demangled_name): Check for and demangle
10037 ObjC symbols.
10038 (symbol_init_demangled_name): Init for language_objc as well.
10039
10040 2003-04-28 Andrew Cagney <cagney@redhat.com>
10041
10042 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
10043 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
10044 * gdbarch.h, gdbarch.c: Re-generate.
10045 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
10046 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
10047 * inferior.h (deprecated_read_fp): Rename read_fp.
10048 (generic_target_read_fp): Delete declaration.
10049 * regcache.c (generic_target_read_fp): Delete function.
10050 (deprecated_read_fp): Replace read_fp, use
10051 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
10052 * d10v-tdep.c (d10v_read_fp): Delete function.
10053 (d10v_gdbarch_init): Do not set deprecated_read_fp.
10054
10055 * sparc-tdep.c (sparc_gdbarch_init): Do not set
10056 deprecated_target_read_fp to generic_target_read_fp.
10057 * sh-tdep.c (sh_gdbarch_init): Ditto.
10058 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10060 * frv-tdep.c (frv_gdbarch_init): Ditto.
10061
10062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
10063 deprecated_fp_regnum.
10064 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10065 * vax-tdep.c (vax_gdbarch_init): Ditto.
10066 * v850-tdep.c (v850_gdbarch_init): Ditto.
10067 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10068 * sh-tdep.c (sh_gdbarch_init): Ditto.
10069 * s390-tdep.c (s390_gdbarch_init): Ditto.
10070 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10071 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10072 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10073 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10075 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10076 * i386-tdep.c (i386_gdbarch_init): Ditto.
10077 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10078 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10079 * frv-tdep.c (frv_gdbarch_init): Ditto.
10080 * cris-tdep.c (cris_gdbarch_init): Ditto.
10081 * avr-tdep.c (avr_gdbarch_init): Ditto.
10082 * arm-tdep.c (arm_gdbarch_init): Ditto.
10083 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10084
10085 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
10086 * v850-tdep.c (v850_gdbarch_init): Ditto.
10087 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10088 * sh-tdep.c (sh_gdbarch_init): Ditto.
10089 * s390-tdep.c (s390_gdbarch_init): Ditto.
10090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10091 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10092 * mips-tdep.c (mips_gdbarch_init): Ditto.
10093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10094 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10095 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10096 * frv-tdep.c (frv_gdbarch_init): Ditto.
10097 * avr-tdep.c (avr_gdbarch_init): Ditto.
10098 * arm-tdep.c (arm_gdbarch_init): Ditto.
10099
10100 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
10101 DEPRECATED_FP_REGNUM.
10102 (vax_push_dummy_frame, vax_pop_frame): Ditto.
10103 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
10104 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10105 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
10106 (sparc32_register_virtual_type): Ditto.
10107 * sh-tdep.c (sh64_frame_chain): Ditto.
10108 (sh64_get_saved_register, sh64_pop_frame): Ditto.
10109 (sh_nofp_frame_init_saved_regs): Ditto.
10110 (sh64_nofp_frame_init_saved_regs): Ditto.
10111 (sh_fp_frame_init_saved_regs): Ditto.
10112 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10113 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10114 * procfs.c (procfs_fetch_registers): Ditto.
10115 (procfs_store_registers): Ditto.
10116 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
10117 (store_inferior_registers, fetch_core_registers): Ditto.
10118 (fetch_kcore_registers, clear_regs): Ditto.
10119 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
10120 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
10121 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
10122 * nlm/i386.c (do_status): Ditto.
10123 * mipsv4-nat.c (supply_gregset): Ditto.
10124 * mips-tdep.c: Ditto for comments.
10125 * mips-nat.c (fetch_inferior_registers): Ditto.
10126 (store_inferior_registers, fetch_core_registers): Ditto.
10127 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
10128 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
10129 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
10130 (i386_do_pop_frame, i386_register_type): Ditto.
10131 * hppa-tdep.c (hppa_frame_chain): Ditto.
10132 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
10133 (hppa_pop_frame, hppa_read_fp): Ditto.
10134 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
10135 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
10136 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
10137 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
10138 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
10139 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
10140 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
10141 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
10142 * blockframe.c: Ditto for comments.
10143 * arch-utils.h: Ditto for comments.
10144 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
10145 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
10146 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
10147 * alpha-tdep.h: Ditto for comments.
10148 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
10149 (alpha_cannot_store_register): Ditto.
10150 (alpha_push_dummy_frame): Ditto.
10151 * alpha-nat.c (supply_gregset): Ditto.
10152
10153 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
10154 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
10155 * config/sparc/tm-sparc.h: Update comment.
10156
10157 * hppa-tdep.c (hppa_init_extra_frame_info): Use
10158 deprecated_read_fp instead of TARGET_READ_FP.
10159 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
10160 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
10161 * sparc-tdep.c (sparc_init_extra_frame_info): Use
10162 deprecated_read_fp instead of read_fp.
10163 * s390-tdep.c (s390_push_arguments): Ditto.
10164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10165 * frame.h: Ditto in comments.
10166 * frame.c (legacy_get_prev_frame): Ditto.
10167 * dummy-frame.c (dummy_frame_this_id): Ditto.
10168 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10169
10170 2003-04-28 Andrew Cagney <cagney@redhat.com>
10171
10172 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10173 * gdbarch.h, gdbarch.c: Re-generate.
10174 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10175 * vax-tdep.c (_initialize_vax_tdep): Update.
10176 * v850-tdep.c (_initialize_v850_tdep): Update.
10177 * sparc-tdep.c (_initialize_sparc_tdep): Update.
10178 * s390-tdep.c (_initialize_s390_tdep): Update.
10179 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10180 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10181 * mips-tdep.c (_initialize_mips_tdep): Update.
10182 * mcore-tdep.c (_initialize_mcore_tdep): Update.
10183 * m68k-tdep.c (_initialize_m68k_tdep): Update.
10184 * ia64-tdep.c (_initialize_ia64_tdep): Update.
10185 * hppa-tdep.c (_initialize_hppa_tdep): Update.
10186 * h8300-tdep.c (_initialize_h8300_tdep): Update.
10187 * frv-tdep.c (_initialize_frv_tdep): Update.
10188 * cris-tdep.c (cris_delayed_get_disassembler): Update.
10189 (_initialize_cris_tdep): Update.
10190 * arch-utils.c (legacy_print_insn): Update.
10191 * alpha-tdep.c (_initialize_alpha_tdep): Update.
10192
10193 2003-04-26 Adam Fedor <fedor@gnu.org>
10194
10195 * linespec.c (decode_objc): New function to decode ObjC calls
10196 (decode_line_1): Check for ObjC calls (using decode_objc)
10197 * Makefile (linespec.o): Update dependencies.
10198
10199 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
10200
10201 * breakpoint.h (struct breakpoint_ops): New.
10202 (struct breakpoint): Add ops member.
10203
10204 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10205 (mention): Use new breakpoint ops member.
10206 (set_raw_breakpoint): Initialize ops field to NULL.
10207 (print_exception_catchpoint, print_one_exception_catchpoint)
10208 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10209 (gnu_v3_exception_catchpoint_ops): New.
10210 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10211
10212 2003-04-25 Adam Fedor <fedor@gnu.org>
10213
10214 * Makefile.in (COMMON_OBS): Add objc-lang.o
10215
10216 2003-04-25 Andrew Cagney <cagney@redhat.com>
10217
10218 * d10v-tdep.c (print_insn): Delete function.
10219 (display_trace): Use TARGET_PRINT_INSN.
10220 (_initialize_d10v_tdep): Do not set tm_print_insn.
10221 (d10v_gdbarch_init): Set print_insn.
10222
10223 2003-04-25 Andrew Cagney <cagney@redhat.com>
10224
10225 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10226 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10227 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10228 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10229 (nr_dmap_regs, a0_regnum): ... new functions.
10230 (d10v_print_registers_info): Use a0_regnum, use register_size.
10231 (d10v_register_byte): Delete function.
10232 (d10v_register_raw_size): Delete function.
10233 (d10v_register_type): Use a0_regnum.
10234 (d10v_print_registers_info): Use a0_regnum.
10235 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10236 (d10v_gdbarch_init): Do not set register_byte or
10237 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10238 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10239 extract_address.
10240 (trace_command): Use XCALLOC.
10241 (print_insn): Delete reference to tm_print_insn.
10242 (saved_regs_unwinder): Use store_unsigned_integer instead of
10243 store_address.
10244 * frame.h (FRAME_OBSTACK_CALLOC): Define
10245
10246 2003-04-25 David Carlton <carlton@bactrian.org>
10247
10248 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10249
10250 2003-04-24 Adam Fedor <fedor@gnu.org>
10251
10252 * objc-lang.c: Include "valprint.h"
10253 * Makefile.in (objc-lang.o): Update dependencies.
10254
10255 2003-04-24 Adam Fedor <fedor@gnu.org>
10256
10257 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
10258 architecture dependant compilation and mark as unimplemented
10259 (until they get put in the gdbarch vector).
10260
10261 2003-04-23 David Carlton <carlton@bactrian.org>
10262
10263 * cp-support.c (cp_find_first_component): Accept 'operator' in
10264 more locations.
10265
10266 2003-04-23 Andrew Cagney <cagney@redhat.com>
10267
10268 * infcall.c (call_function_by_hand): Eliminate redundant
10269 indentation. Move "saved_async" and "old_cleanups" to where they
10270 are needed.
10271
10272 2003-04-23 Andrew Cagney <cagney@redhat.com>
10273
10274 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10275 and "buffer". Move the "name" code to where it is needed.
10276
10277 2003-04-23 Andrew Cagney <cagney@redhat.com>
10278
10279 * infcall.c (call_function_by_hand): Move variables "start_sp",
10280 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10281 code to ON_STACK switch branch.
10282
10283 2003-04-23 Andrew Cagney <cagney@redhat.com>
10284
10285 * infcall.c (call_function_by_hand): Make declaration of "i",
10286 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10287 lint.
10288
10289 2003-04-23 Andrew Cagney <cagney@redhat.com>
10290
10291 * infcall.c (call_function_by_hand): Delete variable
10292 "n_method_args". Localize "param_type"'s declaration to the loop
10293 that it is used. Reinstate code assigning to said variable -
10294 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10295 Rationalize code using "param_type".
10296
10297 2003-04-22 Andrew Cagney <cagney@redhat.com>
10298
10299 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10300 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10301 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10302 to DEPRECATED_PUSH_RETURN_ADDRESS.
10303
10304 2003-04-22 Kevin Buettner <kevinb@redhat.com>
10305
10306 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10307 on the DWARF2 register number prior to fetching a register.
10308
10309 2003-04-22 J. Brobecker <brobecker@gnat.com>
10310
10311 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10312 Update all the tests using SOFT_FLOAT considering the fact that
10313 this macro was always set to 0.
10314 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10315 considering the fact that this macro was always set to 0.
10316 * hppa-tdep.h (hppa_store_return_value): Likewise.
10317 (hppa_extract_return_value): Likewise.
10318
10319 2003-04-22 J. Brobecker <brobecker@gnat.com>
10320
10321 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10322 the hppa-pro target only.
10323
10324 2003-04-21 J. Brobecker <brobecker@gnat.com>
10325
10326 Ongoing multi-arch conversion effort for HP/UX:
10327 * config/pa/tm-hppa.h: Move all macro that are no longer
10328 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10329 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10330
10331 2003-04-21 J. Brobecker <brobecker@gnat.com>
10332
10333 * config/pa/tm-hppa.h: Obsolete a section that was only used
10334 for hppa-pro.
10335
10336 2003-04-21 J. Brobecker <brobecker@gnat.com>
10337
10338 Ongoing multi-arch conversion for HP/UX.
10339 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10340 if already defined (allows hppa64 to stay non-multiarched for now).
10341 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10342
10343 2003-04-21 Andrew Cagney <cagney@redhat.com>
10344
10345 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10346
10347 2003-04-21 Andrew Cagney <cagney@redhat.com>
10348
10349 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10350 "i386_num_mmx_regs".
10351
10352 2003-04-21 Andrew Cagney <cagney@redhat.com>
10353
10354 * infcall.c: New file.
10355 * infcall.h: New file.
10356 * valarith.c: Include "infcall.h".
10357 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10358 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10359 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10360 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10361 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10362 (SFILES): Add "infcall.c"
10363 (COMMON_OBS): Add "infcall.o".
10364 (infcall.o): Specify dependencies.
10365 * value.h (call_function_by_hand): Delete declaration.
10366 * inferior.h (run_stack_dummy): Delete declaration.
10367 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10368 (run_stack_dummy): Move to "infcall.c", merged into
10369 call_function_by_hand.
10370 * valops.c (call_function_by_hand): Moved to "infcall.c".
10371 (find_function_addr, value_arg_coerce): Ditto.
10372 (unwindonsignal_p, coerce_float_to_double): Ditto.
10373 (_initialize_valops): Move "set/show coerce-float-to-double", and
10374 "set/show unwindonsignal" commands to "infcall.c".
10375 * v850-tdep.c, target.h: Update comments.
10376 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10377 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10378 (sh64_init_extra_frame_info): Update comments.
10379 * mn10300-tdep.c: Update comments.
10380 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10381 * config/sparc/tm-sparc.h: Update comments.
10382 * breakpoint.h: Update comments.
10383 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10384 * arm-tdep.c: Update comment.
10385
10386 2003-04-19 Mark Kettenis <kettenis@gnu.org>
10387
10388 * i386-tdep.c (i386_num_register_names): New variable.
10389 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10390 (MM0_REGNUM): Remove redundant parentheses in define.
10391 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10392 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10393 i386_mxcsr_regnum_p): Remove redundant parentheses.
10394 (i386_register_name): Use i386_num_register_names.
10395
10396 * i386-tdep.c (i386_extract_return_value,
10397 i386_store_return_value): Correct check for availability of
10398 floating-point registers.
10399
10400 * i386-tdep.c (i386_frame_num_args): Remove function.
10401 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10402
10403 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10404 mmx_regnum_to_fp_regnum. Adjust all callers.
10405
10406 * i386-tdep.c (i386_get_longjmp_target): Use
10407 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10408 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10409 extract_address.
10410
10411 2003-04-19 Mark Kettenis <kettenis@gnu.org>
10412
10413 * core-regset.c: Update comments to reflect reality. Re-order
10414 includes.
10415 (fetch_core_registers): Use switch instead of if. Remove
10416 redundant prototype.
10417
10418 2003-04-18 Jim Blandy <jimb@redhat.com>
10419
10420 * s390-tdep.c (s390_frame_align): New function.
10421 (s390_gdbarch_init): Register it with the gdbarch object.
10422
10423 2003-04-17 Richard Henderson <rth@redhat.com>
10424
10425 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10426
10427 2003-04-17 Michael Snyder <msnyder@redhat.com>
10428 Karen Bennet <bennet@redhat.com>
10429
10430 Committed by Elena Zannoni <ezannoni@redhat.com>
10431 * gdb_gcore.sh: New script to create a core dump of a process.
10432
10433 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
10434
10435 * values.c (value_being_returned): Don't fetch the return
10436 value if the return type is void.
10437
10438 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10439
10440 * thread-db.c: Reindented.
10441
10442 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10443
10444 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10445 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
10446 as types.
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 2003-04-16 Kevin Buettner <kevinb@redhat.com>
10473
10474 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
10475 the size of ``long double'' to 16, instead of 8.
10476
10477 2003-04-16 Mark Kettenis <kettenis@gnu.org>
10478
10479 * i386-linux-nat.c: Add some whitespace to make things more
10480 readable.
10481 (fetch_register, store_register, fetch_inferior_registers,
10482 store_inferior_registers): Get rid of assignment in if-statement.
10483 (store_register): Fix typo in error message.
10484
10485 2003-04-16 Andrew Cagney <cagney@redhat.com>
10486
10487 * utils.c (xmmalloc): Always allocate something, matches
10488 libiberty/xmalloc's semantics.
10489 (xmrealloc, xmcalloc): Ditto.
10490
10491 2003-04-16 Andrew Cagney <cagney@redhat.com>
10492
10493 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10494 update comments.
10495 (get_frame_type): Initialize unwind and type when needed.
10496 (get_frame_id, frame_register_unwind): Ditto.
10497
10498 2003-04-16 Andrew Cagney <cagney@redhat.com>
10499
10500 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10501 obsolete.
10502 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10503 * sparcl-stub.c: Obsolete file.
10504 * config/sparc/tm-sparclet.h: Obsolete file.
10505 * sparclet-stub.c: Obsolete file.
10506 * sparclet-rom.c: Obsolete file.
10507 * sparcl-tdep.c: Obsolete file.
10508 * config/sparc/tm-sparclite.h: Obsolete file.
10509 * config/sparc/sparclite.mt: Obsolete file.
10510 * config/sparc/sparclet.mt: Obsolete file.
10511 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10512 sparc86x-*-* obsolete.
10513
10514 2003-04-15 David Carlton <carlton@math.stanford.edu>
10515
10516 * Makefile.in (SFILES): Add cp-namespace.c.
10517 (COMMON_OBS): Add cp-namespace.o.
10518 (block.o): Depend on gdb_obstack_h and cp_support_h.
10519 (buildsym.o): Depend on cp_support_h.
10520 (cp-namespace.o): New.
10521 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10522 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10523 (dwarf2read.o): Depend on cp_support_h.
10524 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10525 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10526 processing_current_namespace.
10527 (read_namespace): Update processing_current_namespace; check for
10528 anonymous namespaces.
10529 (dwarf2_name): New function.
10530 (dwarf2_extension): Ditto.
10531 * cp-support.h: Update copyright, contributors.
10532 Add inclusion guards.
10533 Add opaque declaration for structs obstack, block, symbol.
10534 (struct using_direct): New struct.
10535 Add declarations for cp_find_first_component,
10536 cp_entire_prefix_len, processing_has_namespace_info,
10537 processing_current_namespace, cp_is_anonymous,
10538 cp_add_using_directive, cp_initialize_namespace,
10539 cp_finalize_namespace, cp_set_block_scope,
10540 cp_scan_for_anonymous_namespaces.
10541 * cp-namespace.c: New file.
10542 * cp-support.c: Update copyright.
10543 Include ctype.h, gdb_assert.h, gdbcmd.h.
10544 New variable maint_cplus_cmd_list.
10545 (cp_find_first_component): New function.
10546 (cp_entire_prefix_len, maint_cplus_command)
10547 (first_component_command, _initialize_cp_support): Ditto.
10548 * buildsym.c: Include cp-support.h.
10549 New variable using_list.
10550 (add_symbol_to_list): Check for anonymous namespaces.
10551 (finish_block): Set block's scope.
10552 (start_symtab): Initialize C++ namespace support.
10553 (end_symtab): Finalize C++ namespace support.
10554 * block.h: Add opaque declarations for structs
10555 block_namespace_info, using_direct, and obstack.
10556 Add declarations for block_set_scope and block_set_using.
10557 (struct block): Add 'language_specific' member.
10558 (BLOCK_NAMESPACE): New macro.
10559 * block.c: Include gdb_obstack.h and cp-support.h.
10560 (struct block_namespace_info): New struct.
10561 (block_set_scope): New function.
10562 (block_set_using, block_initialize_namespace): Ditto.
10563
10564 2003-04-14 Kevin Buettner <kevinb@redhat.com>
10565
10566 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10567 (locate_base): Return early if there aren't any link map offsets.
10568 (svr4_solib_create_inferior_hook): Warn if shared library support
10569 is unavailable.
10570
10571 2003-04-14 David Carlton <carlton@math.stanford.edu>
10572
10573 * symtab.c (symbol_set_names): Add prefix when storing Java names
10574 in hash table. Fix for PR java/1039.
10575
10576 2003-04-14 David Carlton <carlton@math.stanford.edu>
10577
10578 * symtab.c (symbol_set_names): Rename 'name' arg to
10579 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10580 * symtab.h: Change 'name' argument in declaration of
10581 symbol_set_names to 'linkage_name'.
10582 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10583
10584 2003-04-14 Andrew Cagney <cagney@redhat.com>
10585
10586 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10587 return the fully sign-extended register value.
10588 (get_frame_pointer): Ditto.
10589 (mips_pop_frame): Initialize "proc_desc" after checking for a
10590 dummy frame.
10591
10592 2003-04-14 Andrew Cagney <cagney@redhat.com>
10593
10594 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10595 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10596 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10597 (mips_push_register): Delete function.
10598 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10599 PUSH_FP_REGNUM.
10600
10601 2003-04-14 Jim Blandy <jimb@redhat.com>
10602
10603 * symmisc.c: #include "gdb_regex.h".
10604 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10605 functions.
10606 * maint.c (maintenance_list_command): New function.
10607 (_initialize_maint_cmds): Register the above as commands.
10608 * symtab.h (maintenance_list_symtabs,
10609 maintenance_list_psymtabs): New declarations.
10610 * cli/cli-cmds.c (maintenancelistlist): New variable.
10611 (init_cmd_lists): Initialize it.
10612 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10613 * gdbcmd.h (maintenancelistlist): New declaration.
10614 * Makefile.in (symmisc.o): Update dependencies.
10615
10616 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
10617
10618 * s390-nat.c: Include asm/types.h for addr_t.
10619
10620 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
10621
10622 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10623 actually incoming type.
10624
10625 2003-04-13 Andrew Cagney <cagney@redhat.com>
10626
10627 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10628 get_next_frame and get_frame_saved_regs.
10629
10630 2003-04-13 Andrew Cagney <cagney@redhat.com>
10631
10632 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10633 of gdbarch_num_regs.
10634
10635 2003-04-13 Andrew Cagney <cagney@redhat.com>
10636
10637 * frame.h: Mention what replaced what in "struct frame_info".
10638 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10639 deprecated_update_frame_base_hack and
10640 deprecated_update_frame_pc_hack.
10641 * hppa-tdep.c: Ditto.
10642
10643 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10644
10645 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10646 to read_reg and update its comment. Remove regnum member.
10647 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10648 Don't call read_reg when setting in_reg. Call read_reg to get
10649 the frame base if it's in a register. Return the register number
10650 on the stack instead of in the context. Remove extra arguments
10651 to read_reg.
10652 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10653 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10654 the register number on the expression stack.
10655 (needs_frame_read_reg): Remove extra arguments.
10656
10657 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10658
10659 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10660 made non-static.
10661 (execute_stack_op): All callers updated.
10662 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10663 * dwarf2loc.c (find_location_expression): New function.
10664 (dwarf_expr_frame_base): Call it.
10665 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10666 (dwarf2_tracepoint_var_ref): New function, broken out from
10667 locexpr_tracepoint_var_ref.
10668 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10669 Make static.
10670 (loclist_read_variable, loclist_read_needs_frame): New functions.
10671 (loclist_describe_location, loclist_tracepoint_var_ref): New
10672 functions.
10673 (dwarf2_loclist_funcs): New struct location_funcs.
10674 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10675 (struct dwarf2_locexpr_baton): Add comments.
10676 (dwarf2_loclist_funcs): New extern.
10677 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10678 base_address and base_known.
10679 (dwarf_loc_buffer): New variable.
10680 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10681 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10682 (dwarf2_has_info): Initialize dwarf_loc_offset.
10683 (dwarf2_build_psymtabs): Read in .debug_loc.
10684 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10685 DWARF_LOC_SIZE.
10686 (psymtab_to_symtab_1): Likewise. Move base address calculation
10687 here, from...
10688 (dwarf2_get_pc_bounds): ... here. Use the base address from
10689 cu_header.
10690 (dwarf2_symbol_mark_computed): Handle location lists.
10691
10692 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10693
10694 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10695 if the linkage name demangled successfully.
10696
10697 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10698
10699 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10700 disassmbly_flavour): Removed.
10701
10702 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10703
10704 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10705
10706 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10707
10708 2003-04-12 Andrew Cagney <cagney@redhat.com>
10709
10710 * frame.h (struct frame_info): Move definition from here ...
10711 * frame.c (struct frame_info): ... to here.
10712
10713 2003-04-12 Andrew Cagney <cagney@redhat.com>
10714
10715 * gdbthread.h (save_infrun_state): Delete parameter
10716 "prev_func_start".
10717 (struct thread_info): Delete field "prev_func_start".
10718 (load_infrun_state): Ditto.
10719 * thread.c (load_infrun_state, save_infrun_state): Update.
10720 * infrun.c (prev_func_start): Delete variable.
10721 (context_switch, init_wait_for_inferior): Update.
10722 (stop_stepping, keep_going): Update.
10723
10724 2003-04-12 Andrew Cagney <cagney@redhat.com>
10725
10726 * gdbarch.sh: Add missing opaque declarations.
10727 * gdbarch.h: Regnerate.
10728 * symtab.h: Add missing opaque declarations.
10729 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10730 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10731 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10732 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10733 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10734 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10735 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10736 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10737 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10738 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10739 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10740 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10741 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10742
10743 2003-04-11 Andrew Cagney <cagney@redhat.com>
10744
10745 * frame.c (get_frame_id): Return this frame's "id".
10746 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10747 function start.
10748 (legacy_saved_regs_this_id): Replace function body with
10749 internal-error.
10750 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10751 FRAME_OBSTACK_ZALLOC.
10752 (create_new_frame): Mark the frame ID as valid.
10753
10754 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10755
10756 * Makefile.in (libbfd_h): Added missing setting.
10757 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10758 according to the selected ABI.
10759
10760 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10761
10762 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10763
10764 2003-04-11 Andrew Cagney <cagney@redhat.com>
10765
10766 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10767 SAVED_PC_AFTER_CALL.
10768 * gdbarch.h, gdbarch.c: Regenerate.
10769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10770 * x86-64-tdep.c (x86_64_init_abi): Update.
10771 * vax-tdep.c (vax_gdbarch_init): Update.
10772 * v850-tdep.c (v850_gdbarch_init): Update.
10773 * sparc-tdep.c (sparc_gdbarch_init): Update.
10774 * sh-tdep.c (sh_gdbarch_init): Update.
10775 * s390-tdep.c (s390_gdbarch_init): Update.
10776 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10777 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10778 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10779 * mips-tdep.c (mips_gdbarch_init): Update.
10780 * mcore-tdep.c (mcore_gdbarch_init): Update.
10781 * m68k-tdep.c (m68k_gdbarch_init): Update.
10782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10783 * ia64-tdep.c (ia64_gdbarch_init): Update.
10784 (ia64_saved_pc_after_call): Update declaration.
10785 * i386ly-tdep.c (i386lynx_init_abi): Update.
10786 * i386-tdep.c (i386_gdbarch_init): Update.
10787 * hppa-tdep.c (hppa_gdbarch_init): Update.
10788 * h8300-tdep.c (h8300_gdbarch_init): Update.
10789 * frv-tdep.c (frv_gdbarch_init): Update.
10790 * cris-tdep.c (cris_gdbarch_init): Update.
10791 * avr-tdep.c (avr_gdbarch_init): Update.
10792 * arm-tdep.c (arm_gdbarch_init): Update.
10793 * alpha-tdep.c (alpha_gdbarch_init): Update.
10794 * ns32knbsd-nat.c (frame_num_args): Update.
10795 * ns32k-tdep.c (umax_frame_num_args): Update.
10796 * mips-tdep.c (mips_init_frame_pc_first): Update.
10797 * infrun.c (step_over_function): Update.
10798 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10799 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10800 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10801 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10802 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10803 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10804 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10805 * arch-utils.c (init_frame_pc_default): Update.
10806 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10807 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10808 declaration.
10809
10810 2003-04-11 Andrew Cagney <cagney@redhat.com>
10811
10812 * i387-tdep.c: Update copyright.
10813 (i387_to_double): Delete function.
10814 (double_to_i387): Delete function.
10815
10816 2003-04-10 Andrew Cagney <cagney@redhat.com>
10817
10818 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10819 frame's function's address. Simplify.
10820 (d10v_frame_unwind_cache): Check that the frame's function is
10821 non-zero.
10822
10823 2003-04-10 Jim Blandy <jimb@redhat.com>
10824
10825 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10826 call to set_gdbarch_deprecated_push_arguments.
10827
10828 2003-04-10 Andrew Cagney <cagney@redhat.com>
10829
10830 * frame.c (fprint_frame_id): New function.
10831 (fprint_frame_type, fprint_frame): New function.
10832 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10833 (create_sentinel_frame, get_frame_id): Ditto.
10834 (frame_id_p, frame_id_eq): Ditto.
10835 (frame_id_inner, create_new_frame): Ditto.
10836 (legacy_get_prev_frame, get_prev_frame): Ditto.
10837 (deprecated_update_frame_pc_hack): Ditto.
10838 (frame_register_unwind): Ditto.
10839 (deprecated_update_frame_base_hack): Ditto.
10840
10841 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10842
10843 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10844 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10845 frame_chain function.
10846 * Makefile.in: Add dependencies due to above change.
10847
10848 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10849
10850 * blockframe.c (legacy_frame_chain_valid): Move call to
10851 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10852 inside_entry_file.
10853
10854 2003-04-09 Andrew Cagney <cagney@redhat.com>
10855
10856 * frame.h (struct frame_id): Replace "pc" and "base" with
10857 "stack_addr" and "code_addr". Update comments.
10858 (frame_id_build): Update parameter names and comment.
10859 (struct frame_info): Replace "id_p" and "id" with "this_id".
10860 * dummy-frame.c (dummy_frame_this_id): Update.
10861 * breakpoint.c (print_one_breakpoint): Update.
10862 * frame.c (get_frame_id): Update.
10863 (get_frame_base, frame_id_build): Update.
10864 (create_sentinel_frame, legacy_get_prev_frame): Update.
10865 (deprecated_update_frame_base_hack): Update.
10866 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10867 (frame_id_inner): Ditto.
10868
10869 2003-04-09 Andrew Cagney <cagney@redhat.com>
10870
10871 * defs.h (gdb_print_host_address): Make "addr" parameter a
10872 pointer constant.
10873 * utils.c (gdb_print_host_address): Update.
10874
10875 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10876
10877 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10878 register number for R0 is 0.
10879
10880 2003-04-09 J. Brobecker <brobecker@gnat.com>
10881
10882 * frame.h (struct gdbarch): Add opaque structure definition
10883 to avoid a compilation warning on LynxOS 4.0.
10884
10885 2003-04-09 Andrew Cagney <cagney@redhat.com>
10886
10887 * frame.h (struct frame_info): Delete field "pc". Replace
10888 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10889 structure.
10890 * frame.c (frame_pc_unwind): Update.
10891 (create_sentinel_frame): Do not set "pc".
10892 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10893 (get_frame_pc): Call frame_pc_unwind.
10894 (deprecated_update_frame_pc_hack): Update.
10895 (create_new_frame): Use "pc" not "->pc".
10896
10897 2003-04-09 Andrew Cagney <cagney@redhat.com>
10898
10899 * frame.c (get_frame_id): Eliminate code updating "frame".
10900 (legacy_get_prev_frame): Ditto.
10901 (get_frame_base): Return id.base directly.
10902 (deprecated_update_frame_base_hack): Update "id.base".
10903 * frame.h (struct frame_info): Delete field "frame".
10904
10905 2003-04-09 Andrew Cagney <cagney@redhat.com>
10906
10907 * NEWS: Mention that the "Sequent family" is obsolete.
10908 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10909 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10910 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10911 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10912 * config/i386/tm-ptx4.h: Obsolete file.
10913 * config/i386/tm-ptx.h: Obsolete file.
10914 * symm-tdep.c: Obsolete file.
10915 * config/i386/symmetry.mt: Obsolete file.
10916 * config/i386/tm-symmetry.h: Obsolete file.
10917 * symm-nat.c: Obsolete file.
10918 * config/i386/nm-symmetry.h: Obsolete file.
10919 * config/i386/xm-symmetry.h: Obsolete file.
10920 * config/i386/symmetry.mh: Obsolete file.
10921 * config/i386/nm-ptx4.h: Obsolete file.
10922 * config/i386/ptx4.mh: Obsolete file.
10923 * config/i386/ptx.mt: Obsolete file.
10924 * config/i386/ptx.mh: Obsolete file.
10925 * config/i386/xm-ptx4.h: Obsolete file.
10926 * config/i386/xm-ptx.h: Obsolete file.
10927
10928 2003-04-09 Andrew Cagney <cagney@redhat.com>
10929
10930 Obsolete mips*-*-mach3*.
10931 * NEWS: Mention that mips*-*-mach3* is obsolete.
10932 * m3-nat.c: Obsolete file.
10933 * config/nm-m3.h: Obsolete file.
10934 * config/mips/tm-mipsm3.h: Obsolete file.
10935 * config/mips/mipsm3.mt: Obsolete file.
10936 * config/mips/mipsm3.mh: Obsolete file.
10937 * config/mips/xm-mipsm3.h: Obsolete file.
10938 * mipsm3-nat.c: Obsolete file.
10939 * configure.host: Obsolete mips-dec-mach3*.
10940 * configure.tgt: Obsolete mips*-*-mach3*.
10941
10942 2003-04-09 Andrew Cagney <cagney@redhat.com>
10943
10944 * doublest.h: Update copyright.
10945 (deprecated_store_floating, deprecated_extract_floating): Rename
10946 store_floating and extract_floating. Update comments.
10947 * doublest.c: Update copyright.
10948 (extract_floating_by_length): Replace extract_floating.
10949 (store_floating_by_length): Replace store_floating.
10950 (deprecated_extract_floating): New function.
10951 (deprecated_store_floating): New function.
10952 (extract_typed_floating): Call extract_floating_by_length.
10953 (store_typed_floating): Call store_floating_by_length.
10954 * x86-64-tdep.c (x86_64_store_return_value): Update.
10955 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10956 (sh64_extract_return_value): Update.
10957 (sh_sh4_register_convert_to_virtual): Update.
10958 (sh_sh64_register_convert_to_virtual): Update.
10959 (sh_sh4_register_convert_to_raw): Update.
10960 (sh_sh64_register_convert_to_raw): Update.
10961 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10962 (rs6000_register_convert_to_raw): Update.
10963 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10964 (ia64_register_convert_to_raw): Update.
10965 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10966 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10967 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10968 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10969 (alpha_register_convert_to_raw): Update.
10970
10971 2003-04-08 Andrew Cagney <cagney@redhat.com>
10972
10973 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10974 * gdbarch.h, gdbarch.c: Re-generate.
10975 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10976 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10977 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10978 conditionally, use frame_pc_unwind as an alternative. Add
10979 comments.
10980 * arch-utils.c (init_frame_pc_default): Only call
10981 SAVED_PC_AFTER_CALL when available.
10982
10983 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10984
10985 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10986 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10987 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10988 (start_remote): Ditto.
10989 (handle_inferior_event): Ditto.
10990 (save_inferior_status): Ditto.
10991 (restore_inferior_status): Ditto.
10992 * infcmd.c (attach_command): Ditto.
10993 * fork-child.c (startup_inferior): Ditto.
10994 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10995 * alpha-tdep.c (heuristic_proc_start): Ditto.
10996 * mips-tdep.c (heuristic_proc_start): Ditto.
10997 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10998 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10999 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
11000 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
11001 * remote-vx.c (vx_create_inferior): Ditto.
11002
11003 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
11004
11005 * infrun.c (stop_soon_quietly): Make it an enum, to better
11006 override the default behavior of handle_inferior_event.
11007 (clear_proceed_status): Update uses of stop_soon_quietly to
11008 reflect that it is now an enum.
11009 (start_remote): Ditto.
11010 (handle_inferior_event): Change logic a bit if stop_soon_quietly
11011 is set to handle the new GNU/Linux kernel behavior for
11012 attach/sigstop. Update uses of stop_soon_quietly.
11013 * inferior.h (enum stop_kind): New enum.
11014 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
11015 Reset normal handle_inferior_event behavior, afterwards.
11016 * fork-child.c (startup_inferior): Update.
11017 * alpha-tdep.c (heuristic_proc_start): Update.
11018 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
11019 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
11020 * solib-osf.c (osf_solib_create_inferior_hook): Update.
11021 * solib-irix.c (irix_solib_create_inferior_hook): Update.
11022 * remote-vx.c (vx_create_inferior): Update.
11023 * mips-tdep.c (heuristic_proc_start): Update.
11024
11025 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
11026
11027 * disasm.c (dump_insns): Move variables inside loop, or they will
11028 be freed more than once, causing wild memory corruptions.
11029 (gdb_disassembly): Look for the substring "-thread",
11030 instead of "-threads" in the target name, to make sure to find
11031 the 'multi-thread' target. Also, make sure we do the right thing
11032 with the "core" target.
11033
11034 2003-04-07 Kevin Buettner <kevinb@redhat.com>
11035
11036 * mips-tdep.c (mips_print_fp_register): New function, created from
11037 do_fp_register_row(). Registers are now (also) printed as hex.
11038 Only one register is printed per row.
11039 (mips_print_register, do_fp_register_row): Print floating point
11040 registers with mips_print_fp_register().
11041
11042 2003-04-06 Andrew Cagney <cagney@redhat.com>
11043
11044 * valprint.h (inspect_it): Add extern declaration.
11045 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
11046 (selectors_info, classes_info): Ditto.
11047 (find_objc_msgcall): Fix indentation.
11048 (objc_printstr): Delete extern declarations.
11049
11050 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
11051
11052 2003-04-06 Andrew Cagney <cagney@redhat.com>
11053
11054 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
11055 Update comment.
11056 * frame.c (legacy_saved_regs_this_id): Update.
11057 (legacy_get_prev_frame): Update.
11058 * xstormy16-tdep.c: Update comment.
11059 * sparc-tdep.c (sparc_frame_chain): Update comment.
11060 * blockframe.c (legacy_frame_chain_valid): Update.
11061
11062 2003-04-06 Andrew Cagney <cagney@redhat.com>
11063
11064 * valprint.c (val_print_type_code_int): Delete #ifdef
11065 PRINT_TYPELESS_INTEGER code.
11066
11067 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
11068 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
11069 multi-arch definition.
11070 * gdbarch.h: Re-generate.
11071
11072 2003-04-05 Andrew Cagney <cagney@redhat.com>
11073
11074 Eliminate FRAME_FIND_SAVED_REGS.
11075 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11076 Change FSR parameter to a pointer.
11077 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
11078 Assume FSR parameter is a pointer.
11079 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11080 Make fsr a pointer.
11081 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
11082 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
11083 saved_regs a pointer.
11084 (hppa_frame_saved_pc): Ditto.
11085 (find_dummy_frame_regs): Make frame_saved_regs a pointer
11086 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
11087 pointer.
11088 (restore_pc_queue): Make fsr a pointer.
11089 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
11090 (hppa_frame_chain): Make saved_regs a pointer, call
11091 hppa_frame_init_saved_regs.
11092 * sparc-tdep.c: Include "gdb_assert.h".
11093 (sparc_frame_find_saved_regs): Replace internal_error with
11094 gdb_assert.
11095 * remote-vxsparc.c (vx_read_register): Delete reference to
11096 FRAME_FIND_SAVED_REGS.
11097 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
11098 * gdbarch.h: Regenerate.
11099 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11100 (deprecated_get_frame_saved_regs): Delete declaration.
11101 (struct frame_saved_regs): Delete definition.
11102 * frame.c (deprecated_get_frame_saved_regs): Delete function.
11103 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
11104 (hppa_frame_find_saved_regs): Delete declaration.
11105 (FRAME_FIND_SAVED_REGS): Delete macro.
11106 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
11107 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
11108 FRAME_FIND_SAVED_REGS in comment.
11109
11110 2003-04-05 Andrew Cagney <cagney@redhat.com>
11111
11112 * frame.c (frame_func_unwind, get_frame_func): New functions.
11113 * frame.h (get_frame_func, frame_func_unwind): Declare.
11114 (struct frame_info): Add field "prev_func" for caching the
11115 previous frame's function address.
11116 * arm-tdep.c (arm_frameless_function_invocation): Combine
11117 get_pc_function_start and get_frame_pc into get_frame_func.
11118 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11119 (sh64_nofp_frame_init_saved_regs): Ditto.
11120 * s390-tdep.c (s390_function_start): Ditto.
11121 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
11122 (rs6000_frameless_function_invocation): Ditto.
11123 (rs6000_frame_saved_pc): Ditto.
11124 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
11125 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
11126 * i386-tdep.c (i386_frameless_signal_p): Ditto.
11127 (i386_frame_init_saved_regs): Ditto.
11128 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
11129 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
11130 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
11131 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
11132 * blockframe.c (frameless_look_for_prologue): Ditto.
11133
11134 2003-04-05 Andrew Cagney <cagney@redhat.com>
11135
11136 * frame.c (legacy_get_prev_frame): Link prev to next at the
11137 function start. Update comments.
11138
11139 2003-04-05 Andrew Cagney <cagney@redhat.com>
11140
11141 * frame.c (get_frame_id): Update comment.
11142 (legacy_get_prev_frame): Update comment.
11143 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
11144 * gdbarch.h: Regenerate.
11145 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
11146 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
11147
11148 2003-04-05 Andrew Cagney <cagney@redhat.com>
11149
11150 * stack.c (print_frame_info): Use get_frame_pc.
11151
11152 2003-04-04 Andrew Cagney <cagney@redhat.com>
11153
11154 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
11155 the frame's type from the unwinder.
11156 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
11157 (create_new_frame, legacy_get_prev_frame): When the unwinder's
11158 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
11159 (get_frame_base_address): Use get_frame_type.
11160 (get_frame_locals_address, get_frame_args_address): Ditto.
11161 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
11162 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
11163 (struct frame_info): Add comment explaining why the frame contains
11164 a "type" field.
11165 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
11166 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
11167 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11168 NORMAL_FRAME.
11169 * frame-unwind.h: Include "frame.h".
11170 (struct frame_unwind): Add "type" field.
11171 * Makefile.in (frame_unwind_h): Add $(frame_h).
11172
11173 2003-04-04 Andrew Cagney <cagney@redhat.com>
11174
11175 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11176 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11177 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11178 get_frame_base.
11179 (d10v_unwind_dummy_id): Use frame_id_build.
11180 * frame.c (find_frame_sal): Use get_frame_pc.
11181 (create_new_frame): Use deprecated_update_frame_pc_hack and
11182 deprecated_update_frame_base_hack.
11183 (create_sentinel_frame): Add comment about ->pc going away.
11184 (get_prev_frame): Add comment about ->pc going away.
11185 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11186 frame_id_build, deprecated_update_frame_pc_hack and
11187 deprecated_update_frame_base_hack.
11188 (select_frame): Use get_frame_pc.
11189 (legacy_saved_regs_this_id): Use frame_id_build.
11190
11191 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
11192
11193 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11194 signed integer case.
11195 (classify_argument): Handle enumerations and references.
11196
11197 2003-04-04 Andrew Cagney <cagney@redhat.com>
11198
11199 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11200 ID to NULL.
11201
11202 2003-04-01 Adam Fedor <fedor@gnu.org>
11203
11204 * gdb/objc-lang.c (selectors_info): Replace calls to
11205 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11206 SYMBOL_NATURAL_NAME.
11207 (classes_info, find_methods): Likewise.
11208
11209 2003-04-03 Kevin Buettner <kevinb@redhat.com>
11210
11211 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11212 ``mach'' to the value determined by bfd_default_set_arch_mach().
11213
11214 2003-04-02 Bob Rossi <bob_rossi@cox.net>
11215
11216 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11217 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11218 (mi-cmd-file.o): Update dependencies.
11219
11220 2003-04-01 Kevin Buettner <kevinb@redhat.com>
11221
11222 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11223 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11224
11225 2003-04-01 Adam Fedor <fedor@gnu.org>
11226
11227 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11228 * language.h (struct language_defn): Add la_demangle.
11229 (language_demangle): Declare.
11230 * language.c (language_demangle): New function.
11231 (unk_lang_demangle): Likewise.
11232 (unknown_language_defn, auto_language_defn, local_language_defn):
11233 Add ukn_lang_demangle.
11234 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
11235 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
11236 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11237 (cplus_language_defn): Add cplus_demangle for la_demangle element.
11238 * jv-lang.c (java_demangle): New function
11239 (java_language_defn): Use it for la_demangle element.
11240 * objc-lang.c (objc_demangle): Add options argument
11241 (objc_language_defn): Use objc_demangle for la_demangle element.
11242 * maint.c (maintenance_demangle): Replace switch with
11243 call to language_demangle.
11244 * utils.c (fprintf_symbol_filtered): Likewise.
11245
11246 2003-04-01 Andrew Cagney <cagney@redhat.com>
11247
11248 * printcmd.c (print_frame_nameless_args): Delete #ifdef
11249 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11250 PRINT_TYPELESS_INTEGER.
11251 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11252 PUSH_RETURN_ADDRESS.
11253
11254 2003-04-01 Andrew Cagney <cagney@redhat.com>
11255
11256 * Makefile.in (d10v-tdep.o): Update dependencies.
11257 * d10v-tdep.c: Include "frame-base.h".
11258 (d10v_frame_unwind): Make constant.
11259 (d10v_frame_base_address): New function.
11260 (d10v_frame_base): New variable.
11261 (d10v_gdbarch_init): Set frame_base default.
11262 (struct d10v_unwind_cache): Add the field "prev_sp". Update
11263 comment for base.
11264 (d10v_frame_unwind_cache): Set and use "prev_sp".
11265 (d10v_frame_this_id): Use the previous frame's inner most stack
11266 address and this frame's func address for the frame ID. Use
11267 frame_id_build. Don't analyze beyond the current instruction.
11268
11269 2003-04-01 Andrew Cagney <cagney@redhat.com>
11270
11271 * frame.h (get_frame_locals_address, get_frame_args_address):
11272 Refer to the base address, instead of the address of the first
11273 local or parameter.
11274
11275 2003-04-01 Andrew Cagney <cagney@redhat.com>
11276
11277 Add frame debug info addresses:
11278 * frame-base.c: New file.
11279 * frame-base.h: New file.
11280 * frame.h (struct frame_base): Add opaque declaration.
11281 (get_frame_base): Update comment.
11282 (get_frame_base_address): Declare.
11283 (get_frame_locals_address): Declare.
11284 (get_frame_args_address): Declare.
11285 (struct frame_info): Add "base" and "base_cache". Update
11286 comments on the unwinder.
11287 * frame.c: Include "frame-base.h".
11288 (get_frame_locals_address): New function.
11289 (get_frame_base_address): New function.
11290 (get_frame_args_address): New function.
11291 * findvar.c (read_var_value): Use get_frame_locals_address and
11292 get_frame_args_address.
11293 * stack.c (frame_info): Use get_frame_locals_address and
11294 get_frame_args_address.
11295 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11296 moved to "frame-base.c".
11297 * printcmd.c (print_frame_nameless_args): Ditto.
11298 * symtab.h (address_class): Update comments.
11299 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11300 get_frame_base_address.
11301 * dwarf2expr.c (execute_stack_op): Ditto.
11302 * Makefile.in (frame_base_h): Define.
11303 (frame.o): Update dependencies.
11304 (frame-base.o): Add dependencies.
11305 (SFILES): Add frame-base.c.
11306 (COMMON_OBS): Add frame-base.o.
11307
11308 2003-04-01 Andrew Cagney <cagney@redhat.com>
11309
11310 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11311 CALL_DUMMY_LENGTH): Ditto.
11312 * gdbarch.c: Re-generate.
11313 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11314 (CALL_DUMMY_LENGTH): Delete macro.
11315 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11316 * arm-tdep.c (arm_gdbarch_init): Ditto.
11317 * avr-tdep.c (avr_gdbarch_init): Ditto.
11318 * cris-tdep.c (cris_gdbarch_init): Ditto.
11319 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11320 * frv-tdep.c (frv_gdbarch_init): Ditto.
11321 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11322 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11323 * i386-tdep.c (i386_gdbarch_init): Ditto.
11324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11326 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11327 * mips-tdep.c (mips_gdbarch_init): Ditto.
11328 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11329 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11330 * s390-tdep.c (s390_gdbarch_init): Ditto.
11331 * sh-tdep.c (sh_gdbarch_init): Ditto.
11332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11333 * v850-tdep.c (v850_gdbarch_init): Ditto.
11334 * vax-tdep.c (vax_gdbarch_init): Ditto.
11335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11336
11337 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
11338
11339 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11340
11341 2003-04-01 Andrew Cagney <cagney@redhat.com>
11342
11343 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11344 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11345 * gdbarch.h, gdbarch.c: Re-generate.
11346 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11347 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11348 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11349 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11350 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11351 * infcmd.c (run_stack_dummy): Simplify assuming
11352 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11353 * infrun.c (handle_inferior_event): Ditto.
11354 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11355 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11356 * arm-tdep.c (arm_gdbarch_init): Ditto.
11357 * avr-tdep.c (avr_gdbarch_init): Ditto.
11358 * cris-tdep.c (cris_gdbarch_init): Ditto.
11359 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11360 * frv-tdep.c (frv_gdbarch_init): Ditto.
11361 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11362 * i386-tdep.c (i386_gdbarch_init): Ditto.
11363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11365 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11366 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11367 * mips-tdep.c (mips_gdbarch_init): Ditto.
11368 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11369 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11370 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11371 * s390-tdep.c (s390_gdbarch_init): Ditto.
11372 * sh-tdep.c (sh_gdbarch_init): Ditto.
11373 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11374 * v850-tdep.c (v850_gdbarch_init): Ditto.
11375 * vax-tdep.c (vax_gdbarch_init): Ditto.
11376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11377
11378 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
11379
11380 * symfile.c (symfile_relocate_debug_section): Update call to
11381 bfd_simple_get_relocated_section_contents.
11382
11383 2003-03-31 Andrew Cagney <cagney@redhat.com>
11384
11385 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11386 * gdbarch.h, gdbarch.c: Regenerate.
11387 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11388 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11389 available.
11390 * frame.h (generic_fix_call_dummy): Delete declaration.
11391 * dummy-frame.h: Update comment.
11392 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11393 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11394 fix_call_dummy.
11395 * sh-tdep.c (sh_gdbarch_init): Ditto.
11396 * s390-tdep.c (s390_gdbarch_init): Ditto.
11397 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11398 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11400 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11401 * i386-tdep.c (i386_gdbarch_init): Ditto.
11402 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11403 * frv-tdep.c (frv_gdbarch_init): Ditto.
11404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11405 * cris-tdep.c (cris_gdbarch_init): Ditto.
11406 * avr-tdep.c (avr_gdbarch_init): Ditto.
11407 * arm-tdep.c (arm_gdbarch_init): Ditto.
11408
11409 2003-03-31 J. Brobecker <brobecker@gnat.com>
11410
11411 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11412 (INIT_FRAME_AP): Likewise.
11413 (EXTRA_FRAME_INFO): Likewise.
11414
11415 2003-03-31 Andrew Cagney <cagney@redhat.com>
11416
11417 * gdbarch.sh: Include "symfile.h".
11418 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11419 * gdbarch.h, gdbarch.c: Re-generate.
11420 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11421 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11422 call_dummy_address, the default is at entry_point_address.
11423 * v850-tdep.c (v850_gdbarch_init): Ditto.
11424 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11425 * sh-tdep.c (sh_gdbarch_init): Ditto.
11426 * s390-tdep.c (s390_gdbarch_init): Ditto.
11427 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11428 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11429 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11430 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11431 * i386-tdep.c (i386_gdbarch_init): Ditto.
11432 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11433 * frv-tdep.c (frv_gdbarch_init): Ditto.
11434 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11435 * cris-tdep.c (cris_gdbarch_init): Ditto.
11436 * arm-tdep.c (arm_gdbarch_init): Ditto.
11437
11438 2003-03-31 Andrew Cagney <cagney@redhat.com>
11439
11440 * gdbarch.sh (CALL_DUMMY_P): Delete.
11441 * gdbarch.h, gdbarch.c: Re-generate.
11442 * inferior.h (CALL_DUMMY_P): Delete macro.
11443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11444 * vax-tdep.c (vax_gdbarch_init): Update.
11445 * v850-tdep.c (v850_gdbarch_init): Update.
11446 * sparc-tdep.c (sparc_gdbarch_init): Update.
11447 * sh-tdep.c (sh_gdbarch_init): Update.
11448 * s390-tdep.c (s390_gdbarch_init): Update.
11449 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11450 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11451 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11452 * mips-tdep.c (mips_gdbarch_init): Update.
11453 * mcore-tdep.c (mcore_gdbarch_init): Update.
11454 * m68k-tdep.c (m68k_gdbarch_init): Update.
11455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11456 * ia64-tdep.c (ia64_gdbarch_init): Update.
11457 * i386-tdep.c (i386_gdbarch_init): Update.
11458 * h8300-tdep.c (h8300_gdbarch_init): Update.
11459 * frv-tdep.c (frv_gdbarch_init): Update.
11460 * d10v-tdep.c (d10v_gdbarch_init): Update.
11461 * cris-tdep.c (cris_gdbarch_init): Update.
11462 * breakpoint.c (deprecated_frame_in_dummy): Update.
11463 * avr-tdep.c (avr_gdbarch_init): Update.
11464 * alpha-tdep.c (alpha_gdbarch_init): Update.
11465 * arm-tdep.c (arm_gdbarch_init): Update.
11466 * dummy-frame.c (dummy_frame_this_id): Update comments.
11467 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11468 * frame.c (legacy_get_prev_frame): Ditto.
11469 * valops.c (call_function_by_hand): Delete function.
11470 (hand_function_call): Rename to call_function_by_hand
11471
11472 2003-03-30 Andrew Cagney <cagney@redhat.com>
11473
11474 2002-11-10 Klee Dienes <kdienes@apple.com>
11475 * value.h (struct value): Update comment.
11476
11477 2003-03-30 Andrew Cagney <cagney@redhat.com>
11478
11479 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11480 D10V_FP_REGNUM.
11481 (d10v_gdbarch_init): Do not set fp_regnum.
11482
11483 * frame.c (get_frame_base): Force ID initialization.
11484 (get_prev_frame): Move computation of the frame ID from here ...
11485 (get_frame_id): ... to here.
11486 (legacy_get_prev_frame): Mark the frame ID as valid.
11487 * frame.h (struct frame_info): Add field "id_p".
11488
11489 2003-03-30 Mark Kettenis <kettenis@gnu.org>
11490
11491 * i386-tdep.c (i386_store_struct_return): Removed.
11492 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11493
11494 2003-03-30 Andrew Cagney <cagney@redhat.com>
11495
11496 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11497 * gdbarch.h, gdbarch.c: Regenerate.
11498 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11500 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11501 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11502 * i386-tdep.c (i386_gdbarch_init): Ditto.
11503 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11504 * cris-tdep.c (cris_gdbarch_init): Ditto.
11505 * vax-tdep.c (vax_gdbarch_init): Ditto.
11506 * s390-tdep.c (s390_gdbarch_init): Ditto.
11507 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11508 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11509 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11510 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11511 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11512 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11513 * sparc-tdep.c (sparc_gdbarch_init): Update.
11514 * sh-tdep.c (sh_gdbarch_init): Update.
11515 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11516 * mips-tdep.c (mips_gdbarch_init): Update.
11517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11518 * ia64-tdep.c (ia64_gdbarch_init): Update.
11519 * frv-tdep.c (frv_gdbarch_init): Update.
11520 * avr-tdep.c (avr_gdbarch_init): Update.
11521 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11522 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11523 instead of when push_dummy_call is not available.
11524
11525 2003-03-30 Andrew Cagney <cagney@redhat.com>
11526
11527 * infttrace.c: Include "gdbthread.h".
11528 (parent_attach_all): Fix function signature.
11529 (call_ptrace): Update call.
11530 * Makefile.in (infttrace.o): Update dependencies.
11531
11532 2003-03-30 Andrew Cagney <cagney@redhat.com>
11533
11534 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11535 PUSH_RETURN_ADDRESS.
11536 * gdbarch.h, gdbarch.c: Regenerate.
11537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11538 * x86-64-tdep.c (x86_64_init_abi): Update.
11539 * v850-tdep.c (v850_gdbarch_init): Update.
11540 * sparc-tdep.c (sparc_gdbarch_init): Update.
11541 * sh-tdep.c (sh_gdbarch_init): Update.
11542 * s390-tdep.c (s390_gdbarch_init): Update.
11543 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11545 * mips-tdep.c (mips_gdbarch_init): Update.
11546 * mcore-tdep.c (mcore_gdbarch_init): Update.
11547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11548 * ia64-tdep.c (ia64_gdbarch_init): Update.
11549 * i386-tdep.c (i386_gdbarch_init): Update.
11550 * h8300-tdep.c (h8300_gdbarch_init): Update.
11551 * frv-tdep.c (frv_gdbarch_init): Update.
11552 * cris-tdep.c (cris_gdbarch_init): Update.
11553 * avr-tdep.c (avr_gdbarch_init): Update.
11554 * arm-tdep.c (arm_gdbarch_init): Update.
11555 * valops.c (hand_function_call): Update.
11556
11557 2003-03-29 Andrew Cagney <cagney@redhat.com>
11558
11559 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11560 sizeof_call_dummy_words.
11561 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11562 define.
11563 * gdbarch.h: Regenerate.
11564
11565 2003-03-29 Andrew Cagney <cagney@redhat.com>
11566
11567 * infttrace.h: New file.
11568 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11569 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11570 (hpread_read_doc_function_type): Detect an initialized type1.
11571 (hpread_quick_traverse): Initialize mod_name_string.
11572 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11573 (som_solib_get_solib_by_pc): Declare.
11574 (so_lib_thread_start_addr): Declare.
11575 (no_shared_libraries): Declare.
11576 * somread.c (init_import_symbols): Make static. Add forward
11577 declaration.
11578 * config/pa/nm-hppah.h: Include "infttrace.h" for
11579 parent_attach_all.
11580 (hppa_insert_hw_watchpoint): Declare.
11581 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11582 * hppah-nat.c: Include "gdb_string.h".
11583 (parent_attach_all): Delete extern declaration, moved to
11584 "infttrace.h".
11585 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11586 int.
11587 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11588 * Makefile.in (infttrace_h): Define.
11589 (hpread.o): Update dependencies.
11590 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11591 * hppa-hpux-tdep.c: Include "gdb_string.h".
11592 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11593 * infrun.c (handle_inferior_event): Always initialize
11594 stepped_after_stopped_by_watchpoint. Add default and remove
11595 fallthrough in switch statement.
11596 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11597 parameter to int.
11598 (hppa_remove_hw_watchpoint): Ditto.
11599
11600 2003-03-29 Andrew Cagney <cagney@redhat.com>
11601
11602 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11603 offset.
11604
11605 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
11606
11607 * arm-tdep.c (arm_push_arguments): Delete.
11608 (struct stack_item): New type.
11609 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11610 (arm_store_struct_return): Delte.
11611 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11612 arm_push_arguments or arm_store_struct_return.
11613
11614 2003-03-28 Andrew Cagney <cagney@redhat.com>
11615
11616 * Makefile.in (d10v-tdep.o): Update dependencies.
11617 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11618 * d10v-tdep.c: Include "remote.h".
11619 (target_resume_hook): Delete extern declaration.
11620 (target_wait_loop_hook): Ditto.
11621 (tdisassemble_command): Eliminate assignment in "if" conditional.
11622 (d10v_ts2_register_sim_regno): Eliminate call to
11623 legacy_register_sim_regno.
11624 (d10v_ts3_register_sim_regno): Ditto.
11625
11626 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11627
11628 * thread.c: Reindented.
11629 * lin-lwp.c: Ditto.
11630 * linux-proc.c: Ditto.
11631
11632 2003-03-28 Bob Rossi <bob_rossi@cox.net>
11633
11634 * MAINTAINERS (write after approval): Add myself.
11635
11636 2003-03-27 Theodore A. Roth <troth@openavr.org>
11637
11638 * objc-exp.y: Add missing semi-colons.
11639
11640 2003-03-27 Andrew Cagney <cagney@redhat.com>
11641
11642 * regcache.c (write_sp): Delete function and references.
11643 * inferior.h (write_sp): Delete declaration.
11644 * valops.c (hand_function_call): Replace write_sp with
11645 TARGET_WRITE_SP.
11646 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11647 (sparc_pop_frame): Ditto.
11648
11649 2003-03-27 Andrew Cagney <cagney@redhat.com>
11650
11651 * NEWS: Mention removal of support for hppa*-*-bsd* and
11652 hppa*-*-osf* natives, and hppa*-*-pro* target.
11653 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11654 * config/pa/xm-pa.h: Obsolete file.
11655 * config/pa/xm-hppab.h: Obsolete file.
11656 * config/pa/nm-hppab.h: Obsolete file.
11657 * config/pa/tm-hppab.h: Obsolete file.
11658 * config/pa/tm-hppao.h: Obsolete file.
11659 * config/pa/nm-hppao.h: Obsolete file.
11660 * config/pa/tm-pro.h: Obsolete file.
11661 * config/pa/hppaosf.mt: Obsolete file.
11662 * config/pa/hppaosf.mh: Obsolete file.
11663 * config/pa/hppapro.mt: Obsolete file.
11664 * config/pa/hppabsd.mt: Obsolete file.
11665 * config/pa/hppabsd.mh: Obsolete file.
11666 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11667 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11668 hppa*-*-osf*.
11669
11670 2003-03-27 Andrew Cagney <cagney@redhat.com>
11671
11672 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11673 push_arguments. Don't set push_return_address or write_sp.
11674 (d10v_push_dummy_call): Replace d10v_push_arguments.
11675 (d10v_push_return_address, d10v_write_sp): Delete function,
11676 handled by push_dummy_call.
11677
11678 2003-03-26 Andrew Cagney <cagney@redhat.com>
11679
11680 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11681 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11682 regcache and dummy_addr parameters.
11683 * gdbarch.h, gdbarch.c: Re-generate.
11684 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11685 available; assume it will handle stack alignment and return
11686 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11687 legacy_push_arguments.
11688 (legacy_push_arguments): Rename default_push_arguments.
11689 * value.h (legacy_push_arguments): Rename default_push_arguments.
11690 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11691 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11692 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11693 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11694 * config/i386/tm-symmetry.h: Update.
11695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11696 * x86-64-tdep.c (x86_64_init_abi): Update.
11697 * v850-tdep.c (v850_gdbarch_init): Update.
11698 * sparc-tdep.c (sparc_gdbarch_init): Update.
11699 * sh-tdep.c (sh_gdbarch_init): Update.
11700 * s390-tdep.c (s390_gdbarch_init): Update.
11701 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11703 * mips-tdep.c (mips_gdbarch_init): Update.
11704 * mcore-tdep.c (mcore_gdbarch_init): Update.
11705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11706 * ia64-tdep.c (ia64_gdbarch_init): Update.
11707 * i386-tdep.c (i386_gdbarch_init): Update.
11708 * hppa-tdep.c (hppa_gdbarch_init): Update.
11709 * h8300-tdep.c (h8300_gdbarch_init): Update.
11710 * frv-tdep.c (frv_gdbarch_init): Update.
11711 * d10v-tdep.c (d10v_gdbarch_init): Update.
11712 * cris-tdep.c (cris_gdbarch_init): Update.
11713 * avr-tdep.c (avr_gdbarch_init): Update.
11714 * arm-tdep.c (arm_gdbarch_init): Update.
11715 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11716 * alpha-tdep.c (alpha_gdbarch_init): Update.
11717
11718 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11719
11720 * signals/signals.c (do_target_signal_to_host): Correct realtime
11721 signal range test.
11722
11723 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11724
11725 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11726 (struct sal_chain, map_catch_names): Remove.
11727 (catch_exception_command_1): Don't call
11728 handle_gnu_4_16_catch_command.
11729
11730 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11731
11732 From Mark Dettinger <dettinge@de.ibm.com>:
11733 * dwarf2cfi.c (read_2u): Increment pointer by two.
11734
11735 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11736
11737 * signals/signals.c: Fix typos in last change.
11738
11739 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11740
11741 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11742 not already defined. Use __SIGRTMIN if available.
11743 (target_signal_from_host): Remove SIGRTMIN block.
11744 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11745 the signal is within the realtime range.
11746
11747 2003-03-25 Adam Fedor <fedor@gnu.org>
11748
11749 * Makefile.in (infrun.o): Add $(language_h)
11750 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11751 for language specific trampolines.
11752 * language.h (struct language_defn): Add skip_trampoline.
11753 (skip_language_trampoline): Declare.
11754 * language.c (unk_lang_trampoline, skip_language_trampoline):
11755 New functions.
11756 (unknown_language_defn, auto_language_defn, local_language_defn):
11757 Add ukn_lang_trampoline.
11758 * ada-lang.c (ada_language_defn): Add NULL for language
11759 specific skip_trampoline.
11760 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11761 scm-lang.c: Likewise.
11762 * objc-lang.c (objc_skip_trampoline): New function.
11763 (objc_language_defn): Add objc_skip_trampoline.
11764
11765 2003-03-25 Andrew Cagney <cagney@redhat.com>
11766
11767 * frame.c (get_prev_frame): Delay validating a frame's ID -
11768 non-NULL, didn't go backwards - until an attempt to unwind it to
11769 the previous frame.
11770
11771 2003-03-25 Andrew Cagney <cagney@redhat.com>
11772
11773 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11774 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11775 * gdbarch.h, gdbarch.c: Re-generate.
11776 * config/sparc/tm-sparc.h
11777 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11778 * sparc-tdep.c (sparc_gdbarch_init): Set
11779 deprecated_extra_stack_alignment_needed.
11780 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11782 extra_stack_alignment_needed.
11783 * v850-tdep.c (v850_gdbarch_init): Ditto.
11784 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11785 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11786 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11787 * cris-tdep.c (cris_gdbarch_init): Ditto.
11788 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11790
11791 2003-03-25 Andrew Cagney <cagney@redhat.com>
11792
11793 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11794 STORE_STRUCT_RETURN.
11795 * gdbarch.h, gdbarch.c: Regenerate.
11796 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11797 (d10v_push_arguments): Set the struct return register.
11798 (d10v_gdbarch_init): Update.
11799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11800 * x86-64-tdep.c (x86_64_init_abi): Update.
11801 * vax-tdep.c (vax_gdbarch_init): Update.
11802 * v850-tdep.c (v850_gdbarch_init): Update.
11803 * sparc-tdep.c (sparc_gdbarch_init): Update.
11804 * sh-tdep.c (sh_gdbarch_init): Update.
11805 * s390-tdep.c (s390_gdbarch_init): Update.
11806 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11807 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11809 * mips-tdep.c (mips_gdbarch_init): Update.
11810 * mcore-tdep.c (mcore_gdbarch_init): Update.
11811 * m68k-tdep.c (m68k_gdbarch_init): Update.
11812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11813 * ia64-tdep.c (ia64_gdbarch_init): Update.
11814 * i386-tdep.c (i386_gdbarch_init): Update.
11815 * hppa-tdep.c (hppa_gdbarch_init): Update.
11816 * h8300-tdep.c (h8300_gdbarch_init): Update.
11817 * frv-tdep.c (frv_gdbarch_init): Update.
11818 * cris-tdep.c (cris_gdbarch_init): Update.
11819 * avr-tdep.c (avr_gdbarch_init): Update.
11820 * arm-tdep.c (arm_gdbarch_init): Update.
11821 * alpha-tdep.c (alpha_gdbarch_init): Update.
11822
11823 2003-03-25 Andrew Cagney <cagney@redhat.com>
11824
11825 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11826 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11827 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11828 * gdbarch.h, gdbarch.c: Regenerate.
11829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11830 call_dummy_stack_adjust_p.
11831 * vax-tdep.c (vax_gdbarch_init): Ditto.
11832 * v850-tdep.c (v850_gdbarch_init): Ditto.
11833 * sh-tdep.c (sh_gdbarch_init): Ditto.
11834 * s390-tdep.c (s390_gdbarch_init): Ditto.
11835 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11836 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11837 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11838 * mips-tdep.c (mips_gdbarch_init): Ditto.
11839 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11840 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11842 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11843 * i386-tdep.c (i386_gdbarch_init): Ditto.
11844 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11845 * frv-tdep.c (frv_gdbarch_init): Ditto.
11846 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11847 * cris-tdep.c (cris_gdbarch_init): Ditto.
11848 * avr-tdep.c (avr_gdbarch_init): Ditto.
11849 * arm-tdep.c (arm_gdbarch_init): Ditto.
11850 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11851 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11852 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11853 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11854 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11855 call_dummy_stack_adjust_p.
11856 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11857 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11858 * sparc-tdep.c (sparc32_push_arguments): Update.
11859 * valops.c (hand_function_call): Update.
11860
11861 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11862
11863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11864 set_gdbarch_char_signed.
11865
11866 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11867
11868 PR cli/548
11869 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11870
11871 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11872
11873 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11874 (_initialize_arm_tdep): Don't set tm_print_insn.
11875
11876 2003-03-24 Adam Fedor <fedor@gnu.org>
11877
11878 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11879 * objc-lang.h: Add multiple inclusion protection.
11880 (start_msglist, add_msglist, end_msglist): Additional declarations.
11881
11882 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11883
11884 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11885 value was renamed to ARM_FLOAT_SOFT_FPA.
11886
11887 2003-03-23 Andrew Cagney <cagney@redhat.com>
11888
11889 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11890 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11891 * gdbarch.h, gdbarch.c: Regenerate.
11892 * valops.c (hand_function_call): Update.
11893 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11894 * frame.c (legacy_saved_regs_this_id): Update.
11895 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11896 * dummy-frame.h: Update.
11897 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11898 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11899 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11900 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11901 * config/m68k/tm-sun3.h: Update.
11902 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11904 * x86-64-tdep.c (x86_64_init_abi): Update.
11905 * vax-tdep.c (vax_gdbarch_init): Update.
11906 * v850-tdep.c (v850_gdbarch_init): Update.
11907 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11908 * sh-tdep.c (sh_gdbarch_init): Update.
11909 * s390-tdep.c (s390_gdbarch_init): Update.
11910 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11911 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11912 (frame_get_saved_regs): Update.
11913 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11914 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11915 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11916 * mips-tdep.c (mips_gdbarch_init): Update.
11917 * mcore-tdep.c (mcore_gdbarch_init): Update.
11918 * m68k-tdep.c (m68k_gdbarch_init): Update.
11919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11920 * ia64-tdep.c (ia64_gdbarch_init): Update.
11921 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11922 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11923 (i386_interix_back_one_frame): Update.
11924 * hppa-tdep.c (hppa_gdbarch_init): Update.
11925 (hppa_init_extra_frame_info): Update.
11926 * h8300-tdep.c (h8300_gdbarch_init): Update.
11927 * frv-tdep.c (frv_gdbarch_init): Update.
11928 * cris-tdep.c (cris_gdbarch_init): Update.
11929 * avr-tdep.c (avr_gdbarch_init): Update.
11930 * arm-tdep.c (arm_gdbarch_init): Update.
11931 * alpha-tdep.c (alpha_gdbarch_init): Update.
11932
11933 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11934
11935 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11936 (arm_get_fp_model): Declare.
11937 * arm-tdep.c (fp_model_strings): New string array.
11938 (arm_fp_model, current_fp_model): New variables.
11939 (arm_get_fp_model): New function.
11940 (arm_set_fp): New function.
11941 (set_fp_model_sfunc): New function.
11942 (show_fp_model): New function.
11943 (_initialize_arm_tdep): Add new command to set/show the FPU.
11944 (arm_extract_return_value): Use arm_get_fp_model.
11945 (arm_store_return_value): Likewise.
11946 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11947 to initialize the floating-point data types.
11948 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11949 model is FPA.
11950
11951 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11952
11953 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11954 the current setting of each value.
11955 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11956 new_set and new_show. Use add_setshow_cmd_full and
11957 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11958 commands and add new version as subcommands of "set/show arm".
11959
11960 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11961
11962 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11963 (set_arm_command, show_arm_command): New functions.
11964 (_initialize_arm_tdep): Add them.
11965 (num_disassembly_options): Renamed from num_flavor_options.
11966 (valid_disassembly_styles): Renamed from valid_flavors.
11967 (disassembly_style): Renamed from disassembly_flavor.
11968 (set_disassembly_style_sfunc): Renamed from
11969 set_disassembly_flavor_sfunc.
11970 (set_disassembly_style): Renamed from set_disassembly_flavor.
11971 (arm_othernames): Updated.
11972 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11973 command. Add "set/show arm disassembly" commands. Deprecate
11974 "othernames" command.
11975
11976 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11977
11978 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11979 (arm-tdep.o): Depend on elf_arm_h.
11980
11981 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11982
11983 * Makefile.in (coff_internal_h): Define.
11984 (arm-tdep.o): Update dependencies.
11985
11986 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11987
11988 * arm-tdep.c (prologue_cache): Delete.
11989 (check_prologue_cache, save_prologue_cache): Delete.
11990 (arm_scan_prologue): Don't check or update the prologue_cache.
11991 (arm_gdb_arch_init): Don't initialize it.
11992 (_initialize_arm_tdep): Likewise.
11993
11994 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11995
11996 * MAINTAINERS (tui): Maintainer of tui code.
11997
11998 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11999
12000 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
12001 (i386-cygwin-tdep.o): Add dependencies.
12002 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
12003 * i386-cygwin-tdep.c: New file.
12004 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
12005 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
12006
12007 2003-03-20 Andrew Cagney <cagney@redhat.com>
12008
12009 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
12010 (handle_inferior_event): Remove code calling
12011 DYNAMIC_TRAMPOLINE_NEXTPC.
12012
12013 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
12014 already has a full path.
12015
12016 * main.c (gdb_main): Return 1.
12017 (captured_main): Call error to report an invalid interpreter.
12018
12019 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
12020 * alpha-osf1-tdep.c: Include "gdb_string.h".
12021
12022 2003-03-19 J. Brobecker <brobecker@gnat.com>
12023
12024 Continuing work to convert the hppa targets to multiarch partial.
12025
12026 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
12027 method, now that hppa_push_dummy_frame has a conformant prototype.
12028 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
12029 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
12030 for the switch to multiarch partial.
12031
12032 2003-03-19 Kevin Buettner <kevinb@redhat.com>
12033
12034 * mdebugread.c (parse_symbol): For stEnd, we're done counting
12035 when iss is issNull.
12036
12037 2003-03-18 Kevin Buettner <kevinb@redhat.com>
12038
12039 * mips-tdep.c (mips_register_name): Fix fencepost error involving
12040 NUM_REGS bounds check.
12041
12042 2003-03-18 Kevin Buettner <kevinb@redhat.com>
12043
12044 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
12045 * mips-tdep.c (gdb_assert.h): Include.
12046 (mips_generic_reg_names, mips_processor_reg_names): Make static.
12047 (mips_register_name): Handle integer registers explicitly. Add
12048 bounds checking.
12049 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
12050 (mips_lsi33k_reg_names): Don't list integer registers; they're
12051 handled by mips_register_name() now.
12052 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
12053 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
12054 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
12055 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
12056 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
12057
12058 2003-03-18 Andrew Cagney <cagney@redhat.com>
12059
12060 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
12061 a void pointer.
12062 * gdbtypes.h (print_scalar_formatted): Update declaration.
12063 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
12064
12065 2003-03-18 J. Brobecker <brobecker@gnat.com>
12066
12067 * infrun.c (observer.h): Add #include.
12068 (normal_stop): Add call to observer_notify_normal_stop.
12069 * Makefile.in (infrun.o): Add dependency on observer.h.
12070
12071 2003-03-18 J. Brobecker <brobecker@gnat.com>
12072
12073 Continuing work to convert the hppa targets to multiarch partial.
12074 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
12075 parameter. Reformat comment.
12076 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
12077 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
12078 to match new profile.
12079
12080 2003-03-18 J. Brobecker <brobecker@gnat.com>
12081
12082 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
12083 appear to be working in any case.
12084
12085 2003-03-18 J. Brobecker <brobecker@gnat.com>
12086
12087 * observer.c (observer_test_first_observer): New static variable.
12088 (observer_test_second_observer): Likewise.
12089 (observer_test_third_observer): Likewise.
12090 (observer_test_first_notification_function): New static function.
12091 (observer_test_second_notification_function): Likewise.
12092 (observer_test_third_notification_function): Likewise.
12093
12094 2003-03-17 J. Brobecker <brobecker@gnat.com>
12095
12096 * hppa-tdep.c (gdb_assert.h): Add missing #include.
12097 * somsolib.c (gdb_assert.h): Likewise.
12098 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
12099 (somsolib.o): Likewise.
12100
12101 2003-03-17 Andrew Cagney <cagney@redhat.com>
12102
12103 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
12104 BFD. Simplify setting of di.endian.
12105
12106 2003-03-17 Andrew Cagney <cagney@redhat.com>
12107
12108 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
12109 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
12110
12111 From Elena Zannoni <ezannoni@redhat.com>
12112 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
12113 vector and floating-point parameters.
12114 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
12115 convention.
12116 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
12117
12118 2003-03-17 Fernando Nasser <fnasser@redhat.com>
12119
12120 * MAINTAINERS: Remove my name from several maintainership roles.
12121
12122 2003-03-17 Andrew Cagney <cagney@redhat.com>
12123
12124 Fix frame off-by-one bug.
12125 * frame-unwind.h (frame_this_id_ftype): Replace
12126 frame_unwind_id_ftype.
12127 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
12128 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
12129 with "prev_register".
12130 * frame-unwind.c (frame_unwind_find_by_pc): Return
12131 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
12132 comment.
12133 * dummy-frame.c (cached_find_dummy_frame): Delete function.
12134 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
12135 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
12136 (dummy_frame_unwind): Update.
12137 * sentinel-frame.c (sentinel_frame_prev_register): Replace
12138 sentinel_frame_register_unwind.
12139 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
12140 (sentinel_frame_unwinder): Update.
12141 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12142 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
12143 * frame.c (create_sentinel_frame): Update. Initialize
12144 "prologue_cache" instead of "unwind_cache".
12145 (frame_register_unwind): Call this frame's prev_register with the
12146 next frame and this frame's prologue cache.
12147 (get_prev_frame): Simplify. Always call prev frame's this_id with
12148 this frame and prev frame's prologue cache. Document that this
12149 call is shifted one to the left when compared to the
12150 frame_register_unwind call.
12151 (legacy_saved_regs_prev_register): Replace
12152 frame_saved_regs_register_unwind.
12153 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
12154 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
12155 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12156 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
12157 (d10v_frame_unwind): Update.
12158 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
12159 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
12160 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
12161 "saved_regs" with "this_saved_regs".
12162
12163 2003-03-16 Andrew Cagney <cagney@redhat.com>
12164
12165 * frame.c (frame_pop): Don't call target_store_registers. Fix
12166 problem reported by Mark Kettenis.
12167
12168 2003-03-16 Mark Kettenis <kettenis@gnu.org>
12169
12170 * i386-tdep.c (i386_register_type): Renamed from
12171 i386_register_virtual_type. Adjust function signature.
12172 (i386_gdbarch_init): Set register_type instead of
12173 deprecated_max_register_raw_size,
12174 deprecated_max_register_virtual_size and register_virtual_type.
12175
12176 2003-03-14 Andrew Cagney <cagney@redhat.com>
12177
12178 * frame.c (get_prev_frame): When a legacy frame, always call
12179 legacy_get_prev_frame. Simplify unwind code using assumption that
12180 the unwinder is new.
12181 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12182 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12183 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12184
12185 2003-03-14 Andrew Cagney <cagney@redhat.com>
12186
12187 * frame.c (get_saved_register): Delete function.
12188 * frame.h (get_saved_register): Delete declaration.
12189 * xstormy16-tdep.c: Update comment.
12190 * regcache.h: Update comments.
12191 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12192 get_saved_register and extract_address, use
12193 frame_read_unsigned_register.
12194 (sparc_frame_saved_pc): Ditto.
12195 (sparc_get_saved_register): Instead of get_saved_register, use
12196 frame_register.
12197 (sparc_pop_frame): Ditto.
12198 * findvar.c: Update comments.
12199 (value_of_register): Call frame_register instead of
12200 get_saved_register.
12201 (value_from_register): Ditto.
12202 * config/sparc/tm-sparc.h: Update comment.
12203 * breakpoint.c: Update comment.
12204
12205 2003-03-14 Andrew Cagney <cagney@redhat.com>
12206
12207 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12208 GET_SAVED_REGISTER.
12209 * gdbarch.h, gdbarch.c: Re-generate.
12210 * frame.h: Update comments.
12211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12212 * x86-64-tdep.c (x86_64_init_abi): Update.
12213 * sparc-tdep.c (sparc_gdbarch_init): Update.
12214 * sh-tdep.c (sh_gdbarch_init): Update.
12215 * mips-tdep.c (mips_gdbarch_init): Update.
12216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12217 * cris-tdep.c (cris_gdbarch_init): Update.
12218 * ia64-tdep.c (ia64_gdbarch_init): Update.
12219 * frame.c (frame_register): Update.
12220 (get_saved_register): Update.
12221 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
12222
12223 2003-03-13 Andrew Cagney <cagney@redhat.com>
12224
12225 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12226 * gdbarch.h, gdbarch.c: Regenerate.
12227 * valops.c (hand_function_call): Update comment.
12228 * stack.c (return_command): Update comment.
12229 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12230 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12232 * x86-64-tdep.c (x86_64_init_abi): Update.
12233 * vax-tdep.c (vax_gdbarch_init): Update.
12234 * v850-tdep.c (v850_gdbarch_init): Update.
12235 * sparc-tdep.c (sparc_gdbarch_init): Update.
12236 * sh-tdep.c (sh_gdbarch_init): Update.
12237 * s390-tdep.c (s390_gdbarch_init): Update.
12238 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12239 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12240 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12241 * mips-tdep.c (mips_gdbarch_init): Update.
12242 * mcore-tdep.c (mcore_gdbarch_init): Update.
12243 * m68k-tdep.c (m68k_gdbarch_init): Update.
12244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12245 * ia64-tdep.c (ia64_gdbarch_init): Update.
12246 * i386-tdep.c (i386_gdbarch_init): Update.
12247 * hppa-tdep.c (hppa_gdbarch_init): Update.
12248 * h8300-tdep.c (h8300_gdbarch_init): Update.
12249 * frv-tdep.c (frv_gdbarch_init): Update.
12250 * cris-tdep.c (cris_gdbarch_init): Update.
12251 * avr-tdep.c (avr_gdbarch_init): Update.
12252 * arm-tdep.c (arm_gdbarch_init): Update.
12253 * alpha-tdep.c (alpha_gdbarch_init): Update.
12254
12255 2003-03-13 Andrew Cagney <cagney@redhat.com>
12256
12257 * frame.c (legacy_frame_p): New function.
12258 (get_prev_frame): Use legacy_frame_p.
12259 * frame.h (legacy_frame_p): Declare.
12260
12261 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12262
12263 * MAINTAINERS (write after approval): Alphabetically
12264 listing corrected.
12265
12266 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12267
12268 * MAINTAINERS (write after approval): Add myself.
12269
12270 2003-03-12 Andrew Cagney <cagney@redhat.com>
12271
12272 * frame.c (get_prev_frame): Rename the frame parameter to
12273 "this_frame".
12274 (get_next_frame, legacy_get_prev_frame): Ditto.
12275
12276 2003-03-12 Andrew Cagney <cagney@redhat.com>
12277
12278 * frame.c (get_current_frame): Check target_has_registers before
12279 checking target_has_stack.
12280 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12281 instead of deprecated_selected_frame.
12282 * findvar.c (value_of_register): Pass "frame", not
12283 deprecated_selected_frame, to value_of_builtin_reg.
12284
12285 2003-03-12 Andrew Cagney <cagney@redhat.com>
12286
12287 * regcache.c (regcache_cooked_write_signed): New function.
12288 (regcache_cooked_write_unsigned): New function.
12289 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12290 (regcache_cooked_read_signed): Fix regnum in range assertion.
12291 * regcache.h (regcache_cooked_write_signed): Declare.
12292 (regcache_cooked_write_unsigned): Declare.
12293
12294 2003-03-12 Andrew Cagney <cagney@redhat.com>
12295
12296 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12297 * gdbarch.h, gdbarch.c: Re-generate.
12298 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12299 * x86-64-tdep.h: Update.
12300 * x86-64-tdep.c (x86_64_init_abi): Update.
12301 * v850-tdep.c (v850_gdbarch_init): Update.
12302 * sparc-tdep.c (sparc_gdbarch_init): Update.
12303 * sh-tdep.c (sh_gdbarch_init): Update.
12304 * s390-tdep.c (s390_gdbarch_init): Update.
12305 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12306 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12309 * mips-tdep.c (mips_gdbarch_init): Update.
12310 * mcore-tdep.c (mcore_gdbarch_init): Update.
12311 * m68k-tdep.c (m68k_gdbarch_init): Update.
12312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12313 * ia64-tdep.c (ia64_gdbarch_init): Update.
12314 * i386-tdep.c (i386_gdbarch_init): Update.
12315 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12316 * hppa-tdep.c (hppa_gdbarch_init): Update.
12317 * h8300-tdep.c (h8300_gdbarch_init): Update.
12318 * frv-tdep.c (frv_gdbarch_init): Update.
12319 * cris-tdep.c (cris_gdbarch_init): Update.
12320 * avr-tdep.c (avr_gdbarch_init): Update.
12321 * arm-tdep.c (arm_gdbarch_init): Update.
12322 * alpha-tdep.c (alpha_gdbarch_init): Update.
12323 * sh-tdep.c (sh_init_extra_frame_info): Update.
12324 (sh64_init_extra_frame_info): Update.
12325 * ns32knbsd-nat.c (frame_num_args): Update.
12326 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12327 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12328 (xstormy16_frame_chain_valid): Update.
12329 * vax-tdep.c (vax_saved_pc_after_call): Update.
12330 * v850-tdep.c (v850_frame_chain): Update.
12331 (v850_pop_frame): Update.
12332 (v850_init_extra_frame_info): Update.
12333 * sparc-tdep.c (setup_arbitrary_frame): Update.
12334 * ns32k-tdep.c (umax_frame_num_args): Update.
12335 * s390-tdep.c (s390_pop_frame_regular): Update.
12336 * mn10300-tdep.c (mn10300_frame_chain): Update.
12337 (mn10300_pop_frame_regular): Update.
12338 (mn10300_init_extra_frame_info): Update.
12339 * mips-tdep.c (mips_init_frame_pc_first): Update.
12340 (mips_frame_chain): Update.
12341 (mips_pop_frame): Update.
12342 * mcore-tdep.c (mcore_frame_chain): Update.
12343 (mcore_pop_frame): Update.
12344 (mcore_init_extra_frame_info): Update.
12345 * arch-utils.c (init_frame_pc_default): Update.
12346 * m68k-tdep.c (isi_frame_num_args): Update.
12347 (delta68_frame_num_args): Update.
12348 (news_frame_num_args): Update.
12349 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12350 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12351 (alpha_frame_chain): Update.
12352 (alpha_pop_frame): Update.
12353 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12354 (hppa_init_extra_frame_info): Update.
12355 (hppa_frame_chain): Update.
12356 (hppa_frame_chain_valid): Update.
12357 * cris-tdep.c (cris_init_extra_frame_info): Update.
12358 * avr-tdep.c (avr_init_extra_frame_info): Update.
12359 * arm-tdep.c (arm_frame_chain_valid): Update.
12360 (arm_init_extra_frame_info): Update.
12361 (arm_pop_frame): Update.
12362 * frame.c (frame_pc_unwind): Update.
12363 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12364 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12365 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12366 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12367 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12368 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12369
12370 2003-03-12 Andrew Cagney <cagney@redhat.com>
12371
12372 Eliminate the need for POP_FRAME.
12373 * frame.c (do_frame_unwind_register): New function.
12374 (frame_pop): When no POP_FRAME, pop the frame using register
12375 unwind and a scratch regcache.
12376 (frame_saved_regs_pop): Delete function.
12377 (trad_frame_unwinder): Update.
12378 * d10v-tdep.c (d10v_frame_pop): Delete function.
12379 (d10v_frame_unwind): Update.
12380 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12381 (sentinel_frame_unwinder): Update.
12382 * dummy-frame.c (dummy_frame_pop): Delete function.
12383 (dummy_frame_unwind): Update.
12384 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12385 (struct frame_unwind): Update.
12386
12387 2003-03-11 Kevin Buettner <kevinb@redhat.com>
12388
12389 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12390 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12391 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12392 Do range checks on register number obtained from debugging info.
12393 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12394 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12395 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12396 mapping function.
12397 (do_fp_register_row): Fix typo which caused double type to be
12398 used when attempting to unpack a float.
12399
12400 2003-03-11 J. Brobecker <brobecker@gnat.com>
12401
12402 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12403
12404 2003-03-11 Andrew Cagney <cagney@redhat.com>
12405
12406 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12407 frame. Problem found by Corinna Vinschen.
12408
12409 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12410
12411 * doublest.c (floatformat_from_length): Accept also
12412 the real size of 'long double' type.
12413
12414 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
12415
12416 From Klee Dienes <kdienes@apple.com>:
12417 * breakpoint.c (bpstat_copy): Copy the command lines as well
12418 as the old value, to match what is freed in bpstat_clear.
12419
12420 2003-03-10 David Carlton <carlton@math.stanford.edu>
12421
12422 * minsyms.c (add_minsym_to_hash_table): Replace
12423 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12424 (compare_minimal_symbols, compact_minimal_symbols)
12425 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12426 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12427 of DEPRECATED_SYMBOL_MATCHES_NAME.
12428 (lookup_minimal_symbol_solib_trampoline): Ditto.
12429
12430 2003-03-10 Andrew Cagney <cagney@redhat.com>
12431
12432 * regcache.h (regcache_cooked_read_ftype): Define.
12433 (regcache_save, regcache_restore): Add a cooked_read parameter.
12434 * regcache.c (regcache_save, regcache_restore): Update.
12435 (do_cooked_read): New function.
12436 (regcache_cpy): Pass do_cooked_read to regcache_save and
12437 regcache_restore.
12438
12439 2003-03-10 Andrew Cagney <cagney@redhat.com>
12440
12441 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12442 * gdbarch.h, gdbarch.c: Re-generate.
12443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12444 * x86-64-tdep.h: Update.
12445 * x86-64-tdep.c (x86_64_init_abi): Update.
12446 * v850-tdep.c (v850_gdbarch_init): Update.
12447 * sparc-tdep.c (sparc_gdbarch_init): Update.
12448 * sh-tdep.c (sh_gdbarch_init): Update.
12449 * s390-tdep.c (s390_gdbarch_init): Update.
12450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12451 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12452 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12454 * mips-tdep.c (mips_gdbarch_init): Update.
12455 * mcore-tdep.c (mcore_gdbarch_init): Update.
12456 * m68k-tdep.c (m68k_gdbarch_init): Update.
12457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12458 * ia64-tdep.c (ia64_gdbarch_init): Update.
12459 * i386-tdep.c (i386_gdbarch_init): Update.
12460 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12461 * hppa-tdep.c (hppa_gdbarch_init): Update.
12462 * h8300-tdep.c (h8300_gdbarch_init): Update.
12463 * frv-tdep.c (frv_gdbarch_init): Update.
12464 * cris-tdep.c (cris_gdbarch_init): Update.
12465 * avr-tdep.c (avr_gdbarch_init): Update.
12466 * arm-tdep.c (arm_gdbarch_init): Update.
12467 * alpha-tdep.c (alpha_gdbarch_init): Update.
12468 * sh-tdep.c (sh_init_extra_frame_info): Update.
12469 (sh64_init_extra_frame_info): Update.
12470 * ns32knbsd-nat.c (frame_num_args): Update.
12471 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12472 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12473 (xstormy16_frame_chain_valid): Update.
12474 * vax-tdep.c (vax_saved_pc_after_call): Update.
12475 * v850-tdep.c (v850_frame_chain): Update.
12476 (v850_pop_frame): Update.
12477 (v850_init_extra_frame_info): Update.
12478 * sparc-tdep.c (setup_arbitrary_frame): Update.
12479 * ns32k-tdep.c (umax_frame_num_args): Update.
12480 * s390-tdep.c (s390_pop_frame_regular): Update.
12481 * mn10300-tdep.c (mn10300_frame_chain): Update.
12482 (mn10300_pop_frame_regular): Update.
12483 (mn10300_init_extra_frame_info): Update.
12484 * mips-tdep.c (mips_init_frame_pc_first): Update.
12485 (mips_frame_chain): Update.
12486 (mips_pop_frame): Update.
12487 * mcore-tdep.c (mcore_frame_chain): Update.
12488 (mcore_pop_frame): Update.
12489 (mcore_init_extra_frame_info): Update.
12490 * arch-utils.c (init_frame_pc_default): Update.
12491 * m68k-tdep.c (isi_frame_num_args): Update.
12492 (delta68_frame_num_args): Update.
12493 (news_frame_num_args): Update.
12494 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12495 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12496 (alpha_frame_chain): Update.
12497 (alpha_pop_frame): Update.
12498 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12499 (hppa_init_extra_frame_info): Update.
12500 (hppa_frame_chain): Update.
12501 (hppa_frame_chain_valid): Update.
12502 * cris-tdep.c (cris_init_extra_frame_info): Update.
12503 * avr-tdep.c (avr_init_extra_frame_info): Update.
12504 * arm-tdep.c (arm_frame_chain_valid): Update.
12505 (arm_init_extra_frame_info): Update.
12506 (arm_pop_frame): Update.
12507 * frame.c (frame_pc_unwind): Update.
12508 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12509 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12510 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12511 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12512 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12513 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12514
12515 2003-03-10 Andrew Cagney <cagney@redhat.com>
12516
12517 * gdbarch.sh (gdbarch_unwind_pc): New method.
12518 * gdbarch.h, gdbarch.c: Regenerate.
12519 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12520 but use read_pc and FRAME_SAVED_PC as fall backs.
12521 (frame_saved_regs_pc_unwind): Delete function.
12522 (trad_frame_unwinder): Update.
12523 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12524 (struct frame_unwind): Update.
12525 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12526 (dummy_frame_unwind): Update.
12527 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12528 (sentinel_frame_unwinder): Update.
12529 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12530 (d10v_frame_unwind): Update.
12531 (d10v_unwind_pc): New function.
12532 (d10v_gdbarch_init): Set unwind_pc.
12533
12534 2003-03-10 Andrew Cagney <cagney@redhat.com>
12535
12536 * gdbarch.h: Re-generate.
12537
12538 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12539 PC.
12540 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12541 the PC register.
12542
12543 2003-03-08 Mark Kettenis <kettenis@gnu.org>
12544
12545 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12546
12547 2003-03-08 Andrew Cagney <cagney@redhat.com>
12548
12549 * cli-out.c: Update copyright.
12550 (cli_out_data): Define typedef. Use instead of ui_out_data.
12551
12552 2003-03-08 Andrew Cagney <cagney@redhat.com>
12553
12554 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12555 the result.
12556
12557 2003-03-07 Andrew Cagney <cagney@redhat.com>
12558
12559 * gdbarch.sh: Don't generate two macro definitions when an
12560 undefined macro taking no arguments.
12561 * gdbarch.h: Regenerate.
12562
12563 2002-03-07 Michal Ludvig <mludvig@suse.cz>
12564
12565 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12566 (x86_64_unwind_dummy_id): New functions.
12567 (x86_64_init_abi): Register these two new functions.
12568
12569 2003-03-07 Michal Ludvig <mludvig@suse.cz>
12570
12571 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12572 (x86_64_skip_prologue): Move prologue detection to
12573 separate function.
12574 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12575
12576 2003-03-05 Andrew Cagney <cagney@redhat.com>
12577
12578 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12579 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12580 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12581 to use unwind_dummy_id when a dummy frame.
12582 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12583 predicate.
12584 * gdbarch.h, gdbarch.c: Regneerate.
12585
12586 2003-03-05 Andrew Cagney <cagney@redhat.com>
12587
12588 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12589 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12590 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12591 values.
12592
12593 2003-03-05 Andrew Cagney <cagney@redhat.com>
12594
12595 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12596 (struct d10v_unwind_cache): Delete field "frameless". Replace
12597 "next_addr" with "sp_offset". Add "r11_offset".
12598 (d10v_frame_unwind_cache): Update.
12599 (prologue_find_regs): Update. When "mv r11, sp", save the
12600 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12601 RN was saved in r11_offset.
12602
12603 2003-03-05 Andrew Cagney <cagney@redhat.com>
12604
12605 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12606 cached PC value in the next frame.
12607
12608 2003-03-05 Andrew Cagney <cagney@redhat.com>
12609
12610 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12611 "id_unwind_cache" with "id".
12612 (frame_id_unwind): Delete declaration.
12613 * frame.c (frame_id_unwind): Delete function.
12614 (get_prev_frame): Call the frame id unwind method directly. Store
12615 the returned next frame's ID value in NEXT_FRAME. Note that there
12616 is a problem with the wrong unwind ID being called with the wrong
12617 unwind cache.
12618
12619 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12620
12621 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12622
12623 2003-03-05 James Ingham <jingham@apple.com>
12624 Daniel Jacobowitz <drow@mvista.com>
12625
12626 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12627 (auto_cp_abi): New variable.
12628 (current_cp_abi, num_cp_abis): Make static.
12629 (CP_ABI_MAX): Define.
12630 (cp_abis): Turn into an array.
12631 (value_virtual_fn_field): Fix formatting.
12632 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12633 takes a pointer.
12634 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12635 (list_cp_abis, _initialize_cp_abi): New functions.
12636 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12637 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12638 switch_to_cp_abi. Update prototype for register_cp_abi.
12639 * Makefile.in (cp-abi.o): Update dependencies.
12640 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12641 instead of switch_to_cp_abi.
12642 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12643 register_cp_abi.
12644 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12645 register_cp_abi.
12646 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12647
12648 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12649
12650 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12651 * dwarf2loc.c: Include "regcache.h".
12652 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12653 register_size.
12654 * Makefile.in (dwarf2loc.o): Update dependencies.
12655
12656 2003-03-04 Theodore A. Roth <troth@openavr.org>
12657
12658 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12659 number of io registers reported by remote target is not a multiple of
12660 step.
12661
12662 2003-03-04 David Carlton <carlton@math.stanford.edu>
12663
12664 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12665 (lookup_symbol_aux_psymtabs): Update call to
12666 lookup_partial_symbol.
12667 (lookup_transparent_type, find_main_psymtab)
12668 (make_symbol_overload_list): Ditto.
12669
12670 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12671
12672 * MAINTAINERS (Write after approval): Update my email address.
12673
12674 2003-03-03 Andrew Cagney <cagney@redhat.com>
12675
12676 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12677 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12678 predicate. Replace MAX_REGISTER_RAW_SIZE.
12679 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12680 MAX_REGISTER_VIRTUAL_SIZE.
12681 * regcache.c (legacy_max_register_raw_size): New function.
12682 (legacy_max_register_virtual_size): New function.
12683 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12684 (MAX_REGISTER_RAW_SIZE): Define.
12685 (legacy_max_register_raw_size): Declare.
12686 (legacy_max_register_virtual_size): Declare.
12687 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12688 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12689 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12690 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12691 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12692 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12693 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12694 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12695 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12697 * vax-tdep.c (vax_gdbarch_init): Update.
12698 * v850-tdep.c (v850_gdbarch_init): Update.
12699 * sparc-tdep.c (sparc_gdbarch_init): Update.
12700 * sh-tdep.c (sh_gdbarch_init): Update.
12701 * s390-tdep.c (s390_gdbarch_init): Update.
12702 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12703 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12704 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12705 * mips-tdep.c (mips_gdbarch_init): Update.
12706 * mcore-tdep.c (mcore_gdbarch_init): Update.
12707 * m68k-tdep.c (m68k_gdbarch_init): Update.
12708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12709 * ia64-tdep.c (ia64_gdbarch_init): Update.
12710 * i386-tdep.c (i386_gdbarch_init): Update.
12711 * hppa-tdep.c (hppa_gdbarch_init): Update.
12712 * h8300-tdep.c (h8300_gdbarch_init): Update.
12713 * frv-tdep.c (frv_gdbarch_init): Update.
12714 * cris-tdep.c (cris_gdbarch_init): Update.
12715 * avr-tdep.c (avr_gdbarch_init): Update.
12716 * arm-tdep.c (arm_gdbarch_init): Update.
12717 * alpha-tdep.c (alpha_gdbarch_init): Update.
12718 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12719 max_register_raw_size or max_register_virtual_size.
12720
12721 2003-03-03 David Carlton <carlton@math.stanford.edu>
12722
12723 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12724 SYMBOL_MATCHES_NAME, add comment.
12725 (SYMBOL_MATCHES_NATURAL_NAME): New.
12726 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12727 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12728 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12729 * symtab.c (lookup_partial_symbol): Use
12730 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12731 unhelpful comment.
12732 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12733 SYMBOL_MATCHES_NAME.
12734 Fix for PR c++/33.
12735
12736 2003-03-03 David Carlton <carlton@math.stanford.edu>
12737
12738 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12739 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12740 by regexp matching against SYMBOL_NATURAL_NAME.
12741
12742 2003-03-03 David Carlton <carlton@math.stanford.edu>
12743
12744 * linespec.c (find_method): Extract code into collect_methods.
12745 (collect_methods): New.
12746
12747 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12748
12749 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12750 get_frame_base.
12751
12752 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12753 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12754
12755 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12756
12757 * arch-utils.c (generic_register_byte): Fix to use the loop index
12758 and not regnum when summing the size of all registers up to regnum.
12759
12760 2003-03-01 Andrew Cagney <cagney@redhat.com>
12761
12762 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12763 FRAME_INIT_SAVED_REGS.
12764 * gdbarch.h, gdbarch.c: Regenerate.
12765 * stack.c (frame_info): Update.
12766 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12767 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12768 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12769 * ns32k-tdep.c (ns32k_pop_frame): Update.
12770 * mips-tdep.c (mips_pop_frame): Update.
12771 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12772 * ia64-tdep.c (ia64_frame_chain): Update.
12773 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12774 (ia64_frameless_function_invocation): Update.
12775 (ia64_init_extra_frame_info): Update.
12776 (ia64_pop_frame_regular): Update.
12777 * frame.h (struct frame_info): Update comment.
12778 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12779 * frame.c (frame_saved_regs_register_unwind): Update.
12780 (frame_saved_regs_register_unwind): Update.
12781 (deprecated_generic_get_saved_register): Update.
12782 * cris-tdep.c: Update comment.
12783 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12784 Rename macro.
12785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12786 * x86-64-tdep.c (x86_64_init_abi): Update.
12787 * vax-tdep.c (vax_gdbarch_init): Update.
12788 * v850-tdep.c (v850_gdbarch_init): Update.
12789 * sparc-tdep.c (sparc_gdbarch_init): Update.
12790 * sh-tdep.c (sh_gdbarch_init): Update.
12791 * s390-tdep.c (s390_gdbarch_init): Update.
12792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12793 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12794 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12795 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12796 * mips-tdep.c (mips_gdbarch_init): Update.
12797 * mcore-tdep.c (mcore_gdbarch_init): Update.
12798 * m68k-tdep.c (m68k_gdbarch_init): Update.
12799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12800 * ia64-tdep.c (ia64_gdbarch_init): Update.
12801 * i386-tdep.c (i386_gdbarch_init): Update.
12802 * frv-tdep.c (frv_gdbarch_init): Update.
12803 * avr-tdep.c (avr_gdbarch_init): Update.
12804 * arm-tdep.c (arm_gdbarch_init): Update.
12805 * alpha-tdep.c (alpha_gdbarch_init): Update.
12806
12807 2003-03-01 Andrew Cagney <cagney@redhat.com>
12808
12809 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12810 option enum and switch. When no windows, set the interpreter to
12811 INTERP_CONSOLE.
12812
12813 2003-03-01 Andrew Cagney <cagney@redhat.com>
12814
12815 * main.c (captured_main): Replace magic option characters with an
12816 enum.
12817
12818 2003-03-01 Andrew Cagney <cagney@redhat.com>
12819
12820 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12821 INIT_EXTRA_FRAME_INFO.
12822 * gdbarch.h, gdbarch.c: Regenerate.
12823 * arm-tdep.c: Update comments.
12824 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12825 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12826 * frame.h, avr-tdep.c: Ditto.
12827 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12828 (create_new_frame, legacy_get_prev_frame): Ditto.
12829 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12830 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12832 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12833 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12834 * v850-tdep.c (v850_gdbarch_init): Ditto.
12835 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12836 * sh-tdep.c (sh_gdbarch_init): Ditto.
12837 * s390-tdep.c (s390_gdbarch_init): Ditto.
12838 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12839 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12840 * mips-tdep.c (mips_gdbarch_init): Ditto.
12841 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12843 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12844 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12845 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12846 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12847 * frv-tdep.c (frv_gdbarch_init): Ditto.
12848 * cris-tdep.c (cris_gdbarch_init): Ditto.
12849 * avr-tdep.c (avr_gdbarch_init): Ditto.
12850 * arm-tdep.c (arm_gdbarch_init): Ditto.
12851 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12852 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12853
12854 2003-03-01 Andrew Cagney <cagney@redhat.com>
12855
12856 * gdbarch.sh (register_type): New function with predicate.
12857 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12858 * gdbarch.h, gdbarch.c: Re-generate.
12859 * arch-utils.c (generic_register_byte): Use generic_register_size.
12860 (generic_register_size): When available, use
12861 gdbarch_register_type.
12862 * regcache.c (init_regcache_descr): When available, initialize the
12863 register type array using gdbarch_register_type. If the
12864 architecture supplies gdbarch_register_type, do not use the legacy
12865 regcache layout.
12866 * d10v-tdep.c (d10v_register_type): Replace
12867 d10v_register_virtual_type.
12868 (d10v_gdbarch_init): Set register_type instead of
12869 register_virtual_type.
12870
12871 2003-03-01 Andrew Cagney <cagney@redhat.com>
12872
12873 * Makefile.in (ax-gdb.o): Update dependencies.
12874 * ax-gdb.c: Include "regcache.h".
12875 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12876 * findvar.c (value_of_register): Ditto.
12877 * infcmd.c (default_print_registers_info): Ditto.
12878
12879 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12880
12881 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12882 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12883
12884 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12885
12886 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12887 of STREQ.
12888
12889 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12890
12891 * Makefile.in (dwarf2loc.o): Update dependencies.
12892 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12893 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12894 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12895 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12896 (locexpr_tracepoint_var_ref): New function.
12897 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12898
12899 2003-02-28 Andrew Cagney <cagney@redhat.com>
12900
12901 * regcache.c (register_size): New function.
12902 * regcache.h (register_size): Declare
12903 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12904 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12905
12906 2003-02-28 David Carlton <carlton@math.stanford.edu>
12907
12908 * linespec.c (decode_compound): Extract code into find_method.
12909 (find_method): New.
12910
12911 2003-02-28 J. Brobecker <brobecker@gnat.com>
12912
12913 * Makefile.in: Add rules to build and link in observer.o.
12914
12915 2003-02-27 J. Brobecker <brobecker@gnat.com>
12916
12917 * observer.c: Minor comments edits.
12918
12919 2003-02-27 J. Brobecker <brobecker@gnat.com>
12920
12921 * observer.h, observer.c: New file.
12922
12923 2003-02-27 Andrew Cagney <cagney@redhat.com>
12924
12925 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12926
12927 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12928
12929 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12930 (M6812_OP_STS_EXT): Likewise.
12931 (m6811_prologue): Use the above to recognize prologue.
12932 (m6812_prologue): Likewise.
12933
12934 2003-02-27 David Carlton <carlton@math.stanford.edu>
12935
12936 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12937 SYMBOL_PRINT_NAME.
12938 (compare_psymbols): Ditto.
12939 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12940
12941 2003-02-27 Michael Snyder <msnyder@redhat.com>
12942
12943 * f-lang.c (build_fortran_types): New function.
12944 (_initialize_f_language): Gdbarch-register built-in fortran types.
12945 * doublest.c (extract_floating): Fix warning text.
12946
12947 2003-02-27 Andrew Cagney <cagney@redhat.com>
12948
12949 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12950 predicate. Replaces PUSH_DUMMY_FRAME.
12951 * gdbarch.h, gdbarch.c: Regnerate.
12952 * valops.c (hand_function_call): Update. Call
12953 generic_push_dummy_frame directly.
12954 * vax-tdep.c (vax_gdbarch_init): Update.
12955 * sparc-tdep.c (sparc_gdbarch_init): Update.
12956 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12957 * m68k-tdep.c (m68k_gdbarch_init): Update.
12958 * hppa-tdep.c (hppa_gdbarch_init): Update.
12959 * alpha-tdep.c (alpha_gdbarch_init): Update.
12960 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12961 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12962 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12964 push_dummy_frame to generic_push_dummy_frame.
12965 * v850-tdep.c (v850_gdbarch_init): Ditto.
12966 * sh-tdep.c (sh_gdbarch_init): Ditto.
12967 * s390-tdep.c (s390_gdbarch_init): Ditto.
12968 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12969 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12970 * mips-tdep.c (mips_gdbarch_init): Ditto.
12971 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12973 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12974 * i386-tdep.c (i386_gdbarch_init): Ditto.
12975 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12976 * frv-tdep.c (frv_gdbarch_init): Ditto.
12977 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12978 * cris-tdep.c (cris_gdbarch_init): Ditto.
12979 * avr-tdep.c (avr_gdbarch_init): Ditto.
12980 * arm-tdep.c (arm_gdbarch_init): Ditto.
12981
12982 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12983
12984 * mips-tdep.c (show_mips_abi): New function.
12985 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12986 command ``show mips abi''.
12987
12988 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12989
12990 From Elena Zannoni <ezannoni@redhat.com>
12991 * dbxread.c (process_one_symbol): Only record line 0 if one or
12992 more sline entries have been seen for the function.
12993
12994 2003-02-26 Michael Chastain <mec@shout.net>
12995
12996 * configure: Regenerate with autoconf 000227.
12997
12998 2003-02-26 Michael Chastain <mec@shout.net>
12999
13000 Close PR build/660.
13001 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
13002 for old libc5/glibc.
13003 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
13004
13005 2003-02-26 Kris Warkentin <kewarken@qnx.com>
13006
13007 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
13008 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
13009
13010 2003-02-26 Michael Chastain <mec@shout.net>
13011
13012 * configure.in: New variable HAVE_UINTPTR_T.
13013 * configure, config.in: Regenerated.
13014
13015 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
13016
13017 Fix PR build/1097.
13018 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
13019
13020 2003-02-25 Andrew Cagney <cagney@redhat.com>
13021
13022 * frame.c (get_prev_frame): Add comment on check for
13023 inside_entry_func. Only check for inside_entry_file when not a
13024 dummy and not a sentinel. Check that the new frame is not inner
13025 to the old frame.
13026
13027 2003-02-25 Andrew Cagney <cagney@redhat.com>
13028
13029 * frame.c (frame_debug): New variable.
13030 (_initialize_frame): Add "set/show debug frame" command.
13031 (get_prev_frame): When frame_debug, print reason why unwind
13032 failed.
13033
13034 2003-02-25 Michael Chastain <mec@shout.net>
13035
13036 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
13037 to avoid uintptr_t definition problems.
13038
13039 2003-02-25 David Carlton <carlton@math.stanford.edu>
13040
13041 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
13042 (SYMBOL_LINKAGE_NAME): Ditto.
13043 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
13044 SYMBOL_LINKAGE_NAME.
13045 (struct general_symbol_info): Expand comment.
13046 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
13047 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
13048 (SYMBOL_MATCHES_REGEXP): Ditto.
13049 * symtab.c (symbol_natural_name): New function.
13050 * objfiles.h: Replace all uses of SYMBOL_NAME by
13051 DEPRECATED_SYMBOL_NAME.
13052 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
13053 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
13054 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
13055 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
13056 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
13057 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
13058 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
13059 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
13060 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
13061 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
13062 * ada-exp.y: Ditto.
13063 * ada-exp.y: Update copyright.
13064 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
13065 * cp-valprint.c: Ditto.
13066
13067 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
13068
13069 * infptrace.c (detach): Do not flag error if ptrace detach fails
13070 and errno is set to ESRCH.
13071
13072 2003-02-24 Andrew Cagney <cagney@redhat.com>
13073
13074 * infptrace.c (udot_info): Change type of udot_off to long. Use
13075 paddr when printing udot_off's value.
13076
13077 2003-02-24 David Carlton <carlton@math.stanford.edu>
13078
13079 * symtab.c (make_symbol_overload_list): Only read in partial
13080 symtabs containing a matching partial symbol.
13081
13082 2003-02-24 David Carlton <carlton@math.stanford.edu>
13083
13084 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
13085 do the comparison, not strcmp.
13086 * symfile.c (compare_psymbols): Ditto.
13087 * defs.h: Declare strcmp_iw_ordered.
13088 * utils.c (strcmp_iw_ordered): New function.
13089
13090 2003-02-24 Jim Blandy <jimb@redhat.com>
13091
13092 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
13093 support, shared libs): Remove my name from here, to better reflect
13094 reality.
13095
13096 2003-02-24 Kris Warkentin <kewarken@qnx.com>
13097
13098 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
13099 (target_ops): Add to_have_continuable_watchpoint.
13100 * target.c (update_current_target): Add INHERIT line for
13101 to_have_continuable_watchpoint.
13102 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
13103 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
13104 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
13105 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
13106
13107 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
13108
13109 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
13110 maintainership.
13111
13112 2003-02-24 Kris Warkentin <kewarken@qnx.com>
13113
13114 * solib.c (solib_open): Call target defined search function after
13115 failing with solib-search-path.
13116 * solist.h (target_so_ops): Add find_and_open_solib function hook and
13117 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
13118
13119 2003-02-24 Kris Warkentin <kewarken@qnx.com>
13120
13121 * MAINTAINERS: Add myself to Write After section.
13122
13123 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
13124
13125 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
13126
13127 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
13128
13129 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
13130 (m68hc11_add_reggroups): New function.
13131 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
13132 (m68hc11_gdbarch_init): Install the reggroups.
13133 (_initialize_m68hc11_tdep): Initialize them.
13134
13135 2003-02-21 James E Wilson <wilson@tuliptree.org>
13136
13137 * MAINTAINERS: Update my email address.
13138
13139 2003-02-21 David Carlton <carlton@math.stanford.edu>
13140
13141 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
13142
13143 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
13144
13145 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
13146 * symtab.h: Add opaque declarations of struct axs_value and
13147 struct agent_expr.
13148 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
13149 (struct location_funcs): New type.
13150 (struct symbol): Add "loc" to aux_value.
13151 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
13152 * dwarf2read.c: Include "dwarf2expr.h".
13153 (dwarf2_symbol_mark_computed): New function.
13154 (read_func_scope): Use it.
13155 (var_decode_location): New function.
13156 (new_symbol): Use it.
13157 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
13158
13159 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
13160 (dwarf2expr_h, dwarf2loc_h): New variables.
13161 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
13162 (dwarf2expr.o, dwarf2loc.o): New rules.
13163 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
13164 * buildsym.c (finish_block): Handle LOC_COMPUTED and
13165 LOC_COMPUTED_ARG.
13166 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
13167 * m2-exp.y (yylex): Likewise.
13168 * printcmd.c (address_info, print_frame_args): Likewise.
13169 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13170 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13171 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13172 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13173 * symtab.c (lookup_block_symbol): Likewise.
13174
13175 2003-02-20 Adam Fedor <fedor@gnu.org>
13176
13177 * symtab.h: Remove objc_specific struct
13178 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13179 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13180 Have language_objc use cplus_specific struct.
13181
13182 2003-02-20 Tom Tromey <tromey@redhat.com>
13183
13184 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13185 TYPE_NAME, when printing a String value. PR java/1075.
13186
13187 2003-02-20 Adam Fedor <fedor@gnu.org>
13188
13189 * objc-lang.h (find_methods): Remove declaration.
13190 * objc-lang.c (find_methods): Make static.
13191
13192 2003-02-20 Christopher Faylor <cgf@redhat.com>
13193
13194 * win32-nat.c (get_image_name): Check return value from
13195 ReadProcessMemory.
13196 (child_xfer_memory): Ditto.
13197
13198 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
13199
13200 * configure.in (TARGET_SYSTEM_ROOT): Set default to
13201 ${exec_prefix}/${target_alias}/sys-root. Match explicit
13202 '${exec_prefix}' (in addition to the expansion thereof) as
13203 relocatable.
13204 * configure: Rebuilt.
13205
13206 2003-02-20 David Carlton <carlton@math.stanford.edu>
13207
13208 * symtab.c (search_symbols): Revert the search_symbols part of my
13209 2002-12-23 patch. Add comment.
13210
13211 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13212
13213 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13214 * dbxread.c (elfstab_build_psymtabs): Don't call
13215 install_minimal_symbols.
13216 (stabsect_build_psymtabs): Likewise.
13217 * elfread.c (elf_symfile_read): Call install_minimal_symbols
13218 earlier.
13219 * somread.c (som_symfile_read): Call install_minimal_symbols
13220 and do_cleanups earlier.
13221 * nlmread.c (nlm_symfile_read): Likewise.
13222 * mdebugread.c (elfmdebug_build_psymtabs): Call
13223 install_minimal_symbols and make appropriate cleanups.
13224
13225 2003-02-20 Kevin Buettner <kevinb@redhat.com>
13226
13227 * solib.c (reload_shared_libraries): New function.
13228 (_initialize_solib): Add callbacks for ``set solib-search-path''
13229 and ``set solib-absolute-prefix''.
13230
13231 2003-02-20 David Carlton <carlton@math.stanford.edu>
13232
13233 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13234 expand comment.
13235 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13236 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13237 * ada-typeprint.c (ada_typedef_print): Ditto.
13238 * ax-gdb.c (gen_var_ref): Ditto.
13239 * breakpoint.c (print_one_breakpoint): Ditto.
13240 * buildsym.c (finish_block): Ditto.
13241 * c-valprint.c (c_val_print): Ditto.
13242 * expprint.c (print_subexp): Ditto.
13243 * findvar.c (locate_var_value): Ditto.
13244 * infcmd.c (jump_command): Ditto.
13245 * linespec.c (decode_line_2, decode_compound): Ditto.
13246 * maint.c (maintenance_translate_address): Ditto.
13247 * objc-lang.c (compare_selectors, compare_classes): Ditto.
13248 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13249 Ditto.
13250 * p-valprint.c (pascal_val_print): Ditto.
13251 * stabsread.c (define_symbol): Ditto.
13252 * stack.c (print_frame, frame_info, print_block_frame_locals)
13253 (print_frame_arg_vars, return_command): Ditto.
13254 * symfile.c (compare_symbols, compare_psymbols): Ditto.
13255 * symmisc.c (print_symbol): Ditto.
13256 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13257 (compare_search_syms, print_symbol_info, print_msymbol_info)
13258 (rbreak_command): Ditto.
13259 * tracepoint.c (tracepoints_info): Ditto.
13260 * typeprint.c (typedef_print): Ditto.
13261 * valops.c (value_of_variable, hand_function_call): Ditto.
13262 * cli/cli-cmds.c (edit_command, list_command): Ditto.
13263 * ada-typeprint.c: Update Copyright.
13264 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13265 * tracepoint.c, cli/cli-cmds.c: Ditto.
13266
13267 2003-02-20 Kevin Buettner <kevinb@redhat.com>
13268
13269 * frame.c (generic_unwind_get_saved_register): Make non-static.
13270 * frame.h (generic_unwind_get_saved_register): Declare.
13271 * mips-tdep.c (read_next_frame_reg): Fetch register from
13272 current regcache when frame is NULL.
13273 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13274 that must be NULL.
13275 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13276 instead of frame_register_unwind().
13277
13278 2003-02-20 Andrew Cagney <ac131313@redhat.com>
13279
13280 * remote-sim.c (gdbsim_insert_breakpoint)
13281 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13282 code.
13283
13284 2003-02-20 Andrew Cagney <ac131313@redhat.com>
13285
13286 * remote.c (_initialize_remote): Add commands "set/show remote
13287 hardware-watchpoint-limit" and "set/show remote
13288 hardware-breakpoint-limit".
13289 (remote_hw_watchpoint_limit): Initialize to -1.
13290 (remote_hw_breakpoint_limit): Ditto.
13291 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13292
13293 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13294
13295 * coff-pe-read.c: New file - support reading of minimal symbols from a
13296 portable executable using the export table.
13297 * coff-pe-read.h: New file.
13298 * coffread.c: Include coff-pe-read.h.
13299 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13300 debugging symbols found.
13301 * Makefile.in (SFILES): Add coff-pe-read.o.
13302 (coff_pe_read_h): Define.
13303 (COMMON_OBS): Add coff-pe-read.o.
13304 (coffread.o): Add coff_pe_read_h dependency.
13305 (coff-pe-read.o): New target.
13306
13307 2003-02-19 David Carlton <carlton@math.stanford.edu>
13308
13309 * Makefile.in (SFILES): Add block.c.
13310 (block_h): New.
13311 (COMMON_OBS): Add block.o.
13312 (block.o): New.
13313 (x86-64-tdep.o): Add $(block_h).
13314 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13315 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13316 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13317 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13318 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13319 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13320 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13321 * value.h: Add opaque declaration for struct block.
13322 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13323 * ada-lang.h: Ditto.
13324 * x86-64-tdep.c: #include "block.h"
13325 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13326 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13327 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13328 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13329 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13330 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13331 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13332 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13333 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13334 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13335 * symtab.c (block_function): Ditto.
13336 (contained_in): Ditto.
13337 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13338 block.h. Add opaque declaration for struct block.
13339 * symtab.h: Move block_function and contained_in declarations to
13340 block.h. Add opaque declarations for struct block, struct
13341 blockvector.
13342 (struct block): Move to block.h.
13343 (struct blockvector): Ditto.
13344 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13345 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13346 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13347 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13348 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13349 Ditto.
13350 * block.c: New file.
13351 * block.h: New file.
13352
13353 2003-02-19 Theodore A. Roth <troth@openavr.org>
13354
13355 * avr-tdep.c (avr_extract_return_value): Remove function.
13356 (avr_store_return_value): Remove function.
13357 (avr_extract_struct_value_address): Remove function.
13358 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13359
13360 2003-02-19 Andrew Cagney <ac131313@redhat.com>
13361
13362 * rs6000-tdep.c: Include "gdb_assert.h".
13363 (registers_e500): Add "acc" and "spefscr".
13364 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13365 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13366 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13367 really is "r0".
13368 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13369
13370 2003-02-18 Keith Seitz <keiths@redhat.com>
13371
13372 * Makefile.in: Add gdbtk-interps.c.
13373
13374 2003-02-18 Kevin Buettner <kevinb@redhat.com>
13375
13376 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13377 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13378
13379 2003-02-18 Andrew Cagney <cagney@redhat.com>
13380
13381 * symtab.h (struct objfile): Add opaque declaration.
13382
13383 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
13384
13385 From Jim Ingham <jingham@apple.com>:
13386 * dbxread.c (process_one_symbol): Use last_function_start rather
13387 than function_start_offset to find the real beginning of the
13388 current function. The latter is just the text section offset on
13389 some systems, the former is always the real function start.
13390
13391 2003-02-17 Andrew Cagney <cagney@redhat.com>
13392
13393 * configure.in: Revert ${target} != ${host}.
13394
13395 2003-02-17 Andrew Cagney <ac131313@redhat.com>
13396
13397 * configure.in (Makefile): Use the test ${target} != ${host},
13398 instead of the absence of the "nm.h" file, to determine of the
13399 configuration non-native.
13400 * configure: Regenerate.
13401
13402 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
13403
13404 From Brian Ford <ford@vss.fsi.com>
13405
13406 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13407 conditionalize tui_active test.
13408 (lookup_cmd_1): Ditto.
13409
13410 2003-02-14 Mark Kettenis <kettenis@gnu.org>
13411
13412 * configure.in: Add check for _etext.
13413 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13414 available.
13415 * config.in, configure: regenerated.
13416
13417 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
13418
13419 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13420
13421 2003-02-14 Andrew Cagney <ac131313@redhat.com>
13422
13423 * main.c (tui_version): Delete variable.
13424 (captured_main): When --tui, set interpreter_p to "tui" instead of
13425 enabling tui_version.
13426 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13427 tui_version.
13428 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13429 * cli/cli-cmds.c (disassemble_command): Ditto.
13430 * defs.h (tui_version): Delete declaration.
13431 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13432 (tui-interp.o): Add rules.
13433 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13434
13435 2003-02-14 Christopher Faylor <cgf@redhat.com>
13436
13437 * win32-nat.c (register_loaded_dll): Correctly set address range for
13438 just-loaded dll.
13439
13440 2003-02-12 Jason Molenda (jmolenda@apple.com)
13441
13442 * symmisc.c (print_objfile_statistics): Include information about
13443 the number of psymtabs and symtabs in each object file.
13444
13445 2003-02-13 Keith R Seitz <keiths@redhat.com>
13446
13447 * main.h (struct captured_main_args): Add interpreter_p.
13448 * main.c (captured_main): Initialize interpreter_p from context.
13449 * gdb.c (main): Set interpreter_p argument.
13450 * Makefile.in (gdb.o): Add dependency for interps.h.
13451
13452 2003-02-12 Andrew Cagney <ac131313@redhat.com>
13453
13454 * event-top.c (cli_command_loop): Delete declaration.
13455 (_initialize_event_loop): Delete function setting event_loop_hook.
13456 * event-top.h (cli_command_loop): Declare. Update copyright.
13457 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13458 * interps.c (current_interp_command_loop): When event_loop_p, call
13459 cli_command_loop.
13460
13461 2003-02-12 Andrew Cagney <ac131313@redhat.com>
13462
13463 * interps.h (interp_command_loop_ftype): Change return type to
13464 void.
13465
13466 2003-02-12 Michal Ludvig <mludvig@suse.cz>
13467
13468 * x86-64-tdep.c (x86_64_extract_return_value)
13469 (x86_64_store_return_value): Use regcache instead of regbuf.
13470 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13471 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13472
13473 2003-02-11 Andrew Cagney <ac131313@redhat.com>
13474
13475 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13476 * aclocal.m4: Regenerate.
13477 * configure: Regenerate.
13478
13479 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13480 TCL_LD_SEARCH_FLAGS.
13481
13482 2003-02-10 Michal Ludvig <mludvig@suse.cz>
13483
13484 * dwarf2cfi.c: Reindented.
13485
13486 2003-02-09 Andrew Cagney <ac131313@redhat.com>
13487
13488 * interps.c (clear_interpreter_hooks): Convert function definition
13489 to ISO C.
13490
13491 2003-02-07 David Carlton <carlton@math.stanford.edu>
13492
13493 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13494
13495 2003-02-07 Kevin Buettner <kevinb@redhat.com>
13496
13497 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13498 (struct type): ...to here.
13499 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13500 field.
13501 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13502 (replace_type): Set length on all type variants for a given type.
13503
13504 2003-02-07 Andrew Cagney <ac131313@redhat.com>
13505
13506 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13507 <sys/stat.h>.
13508 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
13509
13510 2003-02-06 Andrew Cagney <ac131313@redhat.com>
13511
13512 * Makefile.in (symm-nat.o): Update dependencies.
13513 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13514 (lynx-nat.o, ia64-linux-nat.): Ditto.
13515 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13516 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13517 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13518
13519 * Makefile.in (inflow_h): Define.
13520 (procfs.o, inflow.o, procfs.o): Update dependencies.
13521 * inftarg.c (child_stop): Delete extern declaration of
13522 inferior_process_group. Include "inflow.h".
13523 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13524 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13525 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13526 (our_process_group, inferior_process_group): Extern declarations.
13527
13528 * procfs.c: Include "gdb_assert.h".
13529
13530 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13531 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13532 * jv-typeprint.c (java_type_print_base): Ditto.
13533 * typeprint.c (typedef_print): Eliminate STREQ.
13534 * cli/cli-script.c (define_command, define_command): Ditto.
13535 * main.c (captured_main): Ditto.
13536 * values.c (lookup_internalvar): Ditto.
13537 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13538 within `if' conditional.
13539 * linespec.c (decode_line_2): Ditto.
13540 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13541 (bfd_openw_with_cleanup): Ditto.
13542
13543 2003-02-07 Mark Kettenis <kettenis@gnu.org>
13544
13545 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13546 legacy_extract_return_value and store_return_value to
13547 legacy_return_value.
13548
13549 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13550
13551 * win32-nat.c (get_relocated_section_addrs): New function. Find
13552 section load addresses for symbol handling in relocated DLLs.
13553 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13554
13555 2003-02-05 Fred Fish <fnf@intrinsity.com>
13556
13557 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13558 '=' and '!='.
13559 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13560 with '&' and '=='.
13561 (angel_RDI_info): Ditto.
13562 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13563 with '&' and '!='.
13564 (threads_continue_all_with_signals): Ditto.
13565
13566 2003-02-05 Jim Ingham <jingham@apple.com>
13567 Keith Seitz <keiths@redhat.com>
13568 Elena Zannoni <ezannoni@redhat.com>
13569 Andrew Cagney <ac131313@redhat.com>
13570
13571 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13572 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13573 (SUBDIR_MI_OBS): Add "mi-interp.o".
13574 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13575 (SFILES): Add "interps.c".
13576 (COMMON_OBS): Add "interps.o".
13577 (interps_h, mi_main_h): Define.
13578 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13579 (mi-main.o, main.o, event-top.o): Update dependencies.
13580 * cli/cli-interp.c: New file.
13581 * interps.h, interps.c: New files.
13582 * top.c: (gdb_init): Don't install the default interpreter, handed
13583 by captured_main.
13584 * main.c: Include "interps.h".
13585 (interpreter_p): Note that it should malloc'ed.
13586 (captured_command_loop): Call current_interp_command_loop.
13587 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13588 xfree and xstrdup when updating interpreter_p. Install the
13589 default interpreter. Add hack to stop mi1's copyright notice
13590 being encoded.
13591 * event-top.h (gdb_setup_readline): Declare.
13592 (gdb_disable_readline): Declare.
13593 * event-top.c: Include "interps.h".
13594 (display_gdb_prompt): Call current_interp_display_prompt_p.
13595 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13596 gdb_stdlog, and gdb_stdtarg.
13597 (_initialize_event_loop): Don't call gdb_setup_readline.
13598 * cli-out.c (cli_out_set_stream): New function.
13599 * cli-out.h (cli_out_set_stream): Declare.
13600
13601 2003-02-06 Mark Kettenis <kettenis@gnu.org>
13602
13603 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13604 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13605 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13606 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13607 config/i386/i386v42mp.mt: Removed.
13608
13609 2003-02-05 Mark Kettenis <kettenis@gnu.org>
13610
13611 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13612 GDB_OSABI_SOLARIS.
13613
13614 2003-02-05 Michael Chastain <mec@shout.net>
13615
13616 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13617 2.12.1 and earlier versions.
13618
13619 2003-02-05 Andrew Cagney <ac131313@redhat.com>
13620
13621 Remove orphaned hosts, targets and files.
13622 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13623 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13624 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13625 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13626 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13627 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13628 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13629 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13630 * config/sparc/tm-sp64sim.h: Delete.
13631 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13632 hosts.
13633 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13634 mips*-dec-mach3* targets.
13635
13636 2003-02-04 Michael Chastain <mec@shout.net>
13637
13638 * NEWS: Fix typo: sepcifying -> specifying.
13639
13640 2003-02-04 Michael Chastain <mec@shout.net>
13641
13642 * dwarfread.c: Add documentation on the state of dwarf-1,
13643 looking towards obsoletion.
13644
13645 2003-02-03 Michael Chastain <mec@shout.net>
13646
13647 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13648 gdb/testsuite/gdb.c++/pr-1023.exp.
13649
13650 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13651
13652 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13653 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13654
13655 * utils.c (init_page_info): Delete reference to MPW in comments.
13656 * main.c (captured_main): Delete #ifdef MPW.
13657
13658 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13659
13660 * NEWS: Note that the m32r-*-elf* is obsolete.
13661 * monitor.c (monitor_expect): Obsolete reference to m32r.
13662 * configure.tgt: Mark m32r-*-elf* as obsolete.
13663 * MAINTAINERS: Mark m32k as obsolete.
13664 * m32r-rom.c: Obsolete file.
13665 * config/m32r/m32r.mt: Obsolete file.
13666 * config/m32r/tm-m32r.h: Obsolete file.
13667 * m32r-stub.c: Obsolete file.
13668 * m32r-tdep.c: Obsolete file.
13669
13670 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13671
13672 * NEWS: Mention that the z8k-zilog-none is obsolete.
13673 * MAINTAINERS: Mark z8k as obsolete.
13674 * configure.tgt: Obsolete the z8k-*-coff* target.
13675 * config/z8k/z8k.mt: Obsolete file.
13676 * config/z8k/tm-z8k.h: Obsolete file.
13677 * z8k-tdep.c: Obsolete file.
13678
13679 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13680
13681 * NEWS: Mention that the mn10200-elf is obsolete.
13682 * configure.tgt: Obsolete mn10200-*-* target.
13683 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13684 mention that the mn10200 is obsolete.
13685 * breakpoint.h: Ditto.
13686 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13687 * config/mn10200/mn10200.mt: Obsolete file.
13688 * config/mn10200/tm-mn10200.h: Obsolete file.
13689 * mn10200-tdep.c: Obsolete file.
13690
13691 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13692
13693 * MAINTAINERS: Mark h8500 as obsolete.
13694 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13695 * findvar.c (value_from_register): Ditto.
13696 * h8500-tdep.c: Mark file as obsolete.
13697 * config/h8500/h8500.mt: Ditto.
13698 * config/h8500/tm-h8500.h: Ditto.
13699 * NEWS: Mention that h8500 is obsolete.
13700
13701 2003-02-04 David Carlton <carlton@math.stanford.edu>
13702
13703 * objfiles.c (allocate_objfile): Always set name. Add comment at
13704 start of function.
13705 * jv-lang.c (get_dynamics_objfile): Add comment.
13706
13707 2003-02-04 David Carlton <carlton@math.stanford.edu>
13708
13709 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13710 * printcmd.c (build_address_symbolic): Replace uses of
13711 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13712 SYMBOL_NAME, and asm_demangle.
13713 Update copyright.
13714
13715 2003-02-04 David Carlton <carlton@math.stanford.edu>
13716
13717 * linespec.c (decode_compound): Extract code into
13718 lookup_prefix_sym.
13719 (lookup_prefix_sym): New function.
13720
13721 2003-02-04 David Carlton <carlton@math.stanford.edu>
13722
13723 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13724 FLOAT_COERCION_BADNESS.
13725 * gdbtypes.c (rank_one_type): Replace all uses of
13726 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13727
13728 2003-02-04 Jim Blandy <jimb@redhat.com>
13729
13730 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13731 section, let dwarf_macinfo_section point to it, not
13732 dwarf_loc_section.
13733
13734 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13735
13736 Pointed out by Anton Blanchard <anton@samba.org>.
13737 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13738 (ppc_linux_at_sigtramp_return_path): Use it.
13739
13740 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13741
13742 * defs.h (streq): Add prototype.
13743 * utils.c (streq): New function.
13744
13745 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13746 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13747 * mdebugread.c (new_symbol): Likewise.
13748 * stabsread.c (define_symbol): Likewise.
13749 * coffread.c (process_coff_symbol): Likewise.
13750 * dwarfread.c (new_symbol): Likewise.
13751
13752 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13753 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13754 here.
13755 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13756 SYMBOL_INIT_DEMANGLED_NAME.
13757 * objfiles.c: Include "hashtab.h".
13758 (allocate_objfile): Call htab_set_functions_ex for the
13759 demangled_names_hash.
13760 (free_objfile): Call htab_delete for the demangled_names_hash.
13761 * objfiles.h (struct htab): Add declaration.
13762 (struct objfile): Add demangled_names_hash.
13763 * symfile.c: Include "hashtab.h".
13764 (reread_symbols): Call htab_delete for the demangled_names_hash.
13765 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13766 SYMBOL_NAME in the bcache.
13767 * symtab.c: Include "hashtab.h". Update comments.
13768 (create_demangled_names_hash, symbol_set_names): New functions.
13769 (symbol_find_demangled_name): New function, broken out from
13770 symbol_init_demangled_names.
13771 (symbol_init_demangled_names): Use it.
13772 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13773 (SYMBOL_SET_NAMES): New macro.
13774 (symbol_set_names): Add prototype.
13775
13776 2003-02-03 Jim Blandy <jimb@redhat.com>
13777
13778 Use a single, consistent representation for an empty minimal
13779 symbol table in an objfile.
13780 * objfiles.c (terminate_minimal_symbol_table): New function.
13781 (allocate_objfile): Call it.
13782 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13783 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13784 non-NULL.
13785 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13786 objfile has minimal symbols, compare minimal_symbol_count to zero,
13787 instead of comparing msymbols with NULL.
13788 * objfiles.c (have_minimal_symbols): Same.
13789 * solib-sunos.c (solib_add_common_symbols): Call
13790 terminate_minimal_symbol_table.
13791 * symfile.c (reread_symbols): Same.
13792
13793 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13794
13795 * s390-tdep.c (s390_address_class_type_flags)
13796 (s390_address_class_type_flags_to_name)
13797 (s390_address_class_name_to_type_flags): New functions.
13798 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13799 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13800
13801 2003-02-03 Michael Snyder <msnyder@redhat.com>
13802
13803 * arm-tdep.c: Fix spell-o in comment.
13804
13805 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13806
13807 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13808 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13809 error messages to contain BFD filename.
13810
13811 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13812
13813 Fix PR gdb/742 gdb/743 gdb/877
13814 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13815 (do_mixed_source_and_assembly): Use
13816 make_cleanup_ui_out_tuple_begin_end and
13817 make_cleanup_ui_out_tuple_begin_end.
13818 (do_mixed_source_and_assembly): Ditto.
13819 * thread.c (do_captured_list_thread_ids): Ditto.
13820 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13821 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13822 ui_out_tuple_end): Delete prototypes.
13823 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13824 ui_out_list_end, ui_out_tuple_end): Delete.
13825
13826 From Kevin Buettner <kevinb@redhat.com>:
13827 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13828 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13829 (do_cleanup_table_end): New functions.
13830 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13831 Use cleanups to invoke_ui_out_tuple_end().
13832 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13833 * cli/cli-setshow.c (cmd_show_list): Use
13834 make_cleanup_ui_out_tuple_begin_end.
13835
13836 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13837
13838 * frame.c (frame_unwind_register): New function.
13839 (frame_unwind_unsigned_register): Use.
13840 (frame_unwind_signed_register): Use.
13841 (frame_read_register): New function.
13842 * frame.h (frame_unwind_register): Declare.
13843 (frame_read_register): Declare.
13844
13845 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13846 and frame_unwind_register instead of read_memory, write_register
13847 and deprecated_write_register_bytes.
13848
13849 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13850
13851 * frame.h: Note that namelen can be negative.
13852 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13853 NAME's length.
13854
13855 * NEWS: Mention that the d10v's `regs' command is deprecated.
13856 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13857 (d10v_print_registers_info): New function.
13858 (show_regs): Call d10v_print_registers_info.
13859 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13860
13861 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13862
13863 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13864 lost in the previous patch.
13865
13866 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13867
13868 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13869 * stack.c (print_frame_info_base): Output complete FRAME tuple
13870 for synthesized frames.
13871
13872 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13873
13874 * mips-nat.c (zerobuf): Delete.
13875 (fetch_inferior_registers): Alloc local zerobuf.
13876 (fetch_core_registers): Alloc local zerobuf.
13877 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13878 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13879 * thread-db.c (thread_db_store_registers): Ditto.
13880 * sh-tdep.c (sh_do_register): Ditto.
13881 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13882 * remote-sim.c (gdbsim_store_register): Ditto.
13883 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13884 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13885 * monitor.c (monitor_supply_register): Ditto.
13886 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13887 * mips-nat.c (fetch_inferior_registers): Ditto.
13888 * m68klinux-nat.c (fetch_register): Ditto.
13889 * lynx-nat.c (fetch_inferior_registers): Ditto.
13890 (fetch_inferior_registers): Ditto.
13891 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13892 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13893 (hpux_thread_store_registers): Ditto.
13894 * hppah-nat.c (fetch_register): Ditto.
13895 * hppab-nat.c (fetch_register): Ditto.
13896 * hppa-tdep.c (pa_register_look_aside): Ditto.
13897 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13898 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13899
13900 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13901
13902 * gdbarch.sh: Explictly specify all method levels. When a
13903 variable with an empty level, provide a non-multi-arch default.
13904 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13905 * gdbarch.h: Re-generate.
13906 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13907 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13908
13909 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13910
13911 * defs.h (host_pointer_to_address): Delete declaration.
13912 (address_to_host_pointer): Delete declaration.
13913 * utils.c (host_pointer_to_address): Delete function.
13914 (address_to_host_pointer): Delete function.
13915 * procfs.c (procfs_address_to_host_pointer): New function.
13916 * procfs.c (proc_set_watchpoint): Use.
13917 (procfs_can_use_hw_breakpoint): Update comments.
13918 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13919 (som_solib_add): Use.
13920 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13921 * hppa-tdep.c (unwind_command): Use.
13922
13923 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13924
13925 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13926 strlen d_name.
13927
13928 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13929 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13930 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13931 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13932 (define_symbol): Update.
13933 * symfile.c (generic_load): Remove references to nindy.
13934 * symtab.c: Remove references to nindy.
13935
13936 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13937
13938 * infcmd.c (print_float_info): Delete code conditional on
13939 FLOAT_INFO.
13940 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13941 * config/m68k/nm-apollo68b.h: Ditto.
13942 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13943 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13944 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13945
13946 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13947
13948 * config/i386/tm-i386os9k.h: Removed.
13949
13950 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13951 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13952 they're identical to i[3456]86-*-sysv* now.
13953 * config/i386/i386v32.mh: Removed.
13954 * config/i386/xm-i386v32.h: Removed.
13955 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13956
13957 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13958
13959 * config/i386/i386dgux.mh: Removed.
13960 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13961
13962 * configure.in: Fix typo.
13963 * configure: Regenerated.
13964
13965 2003-01-31 David Carlton <carlton@math.stanford.edu>
13966
13967 * dwarf2read.c (dwarf2_locate_sections): Set
13968 dwarf_ranges_section.
13969
13970 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13971
13972 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13973 * utils.c: Update comments documenting legitimate uses of PTR.
13974
13975 * utils.c: Re-indent.
13976
13977 * config/djgpp/fnchange.lst: Delete nindy files.
13978 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13979 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13980 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13981 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13982 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13983 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13984 * Makefile.in (init.c): Remove nindy references.
13985 (saber_gdb): Delete rule.
13986 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13987 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13988 and a68v-nat.c.
13989 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13990 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13991 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13992 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13993 nindy-share/stop.h.
13994 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13995 * saber.suppress: Delete file.
13996
13997 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13998
13999 * dbxread.c (stabs_data): New static variable.
14000 (fill_symbuf): Support an in-memory buffer for stabs data.
14001 (stabs_seek): New function.
14002 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
14003 (read_ofile_symtab): Use stabs_seek.
14004 (elfstab_build_psymtabs): Take an asection* instead of
14005 an offset and size. Relocate the stabs data if necessary.
14006 Save the section* for dbx_psymtab_to_symtab.
14007 * dwarf2read.c: Add section variables for each debug section.
14008 (dwarf2_locate_sections): Fill them in.
14009 (dwarf2_read_section): Take an asection* argument.
14010 Relocate the section contents if necessary.
14011 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
14012 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
14013 it to dwarf2_read_section.
14014 (dwarf2_build_frame_info): Update callers.
14015 * elfread.c (elf_symfile_read): Update call to
14016 elfstab_build_psymtabs.
14017 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
14018 (DBX_STAB_SECTION): New macro.
14019 * stabsread.h (elfstab_build_psymtabs): Update prototype.
14020 * symfile.c (symfile_dummy_outputs): New function.
14021 (symfile_relocate_debug_section): New function.
14022 * symfile.h (symfile_relocate_debug_section): Add prototype.
14023
14024 2003-01-31 Richard Henderson <rth@redhat.com>
14025
14026 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
14027 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
14028 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
14029 * alpha-tdep.c (alpha_register_name): Add "unique".
14030 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
14031 (ALPHA_UNIQUE_REGNUM): New.
14032 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
14033
14034 2003-01-31 Andrew Cagney <ac131313@redhat.com>
14035
14036 * README: Remove reference to Ericsson 1800 monitor.
14037 * Makefile.in (remote-es.o): Delete rule.
14038 (ALLDEPFILES): Delete remote-es.c.
14039 * remote-es.c: Delete file.
14040 * config/m68k/es1800.mt: Delete file.
14041 * config/djgpp/fnchange.lst: Update.
14042 * configure.tgt: Delete m68*-ericsson-* target.
14043
14044 2003-01-31 Adam Fedor <fedor@gnu.org>
14045
14046 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
14047 Remove duplicate/shadowing variable of same name.
14048
14049 2003-01-30 Jim Blandy <jimb@redhat.com>
14050
14051 * symfile.c (find_separate_debug_file): Assert that the objfile's
14052 directory name we compute ends with a slash, and then assume that
14053 that's so everywhere we use it.
14054
14055 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
14056
14057 * valops.c (value_assign): Flush frame cache after stores to memory
14058 also.
14059
14060 2003-01-30 Andrew Cagney <ac131313@redhat.com>
14061
14062 * Makefile.in (mon960-rom.o): Delete rule.
14063 * mon960-rom.c: Delete file.
14064
14065 2003-01-30 Andrew Cagney <ac131313@redhat.com>
14066
14067 * d10v-tdep.c: Include "frame-unwind.h".
14068 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
14069 list.
14070 (next_addr, uses_frame): Delete.
14071 (struct d10v_unwind_cache): Define.
14072 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
14073 Use info instead of next_addr and uses_frame globals.
14074 (d10v_frame_init_saved_regs): Delete function.
14075 (d10v_init_extra_frame_info): Delete function.
14076 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
14077 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
14078 init_frame_pc or frame_saved_pc.
14079 (d10v_pop_frame): Delete function.
14080 (do_d10v_pop_frame): Delete function.
14081 (d10v_frame_chain): Delete function.
14082 (d10v_frame_chain_valid): Delete function.
14083 (d10v_frame_pc_unwind): New function.
14084 (d10v_frame_id_unwind): New function.
14085 (saved_regs_unwinder): New function.
14086 (d10v_frame_register_unwind): New function.
14087 (d10v_frame_pop): New function.
14088 (d10v_frame_unwind): New variable.
14089 (d10v_frame_p): New function.
14090 (d10v_frame_saved_pc): Delete function.
14091 * Makefile.in (d10v-tdep.o): Update dependencies.
14092
14093 2003-01-30 J. Brobecker <brobecker@gnat.com>
14094
14095 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
14096 causing some regressions due to a change in the default value
14097 for this macro.
14098
14099 2003-01-29 Richard Henderson <rth@redhat.com>
14100 Elena Zannoni <ezannoni@redhat.com>
14101 Daniel Jacobowitz <drow@mvista.com>
14102
14103 Fix PR gdb/961.
14104 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
14105 variables.
14106 (RANGES_SECTION): New.
14107 (dwarf_ranges_buffer): New variable.
14108 (struct comp_unit_head): Add member "die".
14109 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
14110 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
14111 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
14112 (dwarf2_locate_sections): Likewise.
14113 (dwarf2_build_psymtabs): Read .debug_ranges.
14114 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
14115 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
14116 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
14117 Look for DW_AT_ranges and return the bounding box.
14118
14119 2003-01-29 Brian Ford <ford@vss.fsi.com>
14120
14121 * win32-nat.c (cygwin_pid): Removed as unused.
14122 (child_attach): Try fall back to Cygwin pid.
14123
14124 2003-01-29 Jim Blandy <jimb@redhat.com>
14125
14126 * objfiles.h (struct objfile): Doc fix.
14127
14128 2003-01-29 Andrew Cagney <ac131313@redhat.com>
14129
14130 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
14131 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
14132 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
14133 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
14134 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
14135 (FRAME_SAVED_PC): Change to a function with predicate.
14136 * gdbarch.h, gdbarch.c: Re-generate.
14137
14138 2003-01-28 Andrew Cagney <ac131313@redhat.com>
14139
14140 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
14141
14142 * complaints.c (complain): Delete function.
14143 * complaints.h (struct deprecated_complaint): Delete definition.
14144 (complain): Delete declaration.
14145
14146 2003-01-28 Kevin Buettner <kevinb@redhat.com>
14147
14148 * mips-tdep.c (mips_init_extra_frame_info): Return early for
14149 dummy frames.
14150
14151 2003-01-27 Andrew Cagney <ac131313@redhat.com>
14152
14153 * sentinel-frame.h, sentinel-frame.c: New files.
14154 * Makefile.in (frame.o): Update dependencies.
14155 (SFILES): Add sentinel-frame.c.
14156 (sentinel_frame_h): Define.
14157 (COMMON_OBS): Add sentinel-frame.o.
14158 (sentinel-frame.o): Specify dependencies.
14159 * frame.c: Include "sentinel-frame.h".
14160 (frame_register_unwind): Rewrite assuming that there is always a a
14161 ->next frame.
14162 (frame_register, generic_unwind_get_saved_register): Ditto.
14163 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
14164 (create_sentinel_frame, unwind_to_current_frame): New functions.
14165 (get_current_frame): Rewrite using create_sentinel_frame and
14166 unwind_to_current_frame. When possible, always create a frame.
14167 (create_new_frame): Set next to the sentinel frame.
14168 (get_next_frame): Rewrite. Don't go below the level 0 frame.
14169 (deprecated_update_frame_pc_hack): Update the next frame's PC and
14170 ID cache when necessary.
14171 (frame_saved_regs_id_unwind): Use frame_relative_level.
14172 (deprecated_generic_get_saved_register): Use frame_relative_level,
14173 get_frame_saved_regs, get_frame_pc, get_frame_base and
14174 get_next_frame.
14175 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14176 frame_register.
14177
14178 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
14179
14180 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14181
14182 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
14183
14184 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14185 (maintenance_set_profile_cmd): Use error () instead of warning ().
14186
14187 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
14188
14189 * configure.in: Check that -pg works if using --enable-profiling.
14190 Check for monstartup and _mcleanup regardless of --enable-profiling.
14191 * maint.c: Check for monstartup and _mcleanup before using them.
14192 * config.in: Regenerated.
14193 * configure: Regenerated.
14194
14195 2003-01-24 Nick Clifton <nickc@redhat.com>
14196
14197 * Add sh2e support:
14198
14199 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
14200
14201 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14202 (sh2e_show_regs): New.
14203 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14204 * config/sh/tm-sh.h: Added sh2e to comments.
14205
14206 2003-01-23 Jim Blandy <jimb@redhat.com>
14207
14208 * symfile.c (syms_from_objfile): Don't print the "(no debugging
14209 symbols found)" message here; we haven't checked for a separate
14210 debug info file yet, so we don't know yet.
14211 (symbol_file_add_with_addrs_or_offsets): Print it here, after
14212 we've looked everywhere. Also, there's no need to print a special
14213 message when we're loading the separate debug info file: the one
14214 symbol_file_add prints is fine.
14215
14216 2003-01-23 Alexander Larsson <alexl@redhat.com>
14217 Jim Blandy <jimb@redhat.com>
14218
14219 Add support for executables whose debug info has been separated
14220 out into a separate file, leaving only a link behind.
14221 * objfiles.h (struct objfile): New fields: separate_debug_objfile
14222 and separate_debug_objfile_backlink.
14223 (put_objfile_before): New declaration.
14224 * symfile.c: #include "filenames.h".
14225 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14226 debug info in a separate file, read that, too. Save the addrs
14227 argument, so we can use it again to read the separated debug info;
14228 syms_from_objfile modifies the table we pass it.
14229 (reread_symbols): After re-reading an objfile, call
14230 reread_separate_symbols to refresh its separate debug info
14231 objfile, if it has one.
14232 (reread_separate_symbols, find_separate_debug_file,
14233 get_debug_link_info, separate_debug_file_exists): New functions.
14234 (debug_file_directory): New global var.
14235 (_initialize_symfile): Initialize debug_file_directory, and
14236 provide the new `set debug-file-directory' command to let the user
14237 change it.
14238 * objfiles.c (free_objfile): If this objfile has its debug info in
14239 a separate objfile, free that one too. If this is itself a
14240 separate debug info objfile, clear our parent's backlink.
14241 (put_objfile_before): New function.
14242 * utils.c (gnu_debuglink_crc32): New function.
14243 * defs.h (gnu_debuglink_crc32): New declaration.
14244 * Makefile.in (symfile.o): Note dependency on "filenames.h".
14245 * configure.in: Handle --with-separate-debug-dir config option.
14246 * acinclude.m4 (AC_DEFINE_DIR): New macro.
14247 * acconfig.h (DEBUGDIR): New macro.
14248 * configure, aclocal.m4, config.in: Regenerated.
14249
14250 2003-01-22 Jim Blandy <jimb@redhat.com>
14251
14252 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14253 like the old symbol_file_add, but taking new arguments: you can
14254 now pass in either a `struct section_addr_info' list to say where
14255 each section is loaded, or a `struct section_offsets' table. Pass
14256 these new arguments through to syms_from_objfile as appropriate.
14257 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
14258 with the appropriate quiescent values for the new arguments.
14259
14260 * symfile.c: #include "gdb_assert.h".
14261 (syms_from_objfile): Add the ability to pass in a section offset
14262 table directly, as an alternative to the section_addr_info table.
14263 Document arguments better.
14264 (symbol_file_add): Pass extra arguments to syms_from_objfile.
14265 * symfile.h (syms_from_objfile): Update declaration.
14266 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14267 syms_from_objfile.
14268 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14269
14270 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
14271
14272 Original patch by Tom Tromey <tromey@cygnus.com> and
14273 Jason Molenda <jmolenda@apple.com>.
14274 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14275 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14276 * NEWS: Mention profiling.
14277 * configure.in (--enable-gdbtk): Fix typo.
14278 (--enable-profiling): New. Set PROFILE_CFLAGS.
14279 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14280 Fill in function.
14281 (profiling_state): New variable.
14282 (mcleanup_wrapper): New function.
14283 (_initialize_maint): Remove NOTYET, fix call to
14284 add_setshow_boolean_cmd for "maint set profile".
14285 * configure: Regenerated.
14286
14287 2003-01-21 Martin M. Hunt <hunt@redhat.com>
14288
14289 * Makefile.in (install-gdbtk): Install PNG images too.
14290
14291 2003-01-21 Andrew Cagney <ac131313@redhat.com>
14292
14293 * exec.c (text_start): Delete global variable.
14294 (exec_file_attach): Make text_start local to the function.
14295 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14296 * valops.c (hand_function_call): Delete code that handles
14297 BEFORE_TEXT_END and AFTER_TEXT_END.
14298 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14299 of CALL_DUMMY_LOCATION.
14300 * gdbarch.c: Regenerate.
14301 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14302 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14303 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14304 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14305 (text_end): Delete extern declaration.
14306
14307 2003-01-21 Andrew Cagney <ac131313@redhat.com>
14308
14309 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14310 * blockframe.c (backtrace_below_main): Move to "frame.c".
14311 (frame_chain_valid): Delete check for backtrace_below_main.
14312 (_initialize_blockframe): Delete initialization, move ``set
14313 backtrace-below-main'' command to "frame.c".
14314 (do_flush_frames_sfunc): Delete function.
14315 * frame.c: Include "command.h" and "gdbcmd.h".
14316 (frame_type_from_pc): New function.
14317 (create_new_frame): Use frame_type_from_pc.
14318 (legacy_get_prev_frame): New function.
14319 (get_prev_frame): Rewrite. When an old style frame, call
14320 legacy_get_prev_frame. Otherwize, unwind the PC first.
14321 (_initialize_frame): Add ``set backtrace-below-main'' command.
14322 * Makefile.in (frame.o): Update dependencies.
14323
14324 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14325
14326 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14327 DEPRECATED_REGISTERS_INFO.
14328
14329 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14330
14331 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14332 Maintainers'. Update `Various Maintainers'.
14333
14334 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14335
14336 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14337 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14338 Suppress actual parameters when `-'.
14339 * gdbarch.h, gdbarch.c: Regenerate.
14340
14341 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14342
14343 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14344 code handling dummy frames.
14345
14346 2003-01-19 Andrew Cagney <ac131313@redhat.com>
14347
14348 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14349 (struct frame_unwind): Add field pop.
14350 * frame.h (frame_pop): Declare.
14351 * frame.c (frame_saved_regs_pop): New function.
14352 (trad_frame_unwinder): Add frame_saved_regs_pop.
14353 (frame_pop): New function.
14354 * dummy-frame.c (dummy_frame_pop): New function.
14355 (discard_innermost_dummy): New function.
14356 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14357 (dummy_frame_unwind): Add dummy_frame_pop.
14358 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14359 * valops.c (hand_function_call): Ditto.
14360 * stack.c (return_command): Ditto.
14361
14362 2003-01-18 Andrew Cagney <ac131313@redhat.com>
14363
14364 * cris-tdep.c: Fix function declaration indentation.
14365 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14366 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14367 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14368 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14369 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14370 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14371
14372 2003-01-18 Michael Chastain <mec@shout.net>
14373
14374 * README (Unpacking and Installation -- quick overview):
14375 Warn against ".../gdb-5.3/gdb/configure".
14376
14377 2003-01-18 Andrew Cagney <ac131313@redhat.com>
14378
14379 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14380 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14381 (struct frame_unwind): Declare opaque.
14382 (dummy_frame_p): Declare function.
14383 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14384 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14385 * dummy-frame.c: Include "frame-unwind.h".
14386 (dummy_frame_p): New function.
14387 (dummy_frame_unwind): New variable.
14388 * frame.c: Include "frame-unwind.h".
14389 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14390 to use the new unwind field.
14391 (set_unwind_by_pc): Delete function.
14392 (create_new_frame, get_prev_frame): Set unwind field using
14393 frame_unwind_find_by_pc.
14394 (trad_frame_unwind, trad_frame_unwinder): New variables.
14395 * frame.h (trad_frame_unwind): Declare variable.
14396 (frame_id_unwind_ftype): Delete declaration.
14397 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14398 (struct frame_unwind): Declare opaque.
14399 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14400 register_unwind with a single unwind pointer.
14401 * frame-unwind.h, frame-unwind.c: New files.
14402 * Makefile.in (SFILES): Add frame-unwind.c.
14403 (frame_unwind_h): Define.
14404 (COMMON_OBS): Add frame-unwind.o.
14405 (frame-unwind.o): Specify dependencies.
14406 (frame.o, dummy-frame.o): Update dependencies.
14407
14408 2003-01-18 Andrew Cagney <ac131313@redhat.com>
14409
14410 * ada-valprint.c: Eliminate PTR.
14411 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14412 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14413 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14414 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14415 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14416 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14417 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
14418
14419 2003-01-17 Andrew Cagney <ac131313@redhat.com>
14420
14421 * main.c (captured_main): Don't use PTR.
14422 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14423 * gdbtypes.c (lookup_primitive_typename): Ditto.
14424 (lookup_struct_elt_type): Ditto.
14425 * f-valprint.c (info_common_command): Ditto.
14426 (list_all_visible_commons): Ditto.
14427 * jv-typeprint.c (java_type_print_base): Ditto.
14428
14429 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14430 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14431 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14432 i386-interix-nat.c and i386-interix-tdep.c. Rename
14433 m68klinux-nat.c and m68klinux-tdep.c. Rename
14434 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14435 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14436 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14437 * main.c (captured_main): Use xfree, not free.
14438
14439 2003-01-16 Andrew Cagney <ac131313@redhat.com>
14440
14441 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14442 ID back using a parameter.
14443 * frame.c (frame_id_unwind): Update call.
14444 (frame_saved_regs_id_unwind): Update.
14445 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14446 * dummy-frame.h (struct frame_id): Add opaque declaration.
14447 (dummy_frame_id_unwind): Update declaration.
14448
14449 2003-01-15 Andrew Cagney <ac131313@redhat.com>
14450
14451 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14452
14453 2003-01-15 Stephen P. Smith <ischis2@cox.net>
14454
14455 * MAINTAINERS (Stephen P. Smith): Updated email address.
14456
14457 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
14458
14459 Fix PR gdb/898
14460 * breakpoint.c (until_break_command): Add new argument. Use it to
14461 decide whether to stop only at the current frame or not.
14462 * breakpoint.h (until_break_command): Update prototype.
14463 * infcmd.c (until_command): Add new argument to until_break_command
14464 call.
14465 (advance_command): New function.
14466 (_initialize_infcmd): Update help string for 'until' command.
14467 Add new 'advance' command.
14468
14469 2003-01-14 David Carlton <carlton@math.stanford.edu>
14470
14471 * linespec.c (decode_line_1): Normalize comments.
14472 (set_flags): Ditto.
14473 (locate_first_half): Ditto.
14474 (decode_compound): Ditto.
14475 (symtab_from_filename): Ditto.
14476 (decode_all_digits): Ditto.
14477 (decode_dollar): Ditto.
14478 (find_methods): Ditto.
14479 (find_toplevel_char): Ditto.
14480
14481 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14482
14483 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14484 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14485 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14486 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14487 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14488 * language.c, language.h, m32r-tdep.c: Update copyright.
14489 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14490 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14491 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14492 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14493 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14494 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14495
14496 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
14497
14498 * stabsread.h (process_later, resolve_cfront_continuation):
14499 Obsolete.
14500 Update copyright years.
14501 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14502 Update copyright year.
14503 * dbxread.c(struct cont_elem): Obsolete.
14504 (process_later, process_now): Obsolete functions.
14505 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14506 Update copyright year.
14507 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14508 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14509 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14510 (parse_partial_symbols): Obsolete cfront support.
14511 * stabsread.c
14512 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14513 macros.
14514 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14515 read_cfront_baseclasses, read_cfront_member_functions,
14516 resolve_cfront_continuation,read_cfront_static_fields,
14517 copy_cfront_struct_fields): Obsolete functions.
14518 (define_symbol, read_one_struct_field): Obsolete cfront support.
14519 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14520 Update Copyright year.
14521
14522 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
14523
14524 * stack.c (print_frame_info, print_stack_frame_base_stub,
14525 print_stack_frame_base, show_and_print_stack_frame_stub,
14526 show_and_print_stack_frame, print_only_stack_frame_stub,
14527 print_only_stack_frame): Delete functions.
14528 (print_stack_frame_stub): Call print_frame_info instead of
14529 print_frame_info_base.
14530 (print_frame_info_base): Rename to print_frame_info.
14531 (backtrace_command_1): Call print_frame_info, instead of
14532 print_frame_info_base.
14533 (current_frame_command): Call print_stack_frame, instead of
14534 print_only_stack_frame.
14535 (frame_command): Call print_stack_frame, instead of
14536 show_and_print_stack_frame.
14537 (up_command): Ditto.
14538 (down_command): Ditto.
14539 * frame.h (print_only_stack_frame): Delete prototype.
14540 * infrun.c (normal_stop): Call print_stack_frame, instead of
14541 show_and_print_stack_frame.
14542 * thread.c (info_threads_command): Call print_stack_frame, instead
14543 of print_only_stack_frame.
14544
14545 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14546
14547 * README (Graphical interface to GDB): Update URL. Point at
14548 gdb/links/.
14549
14550 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14551 version match.
14552
14553 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14554
14555 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14556 lines.
14557
14558 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14559
14560 * thread-db.c (attach_thread): Prototype.
14561 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14562 thread information (ti), and valid flags (th_valid, ti_valid).
14563 (attach_thread): Move target_pid_to_str call to after the thread
14564 is added to GDB's list. Initialize the cache.
14565 (thread_get_info_callback, thread_db_map_id2thr)
14566 (thread_db_get_info): New functions.
14567 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14568 (thread_db_store_registers, thread_db_thread_alive)
14569 (thread_db_get_thread_local_address): Use them.
14570 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14571 of calling error() for threads in unknown state.
14572
14573 (clear_lwpid_callback): New function.
14574 (thread_db_resume): Use it to clear the cache.
14575
14576 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14577
14578 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14579 (resume_callback): Remove dead code.
14580
14581 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14582
14583 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14584 predicate.
14585 * gdbarch.h, gdbarch.c: Regenerate.
14586 * stack.c (frame_info): Only initialize the saved registers when
14587 FRAME_INIT_SAVED_REGS_P.
14588 * frame.c (frame_saved_regs_register_unwind): Assert
14589 FRAME_INIT_SAVED_REGS_P.
14590 (deprecated_generic_get_saved_register): Ditto.
14591
14592 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14593
14594 * source.c (openp): Squelch warning about "filename".
14595
14596 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14597
14598 * source.c (openp): If the file does not exist don't necessarily
14599 search the path.
14600
14601 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14602
14603 Fix PR gdb/872.
14604 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14605 (integer_types_same_name_p): New function.
14606 (rank_one_type): Use it.
14607 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14608
14609 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14610
14611 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14612 variables.
14613 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14614 * configure.in: Add --with-sysroot.
14615 * configure: Regenerated.
14616 * main.c (gdb_sysroot): New variable.
14617 (captured_main): Initialize gdb_sysroot.
14618 * defs.h (gdb_sysroot): New extern declaration.
14619 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14620
14621 2003-01-12 Michael Chastain <mec@shout.net>
14622
14623 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14624
14625 2003-01-12 Michael Chastain <mec@shout.net>
14626
14627 * top.c (print_gdb_version): Bump copyright year to 2003.
14628
14629 2003-01-12 David Carlton <carlton@bactrian.org>
14630
14631 * linespec.c (symtab_from_filename): Rename variable 's' to
14632 'file_symtab'.
14633
14634 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14635
14636 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14637 dummy frame.
14638 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14639
14640 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14641
14642 * d10v-tdep.c: Include "gdb_assert.h".
14643 (d10v_store_return_value): Rewrite to match current interface.
14644 (d10v_extract_struct_value_address): Ditto.
14645 (d10v_extract_return_value): Ditto.
14646 (d10v_gdbarch_init): Set store_restore_value,
14647 extract_struct_value_address and extract_return_value.
14648
14649 2003-01-12 J. Brobecker <brobecker@gnat.com>
14650
14651 * hpread.c (set_namestring): New procedure replacing the
14652 SET_NAMESTRING macro.
14653 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14654 by calls to set_namestring.
14655
14656 2003-01-11 J. Brobecker <brobecker@gnat.com>
14657
14658 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14659 a compilation warning.
14660 (hpread_process_one_debug_symbol): Likewise.
14661
14662 2003-01-10 David Carlton <carlton@math.stanford.edu>
14663
14664 * linespec.c (decode_line_1): Rename variable 's' to
14665 'file_symtab'.
14666 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14667 (decode_dollar): Ditto.
14668 (decode_variable): Ditto.
14669 (symbol_found): Ditto.
14670
14671 2003-01-09 Michael Chastain <mec@shout.net>
14672
14673 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14674
14675 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
14676
14677 * win32-nat.c (set_process_privilege): New function.
14678 (child_attach): Call set_process_privilege() to enable the
14679 SE_DEBUG_NAME user privilege if available in process token.
14680
14681 2003-01-10 J. Brobecker <brobecker@gnat.com>
14682
14683 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14684 compilation error in the previous revision.
14685
14686 2003-01-09 David Carlton <carlton@math.stanford.edu>
14687
14688 * linespec.c: Update copyright.
14689
14690 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
14691
14692 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14693 than inferior_ptid.
14694 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14695
14696 2003-01-09 Andrew Cagney <ac131313@redhat.com>
14697
14698 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14699 Update comments.
14700 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14701 (frame_saved_regs_zalloc): Update.
14702 (frame_saved_regs_register_unwind): Update.
14703 (create_new_frame): Update.
14704 (get_prev_frame): Update.
14705 (frame_extra_info_zalloc): Update.
14706 (deprecated_get_frame_saved_regs): Update.
14707 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14708 * cris-tdep.c: Update comment.
14709
14710 * somsolib.h: Fix function indentation.
14711 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14712 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14713 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14714 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14715 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14716
14717 * infrun.c (follow_fork): Use ISO C definition.
14718 * expprint.c (print_subexp): Use xfree instead of free.
14719 * charset.c: Include "gdb_string.h" instead of <string.h>.
14720 (register_iconv_charsets): Use ISO C definition.
14721 (host_charset, target_charset): Ditto.
14722 * Makefile.in (charset.o): Update dependencies.
14723 (mi-cmd-env.o): Update dependencies.
14724
14725 2003-01-08 Andrew Cagney <cagney@redhat.com>
14726
14727 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14728 get_frame_base.
14729
14730 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14731
14732 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14733 build directories. Save edited gdb output in Mbuild.log. If a
14734 build fails, remove any final GDB executable.
14735
14736 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14737
14738 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14739 replacing hex constants with function names and stripping leading
14740 file name directory prefixes.
14741
14742 2003-01-08 Andrew Cagney <cagney@redhat.com>
14743
14744 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14745 get_frame_base.
14746
14747 2003-01-08 David Carlton <carlton@math.stanford.edu>
14748
14749 * linespec.c (decode_line_1): Move code into decode_variable.
14750 (decode_variable): New function.
14751
14752 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14753
14754 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14755
14756 2003-01-08 Andrew Cagney <cagney@redhat.com>
14757
14758 * cris-tdep.c (cris_frame_init_saved_regs): Use
14759 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14760 saved_regs buffer.
14761 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14762 (sh64_nofp_frame_init_saved_regs): Ditto.
14763 (sh_fp_frame_init_saved_regs): Ditto.
14764 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14765 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14766 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14767 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14768
14769 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
14770
14771 * minsyms.c (lookup_minimal_symbol): Update comment.
14772 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14773 (lookup_minimal_symbol_solib_trampoline): Likewise.
14774
14775 2003-01-08 Andrew Cagney <cagney@redhat.com>
14776
14777 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14778 frame_relative_level.
14779
14780 * alpha-tdep.c: Use get_frame_extra_info.
14781 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14782 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14783 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14784 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14785
14786 * alpha-tdep.c: Use get_next_frame.
14787 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14788 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14789 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14790 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14791 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14792 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14793 * xstormy16-tdep.c: Ditto.
14794
14795 2003-01-07 Andrew Cagney <cagney@redhat.com>
14796
14797 * alpha-tdep.c: Use get_frame_base.
14798 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14799 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14800 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14801 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14802 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14803 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14804 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14805 * config/sparc/tm-sparc.h: Ditto.
14806
14807 2003-01-07 Andrew Cagney <cagney@redhat.com>
14808
14809 * frame.c (deprecated_get_frame_context): New function.
14810 (deprecated_set_frame_context): New function.
14811 * frame.h (deprecated_get_frame_context): Declare.
14812 (deprecated_set_frame_context): Declare.
14813 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14814 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14815
14816 2003-01-07 Andrew Cagney <cagney@redhat.com>
14817
14818 * frame.c (deprecated_set_frame_next_hack): New function.
14819 (deprecated_set_frame_prev_hack): New function.
14820 * frame.h (deprecated_set_frame_next_hack): Declare.
14821 (deprecated_set_frame_prev_hack): Declare.
14822 * mcore-tdep.c (analyze_dummy_frame): Use
14823 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14824 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14825
14826 2003-01-07 David Carlton <carlton@math.stanford.edu>
14827
14828 * linespec.c (decode_line_1): Move code into decode_dollar.
14829 (decode_dollar): New function.
14830
14831 2003-01-07 Andrew Cagney <cagney@redhat.com>
14832
14833 * arm-tdep.c (arm_init_extra_frame_info): Use
14834 deprecated_update_frame_base_hack.
14835 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14836 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14837 (fix_frame_pointer): Ditto.
14838 (mn10300_analyze_prologue): Ditto.
14839
14840 2003-01-07 Andrew Cagney <cagney@redhat.com>
14841
14842 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14843 extra_info using frame_extra_info_zalloc.
14844 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14845 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14846 (sh64_init_extra_frame_info): Ditto.
14847 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14848 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14849 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14850 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14851 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14852 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14853 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14854 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14855 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14856 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14857 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14858 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14859
14860 * mn10300-tdep.c (analyze_dummy_frame): Use
14861 deprecated_set_frame_extra_info_hack.
14862 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14863
14864 2003-01-07 J. Brobecker <brobecker@gnat.com>
14865
14866 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14867 class is not scText. These do not define "real" procedures.
14868 (parse_partial_symbols): Likewise.
14869
14870 2003-01-06 Michael Snyder <msnyder@redhat.com>
14871
14872 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14873
14874 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14875
14876 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14877 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14878 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14879 deprecated_frame_xmalloc_with_cleanup.
14880 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14881 deprecated_frame_xmalloc.
14882 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14883 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14884
14885 2003-01-06 Andrew Cagney <cagney@redhat.com>
14886
14887 * x86-64-linux-tdep.c: Include "osabi.h".
14888 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14889
14890 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14891
14892 2003-01-06 Andrew Cagney <cagney@redhat.com>
14893
14894 * MAINTAINERS (Target Instruction Set Architectures): Update
14895 arm-elf. Can be built with -Werror, has been multiarched.
14896
14897 * value.h (unpack_long): Make buffer parameter constant.
14898 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14899 * scm-lang.h (scm_parse): Ditto.
14900 * defs.h (extract_typed_address, extract_address): Ditto.
14901 (extract_long_unsigned_integer): Ditto.
14902 * inferior.h (unsigned_pointer_to_address): Ditto.
14903 (signed_pointer_to_address): Ditto.
14904 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14905 * gdbarch.h, gdbarch.c: Regenerate.
14906 * findvar.c (extract_long_unsigned_integer): Update.
14907 (extract_address): Update.
14908 (extract_typed_address): Update.
14909 (unsigned_pointer_to_address): Update.
14910 * values.c (unpack_long): Update.
14911 (unpack_double): Update.
14912 (unpack_pointer): Update.
14913 (unpack_field_as_long): Update.
14914 * d10v-tdep.c (d10v_pointer_to_address): Update.
14915 * avr-tdep.c (avr_pointer_to_address): Update.
14916 * scm-lang.c (scm_unpack): Update.
14917 * findvar.c (signed_pointer_to_address): Update.
14918
14919 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14920
14921 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14922 since it is in i386-tdep.c.
14923
14924 2003-01-06 J. Brobecker <brobecker@gnat.com>
14925
14926 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14927 failure introduced in the previous change.
14928
14929 2003-01-05 Michael Chastain <mec@shout.net>
14930
14931 * README: Remove references to deleted remote-*.c files:
14932 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14933 remote-nrom.c, remote-os9k.c, remote-udi.c.
14934
14935 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14936
14937 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14938 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14939 i386_get_longjmp_target.
14940
14941 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14942
14943 * arm-tdep.c (prologue_cache): Change to a pointer.
14944 (_initialize_arm_tdep): Allocate prologue_cache.
14945 (check_prologue_cache): Update.
14946 (save_prologue_cache): Update.
14947 (arm_gdbarch_init): Update.
14948
14949 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14950
14951 * stabsread.c (update_method_name_from_physname): Call complaint()
14952 instead of error.
14953
14954 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14955
14956 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14957 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14958 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14959
14960 * blockframe.c: Include "gdbcmd.h" and "command.h".
14961 (backtrace_below_main): New variable.
14962 (file_frame_chain_valid, func_frame_chain_valid)
14963 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14964 (generic_func_frame_chain_valid): Remove functions.
14965 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14966 (_initialize_blockframe): New function.
14967 * Makefile.in (blockframe.o): Update dependencies.
14968 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14969 comment. Call frame_chain_valid ().
14970 * frame.h: Remove old prototypes. Add prototype for
14971 frame_chain_valid and update comments to match.
14972 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14973 Remove old comment.
14974 * gdbarch.h: Regenerated.
14975 * gdbarch.c: Regenerated.
14976
14977 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14978 set_gdbarch_frame_chain_valid.
14979 * avr-tdep.c (avr_gdbarch_init): Likewise.
14980 * cris-tdep.c (cris_gdbarch_init): Likewise.
14981 * frv-tdep.c (frv_gdbarch_init): Likewise.
14982 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14983 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14984 (i386_nw_init_abi): Likewise.
14985 (i386_gdbarch_init): Likewise.
14986 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14988 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14989 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14990 * mips-tdep.c (mips_gdbarch_init): Likewise.
14991 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14992 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14993 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14994 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14995 * s390-tdep.c (s390_gdbarch_init): Likewise.
14996 * sh-tdep.c (sh_gdbarch_init): Likewise.
14997 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14998 * v850-tdep.c (v850_gdbarch_init): Likewise.
14999 * vax-tdep.c (vax_gdbarch_init): Likewise.
15000 * x86-64-tdep.c (x86_64_init_abi): Likewise.
15001
15002 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
15003 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
15004 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
15005 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
15006 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
15007 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
15008 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
15009 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
15010
15011 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15012
15013 * Makefile.in (acconfig_h): Remove incorrect macro.
15014 (config_h): Define.
15015 (osabi.o): Update dependencies.
15016 * configure.tgt: Set gdb_osabi based on target triplet.
15017 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
15018 * configure: Regenerated.
15019 * config.in: Regenerated.
15020 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
15021 (GDB_OSABI_DEFAULT): Define if not already defined.
15022 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
15023 (set_osabi_string): New variables.
15024 (gdbarch_register_osabi): Add new OS ABI to
15025 gdb_osabi_available_names.
15026 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
15027 (set_osabi, show_osabi): New functions.
15028 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
15029
15030 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15031
15032 * arch-utils.c (gdbarch_info_init): Set osabi to
15033 GDB_OSABI_UNINITIALIZED.
15034 * gdbarch.sh: Add osabi to struct gdbarch and to struct
15035 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
15036 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
15037 * gdbarch.c: Regenerated.
15038 * gdbarch.h: Regenerated.
15039 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
15040 there's no BFD.
15041 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
15042 * osabi.h (enum gdb_osabi): Move to defs.h.
15043 (gdbarch_init_osabi): Update prototype.
15044 * defs.h (enum gdb_osabi): Moved here.
15045 * Makefile.in: Update dependencies.
15046
15047 * alpha-tdep.h: Don't include "osabi.h".
15048 (struct gdbarch_tdep): Remove osabi member.
15049 * alpha-tdep.c: Include "osabi.h".
15050 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15051 iterate over arches. Update call to gdbarch_init_osabi.
15052 (alpha_dump_tdep): Don't dump osabi.
15053 * alpha-linux-tdep.c: Include "osabi.h".
15054 * alpha-osf1-tdep.c: Include "osabi.h".
15055 * alphafbsd-tdep.c: Include "osabi.h".
15056 * alphanbsd-tdep.c: Include "osabi.h".
15057
15058 * arm-tdep.h: Don't include "osabi.h".
15059 (struct gdbarch_tdep): Remove osabi member.
15060 * arm-tdep.c: Include "osabi.h".
15061 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15062 iterate over arches. Update call to gdbarch_init_osabi.
15063 (arm_dump_tdep): Don't dump osabi.
15064 * arm-linux-tdep.c: Include "osabi.h".
15065 * armnbsd-tdep.c: Include "osabi.h".
15066
15067 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
15068 Update call to gdbarch_init_osabi.
15069
15070 * i386-tdep.h: Don't include "osabi.h".
15071 (struct gdbarch_tdep): Remove osabi member.
15072 * i386-tdep.c: Include "osabi.h".
15073 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15074 iterate over arches. Update call to gdbarch_init_osabi.
15075 (i386_dump_tdep): Don't dump osabi.
15076 * i386-linux-tdep.c: Include "osabi.h".
15077 * i386-sol2-tdep.c: Include "osabi.h".
15078 * i386bsd-tdep.c: Include "osabi.h".
15079 * i386gnu-tdep.c: Include "osabi.h".
15080 * i386ly-tdep.c: Include "osabi.h".
15081 * i386nbsd-tdep.c: Include "osabi.h".
15082 * i386obsd-tdep.c: Include "osabi.h".
15083
15084 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
15085 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15086 check osabi when iterating over arches. Update call to
15087 gdbarch_init_osabi.
15088 (mips_dump_tdep): Don't dump osabi.
15089
15090 * ns32k-tdep.h: Don't include "osabi.h".
15091 (struct gdbarch_tdep): Remove.
15092 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
15093 gdbarch_lookup_osabi. Don't iterate over arches. Don't
15094 allocate tdep. Update call to gdbarch_init_osabi.
15095 (ns32k_dump_tdep): Remove.
15096 (_initialize_ns32k_tdep): Update call to gdbarch_register.
15097 * ns32knbsd-tdep.c: Include "osabi.h".
15098
15099 * ppc-tdep.h: Don't include "osabi.h".
15100 (struct gdbarch_tdep): Remove osabi member.
15101 * rs6000-tdep.c: Include "osabi.h".
15102 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
15103 osabi when iterating over arches. Update call to
15104 gdbarch_init_osabi.
15105 (rs6000_dump_tdep): Don't dump osabi.
15106 * ppc-linux-tdep.c: Include "osabi.h".
15107 * ppcnbsd-tdep.c: Include "osabi.h".
15108
15109 * sh-tdep.h: Don't include "osabi.h".
15110 (struct gdbarch_tdep): Remove osabi member.
15111 * sh-tdep.c: Include "osabi.h".
15112 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15113 iterate over arches. Update call to gdbarch_init_osabi.
15114 (sh_dump_tdep): Don't dump osabi.
15115 * shnbsd-tdep.c: Include "osabi.h".
15116
15117 * sparc-tdep.c: Include "osabi.h".
15118 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15119 iterate over arches. Update call to gdbarch_init_osabi.
15120 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
15121 tdep structure.
15122
15123 * vax-tdep.h: Don't include "osabi.h".
15124 (struct gdbarch_tdep): Remove.
15125 * vax-tdep.c: Include "osabi.h".
15126 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
15127 iterate over arches. Don't allocate tdep. Update call
15128 to gdbarch_init_osabi.
15129 (vax_dump_tdep): Remove.
15130 (_initialize_vax_tdep): Update call to gdbarch_register.
15131
15132 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15133
15134 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
15135 entirely.
15136 (breakpoint_re_set_one): Don't fetch the value for a disabled
15137 watchpoint.
15138
15139 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15140
15141 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
15142 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
15143 (COERCE_FLOAT_TO_DOUBLE): Remove.
15144 * gdbarch.c: Regenerate.
15145 * gdbarch.h: Regenerate.
15146 * Makefile.in: Remove value_h from gdbarch_h.
15147 * valops.c (coerce_float_to_double): New variable.
15148 (default_coerce_float_to_double): Remove.
15149 (standard_coerce_float_to_double): Remove.
15150 (value_arg_coerce): Use coerce_float_to_double.
15151 (_initialize_valops): Add "set coerce-float-to-double".
15152 * value.h (default_coerce_float_to_double): Remove prototype.
15153 (standard_coerce_float_to_double): Remove prototype.
15154
15155 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
15156 prototyped.
15157 * mdebugread.c (parse_symbol): Likewise.
15158 * stabsread.c (define_symbol): Mark all functions as prototyped.
15159
15160 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
15161 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
15162 set_gdbarch_coerce_float_to_double.
15163 * arm-tdep.c (arm_gdbarch_init): Likewise.
15164 * frv-tdep.c (frv_gdbarch_init): Likewise.
15165 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
15166 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
15167 * mips-tdep.c (mips_gdbarch_init): Likewise.
15168 (mips_coerce_float_to_double): Remove.
15169 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15170 (rs6000_coerce_float_to_double): Remove.
15171 * s390-tdep.c (s390_gdbarch_init): Likewise.
15172 * sh-tdep.c (sh_gdbarch_init): Likewise.
15173 (sh_coerce_float_to_double): Remove.
15174 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15175 (sparc_coerce_float_to_double): Remove.
15176 * v850-tdep.c (v850_gdbarch_init): Likewise.
15177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15178 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15179 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15180 (hppa_coerce_float_to_double): Remove prototype.
15181 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15182
15183 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15184
15185 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15186
15187 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
15188
15189 Suggested by Stewart Brown <sb24@avaya.com>:
15190 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15191 in recursive calls. Handle TYPE_CODE_TYPEDEF.
15192 (c_type_print_varspec_suffix): Likewise.
15193
15194 2003-01-04 Mark Kettenis <kettenis@gnu.org>
15195
15196 * configure.in: Don't set and AC_SUBST SUBDIRS.
15197 * configure: Regenerated.
15198
15199 * configure.in: Remove code dealing with shared libraries.
15200 * Makefile.in: Remove HLDFLAGS and HLDENV.
15201 * configure: Regenerated.
15202
15203 2003-01-04 Andrew Cagney <ac131313@redhat.com>
15204
15205 * frame.c (deprecated_frame_xmalloc): New function.
15206 (deprecated_set_frame_saved_regs_hack): New function.
15207 (deprecated_set_frame_extra_info_hack): New function.
15208 * frame.h (deprecated_frame_xmalloc): Declare.
15209 (deprecated_set_frame_saved_regs_hack): Declare.
15210 (deprecated_set_frame_extra_info_hack): Declare.
15211
15212 2003-01-04 Mark Kettenis <kettenis@gnu.org>
15213
15214 * configure.in: Move code that provides the --enable-gdbtk option
15215 right after the code that handles the --enable-tui option, and
15216 polish it somewhat.
15217 * configure: Regenerated.
15218
15219 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
15220 AC_CHECK_FUNCS and remove the old check for pread64.
15221 * acinclude.m4 (AC_GNU_SOURCE): New macro.
15222 * acconfig.h (_GNU_SOURCE): Add.
15223 (HAVE_PREAD64): Remove.
15224 * configure, aclocal.m4, config.in: Regenerated.
15225
15226 2003-01-03 Andrew Cagney <ac131313@redhat.com>
15227
15228 * alpha-tdep.c: Use get_frame_saved_regs.
15229 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15230 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15231 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15232 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15233 * vax-tdep.c, xstormy16-tdep.c: Ditto.
15234
15235 2003-01-03 Mark Kettenis <kettenis@gnu.org>
15236
15237 * configure.in: Remove all use of the SUBDIRS variable; add
15238 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
15239 code providing the --enable-multi-ice option, and move it right in
15240 front of the code that checks whether gdbserver is supported.
15241 Polish that too.
15242 * configure: Regenerated.
15243 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15244 @SUBDIRS@.
15245
15246 2003-01-03 Andrew Cagney <cagney@redhat.com>
15247
15248 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15249 * avr-tdep.c, cris-tdep.c: Ditto.
15250 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15251 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15252
15253 2003-01-03 Mark Kettenis <kettenis@gnu.org>
15254
15255 * configure.in: Remove --enable-netrom option.
15256 * configure: Regenerated.
15257
15258 2003-01-03 Mark Kettenis <kettenis@gnu.org>
15259
15260 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15261 declaration for `struct re_pattern_buffer' instead.
15262 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15263
15264 2003-01-03 J. Brobecker <brobecker@gnat.com>
15265
15266 * mdebugread.c (parse_symbol): Count until the stEnd matching
15267 the structure name.
15268
15269 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15270
15271 * configure.in: Remove --with-cpu option.
15272 subscripts. Remove evil changequotes here.
15273 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15274 * config.in, configure: Regenerated.
15275
15276 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15277 * configure.in: Cleanup section that sources GDB and BFD configure
15278 subscripts. Remove evil changequotes here.
15279 * config.in, configure: Regenerated.
15280
15281 2003-01-02 Andrew Cagney <ac131313@redhat.com>
15282
15283 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15284 frame accessor methods.
15285 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15286 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15287 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15288 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15289 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15290 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15291 * z8k-tdep.c: Ditto.
15292
15293 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15294
15295 * configure.in: Remove UI_OUT configuration code.
15296 * ada-lang.c: Update assuming UI_OUT is always true.
15297 * Makefile.in (UIOUT_CFLAGS): Remove.
15298 * configure: Regenerated.
15299 * TODO: Remove blurb about elimination of -DUI_OUT.
15300
15301 * configure.in: Move code that provides the --enable-gdbcli,
15302 --enable-gdbmi options right before the code that handles the
15303 --enable-tui option. Polish a bit.
15304 * configure: Regenerated.
15305
15306 * configure.in: Rewrite check for GNU regex and the
15307 --without-included regex option, and move it into the "Checks for
15308 library functions" section. This makes us use the system regex
15309 again by default on systems with version 2 of the GNU C library.
15310 This was apparently broken.
15311 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15312 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15313 * config.in, configure: Regenerated.
15314
15315 * configure.in: Move code that provides the --enable-tui option
15316 before the "Checks for libraries" section. Polish the code
15317 somewhat and set need_curses to yes if we build the TUI. Rewrite
15318 code that looks for a library providing termcap functionality to
15319 match more closely what's done in the Readline library, and move
15320 it into to the "Checks for libraries" section.
15321 * configure: Regenerated.
15322 * Makefile.in (TERMCAP): Remove variable.
15323 * config/i386/go32.mh (TERMCAP): Remove variable.
15324
15325 2003-01-02 Andrew Cagney <ac131313@redhat.com>
15326
15327 * MAINTAINERS: Mention gdb_mbuild.sh.
15328 * gdb_mbuild.sh: Rewrite.
15329
15330 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15331
15332 * configure.in: Fix typo in last change.
15333 * config.in, configure: Regenerated.
15334
15335 2003-01-02 Andrew Cagney <ac131313@redhat.com>
15336
15337 * valarith.c (value_binop): Delete obsolete code and comments.
15338 * configure.host: Ditto.
15339 * buildsym.h (make_blockvector): Ditto.
15340 * buildsym.c (make_blockvector): Ditto.
15341 * defs.h (enum language): Ditto.
15342 (chill_demangle): Ditto.
15343 * elfread.c (elf_symtab_read): Ditto.
15344 * dwarfread.c (CHILL_PRODUCER): Ditto.
15345 (set_cu_language): Ditto.
15346 (handle_producer): Ditto.
15347 * expprint.c (print_subexp): Ditto.
15348 * gdbtypes.c (chill_varying_type): Ditto.
15349 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15350 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15351 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15352 (chill_varying_type): Ditto.
15353 * language.h (_LANG_chill): Ditto.
15354 * language.c (binop_result_type, integral_type): Ditto.
15355 (character_type, string_type, structured_type): Ditto.
15356 (lang_bool_type, binop_type_check): Ditto.
15357 * stabsread.h (os9k_stabs): Ditto.
15358 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15359 (define_symbol, read_type, read_struct_fields): Ditto.
15360 (read_array_type, read_enum_type, read_huge_number): Ditto.
15361 (read_range_type, start_stabs): Ditto.
15362 * symfile.c (init_filename_language_table): Ditto.
15363 (add_psymbol_with_dem_name_to_list): Ditto.
15364 * symtab.c (symbol_init_language_specific): Ditto.
15365 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15366 * symtab.h (struct general_symbol_info): Ditto.
15367 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15368 * typeprint.c (typedef_print): Ditto.
15369 * utils.c (fprintf_symbol_filtered): Ditto.
15370 * valops.c (value_cast, search_struct_field, value_slice): Delete
15371 obsolete code.
15372 (varying_to_slice): Delete function.
15373 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15374 (varying_to_slice): Delete declaration.
15375 * MAINTAINERS: Update.
15376
15377 2003-01-02 Mark Kettenis <kettenis@gnu.org>
15378
15379 * configure.in: Reorganize "Checks for library functions section"
15380 a bit. Remove check for `btowc' and `isascii' functions.
15381 * configure: Regenerated.
15382
15383 * acconfig.h (_MSE_INT_H): Remove.
15384 * configure.in: Create "Checks for header files" section, and move
15385 appropriate tests there. Don't check for objlist.h, wchar.h,
15386 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15387 misdetection fix. Also add "Checks for types", "Checks for
15388 compiler characteristics" and "Checks for library functions"
15389 sections.
15390 * config.in, configure: Regenerated.
15391
15392 * configure.in: Create "Checks for programs" section, and move
15393 appropriate tests there.
15394
15395 2003-01-01 Mark Kettenis <kettenis@gnu.org>
15396
15397 * configure.in: Create "Checks for libraries" section, and move
15398 appropriate tests there. Cleanup check for wctype in libw. Use
15399 AC_SEARCH_LIBS to see whether we need libsocket.
15400 * configure: Regenerated.
15401
15402 For older changes see ChangeLog-2002
15403 \f
15404 Local Variables:
15405 mode: change-log
15406 left-margin: 8
15407 fill-column: 74
15408 version-control: never
15409 End: