daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
14f75137
JB
12003-09-12 Jim Blandy <jimb@redhat.com>
2
4f49b26b
JB
3 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
4 offsets for global and static variables.
5
14f75137
JB
6 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
7 symbol types are, by definition, in the .data section, so it is
8 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
9 If there is no .data section, there should be no N_DATA or N_DATA
10 | N_EXT symbols.
11
212c460c
MK
122003-09-12 Mark Kettenis <kettenis@gnu.org>
13
14 * amd64fbsd-tdep.c: Fix sigtramp recognition.
15 (amd64fbsd_sigcontext_addr): Rewrite.
16 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
17 with correct values.
18 (amd64fbsd_sc_reg_offset): Initialize with correct values.
19 (amd64fbsd_init_abi): Fix typo.
20
68856ea3
AC
212003-09-12 Andrew Cagney <cagney@redhat.com>
22
23 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
24 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
25
627b3ba2
AC
262003-09-12 Andrew Cagney <cagney@redhat.com>
27
28 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
29 "entry_file_highpc". Update comments.
30 * defs.h (deprecated_inside_entry_file): Rename
31 "inside_entry_file".
32 * blockframe.c (deprecated_inside_entry_file): Rename
33 "inside_entry_file".
34 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
35 * vax-tdep.c (vax_frame_chain): Update.
36 * sh64-tdep.c (sh64_frame_chain): Update.
37 * sh-tdep.c (sh_frame_chain): Update.
38 * rs6000-tdep.c (rs6000_frame_chain): Update.
39 * ns32k-tdep.c (ns32k_frame_chain): Update.
40 * mips-tdep.c (mips_frame_chain): Update.
41 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
42 * m32r-tdep.c (m32r_frame_this_id): Update.
43 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
44 * frv-tdep.c (frv_frame_this_id): Update.
45 * d10v-tdep.c (d10v_frame_this_id): Update.
46 * cris-tdep.c (cris_frame_chain): Update.
47 * blockframe.c (legacy_frame_chain_valid): Update.
48 * avr-tdep.c (avr_frame_this_id): Update.
49 * arm-tdep.c (arm_prologue_this_id): Update.
50 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
51 * objfiles.c (objfile_relocate): Update.
52 * mipsread.c (mipscoff_symfile_read): Update.
53 (mipscoff_symfile_read): Update.
54 * mdebugread.c (parse_partial_symbols): Update.
55 * dwarfread.c (read_file_scope): Update.
56 * dwarf2read.c (read_file_scope): Update.
57 * dbxread.c (read_dbx_symtab): Update.
58 (read_dbx_symtab): Update.
59 * coffread.c (complete_symtab): Update.
60
b0abbc58
JJ
612003-09-12 Jeff Johnston <jjohnstn@redhat.com>
62
63 * top.c (quit_target): New static helper function.
64 (quit_force): Moved code to quit_target(). Call quit_target()
65 via catch_errors() to catch errors during quit.
66
a1632d59
DC
672003-09-11 David Carlton <carlton@kealia.com>
68
69 * buildsym.c (finish_block): Use allocate_block to allocate the
70 block.
71 * mdebugread.c (new_block): Add FIXME.
72
5c4e30ca
DC
732003-09-11 David Carlton <carlton@kealia.com>
74
75 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
76 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
77 (recursive_dump_type): Ditto.
78 * printcmd.c (print_formatted): Ditto.
79 * typeprint.c (print_type_scalar): Ditto.
80 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
81 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
82 * cp-support.h: Declare cp_check_possible_namespace_symbols,
83 maint_cplus_cmd_list.
84 * cp-support.c: Make maint_cplus_cmd_list extern.
85 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
86 command.h.
87 (lookup_symbol_file): Look in possible namespace blocks when
88 appropriate.
89 (initialize_namespace_symtab): New.
90 (get_possible_namespace_block, free_namespace_block)
91 (check_possible_namespace_symbols)
92 (check_possible_namespace_symbols_loop)
93 (check_one_possible_namespace_symbol)
94 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
95 (_initialize_cp_namespace): Ditto.
96 * block.h: Declare allocate_block.
97 * block.c (allocate_block): New.
98 * jv-lang.c (get_java_class_symtab): Allocate blocks via
99 allocate_block.
100 * symfile.h: Update declaration of add_psymbol_to_list.
101 * symfile.c (add_psymbol_to_list): Return the partial symbol in
102 question.
103 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
104 scan_partial_symbols_call.
105 (scan_partial_symbols): Add NAMESPACE argument; update calls to
106 helper functions.
107 (add_partial_symbol): If necessary, scan mangled names for names
108 of namespaces.
109 (add_partial_namespace): Add NAMESPACE argument; generate partial
110 symbols associated to namespaces.
111 (add_partial_enumeration): Add NAMESPACE argument.
112 (new_symbol): Allow namespace syms.
113 (read_namespace): Generate namespace syms.
114 * objfiles.h: Add opaque declaration of struct symtab.
115 (struct objfile): Add cp_namespace_symtab member.
116 * objfiles.c (allocate_objfile): Set
117 objfile->cp_namespace_symtab.
118 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
119 dictionary_h, command_h.
120
33a7c2fc
AC
1212003-09-11 Andrew Cagney <cagney@redhat.com>
122
123 * rs6000-tdep.c (rs6000_push_dummy_call): Use
124 regcache_raw_write_signed to set SP_REGNUM, move the operation to
125 near the function's end.
126 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
127 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
128 regcache_raw_write_signed to set SP_REGNUM.
129
63cd24fe
EZ
1302003-09-11 Elena Zannoni <ezannoni@redhat.com>
131
132 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
133 orig_addrs is set up properly.
134
f27dd7fd
AC
1352003-09-11 Andrew Cagney <cagney@redhat.com>
136
137 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
138 * gdbarch.h, gdbarch.c: Re-generate.
139 * infcall.c (call_function_by_hand): Update.
140 * hppa-tdep.c (hppa_push_arguments): Update.
141 * ada-lang.c (place_on_stack): Update.
142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
143 * sparc-tdep.c (sparc_gdbarch_init): Update.
144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
145 * hppa-tdep.c (hppa_gdbarch_init): Update.
146 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
147 stack_align.
148
f630a401
DJ
1492003-09-11 Daniel Jacobowitz <drow@mvista.com>
150
151 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
152 register do need a frame.
153
0ddabb4c
AC
1542003-09-11 Andrew Cagney <cagney@redhat.com>
155
156 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
157 buildable since GDB 5.0.
158 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
159 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
160 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
161 * irix4-nat.c: Delete file.
162 * config/mips/irix4.mh: Delete file.
163 * config/mips/irix3.mh: Delete file.
164 * config/mips/irix3.mt: Delete file.
165 * config/mips/tm-irix3.h: Delete file.
166 * config/mips/nm-irix3.h: Delete file.
167 * config/mips/xm-irix3.h: Delete file.
168 * config/mips/nm-irix4.h: Delete file.
169 * config/mips/xm-irix4.h: Delete file.
170 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
171
fde2cceb
JB
1722003-09-10 J. Brobecker <brobecker@gnat.com>
173
174 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
175 * Makefile.in (hppa-tdep.o): Update dependencies.
176
66f667f5
JW
1772003-09-10 James E Wilson <wilson@specifixinc.com>
178
ef5fd69f
JW
179 * MAINTAINERS: Change my e-mail address. Move to paper trail
180 section.
66f667f5 181
53e8aaea
KB
1822003-09-10 Kevin Buettner <kevinb@redhat.com>
183
184 * MAINTAINERS (frv): New ISA entry.
185
dcc6aaff
KB
1862003-09-10 Kevin Buettner <kevinb@redhat.com>
187
188 * frv-tdep.c (dis-asm.h): Include.
189 * Makefile.in (frv-tdep.o): Update dependencies.
190
932644f0
JJ
1912003-09-09 Jeff Johnston <jjohnstn@redhat.com>
192
193 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
194 Fix typo for high range of floating registers.
195
91c24f0a
DC
1962003-09-09 David Carlton <carlton@kealia.com>
197
198 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
199 highpc initialization here out of scan_partial_symbols.
200 (scan_partial_symbols): Restructure into a recursive version,
201 calling add_partial_namespace and add_partial_enumeration when
202 appropriate.
203 (add_partial_namespace): New.
204 (add_partial_enumeration, locate_pdi_sibling): Ditto.
205
c9263853
AC
2062003-09-09 Andrew Cagney <cagney@redhat.com>
207
e56a0ecc
AC
208 * rs6000-tdep.c (ppc_push_return_address): Delete function.
209 (rs6000_push_dummy_call): Set LR to BP_ADDR.
210 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
211 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
212
794a477a
AC
213 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
214 (rs6000_push_dummy_call): Set the "TOC" register.
215
c9263853
AC
216 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
217 methods "max_register_raw_size", "max_register_virtual_size" or
218 "register_virtual_size".
219
afa7d0b2
ILT
2202003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
221
222 * MAINTAINERS: Update my e-mail address.
223
7a41266b
AC
2242003-09-09 Andrew Cagney <cagney@redhat.com>
225
226 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
227 (rs6000_push_dummy_call): Store the struct return address.
228 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
229
77b2b6d4
AC
2302003-09-09 Andrew Cagney <cagney@redhat.com>
231
232 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
233 "ppc_sysv_abi_push_arguments".
234 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
235 "ppc_sysv_abi_push_arguments".
236 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
237 instead of "push_arguments".
238 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
239
e8a7b686
AC
2402003-09-09 Andrew Cagney <cagney@redhat.com>
241
242 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
243 instead of CALL_DUMMY_ADDRESS.
244
f86f5ca3
PH
2452003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
246
247 * p-lang.c: Eliminate "register".
248 * c-lang.c: Ditto.
249 * expprint.c: Ditto.
250 * f-lang.c: Ditto.
251 * jv-lang.c: Ditto.
252 * language.c: Ditto.
253 * m2-lang.c: Ditto.
254 * parse.c: Ditto.
255 * scm-lang.c: Ditto.
256 * objc-lang.c: Ditto.
257
83ee270e
NC
2582003-09-09 Nick Clifton <nickc@redhat.com>
259
260 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
261
a89aa300
AC
2622003-09-04 Andrew Cagney <cagney@redhat.com>
263
264 * avr-tdep.c: Include "dis-asm.h".
265 * cris-tdep.c: Include "dis-asm.h".
266 (cris_delayed_get_disassembler): Use "struct disassemble_info"
267 instead of corresponding typedef.
268 * h8300-tdep.c: Include "dis-asm.h".
269 * ia64-tdep.c: Include "dis-asm.h".
270 * i386-tdep.c: Include "dis-asm.h".
271 (i386_print_insn): Use "struct disassemble_info" instead of
272 corresponding typedef.
273 * m68k-tdep.c: Include "dis-asm.h".
274 * mcore-tdep.c: Include "dis-asm.h".
275 * mips-tdep.c: Include "dis-asm.h".
276 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
277 instead of corresponding typedef.
278 * ns32k-tdep.c: Include "dis-asm.h".
279 * s390-tdep.c: Include "dis-asm.h".
280 * sparc-tdep.c: Include "dis-asm.h".
281 * vax-tdep.c: Include "dis-asm.h".
282 * v850-tdep.c: Include "dis-asm.h".
283 * mn10300-tdep.c: Include "dis-asm.h".
284 * rs6000-tdep.c: Include "dis-asm.h".
285 * xstormy16-tdep.c: Include "dis-asm.h".
286 (_initialize_xstormy16_tdep): Delete "extern" declaration of
287 print_insn_xstormy16.
288 * Makefile.in (v850-tdep.o): Update dependencies.
289 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
290 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
291 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
292 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
293 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
294 (gdbarch_h): Remove $(dis_asm_h).
295 * disasm.c: Include "dis-asm.h".
296 (dis_asm_read_memory): Use "struct disassemble_info" instead of
297 corresponding typedef.
298 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
299 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
300 * gdbarch.sh: Do not include "dis-asm.h".
301 (struct disassemble_info): Declare opaque.
302 (TARGET_PRINT_INSN): Update declaration.
303 * gdbarch.h, gdbarch.c: Re-generate.
304
88a82a65
AC
3052003-09-08 Andrew Cagney <cagney@redhat.com>
306
307 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
308 CALL_DUMMY_ADDRESS, change to a predicate.
309 * gdbarch.h, gdbarch.c: Re-generate.
310 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
311 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
312 * infcall.c (call_function_by_hand): Ditto.
313 * sparc-tdep.c (sparc_push_return_address): Ditto.
314 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
315 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
316 CALL_DUMMY_ADDRESS with entry_point_address.
317 * v850-tdep.c (v850_push_return_address): Ditto.
318 * s390-tdep.c (s390_push_return_address): Ditto.
319 * rs6000-tdep.c (ppc_push_return_address): Ditto.
320 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
321 * mcore-tdep.c (mcore_push_return_address): Ditto.
322 * cris-tdep.c (cris_push_return_address): Ditto.
323 * arm-tdep.c (arm_push_return_address): Ditto.
324
3e2c4033
AC
3252003-09-08 Andrew Cagney <cagney@redhat.com>
326
327 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
328 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
329 and REG_UNMODIFIED to REG_SAME_VALUE.
330 (execute_cfa_program): Update.
331 (dwarf2_frame_cache): Update. Initialize table to
332 REG_UNSPECIFIED, complain if CFI fails to specify a register's
333 location.
334 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
335
39efb398
AC
3362003-09-08 Andrew Cagney <cagney@redhat.com>
337
338 * gnu-nat.c: Remove "inline" function attribute.
339 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
340
f5cb5aca
KB
3412003-09-08 Kevin Buettner <kevinb@redhat.com>
342
343 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
344 target.
345
1cb761c7
KB
3462003-09-08 Kevin Buettner <kevinb@redhat.com>
347
348 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
349 (frame_extra_info): Rename this struct to frv_unwind_cache.
350 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
351 Add fields ``prev_sp'' and ``base''.
352 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
353 (frv_saved_pc_after_call, frv_init_extra_frame_info)
354 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
355 Delete.
356 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
357 Revise all callers. Fill in the unwind cache argument and make
358 other adjustments to account for new frame mechanisms.
359 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
360 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
361 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
362 (frv_frame_unwind, frv_frame_base): New structs.
363 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
364 additional arguments expected by this method and adjust function
365 body accordingly.
366 (frv_gdbarch_init): Remove calls to the following functions:
367 set_gdbarch_deprecated_init_frame_pc(),
368 set_gdbarch_deprecated_saved_pc_after_call(),
369 set_gdbarch_deprecated_frame_chain(),
370 set_gdbarch_deprecated_frame_saved_pc(),
371 set_gdbarch_deprecated_frame_init_saved_regs(),
372 set_gdbarch_deprecated_push_arguments(),
373 set_gdbarch_deprecated_push_return_address(),
374 set_gdbarch_deprecated_pop_frame(),
375 set_gdbarch_deprecated_call_dummy_words(),
376 set_gdbarch_deprecated_sizeof_call_dummy_words(),
377 set_gdbarch_deprecated_init_extra_frame_info(),
378 set_gdbarch_deprecated_dummy_write_sp(), and
379 set_gdbarch_deprecated_pc_in_call_dummy().
380 Add calls to the following functions:
381 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
382 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
383 frame_base_set_default().
384 * Makefile.in (frv-tdep.o): Update dependencies.
385
68f6cf99
MK
3862003-09-09 Mark Kettenis <kettenis@gnu.org>
387
388 * dwarf2-frame.c (read_encoded_value): Add support for
389 DW_EH_PE_aligned encoding.
390
73b65bb0
DJ
3912003-09-08 Daniel Jacobowitz <drow@mvista.com>
392
393 * infrun.c (normal_stop): Don't print a message if the inferior
394 has exited.
395
7c8a5605
JB
3962003-09-08 Jim Blandy <jimb@redhat.com>
397
398 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
399 * dbxread.c: #include "gdb_assert.h".
400 (read_dbx_symtab): If the objfile has no .data section, use the
401 section index for the .bss section instead.
402
7dd88986
DJ
4032003-09-08 Daniel Jacobowitz <drow@mvista.com>
404
405 * frame.c (deprecated_safe_get_selected_frame): New function.
406 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
407 * findvar.c (read_var_value): Call it.
408
55ff77ac
CV
4092003-09-08 Corinna Vinschen <vinschen@redhat.com>
410
411 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
412 (sh64-tdep.o): Add dependencies.
413 * configure.tgt: Add FIXME to sh-*-linux*.
414 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
415 (sh_gdbarch_init): Always set correct sh_show_regs function
416 pointer. Call sh64_gdbarch_init() if machine type is sh5.
417 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
418 * sh64-tdep.c: New file, containing all sh64 related code from
419 sh-tdep.c.
420 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
421 * config/sh/linux.mt (TDEPFILES): Ditto.
422 * config/sh/nbsd.mt (TDEPFILES): Ditto.
423 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
424 * config/sh/wince.mt (TDEPFILES): Ditto.
425
bfb39158
DJ
4262003-09-07 Daniel Jacobowitz <drow@mvista.com>
427
428 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
429 (stop_wait_callback): Handle !lp->signalled also.
430 (lin_lwp_has_pending, flush_callback): New functions.
431 (lin_lwp_wait): Call flush_callback.
432 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
433 (linux_proc_pending_signals): New function.
434 * linux-nat.h (linux_proc_pending_signals): Add prototype.
435
9407de8e
DJ
4362003-09-07 Daniel Jacobowitz <drow@mvista.com>
437
438 From Nick Kelsey <nickk@ubicom.com>:
439 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
440 when the stop PC is at the beginning of a function also.
441
2ef47cd0
DJ
4422003-09-06 Daniel Jacobowitz <drow@mvista.com>
443
444 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
445 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
446
6f4492c8
MK
4472003-09-06 Mark Kettenis <kettenis@gnu.org>
448
449 * sol-thread.c: Include "gdb_string.h".
450
d3420b2f
MK
4512003-09-03 Mark Kettenis <m.kettenis@osp.nl>
452
453 * gcore.c: Reorder include files in alphabetical order. Include
454 "gdb_assert.h". Various coding style fixes.
455 (derive_stack_segment, derive_heap_segment): Replace check for
456 non-null BOTTOM and TOP with gdb_assert.
457 (derive_heap_segment): Replace check for successful creation of
458 ZERO with gdb_assert.
459 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
460
5220ea4c
AC
4612003-09-04 Andrew Cagney <cagney@redhat.com>
462
463 * thread-db.c (verbose_dlsym): New function.
464 (thread_db_load): Use verbose_dlsym
465 (thread_db_new_objfile): Print that libthread_db was loaded, and
466 that thread debugging was enabled.
467
6e8c2c06
AC
4682003-09-04 Andrew Cagney <cagney@redhat.com>
469
470 * configure.tgt: Add "mips64*-*-*" target. Delete
471 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
472 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
473 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
474 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
475 mips*-sony-*, and mips64*-*-elf* targets.
476 * config/mips/embedl.mt: Delete file.
477 * config/mips/embedl64.mt: Delete file.
478 * config/mips/mips.mt: Delete file.
479 * config/mips/mips64.mt: Delete file.
480 * config/mips/tm-embed.h: Delete file.
481 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
482 * config/mips/embed64.mt: Delete out-of-date comment.
483
3a3bc038
AC
4842003-09-04 Andrew Cagney <cagney@redhat.com>
485
486 * hppa-tdep.c (hppa_gdbarch_init): Set
487 "have_nonsteppable_watchpoint".
488 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
489 * mips-tdep.c (mips_dump_tdep): Do not print
490 HAVE_NONSTEPPABLE_WATCHPOINT.
491 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
492 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
493 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
494 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
495
a957e642
CV
4962003-09-04 Corinna Vinschen <vinschen@redhat.com>
497
498 * breakpoint.c (watchpoint_check): Remove accidentally checked in
499 unused code. Add comment.
500
a6fbcf2f
CV
5012003-09-04 Corinna Vinschen <vinschen@redhat.com>
502
503 * breakpoint.c (watchpoint_check): Check for pc being in an
504 epilogue if watchpoint frame couldn't be found.
505
c14a44d5
AC
5062003-09-04 Andrew Cagney <cagney@redhat.com>
507
508 * Makefile.in: Re-generate all dependencies.
509
f6c40618
AC
5102003-09-03 Andrew Cagney <cagney@redhat.com>
511
512 * arch-utils.h (legacy_print_insn): Delete declaration.
513 * arch-utils.c (legacy_print_insn): Delete function.
514 * disasm.c (deprecated_tm_print_insn_info): Delete.
515 (_initialize_disasm): Delete function, contained code initializing
516 deprecated_tm_print_insn_info.
517 * gdbarch.sh (deprecated_tm_print_insn): Delete.
518 (deprecated_tm_print_insn_info): Delete.
519 (TARGET_PRINT_INSN): Do not provide a default.
520 * gdbarch.h, gdbarch.c: Re-generate.
521
242e8be5
AC
5222003-09-03 Andrew Cagney <cagney@redhat.com>
523
524 * disasm.c (fprintf_disasm): New function.
525 (gdb_disassemble_info): Call "init_disassemble_info", instead of
526 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
527 reverts 2003-08-14 change.
528 (_initialize_disasm): Call "init_disassemble_info", instead of
529 INIT_DISASSEMBLE_INFO_NO_ARCH.
530
3ffc3dda
MS
5312003-09-03 Michael Snyder <msnyder@redhat.com>
532
533 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
534
52d16ba8
AC
5352003-09-03 Andrew Cagney <cagney@redhat.com>
536
537 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
538 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
539 * symfile.c (syms_from_objfile): Update.
540 (reread_symbols): `Update
541 * exec.c (exec_file_attach): Update.
542 (exec_file_attach): Update.
543 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
544 2003-08-29 change.
545 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
546
eb5492fa
DJ
5472003-09-03 Daniel Jacobowitz <drow@mvista.com>
548
549 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
550 trad-frame.h.
551 (arm_get_cache): Delete macro.
552 (struct arm_prologue_cache): Update comments. Make saved_regs into
553 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
554 to prev_sp.
555 (thumb_scan_prologue): Update for cache changes. Don't call
556 DEPRECATED_PC_IN_CALL_DUMMY.
557 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
558 argument and use it in desperation search for our prologue. Do not
559 search past the specified PC.
560 (arm_make_prologue_cache): Simplify.
561
562 (arm_prologue_this_id, arm_prologue_prev_register)
563 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
564 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
565 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
566 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
567 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
568
569 (arm_frame_chain_valid, arm_find_callers_reg)
570 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
571 (arm_pop_frame): Delete obsolete methods.
572 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
573
574 (arm_gdbarch_init): Update for new frame methods. Register prologue
575 and sigtramp unwinders. Set the default frame base method.
576
577 * Makefile.in (arm-tdep.o): Update dependencies.
578 * varobj.c (find_frame_addr_in_frame_chain): Call
579 get_frame_base_address.
580 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
581
24de872b
DJ
5822003-09-03 Daniel Jacobowitz <drow@mvista.com>
583
584 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
585 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
586 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
587 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
588 Take NEXT_FRAME and CACHE arguments. Call
589 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
590 Set unwound_pc in CACHE instead of modifying the frame argument.
591 Don't bother checking the frame type when looking for sigtramp
592 frames.
593 (arm_make_prologue_cache, arm_frame_chain)
594 (arm_init_extra_frame_info): New functions.
595
9b8d791a
DJ
5962003-09-03 Daniel Jacobowitz <drow@mvista.com>
597
598 * arm-tdep.c (arm_get_cache): Define.
599 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
600 unwound_sp, unwound_pc, and saved_regs.
601 (thumb_scan_prologue): Take a cache instead of the frame.
602 (arm_scan_prologue): Likewise.
603 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
604 instead of a temporary frame.
605 (arm_init_extra_frame_info): Allocate and use a cache.
606 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
607
7ee3275f
AC
6082003-09-03 Andrew Cagney <cagney@redhat.com>
609
610 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
611 * config/mips/wince.mt (TM_CLIBS): Ditto.
612 * config/sh/wince.mt (TM_CLIBS): Ditto.
613 * config/pa/hppa64.mt (TM_CLIBS): Delete.
614 * config/sparc/sp64.mt (CC): Delete.
615
57b29be7
AC
6162003-09-03 Andrew Cagney <cagney@redhat.com>
617
618 * defs.h: Do not include "arch-utils.h".
619 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
620 GDB_MULTI_ARCH_PURE.
621 * configure.in (GDB_MULTI_ARCH): Do not define.
622 * configure, config.in: Regenerate.
623 * configure.tgt: Do not set variable "gdb_multi_arch".
624 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
625 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
626 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
627 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
628 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
629 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
630 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
631 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
632 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
633 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
634 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
635 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
636 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
637 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
638 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
639 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
640 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
641 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
642
12e035e2
MC
6432003-08-30 Michael Chastain <mec@shout.net>
644
645 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
646 * config/m68k/nm-hp300hpux.h: Delete.
647 * config/m68k/tm-hp300hpux.h: Delete.
648 * config/m68k/xm-hp300hpux.h: Delete.
649 * config/m68k/xm-hp300bsd.h: Delete.
650 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
651 tm-hp300hpux.h, xm-hp300hpux.h.
652 * somsolib.c: Remove comment about hp300 shared libraries.
653
bda34dc2
MK
6542003-08-31 Mark Kettenis <kettenis@gnu.org>
655
5bca7895
MK
656 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
657 Only define PTRACE_GET_THREAD_AREA is not already defined.
658 Various style fixes in code and comments and some additional
659 spelling fixes in comments. Move after functions dealing with
660 debug registers.
661 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
662 Fix coding-style.
663
bda34dc2
MK
664 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
665 frame_unwind_register_unsigned instead of
666 frame_unwind_unsigned_register.
667
c890192f
MK
6682003-08-30 Mark Kettenis <kettenis@gnu.org>
669
670 * configure.in: Search for gethostbyname in libnsl.
671 * configure: Regenerated.
672
60fac5b8
MK
6732003-08-29 Mark Kettenis <kettenis@gnu.org>
674
e294916c
MK
675 * configure.in: Remove redundant AC_MSG_RESULT in check for
676 uintptr_t in stdint.h.
677 * configure: Regenerated.
678
c40d267a
MK
679 * amd64-nat.h (struct regcache): Add opaque declaration.
680
60fac5b8
MK
681 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
682 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
683 Change "register array" to "register cache" in comments.
684 (x86_64_linux_gregset64_reg_offset): New variable.
685 (GETREGS_SUPPLIES): Remove macro.
686 (supply_gregset): Call amd64_supply_native_gregset instead of
687 x86_64_linux_supply_gregset.
688 (fill_gregset): Rename `regno' to `regnum'. Call
689 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
690 (store_regs): Rename `regno' to `regnum'.
691 (store_fpregs): Rename `regno' to `regnum'.
692 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
693 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
694 Reorganize function a bit.
695 (store_inferior_registers): Rename `regno' to `regnum'. Use
696 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
697 Reorganize function a bit.
698 (_initialize_x86_64_linux_nat): New function.
699 * config/i386/x86-64linux.mh.
700
546143b6
AC
7012003-08-29 Andrew Cagney <cagney@redhat.com>
702
703 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
704 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
705 (target_remove_watchpoint): Delete macro.
706 (target_insert_watchpoint): Delete macro.
707 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
708 (remote_mips_stopped_by_watchpoint): Delete declaration.
709 (remote_mips_remove_watchpoint): Delete declaration.
710 (remote_mips_set_watchpoint): Delete declaration.
711 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
712 * remote-mips.c (_initialize_remote_mips): Set
713 "to_insert_watchpoint", "to_stopped_by_watchpoint",
714 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
715 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
716 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
717 (mips_stopped_by_watchpoint): Rename
718 remote_mips_stopped_by_watchpoint.
719 (mips_can_hardware_watchpoint): Rename
720 remote_mips_can_use_hardware_watchpoint, update function
721 signature.
722
7bace51b
MK
7232003-08-29 Mark Kettenis <kettenis@gnu.org>
724
b0f5c6f2
MK
725 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
726 USER_DS. We haven't given them a register number yet.
727
2a6d284d
MK
728 * amd64-nat.h: New file.
729 * amd64-nat.c: New file.
730 * amd64fbsd-nat.c: Include "amd64-nat.h".
731 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
732 (amd64fbsd32_r_reg_offset): New variable.
733 (supply_gregset): Simply call amd64_supply_native_gregset.
734 (fill_gregset): Rename `regno' to `regnum'. Simply call
735 amd64_collect_native_gregset.
736 (fill_fpregset): Rename `regno' to `regnum'.
737 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
738 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
739 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
740 `fpregset_t'. Call amd64_supply_native_gregset instead of
741 supply_gregset. Call x86_64_supply_fxsave instead of
742 supply_fpregset.
743 (store_inferior_registers): Rename `regno' to `regnum'. Replace
744 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
745 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
746 `fpregset_t'. Call amd64_collect_native_gregset instead of
747 fill_gregset. Call x86_64_collect_fxsave instead of
748 fill_fpregset.
749 (_initialize_am64fbsd_nat): Initialize
750 amd64_native_gregset32_reg_offset and
751 amd64_native_gregset64_reg_offset.
752 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
753
a16d75cc
MK
754 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
755 null pointer. Fix typo in comment.
756
7bace51b
MK
757 * regcache.c (supply_register): Reimplement to call
758 regcache_raw_supply.
759 (regcache_collect): Reimplement by calling regcache_raw_collect.
760
9a661b68
MK
7612003-08-28 Mark Kettenis <kettenis@gnu.org>
762
763 * regcache.c (register_buffer): Consitify first argument.
764 (regcache_raw_supply, regcache_raw_collect): New
765 functions.
766
e94cc8fa
DJ
7672003-08-28 Daniel Jacobowitz <drow@mvista.com>
768
769 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
770 by Nathan J. Williams.
771
c64bd0ce
DJ
7722003-08-28 Daniel Jacobowitz <drow@mvista.com>
773
774 * lin-lwp.c (wait_lwp): New function, copied from
775 stop_wait_callback. Clean up.
776 (stop_wait_callback): Use wait_lwp.
777
e5ab0dce
AC
7782003-08-28 Andrew Cagney <cagney@redhat.com>
779
780 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
781 flavour and disassembler options.
782 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
783 (mips_gdbarch_init): Set "print_insn". Delete initialization of
784 deprecated_tm_print_insn_info.
785
a788de9b
AC
7862003-08-27 Andrew Cagney <cagney@redhat.com>
787
788 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
789 Use target_read_memory.
790 (s390_get_frame_info): Update. Do not reference
791 deprecated_tm_print_insn_info.
792 (s390_check_function_end, s390_is_sigreturn): Ditto.
793
36482093
AC
7942003-08-27 Andrew Cagney <cagney@redhat.com>
795
796 * Makefile.in (cris-tdep.o): Update dependencies.
797 * cris-tdep.c: Include "gdb_assert.h".
798 (cris_gdbarch_init): Set print_insn.
799 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
800 (cris_delayed_get_disassembler): Simplify, directly call the
801 disassembler returned by cris_get_disassembler.
802 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
803 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
804 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
805 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
806 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
807 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
808 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
809 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
810 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
811 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
812 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
813 (gdb_print_insn_sparc): Delete function.
814 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
815 deprecated_tm_print_insn_info.
816 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
817 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
818 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
820 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
821 * s390-tdep.c (gdb_print_insn_s390): Delete function.
822 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
823 (s390_gdbarch_init): Set print_insn.
824
0285512f
AC
8252003-08-27 Andrew Cagney <cagney@redhat.com>
826
827 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
828 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
829 * infcall.c (call_function_by_hand): Convert the entry point
830 address into a code address.
831
cdcd5552
AC
8322003-08-27 Andrew Cagney <cagney@redhat.com>
833
834 * dsrec.c: Include "gdb_string.h".
835 * Makefile.in (dsrec.o): Update dependencies.
836
e85cddad
MC
8372003-08-27 Michael Chastain <mec@shout.net>
838
839 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
840
8bbfbb23
AC
8412003-08-27 Andrew Cagney <cagney@redhat.com>
842
843 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
844 (alpha_osf1_init_abi): Do not set call_dummy_address.
845
ba058b66
DC
8462003-08-27 David Carlton <carlton@kealia.com>
847
848 From Randolph Chung <tausq@debian.org>:
849 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
850 compiles with -Wformat-nonliteral -Werror.
851
87f84c9d
JB
8522003-08-26 Jim Blandy <jimb@redhat.com>
853
854 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
855 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
856 bfd_lookup_symbol, since we only want symbols in code sections.
857 (look_for_base): Pass zero as the SECT_FLAGS argument to
858 bfd_lookup_symbol, since we're not concerned about which section
859 the symbol is in.
860
102d615a
JJ
8612003-08-26 Jeff Johnston <jjohnstn@redhat.com>
862
863 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
864 we are frameless or the return address register is already known.
865
cc7ad3ea
AC
8662003-08-26 Andrew Cagney <cagney@redhat.com>
867
868 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
869 in size. Add comments.
870
af8b88dd
JJ
8712003-08-26 Jeff Johnston <jjohnstn@redhat.com>
872
873 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
874 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
875
e0a4f5a1
JM
8762003-08-26 Jason Merrill <jason@redhat.com>
877
878 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
879 case out of #ifdef MIPS block.
880
4ae9ee8e
DJ
8812003-08-25 Daniel Jacobowitz <drow@mvista.com>
882
883 PR java/1322
884 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
885 available before calling SECT_OFF_TEXT.
3c164570 886 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 887
004d836a
JJ
8882003-08-25 Jeff Johnston <jjohnstn@redhat.com>
889
890 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
891 bof, and nat0-nat127 as pseudo-registers.
892 (ia64_frame_cache): New struct used to cache frame info.
893 (ia64_register_reggroup_p): New routine used to override default
894 register grouping so registers without names are still saved and
895 restored.
896 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
897 pseudo values.
898 (ia64_pseudo_register_read): New routine to read pseudo-registers.
899 (ia64_pseudo_register_write): New routine to write pseudo-registers.
900 (ia64_alloc_frame_cache): New routine to create a new
901 ia64_frame_cache.
902 (examine_prologue): Change prototype to add next_frame pointer.
903 Assume frameless until otherwise proven. Verify that the cfm for
904 current frame matches the cfm that should occur for the prologues
905 alloc insn and if equal, mark as not frameless. At end of routine,
906 if not frameless, calculate registers for the previous frame and store
907 in the cache, if a cache is provided.
908 (ia64_skip_prologue): Use new prototype when calling examine_prologue
909 and pass 0 for next_frame.
910 (ia64_store_return_value): Change to use convert_typed_floating()
911 instead of calling ia64_convert_to_raw().
912 (ia64_extract_return_value): Change to use convert_typed_floating()
913 instead of calling ia64_convert_to_virtual().
914 (ia64_frame_cache): New routine to support new frame model.
915 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
916 (ia64_frame_sniffer): Ditto.
917 (ia64_sigtramp_frame_init_saved_regs): Ditto.
918 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
919 (ia64_sigtramp_frame_prev_register): Ditto.
920 (ia64_sigtramp_frame_sniffer): Ditto.
921 (ia64_frame_base_address): Ditto.
922 (ia64_extract_struct_value_address): Change to issue error message.
923 (ia64_frame_align): New routine to align sp.
924 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
925 (ia64_push_arguments): Removed. Logic moved to
926 ia64_push_dummy_call().
927 (ia64_push_return_address): Ditto.
928 (ia64_unwind_dummy_id): New function.
929 (ia64_unwind_pc): Ditto.
930 (ia64_convert_register_p): Ditto.
931 (ia64_register_to_value): Ditto.
932 (ia64_value_to_register): Ditto.
933 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
934 (ia64_register_byte, ia64_register_raw_size): Ditto.
935 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
936 (ia64_saved_pc_after_call): Ditto.
937 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
938 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
939 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
940 (ia64_register_convert_to_raw): Ditto.
941 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
942 (ia64_init_extra_frame_info): Ditto.
943 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
944 (ia64_gdbarch_init): Remove registering of deprecated functions that
945 are no longer used. Add registration of new gdbarch functions.
946 Remove registering deprecated_write_sp. Replace
947 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
948 Delete set_gdbarch_deprecated_register_convertible(),
949 set_gdbarch_deprecated_register_convert_to_virtual(), and
950 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
951 set_gdbarch_deprecated_register_size(),
952 set_gdbarch_deprecated_register_bytes(),
953 set_gdbarch_pcregnum(),
954 set_gdbarch_deprecated_register_byte(),
955 set_gdbarch_deprecated_register_raw_size(),
956 set_gdbarch_deprecated_max_register_raw_size(),
957 set_gdbarch_deprecated_register_virtual_size(),
958 and set_gdbarch_deprecated_max_register_virtual_size() calls.
959 Replace set_gdbarch_deprecated_extract_return_value() with
960 set_gdbarch_extract_return_value(). Remove calls to:
961 set_gdbarch_deprecated_saved_pc_after_call();
962 set_gdbarch_deprecated_frame_chain(),
963 set_gdbarch_deprecated_frame_saved_pc(),
964 set_gdbarch_deprecated_frame_init_saved_regs(),
965 set_gdbarch_deprecated_get_saved_register(),
966 set_gdbarch_deprecated_call_dummy_words(),
967 set_gdbarch_deprecated_sizeof_call_dummy_words(),
968 set_gdbarch_deprecated_init_extra_frame_info(),
969 set_gdbarch_deprecated_frame_args_address(),
970 set_gdbarch_deprecated_frame_locals_address(),
971 and set_gdbarch_deprecated_dummy_write_sp().
972 Add set_gdbarch_convert_register_p(),
973 set_gdbarch_register_to_value(),
974 set_gdbarch_value_to_register(),
975 set_gdbarch_push_dummy_call(),
976 set_gdbarch_frame_align(),
977 set_gdbarch_unwind_dummy_id(),
978 set_gdbarch_unwind_pc(),
979 frame_unwind_append_sniffer(),
980 frame_unwind_append_sniffer(),
981 and frame_base_set_default().
982
aede7613
CD
9832003-08-25 Chris Demetriou <cgd@broadcom.com>
984
985 * configure.tgt: Document need for special "mipsisa64" handling.
986 (mipsisa64*-*-linux64): Handle as target linux64.
987 (mipsisa64*-*-*): Handle as target embed64.
988
43c3a82e
MC
9892003-08-18 Michael Chastain <mec@shout.net>
990
991 * PROBLEMS: Document pr gdb/1322, the Java anonymous
992 objfile bug.
993
6564f77d
MK
9942003-08-24 Mark Kettenis <kettenis@gnu.org>
995
2de139ba
MK
996 * i387-tdep.h: Update copyright date.
997 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
998
6564f77d
MK
999 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1000 CFLAGS games to reflect reality.
1001
42cf1509
AC
10022003-08-24 Andrew Cagney <cagney@redhat.com>
1003
1004 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1005 GDB_MULTI_ARCH is always non-zero.
1006 * osabi.c (_initialize_gdb_osabi): Ditto.
1007 (gdbarch_init_osabi): Ditto.
1008 * sparc-tdep.c: Ditto for #if code.
1009
0485f6ad
MK
10102003-08-23 Mark Kettenis <kettenis@gnu.org>
1011
1012 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1013 Update comments.
1014 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1015 comments.
1016 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1017 x86_64_supply_fxsave.
1018 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1019 x86_64_supply_fxsave.
1020 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1021 x86_64_supply_fxsave.
1022
c7716133
AJ
10232003-08-23 Andreas Jaeger <aj@suse.de>
1024
1025 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1026 i387_supply_fxsave.
1027
ed504bdf
MK
10282003-08-23 Mark Kettenis <kettenis@gnu.org>
1029
1030 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1031 i387_supply_register.
1032 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1033 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1034 i387_supply_fsave.
1035 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1036 i387_supply_fxsave.
1037 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1038 i387_supply_fsave.
1039 * i386bsd-nat.c (supply_fpregset): Adjust call to
1040 i387_supply_fsave.
1041 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1042 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1043 supply_fpregset.
1044 (store_inferior_registers): Remove extraneous whitespace. Call
1045 i387_fill_fsave instead of fill_fpregset.
1046 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1047 (supply_fpregset): Likewise.
1048 * i386v4-nat.c (supply_fpregset): Adjust call to
1049 i387_supply_fsave.
1050 * i386-interix-nat.c (supply_fpregset): Adjust call to
1051 i387_supply_fsave.
1052 * i386-linux-nat.c (supply_fpregset): Adjust call to
1053 i387_supply_fsave.
1054 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1055 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1056 i387supply_fsave and i387_supply_fxsave.
1057 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1058 Incorporate code from `i387_supply_register.
1059 (i387_supply_register): Remove.
1060 (i387_supply_fxsave): Add `regnum' argument.
1061 Update comments.
1062 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1063 prototype.
1064 (i387_supply_register): remove prototype.
1065 Update comments.
1066
4be5d520
MC
10672003-08-22 Michael Chastain <mec@shout.net>
1068
1069 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1070 Add lines for files in gdb/testsuite/gdb.cp/* that are
1071 still not 8.3 unique.
1072
7ed85d26
DJ
10732003-08-22 Daniel Jacobowitz <drow@mvista.com>
1074
1075 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1076 TYPE_VPTR_FIELDNO is valid.
1077
eb0d3137
MK
10782003-08-19 Mark Kettenis <kettenis@gnu.org>
1079
1080 * utils.c (set_width_command): Remove prototypes.
1081 (set_screen_size): New prototype.
1082 (init_page_info): Simplify by fetching the screen size from
1083 Readline. Call set_screen_size.
1084 (set_screen_size): New function.
1085 (set_width): Add missing whitespace in comment.
1086 (set_width_command): Call set_screen_size.
1087 (set_height_command): New function.
1088 (initialize_utils): Fix formatting. Make "set height" command
1089 call set_height_command. Remove redundant code that turns off
1090 pagination if output isn't a terminal. Remove redundant call to
1091 set_width_command.
1092
7e6d0ac8
MK
10932003-08-22 Mark Kettenis <kettenis@gnu.org>
1094
3567a8ea
MK
1095 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1096 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1097 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1098 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1099 `case' keyword.
1100 (sparc64_register_info): Give the reister with number
1101 SPARC64_STATE_REGNUM a name.
1102 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1103 %asi and %ccr.
1104 (sparc64_push_dummy_call): Take BIAS into account when checking
1105 stcak alignment.
1106 (sparc_software_single_step): Remove assertions that check whether
1107 NPC and NNPC were zero.
1108 (sparc_supply_rwindow): Make public. Merge functionality with
1109 sparc64_supply_rwindow.
1110 (sparc_fill_rwindow): Make public. Merge functionality with
1111 sparc64_fill_rwindow.
1112 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1113 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1114 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1115 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1116 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1117
7e6d0ac8
MK
1118 * reggroups.c: Add whitespace after declarations of local
1119 variables in functions.
1120
72e5f484
MC
11212003-08-21 Michael Chastain <mec@shout.net>
1122
1123 * gdbtypes.h: Change array bound type from an int to enum.
1124
435ac228
AC
11252003-08-21 Andrew Cagney <cagney@redhat.com>
1126
1127 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1128 * config/sparc/tm-sparc.h: Ditto.
1129 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1130 unconditionally.
1131 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1132
0d0e1a63
MK
11332003-07-13 Mark Kettenis <kettenis@gnu.org>
1134
1135 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1136 (register_objfile_data, set_objfile_data, objfile_data): New
1137 prototypes.
1138 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1139 prototypes.
1140 (allocate_objfile): Call objfile_alloc_data.
1141 (free_objfile): Call objfile_free_data.
1142 (struct objfile_data): New.
1143 (struct objfile_data_registration): New.
1144 (struct objfile_data_registry): New.
1145 (objfile_data_registry): New variable.
1146 (register_objfile_data): New function.
1147 (objfile_alloc_data, objfile_free_data): New functions.
1148 (set_objfile_data, objfile_data): New functions.
1149 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1150 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1151 (_initialize_dwarf2_frame): New function and prototype.
1152
d90cf509
AC
11532003-08-21 Andrew Cagney <cagney@redhat.com>
1154
1155 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1156 a specific architecture.
1157 * arch-utils.h (set_architecture_from_arch_mach): Delete
1158 declaration.
1159 (target_architecture_hook): Delete declaration.
1160 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1161 (default_float_format): Assume GDB_MULTI_ARCH.
1162 (default_double_format): Assume GDB_MULTI_ARCH.
1163 (set_endian_from_file): Delete function.
1164 (arch_ok): Delete function.
1165 (set_arch): Delete function.
1166 (set_architecture_from_arch_mach): Delete function.
1167 (set_architecture_from_file): Delete function.
1168 (set_architecture): Assume GDB_MULTI_ARCH.
1169 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1170
8b39fe56
MK
11712003-08-21 Mark Kettenis <kettenis@gnu.org>
1172
1173 Rewrite FreeBSD/sparc64 native configuration.
1174 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1175 * sparc64fbsd-nat.c: New file.
1176 * sparc64fbsd-tdep.c: New file.
1177 * sparc64-tdep.c sparc64-tdep.h: New files.
1178 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1179 sparc64fbsd-tdep.o): New dependencies.
1180 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1181 and sparc64fbsd-tdep.c.
1182 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1183 * config/sparc/fbsd.mh: Remove copyright notice.
1184 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1185 sparcbsd-nat.o.
1186 * config/sparc/fbsd.mt: Remove copyright notice.
1187 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1188 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1189 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1190 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1191 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1192 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1193 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1194 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1195 "sparc/tm-sp64.h".
1196 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1197 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1198
a7f19c79
MC
11992003-08-21 Michael Chastain <mec@shout.net>
1200
1201 * symtab.h: Add doco on the space critical structures and
1202 some measurements of space usage.
1203
da08ea5b
MS
12042003-08-21 Michael Snyder <msnyder@redhat.com>
1205
1206 * tracepoint.c (trace_dump_command): Trace break address
1207 is subject to DECR_PC_AFTER_BREAK.
1208 (set_traceframe_context): Make "trace_line" an int.
1209 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1210
6df2bf50
MS
12112003-08-20 Michael Snyder <msnyder@redhat.com>
1212
1213 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1214 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1215 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1216 argument passing.
1217 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1218 functions, replace sh_push_dummy_call.
1219 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1220
0955bbf0
MC
12212003-08-20 Michael Chastain <mec@shout.net>
1222
1223 * gdbtypes.h (struct main_type): Rearrange to save space.
1224
260a4188
MS
12252003-08-20 Michael Snyder <msnyder@redhat.com>
1226
1227 * trad-frame.c: Comment typo fix.
1228
8baa6f92
KB
12292003-08-20 Michael Snyder <msnyder@redhat.com>
1230 Kevin Buettner <kevinb@redhat.com>
1231
1232 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1233 (frv_frame_init_saved_regs): Add declaration.
1234 (frame_extra_info): Add new field ``saved_regs''.
1235 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1236 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1237 Update frame related code.
1238 (frv_extract_struct_value_address): Adjust formatting.
1239 * Makefile.in (frv-tdep.o): Update dependencies.
1240 * config/frv/tm-frv.h (target_insert_watchpoint)
1241 (target_remove_watchpoint, target_insert_hw_breakpoint)
1242 (target_remove_hw_breakpoint): Delete these macros.
1243 (remote_insert_watchpoint, remote_remove_watchpoint)
1244 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1245 these declarations.
1246
87193939
MC
12472003-08-20 Michael Chastain <mec@shout.net>
1248
1249 * defs.h (ENUM_BITFIELD): New macro.
1250 * symtab.h (ENUM_BITFIELD): Use it.
1251 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1252
062103ba
SA
12532003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1254
1255 * MAINTAINERS (write after approval): Add myself.
1256
8b148df9
AC
12572003-08-18 Andrew Cagney <cagney@redhat.com>
1258
1259 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1260 * gdbarch.h, gdbarch.c: Re-generate.
1261 * infcall.c (call_function_by_hand): Adjust the SP by
1262 frame_red_zone_size before allocating any stack space.
1263 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1264 * x86-64-tdep.c (x86_64_frame_align): New function.
1265 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1266
1267 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1268 Remove code adjusting SP so that it skips over the Red Zone.
1269
954a4db8
MK
12702003-08-18 Mark Kettenis <kettenis@gnu.org>
1271
1272 * NEWS (New native configurations): Mention FreeBSD/amd64.
1273
1a241548
AC
12742003-08-18 Andrew Cagney <cagney@redhat.com>
1275
1276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1277 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1278 "m68k_frame_p".
1279 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1280
f82b2acd
MK
12812003-08-18 Mark Kettenis <kettenis@gnu.org>
1282
1283 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1284
4056d258
ML
12852003-08-18 Michal Ludvig <mludvig@suse.cz>
1286
1287 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1288 Define.
1289 * i386-linux-nat.c: Include "linux-nat.h".
1290 (child_post_startup_inferior): New function.
1291
99ab4326
MK
12922003-08-18 Mark Kettenis <kettenis@gnu.org>
1293
1294 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1295 at the start of a frameless function. This probably fixes PR
1296 backtrace/1338.
1297
c8d5f0d6
MC
12982003-08-17 Michael Chastain <mec@shout.net>
1299
1300 * symfile.c (find_sym_fns): Remove special case for apollo target.
1301
9016a515
DJ
13022003-08-17 Daniel Jacobowitz <drow@mvista.com>
1303
1304 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1305 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1306 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1307 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1308 (linux_supports_tracevforkdone): New function.
1309 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1310 TRACEVFORKDONE.
1311 (child_follow_fork): Handle vfork.
1312 (linux_handle_extended_wait): Likewise. Also handle exec.
1313 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1314 * NEWS: Mention fork tracing.
1315
c538c11c
DJ
13162003-08-17 Daniel Jacobowitz <drow@mvista.com>
1317
1318 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1319
4de4c07c
DJ
13202003-08-17 Daniel Jacobowitz <drow@mvista.com>
1321
1322 * Makefile.in (i386-linux-nat.o): Update dependencies.
1323 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1324 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1325 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1326 * i386-linux-nat.c: Include "linux-nat.h".
1327 (child_post_startup_inferior): New function.
1328 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1329 * infptrace.c (kill_inferior): Wrap in #ifdef.
1330 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1331 attaching to each LWP.
1332 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1333 (init_lin_lwp_ops): Fill in some more operations.
1334 * linux-nat.h (linux_enable_event_reporting)
1335 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1336 prototypes.
1337 * linux-nat.c (linux_enable_event_reporting): New function.
1338 (child_post_attach, linux_child_post_startup_inferior)
1339 (child_post_startup_inferior, child_follow_fork)
1340 (linux_handle_extended_wait, kill_inferior): New functions.
1341
7996bcec
AC
13422003-08-16 Andrew Cagney <cagney@redhat.com>
1343
1344 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1345 * gdbarch.h, gdbarch.c: Re-generate.
1346
3d48a7a0
MK
13472003-08-16 Mark Kettenis <kettenis@gnu.org>
1348
1349 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1350
7989c619
AC
13512003-08-16 Andrew Cagney <cagney@redhat.com>
1352
1353 * NEWS: Mention that "set prompt-escape-char" was deleted.
1354 * top.c (get_prompt_1): Delete function.
1355 (gdb_prompt_escape):
1356 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1357 prompt-escape-char" command.
1358 (MAX_PROMPT_SIZE): Delete macro.
1359 (get_prompt): Simplify, do not call get_prompt_1.
1360
07978cd8
AC
13612003-08-16 Andrew Cagney <cagney@redhat.com>
1362
1363 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1364 -Werror. -Wformat-nonliteral problems.
1365
3ff7cf9e
JB
13662003-08-15 J. Brobecker <brobecker@gnat.com>
1367
1368 Further multiarching work mostly for hppa64-*-hpux11:
1369 * hppa-tdep.h: New file.
1370 * hppa-tdep.c: #include hppa-tdep.c.
1371 (hppa32_num_regs): Renamed from hppa_num_regs.
1372 (hppa64_num_regs): New constant.
1373 (hppa64_call_dummy_breakpoint_offset): New constant.
1374 (hppa32_call_dummy_length): New constant.
1375 (hppa64_call_dummy_length): New constant.
1376 (hppa32_stack_align): Make name 32bit explicit.
1377 (hppa32_register_virtual_type): Likewise.
1378 (hppa32_extract_return_value): Likewise.
1379 (hppa32_use_struct_convention): Likewise.
1380 (hppa32_store_return_value): Likewise.
1381 (hppa64_register_virtual_type): New function.
1382 (hppa64_extract_return_value): New function.
1383 (hppa64_use_struct_convention): New function.
1384 (hppa64_store_return_value): New function.
1385 (hppa_frame_locals_address): Remove declaration, function does
1386 not exist anymore.
1387 (hppa_register_byte): Add support for PA64 ABI.
1388 (hppa_gdbarch_init): Add support for PA64 ABI.
1389 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1390 Make name 32bit explicit.
1391 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1392 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1393 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1394 (hppa64_hpux_frame_base_before_sigtramp): New function.
1395 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1396 * config/pa/tm-hppa64.h: Remove macros that are no longer
1397 necessary now that the gdbarch vector is properly setup.
1398 Transform some macros into function calls. Some minor cleanup.
1399 * config/pa/tm-hppah.h: Update function calls in macros
1400 following the function renaming in hppa-hpux-tdep.c.
1401 * Makefile.in (hppa_tdep_h): New variable.
1402 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1403
5d05ca6d
MS
14042003-08-14 Michael Snyder <msnyder@redhat.com>
1405
1406 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1407
37ba2569
JB
14082003-08-13 J. Brobecker <brobecker@gnat.com>
1409
1410 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1411 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1412 routine.
1413
aed7f26a
MS
14142003-08-13 Michael Snyder <msnyder@redhat.com>
1415
1416 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1417 (frv_saved_pc_after_call): Use deprecated ftype.
1418 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1419 (frv_remote_translate_xfer_address): Remove.
1420 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1421
752d4ac1
JB
14222003-08-13 J. Brobecker <brobecker@gnat.com>
1423
1424 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1425 initialization after the common gdbarch initialization, not before.
1426
1426ac1d
JB
14272003-08-13 J. Brobecker <brobecker@gnat.com>
1428
1429 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1430 (ADDR_BITS_REMOVE): Remove, redundant.
1431
b6fbdd1d
JB
14322003-08-13 J. Brobecker <brobecker@gnat.com>
1433
1434 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1435 gdbarch method to clear the 2 low bits of text addresses.
1436
44160db3
AC
14372003-08-12 Andrew Cagney <cagney@redhat.com>
1438
1439 * Makefile.in (dsrec.o): Update dependencies.
1440 * dsrec.c: Include "gdb_assert.h".
1441 (make_srec): Use snprintf instead of sprintf, use a literal format
1442 string.
1443
bcf7d3ca
AC
14442003-08-12 Andrew Cagney <cagney@redhat.com>
1445
1446 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1447 FRAME_OBSTACK_ZALLOC.
1448
49ed40de
KB
14492003-08-12 Kevin Buettner <kevinb@redhat.com>
1450
1451 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1452 SSE registers.
1453
b246147c
MK
14542003-08-10 Mark Kettenis <kettenis@gnu.org>
1455
1456 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1457 amd64fbsd_sc_reg_offset): Add extern declarations.
1458 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1459 declarations.
1460
d95fdc0d
BE
14612003-08-11 Ben Elliston <bje@wasabisystems.com>
1462
1463 * MAINTAINERS (write after approval): Update my mail address.
1464
cf6a0e73
AC
14652003-08-10 Andrew Cagney <cagney@redhat.com>
1466
1467 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1468
f837910f
MK
14692003-08-10 Mark Kettenis <kettenis@gnu.org>
1470
e2dbbd2d
MK
1471 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1472 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1473 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1474 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1475 i386bsd_sc_reg_offset): Add extern declarations.
1476 * i386obsd-nat.c: Include "i386-tdep.h"
1477 (_initialize_i386obsd_nat): Remove extern declarations.
1478 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1479 declarations.
1480 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1481 declarations.
1482
f837910f
MK
1483 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1484 instead of frame_read_register.
1485 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1486 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1487 SP_REGNUM.
1488 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1489 instead of frame_unwind_unsigned_register. Use
1490 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1491 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1492 instead of read_register. Use builtin_type_void_data_ptr instead
1493 of builtin_type_void_func_ptr when extracting the address of the
1494 jmp_buf.
1495 (i386_extract_return_value, i386_store_return_value,
1496 i386_pseudo_register_read, i386_pseudo_register_write): Use
1497 register_size instead REGISTER_RAW_SIZE.
1498
edcf254d
AC
14992003-08-10 Andrew Cagney <cagney@redhat.com>
1500
1501 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1502 sprintf. Make "name" constant.
1503
26604a34
MK
15042003-08-10 Mark Kettenis <kettenis@gnu.org>
1505
192285c6
MK
1506 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1507 instead of frame_read_register.
f837910f
MK
1508 (i387_print_float_info): Use get_frame_register and
1509 get_frame_register_unsigned instead of frame_register_read.
192285c6 1510
f0925262
MK
1511 * i386fbsd-nat.c: Include "i386-tdep.h".
1512 (child_resume): Make `eflags' an ULONGEST. Use
1513 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1514 instead of register_read and register_write.
1515
a144416f
MK
1516 * i386bsd-nat.c (fetch_inferior_registers,
1517 store_inferior_registers): Don't use && at the end of a line.
1518 (_initialize_i386bsd_nat): Fix typo.
1519
fec74868
MK
1520 * frame.c (_initialize_frame): Add missing backslash.
1521
87232496
MK
1522 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1523 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1524 and supply_register instead of manipulating the register buffer
1525 directly.
1526
c9b9de0b
MK
1527 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1528 * config/i386/nm-i386sol2.h
1529 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1530
26604a34
MK
1531 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1532 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1533 instructions that GCC likes to mingle into the prologue. Fixes
1534 gdb/1253 and gdb/1255.
1535
25d29d70
AC
15362003-08-09 Andrew Cagney <cagney@redhat.com>
1537
1538 Fix GDB PR cli/926.
1539 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1540 * command.h (add_setshow_uinteger_cmd): Declare.
1541 * frame.c (set_backtrace_cmd): New function.
1542 (show_backtrace_cmd): New function.
1543 * frame.c (_initialize_frame): Replace "set/show
1544 backtrace-below-main" with "set/show backtrace past-main". Add
1545 command "set/show backtrace limit".
1546 (backtrace_past_main): Rename "backtrace_below_main".
1547 (backtrace_limit): New variable.
1548 (get_prev_frame): Update. Check the backtrace_limit.
1549
9ebf4acf
AC
15502003-08-09 Andrew Cagney <cagney@redhat.com>
1551
1552 * defs.h (xstrprintf): Declare.
1553 * utils.c (xstrprintf): New function.
1554 * breakpoint.c (insert_breakpoints): Replace sprintf and
1555 non-literal format strings, with xstrprintf and cleanups.
1556 (delete_breakpoint,breakpoint_re_set): Ditto.
1557 (commands_command, insert_breakpoints): Ditto.
1558 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1559 (break_at_finish_command_1): Ditto.
1560
3771659b
AC
15612003-08-09 Andrew Cagney <cagney@redhat.com>
1562
1563 * MAINTAINERS (language support): List Adam Fedor as Objective C
1564 maintainer.
1565
b4263afa
JB
15662003-08-08 J. Brobecker <brobecker@gnat.com>
1567
1568 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1569 are now multiarched.
1570
d84defb1
JB
15712003-08-08 J. Brobecker <brobecker@gnat.com>
1572
1573 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1574 longer necessary now that hppa64 is partially multiarch'ed.
1575
f786f615
AC
15762003-08-08 Andrew Cagney <cagney@redhat.com>
1577
1578 * interps.c (interp_set): Check for a NULL "old_interp".
1579
c938e9b0
L
15802003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1581
1582 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1583 (install-only): Support DESTDIR.
1584 (uninstall): Likewise.
1585 (install-gdbtk): Likewise.
1586
9a146a11
EZ
15872003-08-08 Elena Zannoni <ezannoni@redhat.com>
1588
1589 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1590 contains something meaningful at all times.
1591
1592Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1593
62599e99 1594 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1595
56296155
BC
1596Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1597
62599e99 1598 * MAINTAINERS (write after approval): Added self.
56296155 1599
9710e734
AC
16002003-08-07 Andrew Cagney <cagney@redhat.com>
1601
1602 * inferior.h (AT_SYMBOL): Define.
1603 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1604 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1605 * mips-tdep.c (mips_call_dummy_address): Delete function.
1606 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1607 set call_dummy_address.
1608
98b3ab73
AC
16092003-08-07 Andrew Cagney <cagney@redhat.com>
1610
1611 * language.c (op_error): Delete function.
1612 (binop_type_check): Delete function.
1613 * language.h (type_op_error, range_op_error): Delete macros.
1614 (op_error): Delete declaration.
1615
2fcf52f0
AC
16162003-08-07 Andrew Cagney <cagney@redhat.com>
1617
1618 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1619
abd4220e 16202003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1621
abd4220e 1622 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1623 (x86_64_push_arguments): Skip the red zone.
abd4220e 1624
9dd5f34f
AC
16252003-08-05 Andrew Cagney <cagney@redhat.com>
1626
1627 * reggroups.c (reggroup_next): Check for the final entry.
1628
e5e78edc
AC
16292003-08-04 Andrew Cagney <cagney@redhat.com>
1630
ab4e3d93
AC
1631 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1632 * cli/cli-script.c (define_command): Call query directly, instead
1633 of passing it a buffer.
1634 * ocd.c (ocd_error): Pass error a constant format string.
1635 * remote-mips.c (mips_error): Use fputs_filtered.
1636
1062ca82
AC
1637 * solib-svr4.c (_initialize_svr4_solib): Update
1638 register_gdbarch_data call.
1639 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1640
fcc1c85c
AC
1641 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1642 (register_gdbarch_data): Delete "free" parameter. Update
1643 comments.
1644 * gdbarch.h, gdbarch.c: Re-generate.
1645 * reggroups.c (_initialize_reggroup): Update.
1646 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1647 * frame-base.c (_initialize_frame_base): Update.
1648 * frame-unwind.c (_initialize_frame_unwind): Update.
1649 * user-regs.c (_initialize_user_regs): Update.
1650 * remote.c (_initialize_remote): Update.
1651 * regcache.c (_initialize_regcache): Update.
1652
116f06ea
AC
1653 * regcache.c (xfree_regcache_descr): Delete function.
1654 (_initialize_regcache): Update call to register_gdbarch_data.
1655 (init_regcache_descr, init_legacy_regcache_descr): Use
1656 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1657
e5e78edc
AC
1658 * remote.c (free_remote_state): Delete function.
1659 (_initialize_remote): Update register_gdbarch_data.
1660 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1661 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1662
6c7d17ba
AC
16632003-08-04 Andrew Cagney <cagney@redhat.com>
1664
1665 * reggroups.c (struct reggroup_el): Define.
1666 (struct reggroups): Delete field "nr_group". Replace array
1667 "group" with a "first" to "last" linked list.
1668 (reggroups_init): Update. Allocate using gdbarch's obstack.
1669 (reggroups_free): Delete function.
1670 (add_group): Update. Add "el" parameter.
1671 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1672 (default_groups): Update.
1673 (reggroup_next): Replace reggroups.
1674 (reggroups_dump): Update.
1675 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1676 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1677 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1678
89b7795b
DJ
16792003-08-04 Daniel Jacobowitz <drow@mvista.com>
1680
1681 * Makefile.in (tui-interp.o): Update dependencies.
1682
306d9ac5
DC
16832003-08-04 David Carlton <carlton@kealia.com>
1684
1685 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1686 to internal_error call.
1687 * source.c (forward_search_command): Add "%s" format argument.
1688 (reverse_search_command): Ditto.
1689 * top.c (quit_confirm): Ditto.
1690 * cli/cli-setshow.c (do_setshow_command): Ditto.
1691 * cp-valprint.c (cp_print_class_method): Replace
1692 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1693 (cp_print_class_member): Ditto.
1694 * event-top.c (command_line_handler): Ditto.
1695 * linux-proc.c (linux_info_proc_cmd): Ditto.
1696 * p-typeprint.c (pascal_type_print_base): Ditto.
1697 * p-valprint.c (pascal_object_print_class_method): Ditto.
1698 (pascal_object_print_class_member): Ditto.
1699 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1700 * remote.c (remote_cisco_section_offsets): Ditto.
1701 * top.c (command_line_input): Ditto.
1702 * utils.c (vwarning,error_stream,quit): Ditto.
1703 * valprint.c (print_floating,print_binary_chars)
1704 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1705
57bfe177
AC
17062003-08-04 Andrew Cagney <cagney@redhat.com>
1707
1708 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1709
e546b999
AC
17102003-08-02 Andrew Cagney <cagney@redhat.com>
1711
1712 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1713 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1714 amd64fbsd-nat.c.
1715
91092ee5
AC
17162003-08-02 Andrew Cagney <cagney@redhat.com>
1717
1718 * Makefile.in: Update all dependencies and definitions.
1719
889f28e2
AF
17202003-08-02 Adam Fedor <fedor@gnu.org>
1721
1722 * linespec.c (is_objc_method_format): New function
1723 (decode_line_1, locate_first_half): Use it.
1724 Fixes PR objc/1298
1725
880bc914
AC
17262003-08-01 Andrew Cagney <cagney@redhat.com>
1727
1728 * NEWS: Mention that m32r is multi-arch.
1729 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1730 * configure.tgt: Recognize m32r-*-*.
1731 * config/m32r/tm-m32r.h: Delete file.
1732 * config/m32r/m32r.mt: New file.
1733 * m32r-rom.c (m32r_upload_command): Use hostent only when
1734 gethostname succeeds, in order to avoid a compilation
1735 warning.
1736 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1737 compiler warning.
1738
19f59343
MS
17392003-08-01 Michael Snyder <msnyder@redhat.com>
1740
1741 * sh-tdep.c (sh_frame_align): New gdbarch method.
1742 (sh_gdbarch_init): Set up frame_align method.
1743
4e7d7511
MS
17442003-07-31 Michael Snyder <msnyder@redhat.com>
1745
1746 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1747 which is already covered by the new frames infrastructure.
1748
63022984
AC
17492003-07-31 Andrew Cagney <cagney@redhat.com>
1750
1751 * user-regs.c (struct user_reg): Add "next" link.
1752 (struct user_regs): Replace "user" with "first" and "last" links.
1753 (append_user_reg): Add pre-allocated "reg" parameter.
1754 (builtin_user_regs): Provide initial value for "last".
1755 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1756 (user_regs_init): Allocate memory from the gdbarch obstack.
1757 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1758 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1759 linked list.
1760 (usernum_to_user_reg): New function.
1761 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1762 (value_of_user_reg): Use usernum_to_user_reg.
1763 (user_regs_free): Delete function.
1764 (_initialize_user_regs): Update register_gdbarch_data call.
1765
7cf6e574
DJ
17662003-07-31 Daniel Jacobowitz <drow@mvista.com>
1767
1768 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1769
c48a845b
MS
17702003-07-30 Michael Snyder <msnyder@redhat.com>
1771
4e7d7511 1772 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1773 * infcall.c (call_function_by_hand): Pass struct_addr to
1774 value_being_returned.
1775 * infcmd.c (print_return_value): Pass zero as struct_addr.
1776 * values.c (value_being_returned): If struct_addr is passed,
1777 use it instead of trying to recover it from the inferior.
1778
f0d8db19
KB
17792003-07-30 Kevin Buettner <kevinb@redhat.com>
1780
1781 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1782 the prologue analyzer won't need to attempt to extract the pc
1783 value from the woefully incomplete dummy frame.
1784 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1785 possible. Disable code which modifies the frame.
1786
e5c113a1
AC
17872003-07-28 Andrew Cagney <cagney@redhat.com>
1788
1789 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1790 to level 2.
1791 (annotate_breakpoints_table, annotate_record): Ditto.
1792 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1793 (annotate_field_name_end, annotate_field_value): Ditto.
1794 (annotate_field_end, annotate_frame_source_begin): Ditto.
1795 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1796 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1797 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1798 (annotate_frame_address_end, annotate_frame_address): Ditto.
1799 (annotate_frame_args, annotate_frame_end): Ditto.
1800 (annotate_frame_where, annotate_arg_begin): Ditto.
1801 (annotate_arg_name_end, annotate_arg_value): Ditto.
1802 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1803 (annotate_function_call, annotate_signal_name): Ditto.
1804 (annotate_signal_string, annotate_signal_name_end): Ditto.
1805 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1806 (annotate_value_begin, annotate_value_history_value): Ditto.
1807 (annotate_value_history_end, annotate_value_end): Ditto.
1808 (annotate_display_begin, annotate_display_number_end): Ditto.
1809 (annotate_display_format, annotate_display_expression): Ditto.
1810 (annotate_display_expression_end, annotate_display_value): Ditto.
1811 (annotate_display_end, annotate_array_section_begin): Ditto.
1812 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1813 (annotate_elt, annotate_array_section_end): Ditto.
1814
bb1db049
AC
18152003-07-28 Andrew Cagney <cagney@redhat.com>
1816
1817 * regcache.c (struct regcache_descr): Update comments on
1818 nr_raw_registers.
1819 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1820 sizeof_raw_register_valid_p.
1821 (init_regcache_descr): Set nr_raw_registers and
1822 sizeof_raw_register_valid_p before calling
1823 init_legacy_regcache_descr.
1824
20e6603c
AC
18252003-07-28 Andrew Cagney <cagney@redhat.com>
1826
1827 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1828 MOD NUM_REGS.
1829
db742940
DJ
18302003-07-28 Daniel Jacobowitz <drow@mvista.com>
1831
1832 * thread.c (info_threads_command): Use get_selected_frame ().
1833 Check that there is at least one non-sentinel frame.
1834
ce7f4371
SC
18352003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1836
1837 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1838 (m68hc11_pop_frame): Remove.
1839 (m68hc11_frame_saved_pc): Remove.
1840 (m68hc11_frame_chain): Remove.
1841 (m68hc11_frame_init_saved_regs): Remove.
1842 (m68hc11_init_extra_frame_info): Remove.
1843 (m68hc11_store_struct_return): Remove.
1844 (m68hc11_saved_pc_after_call): Remove.
1845
1ea653ae
SC
18462003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1847
1848 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1849 frame unwind information.
1850 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1851 and adapted for frame unwinding.
1852 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1853 (m68hc11_unwind_pc): New function.
1854 (m68hc11_frame_unwind_cache): New function to analyze frames.
1855 (m68hc11_frame_this_id): New function to create new frame struct.
1856 (m68hc11_frame_prev_register): New function to unwind a register from
1857 the frame.
1858 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1859 (m68hc11_frame_p): New function for the above.
1860 (m68hc11_frame_base_address): New function to return fp of frame.
1861 (m68hc11_frame_args_address): Update for frame.
1862 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1863 (m68hc11_unwind_sp): New function.
1864 (m68hc11_unwind_dummy_id): New function.
1865 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1866 calls.
1867
c8a7f6ac
SC
18682003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1869
1870 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1871 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1872 when we are beyond the current pc.
1873
3dc990bf
SC
18742003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1875
1876 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1877 from m68hc11_push_arguments.
1878 (m68hc11_push_arguments): Remove.
1879 (m68hc11_push_return_address): Remove.
1880 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1881 handlers; remove deprecated_extra_stack_alignment_needed.
1882
222e5d1d
AC
18832003-07-27 Andrew Cagney <cagney@redhat.com>
1884
1885 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1886 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1887 REAL_PC and not the pointer.
1888 * hppa-hpux-tdep.c: Include frame.h
1889
a7e9a47e
AC
18902003-07-27 Andrew Cagney <cagney@redhat.com>
1891
1892 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1893 GDB_MULTI_ACH_PARTIAL.
1894
7e3dd49e
AC
18952003-07-27 Andrew Cagney <cagney@redhat.com>
1896
1897 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1898 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1899 operator at start and not end of line.
1900 (decode_prologue): Ditto.
1901 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1902 frame_unwind_register_unsigned instead of
1903 frame_unwind_unsigned_register.
1904 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1905 read_register.
1906 (m32r_push_dummy_call): Use register_size instead of
1907 REGISTER_RAW_SIZE.
1908 (m32r_frame_sniffer): Replace m32r_frame_p.
1909 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1910 * m32r-rom.c (report_transfer_performance): Delete extern
1911 declaration.
1912 (m32r_load, m32r_upload_command): Use print_transfer_performance
1913 instead of report_transfer_performance.
1914 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1915 / add_show_from_set.
1916
0880807f
AC
19172003-07-26 Andrew Cagney <cagney@redhat.com>
1918
1919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1920 store_return_value and extract_struct_value_address.
1921
64ae9269
DJ
19222003-07-26 Daniel Jacobowitz <drow@mvista.com>
1923
1924 PR c++/1267
1925 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1926 NULL, default to the section containing PC.
1927
e286caf2
SC
19282003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1929
1930 * NEWS: Mention "regs" deprecated for m68hc11 too.
1931
1932 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1933 (m68hc11_print_register): New function to print out one register.
1934 (m68hc11_print_registers_info): New function to print registers.
1935 (show_regs): Deprecate and use the above.
1936 (m68hc11_gdbarch_init): Install the print_registers_info.
1937
705b278b
JJ
19382003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1939
1940 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1941 that we have a SIGTRAP before returning non-zero.
1942
63cd4198
EZ
19432003-07-23 Michal Ludvig <mludvig@suse.cz>
1944 Elena Zannoni <ezannoni@redhat.com>
1945
1946 * linespec.c (decode_line_2): Avoid crash if
1947 find_function_start_sal() returns empty record.
1948
6926787d
AS
19492003-07-23 Andreas Schwab <schwab@suse.de>
1950
1951 * ia64-tdep.c (ia64_print_insn): New function.
1952 (ia64_gdbarch_init): Set print_insn to it.
1953 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1954 deprecated_tm_print_insn_info.
1955
708cc1b6
MS
19562003-07-22 Michael Snyder <msnyder@redhat.com>
1957
1958 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1959 handle 8-bit returns (long long).
1960 (h8300h_extract_return_value): Ditto.
1961 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1962
aebd7893
AC
19632003-07-22 Andrew Cagney <cagney@redhat.com>
1964
1965 * gdbarch.c Include "gdb_obstack.h".
1966 (struct gdbarch): Add an "obstack".
1967 (alloc_gdbarch_data): Allocate the gdbarch data using
1968 GDBARCH_OBSTACK_CALLOC.
1969 (free_gdbarch_data): Delete function.
1970 (gdbarch_obstack_zalloc): New function.
1971 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1972 Assert that the architecture is not initialized.
1973 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1974 vector from the obstack.
1975 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1976 architecture obstack.
1977 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1978 (set_gdbarch_data): Assert that the data is not initialized.
1979 (struct gdbarch_data): Delete member "free".
1980 (register_gdbarch_data): Do not initialize "free".
1981 * gdbarch.h, gdbarch.c: Re-generate.
1982
153721e6
AC
19832003-07-22 Andrew Cagney <cagney@redhat.com>
1984
1985 * configure.in (build_warnings): Add -Wformat-nonliteral.
1986 * configure: Re-generate.
1987
c193f044 19882003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1989
1990 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1991
c3228f12
EZ
19922003-07-22 Elena Zannoni <ezannoni@redhat.com>
1993
1994 * findvar.c (read_var_value): Remove case for thread local storage
1995 variables. It is now entirely handled by the dwarf2 location
1996 expression code.
1997 * printcmd.c (address_info): Ditto.
1998 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1999 enumeration value.
2000 (struct symbol): Remove objfile field, which was used by
2001 LOC_THREAD_LOCAL_STATIC only.
2002 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2003 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2004 usage of objfile pointer.
2005 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2006 thread local variables.
2007 Add include of objfiles.h.
2008 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2009 storage variables.
2010 * Makefile.in (dwarf2loc.o): Update dependencies.
2011
aef9bcd2
AC
20122003-07-22 Andrew Cagney <cagney@redhat.com>
2013
2014 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2015 get_frame_base.
2016 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2017 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2018 (struct value): Add opaque declaration.
2019 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2020
d95a8903
AC
20212003-07-21 Andrew Cagney <cagney@redhat.com>
2022
2023 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2024 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2025
4db73d49
SC
20262003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2027
2028 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2029 regcache_cooked_read_unsigned instead of read_register.
2030 (m68hc11_saved_pc_after_call): Likewise.
2031 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2032 instead of write_register.
2033 (m68hc11_register_type): New function.
2034 (m68hc11_register_virtual_type): Remove.
2035 (m68hc11_store_return_value): Convert to use the regcache.
2036 (m68hc11_extract_struct_value_address): Likewise.
2037 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2038 m68hc11_register_type; undeprecate store_return_value and
2039 extract_struct_value_address.
2040
ef2b8fcd
SC
20412003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2042
2043 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2044 and translate to use regcache.
2045 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2046
625b0b97
AC
20472003-07-18 Andrew Cagney <cagney@redhat.com>
2048
2049 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2050 * gdbarch.h, gdbarch.c: Re-generate.
2051 * i386-tdep.c (i386_gdbarch_init): Do not set
2052 DWARF2_BUILD_FRAME_INFO.
2053 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2054 unconditionally.
2055 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2056 DWARF2_BUILD_FRAME_INFO.
2057
22b0d388
AC
20582003-07-18 Andrew Cagney <cagney@redhat.com>
2059
2060 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2061 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2062
1ce5d6dd
AC
20632003-07-18 Andrew Cagney <cagney@redhat.com>
2064
2065 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2066 frame_unwind_address_in_block, instead of frame_pc_unwind.
2067 (dwarf2_frame_cache): Ditto.
2068
e6e5e94c
AC
20692003-07-18 Andrew Cagney <cagney@redhat.com>
2070
2071 * user-regs.h (struct gdbarch): Declare opaque.
2072 * ui-out.h (struct ui_file): Declare opaque.
2073 * dwarf2-frame.h (struct frame_info): Declare opaque.
2074
5483d879
KW
20752003-07-18 Kris Warkentin <kewarken@qnx.com>
2076
2077 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2078 #include "...".
2079 (procfs_meminfo): Change strerror to safe_strerror.
2080 (procfs_can_run): Remove K&R badness.
2081
278a7cf7
MS
20822003-07-17 Michael Snyder <msnyder@redhat.com>
2083
2084 * remote-sim.c: Comment typo fix.
2085
606e3b82
AC
20862003-07-17 Andrew Cagney <cagney@redhat.com>
2087
2088 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2089 configure.
2090 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2091 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2092 GDB_MULTI_ARCH_PARTIAL.
2093
c43af07c
EZ
20942003-07-17 Elena Zannoni <ezannoni@redhat.com>
2095
2096 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2097 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2098 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2099
3b85b0f1
TR
21002003-07-16 Theodore A. Roth <troth@openavr.org>
2101
2102 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2103 found.
2104 (avr_frame_unwind_cache): Don't unwind FP for main.
2105 Update a comment.
2106 Save the computed prev_sp.
2107 (avr_saved_regs_unwinder): Remove function.
2108 (avr_frame_prev_register): Use PC unwind logic from
2109 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2110
336d1bba
AC
21112003-07-16 Andrew Cagney <cagney@redhat.com>
2112
2113 * frame-base.h (frame_base_p_ftype): Delete definition.
2114 (frame_base_append_predicate): Delete declaration.
2115 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2116 (frame_unwind_append_predicate): Delete declaration.
2117 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2118 (append_predicate): Delete parameter "p".
2119 (frame_unwind_append_predicate): Delete function.
2120 (frame_unwind_append_sniffer): Update call to append_predicate.
2121 (frame_unwind_free): Delete function.
2122 (_initialize_frame_unwind): Pass NULL as "free" to
2123 register_gdbarch_data.
2124 (frame_unwind_init): Append the dummy_frame_sniffer.
2125 (frame_unwind_find_by_frame): Simplify.
2126 * frame-base.c (struct frame_base_table): Delete field "p".
2127 (append_predicate): Delete parameter "p".
2128 (frame_base_append_predicate): Delete function.
2129 (frame_base_append_sniffer): Update call to append_predicate.
2130 (frame_base_free): Delete function.
2131 (frame_base_find_by_frame): Simplify.
2132 (_initialize_frame_base): Pass NULL as "free" to
2133 register_gdbarch_data.
2134 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2135 (x86_64_sigtramp_frame_sniffer): Replace
2136 "x86_64_sigtramp_frame_p".
2137 (x86_64_init_abi): Set the frame unwind sniffers.
2138 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2139 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2140 (m68k_gdbarch_init): Set the frame unwind sniffers.
2141 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2142 "i386_sigtramp_frame_p".
2143 (i386_frame_sniffer): Replace "i386_frame_p".
2144 (i386_gdbarch_init): Set the frame unwind sniffers.
2145 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2146 (avr_gdbarch_init): Set the frame unwind sniffers.
2147 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2148 "alpha_sigtramp_frame_p"
2149 (alpha_heuristic_frame_sniffer): Replace
2150 "alpha_heuristic_frame_p".
2151 (alpha_gdbarch_init): Set the frame unwind sniffers.
2152 (alpha_dwarf2_init_abi): Ditto.
2153 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2154 "alpha_debug_frame_p".
2155 (alpha_mdebug_frame_base_sniffer): Replace
2156 "alpha_mdebug_frame_base_p".
2157 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2158 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2159 (d10v_gdbarch_init): Set the frame unwind sniffer.
2160 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2161 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2162 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2163 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2164 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2165 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2166
48db5a3c
CV
21672003-07-16 Michael Snyder <msnyder@redhat.com>
2168
2169 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2170 should go thru sh_dsp_register_sim_regno, else the dsp regs
2171 will not get the right values.
2172
21732003-07-16 Corinna Vinschen <vinschen@redhat.com>
2174
2175 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2176 deprecated_store_floating by call to store_typed_floating.
2177 (sh_sh4_register_convert_to_raw): Substitute call to
2178 deprecated_extract_floating by call to extract_typed_floating.
2179
21802003-07-16 Corinna Vinschen <vinschen@redhat.com>
2181
2182 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2183
21842003-07-16 Corinna Vinschen <vinschen@redhat.com>
2185
2186 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2187 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2188 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2189 as possible.
2190 (do_pseudo_register): Remove.
2191 (sh_push_dummy_code): New function.
2192 (sh64_store_struct_return): Rename from sh_store_struct_return.
2193 Only called for sh64 now.
2194 (sh_extract_struct_value_address): Regcache'ify.
2195 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2196 and accomodate new tasks.
2197 (sh64_push_return_address): Rename from sh_push_return_address.
2198 Only called for sh64 now.
2199 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2200 Regcache'ify.
2201 (sh3e_sh4_extract_return_value): Regcache'ify.
2202 (sh_default_store_return_value): Ditto.
2203 (sh3e_sh4_store_return_value): Ditto.
2204 (sh_default_register_byte): Remove.
2205 (sh_sh4_register_byte): Remove.
2206 (sh_default_register_raw_size): Remove.
2207 (sh_sh4_register_raw_size): Remove.
2208 (sh_register_virtual_size): Remove.
2209 (sh_sh3e_register_virtual_type): Remove.
2210 (sh_sh3e_register_type): New function.
2211 (sh_sh4_register_virtual_type): Remove.
2212 (sh_sh4_register_type): New function.
2213 (sh_default_register_virtual_type): Remove.
2214 (sh_default_register_type): New function.
2215 (do_fv_register_info): Add parameters to accomodate call from
2216 sh_print_registers_info.
2217 (do_dr_register_info): Ditto.
2218 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2219 Add parameters to accomodate call from sh_print_registers_info.
2220 (sh_do_fp_register): Ditto.
2221 (sh64_do_pseudo_register): Call do_dr_register_info,
2222 do_fv_register_info and sh_do_fp_register with default parameters.
2223 (sh_do_register): Add parameters to accomodate call from
2224 sh_print_registers_info.
2225 (sh_print_register): Ditto.
2226 (sh_print_registers_info): Rename from sh_do_registers_info.
2227 Add parameters to be used as gdbarch_print_registers_info
2228 implementation. Accomodate removed do_pseudo_register function
2229 pointer.
2230 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2231 function pointer. Call sh_print_register with default parameters.
2232 (sh64_do_registers_info): Call sh_print_registers_info instead of
2233 sh_do_registers_info.
2234 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2235 detection of deprecated vs. non-deprecated functionality.
2236 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2237 function pointer assignments by direct function calls.
2238
e8a89fe2
AC
22392003-07-15 Andrew Cagney <cagney@redhat.com>
2240
2241 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2242 (frame_register_unwind, create_new_frame): Ditto.
2243 (legacy_get_prev_frame, get_frame_type): Ditto.
2244 (get_frame_base_address): Use frame_base_find_by_frame.
2245 (get_frame_locals_address): Use frame_base_find_by_frame.
2246 (get_frame_args_address): Use frame_base_find_by_frame.
2247 * frame-base.h (frame_base_sniffer_ftype): Declare.
2248 (frame_base_append_sniffer): Declare.
2249 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2250 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2251 (frame_base_append_sniffer): New function.
2252 (frame_base_append_predicate): Add a NULL sniffer.
2253 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2254 (struct frame_base_table): Add "sniffer".
2255 (frame_base_free): Free the "sniffer" table.
2256 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2257 (frame_unwind_append_sniffer): Declare.
2258 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2259 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2260 (struct frame_unwind_table): Add "sniffer", delete "middle".
2261 (append_predicate): Add "sniffer" parameter, append the sniffer.
2262 (frame_unwind_init): Update append_predicate call.
2263 (frame_unwind_append_sniffer): New function.
2264 (frame_unwind_append_predicate): Update append_predicate call.
2265 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2266
0714963c
AC
22672003-07-15 Andrew Cagney <cagney@redhat.com>
2268
2269 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2270 before code inhibiting repeated unwind attempts. Add to
2271 commentary on that test's problems.
2272 * blockframe.c (inside_main_func): Look for "main" in the minimal
2273 symbol table.
2274 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2275 identical.
2276
d9170e22
AC
22772003-07-15 Andrew Cagney <cagney@redhat.com>
2278
2279 * complaints.c (struct explanation): Define.
2280 (struct complaints): Change type of "explanation" to "struct
2281 explanation".
2282 (symfile_explanations): Convert to a "struct explanation" table.
2283 (vcomplaint): Update.
2284
eba29c8c
ML
22852003-07-15 Michal Ludvig <mludvig@suse.cz>
2286
2287 * x86-64-linux-nat.c (regmap): Removed.
2288 (supply_gregset, fill_gregset): Call
2289 x86_64_linux_(fill,supply)_gregset functions.
2290 * x86-64-linux-tdep.c (USER_*): New defines.
2291 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2292 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2293 New functions.
2294 (fetch_core_registers): Ditto.
2295 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2296 * x86-64-linux-tdep.h: New file.
2297 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2298 and core-regset.o.
2299 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2300
68cc0bfb
MK
23012003-07-13 Mark Kettenis <kettenis@gnu.org>
2302
88a115f7
MK
2303 * x86-64-tdep.c (x86_64_store_return_value): Use
2304 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2305
68cc0bfb
MK
2306 * configure.host: Add x86_64-*-freebsd*.
2307 * configure.tgt: Add x86_64-*-freebsd*.
2308 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2309 * amd64fbsd-nat.c: New file.
2310 * amd64fbsd-tdep.c: New file.
2311 * config/i386/nm-fbsd64.h: New file.
2312 * config/i386/fbsd64.mh: New file.
2313 * config/i386/fbsd64.mt: New file.
2314
138e7be5
MK
23152003-07-11 Mark Kettenis <kettenis@gnu.org>
2316
2317 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2318 `sc_regs_offset' and `sc_fpregs_offset'.
2319 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2320 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2321 (alpha_sigtramp_register_address): Rewrite to use new members of
2322 `struct gdbarch_tdep'.
2323 (alpha_gdbarch_init): Initialize new members of struct
2324 gdbarch_tdep'.
2325 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2326 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2327 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2328 (alphafbsd_pc_in_sigtramp): Implement.
2329 (alphafbsd_sigtramp_offset): New function.
2330 (alphafbsd_sigcontext_addr): New function.
2331 (alphafbsd_init_abi): Initialize signal trampoline related members
2332 of `struct gdbarch_tdep'.
2333 (_initialize_alphafbsd_tdep): Add prototype.
2334
95303a68
TR
23352003-07-11 Theodore A. Roth <troth@openavr.org>
2336
ba292e4c
TR
2337 * Makefile.in (install-only): Quote sed expression when generating
2338 transformed_name.
95303a68 2339
6896c0c7
RH
23402003-07-11 Richard Henderson <rth@redhat.com>
2341
2342 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2343 * dwarf2-frame.c: Include complaints.h.
2344 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2345 variable initialization; return NULL on error.
2346 (decode_frame_entry): New.
2347
8edd5d01
AC
23482003-07-11 Andrew Cagney <cagney@redhat.com>
2349
c4a09524
AC
2350 * frame.h (frame_address_in_block): Delete declaration.
2351 * blockframe.c (frame_address_in_block): Delete function.
2352 (get_frame_block): Use get_frame_address_in_block.
2353 (block_innermost_frame): Ditto.
2354 * stack.c (print_frame, backtrace_command_1): Ditto.
2355
8edd5d01
AC
2356 * frame.h (get_frame_address_in_block): Declare.
2357 (frame_unwind_address_in_block): Declare.
2358 * frame.c (frame_unwind_address_in_block): New function.
2359 (get_frame_address_in_block): New function.
2360
f7968451
AC
23612003-07-10 Andrew Cagney <cagney@redhat.com>
2362
2363 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2364 pre-default. Note: re-generate has no effect.
2365
ae99b398
AC
23662003-07-10 Andrew Cagney <cagney@redhat.com>
2367
2368 * gdbarch.sh: When a variable, but not a function, compare against
2369 0. Fix problem in previous patch.
2370 * gdbarch.c: Re-generate.
2371
956ac328
AC
23722003-07-10 Andrew Cagney <cagney@redhat.com>
2373
2374 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2375 functions against NULL, not 0.
2376 * gdbarch.c: Re-generate.
2377
287c3240
FF
23782003-07-10 Fred Fish <fnf@ninemoons.com>
2379
2380 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2381 null string instead of a null pointer.
2382 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2383
32f63c4b
MS
23842003-07-09 Michael Snyder <msnyder@redhat.com>
2385
2386 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2387
402ecd56
MK
23882003-07-09 Mark Kettenis <kettenis@gnu.org>
2389
2390 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2391 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2392 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2393 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2394 * x86-64-tdep.c: ... from here.
2395
c481dac7
AS
23962003-07-09 Andreas Schwab <schwab@suse.de>
2397
2398 * m68k-tdep.h (enum struct_return): Define.
2399 (struct gdbarch_tdep): Add struct_return.
2400 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2401 bytes are padded to the right, not to the left. Pass struct value
2402 address in register %a1, not on stack.
2403 (m68k_use_struct_convention): New function.
2404 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2405 struct_return in tdep to pcc_struct_return.
2406 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2407 reg_struct_return.
2408
64176fa3
JB
24092003-07-09 Joel Brobecker <brobecker@gnat.com>
2410
2411 * somread.c (som_symfile_offsets): Fix compilation error.
2412
96a4ee76
AC
24132003-07-09 Andrew Cagney <cagney@redhat.com>
2414
2415 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2416 Add comments about the checks.
2417
1517c6d1
AC
24182003-07-08 Andrew Cagney <cagney@redhat.com>
2419
2420 * Makefile.in: Make dependency section headers consistent.
2421 (config_h): Move to $BUILD headers section.
2422 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2423 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2424 (ada-exp.tab.c): Move to YACC/LEX section.
2425 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2426 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2427
dc5dd1eb
KW
24282003-07-08 Kris Warkentin <kewarken@qnx.com>
2429
2430 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2431 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2432 of strerror with safe_strerror, use ISO C function definitions,
2433 and replace instances of sprintf with snprintf.
dc5dd1eb 2434
612dde91
AC
24352003-07-07 Andrew Cagney <cagney@redhat.com>
2436
2437 * frame.c (get_prev_frame): Enable check for identical frames.
2438 Update comments. Update error messages.
2439
492c11d3
JB
24402003-07-07 Joel Brobecker <brobecker@gnat.com>
2441
2442 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2443
376a5a49
JB
24442003-07-07 Joel Brobecker <brobecker@gnat.com>
2445
2446 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2447 sort_symtab_syms, no longer necessary.
2448
22b4a9ad
JB
24492003-07-07 Joel Brobecker <brobecker@gnat.com>
2450
2451 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2452
5bbcb741
JB
24532003-07-07 Joel Brobecker <brobecker@gnat.com>
2454
2455 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2456 (mips_register_byte): Likewise.
2457
c139e7d9
DJ
24582003-07-07 Daniel Jacobowitz <drow@mvista.com>
2459
2460 * Makefile.in (sparc_tdep_h): New.
2461 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2462 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2463 * sparc-linux-nat.c: Include "sparc-tdep.h".
2464 * sparc-nat.c: Likewise.
2465 * sparc-tdep.c: Likewise.
2466 * sparc64nbsd-nat.c: Likewise.
2467 * sparcnbsd-nat.c: Likewise.
2468 * sparcnbsd-tdep.c: Likewise.
2469 * sparc-tdep.h: New file.
2470 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2471 and sparc_npc_regnum.
2472
fd8f87c5
DJ
24732003-07-07 Daniel Jacobowitz <drow@mvista.com>
2474
2475 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2476 (mips_linux_cannot_store_register): List supported instead of
2477 unsupported registers.
2478
13adf674
DJ
24792003-07-07 Daniel Jacobowitz <drow@mvista.com>
2480
2481 * disasm.c (dump_insns): Separate instructions from addresses.
2482
8de307e0
AS
24832003-07-07 Andreas Schwab <schwab@suse.de>
2484
2485 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2486 dependencies.
2487 * m68k-tdep.c (NUM_FREGS): Delete.
2488 (SIG_PC_FP_OFFSET): Delete.
2489 (TARGET_M68K): Delete.
2490 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2491 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2492 P_MOVEL_SP, P_MOVEML_SP): Define.
2493 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2494 P_TRAP): Delete.
2495 (m68k_register_raw_size): Delete.
2496 (m68k_register_virtual_size): Delete.
2497 (m68k_register_type): Renamed from m68k_register_virtual_type and
2498 add gdbarch argument.
2499 (m68k_store_struct_return): Delete.
2500 (m68k_deprecated_extract_return_value): Delete.
2501 (m68k_deprecated_extract_struct_value_address): Delete.
2502 (m68k_frame_chain): Delete.
2503 (m68k_frame_saved_pc): Delete.
2504 (m68k_fix_call_dummy): Delete.
2505 (m68k_push_dummy_frame): Delete.
2506 (m68k_pop_frame): Delete.
2507 (m68k_extract_return_value): New function.
2508 (m68k_store_return_value): Rewrite using regcache.
2509 (m68k_extract_struct_value_address): Rewrite using regcache.
2510 (m68k_push_dummy_call): New function.
2511 (struct m68k_frame_cache): Define.
2512 (m68k_alloc_frame_cache): New function.
2513 (m68k_analyze_frame_setup): New function.
2514 (m68k_analyze_register_saves): New function.
2515 (m68k_analyze_prologue): New function.
2516 (m68k_skip_prologue): Rewrite using above functions.
2517 (m68k_unwind_pc): New function.
2518 (m68k_frame_cache): New function.
2519 (m68k_frame_this_id): New function.
2520 (m68k_frame_prev_register): New function.
2521 (m68k_frame_unwind): New variable.
2522 (m68k_frame_p): New function.
2523 (m68k_sigtramp_frame_cache): New function.
2524 (m68k_sigtramp_frame_this_id): New function.
2525 (m68k_sigtramp_frame_prev_register): New function.
2526 (m68k_sigtramp_frame_unwind): New variable.
2527 (m68k_sigtramp_frame_p): New function.
2528 (m68k_frame_base_address): New function.
2529 (m68k_frame_base): New function.
2530 (m68k_unwind_dummy_id): New function.
2531 (fill_gregset): Use regcache_collect.
2532 (fill_fpregset): Likewise.
2533 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2534 defined.
2535 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2536 deprecated_init_frame_pc, deprecated_store_struct_return,
2537 deprecated_extract_return_value, deprecated_store_return_value,
2538 deprecated_frame_chain, deprecated_frame_saved_pc,
2539 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2540 deprecated_register_virtual_size,
2541 deprecated_max_register_raw_size,
2542 deprecated_max_register_virtual_size,
2543 deprecated_register_virtual_type, deprecated_register_size,
2544 deprecated_register_byte, deprecated_register_bytes,
2545 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2546 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2547 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2548 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2549 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2550 deprecated_push_dummy_frame, deprecated_pop_frame,
2551 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2552 only if SYSCALL_TRAP is defined. Set extract_return_value,
2553 store_return_value, extract_struct_value_address, register_type,
2554 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2555 predicates.
2556 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2557 M68K_MAX_REGISTER_SIZE): Define.
2558 (struct m68k_sigtramp_info): Define.
2559 (struct gdbarch_tdep): Add get_sigtramp_info.
2560 * m68klinux-nat.c (fetch_register): Use register_size instead of
2561 REGISTER_RAW_SIZE. Don't put assignment in if.
2562 (store_register): Likewise.
2563 (fetch_inferior_registers): Likewise.
2564 (store_inferior_registers): Likewise.
2565 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2566 (m68k_linux_frame_saved_pc): Delete.
2567 (m68k_linux_sigcontext_reg_offset,
2568 m68k_linux_ucontext_reg_offset): Define.
2569 (m68k_linux_get_sigtramp_info): New function.
2570 (m68k_linux_extract_return_value): Rewrite using regcache.
2571 (m68k_linux_store_return_value): Likewise.
2572 (m68k_linux_extract_struct_value_address): Likewise.
2573 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2574 Don't set deprecated_frame_saved_pc,
2575 deprecated_extract_return_value, deprecated_store_return_value,
2576 deprecated_extract_struct_value_address. Set
2577 extract_return_value, store_return_value,
2578 extract_struct_value_address.
2579
eb8bc282
AC
25802003-07-07 Andrew Cagney <cagney@redhat.com>
2581
2582 * expprint.c: Include "user-regs.h" instead of "frame.h".
2583 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2584 frame_map_regnum_to_name.
2585 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2586 (frame_map_name_to_regnum): Simplify, call
2587 user_reg_map_name_to_regnum.
2588 (frame_map_regnum_to_name): Simplify, call
2589 user_reg_map_regnum_to_name.
2590 (frame_register_unwind): Update.
2591 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2592 (_initialize_frame_reg): Call user_reg_add_builtin.
2593 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2594 (value_of_register): Use value_of_user_reg.
2595 * eval.c (evaluate_subexp_standard): Update.
2596 * parse.c (write_dollar_variable): Update.
2597 * d10v-tdep.c (d10v_print_registers_info): Update.
2598 * infcmd.c (registers_info): Update.
2599 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2600 (builtin_regs_h): Delete macro.
2601 (user_regs_h): Define.
2602 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2603 (builtin-regs.o): Delete target.
2604 (user-regs.o): Specify dependencies.
2605 (expprint.o): Update dependencies.
2606 (findvar.o): Update dependencies.
2607 (frame.o): Update dependencies.
2608 (std-regs.o): Update dependencies.
2609
9f476a01
CF
26102003-07-06 Christopher Faylor <cgf@redhat.com>
2611
2612 * win32-nat.c (solib_symbols_add): Use one variable for all section
2613 address stuff. Pass variable rather than address of variable to
2614 safe_symbol_file_add.
2615
a731b831
AS
26162003-07-06 Andreas Schwab <schwab@suse.de>
2617
2618 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2619
9f83329d
JB
26202003-07-04 Joel Brobecker <brobecker@gnat.com>
2621
2622 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2623
27e28cc5
KW
26242003-07-04 Kris Warkentin <kewarken@qnx.com>
2625
2626 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2627
26282003-07-04 Kris Warkentin <kewarken@qnx.com>
2629
2630 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2631 * config/i386/nto.mh: New file.
2632 * config/i386/nm-nto.h: New file.
2633 * configure.host: Add i[3456]86-*-nto*.
2634
100f2e98
JB
26352003-07-03 Joel Brobecker <brobecker@gnat.com>
2636
2637 * remote-vx.c (vx_add_symbols): Fix compilation error.
2638
e23457df
AC
26392003-07-03 Andrew Cagney <cagney@redhat.com>
2640
2641 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2642 * gdbarch.h, gdbarch.c: Re-generate.
2643 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2644 (legacy_register_name): Declare.
2645 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2646 (REGISTER_NAME): Define.
2647 * sparc-tdep.c (legacy_register_name): New function.
2648 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2649 (REGISTER_NAME): Define.
2650 (hppa64_register_name): Declare.
2651 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2652 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2653 (hppa64_register_name): New function.
2654 (hppa_register_name): New function.
2655 * arch-utils.c (legacy_register_name): Delete.
2656 * arch-utils.h (legacy_register_name): Delete.
2657
38caaeec
DJ
26582003-07-03 Daniel Jacobowitz <drow@mvista.com>
2659
2660 * cli/cli-interp.c (cli_interpreter_resume): Update the
2661 cli_uiout's stream to gdb_stdout.
2662
dadd712e
AC
26632003-07-03 Andrew Cagney <cagney@redhat.com>
2664
2665 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2666 predicate.
2667 * gdbarch.h, gdbarch.c: Re-generate.
2668 * regcache.c (init_regcache_descr): Use legacy code when either
2669 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2670
c7f1390e
DJ
26712003-07-02 Daniel Jacobowitz <drow@mvista.com>
2672
2673 * NEWS: Move "set logging" entry into GDB 6.0 section.
2674
4bc8c588
JB
26752003-07-02 Jim Blandy <jimb@redhat.com>
2676
a9dd42f1
JB
2677 * s390-tdep.c (struct frame_extra_info): new member:
2678 'stack_bought_valid'.
2679 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2680 initialize fextra_info->stack_bought.
2681 (s390_frameless_function_invocation): Don't trust the value of
2682 fextra_info_ptr->stack_bought unless
2683 fextra_info->stack_bought_valid is set.
2684
4bc8c588
JB
2685 New S390 prologue analyzer.
2686 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2687 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2688 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2689 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2690 compute_x_addr, s390_on_stack, s390_store,
2691 s390_get_signal_frame_info): New functions.
2692 (S390_NUM_SPILL_SLOTS): New macro.
2693 (s390_get_frame_info): Rewritten.
2694 (is_arg_reg): Deleted.
2695
2696 Break out the decoding of S/390 instructions into separate
2697 functions, to make it more legible, and easier to check
2698 against the spec.
2699 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2700 is_rx, is_rxe): New functions.
2701 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2702 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2703 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2704 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2705 enums for opcode values. (Is this an improvement?)
2706
fd13a04a
AC
27072003-07-02 Andrew Cagney <cagney@redhat.com>
2708
2709 * i386-tdep.c: Revert change committed as part of trad-frame code
2710 below.
2711
3f8091c1
DJ
27122003-07-02 Daniel Jacobowitz <drow@mvista.com>
2713
2714 * breakpoint.c (insert_catchpoint): Make static.
2715
8dd5115e
AS
27162003-07-02 Andreas Schwab <schwab@suse.de>
2717
2718 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2719 former ia64_push_arguments and ia64_push_return_address, and use
2720 regcache functions instead of read/write_register.
2721 (ia64_gdbarch_init): Set push_dummy_call instead of
2722 deprecated_push_arguments and deprecated_push_return_address.
2723
a2229c23
AJ
27242003-07-01 Andreas Jaeger <aj@suse.de>
2725
2726 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2727 before the call.
2728 Set %rax only to number of SSE registers used.
2729
3b3850e8
AC
27302003-07-01 Andrew Cagney <cagney@redhat.com>
2731
2732 * trad-frame.h: Update comments, a -1 .addr is reserved.
2733 (trad_frame_value_p, trad_frame_addr_p): Declare.
2734 (trad_frame_reg_p): Declare.
2735 (trad_frame_set_value): Rename trad_frame_register_value.
2736 (trad_frame_set_unknown): Declare.
2737 * trad-frame.c (trad_frame_realreg_p): New function.
2738 (trad_frame_addr_p, trad_frame_value_p): New function.
2739 (trad_frame_set_unknown): New function.
2740 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2741 (trad_frame_prev_register): Use trad_frame_realreg_p,
2742 trad_frame_addr_p and trad_frame_value_p.
2743 (trad_frame_set_value): Rename trad_frame_register_value.
2744 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2745 and trad_frame_set_value.
a2229c23 2746
4d819d0e
JB
27472003-06-30 Jim Blandy <jimb@redhat.com>
2748
2749 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2750 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2751 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2752 for 16 registers, and then 32 more bytes.
2753 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2754 New macros.
2755 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2756 Move up in the file, since it's now used by is_simple_arg.
2757 (is_simple_arg): Don't assume registers are four bytes long.
2758 Exclude all double arguments. Extended floats are not simple
2759 args.
2760 (is_power_of_two): New function.
2761 (pass_by_copy_ref): Call is_power_of_two, and check that the
2762 length fits in a register, rather than listing all the acceptable
2763 sizes. Extended floats are not passed by reference.
2764 (s390_push_arguments): Don't assume registers are four bytes long.
2765 Reserve an argument register to point to the buffer for structures
2766 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2767 S390_STACK_FRAME_OVERHEAD.
2768
1ad828f1
AS
27692003-06-30 Andreas Schwab <schwab@suse.de>
2770
2771 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2772 format error message.
2773
39b00981
JB
27742003-06-30 Joel Brobecker <brobecker@gnat.com>
2775
2776 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2777
b2a7f303
DC
27782003-06-30 David Carlton <carlton@kealia.com>
2779
2780 Band-aid for PR c++/1245.
2781 * Makefile.in (cp-support.o): Depend on complaints_h.
2782 * cp-support.c: Include complaints.h. Add declaration for
2783 find_last_component.
2784 (cp_find_first_component): Separate code into
2785 cp_find_first_component_aux.
2786 (cp_find_first_component_aux): Call demangled_name_complaint.
2787 (demangled_name_complaint): New.
2788
a257b5bb
AC
27892003-06-30 Andrew Cagney <cagney@redhat.com>
2790
2791 * remote.c (remote_write_bytes): Explicitly compute and then use
2792 the payload size. Update comments to reflect. Fixes problem of
2793 GDB not sending small packets as found by Fred Fish.
2794
0a2cfde4
AC
27952003-06-30 Andrew Cagney <cagney@redhat.com>
2796
2797 * remote.c (remote_async_wait): Fix -Wformat problem.
2798
3fcb8548
AC
27992003-06-29 Andrew Cagney <cagney@redhat.com>
2800
2801 * remote.c (remote_wait): Call error, and not warning, when the
2802 packet is corrupt.
2803 (remote_async_wait): Ditto.
2804
9f9970a3
DJ
28052003-06-29 Daniel Jacobowitz <drow@mvista.com>
2806
2807 * sparc-tdep.c (sparc_y_regnum): Make external again.
2808
83a8ccca
DJ
28092003-06-29 Daniel Jacobowitz <drow@mvista.com>
2810
2811 * cli/cli-logging.c (pop_output_files): Add void to function
2812 definition.
2813
d2cf594a
AC
28142003-06-29 Andrew Cagney <cagney@redhat.com>
2815
2816 * frame.c (frame_register_unwind): Use unsigned char when dumping
2817 the buffer contents.
2818
0fac0b41
DJ
28192003-06-28 Daniel Jacobowitz <drow@mvista.com>
2820
2821 * cli/cli-logging.c: New file.
2822 * cli-out.c (struct ui_out_data): Add original_stream.
2823 (cli_redirect): New function.
2824 (cli_ui_out_impl): Add cli_redirect.
2825 (cli_out_new): Initialize original_stream.
2826 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2827 (uo_redirect, ui_out_redirect): New.
2828 * ui-out.h (struct ui_out_impl): Add redirect member.
2829 (redirect_ftype): New.
2830 (ui_out_redirect): Add prototype.
2831 * Makefile.in: Add rules for cli-logging.c.
2832 * NEWS: Mention "set logging".
2833
88a07d7c
EZ
28342003-06-27 Elena Zannoni <ezannoni@redhat.com>
2835
2836 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2837
4eb58876
AC
28382003-06-27 Andrew Cagney <cagney@redhat.com>
2839
2840 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2841 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2842 * avr-tdep.c (avr_call_dummy_address): Delete function.
2843 (avr_gdbarch_init): Do not set call_dummy_address.
2844
1549f619
EZ
28452003-06-27 Elena Zannoni <ezannoni@redhat.com>
2846
2847 * symfile.c (syms_from_objfile): Move variables to inner block.
2848 Move the checks for the non-mainline case a bit earlier to avoid
2849 doing some useless computations.
2850
3cb3398d
EZ
28512003-06-27 Elena Zannoni <ezannoni@redhat.com>
2852
2853 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2854
3799ccc6
EZ
28552003-06-26 Elena Zannoni <ezannoni@redhat.com>
2856
2857 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2858 sections.
2859
ce1f6491
MC
28602003-06-26 Michael Chastain <mec@shout.net>
2861
2862 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2863 gdb/testsuite/gdb.c++/pr-1210.exp.
2864
d958dfd0
AC
28652003-06-26 Andrew Cagney <cagney@redhat.com>
2866
2867 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2868 altivec_expression.h and altivec_registers.h.
2869
d31431ed
AC
28702003-06-26 Andrew Cagney <cagney@redhat.com>
2871
2872 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2873 info->mach when MIPS16. Patch suggested by Fred Fish.
2874
714b1282
AC
28752003-06-26 Andrew Cagney <cagney@redhat.com>
2876
2877 * utils.c (internal_vproblem): Print the problem to a reason
2878 buffer and then pass to query. Make the msg variable more local.
2879
42efa47a
AC
28802003-06-26 Andrew Cagney <cagney@redhat.com>
2881
2882 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2883 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2884 * gdbarch.h, gdbarch.c: Re-generate.
2885 * frame-base.c (default_frame_args_address): Update. Use
2886 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2887 not available.
2888 (default_frame_locals_address): Ditto for
2889 DEPRECATED_FRAME_LOCALS_ADDRESS.
2890 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2891 (vax_frame_num_args): Update.
2892 (vax_gdbarch_init): Update.
2893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2894 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2895 * mcore-tdep.c (mcore_gdbarch_init): Update.
2896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2897 * ia64-tdep.c (ia64_gdbarch_init): Update.
2898 * symtab.h (address_class): Update comments.
2899 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2900 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2901 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2902 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2903 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2904 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2905 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2906 * alpha-mdebug-tdep.c: Update.
2907 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2908
8ffd9b1b
AJ
29092003-06-26 Andreas Jaeger <aj@suse.de>
2910
2911 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2912 of SSE registers so that varargs functions work. Rework handling
2913 of passing arguments on the stack.
2914 (x86_64_store_return_value): Return double and float values in SSE
2915 register.
2916
e8ac10a6
MC
29172003-06-24 Michael Chastain <mec@shout.net>
2918
2919 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2920 the "constructor breakpoints ignored" bug.
2921
986af8e6
DC
29222003-06-25 David Carlton <carlton@kealia.com>
2923
2924 * MAINTAINERS: Update e-mail address.
2925
d64558a5
JB
29262003-06-24 Jim Blandy <jimb@redhat.com>
2927
e538d2d7
JB
2928 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2929
02631ec0
JB
2930 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2931 function.
2932 (ppc_linux_init_abi): Register it as the
2933 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2934
e716d87a
JB
2935 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2936 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2937 method.
2938
d64558a5
JB
2939 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2940 (ppc64_standard_linkage_target): Use it.
2941
449a5da4
AC
29422003-06-23 Andrew Cagney <cagney@redhat.com>
2943
2944 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2945 for 0 "int0" and 4 "int32" sized registers.
2946 * gdbtypes.c (builtin_type_int0): Define.
2947 (build_gdbtypes): Initialize builtin_type_int0.
2948 * gdbtypes.h (builtin_type_int0): Declare.
2949
b2a02dda
SC
29502003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2951
2952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2953 as characters are unsigned.
2954
fba3138e
DJ
29552003-06-22 Daniel Jacobowitz <drow@mvista.com>
2956
2957 PR gdb/1179
2958 * dwarfread.c (struct_type): Skip static fields without crashing.
2959
f6c8180b
AC
29602003-06-22 Andrew Cagney <cagney@redhat.com>
2961
2962 GDB 6.0 branch created.
f2c06f52
AC
2963 * README: Update.
2964 * PROBLEMS: Update. Empty.
2965 * NEWS: Update.
f6c8180b 2966
ae822768
DJ
29672003-06-22 Daniel Jacobowitz <drow@mvista.com>
2968
2969 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2970 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2971
261de166
AC
29722003-06-22 Andrew Cagney <cagney@redhat.com>
2973
2974 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2975 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2976 Velikov.
2977
30e94205
DJ
29782003-06-22 Daniel Jacobowitz <drow@mvista.com>
2979
2980 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2981 compilers.
2982
9e14d721
DJ
29832003-06-21 Daniel Jacobowitz <drow@mvista.com>
2984
2985 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2986 argument of val_print.
2987 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2988 to the address argument of baseclass_offset or target_read_memory.
2989 Do add it to the argument of cp_print_value_fields.
2990
a4b8ebc8
AC
29912003-06-21 Andrew Cagney <cagney@redhat.com>
2992
2993 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2994 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2995 instead of 0..NUM_REGS.
2996 (mips_register_reggroup_p): New function.
2997 (mips_pseudo_register_write): New function.
2998 (mips_pseudo_register_read): New function.
2999 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3000 based on the register's type.
3001 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3002 cooked.
3003 (mips_get_saved_register): Simplify. Assert that REGNO is a
3004 pseudo / cooked.
3005 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3006 (mips_register_type): Replace mips_register_virtual_type. Map
3007 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3008 when available.
3009 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3010 that the register is cooked / virtual.
3011 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3012 Only get the extra info when needed.
3013 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3014 (mips32_heuristic_proc_desc): Fetch the cooked register.
3015 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3016 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3017 (mips_print_register): Use gdbarch_register_type, instead of
3018 REGISTER_VIRTUAL_TYPE.
3019 (print_gp_register_row): Use gdbarch_register_type, instead of
3020 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3021 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3022 Print the pseudo / cooked registers.
3023 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3024 Print the pseudo / cooked registers.
3025 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3026 REG_NUM is pseudo / cooked.
3027 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3028 (mips_n32n64_xfer_return_value): Ditto.
3029 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3030 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3031 (mips_register_sim_regno): New function.
3032 (mips_gdbarch_init): Set deprecated_register_byte,
3033 register_group_p, pseudo_register_write, pseudo_register_read,
3034 register_sim_regno, and num_pseudo_regs. Set register_type,
3035 instead of register_virtual_type.
3036 * Makefile.in (mips-tdep.o): Update dependencies.
3037 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3038 REGISTER_VIRTUAL_TYPE.
3039 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3040 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3041 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3042 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3043 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3044
325ed089
DJ
30452003-06-21 Daniel Jacobowitz <drow@mvista.com>
3046
3047 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3048 * cli/cli-cmds.c: Include "gdb_vfork.h".
3049 (shell_escape): Use vfork.
3050
f0e7d0e8
AC
30512003-06-21 Andrew Cagney <cagney@redhat.com>
3052
c57bb9fa
AC
3053 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3054 32 bit floating-point register saves.
3055
6e51443a
AC
3056 * frame.h (deprecated_unwind_get_saved_register): Delete.
3057 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3058 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3059 and deprecated_get_next_frame_hack instead of
3060 deprecated_unwind_get_saved_register.
3061
ed183c7c
AC
3062 * mips-tdep.c (mips_dump_tdep): Do not print
3063 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3064
f0e7d0e8
AC
3065 * frame.c (get_frame_register): New function.
3066 (frame_unwind_register_signed): New function.
3067 (get_frame_register_signed): New function.
3068 (frame_unwind_register_unsigned): New function.
3069 (get_frame_register_unsigned): New function.
3070 * frame.h: Add comments on naming schema.
3071 (get_frame_register, frame_unwind_register_signed): Declare.
3072 (get_frame_register_signed, get_frame_register_signed): Declare.
3073 (frame_unwind_register_unsigned): Declare.
3074 (get_frame_register_unsigned): Declare.
3075
2224d941
TR
30762003-06-20 Theodore A. Roth <troth@openavr.org>
3077
3078 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3079
8619218d
TR
30802003-06-20 Theodore A. Roth <troth@openavr.org>
3081
3082 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3083 (avr_read_sp): Ditto.
3084
0b1b50c0
DJ
30852003-06-20 Daniel Jacobowitz <drow@mvista.com>
3086
3087 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3088 * config/arm/nm-linux.h: Likewise.
3089 * config/arm/tm-linux.h: Likewise.
3090 * config/ia64/nm-linux.h: Likewise.
3091 * config/ia64/tm-ia64.h: Likewise.
3092 * config/s390/tm-linux.h: Likewise.
3093 * config/s390/tm-s390.h: Likewise.
3094 * s390-nat.c: Likewise.
3095 * s390-tdep.c: Likewise.
3096
3097 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3098 * config/ia64/linux.mt: Likewise.
3099 * config/m68k/linux.mh: Likewise.
3100 * config/mips/linux.mt: Likewise.
3101 * config/powerpc/linux.mh: Likewise.
3102 * config/sh/linux.mt: Likewise.
3103
c8c18e65
KW
31042003-06-19 Kris Warkentin <kewarken@qnx.com>
3105
3106 * solib.c (solib_open): Change tests for whether to search
3107 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3108 comments.
3109
dcccef2e
TR
31102003-06-19 Theodore A. Roth <troth@openavr.org>
3111
3112 * avr-tdep.c (avr_frame_address): Delete function.
3113 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3114 set_gdbarch_frame_args_address.
3115
5861a190
AC
31162003-06-19 Andrew Cagney <cagney@redhat.com>
3117
3118 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3119 (REGISTER_CONVERT_FROM_TYPE): Delete.
3120 (mips_register_convert_to_type): Delete declaration.
3121 (mips_register_convert_from_type): Delete declaration.
3122 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3123 kernel/.
3124
0274a8ce
MS
31252003-06-19 Michael Snyder <msnyder@redhat.com>
3126
3127 * linux-nat.h: New file.
3128 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3129 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3130 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3131 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3132 (linux_make_note_section): Iterate over lwps instead of threads.
3133 (linux_do_thread_registers): Use lwp instead of merged pid.
3134 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3135 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3136 Add dependency on linux_nat_h.
3137
adf5f719
TR
31382003-06-19 Theodore A. Roth <troth@openavr.org>
3139
3140 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3141
6766a268
DJ
31422003-06-19 Daniel Jacobowitz <drow@mvista.com>
3143
3144 * varobj.c (get_type, get_target_type): Use check_typedef.
3145
1171114a
DJ
31462003-06-19 Daniel Jacobowitz <drow@mvista.com>
3147
3148 * breakpoint.c (insert_catchpoint): Call internal_error.
3149
adcf68a2
TR
31502003-06-19 Theodore A. Roth <troth@openavr.org>
3151
3152 * avr-tdep.c (avr_push_dummy_code): Delete function.
3153 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3154
ea67f13b
DJ
31552003-06-19 Daniel Jacobowitz <drow@mvista.com>
3156
3157 * arch-utils.c (default_prepare_to_proceed): Remove.
3158 (generic_prepare_to_proceed): Remove.
3159 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3160 (generic_prepare_to_proceed): Remove prototype.
3161 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3162 * gdbarch.c: Regenerate.
3163 * gdbarch.h: Regenerate.
3164 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3165 * hppah-nat.c (hppa_switched_threads): Remove.
3166 * infrun.c (prepare_to_proceed): New static function, copied from
3167 generic_prepare_to_proceed. Remove select_it argument.
3168 (proceed): Call prepare_to_proceed.
3169 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3170 variables.
3171 (ptrace_wait): Don't set the removed variables.
3172 (hppa_switched_threads): Remove.
3173 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3174 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3175 (lin_lwp_prepare_to_proceed): Remove prototype.
3176 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3177 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3178
4add8633
TR
31792003-06-18 Theodore A. Roth <troth@openavr.org>
3180
3181 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3182 trad-frame.h.
3183 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3184 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3185 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3186 (AVR_PROLOGUE_*): Enumerate prologue types.
3187 (struct frame_extra_info): Remove.
3188 (struct avr_unwind_cache): Define.
3189 (avr_write_sp): Delete function.
3190 (avr_read_fp): Ditto.
3191 (avr_init_extra_frame_info): Ditto.
3192 (avr_pop_frame): Ditto.
3193 (avr_frame_saved_pc): Ditto.
3194 (avr_saved_pc_after_call): Ditto.
3195 (avr_push_return_address): Ditto.
3196 (avr_frame_chain): Ditto.
3197 (avr_store_struct_return): Ditto.
3198 (avr_push_arguments): Ditto.
3199 (avr_scan_prologue): Update comments. Changed to set up the info for
3200 cache unwinding. Now returns end of prologue PC.
3201 (avr_skip_prologue): Better handling of functions lacking a prologue
3202 by using avr_scan_prologue.
3203 (avr_scan_arg_moves): New function.
3204 (avr_saved_regs_unwinder): Ditto.
3205 (avr_frame_unwind_cache): Ditto.
3206 (avr_unwind_pc): Ditto.
3207 (avr_frame_this_id): Ditto.
3208 (avr_frame_prev_register): Ditto.
3209 (avr_frame_p): Ditto.
3210 (avr_frame_base_address ): Ditto.
3211 (avr_unwind_dummy_id): Ditto.
3212 (avr_push_dummy_code): Ditto.
3213 (push_stack_item): Ditto.
3214 (pop_stack_item): Ditto.
3215 (avr_push_dummy_call): Ditto.
3216 (struct stack_item): Define.
3217 (avr_frame_unwind): Declare structure.
3218 (avr_frame_base): Ditto.
3219 (avr_gdbarch_init): Remove calls to
3220 set_gdbarch_deprecated_init_frame_pc,
3221 set_gdbarch_deprecated_target_read_fp,
3222 set_gdbarch_deprecated_dummy_write_sp,
3223 set_gdbarch_deprecated_fp_regnum,
3224 set_gdbarch_deprecated_push_arguments,
3225 set_gdbarch_deprecated_push_return_address,
3226 set_gdbarch_deprecated_pop_frame,
3227 set_gdbarch_deprecated_store_struct_return,
3228 set_gdbarch_deprecated_frame_init_saved_regs,
3229 set_gdbarch_deprecated_init_extra_frame_info,
3230 set_gdbarch_deprecated_frame_chain,
3231 set_gdbarch_deprecated_frame_saved_pc,
3232 set_gdbarch_deprecated_saved_pc_after_call.
3233 Add calls to set_gdbarch_push_dummy_call,
3234 set_gdbarch_push_dummy_code,
3235 frame_unwind_append_predicate,
3236 frame_base_set_default,
3237 set_gdbarch_unwind_dummy_id,
3238 set_gdbarch_unwind_pc.
3239 Wrap a long line.
3240
7be04a68
MS
32412003-06-18 Corinna Vinschen <vinschen@redhat.com>
3242
3243 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3244 registers for H8/300S.
3245 (h8300_print_registers_info): Ditto.
8ffd9b1b 3246 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3247
ae087d01
DJ
32482003-06-18 Daniel Jacobowitz <drow@mvista.com>
3249
3250 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3251 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3252 (lin_lwp_wait): Likewise. Update comments.
3253 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3254 (pull_pid_from_list, linux_record_stopped_pid): New.
3255
07d8f827
SC
32562003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3257
3258 * ada-lang.c (scan_discrim_bound): Name first argument.
3259 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3260 declared by ALL_BLOCK_SYMBOLS.
3261
7cb47b14
SC
32622003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3263
3264 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3265 ("regcache.h"): Include it.
3266 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3267
6ad8ae5c
DJ
32682003-06-17 Daniel Jacobowitz <drow@mvista.com>
3269
3270 * NEWS: Mention gdbserver detach change and "disconnect" command.
3271 * infcmd.c (disconnect_command): New function.
3272 (_initialize_infcmd): Add ``disconnect'' command.
3273 * remote.c (remote_async_detach): Delete.
3274 (remote_detach): Merge remote_async_detach.
3275 (remote_disconnect): New.
3276 (init_remote_ops): Set to_disconnect.
3277 (init_remote_cisco_ops): Likewise.
3278 (init_remote_async_ops): Likewise. Use remote_detach.
3279 * target.c (cleanup_target): Default to_disconnect.
3280 (update_current_target): Inherit to_disconnect.
3281 (target_disconnect, debug_to_disconnect): New functions.
3282 (setup_target_debug): Set to_disconnect.
3283 * target.h (struct target_ops): Add to_disconnect.
3284 (target_disconnect): Add prototype.
3285
687595f9
DJ
32862003-06-17 Daniel Jacobowitz <drow@mvista.com>
3287
3288 * breakpoint.c (insert_catchpoint): New function.
3289 (insert_breakpoints): Use catch_exceptions to call
3290 insert_catchpoint. Disable catchpoints if they fail to insert.
3291
29239a8f
DJ
32922003-06-17 Daniel Jacobowitz <drow@mvista.com>
3293
3294 * symfile.c (reread_symbols): Clear sym_private.
3295
2cdf3c63
AC
32962003-06-17 Andrew Cagney <cagney@redhat.com>
3297
3298 * trad-frame.h (struct frame_info): Add opaque declaration.
3299 * remote-fileio.h (struct cmd_list_element): Add opaque
3300 declaration.
3301 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3302 comments.
3303
cf0e1e0d
DJ
33042003-06-17 Daniel Jacobowitz <drow@mvista.com>
3305
3306 * remote.c (remote_prepare_to_store): Replace call to
3307 deprecated_read_register_bytes with multiple regcache_raw_read
3308 calls.
3309
192cdb19
KW
33102003-06-17 Kris Warkentin <kewarken@qnx.com>
3311
3312 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3313 (nto_find_and_open_solib): Likewise.
3314 (nto_init_solib_absolute_prefix): Likewise.
3315 (_initialize_nto_tdep): Fix indentation.
3316
89929b45
KW
33172003-06-17 Kris Warkentin <kewarken@qnx.com>
3318
3319 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3320
46019f27
KW
33212003-06-17 Kris Warkentin <kewarken@qnx.com>
3322
3323 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3324
1a38736e
JB
33252003-06-17 Jim Blandy <jimb@redhat.com>
3326
3327 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3328
3605c34a
TR
33292003-06-16 Theodore A. Roth <troth@openavr.org>
3330
3331 * avr-tdep.c (avr_extract_return_value): New function.
3332 (avr_gdbarch_init): Set extract_return_value method.
3333
870b3035
AC
33342003-06-16 Andrew Cagney <cagney@redhat.com>
3335
3336 * frame.h (deprecated_get_next_frame_hack): Declare.
3337 * frame.c (legacy_saved_regs_prev_register): Only require
3338 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3339 there are always saved regs.
3340 (deprecated_generic_get_saved_register): Do not require
3341 DEPRECATED_FRAME_INIT_SAVED_REGS.
3342 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3343 use frame ID unwind instead.
3344 (deprecated_get_next_frame_hack): New function.
3345
63d47a7d
CV
33462003-06-16 Corinna Vinschen <vinschen@redhat.com>
3347
3348 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3349 (h8300_push_dummy_call): ...this function. Some minor optimization.
3350 (h8300_push_return_address): Remove.
3351 (h8300_gdbarch_init): Remove calls to
3352 set_gdbarch_deprecated_dummy_write_sp,
3353 set_gdbarch_deprecated_push_arguments and
3354 set_gdbarch_deprecated_push_return_address.
3355 Add call to set_gdbarch_push_dummy_call.
3356
4bb1dc5e
CV
33572003-06-16 Corinna Vinschen <vinschen@redhat.com>
3358
3359 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3360 (E_PSEUDO_EXR_REGNUM): Ditto.
3361 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3362 registers into safe registers.
4bb1dc5e
CV
3363 (h8300_skip_prologue): Check for stm instruction to push registers
3364 used for register variables onto stack.
3365 (gdb_print_insn_h8300): Remove.
3366 (h8300_examine_prologue): Add a comment.
3367 (h8300_register_name): Take pseudo registers into account.
3368 (h8300s_register_name): Ditto.
3369 (h8300sx_register_name): Ditto.
3370 (h8300_print_register): Ditto.
3371 (h8300_print_registers_info): Define "nice" printing order.
3372 (h8300_saved_pc_after_call): Take pseudo registers into account.
3373 (h8300_register_type): Ditto. Return type used for remote connection
3374 when requesting real CCR or EXR register, return actual type when
3375 requesting pseudo CCR or EXR.
3376 (h8300_pseudo_register_read): New function.
3377 (h8300_pseudo_register_write): Ditto.
3378 (h8300_dbg_reg_to_regnum): Ditto.
3379 (h8300s_dbg_reg_to_regnum): Ditto.
3380 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3381 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3382 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3383 set_gdbarch_print_insn architecture dependent.
3384 Call set_gdbarch_pseudo_register_read and
3385 set_gdbarch_pseudo_register_write.
3386 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3387
a59fe496
AC
33882003-06-16 Andrew Cagney <cagney@redhat.com>
3389
3390 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3391 * gdbarch.h, gdbarch.c: Re-generate.
3392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3393 * s390-tdep.c (s390_gdbarch_init): Update.
3394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3395 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3396 * mips-tdep.c (mips_gdbarch_init): Update.
3397 * mcore-tdep.c (mcore_gdbarch_init): Update.
3398 * cris-tdep.c (cris_gdbarch_init): Update.
3399 * infcall.c (call_function_by_hand): Update.
3400 * ia64-tdep.c (ia64_push_arguments): Update comment.
3401 * frame.c (legacy_get_prev_frame): Do not assume
3402 SAVE_DUMMY_FRAME_TOS_P.
3403 * dummy-frame.c (find_dummy_frame): Update comment.
3404
6f4e5a41
AC
34052003-06-16 Andrew Cagney <cagney@redhat.com>
3406
3407 * regcache.c (do_cooked_read): Do not use register_valid_p.
3408
72fab697
TR
34092003-06-15 Theodore A. Roth <troth@openavr.org>
3410
3411 * avr-tdep.c (avr_register_type): Remove a blank line.
3412 (avr_scan_prologue): Correct some comments.
3413
e3d8b004
TR
34142003-06-15 Theodore A. Roth <troth@openavr.org>
3415
3416 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3417 prologue types.
8ffd9b1b 3418 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3419 option.
3420 Add code to scan -mcall-prologues for mega devices.
3421
866b76ea
TR
34222003-06-15 Theodore A. Roth <troth@openavr.org>
3423
3424 * avr-tdep.c (avr_register_byte): Delete function.
3425 (avr_register_raw_size): Delete function.
3426 (avr_register_virtual_size): Delete function.
3427 (avr_register_virtual_type): Delete function.
3428 (avr_register_type): New function.
3429 (avr_address_to_pointer): Remove unused code.
3430 (avr_read_fp): Need to read FP as two separate bytes due to change to
3431 avr_register_type() usage.
3432 (avr_gdbarch_init): Don't set deprecated_register_size.
3433 Don't set deprecated_register_bytes.
3434 Don't set deprecated_register_byte.
3435 Don't set deprecated_register_raw_size.
3436 Don't set deprecated_max_register_raw_size.
3437 Don't set deprecated_register_virtual_size.
3438 Don't set deprecated_max_register_virtual_size.
3439 Don't set deprecated_register_virtual_type.
3440 Set register_type method.
3441
3993f6b1
DJ
34422003-06-15 Daniel Jacobowitz <drow@mvista.com>
3443
3444 * Makefile.in (linux-nat.o): Add rule.
3445 * linux-nat.c: New file.
3446 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3447 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3448 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3449 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3450 * config/arm/linux.mh (NATDEPFILES): Likewise.
3451 * config/i386/linux.mh (NATDEPFILES): Likewise.
3452 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3453 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3454 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3455 * config/mips/linux.mh (NATDEPFILES): Likewise.
3456 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3457 * config/s390/s390.mh (NATDEPFILES): Likewise.
3458 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3459
786a90bb
MK
34602003-06-15 Mark Kettenis <kettenis@gnu.org>
3461
3462 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3463 replace out-of-date comment.
3464
3bd3f01e
AC
34652003-06-15 Andrew Cagney <cagney@redhat.com>
3466
3467 * rdi-share/host.h (Fail): Change to a varargs function.
3468 * remote-rdi.c (Fail): Update.
8ffd9b1b 3469
de5b9bb9
MK
34702003-06-15 Mark Kettenis <kettenis@gnu.org>
3471
3472 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3473 (i386_convert_register_p, i386_register_to_value,
3474 i386_register_from_value): Handle types longer than 8 bytes.
3475
d532c08f
MK
34762003-06-15 Mark Kettenis <kettenis@gnu.org>
3477
3478 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3479 Move floating-point code to new function in i387-tdep.c.
3480 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3481 New functions containing code moved here from i386-tdep.c.
3482 * i387-tdep.h: Add opaque declaration for `struct type'.
3483 (i387_register_to_value, i387_value_to_register): New prototypes.
3484 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3485 (x86_64_init_abi): Set convert_register_p, register_to_value and
3486 value_to_register here.
8ffd9b1b 3487
42c466d7
AC
34882003-06-14 Andrew Cagney <cagney@redhat.com>
3489
3490 * mips-tdep.c (mips_register_to_value): Make static.
3491 (mips_value_to_register): Make static.
3492 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3493 * ia64-tdep.c (ia64_register_raw_size): Make static.
3494 (ia64_register_virtual_size): Make static.
3495 (ia64_register_byte): Make static.
3496 * i387-tdep.c: Include "i387-tdep.h".
3497 (print_387_control_word): Delete function.
3498 (print_387_status_word): Delete function.
3499 (print_387_status_bits): Delete function.
3500 (print_387_control_bits): Delete function.
3501 * Makefile.in (i387-tdep.o): Update dependencies.
3502 * rdi-share/host.h (Fail): Declare.
3503 * remote-rdi.c (Fail): Update to match declaration.
3504
2a9cda49
AC
35052003-06-14 Andrew Cagney <cagney@redhat.com>
3506
3507 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3508 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3509 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3510 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3511 * README: Delete reference to remote-array.
3512 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3513 (remote-array.o): Delete target.
3514 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3515 * remote-array.c: Delete file.
3516
ff2e87ac
AC
35172003-06-14 Andrew Cagney <cagney@redhat.com>
3518 Mark Kettenis <kettenis@gnu.org>
3519
3520 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3521 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3522 parameter with "frame".
3523 * gdbarch.h, gdbarch.c: Re-generate.
3524 * frame.h (put_frame_register): Declare.
3525 * frame.c (put_frame_register): New function.
3526 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3527 (legacy_register_to_value): Rewrite, use "frame" to get the
3528 register value.
3529 (legacy_value_to_register): Rewrite, use "frame" to find the
3530 register's location before storing.
3531 * arch-utils.h (legacy_convert_register_p): Update.
3532 (legacy_register_to_value, legacy_value_to_register): Update.
3533 * findvar.c (value_from_register): Rewrite, eliminate use of
3534 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3535 "frame" to REGISTER_TO_VALUE.
3536 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3537 lval_reg_frame_relative + lval_register branch of the switch. Do
3538 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3539 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3540 I386_EDI_REGNUM): New defines.
3541 (i386_next_regnum, i386_convert_register_p,
3542 i386_register_to_value, i386_value_to_register): New functions.
3543 (i386_register_convertible, i386_register_convert_to_virtual,
3544 i386_convert_to_raw): Remove functions.
3545 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3546 value_to_register instead of register_convertible,
3547 register_convert_to_virtual and register_convert_to_raw.
3548 * mips-tdep.c (mips_convert_register_p): New function.
3549 (mips_value_to_register): Replace mips_register_convert_from_type.
3550 (mips_register_to_value): Replace mips_register_convert_to_type.
3551 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3552 register_to_value.
3553 * alpha-tdep.c (alpha_convert_register_p): Update.
3554 (alpha_value_to_register): Update, store the register.
3555 (alpha_register_to_value): Update, fetch the register.
3556
98be1e77
TR
35572003-06-14 Theodore A. Roth <troth@openavr.org>
3558
3559 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3560 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3561 Don't set deprecated_call_dummy_words.
3562 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3563 Don't set remote_translate_xfer_address.
3564 (avr_io_reg_read_command): Remove commented out debug printf.
3565 Wrap a long line.
3566
57bc6122
TR
35672003-06-14 Theodore A. Roth <troth@openavr.org>
3568
3569 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3570 causes gdb to seg fault.
3571
eb01fc62
DJ
35722003-06-14 Daniel Jacobowitz <drow@mvista.com>
3573
3574 * sparc-nat.c (fetch_inferior_registers): Correct
3575 a reference to "registers".
3576
3b3e6bee
DJ
35772003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3578
3579 * Makefile.in (exc_request_U_h): Define
3580 (exc_request_S_h): Likewise.
3581 (msg_reply_S_h): Likewise.
3582 (msg_U_h): Likewise.
3583 (notify_S_h): Likewise.
3584 (process_reply_S_h): Likewise.
3585 (gnu-nat.o): Depend on gdb_obstack_h
3586 * gnu-nat.c: Include "gdb_obstack.h".
3587
b8de8283
AC
35882003-06-13 Andrew Cagney <cagney@redhat.com>
3589
3590 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3591 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3592
f3be58bc
AC
35932003-06-13 Andrew Cagney <cagney@redhat.com>
3594
3595 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3596 when deprecated REGISTER macros can be deleted.
3597 * gdbarch.h, gdbarch.c: Re-generate.
3598
4c0122c8
JB
35992003-06-13 Jim Blandy <jimb@redhat.com>
3600
3601 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3602 Linux entry point symbols for _dl_debug_state, too.
3603
3e210248
AC
36042003-06-13 Andrew Cagney <cagney@redhat.com>
3605
3606 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3607 available, do not use the FP register, and always save the TOS.
3608 * dummy-frame.c (dummy_frame_this_id): Do not assert
3609 SAVE_DUMMY_FRAME_TOS.
3610 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3611 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3612 (i386_push_dummy_call): Add 8 to the returned SP.
3613 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3614 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3615 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3616 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3617 (x86_64_push_dummy_call): Return "sp + 16".
3618 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3619 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3620 save_dummy_frame_tos.
3621
0b65af49
JB
36222003-06-13 Jim Blandy <jimb@redhat.com>
3623
3624 * frv-tdep.c (frv_use_struct_convention): Delete static
3625 declaration for function deleted in my change of 2003-06-12.
3626
4ea2465e
TR
36272003-06-13 Theodore A. Roth <troth@openavr.org>
3628
3629 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3630 (avr_pointer_to_address): Shift code addrs left 1 bit.
3631 (avr_convert_from_func_ptr_addr): Delete function since operation is
3632 better handled by avr_address_to_pointer and avr_pointer_to_address.
3633 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3634
1581182a
MK
36352003-06-13 Mark Kettenis <kettenis@gnu.org>
3636
3637 From Kelley Cook <kelleycook@wideopenwest.com>:
3638 * configure.host: Accept i[34567]86 variants.
3639 * configure.tgt: Likewise.
3640 * nlm/configure.in: Likewise.
3641 * nlm/configure: Regenerated.
3642
7aa1783e
RE
36432003-06-13 Richard Earnshaw <rearnsha@arm.com>
3644
3645 * arm-tdep.c (solib-svr4.h): Dont' include it.
3646 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3647 * arm-linux-tdep.c: ... here. Make static.
3648 (arm_linux_init_abi): Register it.
3649 (solib-svr4.h): Include it.
3650 * Makefile.in: Update dependencies.
3651 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3652 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3653
0261a0d0
CV
36542003-06-13 Corinna Vinschen <vinschen@redhat.com>
3655
3656 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3657 indicate registers used for return values.
3658 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3659 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3660 members.
3661 (h8300_init_extra_frame_info): Ditto.
3662 (h8300_frame_locals_address): Removed.
3663 (h8300_frame_args_address): Removed.
3664 (h8300_extract_return_value): Use new regcache structure. Only care
3665 for 16 bit CPUs.
3666 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3667 (h8300_store_return_value): Use new regcache structure. Only care
3668 for 16 bit CPUs.
3669 (h8300h_store_return_value): Same function for 32 bit CPUs.
3670 (h8300_store_struct_return): Removed.
3671 (h8300_extract_struct_value_address): Use new regcache structure.
3672 (h8300h_extract_struct_value_address): Removed.
3673 (h8300_push_dummy_code): New function.
3674 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3675 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3676 set_gdbarch_store_return_value architecture dependent.
3677 Call set_gdbarch_push_dummy_code and
3678 set_gdbarch_extract_struct_value_address.
3679 Remove calls to set_gdbarch_frame_args_address,
3680 set_gdbarch_frame_locals_address,
3681 set_gdbarch_deprecated_store_struct_return,
3682 set_gdbarch_deprecated_extract_return_value,
3683 set_gdbarch_deprecated_extract_struct_value_address,
3684 set_gdbarch_deprecated_call_dummy_words and
3685 set_gdbarch_deprecated_sizeof_call_dummy_words.
3686
055c394a
CV
36872003-06-13 Corinna Vinschen <vinschen@redhat.com>
3688
3689 * h8300-tdep.c (h8300_register_byte): Remove.
3690 (h8300h_register_byte): Remove.
3691 (h8300_register_virtual_type): Remove. Substitute by...
3692 (h8300_register_type): New function.
3693 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3694 (h8300h_extract_struct_value_address): Ditto.
3695 (h8300_gdbarch_init): Drop calls to
3696 set_gdbarch_deprecated_register_byte and
3697 set_gdbarch_deprecated_register_virtual_type.
3698 Add call to set_gdbarch_register_type.
3699
9c04cab7
AC
37002003-06-13 Andrew Cagney <cagney@redhat.com>
3701
3702 * gdbarch.sh: Update comments on registers.
3703 (deprecated_register_byte): Rename register_byte.
3704 (deprecated_register_raw_size): Rename register_raw_size.
3705 (deprecated_register_virtual_size): Rename register_virtual_size.
3706 (deprecated_register_virtual_type): Rename register_virtual_type.
3707 * gdbarch.h, gdbarch.c: Re-generate.
3708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3709 * vax-tdep.c (vax_gdbarch_init): Update.
3710 * v850-tdep.c (v850_gdbarch_init): Update.
3711 * sparc-tdep.c (sparc_gdbarch_init): Update.
3712 * sh-tdep.c (sh_gdbarch_init): Update.
3713 * s390-tdep.c (s390_gdbarch_init): Update.
3714 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3715 * ns32k-tdep.c: Update.
3716 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3717 * mips-tdep.c (mips_gdbarch_init): Update.
3718 * mcore-tdep.c (mcore_gdbarch_init): Update.
3719 * m68k-tdep.c (m68k_gdbarch_init): Update.
3720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3721 * ia64-tdep.c (ia64_gdbarch_init): Update.
3722 * hppa-tdep.c (hppa_gdbarch_init): Update.
3723 * h8300-tdep.c (h8300_gdbarch_init): Update.
3724 * frv-tdep.c (frv_gdbarch_init): Update.
3725 * cris-tdep.c (cris_gdbarch_init): Update.
3726 * avr-tdep.c (avr_gdbarch_init): Update.
3727 * alpha-tdep.c (alpha_gdbarch_init): Update.
3728 * arm-tdep.c (arm_gdbarch_init): Update.
3729
b060cbea
AC
37302003-06-13 Andrew Cagney <cagney@redhat.com>
3731
3732 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3733 mips_o32_use_struct_convention with always_use_struct_convention.
3734
0fc9922a
DC
37352003-06-12 David Carlton <carlton@kealia.com>
3736
3737 * cp-namespace.c (cp_set_block_scope): Comment out
3738 processing_has_namespace_info branch.
3739
1fd35568
JB
37402003-06-12 Jim Blandy <jimb@redhat.com>
3741
f470a70a
JB
3742 Recognize and skip 64-bit PowerPC Linux linkage functions.
3743 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3744 insn_pattern, insns_match_pattern, d_field, ds_field): New
3745 functions, macros, and types for working with PPC instructions.
3746 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3747 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3748 ppc64_skip_trampoline_code): New functions, variables, and macros
3749 for recognizing and skipping linkage functions.
3750 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3751 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3752
49ff75ad
JB
3753 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3754 register offsets for both the 32- and 64-bit interfaces.
3755
bd918c83
JB
3756 Actually finish the job started by my change of 2003-05-29.
3757 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3758 other #definition of this.
3759 (ppc_linux_skip_trampoline_code): Remove declaration.
3760 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3761 static.
3762 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3763 method for GDBARCH.
3764
3765 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3766 'long' on ppc64-*-linux*.
3767
f8c59253
JB
3768 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3769 isn't #defined, assume the register doesn't exist: act as if
3770 tdep->ppc_mq_regnum were -1.
3771
8fbb30b1
JB
3772 * configure.host, configure.tgt: Add entries for
3773 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3774 powerpc/linux.mt.
3775 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3776 New files.
3777
1fd35568
JB
3778 * arch-utils.c (always_use_struct_convention): New function.
3779 * arch-utils.h (always_use_struct_convention): New prototype.
3780 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3781 (alpha_gdbarch_init): Register always_use_struct_convention,
3782 instead of alpha_use_struct_convention.
3783 * cris-tdep.c (cris_use_struct_convention): Delete.
3784 (cris_gdbarch_init): Register always_use_struct_convention,
3785 instead of cris_use_struct_convention.
3786 * frv-tdep.c (frv_use_struct_convention): Delete.
3787 (frv_gdbarch_init): Register always_use_struct_convention,
3788 instead of frv_use_struct_convention.
3789 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3790 (h8300_gdbarch_init): Register always_use_struct_convention,
3791 instead of h8300_use_struct_convention.
e3305dd9 3792 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3793 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3794 instead of mips_o32_use_struct_convention.
3795
e14e6e9c
AC
37962003-06-12 Andrew Cagney <cagney@redhat.com>
3797
3798 * wince.c: Include "mips-tdep.h".
3799 * mips-tdep.h (mips_next_pc): Declare.
3800 * mcore-tdep.c: Make more local functions static.
3801 * Makefile.in (wince.o): Update dependencies.
3802
2335f48e
DC
38032003-06-12 David Carlton <carlton@kealia.com>
3804
3805 * symtab.c (lookup_symbol_aux_minsyms): Replace
3806 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3807 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3808 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3809 SYMBOL_NATURAL_NAME.
3810
f70a7d61
AS
38112003-06-12 Andreas Schwab <schwab@suse.de>
3812
3813 * Makefile.in (tuiDisassem.o): Update dependencies.
3814
b6429628
DC
38152003-06-12 David Carlton <carlton@bactrian.org>
3816
3817 * symtab.h: Delete declaration of make_symbol_overload_list.
3818 Add declaration of lookup_partial_symbol.
3819 * symtab.c (remove_params): Move to cp-support.c.
3820 (overload_list_add_symbol, make_symbol_overload_list)
3821 (sym_return_val_size, sym_return_val_index): Ditto.
3822 (lookup_partial_symbol): Make extern.
3823 * cp-support.h: Add declaration of make_symbol_overload_list.
3824 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3825 symtab.h, and block.h.
3826 (remove_params): Move here from symtab.c.
3827 (overload_list_add_symbol, make_symbol_overload_list)
3828 (sym_return_val_size, sym_return_val_index): Ditto.
3829 * valops.c: Include cp-support.h.
3830 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3831 frame_h, and block_h.
3832 (valops.o): Depend on cp_support_h.
3833
084edea5
CV
38342003-06-12 Corinna Vinschen <vinschen@redhat.com>
3835
3836 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3837 substitute by NUM_REGS throughout.
3838 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3839 (h8300s_register_name): New function for H8S registers.
3840 (h8300sx_register_name): Ditto for H8SX registers.
3841 (h8300_print_register): Revise register printing, avoid depending
3842 on 32 bit long.
0261a0d0 3843 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3844 (h8300h_register_byte): New function for any other architecture.
3845 (h8300_register_raw_size): Remove.
3846 (h8300_register_virtual_type): Revise to return actually useful
3847 type.
3848 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3849 (h8300h_extract_struct_value_address): New function for any other
3850 architecture.
3851 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3852 set_gdbarch_register_name, set_gdbarch_register_byte,
3853 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3854 Remove calls to set_gdbarch_deprecated_register_size,
3855 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3856 set_gdbarch_deprecated_max_register_raw_size,
3857 set_gdbarch_register_virtual_size and
3858 set_gdbarch_deprecated_max_register_virtual_size entirely.
3859 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3860 set_gdbarch_long_double_bit.
3861
06194148
JJ
38622003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3863
8ffd9b1b
AJ
3864 * doublest.c (convert_doublest_to_floatformat): When dealing
3865 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3866 processing a full 32 bits of mantissa.
3867
de4f826b
DC
38682003-06-11 David Carlton <carlton@bactrian.org>
3869
3870 * dictionary.h: New.
3871 * dictionary.c: New.
3872 * block.h: Add opaque declaration for struct dictionary.
3873 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3874 'sym' members.
3875 (BLOCK_DICT): New macro.
3876 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3877 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3878 BLOCK_SHOULD_SORT.
3879 (ALL_BLOCK_SYMBOLS): Update definition.
3880 * Makefile.in (SFILES): Add dictionary.c.
3881 (dictionary_h): New.
3882 (COMMON_OBS): Add dictionary.o.
3883 (dictionary.o): New.
3884 (ada-lang.o): Depend on dictionary_h.
3885 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3886 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3887 (mi-cmd-stack.o): Ditto.
3888 (gdbtk-cmds.o): Update dependencies.
3889 (gdbtk-stack.o): Ditto.
3890 * ada-lang.c: Include dictionary.h.
3891 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3892 (fill_in_ada_prototype, debug_print_block): Ditto.
3893 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3894 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3895 'is_sorted'.
3896 * mdebugread.c: Include dictionary.h.
3897 (struct parse_stack): Delete 'maxsyms' member.
3898 (parse_symbol): Update calls to new_block. Delete calls to
3899 shrink_block. Use dictionary methods.
3900 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3901 Update calls to new_symtab. Don't maintain maxsyms data.
3902 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3903 (add_symbol): Just call dict_add_symbol.
3904 (new_symtab): Delete 'maxsyms' argument.
3905 (new_symtab): Update calls to new_block.
3906 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3907 (shrink_block): Delete function.
3908 (fixup_sigtramp): Update call to new_block. Add symbol via
3909 dict_add_symbol.
3910 * jv-lang.c: Include dictionary.h.
3911 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3912 appropriately. Set class_symtab->free_func. Make sure the
3913 blockvector is big enough to hold two blocks.
3914 (add_class_symtab_symbol): Use dictionary methods.
3915 (free_class_block): New function.
3916 (type_from_class): Replace explicit iteration by
3917 ALL_BLOCK_SYMBOLS.
3918 * symtab.h (struct symtab): Replace 'free_ptr' method by
3919 'free_func'.
3920 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3921 sort_symtab_syms.
3922 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3923 sort_symtab_syms.
3924 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3925 Include dictionary.h.
3926 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3927 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3928 sort_symtab_syms.
3929 * objfiles.c: Include dictionary.h.
3930 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3931 * buildsym.c: Include dictionary.h.
3932 (finish_block): Use dictionary methods.
3933 (end_symtab): Set free_func to NULL, not free_ptr.
3934 * tracepoint.c: Include dictionary.h.
3935 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3936 (scope_info): Ditto.
3937 * stack.c: Include dictionary.h.
3938 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3939 (print_block_frame_labels, print_frame_arg_vars)
3940 (print_frame_args): Ditto.
3941 * symmisc.c (free_symtab_block): Use dictionary methods.
3942 (dump_symtab): Ditto.
3943 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3944 Include dictionary.h.
3945 * symfile.h: Delete declarations of sort_block_syms,
3946 sort_symtab_syms.
3947 * symfile.c (sort_block_syms): Delete.
3948 (sort_symtab_syms): Delete.
3949 * symtab.c: Include dictionary.h.
3950 (lookup_block_symbol): Use dictionary iterators.
3951 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3952 (search_symbols, make_symbol_completion_list): Ditto.
3953 (make_symbol_overload_list): Ditto.
3954 * valops.c (value_of_local): Use dict_empty.
3955 Include dictionary.h.
3956
a31f978c
JB
39572003-06-11 J. Brobecker <brobecker@gnat.com>
3958
3959 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3960
526e70c0
DC
39612003-06-11 David Carlton <carlton@bactrian.org>
3962
3963 * block.h (BLOCK_SHOULD_SORT): Delete.
3964 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3965 blocks.
3966 * ada-lang.c (ada_add_block_symbols): Ditto.
3967 * symfile.c (sort_block_syms): Delete.
3968 (sort_symtab_syms): Ditto.
3969 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3970 declarations.
3971 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3972 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3973 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3974 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3975 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3976 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3978
33c08150
JJ
39792003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3980
8ffd9b1b 3981 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3982 bits to 128.
3983
781a750d
AC
39842003-06-11 Andrew Cagney <cagney@redhat.com>
3985
3986 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3987 REGISTER_CONVERTIBLE.
3988 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3989 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3990 * gdbarch.h, gdbarch.c: Re-generate.
3991 * arch-utils.h (deprecated_register_convertible_not): Rename
3992 generic_register_convertible_not.
3993 * arch-utils.c (deprecated_register_convertible_not): Rename
3994 generic_register_convertible.
3995 (legacy_convert_register_p, legacy_register_to_value): Update.
3996 * sh-tdep.c (sh64_push_arguments): Update.
3997 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3998 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3999 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4000 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4001 * arch-utils.c (legacy_value_to_register): Update.
4002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4003 (rs6000_register_convert_to_raw): Make parameter "from" const.
4004 * mips-tdep.c (mips_gdbarch_init): Update.
4005 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4006 * infcmd.c (default_print_registers_info): Update.
4007 * ia64-tdep.c (ia64_gdbarch_init): Update.
4008 (ia64_register_convert_to_raw): Make parameter "from" const.
4009 * i386-tdep.c (i386_gdbarch_init): Update.
4010 (i386_register_convert_to_raw): Update.
4011
cd90e54f
AC
40122003-06-11 Andrew Cagney <cagney@redhat.com>
4013
4014 * remote-fileio.c: Include "remote-fileio.h".
4015 * Makefile.in (remote-fileio.o): Update dependencies.
4016 (remote_fileio_h): Fix typo.
4017
a78f21af
AC
40182003-06-11 Andrew Cagney <cagney@redhat.com>
4019
4020 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4021 (xstormy16_save_dummy_frame_tos): Make static.
4022 (_initialize_xstormy16_tdep): Add declaration.
4023 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4024 * v850-tdep.c: Make local functions static.
4025 (_initialize_v850_tdep): Add declaration.
4026 * sparc-tdep.c: Make local functions static.
4027 (_initialize_sparc_tdep): Add declaration.
4028 * sh-tdep.c: Make local functions static.
4029 (_initialize_sh_tdep): Add declaration.
4030 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4031 * s390-tdep.c: Make local functions static.
4032 (_initialize_s390_tdep): Add declaration.
4033 * dbxread.c (find_stab_function_addr): Make static.
4034 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4035 * ocd.c (_initialize_remote_ocd): Add declaration.
4036 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4037 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4038 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4039 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4040 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4041 * remote-array.c (_initialize_array): Add declaration.
4042 (_initialize_remote_monitors): Add declaration.
4043 * remote-mips.c: Make local functions static.
4044 (_initialize_remote_mips): Add declaration.
4045 * mcore-tdep.c: Make all local functions static.
4046 (_initialize_mcore_tdep): Add declaration.
4047 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4048 * abug-rom.c (_initialize_abug_rom): Add declaration.
4049 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4050 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4051 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4052 * remote-est.c (_initialize_est): Add declaration.
4053 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4054 (m68hc11_call_dummy_address): Make static.
4055 * ia64-tdep.c: Make local functions static.
4056 (_initialize_ia64_tdep): Add declaration.
4057 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4058 * monitor.c (monitor_wait_filter): Make static.
4059 (_initialize_remote_monitors): Add declaration.
4060 * remote-hms.c (_initialize_remote_hms): Add declaration.
4061 * remote-e7000.c (fetch_regs_from_dump): Make static.
4062 (expect_n): Make static.
4063 (_initialize_remote_e7000): Add declaration.
4064 * ser-e7kpc.c: Always include "defs.h".
4065 (_initialize_ser_e7000pc): Add declaration.
4066 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4067 * cris-tdep.c: Make all but one function static.
4068 (_initialize_cris_tdep): Add declaration.
4069 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4070 * solib.c (update_solib_list): Make static.
4071 (_initialize_solib): Add declaration.
4072 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4073 (_initialize_avr_tdep): Add declaration.
4074 * remote-rdi.c (voiddummy): Make static.
4075 (_initialize_remote_rdi): Add declaration.
4076 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4077 * remote-rdp.c (send_rdp): Make static.
4078 (_initialize_remote_rdp): Add declaration.
4079 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4080
cbcdb1f5
CV
40812003-06-11 Corinna Vinschen <vinschen@redhat.com>
4082
4083 * remote-fileio.c: Make ari happy.
4084
a191ea8d
JB
40852003-06-10 J. Brobecker <brobecker@gnat.com>
4086
4087 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4088 fetching the trailing bytes of the buffer we are about to write.
4089
0ef75e11
AC
40902003-06-10 Andrew Cagney <cagney@redhat.com>
4091
4092 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4093 * Makefile.in (remote-fileio.o): Update dependencies.
4094 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4095 include <setjmp.h>, or <sys/types.h> conditional on USG.
4096 (remote_fio_jmp_buf): Delete global variable.
4097
449092f6 40982003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4099 Martin M. Hunt <hunt@redhat.com>
449092f6 4100
559fa028
AC
4101 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4102 (SFILES): Add remote-fileio.c.
4103 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4104 dependencies for building remote.o.
449092f6
CV
4105 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4106 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4107 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4108 static storage class.
4109 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4110 'F' packet.
4111 (_initialize_remote): Call initialize_remote_fileio().
4112 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4113 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4114 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4115 (captured_main): Initialize new ui_files.
4116 * ui-file.c: Add read and fgets input functions.
4117 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4118 (null_file_read): New function.
4119 (ui_file_read): New function.
4120 (set_ui_file_read): New function.
4121 (stdio_file_read): New function.
4122 * ui-file.h: New type ui_file_read_ftype.
4123 (set_ui_file_read): Declare.
4124 (ui_file_read): Declare.
4125
248de703
AC
41262003-06-09 Andrew Cagney <cagney@redhat.com>
4127
4128 * frame.h (deprecated_unwind_get_saved_register): Rename
4129 generic_unwind_get_saved_register, update comments.
4130 * mips-tdep.c (mips_get_saved_register): Update.
4131 * frame.c (deprecated_unwind_get_saved_register): Update.
4132
0ed8aa57
AC
41332003-06-09 Andrew Cagney <cagney@redhat.com>
4134
4135 * vax-tdep.c (vax_frame_locals_address): Delete function.
4136 (vax_gdbarch_init): Do not set frame_locals_address.
4137 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4138 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4139 * s390-tdep.c (s390_frame_args_address): Delete function.
4140 (s390_gdbarch_init): Do not set frame_args_address or
4141 frame_locals_address.
4142 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4143 (ns32k_gdbarch_init): Do not set frame_locals_address.
4144 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4145 (hppa_frame_locals_address): Delete function.
4146 (hppa_gdbarch_init): Do not set frame_args_address, or
4147 frame_locals_address.
4148 * arm-tdep.c (arm_frame_args_address): Delete.
4149 (arm_frame_locals_address): Delete.
4150 (arm_gdbarch_init): Do not set frame_args_address, or
4151 frame_locals_address.
4152
983a287a
AC
41532003-06-09 Andrew Cagney <cagney@redhat.com>
4154
4155 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4156 * gdbarch.h, gdbarch.c: Re-generate.
4157 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4158 * arch-utils.c (frame_num_args_unknown): Delete function.
4159 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4160 (frame_info): Use FRAME_NUM_ARGS_P.
4161 * arm-tdep.c (arm_frame_num_args): Delete function.
4162 (arm_gdbarch_init): Do not set frame_num_args.
4163 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4164 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4165 (hppa_gdbarch_init): Do not set frame_num_args.
4166 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4168 frame_num_args to default frame_num_args_unknown.
4169 * v850-tdep.c (v850_gdbarch_init): Ditto.
4170 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4171 * sh-tdep.c (sh_gdbarch_init): Ditto.
4172 * s390-tdep.c (s390_gdbarch_init): Ditto.
4173 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4174 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4175 * mips-tdep.c (mips_gdbarch_init): Ditto.
4176 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4177 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4179 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4180 * i386-tdep.c (i386_gdbarch_init): Ditto.
4181 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4182 * frv-tdep.c (frv_gdbarch_init): Ditto.
4183 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4184 * cris-tdep.c (cris_gdbarch_init): Ditto.
4185 * avr-tdep.c (avr_gdbarch_init): Ditto.
4186 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4187
8d3b0994
AC
41882003-06-09 Andrew Cagney <cagney@redhat.com>
4189
4190 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4191 (print_frame_args): Moved to "stack.c".
4192 * stack.c: Include "gdb_assert.h".
4193 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4194 (print_frame_args): Moved from "printcmd.c".
4195 * frame.h (print_frame_args): Delete declaration.
4196 * Makefile.in (stack.o): Update dependencies.
4197
25e3a86b
AC
41982003-06-08 Andrew Cagney <cagney@redhat.com>
4199
4200 * frame.c (get_prev_frame): Remove reference to
4201 frame_args_address_correct in comments.
4202 * frame-base.c (default_frame_args_address): Delete code
4203 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4204 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4205 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4206 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4207 (vax_frame_args_address_correct): Delete declaration.
4208
a9e5fdc2
AC
42092003-06-08 Andrew Cagney <cagney@redhat.com>
4210
4211 * gdbarch.sh (UNWIND_SP): Add.
4212 * gdbarch.h, gdbarch.c: Re-generate.
4213 * frame.c (frame_sp_unwind): New function.
4214 (get_frame_sp): New function.
4215 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4216 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4217 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4218 value.
4219 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4220 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4221
8983bd83
AC
42222003-06-08 Andrew Cagney <cagney@redhat.com>
4223
7fec2c59
AC
4224 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4225 REMOTE_BREAKPOINT.
4226 * remote.c: Update.
4227 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4228 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4229 * config/m68k/tm-sun3.h: Update.
4230 * config/m68k/tm-m68klynx.h: Update.
4231 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4232
8983bd83
AC
4233 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4234 trad_frame". Update comments.
4235 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4236 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4237 (trad_frame_register_value, trad_frame_prev_register): Update.
4238
b9362cc7
AC
42392003-06-08 Andrew Cagney <cagney@redhat.com>
4240
4241 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4242 from GCC's acinclude.m4.
4243 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4244 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4245 * main.c (error_init): Delete declaration.
4246 * defs.h (error_init): Declare.
4247 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4248 (rs6000_convert_from_func_ptr_addr): Make static.
4249 (_initialize_rs6000_tdep): Add declaration.
4250 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4251 (show_commands, set_verbose, show_history): Delete declaration.
4252 * top.h (set_verbose): Add declaration.
4253 (show_history, set_history, show_commands): Add declaration.
4254 (do_restore_instream_cleanup): Add declaration.
4255 * objc-lang.c (specialcmp): Make static.
4256 (print_object_command): Make static.
4257 (find_objc_msgsend): Make static.
4258 (find_objc_msgcall_submethod_helper): Make static.
4259 (find_objc_msgcall_submethod): Make static.
4260 (_initialize_objc_language): Add declaration.
4261 (find_implementation_from_class): Make static.
4262 (find_implementation): Make static.
4263 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4264 * objc-lang.h (lookup_struct_typedef): Add declaration.
4265 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4266 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4267 (do_restore_user_call_depth): Make static.
4268 (do_restore_instream_cleanup): Delete declaration.
4269 (dont_repeat): Delete declaration.
4270 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4271 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4272 * reggroups.c (_initialize_reggroup): Add declaration.
4273 * cp-support.c (_initialize_cp_support): Add declaration.
4274 * cp-abi.c (_initialize_cp_abi): Add declaration.
4275 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4276 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4277 (_initialize_gnu_v3_abi): Add declaration.
4278 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4279 (_initialize_gnu_v2_abi): Add declaration.
4280 * frame-base.c (_initialize_frame_base): Add declaration.
4281 * doublest.c (floatformat_from_length): Make static.
4282 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4283 * frame.c (create_sentinel_frame): Make static.
4284 (_initialize_frame): Add declaration.
4285 * top.c (do_catch_errors): Make static.
4286 (gdb_rl_operate_and_get_next_completion): Make static.
4287 * typeprint.c: Include "typeprint.h".
4288 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4289 (sentinel_frame_this_id): Make static.
4290 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4291 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4292 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4293 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4294 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4295 * maint.c (maintenance_print_architecture): Make static.
4296 * signals/signals.c (_initialize_signals): Add declaration.
4297 * std-regs.c (_initialize_frame_reg): Add declaration.
4298 * jv-exp.y (push_variable): ISO C definition.
4299 (push_qualified_expression_name): Ditto.
4300 * memattr.c (_initialize_mem): Add declaration.
4301 * remote.c (remote_check_watch_resources): Make static.
4302 (remote_stopped_by_watchpoint): Make static.
4303 (remote_stopped_data_address): Make static.
4304 * d10v-tdep.c (nr_dmap_regs): Make static.
4305 (a0_regnum): Make static.
4306 (d10v_frame_unwind_cache): Make static.
4307 (d10v_frame_p): Make static.
4308 * osabi.c (show_osabi): Make static.
4309 (_initialize_gdb_osabi): Add extern declaration.
4310 * gdbtypes.c (make_qualified_type): Make static.
4311 (safe_parse_type): Make static.
4312 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4313 * macrotab.c (macro_bcache_free): Make static.
4314 * interps.c (interp_set_quiet): Make static.
4315 (interpreter_exec_cmd): Make static.
4316 * stack.h (select_frame_command): New file.
4317 * stack.c: Include "stack.h".
4318 (select_frame_command_wrapper): Delete function.
4319 (select_frame_command): Make global.
4320 * infcall.c: Include "infcall.h".
4321 * linespec.c: Include "linespec.h".
4322 * symfile.c (sections_overlap): Make static.
4323 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4324 * charset.c (_initialize_charset): Add missing prototype.
4325 * regcache.c (init_legacy_regcache_descr): Make static.
4326 (do_regcache_xfree): Make static.
4327 (regcache_xfer_part): Make static.
4328 (_initialize_regcache): Add missing prototype.
4329 * breakpoint.c (parse_breakpoint_sals): Make static.
4330 (breakpoint_sals_to_pc): Make static.
4331 * interps.h (clear_interpreter_hooks): ISO C declaration.
4332 * Makefile.in (stack_h): Define.
4333 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4334 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4335
a0f267c7
AC
43362003-06-08 Andrew Cagney <cagney@redhat.com>
4337
4338 * Makefile.in (d10v-tdep.o): Update dependencies.
4339 (SFILES): Add trad-frame.c.
4340 (trad_frame_h): Define.
4341 (COMMON_OBS): Add trad-frame.o.
4342 (trad-frame.o): Specify dependencies.
4343 * d10v-tdep.c: Include "trad-frame.h".
4344 (saved_regs_unwinder): Delete function.
4345 (d10v_frame_prev_register): Use trad_frame_prev_register.
4346 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4347 trad_frame", delete "regs" and "prev_sp".
4348 (prologue_find_regs): Use trad-frame.
4349 * trad-frame.h, trad-frame.c: New files.
4350
4538b4f4
MK
43512003-06-08 Mark Kettenis <kettenis@gnu.org>
4352
4353 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4354
a0273b2f
AF
43552003-06-07 Adam Fedor <fedor@gnu.org>
4356
4357 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4358 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4359 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4360 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4361 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4362 Use it.
4363
3a6c3343
AC
43642003-06-07 Andrew Cagney <cagney@redhat.com>
4365
4366 * symfile.h: Re-indent, clean up comments.
4367
b46e02f6
AC
43682003-06-07 Andrew Cagney <cagney@redhat.com>
4369
4370 * inferior.h (deprecated_write_sp): Replace
4371 generic_target_write_sp.
4372 * regcache.c (deprecated_write_sp): Replace
4373 generic_target_write_sp.
4374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4375 * vax-tdep.c (vax_gdbarch_init): Update.
4376 * v850-tdep.c (v850_gdbarch_init): Update.
4377 * sparc-tdep.c (sparc_gdbarch_init): Update.
4378 * sh-tdep.c (sh_gdbarch_init): Update.
4379 * s390-tdep.c (s390_gdbarch_init): Update.
4380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4381 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4382 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4383 * mcore-tdep.c (mcore_gdbarch_init): Update.
4384 * m68k-tdep.c (m68k_gdbarch_init): Update.
4385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4386 * ia64-tdep.c (ia64_gdbarch_init): Update.
4387 * h8300-tdep.c (h8300_gdbarch_init): Update.
4388 * frv-tdep.c (frv_gdbarch_init): Update.
4389 * cris-tdep.c (cris_gdbarch_init): Update.
4390 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4391
a42e117c
AC
43922003-06-07 Andrew Cagney <cagney@redhat.com>
4393
4394 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4395 Assert that PC_REGNUM is valid.
4396 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4397
bd1ce8ba
AC
43982003-06-07 Andrew Cagney <cagney@redhat.com>
4399
4400 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4401 * gdbarch.h, gdbarch.c: Regenerate.
4402 * mn10300-tdep.c: Include "gdb_assert.h".
4403 (mn10300_read_fp): New function.
4404 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4405 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4406 * ia64-tdep.c: Include "gdb_assert.h".
4407 (ia64_read_fp): New function.
4408 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4409 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4410 * regcache.c (generic_target_read_sp): Delete function.
4411 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4412 * inferior.h (generic_target_read_sp): Delete declaration.
4413 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4414 generic_target_read_sp.
4415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4416 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4417 * sh-tdep.c (sh_gdbarch_init): Ditto.
4418 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4419 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4420
ec5cbaec
AC
44212003-06-07 Andrew Cagney <cagney@redhat.com>
4422
4423 * gdbarch.sh: Comment each field of startup_gdbarch.
4424 * gdbarch.h, gdbarch.c: Re-generate.
4425
cde9ea48
AC
44262003-06-07 Andrew Cagney <cagney@redhat.com>
4427
4428 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4429 * gdbarch.h, gdbarch.c: Re-generate.
4430 * regcache.c: Update comments on read_pc et.al.
4431 (generic_target_read_pc): Delete function.
4432 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4433 * inferior.h (generic_target_read_pc): Delete declaration.
4434 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4435 generic_target_read_pc.
4436 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4437 * sh-tdep.c (sh_gdbarch_init): Ditto.
4438 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4440
9a90a780
AC
44412003-06-07 Andrew Cagney <cagney@redhat.com>
4442
4443 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4444 "index" with "special_local_sect". Use strcmp instead of STREQ.
4445 Append period to coments.
4446
a39a16c4
MM
44472003-06-06 Mark Mitchell <mark@codesourcery.com>
4448
4449 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4450 (elfstab_offset_sections): Likewise.
4451 * gdb-stabs.h (stab_section_info): Likewise.
4452 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4453 * objfiles.c (objfile_relocate): Likewise.
4454 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4455 * remote.c (get_offsets): Likewise.
4456 (remote_cisco_objfile_relocate): Likewise.
4457 * somread.c (som_symfile_offsets): Likewise.
4458 * symfile.c (alloc_section_addr_info): New function.
4459 (build_section_addr_info_from_section_tab): Use it.
4460 (free_section_addr_info): Adjust.
4461 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4462 (syms_from_objfile): Allocate local_addr dynamically.
4463 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4464 dynamically.
4465 (add_symbol_file_command): Allocate sect_opts dynamically.
4466 (reread_symbols): Avoid use of SECT_OFF_MAX.
4467 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4468 (alloc_section_addr_info): Declare it.
4469 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4470 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4471 dynamically.
4472 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4473
20c6c2f8
AC
44742003-06-06 Andrew Cagney <cagney@redhat.com>
4475
4476 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4477 (d10v_frame_unwind_cache): Do not set "return_pc".
4478
884a26c8
MS
44792003-06-06 Michael Snyder <msnyder@redhat.com>
4480
4481 * h8300-tdep.c: Make tidy (long lines).
4482
088ce440
ML
44832003-06-06 Michal Ludvig <mludvig@suse.cz>
4484
8ffd9b1b 4485 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4486 to regcache_collect().
4487
7d773d96
JB
44882003-06-05 J. Brobecker <brobecker@gnat.com>
4489
4490 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4491 pc_in_sigtramp multiarch method.
4492 (hppa_hpux_som_init_abi): Use it.
4493 (hppa_hpux_elf_init_abi): Likewise.
4494 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4495 macro has been multiarched.
4496 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4497 macro here, as hppa64 isn't multiarched yet.
4498
1df6926e
AC
44992003-06-05 Andrew Cagney <cagney@redhat.com>
4500
4501 * Makefile.in (value_h): Add $(frame_h).
4502 * value.h: Include "frame.h".
4503 (struct value): Replace "frame_addr" with "frame_id".
4504 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4505 * values.c (allocate_value): Use VALUE_FRAME_ID.
4506 (value_copy): Use VALUE_FRAME_ID.
4507 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4508 * valops.c (value_assign): Update. Use frame_find_by_id.
4509
6b53acc6
ML
45102003-06-05 Michal Ludvig <mludvig@suse.cz>
4511
4512 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4513 in each pass.
4514
4d9850d3
JJ
45152003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4516
4517 * thread-db.c (check_event): For create/death event breakpoints,
4518 loop through all messages to ensure that we read the message
4519 corresponding to the breakpoint we are at.
4520
8efca6ba
MS
45212003-06-04 Michael Snyder <msnyder@redhat.com>
4522
4523 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4524
0912c7f2
MK
45252003-06-04 Mark Kettenis <kettenis@gnu.org>
4526
4527 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4528 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4529 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4530 when handling .eh_frame sections.
4531
4e370325
JB
45322003-06-04 J. Brobecker <brobecker@gnat.com>
4533
4534 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4535 prepare_to_proceed procedure instead of the hppa-specific one.
4536 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4537
b757528f 45382003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4539
b757528f
JJ
4540 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4541 * config.in: Regenerated.
4542 * configure.in: Add test for syscall function and check for
4543 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4544 * configure: Regenerated.
4545 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4546 <sys/syscall.h>.
4547 (kill_lwp): New function that uses tkill syscall or
4548 uses kill, depending on whether threading model is nptl or not.
4549 All callers of kill() changed to use kill_lwp().
4550 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4551 see if all threads have already exited in the nptl model.
4552 (stop_and_resume_callback): New callback function used by the
4553 lin_lwp_wait thread exit handling code.
4554 (stop_wait_callback): Check for threads already having exited and
4555 delete such threads fromt the lwp list when discovered.
4556 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4557
b757528f
JJ
4558 Roland McGrath <roland@redhat.com>
4559 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4560 nptl libthread_db.
4561
087779b1
RH
45622003-06-03 Richard Henderson <rth@redhat.com>
4563
b21fd293
RH
4564 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4565 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4566 (alpha_sigtramp_frame_prev_register): Likewise.
4567 (alpha_heuristic_frame_prev_register): Likewise.
4568 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4569
8ffd9b1b 4570 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4571 alpha-specific register id names.
4572 (alpha_mdebug_frame_unwind_cache): Likewise.
4573 (alpha_mdebug_frame_prev_register): Likewise.
4574
baa490c4
RH
45752003-06-03 Richard Henderson <rth@redhat.com>
4576
4577 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4578 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4579 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4580 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4581 unwind routines.
4582 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4583 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4584 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4585
4586 * alpha-linux-tdep.c: Remove unnecessary includes.
4587 * Makefile.in (alpha-linux-tdep.o): Update.
4588
45892003-06-03 Richard Henderson <rth@redhat.com>
4590
4591 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4592 (alphabsd_fill_fpreg): Likewise.
4593
f534e522
JB
45942003-06-03 J. Brobecker <brobecker@gnat.com>
4595
4596 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4597 references to struct frame_info fields by calls to the equivalent
4598 accessors. Necessary now that frame_info is opaque.
4599
4035536b
JB
46002003-06-03 J. Brobecker <brobecker@gnat.com>
4601
4602 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4603 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4604 structure, field no longer exists.
4605
0bd79c5c
JB
46062003-06-03 J. Brobecker <brobecker@gnat.com>
4607
4608 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4609 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4610
37bb6d9f
JB
46112003-06-03 J. Brobecker <brobecker@gnat.com>
4612
4613 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4614 references to struct frame_info fields by calls to the equivalent
4615 accessors. Necessary now that frame_info is opaque.
4616
852ee05c
JB
46172003-06-03 J. Brobecker <brobecker@gnat.com>
4618
4619 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4620 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4621 structure, field no longer exists.
4622
7d58c67d
TR
46232003-06-03 Theodore A. Roth <troth@openavr.org>
4624
8ffd9b1b 4625 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4626 accumulation of the size of all registers instead of blindly using
4627 DEPRECATED_REGISTER_BYTES.
4628
0a48e7e8
MS
46292003-06-03 Michael Snyder <msnyder@redhat.com>
4630
4631 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4632 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4633 for h8300sx.
4634
9798ab0d
JB
46352003-06-03 J. Brobecker <brobecker@gnat.com>
4636
4637 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4638 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4639
00b037e2
AC
46402003-06-03 Andrew Cagney <cagney@redhat.com>
4641
4642 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4643 (sparc_convert_to_raw): Delete function.
4644 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4645 register_convert_to_virtual.
4646
043b2f77
JJ
46472003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4648
4649 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4650 layer if not dealing with a statically-linked threaded program.
4651
f43caff8
KW
46522003-06-03 Kris Warkentin <kewarken@qnx.com>
4653
4654 * solib.c (solib_open): Update comment to reflect actual search order.
4655
ae1e7417
AC
46562003-06-03 Andrew Cagney <cagney@redhat.com>
4657
4658 * frame.c (get_frame_memory_signed): New function.
4659 (get_frame_memory, get_frame_memory_unsigned): New function.
4660 (get_frame_arch): New function.
4661 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4662 (get_frame_memory, get_frame_unsigned_memory): Declare.
4663 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4664 get_frame_memory_unsigned and get_frame_arch.
4665 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4666
cb123844
RG
46672003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4668
4669 * MAINTAINERS (write after approval): Add myself.
4670
1bb792e9
JB
46712003-06-03 Jim Blandy <jimb@redhat.com>
4672
4673 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4674 elements of gregset_t are 64 bits each, but access registers
4675 are still 32 bits, so they're packed two per gregset_t
4676 element. Unpack/pack them properly.
4677
aee8d8ba
DC
46782003-06-02 David Carlton <carlton@bactrian.org>
4679
4680 * linespec.c (find_methods): Break out code into
4681 add_matching_methods and add_constructors.
4682 (add_matching_methods): New.
4683 (add_constructors): Ditto.
4684
bf7488d2
AC
46852003-06-02 Andrew Cagney <cagney@redhat.com>
4686
bf7488d2
AC
4687 * sparc-tdep.c (sparc_print_registers): Delete call to
4688 REGISTER_CONVERTIBLE.
4689 (sparc_gdbarch_init): Do not set register_convertible.
4690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4691 * frv-tdep.c (frv_gdbarch_init): Ditto.
4692 * cris-tdep.c (cris_gdbarch_init): Ditto.
4693
adedef68
EZ
46942003-06-02 Elena Zannoni <ezannoni@redhat.com>
4695
8ffd9b1b 4696 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4697 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4698 (syms_from_objfile): Ditto.
4699
650fcc91
AS
47002003-06-03 Andreas Schwab <schwab@suse.de>
4701
4702 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4703 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4704
df4a182b
RH
47052003-06-02 Richard Henderson <rth@redhat.com>
4706
4707 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4708 a member of all_reggroup.
4709
c483c494
RH
47102003-06-02 Richard Henderson <rth@redhat.com>
4711
4712 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4713 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4714 (alpha_lds, alpha_sts): New.
4715 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4716 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4717 restructure and fail for type sizes other than 4 or 8.
4718 (alpha_value_to_register): Similarly.
4719 (alpha_extract_return_value): Use alpha_sts.
4720 (alpha_store_return_value): Use alpha_lds.
4721 (alpha_gdbarch_init): Update hooks.
4722
b38b6be2
RH
47232003-06-02 Richard Henderson <rth@redhat.com>
4724
4725 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4726 regnum identifiers.
4727 (alpha_sigtramp_register_address): Likewise.
4728
98a8e1e5
RH
47292003-06-02 Richard Henderson <rth@redhat.com>
4730
4731 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4732 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4733 * alpha-tdep.h: Declare them.
4734
4735 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4736 Remove zerobuf. Don't error on UNIQUE.
4737 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4738 (ALPHA_REGSET_UNIQUE): Provide default.
4739 (supply_gregset): Use alpha_supply_int_regs.
4740 (fill_gregset): Use alpha_fill_int_regs.
4741 (supply_fpregset): Use alpha_supply_fp_regs.
4742 (fill_fpregset): Use alpha_fill_fp_regs.
4743 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4744 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4745 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4746 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4747 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4748 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4749
67dfac52
RH
47502003-06-02 Richard Henderson <rth@redhat.com>
4751
f75d70cc
RH
4752 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4753
67dfac52
RH
4754 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4755 (alpha_store_return_value): Likewise.
4756
0cf566ec
DC
47572003-06-02 David Carlton <carlton@math.stanford.edu>
4758
4759 * block.c (contained_in): Add 'const' to arguments.
4760 (block_function): Ditto.
4761 * block.h: Update declarations for block_function and
4762 contained_in.
4763
cdef89d0
DC
47642003-06-02 David Carlton <carlton@math.stanford.edu>
4765
4766 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4767 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4768 * p-valprint.c (pascal_val_print): Ditto.
4769 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4770
72667056
RH
47712003-06-02 Richard Henderson <rth@redhat.com>
4772
98a8e1e5
RH
4773 * alpha-tdep.c (alpha_push_dummy_call): Use
4774 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4775
8ffd9b1b 4776 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4777 sign-extension of 32-bit values.
4778 (alpha_store_return_value): Similarly.
0ede8eca 4779
98a8e1e5
RH
4780 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4781 (alpha_extract_return_value): Likewise.
4782 (alpha_store_return_value): Likewise.
7b5e1cb3 4783
98a8e1e5
RH
4784 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4785 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4786
98a8e1e5
RH
4787 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4788 (alpha_extract_struct_value_address): Likewise.
4789 (alpha_store_return_value): Likewise.
4790 (alpha_store_struct_return): Remove.
4791 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4792
98a8e1e5
RH
4793 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4794 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4795 macros where appropriate.
4796 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4797 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4798
98a8e1e5
RH
4799 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4800 for SP, GP; void_func_ptr for PC; non-language-specific types
4801 for all others.
4802 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4803
6dd77b81
RH
48042003-06-02 Richard Henderson <rth@redhat.com>
4805
4806 * top.h (lim_at_start): Declare.
4807 * main.c (captured_main): Set it.
4808 * top.c (lim_at_start): Define.
4809 (command_loop): Use it instead of &environ.
4810 * event-top.c (command_handler): Likewise.
4811
f4dbdb54
JT
48122003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4813
4814 * mipsnbsd-tdep.c: Update copyright years.
4815 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4816
8f285956
RH
48172003-06-01 Richard Henderson <rth@redhat.com>
4818
98a8e1e5
RH
4819 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4820 (alpha-linux-tdep.o): Update dependencies.
4821 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4822 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4823
615967cb
RH
48242003-06-01 Richard Henderson <rth@redhat.com>
4825
98a8e1e5
RH
4826 * alpha-tdep.c (alpha_register_reggroup_p): New.
4827 (alpha_gdbarch_init): Register it.
615967cb 4828
b59661bd
AC
48292003-06-02 Andrew Cagney <cagney@redhat.com>
4830
4831 * dwarfread.c: Eliminate "register"
4832 (decode_die_type): Eliminate assignment within "if".
4833 (struct_type, decode_array_element_type): Ditto.
4834 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4835 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4836 (decode_modified_type, completedieinfo): Ditto.
4837 * block.c: Eliminate "register".
4838 (blockvector_for_pc_sect): Eliminate assignment within "if".
4839 * cp-support.h (struct symbol): Opaque declaration.
4840 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4841
5ef165c2
RH
48422003-06-01 Richard Henderson <rth@redhat.com>
4843
98a8e1e5
RH
4844 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4845 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4846
143985b7
AF
48472003-06-01 Adam Fedor <fedor@gnu.org>
4848
4849 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4850 * gdbarch.[ch]: Regenerate.
4851 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4852 (hppa_gdbarch_init): Set it in the gdbarch vector.
4853 * i386-tdep.c (i386_fetch_pointer_argument): New
4854 (i386_gdbarch_init): Set it into gdbarch.
4855 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4856 (rs6000_gdbarch_init): Set it in gdbarch.
4857 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4858 (sparc_gdbarch_init): Set it in gdbarch.
4859
ae0167b9
AC
48602003-06-01 Andrew Cagney <cagney@redhat.com>
4861
7c0b4a20
AC
4862 * defs.h (extract_address): Delete declaration.
4863 * findvar.c (extract_address): Delete function.
4864 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4865 extract_address with the inline equivalent,
4866 extract_unsigned_integer.
4867 (xstormy16_extract_struct_value_address): Ditto.
4868 (xstormy16_pointer_to_address): Ditto.
4869 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4870 * v850-tdep.c (v850_push_arguments): Ditto.
4871 (v850_extract_return_value): Ditto.
4872 (v850_extract_struct_value_address): Ditto.
4873 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4874 (sparcnbsd_get_longjmp_target_64): Ditto.
4875 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4876 (get_longjmp_target): Ditto.
4877 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4878 (sh64_extract_struct_value_address): Ditto.
4879 (sh_push_arguments): Ditto.
4880 (sh64_push_arguments): Ditto.
4881 * remote-vxsparc.c (vx_read_register): Ditto.
4882 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4883 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4884 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4885 * mipsv4-nat.c (get_longjmp_target): Ditto.
4886 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4887 * mips-nat.c (get_longjmp_target): Ditto.
4888 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4889 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4890 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4891 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4892 * irix5-nat.c (get_longjmp_target): Ditto.
4893 * irix4-nat.c (get_longjmp_target): Ditto.
4894 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4895 (ia64_push_arguments): Ditto.
4896 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4897 * h8300-tdep.c (h8300_push_arguments): Ditto.
4898 (h8300_store_return_value): Ditto.
4899 (h8300_extract_struct_value_address): Ditto.
4900 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4901 (frv_push_arguments): Ditto.
4902 * avr-tdep.c (avr_pointer_to_address): Ditto.
4903 (avr_push_arguments): Ditto.
4904 * arm-tdep.c (arm_push_dummy_call): Ditto.
4905 (arm_get_longjmp_target): Ditto.
4906 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4907 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4908 (alpha_get_longjmp_target): Ditto.
4909
ae0167b9
AC
4910 * solib-irix.c (extract_mips_address): Inline extract_address,
4911 replacing it with extract_signed_integer.
4912 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4913 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4914 (first_link_map_member, open_symbol_file_object): Ditto.
4915 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4916 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4917 (LM_NEXT, LM_NAME): Ditto.
4918
44d88583
RH
49192003-06-01 Richard Henderson <rth@redhat.com>
4920
98a8e1e5
RH
4921 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4922 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4923 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4924 (alpha_cannot_store_register): Likewise.
4925 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4926 * alpha-nat.c (supply_gregset): Likewise.
4927 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4928
310e9b6a
AC
49292003-06-01 Andrew Cagney <cagney@redhat.com>
4930
4931 * infcall.c (call_function_by_hand): Update comment on
4932 DEPRECATED_DUMMY_WRITE_SP.
4933
4934 * mips-tdep.c (mips_gdbarch_init): Do not set
4935 deprecated_dummy_write_sp.
4936 (mips_eabi_push_dummy_call): Set the SP register.
4937 (mips_o64_push_dummy_call): Set the SP register.
4938 (mips_o32_push_dummy_call): Set the SP register.
4939 (mips_n32n64_push_dummy_call): Set the SP register.
4940
5ab84872
RH
49412003-06-01 Richard Henderson <rth@redhat.com>
4942
98a8e1e5
RH
4943 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4944 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4945 (supply_gregset): Likewise.
4946 * alpha-tdep.c (alpha_store_return_value): Likewise.
4947 (alpha_get_longjmp_target): Likewise.
4948 (alpha_register_name): Constify array.
4949 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4950 deprecated_register_size, deprecated_register_bytes,
4951 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4952 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4953 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4954
09cc52fd
RH
49552003-06-01 Richard Henderson <rth@redhat.com>
4956
4957 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4958 from arg_reg_buffer to regcache to avoid double conversion.
4959
c7f16359
MK
49602003-06-01 Mark Kettenis <kettenis@gnu.org>
4961
4962 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4963 SP_REGNUM.
4964 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4965 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4966
7131cb6e
RH
49672003-06-01 Richard Henderson <rth@redhat.com>
4968
98a8e1e5
RH
4969 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4970 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4971
f3e0f90b
RH
49722003-06-01 Richard Henderson <rth@redhat.com>
4973
98a8e1e5
RH
4974 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4975 not overlapping PC_REGNUM.
f3e0f90b 4976
c88e30c0
RH
49772003-06-01 Richard Henderson <rth@redhat.com>
4978
98a8e1e5
RH
4979 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4980 alpha_push_arguments. Don't dump argument register data to
4981 the target stack. Fix float and 128-bit long double semantics.
4982 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4983 (alpha_fix_call_dummy): Remove.
4984 (alpha_call_dummy_words): Remove.
4985 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4986
f1a559ae
RH
49872003-06-01 Richard Henderson <rth@redhat.com>
4988
4989 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4990
5e045346
AC
49912003-06-01 Andrew Cagney <cagney@redhat.com>
4992
95404a3e
AC
4993 * mips-tdep.c (is_mips16_addr): New function.
4994 (make_mips16_addr, unmake_mips16_addr): New functions.
4995 (pc_is_mips16, mips_fetch_instruction): Use.
4996 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4997 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4998 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4999 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5000 TARGET_MIPS.
5001 * config/mips/tm-mips.h: Update copyright.
5002 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5003 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5004 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5005 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5006 (TM_PRINT_INSN_MACH): Delete.
5007 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5008
5e045346
AC
5009 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5010 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5011 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5012 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5013 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5014 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5015 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5016 mips*-*-riscos* and mips*-*-sysv* onto mips.
5017 * config/mips/mips64.mt: New file.
5018 * config/mips/mips.mt: New file.
5019 * config/mips/littlemips.mt: Delete file.
5020 * config/mips/decstation.mt: Delete file.
5021 * config/mips/vr4300el.mt: Delete file.
5022 * config/mips/vr5000el.mt: Delete file.
5023 * config/mips/vr5000.mt: Delete file.
5024 * config/mips/vr4100.mt: Delete file.
5025 * config/mips/vr4xxxel.mt: Delete file.
5026 * config/mips/vr4300.mt: Delete file.
5027 * config/mips/vr4xxx.mt: Delete file.
5028 * config/mips/bigmips.mt: Delete file.
5029 * config/mips/bigmips64.mt: Delete file.
5030 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5031 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5032 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5033 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5034 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5035 "tm-bigmips.h".
5036 * config/mips/tm-irix3.h: Ditto.
5037 * config/mips/tm-mipsv4.h: Ditto.
5038 * config/mips/tm-embed.h: Ditto.
5039 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5040 "tm-bigmips64.h".
5041 * config/mips/tm-vr5000el.h: Delete file.
5042 * config/mips/tm-tx39l.h: Delete file.
5043 * config/mips/tm-vr4300el.h: Delete file.
5044 * config/mips/tm-vr4xxxel.h: Delete file.
5045 * config/mips/tm-vr4300.h: Delete file.
5046 * config/mips/tm-vr4100.h: Delete file.
5047 * config/mips/tm-vr4xxx.h: Delete file.
5048 * config/mips/tm-vr5000.h: Delete file.
5049 * config/mips/tm-embedl64.h: Delete file.
5050 * config/mips/tm-embedl.h: Delete file.
5051 * config/mips/tm-embed64.h: Delete file.
5052 * config/mips/tm-bigmips64.h: Delete file.
5053 * config/mips/tm-bigmips.h: Delete file.
5054
2473a4a9
MK
50552003-06-01 Mark Kettenis <kettenis@gnu.org>
5056
97a5b208
MK
5057 Fix gdb/1216.
5058 * shnbsd-nat.c: Include "sh-tdep.h".
5059
2473a4a9
MK
5060 From Richard Henderson <rth@redhat.com>:
5061 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5062
e0f7ec59
AC
50632003-05-31 Andrew Cagney <cagney@redhat.com>
5064
5065 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5066 forward declaration.
5067 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5068 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5069 (mips_find_saved_regs): Use set_reg_offset.
5070 (mips_frame_init_saved_regs): Delete function.
5071 (mips_pop_frame): Call mips_find_saved_regs instead of
5072 DEPRECATED_FRAME_INIT_SAVED_REGS.
5073
68dcc709
AC
50742003-05-31 Andrew Cagney <cagney@redhat.com>
5075
5076 * mips-tdep.c (mips_gdbarch_init): Do not set
5077 deprecated_max_register_raw_size, register_virtual_size, and
5078 deprecated_max_register_virtual_size.
5079
cfc14b3a
MK
50802003-05-31 Mark Kettenis <kettenis@gnu.org>
5081
6405b0a6
MK
5082 * i386-tdep.c: Include "dwarf2-frame.h".
5083 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5084 * Makefile.in (i386-tdep.o): Update dependencies.
5085
cfc14b3a
MK
5086 * dwarf2-frame.c, dwarf2-frame.h: New files.
5087 * Makefile.in (SFILES): Add dwarf2-frame.c.
5088 (dwarf2_frame_h): Define.
5089 (COMMON_OBS): Add dwarf2-frame.o.
5090 (dwarf2-frame.o): Add dependencies.
5091
6a2751d2
AJ
50922003-05-31 Andreas Jaeger <aj@suse.de>
5093
5094 * x86-64-linux-nat.c: Fix comment.
5095
1c3545ae
MK
50962003-05-31 Mark Kettenis <kettenis@gnu.org>
5097
10f93086
MK
5098 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5099 function signature.
5100
1c3545ae
MK
5101 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5102 have a sigcontext_addr handler.
5103 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5104 sigcontext_addr handler.
5105
e11c53d2
AC
51062003-05-31 Andrew Cagney <cagney@redhat.com>
5107
5108 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5109 (print_fp_register_row): Replace do_fp_register_row.
5110 (mips_print_fp_register): Add "file" and "frame" parameters.
5111 (mips_print_register): Add "file" and "frame" parameters.
5112 (mips_print_registers_info): Replace mips_do_registers_info.
5113 (mips_gdbarch_init): Set print_registers_info instead of
5114 deprecated_do_registers_info.
5115 (mips_read_fp_register_single): Add "frame" parameter.
5116 (mips_read_fp_register_double): Add "frame" parameter.
5117
a3386186
MK
51182003-05-31 Mark Kettenis <kettenis@gnu.org>
5119
70913449
MK
5120 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5121 Fixes a bug where GDB would print the wrong register names for
5122 targets without SSE.
5123
2b5e0749
MK
5124 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5125 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5126 registers.
5127
5128 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5129 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5130 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5131 TDEP->sc_sp_offset.
5132
a3386186
MK
5133 From Michal Ludvig <mludvig@suse.cz>:
5134 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5135 and `sc_num_regs'.
5136 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5137 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5138 I386_ST0_REGNUM): Move here from...
5139 * i386-tdep.c: ... here.
5140 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5141 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5142 registers if possible.
5143 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5144 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5145 Remove variables.
5146 (i386bsd_sc_reg_offset): New variable.
5147 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5148 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5149 TDEP->sc_sp_offset.
5150 (i386fbsd_sc_reg_offset): New variable.
5151 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5152 TDEP->sc_num_regs.
5153 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5154 variables.
5155 (i386fbsd4_sc_reg_offset): New variable.
5156 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5157 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5158 TDEP->sc_sp_offset.
5159 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5160 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5161 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5162 Remove variables.
5163 (i386nbsd_sc_reg_offset): New variable.
5164 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5165 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5166 TDEP->sc_sp_offset.
5167 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5168 Remove variables.
5169 (i386obsd_sc_reg_offset): New variable.
5170 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5171 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5172 TDEP->sc_sp_offset.
5173 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5174 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5175 for frame pointer offset in `struct sigcontext'.
5176
25ab4790
AC
51772003-05-31 Andrew Cagney <cagney@redhat.com>
5178
5179 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5180 architecture methods call_dummy_words, sizeof_call_dummy_words,
5181 push_return_address, store_struct_return, and fix_call_dummy. Set
5182 push_dummy_call instead of deprecated_push_arguments.
5183 (mips_store_struct_return): Delete function.
5184 (mips_fix_call_dummy): Delete function.
5185 (mips_push_return_address): Delete function.
5186 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5187 RA_REGNUM and T9_REGNUM.
5188 (mips_n32n64_push_dummy_call): Ditto for
5189 mips_n32n64_push_arguments.
5190 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5191 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5192
6a65450a
AC
51932003-05-31 Andrew Cagney <cagney@redhat.com>
5194
5195 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5196 "dummy_addr" to "bp_addr".
5197 * infcall.c (call_function_by_hand): Pass "funaddr" to
5198 gdbarch_push_dummy_call.
5199 * gdbarch.h, gdbarch.c: Re-generate.
5200 * i386-tdep.c (i386_push_dummy_call): Update.
5201 * arm-tdep.c (arm_push_dummy_call): Update.
5202 * d10v-tdep.c (d10v_push_dummy_call): Update.
5203
c4f35dd8
MK
52042003-05-31 Mark Kettenis <kettenis@gnu.org>
5205
5206 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5207 variable declarations.
5208 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5209 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5210 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5211 x86_64_init_frame_pc, x86_64_init_frame_pc,
5212 x86_64_function_has_prologue): Remove prototypes.
5213 (X86_64_NUM_GREGS): New define.
5214 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5215 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5216 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5217 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5218 XMM1_REGNUM): Remove defines.
5219 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5220 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5221 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5222 X86_64_XMM1_REGNUM): New defines.
5223 (struct x86_64_register_info): Renamed from `struct
5224 register_info'. Remove `size' member.
5225 (x86_64_register_info_table): Remove variable.
5226 (x86_64_register_info): New variable.
5227 (X86_64_NUM_REGS): New define.
5228 (X86_64_NUM_GREGS): Remove define.
5229 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5230 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5231 Remove variables.
5232 (x86_54_dwarf2_reg_to_regnum): Remove function.
5233 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5234 (x86_64_dwarf_reg_to_regnum): New function.
5235 (x86_64_register_name): Rewrite.
5236 (x86_64_register_raw_size): Remove function.
5237 (x86_64_register_byte_table): Remove variable.
5238 (x86_64_register_byte): Remove function.
5239 (x86_64_register_virtual_type): Remove function.
5240 (x86_64_register_type): New function.
5241 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5242 x86_64_register_convert_to_raw): Remove functions.
5243 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5244 (x86_64_use_struct_convention): Make static. Adjust for renamed
5245 defines.
5246 (x86_64_frame_init_saved_regs): Remove function.
5247 (x86_64_push_arguments): Make static. Change to accept a regcache
5248 as argument.
5249 (x86_64_store_return_value, x86_64_extract_return_value): Make
5250 static. Rewrite based on i386 counterparts.
5251 (x86_64_push_dummy_call): New function.
5252 (X86_64_NUM_SAVED_REGS): New define.
5253 (x86_64_register_number): Remove function.
5254 (x86_64_store_struct_return): Remove function.
5255 (x86_64_frameless_function_invocation,
5256 x86_64_function_has_prologue): Remove functions.
5257 (PROLOG_BUFSIZE): Remove define.
5258 (struct x86_64_frame_cache): New structure.
5259 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5260 x86_64_frame_cache, x86_64_frame_this_id,
5261 x86_64_frame_prev_register, x86_64_frame_p,
5262 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5263 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5264 functions.
5265 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5266 variables.
5267 (x86_64_skip_prologue): Rewrite in terms of
5268 x86_64_analyze_prologue.
5269 (x86_64_frame_base_address): New function.
5270 (x86_64_frame_base): New variable.
5271 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5272 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5273 set deprecated_fp_regnum, deprecated_register_size,
5274 deprecated_register_bytes, register_raw_size, register_byte,
5275 register_virtual_type, register_convertiable,
5276 register_convert_to_virtual, convert_to_raw,
5277 deprecated_get_saved_register, deprecated_target_read_fp,
5278 deprecated_push_arguments, deprecated_push_return_address,
5279 deprecated_pop_frame, deprecated_store_struct_return,
5280 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5281 frameless_function_invocation, deprecated_frame_saved_pc,
5282 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5283 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5284 deprecated_init_frame_pc and virtual_frame_pointer. Call
5285 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5286 and x86_64_frame_p. Call frame_base_set_default to register
5287 x86_64_frame_base.
5288 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5289 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5290 (_initialize_x86_64_tdep): Remove function.
5291 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5292 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5293 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5294 define.
5295 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5296 (x86_64_linux_sigcontext_addr): Rewrite.
5297 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5298 x86_64_linux_frame_saved_pc): Remove functions.
5299 (x86_64_linux_pc_in_sigtramp): Renamed from
5300 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5301 trampoline.
5302 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5303 Remove_functions.
5304 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5305 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5306 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5307 (x86_64_regmap): Rename to regmap.
5308 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5309 x86_64_num_gregs.
5310 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5311 x86_64_regmap.
5312 (x86_64_fxsave_offset): Remove function.
5313 (supply_fpregset): Simply call x86_64_supply_fxsave.
5314 (fill_fpregset): Simply call x86_64_fill_fxsave.
5315 (fetch_inferior_registers, store_inferior_registers): Avoid
5316 asignment in if-statement.
5317 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5318 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5319 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5320 (fetch_core_registers): Remove function.
5321 (linux_elf_core_fns): Remove.
5322 (offsetoff): Don't define.
5323 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5324 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5325 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5326 add core-regset.o.
5327 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5328 protection against multiple includes instead of NM_X86_64_h. Add
5329 various comments. Include "config/nm-linux.h". Don't include
5330 <signal.h>.
5331 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5332 GET_THREAD_SIGNALS): Remove defines.
5333 (x86_64_register_u_addr, kernel_u_size,
5334 lin_thread_get_thread_signals): Remove prototypes.
5335 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5336 [HAVE_LINK_H]: Don't include "solib.h".
5337 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5338 * config/i386/tm-x86-64linux.h: Fix comments.
5339 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5340 x86-64-tdep.o): Update dependencies.
5341
c25083af
AC
53422003-05-30 Andrew Cagney <cagney@redhat.com>
5343
c8f55a7b
AC
5344 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5345 Change parameter type to a "struct regcache *".
5346
c25083af
AC
5347 * gdbarch.sh: Regardless of the multi-arch level, always define
5348 the macro when not already defined.
5349 * gdbarch.h, gdbarch.c: Re-generate.
5350
fbe586ae
RH
53512003-05-30 Richard Henderson <rth@redhat.com>
5352
5353 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5354 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5355 (alpha_mdebug_frame_this_id): Likewise.
5356 (alpha_mdebug_frame_prev_register): Likewise.
5357 (alpha_mdebug_frame_base_address): Likewise.
5358 (alpha_mdebug_frame_locals_address): Likewise.
5359 (alpha_mdebug_frame_args_address): Likewise.
5360 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5361 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5362 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5363 loop increment.
5364 (alpha_heuristic_frame_this_id): Make static.
5365 (alpha_heuristic_frame_prev_register): Likewise.
5366 (alpha_heuristic_frame_base_address): Likewise.
5367 * alpha-tdep.h: Update.
5368
acd5c798
MK
53692003-05-30 Mark Kettenis <kettenis@gnu.org>
5370
5371 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5372 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5373 defenitions.
5374 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5375 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5376 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5377 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5378 I386_ST0_REGNUM): New defines.
5379 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5380 codestream_get): Remove define.
5381 (codestream_next_addr, condestream_addr, condestream_buf,
5382 codestream_off, codestream_cnt): Remove variables.
5383 (codestream_fill, codestream_seek, codestream_read): Remove
5384 functions.
5385 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5386 functionality.
5387 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5388 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5389 i386_frame_saved_pc, i386_saved_pc_after_call,
5390 i386_frame_num_args, i386_frame_init_saved_regs,
5391 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5392 i386_push_arguments): Remove functions.
5393 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5394 functionality. Use i386_analyze_prologue instead of
5395 i386_get_frame_setup.
5396 (I386_NUM_SAVED_REGS): New define.
5397 (struct i386_frame_cache): New structure.
5398 (i386_alloc_frame_cache, i386_analyze_struct_return,
5399 i386_skip_probe, i386_analyze_frame_setup,
5400 i386_analyze_register_saves, i386_analyze_prologue,
5401 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5402 i386_frame_prev_register, i386_sigtramp_frame_cache,
5403 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5404 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5405 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5406 New functions.
5407 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5408 New variables.
5409 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5410 I386_EAX_REGNUM and I386_EDX_REGNUM.
5411 (i386_extract_return_value, i386_store_return_value): Use
5412 I386_ST0_REGNUM where appropriate.
5413 (i386_extract_struct_value_address): Rewrite to use extract_address.
5414 (i386_svr4_pc_in_sigtramp): Add comment.
5415 (i386_svr4_sigcontext_addr): Rewrite.
5416 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5417 TDEP->sc_sp_offset.
5418 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5419 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5420 of new defines. Set push_dummy_call, don't set
5421 deprecated_push_arguments, deprecated_push_return_address,
5422 deprecated_pop_frame. Don't set parm_boundary. Don't set
5423 deprecated_frame_chain, deprecated_frame_saved_pc,
5424 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5425 save_dummy_frame_tos, unwind_pc. Call
5426 frame_unwind_append_predicate and frame_base_set_default. Don't
5427 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5428 Don't set frameless_function_invocation. Don't set
5429 deprecated_register_bytes, deprecated_register_size,
5430 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5431 * i386-linux-tdep.c: Fix formatting in some comments.
5432 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5433 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5434 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5435 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5436 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5437 redundant parentheses.
5438 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5439 (i386_linux_sigcontext_addr): Use it. Rewrite.
5440 (find_minsym_and_objfile): Change name of second argument.
5441 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5442 changed. Use frame_pc_unwind instead of
5443 DEPRECATED_SAVED_PC_AFTER_CALL.
5444 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5445 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5446 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5447 unwinder.
5448 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5449 "dummy-frame.h".
5450 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5451 (_initialize_i386_cygwin_tdep): New prototype.
5452 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5453 deprecated_frame_chain_valid.
5454 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5455 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5456 Rely on the SVR4 defaults.
5457 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5458 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5459
c89b70f1
AC
54602003-05-30 Andrew Cagney <cagney@redhat.com>
5461
5462 * infcall.c (call_function_by_hand): Always call
5463 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5464
85b32d22
RH
54652003-05-30 Richard Henderson <rth@redhat.com>
5466
c89b70f1
AC
5467 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5468 increment.
85b32d22 5469
bfe51b1e
JB
54702003-05-29 Jim Blandy <jimb@redhat.com>
5471
5472 Use gdbarch methods for solib stuff on PowerPC Linux.
5473 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5474 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5475 show through.
5476 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5477 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5478 giving the same effect as the #definitions above.
5479
1abf022c
AF
54802003-05-29 Adam Fedor <fedor@gnu.org>
5481
5482 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5483 (find_implementation_from_class): Replace it with the standard
5484 case i.e. do nothing.
5485
d2427a71
RH
54862003-05-29 Richard Henderson <rth@redhat.com>
5487
5488 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5489 (alpha_linux_sigtramp_offset): Use it. Make static.
5490 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5491 update for new frame model.
5492 * alpha-mdebug-tdep.c: New file.
5493 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5494 (alpha_osf1_init_abi): Install it.
5495 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5496 (linked_proc_desc_table): Remove.
5497 (alpha_frame_past_sigtramp_frame): Remove.
5498 (alpha_dynamic_sigtramp_offset): Remove.
5499 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5500 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5501 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5502 (push_sigtramp_desc): Remove.
5503 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5504 (alpha_cannot_store_register): Likewise.
5505 (alpha_sigcontext_addr): Remove.
5506 (alpha_find_saved_regs): Remove.
5507 (alpha_frame_init_saved_regs): Remove.
5508 (alpha_init_frame_pc_first): Remove.
5509 (read_next_frame_reg): Remove.
5510 (alpha_frame_saved_pc): Remove.
5511 (alpha_saved_pc_after_call): Remove.
5512 (temp_proc_desc, temp_saved_regs): Remove.
5513 (alpha_about_to_return): Remove.
5514 (cached_proc_desc): Remove.
5515 (alpha_frame_chain): Remove.
5516 (alpha_print_extra_frame_info): Remove.
5517 (alpha_init_extra_frame_info): Remove.
5518 (alpha_frame_locals_address): Remove.
5519 (alpha_frame_args_address): Remove.
5520 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5521 (alpha_push_dummy_frame): Remove.
5522 (alpha_pop_frame): Remove.
5523 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5524 (alpha_read_insn): New.
5525 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5526 for different insn encodings.
5527 (alpha_in_lenient_prologue): Remove.
5528 (struct alpha_sigtramp_unwind_cache): New.
5529 (alpha_sigtramp_frame_unwind_cache): New.
5530 (alpha_sigtramp_register_address): New.
5531 (alpha_sigtramp_frame_this_id): New.
5532 (alpha_sigtramp_frame_prev_register): New.
5533 (alpha_sigtramp_frame_unwind): New.
5534 (alpha_sigtramp_frame_p): New.
5535 (struct alpha_heuristic_unwind_cache): New.
5536 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5537 don't count nop insns that occur between functions.
5538 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5539 heuristic_proc_desc, but without the mdebug wrapping.
5540 (alpha_heuristic_frame_this_id): New.
5541 (alpha_heuristic_frame_prev_register): New.
5542 (alpha_heuristic_frame_unwind): New.
5543 (alpha_heuristic_frame_p): New.
5544 (alpha_heuristic_frame_base_address): New.
5545 (alpha_heuristic_frame_base): New.
5546 (alpha_unwind_dummy_id): New.
5547 (alpha_unwind_pc): New.
5548 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5549 frame related deprecated initializations; install replacements.
5550 (alpha_dump_tdep): Remove.
5551 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5552 (alpha_read_insn, alpha_after_prologue,
5553 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5554 alpha_heuristic_frame_prev_register,
5555 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5556 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5557 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5558 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5559
93ec1121
AC
55602003-05-29 Andrew Cagney <cagney@redhat.com>
5561
5562 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5563 dependant on the availability of ASSERT_FUNCTION.
5564 (ASSERT_FUNCTION): Do not define when there is no function name.
5565
98f08d3d
KB
55662003-05-29 Kevin Buettner <kevinb@redhat.com>
5567
5568 From Jimi X <jimix@watson.ibm.com>:
5569 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5570
0897f59b
JB
55712003-05-28 Jim Blandy <jimb@redhat.com>
5572
5573 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5574 argument to ptrace to int; the system headers should give it the
5575 right type, and pointers don't fit in ints on powerpc64-*-*.
5576
14898363
L
55772003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5578
5579 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5580 DW_TAG_catch_block.
5581
a7a48797
EZ
55822003-05-26 Elena Zannoni <ezannoni@redhat.com>
5583
5584 * stabsread.c (dbx_lookup_type): Make static.
5585 (read_type): Ditto.
5586 (add_undefined_type): Ditto.
5587 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5588 not export.
5589
f5479e9c
EZ
55902003-05-26 Elena Zannoni <ezannoni@redhat.com>
5591
5592 * hpread.c (hpread_has_name): Make static.
5593 (hpread_psymtab_to_symtab): Ditto.
5594 (file_exists): Ditto.
5595 (hpread_call_pxdb): Ditto.
5596 (hpread_pxdb_needed): Ditto.
5597 (hpread_quick_traverse): Ditto.
5598 (hpread_get_header): Ditto.
5599 (hpread_get_lntt): Ditto.
5600 (hpread_get_slt): Ditto.
5601 (class_of): Ditto.
5602
eb2e12d7
AS
56032003-05-25 Andreas Schwab <schwab@suse.de>
5604
78bf922a
AS
5605 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5606 stack_align and deprecated_extra_stack_alignment_needed.
5607 (m68k_stack_align): Delete.
5608
eb2e12d7
AS
5609 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5610 (m68k_register_virtual_size): Likewise.
5611 (altos_skip_prologue): Remove obsolete function.
5612 (isi_frame_num_args): Likewise.
5613 (news_frame_num_args): Likewise.
5614 (m68k_fix_call_dummy): Make static.
5615 (m68k_push_dummy_frame): Likewise.
5616 (m68k_pop_frame): Likewise.
5617 (m68k_skip_prologue): Likewise.
5618 (m68k_frame_init_saved_regs): Likewise.
5619 (m68k_saved_pc_after_call): Likewise.
5620 (m68k_get_longjmp_target): Make multi-arch.
5621 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5622 structure. Register m68k_get_longjmp_target if enabled.
5623 * m68k-tdep.h (struct gdbarch_tdep): Define.
5624 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5625
5626 * Makefile.in (config.status): Also depend on configure.tgt
5627 and configure.host.
5628 (m68klinux-tdep.o): Update dependencies.
5629 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5630 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5631 (M68K_LINUX_JB_PC): Define.
5632 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5633 and take additional parameter.
5634 (m68k_linux_sigtramp_saved_pc): Update.
5635 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5636 m68k_linux_pc_in_sigtramp, in_plt_section,
5637 find_solib_trampoline_target.
5638 * config/m68k/tm-linux.h: Don't include any tm headers.
5639 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5640 (JB_ELEMENT_SIZE): Likewise.
5641 (JB_PC): Likewise.
5642 (GET_LONGJMP_TARGET): Likewise.
5643 (IN_SIGTRAMP): Likewise.
5644 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5645
eb2c22dc
MK
56462003-05-25 Mark Kettenis <kettenis@gnu.org>
5647
5648 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5649 (sparc32_push_arguments): Re-implement by calling
5650 sparc32_do_push_arguments.
5651
44b7b84e
MK
56522003-05-25 Mark Kettenis <kettenis@gnu.org>
5653
5654 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5655 SPARC_O1_REGNUM): New defines.
5656 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5657 (sparc32_store_return_value): New function.
5658 (sparc_extract_struct_value_address): Rewrite to operate on a
5659 regcache.
5660 (sparc_gdbarch_init): Don't set
5661 deprecated_extract_struct_value_address. Set
5662 extract_struct_value_address instead. Don't set
5663 deprecated_extract_return_value and deprecated_store_return_value
5664 for 32-bit targets. Set extract_return_value and
5665 store_return_value instead.
5666 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5667 DEPRECTAED_EXTRACT_RETURN_VALUE,
5668 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5669 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5670 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5671 (sparc_store_return_value): Remove prototype.
5672 (sparc32_store_return_value): New prototype.
5673 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5674 Adjust prototypes.
5675
f6ad61e3
MK
56762003-05-24 Mark Kettenis <kettenis@gnu.org>
5677
5678 * sparcnbsd-tdep.c: Include "gdb_string.h".
5679
b276f1bb
AC
56802003-05-23 Andrew Cagney <cagney@redhat.com>
5681
5682 * p-valprint.c (pascal_val_print): Replace extract_address with
5683 the inline equivalent extract_unsigned_integer.
5684 * jv-valprint.c (java_value_print): Ditto.
5685 * ada-valprint.c (ada_val_print_1): Ditto.
5686 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5687
e76c5fcc
TR
56882003-05-23 Theodore A. Roth <troth@openavr.org>
5689
5690 * blockframe.c (frameless_look_for_prologue): Remove unused
5691 after_prologue variable.
5692
2cdd89cb
MK
56932003-05-23 Mark Kettenis <kettenis@gnu.org>
5694
5695 * blockframe.c (get_pc_function_start): Rewrite to avoid
5696 asignments in if-statements.
5697
182d43bc
EZ
56982003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5699
5700 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5701 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5702 files, don't relocate absolute symbols (and do use mst_abs).
5703
e8f3fcdd
AC
57042003-05-23 Andrew Cagney <cagney@redhat.com>
5705
5706 * objc-lang.c: Include "gdb_assert.h".
5707 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5708 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5709 (gdb_check, gdb_check_fatal): Delete functions.
5710 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5711 gdb_assert.
5712 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5713 * Makefile.in (objc-lang.o): Update dependencies.
5714
3c23e6fb
ILT
57152003-05-22 Ian Lance Taylor <ian@airs.com>
5716
5717 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5718 with fprintf_filtered, not fprintf_unfiltered.
5719
af1342ab
AC
57202003-05-22 Andrew Cagney <cagney@redhat.com>
5721
5722 * stack.c (frame_info): Inline extract_address, replacing it with
5723 extract_unsigned_integer.
5724 * findvar.c (unsigned_pointer_to_address): Ditto.
5725 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5726 * dwarf2expr.c (dwarf2_read_address): Ditto.
5727 * frame.c (frame_pc_unwind): Update comment.
5728 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5729
47e242ec
JJ
57302003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5731
5732 * infptrace.c (detach): Call print_sys_errmsg rather than
5733 perror_with_name to issue warning message when errno is non-zero
5734 after calling ptrace detach.
5735
e2ac8128
JB
57362003-05-21 J. Brobecker <brobecker@gnat.com>
5737
5738 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5739 macro definitions from here...
5740 * hppa-tdep.c: ...to there.
5741
92b3541e
KB
57422003-05-20 Kevin Buettner <kevinb@redhat.com>
5743
5744 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5745 register_ptrace_addr(). Fix all callers.
5746
55809acb
AS
57472003-05-21 Andreas Schwab <schwab@suse.de>
5748
5749 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5750 dependencies.
5751 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5752 end.
5753 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5754 (_initialize_m68k_linux_tdep): New function.
5755 (m68k_linux_frame_saved_pc): Make static.
5756 (m68k_linux_extract_return_value): Likewise.
5757 (m68k_linux_store_return_value): Likewise.
5758 (m68k_linux_extract_struct_value_address): Likewise.
5759 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5760 Remove.
5761 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5762 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5763 (DEPRECATED_FRAME_SAVED_PC): Remove.
5764
0fbc10f7
KW
57652003-05-20 Kris Warkentin <kewarken@qnx.com>
5766
5767 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5768 regset numbering rather than our own.
5769
58da2eb2
DC
57702003-05-19 David Carlton <carlton@bactrian.org>
5771
5772 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5773
1fcb5155
DC
57742003-05-19 David Carlton <carlton@bactrian.org>
5775
5776 Partial fix for PR c++/827.
5777 * cp-support.h: Include symtab.h.
5778 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5779 * cp-namespace.c: Update contributors.
5780 (cp_lookup_symbol_nonlocal): New.
5781 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5782 (lookup_symbol_file): Ditto.
5783 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5784 * block.h: Declare block_scope, block_using, block_global_block.
5785 * block.c (block_scope): New.
5786 (block_using, block_global_block): Ditto.
5787 * Makefile.in (cp_support_h): Depend on symtab_h.
5788 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5789
5f9a71c3
DC
57902003-05-19 David Carlton <carlton@bactrian.org>
5791
5792 * language.h (struct language_defn): Add 'la_value_of_this'
5793 and 'la_lookup_symbol_nonlocal' members.
5794 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5795 lookup_symbol_static, lookup_symbol_global,
5796 lookup_symbol_aux_block.
5797 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5798 if we should search fields of this and how to do static/global
5799 lookup.
5800 (lookup_symbol_aux_block): Make extern.
5801 (basic_lookup_symbol_nonlocal): New.
5802 (lookup_symbol_static, lookup_symbol_global): Ditto.
5803 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5804 'la_lookup_symbol_nonlocal' members.
5805 * c-lang.c (c_language_defn, cplus_language_defn)
5806 (asm_language_defn, minimal_language_defn): Ditto.
5807 * jv-lang.c (java_language_defn): Ditto.
5808 * language.c (unknown_language_defn, auto_language_defn)
5809 (local_language_defn): Ditto.
5810 * m2-lang.c (m2_language_defn): Ditto.
5811 * objc-lang.c (objc_language_defn): Ditto.
5812 * scm-lang.c (scm_language_defn): Ditto.
5813 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5814 * p-lang.c (pascal_language_defn): Ditto for both.
5815 * Makefile.in (f-lang.o): Depend on value_h.
5816 (p-lang.o): Ditto.
5817
89a9d1b1
DC
58182003-05-19 David Carlton <carlton@bactrian.org>
5819
5820 * block.h: Declare block_static_block.
5821 * block.c (block_static_block): New.
5822 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5823 lookup_symbol_aux_local, calling block_static_block instead.
5824 (lookup_symbol_aux_local): Delete 'static_block' argument.
5825
eed3f8ab
DC
58262003-05-19 David Carlton <carlton@bactrian.org>
5827
5828 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5829
a09d8bda
ML
58302003-05-19 Michal Ludvig <mludvig@suse.cz>
5831
5832 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5833 register numbers mapping.
5834
69636828
AF
58352003-05-18 Adam Fedor <fedor@gnu.org>
5836
5837 * symtab.c (completion_list_objc_symbol): New function.
5838 (make_symbol_completion_list): Use it to add ObjC symbols
5839 when looking though the list.
5840 (language_search_unquoted_string): New function.
5841 (make_file_symbol_completion_list): Use it.
5842
55baeb84
AS
58432003-05-18 Andreas Schwab <schwab@suse.de>
5844
d0b45d99
AS
5845 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5846 dependencies.
5847 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5848 as m68k_linux_extract_return_value.
5849 (DEPRECATED_STORE_RETURN_VALUE): Define as
5850 m68k_linux_store_return_value.
5851 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5852 m68k_linux_extract_struct_value_address.
5853 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5854 get_next_frame, get_frame_base, get_frame_pc.
5855 (m68k_linux_frame_saved_pc): Use get_frame_base.
5856 (m68k_linux_extract_return_value): New function.
5857 (m68k_linux_store_return_value): New function.
5858 (m68k_linux_extract_struct_value_address): New function.
5859 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5860
55baeb84
AS
5861 * c-exp.y (typebase): Remove duplicate occurence of
5862 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5863 of lookup_signed_typename.
55baeb84 5864
b6b08ebf
MK
58652003-05-18 Mark Kettenis <kettenis@gnu.org>
5866
5867 * dwarf2loc.c (find_location_expression): Change type of second
5868 argument to `size_t *'.
5869 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5870 for size variable.
5871
5ad1c190
DC
58722003-05-18 David Carlton <carlton@bactrian.org>
5873
5874 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5875 'linkage_name'. Add comment.
5876 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5877 'linkage_name'.
5878 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5879 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5880 (lookup_block_symbol): Ditto.
5881
b8b527c5
AC
58822003-05-16 Andrew Cagney <cagney@redhat.com>
5883
5884 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5885 * gdbarch.h, gdbarch.c: Re-generate.
5886 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5887 * TODO (REGISTER_BYTES): Delete reference.
5888 * alpha-tdep.c (alpha_gdbarch_init): Update.
5889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5890 * x86-64-tdep.c (x86_64_init_abi): Update.
5891 * vax-tdep.c (vax_gdbarch_init): Update.
5892 * v850-tdep.c (v850_gdbarch_init): Update.
5893 * sparc-tdep.c (sparc_gdbarch_init): Update.
5894 * sh-tdep.c (sh_gdbarch_init): Update.
5895 * s390-tdep.c (s390_gdbarch_init): Update.
5896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5897 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5898 (ns32k_gdbarch_init_32382): Update.
5899 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5900 * mcore-tdep.c (mcore_gdbarch_init): Update.
5901 * m68k-tdep.c (m68k_gdbarch_init): Update.
5902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5903 * ia64-tdep.c (ia64_gdbarch_init): Update.
5904 * i386-tdep.c (i386_gdbarch_init): Update.
5905 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5906 * hppa-tdep.c (hppa_gdbarch_init): Update.
5907 * h8300-tdep.c (h8300_gdbarch_init): Update.
5908 * frv-tdep.c (frv_gdbarch_init): Update.
5909 * cris-tdep.c (cris_gdbarch_init): Update.
5910 * avr-tdep.c (avr_gdbarch_init): Update.
5911 * arm-tdep.c (arm_gdbarch_init): Update.
5912 * sparc-tdep.c (sparc_pop_frame): Update.
5913 * rs6000-tdep.c (rs6000_pop_frame): Update.
5914 * remote.c (init_remote_state): Update.
5915 (remote_prepare_to_store): Update.
5916 * remote-vx.c (vx_prepare_to_store): Update.
5917 * remote-sds.c (sds_fetch_registers): Update.
5918 (sds_prepare_to_store): Update.
5919 * remote-array.c: Update.
5920 * regcache.c (init_legacy_regcache_descr): Update.
5921 (init_regcache_descr): Update.
5922 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5923 (mips_o64_extract_return_value): Update.
5924 * irix5-nat.c (fetch_core_registers): Update.
5925 * irix4-nat.c (fetch_core_registers): Update.
5926 * i386-tdep.h: Update.
5927 * hppa-tdep.c (pa_do_registers_info): Update.
5928 (pa_do_strcat_registers_info): Update.
5929 * cris-tdep.c (cris_register_bytes_ok): Update.
5930 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5931 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5932 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5933 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5934 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5935 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5936 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5937 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5938 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5939 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5940 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5941 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5942 (REGISTER_BYTES_OK): Update.
5943 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5944 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5945
ee2842e2
ILT
59462003-05-16 Ian Lance Taylor <ian@airs.com>
5947
5948 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5949 (vax_print_insn, print_insn_arg): Remove static functions.
5950 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5951 print_insn_vax from opcodes library.
5952 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5953
973177d3
AC
59542003-05-15 Andrew Cagney <cagney@redhat.com>
5955
aaab4dba
AC
5956 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5957 * target.h (memory_breakpoint_from_pc): Delete declaration.
5958 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5959 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5960 * monitor.c (monitor_insert_breakpoint): Use
5961 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5962 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5963 * gdbarch.h, gdbarch.c: Re-generate.
5964 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5965 (sparc_gdbarch_init): Set breakpoint_from_pc to
5966 sparc_breakpoint_from_pc.
5967 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5968 (BREAKPOINT_FROM_PC): Define.
5969 (sparc_breakpoint_from_pc): Declare.
5970 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5971 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5972 (BREAKPOINT_FROM_PC): Define.
5973 (BREAKPOINT): Delete macro.
5974 * target.h: Update comment.
5975 * s390-tdep.c (s390_gdbarch_init): Update comments.
5976 * remote.c: Update comments.
5977 * remote-mips.c: Update comments.
5978 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5979 * mem-break.c: Update comment.
5980 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5981 (ia64_memory_insert_breakpoint): Update.
5982 * config/sparc/tm-sparc.h: Update comment.
5983 * config/pa/tm-hppa64.h: Update comment.
5984 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5985 (rs6000_breakpoint_from_pc): Update.
5986 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5987 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5988 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5989 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5990 (mips_breakpoint_from_pc): Update.
5991 (mips_dump_tdep): Update.
5992
e06963ff
AC
5993 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5994 * minsyms.c (lookup_minimal_symbol): Inline
5995 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5996
973177d3
AC
5997 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5998 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5999 * p-lang.c (pascal_printstr): Ditto.
6000 * objc-lang.c (objc_printstr): Ditto.
6001 * m2-lang.c (m2_printstr): Ditto.
6002 * jv-valprint.c (java_print_value_fields): Ditto.
6003 * f-lang.c (f_printstr): Ditto.
6004 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6005 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6006 for repeat_count_threshold.
6007 * Makefile.in (cp-valprint.o): Update dependencies.
6008
5ea2bd7f 60092003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6010
5ea2bd7f
JJ
6011 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6012 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6013 they start with mov r2,r12. Support skipping over indirect stores
6014 of the input registers. Upon hitting a non-nop branch instruction
6015 or predicated instruction, bail out by setting lim_pc to the current
6016 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6017 beyond our calculated value and we have trust_limit set,
6018 use the lim_pc value.
6019
cc8c88f3
AC
60202003-05-15 Andrew Cagney <cagney@redhat.com>
6021
6022 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6023 generic_find_dummy_frame.
6024 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6025 (deprecated_generic_find_dummy_frame): Update.
6026 (deprecated_read_register_dummy): Update.
6027 * frame.c (deprecated_generic_get_saved_register): Update.
6028
909cd28e
TR
60292003-05-15 Theodore A. Roth <troth@openavr.org>
6030
6031 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6032 (avr_gdbarch_init): Set breakpoint_from_pc method.
6033
b923b08d
AC
60342003-05-15 Andrew Cagney <cagney@redhat.com>
6035
6036 * regcache.c (build_regcache): Set deprecated_register_valid
6037 directly.
6038 (deprecated_grub_regcache_for_register_valid): Delete function.
6039 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6040 declaration.
6041
ae2f03ac 60422003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6043
6044 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6045 * symtab.c (lookup_symbol_aux): Delete calls to
6046 lookup_symbol_aux_minsyms.
6047 (lookup_symbol_aux_minsyms): Comment out function and
6048 prototype. Delete lookup by mangled name.
ae2f03ac 6049
18ec9831
KB
60502003-05-14 Kevin Buettner <kevinb@redhat.com>
6051
6052 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6053 correctly indicate an empty stack and ``stack_allocated'' to the
6054 indicate the number of elements initially allocated.
6055 (dwarf_expr_grow_stack): Simplify method for computing new
6056 stack size. Don't loop infinitely if ``stack_len'' is zero.
6057 (execute_stack_op): Move ``ctx->in_reg'' initialization
6058 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6059 be used in conjuction with DW_OP_piece. Revise error message
6060 accordingly.
6061
de18ac1f
TR
60622003-05-14 Theodore A. Roth <troth@openavr.org>
6063
6064 * MAINTAINERS: Update my email address.
6065 * avr-tdep.c: Ditto.
6066
176620f1
EZ
60672003-05-14 Elena Zannoni <ezannoni@redhat.com>
6068
6069 * symtab.h (enum domain_enum): Rename from namespace_enum.
6070 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6071 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6072 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6073 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6074 TYPES_NAMESPACE, METHODS_NAMESPACE.
6075 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6076 (struct symbol, struct partial_symbol): Rename field
6077 'namespace_enum namespace' to 'domain_enum domain'.
6078 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6079 Delete old define kludge for namespace.
6080
6081 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6082 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6083 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6084 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6085 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6086 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6087 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6088 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6089 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6090 occurrences of the above.
6091
b7f31508
ILT
60922003-05-14 Ian Lance Taylor <ian@airs.com>
6093
6094 * Makefile.in (install-only): Use $(SHELL) when running
6095 mkinstalldirs.
6096
2fdbdd39
ILT
60972003-05-13 Ian Lance Taylor <ian@airs.com>
6098
a208d82c
ILT
6099 * MAINTAINERS (write after approval): Add myself.
6100
2fdbdd39
ILT
6101 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6102 second and third arguments.
6103 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6104 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6105
fbd9dcd3
AC
61062003-05-13 Andrew Cagney <cagney@redhat.com>
6107
6108 * defs.h (store_address): Delete declaration.
6109 findvar.c (store_address): Delete function.
6110 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6111 store_unsigned_integer.
6112 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6113 * v850-tdep.c (v850_push_arguments): Ditto.
6114 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6115 * sh-tdep.c (sh64_get_saved_register): Ditto.
6116 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6117 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6118 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6119 (mips_get_saved_register): Ditto.
6120 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6121 (find_func_descr, ia64_push_arguments): Ditto.
6122 * i386-tdep.c (i386_push_arguments): Ditto.
6123 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6124 * frv-tdep.c (frv_push_arguments): Ditto.
6125 * frame.c (legacy_saved_regs_prev_register): Ditto.
6126 (deprecated_generic_get_saved_register): Ditto.
6127 * findvar.c (unsigned_address_to_pointer): Ditto.
6128 * dwarf2read.c (dwarf2_const_value): Ditto.
6129 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6130 * alpha-tdep.c (alpha_push_arguments): Ditto.
6131
6760f9e6
JB
61322003-05-12 J. Brobecker <brobecker@gnat.com>
6133
6134 * NEWS: Mention that the hppa-hpux port has been partially
6135 multiarched (32bit ABIT only, so far).
6136
30e221b4
AC
61372003-05-11 Andrew Cagney <cagney@redhat.com>
6138
6139 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6140 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6141 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6142 sim/testsuite/sim/arm/misaligned2.ms, and
6143 sim/testsuite/sim/arm/misaligned3.ms.
6144 * disasm.h (struct ui_file): Add opaque struct declaration.
6145 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6146 * frame.h (struct ui_file): Ditto.
6147
dea7f9ba
MK
61482003-05-11 Mark Kettenis <kettenis@gnu.org>
6149
6150 * value.h: Pretty print.
6151
01986c48
MK
61522003-05-10 Mark Kettenis <kettenis@gnu.org>
6153
6154 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6155
123a958e
AC
61562003-05-08 Andrew Cagney <cagney@redhat.com>
6157
6158 * regcache.h (max_register_size): Delete declaration.
6159 * regcache.c (max_register_size): Delete function.
6160 (struct regcache_descr): Delete field "max_register_size".
6161 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6162 registers fit in MAX_REGISTER_SIZE.
6163 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6164 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6165 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6166 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6167 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6168 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6169 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6170 * dve3900-rom.c, hppa-tdep.c: Ditto.
6171
eb294659
DC
61722003-05-08 David Carlton <carlton@math.stanford.edu>
6173
6174 * valops.c (push_word): Fix typo.
6175
d9d9c31f
AC
61762003-05-08 Andrew Cagney <cagney@redhat.com>
6177
6178 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6179 * gdbarch.h: Re-generate.
6180 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6181 (legacy_max_register_raw_size): Delete declaration.
6182 * regcache.c (legacy_max_register_raw_size): Delete function.
6183 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6184 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6185 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6186 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6187 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6188 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6189 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6190 * findvar.c, dwarf2cfi.c: Ditto.
6191
22540ece
AC
61922003-05-08 Andrew Cagney <cagney@redhat.com>
6193
6194 * mips-tdep.c (read_signed_register): New function, moved to here
6195 from "regcache.c".
6196 (read_signed_register_pid): Ditto.
6197 * regcache.c (read_signed_register_pid): Delete function, moved to
6198 "mips-tdep.c".
6199 (read_signed_register): Ditto.
6200 * regcache.h (read_signed_register): Delete declaration.
6201 (read_signed_register_pid): Delete declaration.
6202
0c92afe8
AC
62032003-05-08 Andrew Cagney <cagney@redhat.com>
6204
6205 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6206 * gdbarch.h: Re-generate.
6207 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6208 (legacy_max_register_virtual_size): Delete declaration.
6209 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6210 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6211 * tracepoint.c (memrange_sortmerge): Ditto.
6212 * sparc-tdep.c (sparc_print_registers): Ditto.
6213 * regcache.c (legacy_max_register_virtual_size): Delete function.
6214
6037b830
JB
62152002-05-08 J. Brobecker <brobecker@gnat.com>
6216
6217 * fork-child.c (escape_bang_in_quoted_argument): New function.
6218 (fork_inferior): Escape '!' characters in quoted arguments
6219 only when needed.
6220
5d62c8b1
JB
62212003-05-08 J. Brobecker <brobecker@gnat.com>
6222
6223 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6224 the language of the CU is not currently supported by GDB.
6225
20a0e81d
JB
62262003-05-08 J. Brobecker <brobecker@gnat.com>
6227
6228 * defs.h (language): Add language_minimal enum value.
6229 * c-lang.c (minimal_language_defn): New language definition.
6230 (_initialize_c_language): Add the new minimal language to the list
6231 of languages known to GDB.
6232
710ee10a
KB
62332003-05-08 Kevin Buettner <kevinb@redhat.com>
6234
6235 * frame.c (get_frame_type): Don't attempt to lazily initialize
6236 frame's unwinder for legacy frames.
6237
1750fa04
AC
62382003-05-07 Andrew Cagney <cagney@redhat.com>
6239
6240 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6241 and "regcache" parameters.
6242 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6243
ddf9f258 62442003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6245
6246 * dwarf2read.c (dwarf_decode_lines): Only use output of
6247 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6248 the current address.
6249
87767c29
AC
62502003-05-07 Andrew Cagney <cagney@redhat.com>
6251
6252 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6253 code.
6254
5e7b2f39
JB
62552003-05-07 Jim Blandy <jimb@redhat.com>
6256
6257 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6258 'maint info symtabs' and 'maint info psymtabs'.
6259 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6260 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6261 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6262 Declarations updated.
6263 * maint.c (maintenance_list_command): Delete.
6264 (_initialize_maint_cmds): Update calls to add_cmd.
6265 * gdbcmd.h (maintenancelistlist): Delete declaration.
6266 * cli/cli-cmds.c (maintenancelistlist): Delete.
6267 (init_cmd_lists): Don't initialize it.
6268 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6269
f6684c31
AC
62702003-05-07 Andrew Cagney <cagney@redhat.com>
6271
6272 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6273 "regcache".
6274 (d10v_print_registers_info): Update.
6275 (d10v_dmap_register, d10v_imap_register): Delete functions.
6276 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6277 and "imap_register".
6278 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6279 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6280 * arch-utils.c (generic_remote_translate_xfer_address): Add
6281 "regcache" and "gdbarch" parameters.
6282 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6283 parameter. Change class to multi-arch.
6284 * gdbarch.h, gdbarch.c: Re-generate.
6285 * remote.c (remote_xfer_memory): Use
6286 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6287
e4846b08
JJ
62882003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6289
6290 * infrun.c (prev_pc): Move declaration ahead of proceed().
6291 (proceed): Refresh prev_pc value before resuming.
6292 (stop_stepping): Remove code to refresh prev_pc.
6293
6b71b8ac
KW
62942003-05-06 Kris Warkentin <kewarken@qnx.com>
6295
6296 * nto-tdep.c: Removed stray comment.
6297
47979a4b
KW
62982003-05-06 Kris Warkentin <kewarken@qnx.com>
6299
6300 * i386-nto-tdep.c: Fix old K&R function definitions.
6301 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6302 Also change add_show_from_set() call to add_setshow_cmd().
6303 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6304
00905d52
AC
63052003-05-05 Andrew Cagney <cagney@redhat.com>
6306
6307 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6308 (fprint_dummy_frames): New function.
6309 (maintenance_print_dummy_frames): New function.
6310 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6311 * frame.c (fprint_frame_id): Make global.
6312 * frame.h (fprint_frame_id): Declare.
6313 * Makefile.in (dummy-frame.o): Update dependencies.
6314
b1e29e33
AC
63152003-05-05 Andrew Cagney <cagney@redhat.com>
6316
6317 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6318 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6319 SIZEOF_CALL_DUMMY_WORDS.
6320 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6321 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6322 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6323 CALL_DUMMY_BREAKPOINT_OFFSET.
6324 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6325 CALL_DUMMY_START_OFFSET.
6326 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6327 * gdbarch.h, gdbarch.c: Re-generate.
6328 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6329 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6330 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6331 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6332 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6333 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6334 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6335 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6336 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6337 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6338 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6339 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6340 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6341 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6342 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6343
63442003-05-05 Kris Warkentin <kewarken@qnx.com>
6345
6346 * configure.tgt: Add i[3456]86-*-nto*.
6347 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6348 * nto-tdep.c: New file. Neutrino target support routines.
6349 * nto-tdep.h: New file. Neutrino target header.
6350 * config/tm-qnxnto.h: New file.
6351 * config/i386/i386nto.mt: New file.
6352 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6353
0ce3d317
AC
63542003-05-04 Andrew Cagney <cagney@redhat.com>
6355
6356 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6357 (load_infrun_state): Ditto.
6358 (struct thread_info): Drop "prev_func_name" field.
6359 * thread.c (load_infrun_state): Update.
6360 (save_infrun_state): Update.
6361 * infrun.c (prev_func_name): Delete variable.
6362 (init_wait_for_inferior): Do not clear prev_func_name.
6363 (stop_stepping, keep_going, context_switch): Do not swap
6364 prev_func_name.
6365 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6366 instead of PC_IN_SIGTRAMP.
6367
46654a5b
AC
63682003-05-04 Andrew Cagney <cagney@redhat.com>
6369
6370 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6371 REGISTER_BYTE with register_offset_hack.
6372 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6373 that REGISTER_BYTE is consistent with the regcache.
6374 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6375 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6376
14b08c1b
MK
63772003-05-04 Mark Kettenis <kettenis@gnu.org>
6378
04c8243f
MK
6379 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6380 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6381
14b08c1b
MK
6382 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6383
c7a11e01
JB
63842003-05-03 J. Brobecker <brobecker@gnat.com>
6385
6386 From Thierry Schneider <tpschneider1@yahoo.com>
6387 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6388 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6389 (mi-cmd-symbol.o): Add rule.
6390
7043d8dc
AC
63912003-05-03 Andrew Cagney <cagney@redhat.com>
6392
6393 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6394 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6395 * gdbarch.h, gdbarch.c: Re-generate.
6396 * d10v-tdep.c (d10v_push_dummy_code): New function.
6397 (d10v_gdbarch_init): Set push_dummy_code.
6398 * infcall.c (legacy_push_dummy_code): New function.
6399 (generic_push_dummy_code): New function.
6400 (push_dummy_code): New function.
6401 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6402 instead of dummy_addr, to push_dummy_call. Move call to
6403 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6404 switch.
6405 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6406
92bf2b80
AC
64072003-05-03 Andrew Cagney <cagney@redhat.com>
6408
6409 * disasm.h (print_insn): Declare.
6410 * disasm.c (init_gdb_disassemble_info): New function.
6411 (gdb_disassembly): Call init_gdb_disassemble_info.
6412 (gdb_print_insn): New function.
6413 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6414 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6415 * mcore-tdep.c: Include "disasm.h"
6416 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6417 * d10v-tdep.c: Include "disasm.h".
6418 (display_trace): Call gdb_print_insn, instead of print_insn.
6419 (print_insn): Delete function.
6420 * printcmd.c: Include "disasm.h".
6421 (print_insn): Delete function.
6422 (print_formatted): Call gdb_print_insn, instead of print_insn.
6423 * Makefile.in (printcmd.o): Update dependencies.
6424 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6425
27d94c49
AC
64262003-05-02 Andrew Cagney <cagney@redhat.com>
6427
82de1e5b
AC
6428 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6429 PC_REGNUM, re-indent.
6430 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6431 PC_REGNUM isn't set.
6432
27d94c49
AC
6433 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6434 * gdbarch.h, gdbarch.c: Re-generate.
6435 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6436 register_virtual_size, pc_regnum, or register_bytes.
6437 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6438 (d10v_register_type): Use D10V_PC_REGNUM.
6439 (d10v_print_registers_info, d10v_read_pc): Ditto.
6440 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6441 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6442
a9c0dc7f
DC
64432003-05-02 David Carlton <carlton@bactrian.org>
6444
6445 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6446 the name with mstrsave.
6447
e33d66ec
EZ
64482003-05-02 Elena Zannoni <ezannoni@redhat.com>
6449
6450 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6451 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6452 (host_charset_name, target_charset_name): New vars for use by
6453 set/show commands.
6454 (host_charset_enum, target_charset_enum): New enums for set/show
6455 commands.
6456 (set_charset_sfunc, set_host_charset_sfunc,
6457 set_target_charset_sfunc): New functions.
6458 (set_host_charset, set_target_charset): Make static.
6459 (list_charsets, set_host_charset_command,
6460 set_target_charset_command): Delete functions.
6461 (show_charset_command): Rewrite as....
6462 (show_charset): Hook this up with the set/show command mechanism.
6463 (_initialize_charset): Change names of charsets to match the
6464 set/show enums. Use host_charset_name and target_charset_name.
6465 Use set/show mechanism for charset, host-charset, target-charset
6466 commands. Do not make 'show host-charset' and 'show
6467 target-charset' be aliases of 'show charset'.
6468
6469 * charset.h (set_host_charset, set_target_charset): Don't export,
6470 they are not used outside the file.
6471
2b6fd0d8
AC
64722003-05-01 Andrew Cagney <cagney@redhat.com>
6473
6474 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6475 (gdb_disassembly): Make "di" non static, always initialize and
6476 cleanup. Always use dis_asm_read_memory.
6477 (gdb_dis_asm_read_memory): Delete function.
6478
6ae2f580
AC
64792003-05-01 Andrew Cagney <cagney@redhat.com>
6480
6481 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6482 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6483
810ecf9f
AC
64842003-04-30 Andrew Cagney <cagney@redhat.com>
6485
6486 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6487 "tm_print_insn_info".
6488 (TARGET_PRINT_INSN_INFO): Delete macro.
6489 (dis_asm_read_memory): Delete function declaration.
6490 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6491 (tm_print_insn_info): Delete variable definition.
6492 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6493 * gdbarch.h, gdbarch.c: Re-generate.
6494 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6495 "deprecated_tm_print_insn_info".
6496 * mcore-tdep.c (mcore_dump_insn): Ditto.
6497 * mips-tdep.c (mips_gdbarch_init): Ditto.
6498 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6499 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6500 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6501 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6502 instead of TARGET_PRINT_INSN_INFO, add comment.
6503 * s390-tdep.c (s390_get_frame_info): Instead of
6504 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6505 (s390_check_function_end, s390_is_sigreturn): Ditto.
6506 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6507 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6508 * disasm.c: Include "gdbcore.h".
6509 (_initialize_disasm): New function, initialize
6510 "deprecated_tm_print_insn_info".
6511 (deprecated_tm_print_insn_info): New variable.
6512 (dis_asm_read_memory): Moved from "corefile.c", made static.
6513 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6514 * Makefile.in (disasm.o): Update dependencies.
6515
07020390
AC
65162003-04-30 Andrew Cagney <cagney@redhat.com>
6517
6518 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6519
a9fa03de
AF
65202003-04-29 Adam Fedor <fedor@gnu.org>
6521
6522 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6523 * infcall.c (find_function_addr): Make non-static.
6524 * infcall.h (find_function_addr): Declare.
6525 * Makefile.in (eval.o): Update dependencies.
6526
1bae87b9
AF
65272003-04-28 Adam Fedor <fedor@gnu.org>
6528
6529 * symtab.c (symbol_find_demangled_name): Check for and demangle
6530 ObjC symbols.
6531 (symbol_init_demangled_name): Init for language_objc as well.
6532
0ba6dca9
AC
65332003-04-28 Andrew Cagney <cagney@redhat.com>
6534
6535 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6536 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6537 * gdbarch.h, gdbarch.c: Re-generate.
6538 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6539 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6540 * inferior.h (deprecated_read_fp): Rename read_fp.
6541 (generic_target_read_fp): Delete declaration.
6542 * regcache.c (generic_target_read_fp): Delete function.
6543 (deprecated_read_fp): Replace read_fp, use
6544 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6545 * d10v-tdep.c (d10v_read_fp): Delete function.
6546 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6547
6548 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6549 deprecated_target_read_fp to generic_target_read_fp.
6550 * sh-tdep.c (sh_gdbarch_init): Ditto.
6551 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6553 * frv-tdep.c (frv_gdbarch_init): Ditto.
6554
6555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6556 deprecated_fp_regnum.
6557 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6558 * vax-tdep.c (vax_gdbarch_init): Ditto.
6559 * v850-tdep.c (v850_gdbarch_init): Ditto.
6560 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6561 * sh-tdep.c (sh_gdbarch_init): Ditto.
6562 * s390-tdep.c (s390_gdbarch_init): Ditto.
6563 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6564 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6566 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6568 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6569 * i386-tdep.c (i386_gdbarch_init): Ditto.
6570 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6572 * frv-tdep.c (frv_gdbarch_init): Ditto.
6573 * cris-tdep.c (cris_gdbarch_init): Ditto.
6574 * avr-tdep.c (avr_gdbarch_init): Ditto.
6575 * arm-tdep.c (arm_gdbarch_init): Ditto.
6576 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6577
6578 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6579 * v850-tdep.c (v850_gdbarch_init): Ditto.
6580 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6581 * sh-tdep.c (sh_gdbarch_init): Ditto.
6582 * s390-tdep.c (s390_gdbarch_init): Ditto.
6583 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6584 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6585 * mips-tdep.c (mips_gdbarch_init): Ditto.
6586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6587 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6588 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6589 * frv-tdep.c (frv_gdbarch_init): Ditto.
6590 * avr-tdep.c (avr_gdbarch_init): Ditto.
6591 * arm-tdep.c (arm_gdbarch_init): Ditto.
6592
6593 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6594 DEPRECATED_FP_REGNUM.
6595 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6596 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6597 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6598 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6599 (sparc32_register_virtual_type): Ditto.
6600 * sh-tdep.c (sh64_frame_chain): Ditto.
6601 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6602 (sh_nofp_frame_init_saved_regs): Ditto.
6603 (sh64_nofp_frame_init_saved_regs): Ditto.
6604 (sh_fp_frame_init_saved_regs): Ditto.
6605 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6606 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6607 * procfs.c (procfs_fetch_registers): Ditto.
6608 (procfs_store_registers): Ditto.
6609 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6610 (store_inferior_registers, fetch_core_registers): Ditto.
6611 (fetch_kcore_registers, clear_regs): Ditto.
6612 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6613 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6614 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6615 * nlm/i386.c (do_status): Ditto.
6616 * mipsv4-nat.c (supply_gregset): Ditto.
6617 * mips-tdep.c: Ditto for comments.
6618 * mips-nat.c (fetch_inferior_registers): Ditto.
6619 (store_inferior_registers, fetch_core_registers): Ditto.
6620 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6621 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6622 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6623 (i386_do_pop_frame, i386_register_type): Ditto.
6624 * hppa-tdep.c (hppa_frame_chain): Ditto.
6625 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6626 (hppa_pop_frame, hppa_read_fp): Ditto.
6627 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6628 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6629 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6630 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6631 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6632 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6633 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6634 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6635 * blockframe.c: Ditto for comments.
6636 * arch-utils.h: Ditto for comments.
6637 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6638 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6639 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6640 * alpha-tdep.h: Ditto for comments.
6641 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6642 (alpha_cannot_store_register): Ditto.
6643 (alpha_push_dummy_frame): Ditto.
6644 * alpha-nat.c (supply_gregset): Ditto.
6645
6646 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6647 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6648 * config/sparc/tm-sparc.h: Update comment.
6649
6650 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6651 deprecated_read_fp instead of TARGET_READ_FP.
6652 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6653 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6654 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6655 deprecated_read_fp instead of read_fp.
6656 * s390-tdep.c (s390_push_arguments): Ditto.
6657 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6658 * frame.h: Ditto in comments.
6659 * frame.c (legacy_get_prev_frame): Ditto.
6660 * dummy-frame.c (dummy_frame_this_id): Ditto.
6661 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6662
d7a27068
AC
66632003-04-28 Andrew Cagney <cagney@redhat.com>
6664
6665 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6666 * gdbarch.h, gdbarch.c: Re-generate.
6667 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6668 * vax-tdep.c (_initialize_vax_tdep): Update.
6669 * v850-tdep.c (_initialize_v850_tdep): Update.
6670 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6671 * s390-tdep.c (_initialize_s390_tdep): Update.
6672 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6673 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6674 * mips-tdep.c (_initialize_mips_tdep): Update.
6675 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6676 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6677 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6678 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6679 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6680 * frv-tdep.c (_initialize_frv_tdep): Update.
6681 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6682 (_initialize_cris_tdep): Update.
6683 * arch-utils.c (legacy_print_insn): Update.
6684 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6685
d2630e69
AF
66862003-04-26 Adam Fedor <fedor@gnu.org>
6687
6688 * linespec.c (decode_objc): New function to decode ObjC calls
6689 (decode_line_1): Check for ObjC calls (using decode_objc)
6690 * Makefile (linespec.o): Update dependencies.
6691
3086aeae
DJ
66922003-04-26 Daniel Jacobowitz <drow@mvista.com>
6693
6694 * breakpoint.h (struct breakpoint_ops): New.
6695 (struct breakpoint): Add ops member.
6696
6697 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6698 (mention): Use new breakpoint ops member.
6699 (set_raw_breakpoint): Initialize ops field to NULL.
6700 (print_exception_catchpoint, print_one_exception_catchpoint)
6701 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6702 (gnu_v3_exception_catchpoint_ops): New.
6703 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6704
1fbec6c3
AF
67052003-04-25 Adam Fedor <fedor@gnu.org>
6706
6707 * Makefile.in (COMMON_OBS): Add objc-lang.o
6708
0ef21242
AC
67092003-04-25 Andrew Cagney <cagney@redhat.com>
6710
6711 * d10v-tdep.c (print_insn): Delete function.
6712 (display_trace): Use TARGET_PRINT_INSN.
6713 (_initialize_d10v_tdep): Do not set tm_print_insn.
6714 (d10v_gdbarch_init): Set print_insn.
6715
f75493ed
AC
67162003-04-25 Andrew Cagney <cagney@redhat.com>
6717
6718 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6719 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6720 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6721 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6722 (nr_dmap_regs, a0_regnum): ... new functions.
6723 (d10v_print_registers_info): Use a0_regnum, use register_size.
6724 (d10v_register_byte): Delete function.
6725 (d10v_register_raw_size): Delete function.
6726 (d10v_register_type): Use a0_regnum.
6727 (d10v_print_registers_info): Use a0_regnum.
6728 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6729 (d10v_gdbarch_init): Do not set register_byte or
6730 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6731 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6732 extract_address.
6733 (trace_command): Use XCALLOC.
6734 (print_insn): Delete reference to tm_print_insn.
6735 (saved_regs_unwinder): Use store_unsigned_integer instead of
6736 store_address.
6737 * frame.h (FRAME_OBSTACK_CALLOC): Define
6738
2202b100
DC
67392003-04-25 David Carlton <carlton@bactrian.org>
6740
6741 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6742
4e45ca2e
AF
67432003-04-24 Adam Fedor <fedor@gnu.org>
6744
6745 * objc-lang.c: Include "valprint.h"
6746 * Makefile.in (objc-lang.o): Update dependencies.
6747
93de3e7f
AF
67482003-04-24 Adam Fedor <fedor@gnu.org>
6749
8ffd9b1b 6750 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6751 architecture dependant compilation and mark as unimplemented
6752 (until they get put in the gdbarch vector).
6753
0f20eeea
DC
67542003-04-23 David Carlton <carlton@bactrian.org>
6755
6756 * cp-support.c (cp_find_first_component): Accept 'operator' in
6757 more locations.
6758
74cfe982
AC
67592003-04-23 Andrew Cagney <cagney@redhat.com>
6760
6761 * infcall.c (call_function_by_hand): Eliminate redundant
6762 indentation. Move "saved_async" and "old_cleanups" to where they
6763 are needed.
8ffd9b1b 6764
52557533
AC
67652003-04-23 Andrew Cagney <cagney@redhat.com>
6766
6767 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6768 and "buffer". Move the "name" code to where it is needed.
6769
158775de
AC
67702003-04-23 Andrew Cagney <cagney@redhat.com>
6771
6772 * infcall.c (call_function_by_hand): Move variables "start_sp",
6773 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6774 code to ON_STACK switch branch.
8ffd9b1b 6775
ebc7896c
AC
67762003-04-23 Andrew Cagney <cagney@redhat.com>
6777
6778 * infcall.c (call_function_by_hand): Make declaration of "i",
6779 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6780 lint.
6781
d727590f
AC
67822003-04-23 Andrew Cagney <cagney@redhat.com>
6783
6784 * infcall.c (call_function_by_hand): Delete variable
6785 "n_method_args". Localize "param_type"'s declaration to the loop
6786 that it is used. Reinstate code assigning to said variable -
6787 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6788 Rationalize code using "param_type".
6789
d585e13a
AC
67902003-04-22 Andrew Cagney <cagney@redhat.com>
6791
6792 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6793 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6794 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6795 to DEPRECATED_PUSH_RETURN_ADDRESS.
6796
051caad9
KB
67972003-04-22 Kevin Buettner <kevinb@redhat.com>
6798
6799 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6800 on the DWARF2 register number prior to fetching a register.
6801
77296879
JB
68022003-04-22 J. Brobecker <brobecker@gnat.com>
6803
6804 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6805 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6806 this macro was always set to 0.
77296879
JB
6807 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6808 considering the fact that this macro was always set to 0.
6809 * hppa-tdep.h (hppa_store_return_value): Likewise.
6810 (hppa_extract_return_value): Likewise.
6811
4252f1df
JB
68122003-04-22 J. Brobecker <brobecker@gnat.com>
6813
6814 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6815 the hppa-pro target only.
6816
14604c6b
JB
68172003-04-21 J. Brobecker <brobecker@gnat.com>
6818
6819 Ongoing multi-arch conversion effort for HP/UX:
6820 * config/pa/tm-hppa.h: Move all macro that are no longer
6821 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6822 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6823
77eb01d1
JB
68242003-04-21 J. Brobecker <brobecker@gnat.com>
6825
6826 * config/pa/tm-hppa.h: Obsolete a section that was only used
6827 for hppa-pro.
6828
61995b3b
JB
68292003-04-21 J. Brobecker <brobecker@gnat.com>
6830
6831 Ongoing multi-arch conversion for HP/UX.
6832 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6833 if already defined (allows hppa64 to stay non-multiarched for now).
6834 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6835
4aa79dcc
AC
68362003-04-21 Andrew Cagney <cagney@redhat.com>
6837
6838 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6839
0f751ff2
AC
68402003-04-21 Andrew Cagney <cagney@redhat.com>
6841
6842 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6843 "i386_num_mmx_regs".
6844
04714b91
AC
68452003-04-21 Andrew Cagney <cagney@redhat.com>
6846
6847 * infcall.c: New file.
6848 * infcall.h: New file.
6849 * valarith.c: Include "infcall.h".
6850 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6851 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6852 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6853 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6854 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6855 (SFILES): Add "infcall.c"
6856 (COMMON_OBS): Add "infcall.o".
6857 (infcall.o): Specify dependencies.
6858 * value.h (call_function_by_hand): Delete declaration.
6859 * inferior.h (run_stack_dummy): Delete declaration.
6860 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6861 (run_stack_dummy): Move to "infcall.c", merged into
6862 call_function_by_hand.
6863 * valops.c (call_function_by_hand): Moved to "infcall.c".
6864 (find_function_addr, value_arg_coerce): Ditto.
6865 (unwindonsignal_p, coerce_float_to_double): Ditto.
6866 (_initialize_valops): Move "set/show coerce-float-to-double", and
6867 "set/show unwindonsignal" commands to "infcall.c".
6868 * v850-tdep.c, target.h: Update comments.
6869 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6870 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6871 (sh64_init_extra_frame_info): Update comments.
6872 * mn10300-tdep.c: Update comments.
6873 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6874 * config/sparc/tm-sparc.h: Update comments.
6875 * breakpoint.h: Update comments.
6876 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6877 * arm-tdep.c: Update comment.
6878
f9d3c2a8
MK
68792003-04-19 Mark Kettenis <kettenis@gnu.org>
6880
c40e1eab
MK
6881 * i386-tdep.c (i386_num_register_names): New variable.
6882 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6883 (MM0_REGNUM): Remove redundant parentheses in define.
6884 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6885 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6886 i386_mxcsr_regnum_p): Remove redundant parentheses.
6887 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6888
94ea66b3
MK
6889 * i386-tdep.c (i386_extract_return_value,
6890 i386_store_return_value): Correct check for availability of
6891 floating-point registers.
6892
54299a1d
MK
6893 * i386-tdep.c (i386_frame_num_args): Remove function.
6894 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6895
c86c27af
MK
6896 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6897 mmx_regnum_to_fp_regnum. Adjust all callers.
6898
f9d3c2a8
MK
6899 * i386-tdep.c (i386_get_longjmp_target): Use
6900 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6901 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6902 extract_address.
6903
94ba74a9
MK
69042003-04-19 Mark Kettenis <kettenis@gnu.org>
6905
6906 * core-regset.c: Update comments to reflect reality. Re-order
6907 includes.
6908 (fetch_core_registers): Use switch instead of if. Remove
6909 redundant prototype.
6910
4074e13c
JB
69112003-04-18 Jim Blandy <jimb@redhat.com>
6912
6913 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6914 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6915
e3ab4aba
RH
69162003-04-17 Richard Henderson <rth@redhat.com>
6917
6918 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6919
627bf7c1
EZ
69202003-04-17 Michael Snyder <msnyder@redhat.com>
6921 Karen Bennet <bennet@redhat.com>
6922
6923 Committed by Elena Zannoni <ezannoni@redhat.com>
6924 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6925
514621a9
EZ
69262003-04-17 Elena Zannoni <ezannoni@redhat.com>
6927
6928 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6929 value if the return type is void.
514621a9 6930
b4acd559
JJ
69312003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6932
6933 * thread-db.c: Reindented.
8ffd9b1b 6934
530b167e 69352003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6936
6937 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6938 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6939 as types.
6940
0a48e7e8
MS
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
8ffd9b1b 6964
ab9fe00e
KB
69652003-04-16 Kevin Buettner <kevinb@redhat.com>
6966
610a3745 6967 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6968 the size of ``long double'' to 16, instead of 8.
6969
e64a344c
MK
69702003-04-16 Mark Kettenis <kettenis@gnu.org>
6971
6972 * i386-linux-nat.c: Add some whitespace to make things more
6973 readable.
6974 (fetch_register, store_register, fetch_inferior_registers,
6975 store_inferior_registers): Get rid of assignment in if-statement.
6976 (store_register): Fix typo in error message.
6977
25d41031
AC
69782003-04-16 Andrew Cagney <cagney@redhat.com>
6979
6980 * utils.c (xmmalloc): Always allocate something, matches
6981 libiberty/xmalloc's semantics.
6982 (xmrealloc, xmcalloc): Ditto.
6983
c50901fd
AC
69842003-04-16 Andrew Cagney <cagney@redhat.com>
6985
6986 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6987 update comments.
6988 (get_frame_type): Initialize unwind and type when needed.
6989 (get_frame_id, frame_register_unwind): Ditto.
6990
f81824a9
AC
69912003-04-16 Andrew Cagney <cagney@redhat.com>
6992
6993 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6994 obsolete.
6995 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6996 * sparcl-stub.c: Obsolete file.
6997 * config/sparc/tm-sparclet.h: Obsolete file.
6998 * sparclet-stub.c: Obsolete file.
6999 * sparclet-rom.c: Obsolete file.
7000 * sparcl-tdep.c: Obsolete file.
7001 * config/sparc/tm-sparclite.h: Obsolete file.
7002 * config/sparc/sparclite.mt: Obsolete file.
7003 * config/sparc/sparclet.mt: Obsolete file.
7004 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7005 sparc86x-*-* obsolete.
7006
9219021c
DC
70072003-04-15 David Carlton <carlton@math.stanford.edu>
7008
7009 * Makefile.in (SFILES): Add cp-namespace.c.
7010 (COMMON_OBS): Add cp-namespace.o.
7011 (block.o): Depend on gdb_obstack_h and cp_support_h.
7012 (buildsym.o): Depend on cp_support_h.
7013 (cp-namespace.o): New.
7014 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7015 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7016 (dwarf2read.o): Depend on cp_support_h.
7017 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7018 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7019 processing_current_namespace.
7020 (read_namespace): Update processing_current_namespace; check for
7021 anonymous namespaces.
7022 (dwarf2_name): New function.
7023 (dwarf2_extension): Ditto.
7024 * cp-support.h: Update copyright, contributors.
7025 Add inclusion guards.
7026 Add opaque declaration for structs obstack, block, symbol.
7027 (struct using_direct): New struct.
7028 Add declarations for cp_find_first_component,
7029 cp_entire_prefix_len, processing_has_namespace_info,
7030 processing_current_namespace, cp_is_anonymous,
7031 cp_add_using_directive, cp_initialize_namespace,
7032 cp_finalize_namespace, cp_set_block_scope,
7033 cp_scan_for_anonymous_namespaces.
7034 * cp-namespace.c: New file.
7035 * cp-support.c: Update copyright.
7036 Include ctype.h, gdb_assert.h, gdbcmd.h.
7037 New variable maint_cplus_cmd_list.
7038 (cp_find_first_component): New function.
7039 (cp_entire_prefix_len, maint_cplus_command)
7040 (first_component_command, _initialize_cp_support): Ditto.
7041 * buildsym.c: Include cp-support.h.
7042 New variable using_list.
7043 (add_symbol_to_list): Check for anonymous namespaces.
7044 (finish_block): Set block's scope.
7045 (start_symtab): Initialize C++ namespace support.
7046 (end_symtab): Finalize C++ namespace support.
7047 * block.h: Add opaque declarations for structs
7048 block_namespace_info, using_direct, and obstack.
7049 Add declarations for block_set_scope and block_set_using.
7050 (struct block): Add 'language_specific' member.
7051 (BLOCK_NAMESPACE): New macro.
7052 * block.c: Include gdb_obstack.h and cp-support.h.
7053 (struct block_namespace_info): New struct.
7054 (block_set_scope): New function.
7055 (block_set_using, block_initialize_namespace): Ditto.
7056
d5a921c9
KB
70572003-04-14 Kevin Buettner <kevinb@redhat.com>
7058
7059 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7060 (locate_base): Return early if there aren't any link map offsets.
7061 (svr4_solib_create_inferior_hook): Warn if shared library support
7062 is unavailable.
7063
d2a52b27
DC
70642003-04-14 David Carlton <carlton@math.stanford.edu>
7065
7066 * symtab.c (symbol_set_names): Add prefix when storing Java names
7067 in hash table. Fix for PR java/1039.
7068
980cae7a
DC
70692003-04-14 David Carlton <carlton@math.stanford.edu>
7070
7071 * symtab.c (symbol_set_names): Rename 'name' arg to
7072 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7073 * symtab.h: Change 'name' argument in declaration of
7074 symbol_set_names to 'linkage_name'.
7075 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7076
e227b13c
AC
70772003-04-14 Andrew Cagney <cagney@redhat.com>
7078
7079 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7080 return the fully sign-extended register value.
7081 (get_frame_pointer): Ditto.
7082 (mips_pop_frame): Initialize "proc_desc" after checking for a
7083 dummy frame.
7084
36712a20
AC
70852003-04-14 Andrew Cagney <cagney@redhat.com>
7086
7087 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7088 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7089 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7090 (mips_push_register): Delete function.
7091 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7092 PUSH_FP_REGNUM.
7093
44ea7b70
JB
70942003-04-14 Jim Blandy <jimb@redhat.com>
7095
7096 * symmisc.c: #include "gdb_regex.h".
7097 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7098 functions.
7099 * maint.c (maintenance_list_command): New function.
7100 (_initialize_maint_cmds): Register the above as commands.
7101 * symtab.h (maintenance_list_symtabs,
7102 maintenance_list_psymtabs): New declarations.
7103 * cli/cli-cmds.c (maintenancelistlist): New variable.
7104 (init_cmd_lists): Initialize it.
7105 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7106 * gdbcmd.h (maintenancelistlist): New declaration.
7107 * Makefile.in (symmisc.o): Update dependencies.
7108
2d0c7962
EZ
71092003-04-14 Elena Zannoni <ezannoni@redhat.com>
7110
7111 * s390-nat.c: Include asm/types.h for addr_t.
7112
1947a811
CV
71132003-04-14 Corinna Vinschen <vinschen@redhat.com>
7114
7115 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7116 actually incoming type.
7117
adb616d7
AC
71182003-04-13 Andrew Cagney <cagney@redhat.com>
7119
7120 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7121 get_next_frame and get_frame_saved_regs.
7122
9b5e151c
AC
71232003-04-13 Andrew Cagney <cagney@redhat.com>
7124
7125 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7126 of gdbarch_num_regs.
7127
ef6e7e13
AC
71282003-04-13 Andrew Cagney <cagney@redhat.com>
7129
7130 * frame.h: Mention what replaced what in "struct frame_info".
7131 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7132 deprecated_update_frame_base_hack and
7133 deprecated_update_frame_pc_hack.
7134 * hppa-tdep.c: Ditto.
7135
61fbb938
DJ
71362003-04-13 Daniel Jacobowitz <drow@mvista.com>
7137
7138 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7139 to read_reg and update its comment. Remove regnum member.
7140 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7141 Don't call read_reg when setting in_reg. Call read_reg to get
7142 the frame base if it's in a register. Return the register number
7143 on the stack instead of in the context. Remove extra arguments
7144 to read_reg.
7145 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7146 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7147 the register number on the expression stack.
7148 (needs_frame_read_reg): Remove extra arguments.
7149
0d53c4c4
DJ
71502003-04-13 Daniel Jacobowitz <drow@mvista.com>
7151
7152 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7153 made non-static.
7154 (execute_stack_op): All callers updated.
7155 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7156 * dwarf2loc.c (find_location_expression): New function.
7157 (dwarf_expr_frame_base): Call it.
7158 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7159 (dwarf2_tracepoint_var_ref): New function, broken out from
7160 locexpr_tracepoint_var_ref.
7161 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7162 Make static.
7163 (loclist_read_variable, loclist_read_needs_frame): New functions.
7164 (loclist_describe_location, loclist_tracepoint_var_ref): New
7165 functions.
7166 (dwarf2_loclist_funcs): New struct location_funcs.
7167 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7168 (struct dwarf2_locexpr_baton): Add comments.
7169 (dwarf2_loclist_funcs): New extern.
7170 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7171 base_address and base_known.
7172 (dwarf_loc_buffer): New variable.
7173 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7174 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7175 (dwarf2_has_info): Initialize dwarf_loc_offset.
7176 (dwarf2_build_psymtabs): Read in .debug_loc.
7177 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7178 DWARF_LOC_SIZE.
7179 (psymtab_to_symtab_1): Likewise. Move base address calculation
7180 here, from...
7181 (dwarf2_get_pc_bounds): ... here. Use the base address from
7182 cu_header.
7183 (dwarf2_symbol_mark_computed): Handle location lists.
7184
6aca59a3
DJ
71852003-04-13 Daniel Jacobowitz <drow@mvista.com>
7186
7187 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7188 if the linkage name demangled successfully.
7189
aca1fcd0
MK
71902003-04-13 Mark Kettenis <kettenis@gnu.org>
7191
97095916
MK
7192 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7193 disassmbly_flavour): Removed.
7194
aca1fcd0
MK
7195 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7196
562a961f
MK
71972003-04-13 Mark Kettenis <kettenis@gnu.org>
7198
7199 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7200
bd013d54
AC
72012003-04-12 Andrew Cagney <cagney@redhat.com>
7202
7203 * frame.h (struct frame_info): Move definition from here ...
7204 * frame.c (struct frame_info): ... to here.
7205
167ef8b1
AC
72062003-04-12 Andrew Cagney <cagney@redhat.com>
7207
7208 * gdbthread.h (save_infrun_state): Delete parameter
7209 "prev_func_start".
7210 (struct thread_info): Delete field "prev_func_start".
7211 (load_infrun_state): Ditto.
7212 * thread.c (load_infrun_state, save_infrun_state): Update.
7213 * infrun.c (prev_func_start): Delete variable.
7214 (context_switch, init_wait_for_inferior): Update.
7215 (stop_stepping, keep_going): Update.
7216
da3331ec
AC
72172003-04-12 Andrew Cagney <cagney@redhat.com>
7218
7219 * gdbarch.sh: Add missing opaque declarations.
7220 * gdbarch.h: Regnerate.
7221 * symtab.h: Add missing opaque declarations.
7222 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7223 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7224 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7225 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7226 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7227 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7228 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7229 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7230 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7231 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7232 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7233 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7234 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7235
18adea3f
AC
72362003-04-11 Andrew Cagney <cagney@redhat.com>
7237
7238 * frame.c (get_frame_id): Return this frame's "id".
7239 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7240 function start.
7241 (legacy_saved_regs_this_id): Replace function body with
7242 internal-error.
7243 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7244 FRAME_OBSTACK_ZALLOC.
7245 (create_new_frame): Mark the frame ID as valid.
7246
2252e863
AO
72472003-04-11 Alexandre Oliva <aoliva@redhat.com>
7248
7249 * Makefile.in (libbfd_h): Added missing setting.
7250 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7251 according to the selected ABI.
7252
a8245ab8
JJ
72532003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7254
7255 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7256
6913c89a
AC
72572003-04-11 Andrew Cagney <cagney@redhat.com>
7258
7259 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7260 SAVED_PC_AFTER_CALL.
7261 * gdbarch.h, gdbarch.c: Regenerate.
7262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7263 * x86-64-tdep.c (x86_64_init_abi): Update.
7264 * vax-tdep.c (vax_gdbarch_init): Update.
7265 * v850-tdep.c (v850_gdbarch_init): Update.
7266 * sparc-tdep.c (sparc_gdbarch_init): Update.
7267 * sh-tdep.c (sh_gdbarch_init): Update.
7268 * s390-tdep.c (s390_gdbarch_init): Update.
7269 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7270 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7271 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7272 * mips-tdep.c (mips_gdbarch_init): Update.
7273 * mcore-tdep.c (mcore_gdbarch_init): Update.
7274 * m68k-tdep.c (m68k_gdbarch_init): Update.
7275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7276 * ia64-tdep.c (ia64_gdbarch_init): Update.
7277 (ia64_saved_pc_after_call): Update declaration.
7278 * i386ly-tdep.c (i386lynx_init_abi): Update.
7279 * i386-tdep.c (i386_gdbarch_init): Update.
7280 * hppa-tdep.c (hppa_gdbarch_init): Update.
7281 * h8300-tdep.c (h8300_gdbarch_init): Update.
7282 * frv-tdep.c (frv_gdbarch_init): Update.
7283 * cris-tdep.c (cris_gdbarch_init): Update.
7284 * avr-tdep.c (avr_gdbarch_init): Update.
7285 * arm-tdep.c (arm_gdbarch_init): Update.
7286 * alpha-tdep.c (alpha_gdbarch_init): Update.
7287 * ns32knbsd-nat.c (frame_num_args): Update.
7288 * ns32k-tdep.c (umax_frame_num_args): Update.
7289 * mips-tdep.c (mips_init_frame_pc_first): Update.
7290 * infrun.c (step_over_function): Update.
7291 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7292 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7293 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7294 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7295 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7296 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7297 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7298 * arch-utils.c (init_frame_pc_default): Update.
7299 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7300 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7301 declaration.
8ffd9b1b 7302
38edeab8
AC
73032003-04-11 Andrew Cagney <cagney@redhat.com>
7304
7305 * i387-tdep.c: Update copyright.
7306 (i387_to_double): Delete function.
7307 (double_to_i387): Delete function.
7308
81f8a206
AC
73092003-04-10 Andrew Cagney <cagney@redhat.com>
7310
7311 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7312 frame's function's address. Simplify.
7313 (d10v_frame_unwind_cache): Check that the frame's function is
7314 non-zero.
7315
6e691f7a
JB
73162003-04-10 Jim Blandy <jimb@redhat.com>
7317
7318 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7319 call to set_gdbarch_deprecated_push_arguments.
7320
7f78e237
AC
73212003-04-10 Andrew Cagney <cagney@redhat.com>
7322
7323 * frame.c (fprint_frame_id): New function.
7324 (fprint_frame_type, fprint_frame): New function.
7325 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7326 (create_sentinel_frame, get_frame_id): Ditto.
7327 (frame_id_p, frame_id_eq): Ditto.
7328 (frame_id_inner, create_new_frame): Ditto.
7329 (legacy_get_prev_frame, get_prev_frame): Ditto.
7330 (deprecated_update_frame_pc_hack): Ditto.
7331 (frame_register_unwind): Ditto.
7332 (deprecated_update_frame_base_hack): Ditto.
7333
f870b49b
CV
73342003-04-10 Corinna Vinschen <vinschen@redhat.com>
7335
7336 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7337 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7338 frame_chain function.
7339 * Makefile.in: Add dependencies due to above change.
7340
7c86889b
CV
73412003-04-10 Corinna Vinschen <vinschen@redhat.com>
7342
7343 * blockframe.c (legacy_frame_chain_valid): Move call to
7344 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7345 inside_entry_file.
7346
d0a55772
AC
73472003-04-09 Andrew Cagney <cagney@redhat.com>
7348
7349 * frame.h (struct frame_id): Replace "pc" and "base" with
7350 "stack_addr" and "code_addr". Update comments.
7351 (frame_id_build): Update parameter names and comment.
7352 (struct frame_info): Replace "id_p" and "id" with "this_id".
7353 * dummy-frame.c (dummy_frame_this_id): Update.
7354 * breakpoint.c (print_one_breakpoint): Update.
7355 * frame.c (get_frame_id): Update.
7356 (get_frame_base, frame_id_build): Update.
7357 (create_sentinel_frame, legacy_get_prev_frame): Update.
7358 (deprecated_update_frame_base_hack): Update.
7359 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7360 (frame_id_inner): Ditto.
7361
ac16bf07
AC
73622003-04-09 Andrew Cagney <cagney@redhat.com>
7363
7364 * defs.h (gdb_print_host_address): Make "addr" parameter a
7365 pointer constant.
7366 * utils.c (gdb_print_host_address): Update.
7367
366cfc9e
KB
73682003-04-09 Kevin Buettner <kevinb@redhat.com>
7369
7370 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7371 register number for R0 is 0.
7372
cd983b5c
JB
73732003-04-09 J. Brobecker <brobecker@gnat.com>
7374
7375 * frame.h (struct gdbarch): Add opaque structure definition
7376 to avoid a compilation warning on LynxOS 4.0.
7377
d1340264
AC
73782003-04-09 Andrew Cagney <cagney@redhat.com>
7379
7380 * frame.h (struct frame_info): Delete field "pc". Replace
7381 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7382 structure.
7383 * frame.c (frame_pc_unwind): Update.
7384 (create_sentinel_frame): Do not set "pc".
7385 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7386 (get_frame_pc): Call frame_pc_unwind.
7387 (deprecated_update_frame_pc_hack): Update.
7388 (create_new_frame): Use "pc" not "->pc".
7389
90a6fffb
AC
73902003-04-09 Andrew Cagney <cagney@redhat.com>
7391
7392 * frame.c (get_frame_id): Eliminate code updating "frame".
7393 (legacy_get_prev_frame): Ditto.
7394 (get_frame_base): Return id.base directly.
7395 (deprecated_update_frame_base_hack): Update "id.base".
7396 * frame.h (struct frame_info): Delete field "frame".
7397
2fbce691
AC
73982003-04-09 Andrew Cagney <cagney@redhat.com>
7399
7400 * NEWS: Mention that the "Sequent family" is obsolete.
7401 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7402 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7403 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7404 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7405 * config/i386/tm-ptx4.h: Obsolete file.
7406 * config/i386/tm-ptx.h: Obsolete file.
7407 * symm-tdep.c: Obsolete file.
7408 * config/i386/symmetry.mt: Obsolete file.
7409 * config/i386/tm-symmetry.h: Obsolete file.
7410 * symm-nat.c: Obsolete file.
7411 * config/i386/nm-symmetry.h: Obsolete file.
7412 * config/i386/xm-symmetry.h: Obsolete file.
7413 * config/i386/symmetry.mh: Obsolete file.
7414 * config/i386/nm-ptx4.h: Obsolete file.
7415 * config/i386/ptx4.mh: Obsolete file.
7416 * config/i386/ptx.mt: Obsolete file.
7417 * config/i386/ptx.mh: Obsolete file.
7418 * config/i386/xm-ptx4.h: Obsolete file.
7419 * config/i386/xm-ptx.h: Obsolete file.
7420
78c43945
AC
74212003-04-09 Andrew Cagney <cagney@redhat.com>
7422
7423 Obsolete mips*-*-mach3*.
7424 * NEWS: Mention that mips*-*-mach3* is obsolete.
7425 * m3-nat.c: Obsolete file.
7426 * config/nm-m3.h: Obsolete file.
7427 * config/mips/tm-mipsm3.h: Obsolete file.
7428 * config/mips/mipsm3.mt: Obsolete file.
7429 * config/mips/mipsm3.mh: Obsolete file.
7430 * config/mips/xm-mipsm3.h: Obsolete file.
7431 * mipsm3-nat.c: Obsolete file.
7432 * configure.host: Obsolete mips-dec-mach3*.
7433 * configure.tgt: Obsolete mips*-*-mach3*.
7434
f1908289
AC
74352003-04-09 Andrew Cagney <cagney@redhat.com>
7436
7437 * doublest.h: Update copyright.
7438 (deprecated_store_floating, deprecated_extract_floating): Rename
7439 store_floating and extract_floating. Update comments.
7440 * doublest.c: Update copyright.
7441 (extract_floating_by_length): Replace extract_floating.
7442 (store_floating_by_length): Replace store_floating.
7443 (deprecated_extract_floating): New function.
7444 (deprecated_store_floating): New function.
7445 (extract_typed_floating): Call extract_floating_by_length.
7446 (store_typed_floating): Call store_floating_by_length.
7447 * x86-64-tdep.c (x86_64_store_return_value): Update.
7448 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7449 (sh64_extract_return_value): Update.
7450 (sh_sh4_register_convert_to_virtual): Update.
7451 (sh_sh64_register_convert_to_virtual): Update.
7452 (sh_sh4_register_convert_to_raw): Update.
7453 (sh_sh64_register_convert_to_raw): Update.
7454 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7455 (rs6000_register_convert_to_raw): Update.
7456 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7457 (ia64_register_convert_to_raw): Update.
7458 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7459 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7460 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7461 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7462 (alpha_register_convert_to_raw): Update.
7463
4443bd83
AC
74642003-04-08 Andrew Cagney <cagney@redhat.com>
7465
7466 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7467 * gdbarch.h, gdbarch.c: Re-generate.
7468 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7469 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7470 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7471 conditionally, use frame_pc_unwind as an alternative. Add
7472 comments.
7473 * arch-utils.c (init_frame_pc_default): Only call
7474 SAVED_PC_AFTER_CALL when available.
7475
c0236d92
EZ
74762003-04-08 Elena Zannoni <ezannoni@redhat.com>
7477
fbe586ae 7478 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7479 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7480 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7481 (start_remote): Ditto.
7482 (handle_inferior_event): Ditto.
7483 (save_inferior_status): Ditto.
7484 (restore_inferior_status): Ditto.
7485 * infcmd.c (attach_command): Ditto.
7486 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7487 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7488 * alpha-tdep.c (heuristic_proc_start): Ditto.
7489 * mips-tdep.c (heuristic_proc_start): Ditto.
7490 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7491 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7492 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7493 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7494 * remote-vx.c (vx_create_inferior): Ditto.
7495
74962003-04-08 Elena Zannoni <ezannoni@redhat.com>
7497
7498 * infrun.c (stop_soon_quietly): Make it an enum, to better
7499 override the default behavior of handle_inferior_event.
7500 (clear_proceed_status): Update uses of stop_soon_quietly to
7501 reflect that it is now an enum.
7502 (start_remote): Ditto.
7503 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7504 is set to handle the new GNU/Linux kernel behavior for
7505 attach/sigstop. Update uses of stop_soon_quietly.
7506 * inferior.h (enum stop_kind): New enum.
7507 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7508 Reset normal handle_inferior_event behavior, afterwards.
7509 * fork-child.c (startup_inferior): Update.
7510 * alpha-tdep.c (heuristic_proc_start): Update.
7511 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7512 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7513 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7514 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7515 * remote-vx.c (vx_create_inferior): Update.
7516 * mips-tdep.c (heuristic_proc_start): Update.
7517
1211bce3
EZ
75182003-04-07 Elena Zannoni <ezannoni@redhat.com>
7519
7520 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7521 be freed more than once, causing wild memory corruptions.
1211bce3 7522 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7523 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7524 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7525 with the "core" target.
1211bce3 7526
f0ef6b29
KB
75272003-04-07 Kevin Buettner <kevinb@redhat.com>
7528
7529 * mips-tdep.c (mips_print_fp_register): New function, created from
7530 do_fp_register_row(). Registers are now (also) printed as hex.
7531 Only one register is printed per row.
7532 (mips_print_register, do_fp_register_row): Print floating point
7533 registers with mips_print_fp_register().
7534
8cf71652
AC
75352003-04-06 Andrew Cagney <cagney@redhat.com>
7536
5e488a7b
AC
7537 * valprint.h (inspect_it): Add extern declaration.
7538 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7539 (selectors_info, classes_info): Ditto.
7540 (find_objc_msgcall): Fix indentation.
7541 (objc_printstr): Delete extern declarations.
7542
8cf71652
AC
7543 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7544
e6ba3bc9
AC
75452003-04-06 Andrew Cagney <cagney@redhat.com>
7546
7547 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7548 Update comment.
7549 * frame.c (legacy_saved_regs_this_id): Update.
7550 (legacy_get_prev_frame): Update.
7551 * xstormy16-tdep.c: Update comment.
7552 * sparc-tdep.c (sparc_frame_chain): Update comment.
7553 * blockframe.c (legacy_frame_chain_valid): Update.
7554
55e1d7e7
AC
75552003-04-06 Andrew Cagney <cagney@redhat.com>
7556
996179ee
AC
7557 * valprint.c (val_print_type_code_int): Delete #ifdef
7558 PRINT_TYPELESS_INTEGER code.
7559
55e1d7e7
AC
7560 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7561 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7562 multi-arch definition.
7563 * gdbarch.h: Re-generate.
7564
43bd9a9e
AC
75652003-04-05 Andrew Cagney <cagney@redhat.com>
7566
7567 Eliminate FRAME_FIND_SAVED_REGS.
7568 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7569 Change FSR parameter to a pointer.
7570 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7571 Assume FSR parameter is a pointer.
7572 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7573 Make fsr a pointer.
7574 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7575 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7576 saved_regs a pointer.
7577 (hppa_frame_saved_pc): Ditto.
7578 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7579 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7580 pointer.
7581 (restore_pc_queue): Make fsr a pointer.
7582 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7583 (hppa_frame_chain): Make saved_regs a pointer, call
7584 hppa_frame_init_saved_regs.
7585 * sparc-tdep.c: Include "gdb_assert.h".
7586 (sparc_frame_find_saved_regs): Replace internal_error with
7587 gdb_assert.
7588 * remote-vxsparc.c (vx_read_register): Delete reference to
7589 FRAME_FIND_SAVED_REGS.
7590 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7591 * gdbarch.h: Regenerate.
7592 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7593 (deprecated_get_frame_saved_regs): Delete declaration.
7594 (struct frame_saved_regs): Delete definition.
7595 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7596 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7597 (hppa_frame_find_saved_regs): Delete declaration.
7598 (FRAME_FIND_SAVED_REGS): Delete macro.
7599 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7600 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7601 FRAME_FIND_SAVED_REGS in comment.
7602
be41e9f4
AC
76032003-04-05 Andrew Cagney <cagney@redhat.com>
7604
7605 * frame.c (frame_func_unwind, get_frame_func): New functions.
7606 * frame.h (get_frame_func, frame_func_unwind): Declare.
7607 (struct frame_info): Add field "prev_func" for caching the
7608 previous frame's function address.
7609 * arm-tdep.c (arm_frameless_function_invocation): Combine
7610 get_pc_function_start and get_frame_pc into get_frame_func.
7611 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7612 (sh64_nofp_frame_init_saved_regs): Ditto.
7613 * s390-tdep.c (s390_function_start): Ditto.
7614 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7615 (rs6000_frameless_function_invocation): Ditto.
7616 (rs6000_frame_saved_pc): Ditto.
7617 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7618 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7619 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7620 (i386_frame_init_saved_regs): Ditto.
7621 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7622 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7623 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7624 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7625 * blockframe.c (frameless_look_for_prologue): Ditto.
7626
a01dd7cc
AC
76272003-04-05 Andrew Cagney <cagney@redhat.com>
7628
7629 * frame.c (legacy_get_prev_frame): Link prev to next at the
7630 function start. Update comments.
7631
5e5592e6
AC
76322003-04-05 Andrew Cagney <cagney@redhat.com>
7633
7634 * frame.c (get_frame_id): Update comment.
7635 (legacy_get_prev_frame): Update comment.
7636 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7637 * gdbarch.h: Regenerate.
7638 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7639 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7640
6fba5002
AC
76412003-04-05 Andrew Cagney <cagney@redhat.com>
7642
7643 * stack.c (print_frame_info): Use get_frame_pc.
7644
7df05f2b
AC
76452003-04-04 Andrew Cagney <cagney@redhat.com>
7646
7647 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7648 the frame's type from the unwinder.
7649 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7650 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7651 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7652 (get_frame_base_address): Use get_frame_type.
7653 (get_frame_locals_address, get_frame_args_address): Ditto.
7654 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7655 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7656 (struct frame_info): Add comment explaining why the frame contains
7657 a "type" field.
7658 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7659 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7660 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7661 NORMAL_FRAME.
7662 * frame-unwind.h: Include "frame.h".
7663 (struct frame_unwind): Add "type" field.
7664 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7665
11889732
AC
76662003-04-04 Andrew Cagney <cagney@redhat.com>
7667
7668 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7669 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7670 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7671 get_frame_base.
7672 (d10v_unwind_dummy_id): Use frame_id_build.
7673 * frame.c (find_frame_sal): Use get_frame_pc.
7674 (create_new_frame): Use deprecated_update_frame_pc_hack and
7675 deprecated_update_frame_base_hack.
7676 (create_sentinel_frame): Add comment about ->pc going away.
7677 (get_prev_frame): Add comment about ->pc going away.
7678 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7679 frame_id_build, deprecated_update_frame_pc_hack and
7680 deprecated_update_frame_base_hack.
7681 (select_frame): Use get_frame_pc.
7682 (legacy_saved_regs_this_id): Use frame_id_build.
7683
50c46a0d
EZ
76842003-04-04 Elena Zannoni <ezannoni@redhat.com>
7685
fbe586ae
RH
7686 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7687 signed integer case.
7688 (classify_argument): Handle enumerations and references.
50c46a0d 7689
50bbdbd9
AC
76902003-04-04 Andrew Cagney <cagney@redhat.com>
7691
7692 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7693 ID to NULL.
7694
36018d2e
AF
76952003-04-01 Adam Fedor <fedor@gnu.org>
7696
7697 * gdb/objc-lang.c (selectors_info): Replace calls to
7698 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7699 SYMBOL_NATURAL_NAME.
7700 (classes_info, find_methods): Likewise.
7701
35cec841
KB
77022003-04-03 Kevin Buettner <kevinb@redhat.com>
7703
7704 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7705 ``mach'' to the value determined by bfd_default_set_arch_mach().
7706
43136899
BR
77072003-04-02 Bob Rossi <bob_rossi@cox.net>
7708
7709 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7710 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7711 (mi-cmd-file.o): Update dependencies.
7712
040b99fd
KB
77132003-04-01 Kevin Buettner <kevinb@redhat.com>
7714
7715 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7716 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7717
9a3d7dfd
AF
77182003-04-01 Adam Fedor <fedor@gnu.org>
7719
7720 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7721 * language.h (struct language_defn): Add la_demangle.
7722 (language_demangle): Declare.
7723 * language.c (language_demangle): New function.
7724 (unk_lang_demangle): Likewise.
7725 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7726 Add ukn_lang_demangle.
9a3d7dfd 7727 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7728 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7729 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7730 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7731 * jv-lang.c (java_demangle): New function
7732 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7733 * objc-lang.c (objc_demangle): Add options argument
7734 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7735 * maint.c (maintenance_demangle): Replace switch with
7736 call to language_demangle.
7737 * utils.c (fprintf_symbol_filtered): Likewise.
7738
5e074003
AC
77392003-04-01 Andrew Cagney <cagney@redhat.com>
7740
7741 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7742 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7743 PRINT_TYPELESS_INTEGER.
7744 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7745 PUSH_RETURN_ADDRESS.
7746
270cb5d6
AC
77472003-04-01 Andrew Cagney <cagney@redhat.com>
7748
7749 * Makefile.in (d10v-tdep.o): Update dependencies.
7750 * d10v-tdep.c: Include "frame-base.h".
7751 (d10v_frame_unwind): Make constant.
7752 (d10v_frame_base_address): New function.
7753 (d10v_frame_base): New variable.
7754 (d10v_gdbarch_init): Set frame_base default.
7755 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7756 comment for base.
7757 (d10v_frame_unwind_cache): Set and use "prev_sp".
7758 (d10v_frame_this_id): Use the previous frame's inner most stack
7759 address and this frame's func address for the frame ID. Use
7760 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7761
6bfb3e36
AC
77622003-04-01 Andrew Cagney <cagney@redhat.com>
7763
7764 * frame.h (get_frame_locals_address, get_frame_args_address):
7765 Refer to the base address, instead of the address of the first
7766 local or parameter.
8ffd9b1b 7767
da62e633
AC
77682003-04-01 Andrew Cagney <cagney@redhat.com>
7769
7770 Add frame debug info addresses:
7771 * frame-base.c: New file.
7772 * frame-base.h: New file.
7773 * frame.h (struct frame_base): Add opaque declaration.
7774 (get_frame_base): Update comment.
7775 (get_frame_base_address): Declare.
7776 (get_frame_locals_address): Declare.
7777 (get_frame_args_address): Declare.
7778 (struct frame_info): Add "base" and "base_cache". Update
7779 comments on the unwinder.
7780 * frame.c: Include "frame-base.h".
7781 (get_frame_locals_address): New function.
7782 (get_frame_base_address): New function.
7783 (get_frame_args_address): New function.
7784 * findvar.c (read_var_value): Use get_frame_locals_address and
7785 get_frame_args_address.
7786 * stack.c (frame_info): Use get_frame_locals_address and
7787 get_frame_args_address.
7788 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7789 moved to "frame-base.c".
7790 * printcmd.c (print_frame_nameless_args): Ditto.
7791 * symtab.h (address_class): Update comments.
7792 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7793 get_frame_base_address.
7794 * dwarf2expr.c (execute_stack_op): Ditto.
7795 * Makefile.in (frame_base_h): Define.
7796 (frame.o): Update dependencies.
7797 (frame-base.o): Add dependencies.
7798 (SFILES): Add frame-base.c.
7799 (COMMON_OBS): Add frame-base.o.
7800
3d30e9c2
AC
78012003-04-01 Andrew Cagney <cagney@redhat.com>
7802
7803 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7804 CALL_DUMMY_LENGTH): Ditto.
7805 * gdbarch.c: Re-generate.
7806 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7807 (CALL_DUMMY_LENGTH): Delete macro.
7808 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7809 * arm-tdep.c (arm_gdbarch_init): Ditto.
7810 * avr-tdep.c (avr_gdbarch_init): Ditto.
7811 * cris-tdep.c (cris_gdbarch_init): Ditto.
7812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7813 * frv-tdep.c (frv_gdbarch_init): Ditto.
7814 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7815 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7816 * i386-tdep.c (i386_gdbarch_init): Ditto.
7817 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7819 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7820 * mips-tdep.c (mips_gdbarch_init): Ditto.
7821 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7822 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7823 * s390-tdep.c (s390_gdbarch_init): Ditto.
7824 * sh-tdep.c (sh_gdbarch_init): Ditto.
7825 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7826 * v850-tdep.c (v850_gdbarch_init): Ditto.
7827 * vax-tdep.c (vax_gdbarch_init): Ditto.
7828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7829
ce0c7262
CV
78302003-04-01 Corinna Vinschen <vinschen@redhat.com>
7831
7832 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7833
73dd234f
AC
78342003-04-01 Andrew Cagney <cagney@redhat.com>
7835
7836 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7837 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7838 * gdbarch.h, gdbarch.c: Re-generate.
7839 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7840 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7841 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7842 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7843 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7844 * infcmd.c (run_stack_dummy): Simplify assuming
7845 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7846 * infrun.c (handle_inferior_event): Ditto.
7847 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7848 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7849 * arm-tdep.c (arm_gdbarch_init): Ditto.
7850 * avr-tdep.c (avr_gdbarch_init): Ditto.
7851 * cris-tdep.c (cris_gdbarch_init): Ditto.
7852 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7853 * frv-tdep.c (frv_gdbarch_init): Ditto.
7854 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7855 * i386-tdep.c (i386_gdbarch_init): Ditto.
7856 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7858 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7859 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7860 * mips-tdep.c (mips_gdbarch_init): Ditto.
7861 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7862 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7863 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7864 * s390-tdep.c (s390_gdbarch_init): Ditto.
7865 * sh-tdep.c (sh_gdbarch_init): Ditto.
7866 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7867 * v850-tdep.c (v850_gdbarch_init): Ditto.
7868 * vax-tdep.c (vax_gdbarch_init): Ditto.
7869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7870
97606a13
DJ
78712003-04-01 Daniel Jacobowitz <drow@mvista.com>
7872
7873 * symfile.c (symfile_relocate_debug_section): Update call to
7874 bfd_simple_get_relocated_section_contents.
7875
e8ab51f7
AC
78762003-03-31 Andrew Cagney <cagney@redhat.com>
7877
7878 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7879 * gdbarch.h, gdbarch.c: Regenerate.
7880 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7881 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7882 available.
7883 * frame.h (generic_fix_call_dummy): Delete declaration.
7884 * dummy-frame.h: Update comment.
7885 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7887 fix_call_dummy.
7888 * sh-tdep.c (sh_gdbarch_init): Ditto.
7889 * s390-tdep.c (s390_gdbarch_init): Ditto.
7890 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7891 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7892 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7893 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7894 * i386-tdep.c (i386_gdbarch_init): Ditto.
7895 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7896 * frv-tdep.c (frv_gdbarch_init): Ditto.
7897 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7898 * cris-tdep.c (cris_gdbarch_init): Ditto.
7899 * avr-tdep.c (avr_gdbarch_init): Ditto.
7900 * arm-tdep.c (arm_gdbarch_init): Ditto.
7901
018d1b48
JB
79022003-03-31 J. Brobecker <brobecker@gnat.com>
7903
7904 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7905 (INIT_FRAME_AP): Likewise.
7906 (EXTRA_FRAME_INFO): Likewise.
7907
e9a2674e
AC
79082003-03-31 Andrew Cagney <cagney@redhat.com>
7909
7910 * gdbarch.sh: Include "symfile.h".
7911 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7912 * gdbarch.h, gdbarch.c: Re-generate.
7913 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7915 call_dummy_address, the default is at entry_point_address.
7916 * v850-tdep.c (v850_gdbarch_init): Ditto.
7917 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7918 * sh-tdep.c (sh_gdbarch_init): Ditto.
7919 * s390-tdep.c (s390_gdbarch_init): Ditto.
7920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7921 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7922 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7923 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7924 * i386-tdep.c (i386_gdbarch_init): Ditto.
7925 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7926 * frv-tdep.c (frv_gdbarch_init): Ditto.
7927 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7928 * cris-tdep.c (cris_gdbarch_init): Ditto.
7929 * arm-tdep.c (arm_gdbarch_init): Ditto.
7930
e8a8712a
AC
79312003-03-31 Andrew Cagney <cagney@redhat.com>
7932
7933 * gdbarch.sh (CALL_DUMMY_P): Delete.
7934 * gdbarch.h, gdbarch.c: Re-generate.
7935 * inferior.h (CALL_DUMMY_P): Delete macro.
7936 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7937 * vax-tdep.c (vax_gdbarch_init): Update.
7938 * v850-tdep.c (v850_gdbarch_init): Update.
7939 * sparc-tdep.c (sparc_gdbarch_init): Update.
7940 * sh-tdep.c (sh_gdbarch_init): Update.
7941 * s390-tdep.c (s390_gdbarch_init): Update.
7942 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7943 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7944 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7945 * mips-tdep.c (mips_gdbarch_init): Update.
7946 * mcore-tdep.c (mcore_gdbarch_init): Update.
7947 * m68k-tdep.c (m68k_gdbarch_init): Update.
7948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7949 * ia64-tdep.c (ia64_gdbarch_init): Update.
7950 * i386-tdep.c (i386_gdbarch_init): Update.
7951 * h8300-tdep.c (h8300_gdbarch_init): Update.
7952 * frv-tdep.c (frv_gdbarch_init): Update.
7953 * d10v-tdep.c (d10v_gdbarch_init): Update.
7954 * cris-tdep.c (cris_gdbarch_init): Update.
7955 * breakpoint.c (deprecated_frame_in_dummy): Update.
7956 * avr-tdep.c (avr_gdbarch_init): Update.
7957 * alpha-tdep.c (alpha_gdbarch_init): Update.
7958 * arm-tdep.c (arm_gdbarch_init): Update.
7959 * dummy-frame.c (dummy_frame_this_id): Update comments.
7960 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7961 * frame.c (legacy_get_prev_frame): Ditto.
7962 * valops.c (call_function_by_hand): Delete function.
7963 (hand_function_call): Rename to call_function_by_hand
7964
ed234cf8
AC
79652003-03-30 Andrew Cagney <cagney@redhat.com>
7966
7967 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7968 * value.h (struct value): Update comment.
ed234cf8 7969
06c77151
AC
79702003-03-30 Andrew Cagney <cagney@redhat.com>
7971
6c2b5168
AC
7972 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7973 D10V_FP_REGNUM.
7974 (d10v_gdbarch_init): Do not set fp_regnum.
7975
06c77151
AC
7976 * frame.c (get_frame_base): Force ID initialization.
7977 (get_prev_frame): Move computation of the frame ID from here ...
7978 (get_frame_id): ... to here.
7979 (legacy_get_prev_frame): Mark the frame ID as valid.
7980 * frame.h (struct frame_info): Add field "id_p".
7981
97a1a11c
MK
79822003-03-30 Mark Kettenis <kettenis@gnu.org>
7983
7984 * i386-tdep.c (i386_store_struct_return): Removed.
7985 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7986
6c0e89ed
AC
79872003-03-30 Andrew Cagney <cagney@redhat.com>
7988
7989 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7990 * gdbarch.h, gdbarch.c: Regenerate.
7991 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7993 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7994 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7995 * i386-tdep.c (i386_gdbarch_init): Ditto.
7996 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7997 * cris-tdep.c (cris_gdbarch_init): Ditto.
7998 * vax-tdep.c (vax_gdbarch_init): Ditto.
7999 * s390-tdep.c (s390_gdbarch_init): Ditto.
8000 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8001 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8002 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8003 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8004 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8005 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8006 * sparc-tdep.c (sparc_gdbarch_init): Update.
8007 * sh-tdep.c (sh_gdbarch_init): Update.
8008 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8009 * mips-tdep.c (mips_gdbarch_init): Update.
8010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8011 * ia64-tdep.c (ia64_gdbarch_init): Update.
8012 * frv-tdep.c (frv_gdbarch_init): Update.
8013 * avr-tdep.c (avr_gdbarch_init): Update.
8014 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8015 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8016 instead of when push_dummy_call is not available.
8ffd9b1b 8017
f7dd6af2
AC
80182003-03-30 Andrew Cagney <cagney@redhat.com>
8019
8020 * infttrace.c: Include "gdbthread.h".
8021 (parent_attach_all): Fix function signature.
8022 (call_ptrace): Update call.
8023 * Makefile.in (infttrace.o): Update dependencies.
8024
28f617b3
AC
80252003-03-30 Andrew Cagney <cagney@redhat.com>
8026
8027 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8028 PUSH_RETURN_ADDRESS.
8029 * gdbarch.h, gdbarch.c: Regenerate.
8030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8031 * x86-64-tdep.c (x86_64_init_abi): Update.
8032 * v850-tdep.c (v850_gdbarch_init): Update.
8033 * sparc-tdep.c (sparc_gdbarch_init): Update.
8034 * sh-tdep.c (sh_gdbarch_init): Update.
8035 * s390-tdep.c (s390_gdbarch_init): Update.
8036 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8037 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8038 * mips-tdep.c (mips_gdbarch_init): Update.
8039 * mcore-tdep.c (mcore_gdbarch_init): Update.
8040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8041 * ia64-tdep.c (ia64_gdbarch_init): Update.
8042 * i386-tdep.c (i386_gdbarch_init): Update.
8043 * h8300-tdep.c (h8300_gdbarch_init): Update.
8044 * frv-tdep.c (frv_gdbarch_init): Update.
8045 * cris-tdep.c (cris_gdbarch_init): Update.
8046 * avr-tdep.c (avr_gdbarch_init): Update.
8047 * arm-tdep.c (arm_gdbarch_init): Update.
8048 * valops.c (hand_function_call): Update.
8049
4d628cd7
AC
80502003-03-29 Andrew Cagney <cagney@redhat.com>
8051
8052 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8053 sizeof_call_dummy_words.
8054 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8055 define.
8056 * gdbarch.h: Regenerate.
8ffd9b1b 8057
65e82032
AC
80582003-03-29 Andrew Cagney <cagney@redhat.com>
8059
8060 * infttrace.h: New file.
8061 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8062 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8063 (hpread_read_doc_function_type): Detect an initialized type1.
8064 (hpread_quick_traverse): Initialize mod_name_string.
8065 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8066 (som_solib_get_solib_by_pc): Declare.
8067 (so_lib_thread_start_addr): Declare.
8068 (no_shared_libraries): Declare.
8069 * somread.c (init_import_symbols): Make static. Add forward
8070 declaration.
8071 * config/pa/nm-hppah.h: Include "infttrace.h" for
8072 parent_attach_all.
8073 (hppa_insert_hw_watchpoint): Declare.
8074 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8075 * hppah-nat.c: Include "gdb_string.h".
8076 (parent_attach_all): Delete extern declaration, moved to
8077 "infttrace.h".
8078 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8079 int.
8080 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8081 * Makefile.in (infttrace_h): Define.
8082 (hpread.o): Update dependencies.
8083 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8084 * hppa-hpux-tdep.c: Include "gdb_string.h".
8085 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8086 * infrun.c (handle_inferior_event): Always initialize
8087 stepped_after_stopped_by_watchpoint. Add default and remove
8088 fallthrough in switch statement.
8089 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8090 parameter to int.
8091 (hppa_remove_hw_watchpoint): Ditto.
8092
2c3bbe77
AC
80932003-03-29 Andrew Cagney <cagney@redhat.com>
8094
8095 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8096 offset.
8097
2dd604e7
RE
80982003-03-29 Richard Earnshaw <rearnsha@arm.com>
8099
8100 * arm-tdep.c (arm_push_arguments): Delete.
8101 (struct stack_item): New type.
8102 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8103 (arm_store_struct_return): Delte.
8104 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8105 arm_push_arguments or arm_store_struct_return.
8106
e8933a55
AC
81072003-03-28 Andrew Cagney <cagney@redhat.com>
8108
8109 * Makefile.in (d10v-tdep.o): Update dependencies.
8110 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8111 * d10v-tdep.c: Include "remote.h".
8112 (target_resume_hook): Delete extern declaration.
8113 (target_wait_loop_hook): Ditto.
8114 (tdisassemble_command): Eliminate assignment in "if" conditional.
8115 (d10v_ts2_register_sim_regno): Eliminate call to
8116 legacy_register_sim_regno.
8117 (d10v_ts3_register_sim_regno): Ditto.
8118
6949171e
JJ
81192003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8120
8121 * thread.c: Reindented.
8122 * lin-lwp.c: Ditto.
8123 * linux-proc.c: Ditto.
8124
98c7071f
BR
81252003-03-28 Bob Rossi <bob_rossi@cox.net>
8126
fbe586ae 8127 * MAINTAINERS (write after approval): Add myself.
98c7071f 8128
5edc9ca6
TR
81292003-03-27 Theodore A. Roth <troth@openavr.org>
8130
8131 * objc-exp.y: Add missing semi-colons.
8132
378bfd1b
AC
81332003-03-27 Andrew Cagney <cagney@redhat.com>
8134
8135 * regcache.c (write_sp): Delete function and references.
8136 * inferior.h (write_sp): Delete declaration.
8137 * valops.c (hand_function_call): Replace write_sp with
8138 TARGET_WRITE_SP.
8139 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8140 (sparc_pop_frame): Ditto.
8ffd9b1b 8141
56056df7
AC
81422003-03-27 Andrew Cagney <cagney@redhat.com>
8143
8144 * NEWS: Mention removal of support for hppa*-*-bsd* and
8145 hppa*-*-osf* natives, and hppa*-*-pro* target.
8146 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8147 * config/pa/xm-pa.h: Obsolete file.
8148 * config/pa/xm-hppab.h: Obsolete file.
8149 * config/pa/nm-hppab.h: Obsolete file.
8150 * config/pa/tm-hppab.h: Obsolete file.
8151 * config/pa/tm-hppao.h: Obsolete file.
8152 * config/pa/nm-hppao.h: Obsolete file.
8153 * config/pa/tm-pro.h: Obsolete file.
8154 * config/pa/hppaosf.mt: Obsolete file.
8155 * config/pa/hppaosf.mh: Obsolete file.
8156 * config/pa/hppapro.mt: Obsolete file.
8157 * config/pa/hppabsd.mt: Obsolete file.
8158 * config/pa/hppabsd.mh: Obsolete file.
8159 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8160 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8161 hppa*-*-osf*.
8162
5873a88d
AC
81632003-03-27 Andrew Cagney <cagney@redhat.com>
8164
8165 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8166 push_arguments. Don't set push_return_address or write_sp.
8167 (d10v_push_dummy_call): Replace d10v_push_arguments.
8168 (d10v_push_return_address, d10v_write_sp): Delete function,
8169 handled by push_dummy_call.
8170
b81774d8
AC
81712003-03-26 Andrew Cagney <cagney@redhat.com>
8172
8173 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8174 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8175 regcache and dummy_addr parameters.
8176 * gdbarch.h, gdbarch.c: Re-generate.
8177 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8178 available; assume it will handle stack alignment and return
8179 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8180 legacy_push_arguments.
8181 (legacy_push_arguments): Rename default_push_arguments.
8182 * value.h (legacy_push_arguments): Rename default_push_arguments.
8183 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8184 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8185 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8186 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8187 * config/i386/tm-symmetry.h: Update.
8188 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8189 * x86-64-tdep.c (x86_64_init_abi): Update.
8190 * v850-tdep.c (v850_gdbarch_init): Update.
8191 * sparc-tdep.c (sparc_gdbarch_init): Update.
8192 * sh-tdep.c (sh_gdbarch_init): Update.
8193 * s390-tdep.c (s390_gdbarch_init): Update.
8194 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8196 * mips-tdep.c (mips_gdbarch_init): Update.
8197 * mcore-tdep.c (mcore_gdbarch_init): Update.
8198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8199 * ia64-tdep.c (ia64_gdbarch_init): Update.
8200 * i386-tdep.c (i386_gdbarch_init): Update.
8201 * hppa-tdep.c (hppa_gdbarch_init): Update.
8202 * h8300-tdep.c (h8300_gdbarch_init): Update.
8203 * frv-tdep.c (frv_gdbarch_init): Update.
8204 * d10v-tdep.c (d10v_gdbarch_init): Update.
8205 * cris-tdep.c (cris_gdbarch_init): Update.
8206 * avr-tdep.c (avr_gdbarch_init): Update.
8207 * arm-tdep.c (arm_gdbarch_init): Update.
8208 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8209 * alpha-tdep.c (alpha_gdbarch_init): Update.
8210
f541410f
DJ
82112003-03-26 Daniel Jacobowitz <drow@mvista.com>
8212
8213 * signals/signals.c (do_target_signal_to_host): Correct realtime
8214 signal range test.
8215
69f567ae
DJ
82162003-03-26 Daniel Jacobowitz <drow@mvista.com>
8217
8218 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8219 (struct sal_chain, map_catch_names): Remove.
8220 (catch_exception_command_1): Don't call
8221 handle_gnu_4_16_catch_command.
8222
d5d14a5a
DJ
82232003-03-26 Daniel Jacobowitz <drow@mvista.com>
8224
8225 From Mark Dettinger <dettinge@de.ibm.com>:
8226 * dwarf2cfi.c (read_2u): Increment pointer by two.
8227
bdd73e22
DJ
82282003-03-26 Daniel Jacobowitz <drow@mvista.com>
8229
8230 * signals/signals.c: Fix typos in last change.
8231
960cb555
DJ
82322003-03-26 Daniel Jacobowitz <drow@mvista.com>
8233
8234 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8235 not already defined. Use __SIGRTMIN if available.
8236 (target_signal_from_host): Remove SIGRTMIN block.
8237 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8238 the signal is within the realtime range.
8239
f636b87d
AF
82402003-03-25 Adam Fedor <fedor@gnu.org>
8241
8242 * Makefile.in (infrun.o): Add $(language_h)
8243 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8244 for language specific trampolines.
8245 * language.h (struct language_defn): Add skip_trampoline.
8246 (skip_language_trampoline): Declare.
8247 * language.c (unk_lang_trampoline, skip_language_trampoline):
8248 New functions.
8249 (unknown_language_defn, auto_language_defn, local_language_defn):
8250 Add ukn_lang_trampoline.
8251 * ada-lang.c (ada_language_defn): Add NULL for language
8252 specific skip_trampoline.
8253 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8254 scm-lang.c: Likewise.
8255 * objc-lang.c (objc_skip_trampoline): New function.
8256 (objc_language_defn): Add objc_skip_trampoline.
8257
28f617b3 82582003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8259
8260 * frame.c (get_prev_frame): Delay validating a frame's ID -
8261 non-NULL, didn't go backwards - until an attempt to unwind it to
8262 the previous frame.
8263
f933a9c5
AC
82642003-03-25 Andrew Cagney <cagney@redhat.com>
8265
8266 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8267 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8268 * gdbarch.h, gdbarch.c: Re-generate.
8269 * config/sparc/tm-sparc.h
8270 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8271 * sparc-tdep.c (sparc_gdbarch_init): Set
8272 deprecated_extra_stack_alignment_needed.
8273 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8275 extra_stack_alignment_needed.
8276 * v850-tdep.c (v850_gdbarch_init): Ditto.
8277 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8278 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8279 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8280 * cris-tdep.c (cris_gdbarch_init): Ditto.
8281 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8283
4183d812
AC
82842003-03-25 Andrew Cagney <cagney@redhat.com>
8285
8286 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8287 STORE_STRUCT_RETURN.
8288 * gdbarch.h, gdbarch.c: Regenerate.
8289 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8290 (d10v_push_arguments): Set the struct return register.
8291 (d10v_gdbarch_init): Update.
8292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8293 * x86-64-tdep.c (x86_64_init_abi): Update.
8294 * vax-tdep.c (vax_gdbarch_init): Update.
8295 * v850-tdep.c (v850_gdbarch_init): Update.
8296 * sparc-tdep.c (sparc_gdbarch_init): Update.
8297 * sh-tdep.c (sh_gdbarch_init): Update.
8298 * s390-tdep.c (s390_gdbarch_init): Update.
8299 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8300 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8301 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8302 * mips-tdep.c (mips_gdbarch_init): Update.
8303 * mcore-tdep.c (mcore_gdbarch_init): Update.
8304 * m68k-tdep.c (m68k_gdbarch_init): Update.
8305 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8306 * ia64-tdep.c (ia64_gdbarch_init): Update.
8307 * i386-tdep.c (i386_gdbarch_init): Update.
8308 * hppa-tdep.c (hppa_gdbarch_init): Update.
8309 * h8300-tdep.c (h8300_gdbarch_init): Update.
8310 * frv-tdep.c (frv_gdbarch_init): Update.
8311 * cris-tdep.c (cris_gdbarch_init): Update.
8312 * avr-tdep.c (avr_gdbarch_init): Update.
8313 * arm-tdep.c (arm_gdbarch_init): Update.
8314 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8315
1bf6d5cc
AC
83162003-03-25 Andrew Cagney <cagney@redhat.com>
8317
8318 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8319 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8320 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8321 * gdbarch.h, gdbarch.c: Regenerate.
8322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8323 call_dummy_stack_adjust_p.
8324 * vax-tdep.c (vax_gdbarch_init): Ditto.
8325 * v850-tdep.c (v850_gdbarch_init): Ditto.
8326 * sh-tdep.c (sh_gdbarch_init): Ditto.
8327 * s390-tdep.c (s390_gdbarch_init): Ditto.
8328 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8329 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8330 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8331 * mips-tdep.c (mips_gdbarch_init): Ditto.
8332 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8333 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8335 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8336 * i386-tdep.c (i386_gdbarch_init): Ditto.
8337 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8338 * frv-tdep.c (frv_gdbarch_init): Ditto.
8339 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8340 * cris-tdep.c (cris_gdbarch_init): Ditto.
8341 * avr-tdep.c (avr_gdbarch_init): Ditto.
8342 * arm-tdep.c (arm_gdbarch_init): Ditto.
8343 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8344 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8345 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8346 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8347 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8348 call_dummy_stack_adjust_p.
8349 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8350 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8351 * sparc-tdep.c (sparc32_push_arguments): Update.
8352 * valops.c (hand_function_call): Update.
8353
71c08af0
CV
83542003-03-25 Corinna Vinschen <vinschen@redhat.com>
8355
8356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8357 set_gdbarch_char_signed.
8358
30757f90
RE
83592003-03-25 Richard Earnshaw <rearnsha@arm.com>
8360
8361 PR cli/548
8362 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8363
03d48a7d
RE
83642003-03-25 Richard Earnshaw <rearnsha@arm.com>
8365
8366 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8367 (_initialize_arm_tdep): Don't set tm_print_insn.
8368
2cf6873c
AF
83692003-03-24 Adam Fedor <fedor@gnu.org>
8370
8371 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8372 * objc-lang.h: Add multiple inclusion protection.
8373 (start_msglist, add_msglist, end_msglist): Additional declarations.
8374
17c0759e
RE
83752003-03-24 Richard Earnshaw <rearnsha@arm.com>
8376
8377 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8378 value was renamed to ARM_FLOAT_SOFT_FPA.
8379
618ce49f
AC
83802003-03-23 Andrew Cagney <cagney@redhat.com>
8381
8382 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8383 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8384 * gdbarch.h, gdbarch.c: Regenerate.
8385 * valops.c (hand_function_call): Update.
8386 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8387 * frame.c (legacy_saved_regs_this_id): Update.
8388 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8389 * dummy-frame.h: Update.
8390 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8391 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8392 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8393 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8394 * config/m68k/tm-sun3.h: Update.
8395 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8397 * x86-64-tdep.c (x86_64_init_abi): Update.
8398 * vax-tdep.c (vax_gdbarch_init): Update.
8399 * v850-tdep.c (v850_gdbarch_init): Update.
8400 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8401 * sh-tdep.c (sh_gdbarch_init): Update.
8402 * s390-tdep.c (s390_gdbarch_init): Update.
8403 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8404 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8405 (frame_get_saved_regs): Update.
8406 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8407 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8408 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8409 * mips-tdep.c (mips_gdbarch_init): Update.
8410 * mcore-tdep.c (mcore_gdbarch_init): Update.
8411 * m68k-tdep.c (m68k_gdbarch_init): Update.
8412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8413 * ia64-tdep.c (ia64_gdbarch_init): Update.
8414 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8415 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8416 (i386_interix_back_one_frame): Update.
8417 * hppa-tdep.c (hppa_gdbarch_init): Update.
8418 (hppa_init_extra_frame_info): Update.
8419 * h8300-tdep.c (h8300_gdbarch_init): Update.
8420 * frv-tdep.c (frv_gdbarch_init): Update.
8421 * cris-tdep.c (cris_gdbarch_init): Update.
8422 * avr-tdep.c (avr_gdbarch_init): Update.
8423 * arm-tdep.c (arm_gdbarch_init): Update.
8424 * alpha-tdep.c (alpha_gdbarch_init): Update.
8425
fd50bc42
RE
84262003-03-22 Richard Earnshaw <rearnsha@arm.com>
8427
8428 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8429 (arm_get_fp_model): Declare.
8430 * arm-tdep.c (fp_model_strings): New string array.
8431 (arm_fp_model, current_fp_model): New variables.
8432 (arm_get_fp_model): New function.
8433 (arm_set_fp): New function.
8434 (set_fp_model_sfunc): New function.
8435 (show_fp_model): New function.
8436 (_initialize_arm_tdep): Add new command to set/show the FPU.
8437 (arm_extract_return_value): Use arm_get_fp_model.
8438 (arm_store_return_value): Likewise.
8439 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8440 to initialize the floating-point data types.
8441 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8442 model is FPA.
8443
26304000
RE
84442003-03-22 Richard Earnshaw <rearnsha@arm.com>
8445
8446 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8447 the current setting of each value.
8448 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8449 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8450 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8451 commands and add new version as subcommands of "set/show arm".
8452
afd7eef0
RE
84532003-03-22 Richard Earnshaw <rearnsha@arm.com>
8454
8455 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8456 (set_arm_command, show_arm_command): New functions.
8457 (_initialize_arm_tdep): Add them.
8458 (num_disassembly_options): Renamed from num_flavor_options.
8459 (valid_disassembly_styles): Renamed from valid_flavors.
8460 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8461 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8462 set_disassembly_flavor_sfunc.
8463 (set_disassembly_style): Renamed from set_disassembly_flavor.
8464 (arm_othernames): Updated.
8465 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8466 command. Add "set/show arm disassembly" commands. Deprecate
8467 "othernames" command.
8468
299a7944
RE
84692003-03-22 Richard Earnshaw <rearnsha@arm.com>
8470
8471 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8472 (arm-tdep.o): Depend on elf_arm_h.
8473
c1dac9e6
RE
84742003-03-22 Richard Earnshaw <rearnsha@arm.com>
8475
8476 * Makefile.in (coff_internal_h): Define.
8477 (arm-tdep.o): Update dependencies.
8478
2702d96c
RE
84792003-03-22 Richard Earnshaw <rearnsha@arm.com>
8480
8481 * arm-tdep.c (prologue_cache): Delete.
8482 (check_prologue_cache, save_prologue_cache): Delete.
8483 (arm_scan_prologue): Don't check or update the prologue_cache.
8484 (arm_gdb_arch_init): Don't initialize it.
8485 (_initialize_arm_tdep): Likewise.
8486
27d5d74b
SC
84872003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8488
8489 * MAINTAINERS (tui): Maintainer of tui code.
8490
1762d96d
CV
84912003-03-21 Corinna Vinschen <vinschen@redhat.com>
8492
8493 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8494 (i386-cygwin-tdep.o): Add dependencies.
8495 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8496 * i386-cygwin-tdep.c: New file.
8497 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8498 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8499
4c2e2391
AC
85002003-03-20 Andrew Cagney <cagney@redhat.com>
8501
f20d38b7
AC
8502 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8503 (handle_inferior_event): Remove code calling
8504 DYNAMIC_TRAMPOLINE_NEXTPC.
8505
0022b738
AC
8506 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8507 already has a full path.
8508
864dbc90
AC
8509 * main.c (gdb_main): Return 1.
8510 (captured_main): Call error to report an invalid interpreter.
8511
4c2e2391
AC
8512 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8513 * alpha-osf1-tdep.c: Include "gdb_string.h".
8514
5ef7553b
JB
85152003-03-19 J. Brobecker <brobecker@gnat.com>
8516
8517 Continuing work to convert the hppa targets to multiarch partial.
8518
8519 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8520 method, now that hppa_push_dummy_frame has a conformant prototype.
8521 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8522 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8523 for the switch to multiarch partial.
8524
7bde8967
KB
85252003-03-19 Kevin Buettner <kevinb@redhat.com>
8526
8527 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8528 when iss is issNull.
8529
b006a9e9
KB
85302003-03-18 Kevin Buettner <kevinb@redhat.com>
8531
8532 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8533 NUM_REGS bounds check.
8534
5e2e9765
KB
85352003-03-18 Kevin Buettner <kevinb@redhat.com>
8536
8537 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8538 * mips-tdep.c (gdb_assert.h): Include.
8539 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8540 (mips_register_name): Handle integer registers explicitly. Add
8541 bounds checking.
8542 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8543 (mips_lsi33k_reg_names): Don't list integer registers; they're
8544 handled by mips_register_name() now.
8545 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8546 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8547 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8548 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8549 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8550
a2867626
AC
85512003-03-18 Andrew Cagney <cagney@redhat.com>
8552
8553 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8554 a void pointer.
8555 * gdbtypes.h (print_scalar_formatted): Update declaration.
8556 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8557
06600e06
JB
85582003-03-18 J. Brobecker <brobecker@gnat.com>
8559
8560 * infrun.c (observer.h): Add #include.
8561 (normal_stop): Add call to observer_notify_normal_stop.
8562 * Makefile.in (infrun.o): Add dependency on observer.h.
8563
7daf4f5b
JB
85642003-03-18 J. Brobecker <brobecker@gnat.com>
8565
8566 Continuing work to convert the hppa targets to multiarch partial.
8567 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8568 parameter. Reformat comment.
8569 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8570 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8571 to match new profile.
8572
3371ccc0
JB
85732003-03-18 J. Brobecker <brobecker@gnat.com>
8574
8575 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8576 appear to be working in any case.
8577
4fbe891e
JB
85782003-03-18 J. Brobecker <brobecker@gnat.com>
8579
8580 * observer.c (observer_test_first_observer): New static variable.
8581 (observer_test_second_observer): Likewise.
8582 (observer_test_third_observer): Likewise.
8583 (observer_test_first_notification_function): New static function.
8584 (observer_test_second_notification_function): Likewise.
8585 (observer_test_third_notification_function): Likewise.
8586
a7ff40e7
JB
85872003-03-17 J. Brobecker <brobecker@gnat.com>
8588
8589 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8590 * somsolib.c (gdb_assert.h): Likewise.
8591 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8592 (somsolib.o): Likewise.
8593
26ca4152
AC
85942003-03-17 Andrew Cagney <cagney@redhat.com>
8595
8596 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8597 BFD. Simplify setting of di.endian.
8598
0a613259
AC
85992003-03-17 Andrew Cagney <cagney@redhat.com>
8600
8601 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8602 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8603
8604 From Elena Zannoni <ezannoni@redhat.com>
8605 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8606 vector and floating-point parameters.
8607 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8608 convention.
8609 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8610
1132738f
FN
86112003-03-17 Fernando Nasser <fnasser@redhat.com>
8612
8613 * MAINTAINERS: Remove my name from several maintainership roles.
8614
6dc42492
AC
86152003-03-17 Andrew Cagney <cagney@redhat.com>
8616
8617 Fix frame off-by-one bug.
8618 * frame-unwind.h (frame_this_id_ftype): Replace
8619 frame_unwind_id_ftype.
8620 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8621 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8622 with "prev_register".
8623 * frame-unwind.c (frame_unwind_find_by_pc): Return
8624 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8625 comment.
8626 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8627 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8628 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8629 (dummy_frame_unwind): Update.
8630 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8631 sentinel_frame_register_unwind.
8632 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8633 (sentinel_frame_unwinder): Update.
8634 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8635 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8636 * frame.c (create_sentinel_frame): Update. Initialize
8637 "prologue_cache" instead of "unwind_cache".
8638 (frame_register_unwind): Call this frame's prev_register with the
8639 next frame and this frame's prologue cache.
8640 (get_prev_frame): Simplify. Always call prev frame's this_id with
8641 this frame and prev frame's prologue cache. Document that this
8642 call is shifted one to the left when compared to the
8643 frame_register_unwind call.
8644 (legacy_saved_regs_prev_register): Replace
8645 frame_saved_regs_register_unwind.
8646 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8647 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8648 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8649 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8650 (d10v_frame_unwind): Update.
8651 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8652 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8653 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8654 "saved_regs" with "this_saved_regs".
8655
efd710d6
AC
86562003-03-16 Andrew Cagney <cagney@redhat.com>
8657
8658 * frame.c (frame_pop): Don't call target_store_registers. Fix
8659 problem reported by Mark Kettenis.
8660
4e259f09
MK
86612003-03-16 Mark Kettenis <kettenis@gnu.org>
8662
8663 * i386-tdep.c (i386_register_type): Renamed from
8664 i386_register_virtual_type. Adjust function signature.
8665 (i386_gdbarch_init): Set register_type instead of
8666 deprecated_max_register_raw_size,
8667 deprecated_max_register_virtual_size and register_virtual_type.
8668
055bb976
AC
86692003-03-14 Andrew Cagney <cagney@redhat.com>
8670
8671 * frame.c (get_prev_frame): When a legacy frame, always call
8672 legacy_get_prev_frame. Simplify unwind code using assumption that
8673 the unwinder is new.
8674 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8675 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8676 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8677
ac2adee5
AC
86782003-03-14 Andrew Cagney <cagney@redhat.com>
8679
8680 * frame.c (get_saved_register): Delete function.
8681 * frame.h (get_saved_register): Delete declaration.
8682 * xstormy16-tdep.c: Update comment.
8683 * regcache.h: Update comments.
8684 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8685 get_saved_register and extract_address, use
8686 frame_read_unsigned_register.
8687 (sparc_frame_saved_pc): Ditto.
8688 (sparc_get_saved_register): Instead of get_saved_register, use
8689 frame_register.
8690 (sparc_pop_frame): Ditto.
8691 * findvar.c: Update comments.
8692 (value_of_register): Call frame_register instead of
8693 get_saved_register.
8694 (value_from_register): Ditto.
8695 * config/sparc/tm-sparc.h: Update comment.
8696 * breakpoint.c: Update comment.
8697
129c1cd6
AC
86982003-03-14 Andrew Cagney <cagney@redhat.com>
8699
8700 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8701 GET_SAVED_REGISTER.
8702 * gdbarch.h, gdbarch.c: Re-generate.
8703 * frame.h: Update comments.
8704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8705 * x86-64-tdep.c (x86_64_init_abi): Update.
8706 * sparc-tdep.c (sparc_gdbarch_init): Update.
8707 * sh-tdep.c (sh_gdbarch_init): Update.
8708 * mips-tdep.c (mips_gdbarch_init): Update.
8709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8710 * cris-tdep.c (cris_gdbarch_init): Update.
8711 * ia64-tdep.c (ia64_gdbarch_init): Update.
8712 * frame.c (frame_register): Update.
8713 (get_saved_register): Update.
8714 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8715
749b82f6
AC
87162003-03-13 Andrew Cagney <cagney@redhat.com>
8717
8718 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8719 * gdbarch.h, gdbarch.c: Regenerate.
8720 * valops.c (hand_function_call): Update comment.
8721 * stack.c (return_command): Update comment.
8722 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8723 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8725 * x86-64-tdep.c (x86_64_init_abi): Update.
8726 * vax-tdep.c (vax_gdbarch_init): Update.
8727 * v850-tdep.c (v850_gdbarch_init): Update.
8728 * sparc-tdep.c (sparc_gdbarch_init): Update.
8729 * sh-tdep.c (sh_gdbarch_init): Update.
8730 * s390-tdep.c (s390_gdbarch_init): Update.
8731 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8732 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8733 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8734 * mips-tdep.c (mips_gdbarch_init): Update.
8735 * mcore-tdep.c (mcore_gdbarch_init): Update.
8736 * m68k-tdep.c (m68k_gdbarch_init): Update.
8737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8738 * ia64-tdep.c (ia64_gdbarch_init): Update.
8739 * i386-tdep.c (i386_gdbarch_init): Update.
8740 * hppa-tdep.c (hppa_gdbarch_init): Update.
8741 * h8300-tdep.c (h8300_gdbarch_init): Update.
8742 * frv-tdep.c (frv_gdbarch_init): Update.
8743 * cris-tdep.c (cris_gdbarch_init): Update.
8744 * avr-tdep.c (avr_gdbarch_init): Update.
8745 * arm-tdep.c (arm_gdbarch_init): Update.
8746 * alpha-tdep.c (alpha_gdbarch_init): Update.
8747
1594fa56
AC
87482003-03-13 Andrew Cagney <cagney@redhat.com>
8749
8750 * frame.c (legacy_frame_p): New function.
8751 (get_prev_frame): Use legacy_frame_p.
8752 * frame.h (legacy_frame_p): Declare.
8753
7717fda3
V
87542003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8755
fbe586ae 8756 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8757 listing corrected.
8758
0c67cbe9
V
87592003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8760
fbe586ae 8761 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8762
03febf99
AC
87632003-03-12 Andrew Cagney <cagney@redhat.com>
8764
8765 * frame.c (get_prev_frame): Rename the frame parameter to
8766 "this_frame".
8767 (get_next_frame, legacy_get_prev_frame): Ditto.
8768
0a1e1ca1
AC
87692003-03-12 Andrew Cagney <cagney@redhat.com>
8770
8771 * frame.c (get_current_frame): Check target_has_registers before
8772 checking target_has_stack.
8773 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8774 instead of deprecated_selected_frame.
8775 * findvar.c (value_of_register): Pass "frame", not
8776 deprecated_selected_frame, to value_of_builtin_reg.
8777
a66a9c23
AC
87782003-03-12 Andrew Cagney <cagney@redhat.com>
8779
8780 * regcache.c (regcache_cooked_write_signed): New function.
8781 (regcache_cooked_write_unsigned): New function.
8782 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8783 (regcache_cooked_read_signed): Fix regnum in range assertion.
8784 * regcache.h (regcache_cooked_write_signed): Declare.
8785 (regcache_cooked_write_unsigned): Declare.
8786
8bedc050
AC
87872003-03-12 Andrew Cagney <cagney@redhat.com>
8788
8789 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8790 * gdbarch.h, gdbarch.c: Re-generate.
8791 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8792 * x86-64-tdep.h: Update.
8793 * x86-64-tdep.c (x86_64_init_abi): Update.
8794 * v850-tdep.c (v850_gdbarch_init): Update.
8795 * sparc-tdep.c (sparc_gdbarch_init): Update.
8796 * sh-tdep.c (sh_gdbarch_init): Update.
8797 * s390-tdep.c (s390_gdbarch_init): Update.
8798 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8799 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8800 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8801 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8802 * mips-tdep.c (mips_gdbarch_init): Update.
8803 * mcore-tdep.c (mcore_gdbarch_init): Update.
8804 * m68k-tdep.c (m68k_gdbarch_init): Update.
8805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8806 * ia64-tdep.c (ia64_gdbarch_init): Update.
8807 * i386-tdep.c (i386_gdbarch_init): Update.
8808 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8809 * hppa-tdep.c (hppa_gdbarch_init): Update.
8810 * h8300-tdep.c (h8300_gdbarch_init): Update.
8811 * frv-tdep.c (frv_gdbarch_init): Update.
8812 * cris-tdep.c (cris_gdbarch_init): Update.
8813 * avr-tdep.c (avr_gdbarch_init): Update.
8814 * arm-tdep.c (arm_gdbarch_init): Update.
8815 * alpha-tdep.c (alpha_gdbarch_init): Update.
8816 * sh-tdep.c (sh_init_extra_frame_info): Update.
8817 (sh64_init_extra_frame_info): Update.
8818 * ns32knbsd-nat.c (frame_num_args): Update.
8819 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8820 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8821 (xstormy16_frame_chain_valid): Update.
8822 * vax-tdep.c (vax_saved_pc_after_call): Update.
8823 * v850-tdep.c (v850_frame_chain): Update.
8824 (v850_pop_frame): Update.
8825 (v850_init_extra_frame_info): Update.
8826 * sparc-tdep.c (setup_arbitrary_frame): Update.
8827 * ns32k-tdep.c (umax_frame_num_args): Update.
8828 * s390-tdep.c (s390_pop_frame_regular): Update.
8829 * mn10300-tdep.c (mn10300_frame_chain): Update.
8830 (mn10300_pop_frame_regular): Update.
8831 (mn10300_init_extra_frame_info): Update.
8832 * mips-tdep.c (mips_init_frame_pc_first): Update.
8833 (mips_frame_chain): Update.
8834 (mips_pop_frame): Update.
8835 * mcore-tdep.c (mcore_frame_chain): Update.
8836 (mcore_pop_frame): Update.
8837 (mcore_init_extra_frame_info): Update.
8838 * arch-utils.c (init_frame_pc_default): Update.
8839 * m68k-tdep.c (isi_frame_num_args): Update.
8840 (delta68_frame_num_args): Update.
8841 (news_frame_num_args): Update.
8842 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8843 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8844 (alpha_frame_chain): Update.
8845 (alpha_pop_frame): Update.
8846 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8847 (hppa_init_extra_frame_info): Update.
8848 (hppa_frame_chain): Update.
8849 (hppa_frame_chain_valid): Update.
8850 * cris-tdep.c (cris_init_extra_frame_info): Update.
8851 * avr-tdep.c (avr_init_extra_frame_info): Update.
8852 * arm-tdep.c (arm_frame_chain_valid): Update.
8853 (arm_init_extra_frame_info): Update.
8854 (arm_pop_frame): Update.
8855 * frame.c (frame_pc_unwind): Update.
8856 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8857 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8858 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8859 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8860 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8861 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8862
7a25a7c1
AC
88632003-03-12 Andrew Cagney <cagney@redhat.com>
8864
8865 Eliminate the need for POP_FRAME.
8866 * frame.c (do_frame_unwind_register): New function.
8867 (frame_pop): When no POP_FRAME, pop the frame using register
8868 unwind and a scratch regcache.
8869 (frame_saved_regs_pop): Delete function.
8870 (trad_frame_unwinder): Update.
8871 * d10v-tdep.c (d10v_frame_pop): Delete function.
8872 (d10v_frame_unwind): Update.
8873 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8874 (sentinel_frame_unwinder): Update.
8875 * dummy-frame.c (dummy_frame_pop): Delete function.
8876 (dummy_frame_unwind): Update.
8877 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8878 (struct frame_unwind): Update.
8879
2f38ef89
KB
88802003-03-11 Kevin Buettner <kevinb@redhat.com>
8881
8882 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8883 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8884 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8885 Do range checks on register number obtained from debugging info.
8886 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8887 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8888 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8889 mapping function.
8890 (do_fp_register_row): Fix typo which caused double type to be
8891 used when attempting to unpack a float.
8892
552f4abf
JB
88932003-03-11 J. Brobecker <brobecker@gnat.com>
8894
8895 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8896
e0d2ae16
AC
88972003-03-11 Andrew Cagney <cagney@redhat.com>
8898
8899 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8900 frame. Problem found by Corinna Vinschen.
8901
ddbfdd06
PM
89022003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8903
8904 * doublest.c (floatformat_from_length): Accept also
8905 the real size of 'long double' type.
8906
088b2ddc 89072003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8908
088b2ddc 8909 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8910 * breakpoint.c (bpstat_copy): Copy the command lines as well
8911 as the old value, to match what is freed in bpstat_clear.
8912
f56f77c1
DC
89132003-03-10 David Carlton <carlton@math.stanford.edu>
8914
8915 * minsyms.c (add_minsym_to_hash_table): Replace
8916 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8917 (compare_minimal_symbols, compact_minimal_symbols)
8918 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8919 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8920 of DEPRECATED_SYMBOL_MATCHES_NAME.
8921 (lookup_minimal_symbol_solib_trampoline): Ditto.
8922
5602984a
AC
89232003-03-10 Andrew Cagney <cagney@redhat.com>
8924
8925 * regcache.h (regcache_cooked_read_ftype): Define.
8926 (regcache_save, regcache_restore): Add a cooked_read parameter.
8927 * regcache.c (regcache_save, regcache_restore): Update.
8928 (do_cooked_read): New function.
8929 (regcache_cpy): Pass do_cooked_read to regcache_save and
8930 regcache_restore.
8931
8bedc050
AC
89322003-03-10 Andrew Cagney <cagney@redhat.com>
8933
8934 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8935 * gdbarch.h, gdbarch.c: Re-generate.
8936 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8937 * x86-64-tdep.h: Update.
8938 * x86-64-tdep.c (x86_64_init_abi): Update.
8939 * v850-tdep.c (v850_gdbarch_init): Update.
8940 * sparc-tdep.c (sparc_gdbarch_init): Update.
8941 * sh-tdep.c (sh_gdbarch_init): Update.
8942 * s390-tdep.c (s390_gdbarch_init): Update.
8943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8944 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8945 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8946 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8947 * mips-tdep.c (mips_gdbarch_init): Update.
8948 * mcore-tdep.c (mcore_gdbarch_init): Update.
8949 * m68k-tdep.c (m68k_gdbarch_init): Update.
8950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8951 * ia64-tdep.c (ia64_gdbarch_init): Update.
8952 * i386-tdep.c (i386_gdbarch_init): Update.
8953 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8954 * hppa-tdep.c (hppa_gdbarch_init): Update.
8955 * h8300-tdep.c (h8300_gdbarch_init): Update.
8956 * frv-tdep.c (frv_gdbarch_init): Update.
8957 * cris-tdep.c (cris_gdbarch_init): Update.
8958 * avr-tdep.c (avr_gdbarch_init): Update.
8959 * arm-tdep.c (arm_gdbarch_init): Update.
8960 * alpha-tdep.c (alpha_gdbarch_init): Update.
8961 * sh-tdep.c (sh_init_extra_frame_info): Update.
8962 (sh64_init_extra_frame_info): Update.
8963 * ns32knbsd-nat.c (frame_num_args): Update.
8964 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8965 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8966 (xstormy16_frame_chain_valid): Update.
8967 * vax-tdep.c (vax_saved_pc_after_call): Update.
8968 * v850-tdep.c (v850_frame_chain): Update.
8969 (v850_pop_frame): Update.
8970 (v850_init_extra_frame_info): Update.
8971 * sparc-tdep.c (setup_arbitrary_frame): Update.
8972 * ns32k-tdep.c (umax_frame_num_args): Update.
8973 * s390-tdep.c (s390_pop_frame_regular): Update.
8974 * mn10300-tdep.c (mn10300_frame_chain): Update.
8975 (mn10300_pop_frame_regular): Update.
8976 (mn10300_init_extra_frame_info): Update.
8977 * mips-tdep.c (mips_init_frame_pc_first): Update.
8978 (mips_frame_chain): Update.
8979 (mips_pop_frame): Update.
8980 * mcore-tdep.c (mcore_frame_chain): Update.
8981 (mcore_pop_frame): Update.
8982 (mcore_init_extra_frame_info): Update.
8983 * arch-utils.c (init_frame_pc_default): Update.
8984 * m68k-tdep.c (isi_frame_num_args): Update.
8985 (delta68_frame_num_args): Update.
8986 (news_frame_num_args): Update.
8987 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8988 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8989 (alpha_frame_chain): Update.
8990 (alpha_pop_frame): Update.
8991 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8992 (hppa_init_extra_frame_info): Update.
8993 (hppa_frame_chain): Update.
8994 (hppa_frame_chain_valid): Update.
8995 * cris-tdep.c (cris_init_extra_frame_info): Update.
8996 * avr-tdep.c (avr_init_extra_frame_info): Update.
8997 * arm-tdep.c (arm_frame_chain_valid): Update.
8998 (arm_init_extra_frame_info): Update.
8999 (arm_pop_frame): Update.
9000 * frame.c (frame_pc_unwind): Update.
9001 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9002 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9003 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9004 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9005 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9006 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9007
12cc2063
AC
90082003-03-10 Andrew Cagney <cagney@redhat.com>
9009
9010 * gdbarch.sh (gdbarch_unwind_pc): New method.
9011 * gdbarch.h, gdbarch.c: Regenerate.
9012 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9013 but use read_pc and FRAME_SAVED_PC as fall backs.
9014 (frame_saved_regs_pc_unwind): Delete function.
9015 (trad_frame_unwinder): Update.
9016 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9017 (struct frame_unwind): Update.
9018 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9019 (dummy_frame_unwind): Update.
9020 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9021 (sentinel_frame_unwinder): Update.
9022 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9023 (d10v_frame_unwind): Update.
9024 (d10v_unwind_pc): New function.
9025 (d10v_gdbarch_init): Set unwind_pc.
9026
ef840a37
AC
90272003-03-10 Andrew Cagney <cagney@redhat.com>
9028
a2ce2e56
AC
9029 * gdbarch.h: Re-generate.
9030
ef840a37
AC
9031 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9032 PC.
9033 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9034 the PC register.
9035
08f3424b
MK
90362003-03-08 Mark Kettenis <kettenis@gnu.org>
9037
9038 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9039
1248ede2
AC
90402003-03-08 Andrew Cagney <cagney@redhat.com>
9041
9042 * cli-out.c: Update copyright.
9043 (cli_out_data): Define typedef. Use instead of ui_out_data.
9044
f49bacc8
AC
90452003-03-08 Andrew Cagney <cagney@redhat.com>
9046
9047 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9048 the result.
9049
9b05f993
AC
90502003-03-07 Andrew Cagney <cagney@redhat.com>
9051
9052 * gdbarch.sh: Don't generate two macro definitions when an
9053 undefined macro taking no arguments.
9054 * gdbarch.h: Regenerate.
8ffd9b1b 9055
166f4c7b
ML
90562002-03-07 Michal Ludvig <mludvig@suse.cz>
9057
9058 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9059 (x86_64_unwind_dummy_id): New functions.
9060 (x86_64_init_abi): Register these two new functions.
9061
6d686a84
ML
90622003-03-07 Michal Ludvig <mludvig@suse.cz>
9063
9064 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9065 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9066 separate function.
9067 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9068
6314f104
AC
90692003-03-05 Andrew Cagney <cagney@redhat.com>
9070
9071 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9072 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9073 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9074 to use unwind_dummy_id when a dummy frame.
9075 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9076 predicate.
9077 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9078
ceea5145
AC
90792003-03-05 Andrew Cagney <cagney@redhat.com>
9080
9081 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9082 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9083 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9084 values.
9085
0d843116
AC
90862003-03-05 Andrew Cagney <cagney@redhat.com>
9087
9088 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9089 (struct d10v_unwind_cache): Delete field "frameless". Replace
9090 "next_addr" with "sp_offset". Add "r11_offset".
9091 (d10v_frame_unwind_cache): Update.
9092 (prologue_find_regs): Update. When "mv r11, sp", save the
9093 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9094 RN was saved in r11_offset.
9095
b2579786
AC
90962003-03-05 Andrew Cagney <cagney@redhat.com>
9097
9098 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9099 cached PC value in the next frame.
9100
218e5956
AC
91012003-03-05 Andrew Cagney <cagney@redhat.com>
9102
9103 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9104 "id_unwind_cache" with "id".
9105 (frame_id_unwind): Delete declaration.
9106 * frame.c (frame_id_unwind): Delete function.
9107 (get_prev_frame): Call the frame id unwind method directly. Store
9108 the returned next frame's ID value in NEXT_FRAME. Note that there
9109 is a problem with the wrong unwind ID being called with the wrong
9110 unwind cache.
9111
ed363b1b
DJ
91122003-03-05 Daniel Jacobowitz <drow@mvista.com>
9113
9114 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9115
fe1f4a5e
DJ
91162003-03-05 James Ingham <jingham@apple.com>
9117 Daniel Jacobowitz <drow@mvista.com>
9118
9119 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9120 (auto_cp_abi): New variable.
9121 (current_cp_abi, num_cp_abis): Make static.
9122 (CP_ABI_MAX): Define.
9123 (cp_abis): Turn into an array.
9124 (value_virtual_fn_field): Fix formatting.
9125 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9126 takes a pointer.
9127 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9128 (list_cp_abis, _initialize_cp_abi): New functions.
9129 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9130 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9131 switch_to_cp_abi. Update prototype for register_cp_abi.
9132 * Makefile.in (cp-abi.o): Update dependencies.
9133 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9134 instead of switch_to_cp_abi.
9135 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9136 register_cp_abi.
9137 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9138 register_cp_abi.
9139 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9140
e4adbba9
DJ
91412003-03-05 Daniel Jacobowitz <drow@mvista.com>
9142
9143 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9144 * dwarf2loc.c: Include "regcache.h".
9145 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9146 register_size.
9147 * Makefile.in (dwarf2loc.o): Update dependencies.
9148
91ccbfc1
TR
91492003-03-04 Theodore A. Roth <troth@openavr.org>
9150
9151 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9152 number of io registers reported by remote target is not a multiple of
9153 step.
9154
3d4e8fd2
DC
91552003-03-04 David Carlton <carlton@math.stanford.edu>
9156
9157 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9158 (lookup_symbol_aux_psymtabs): Update call to
9159 lookup_partial_symbol.
9160 (lookup_transparent_type, find_main_psymtab)
9161 (make_symbol_overload_list): Ditto.
9162
ed42d87b
KH
91632003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9164
9165 * MAINTAINERS (Write after approval): Update my email address.
9166
a0ed5532
AC
91672003-03-03 Andrew Cagney <cagney@redhat.com>
9168
9169 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9170 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9171 predicate. Replace MAX_REGISTER_RAW_SIZE.
9172 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9173 MAX_REGISTER_VIRTUAL_SIZE.
9174 * regcache.c (legacy_max_register_raw_size): New function.
9175 (legacy_max_register_virtual_size): New function.
9176 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9177 (MAX_REGISTER_RAW_SIZE): Define.
9178 (legacy_max_register_raw_size): Declare.
9179 (legacy_max_register_virtual_size): Declare.
9180 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9181 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9182 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9183 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9184 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9185 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9186 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9187 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9188 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9190 * vax-tdep.c (vax_gdbarch_init): Update.
9191 * v850-tdep.c (v850_gdbarch_init): Update.
9192 * sparc-tdep.c (sparc_gdbarch_init): Update.
9193 * sh-tdep.c (sh_gdbarch_init): Update.
9194 * s390-tdep.c (s390_gdbarch_init): Update.
9195 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9196 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9197 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9198 * mips-tdep.c (mips_gdbarch_init): Update.
9199 * mcore-tdep.c (mcore_gdbarch_init): Update.
9200 * m68k-tdep.c (m68k_gdbarch_init): Update.
9201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9202 * ia64-tdep.c (ia64_gdbarch_init): Update.
9203 * i386-tdep.c (i386_gdbarch_init): Update.
9204 * hppa-tdep.c (hppa_gdbarch_init): Update.
9205 * h8300-tdep.c (h8300_gdbarch_init): Update.
9206 * frv-tdep.c (frv_gdbarch_init): Update.
9207 * cris-tdep.c (cris_gdbarch_init): Update.
9208 * avr-tdep.c (avr_gdbarch_init): Update.
9209 * arm-tdep.c (arm_gdbarch_init): Update.
9210 * alpha-tdep.c (alpha_gdbarch_init): Update.
9211 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9212 max_register_raw_size or max_register_virtual_size.
9213
8e437497
DC
92142003-03-03 David Carlton <carlton@math.stanford.edu>
9215
9216 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9217 SYMBOL_MATCHES_NAME, add comment.
9218 (SYMBOL_MATCHES_NATURAL_NAME): New.
9219 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9220 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9221 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9222 * symtab.c (lookup_partial_symbol): Use
9223 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9224 unhelpful comment.
9225 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9226 SYMBOL_MATCHES_NAME.
9227 Fix for PR c++/33.
9228
25120b0d
DC
92292003-03-03 David Carlton <carlton@math.stanford.edu>
9230
9231 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9232 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9233 by regexp matching against SYMBOL_NATURAL_NAME.
9234
78a11fb4
DC
92352003-03-03 David Carlton <carlton@math.stanford.edu>
9236
9237 * linespec.c (find_method): Extract code into collect_methods.
9238 (collect_methods): New.
9239
645dd519
MK
92402003-03-02 Mark Kettenis <kettenis@gnu.org>
9241
b4700d91
MK
9242 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9243 get_frame_base.
9244
645dd519
MK
9245 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9246 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9247
0aa7e1aa
SC
92482003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9249
8ffd9b1b 9250 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9251 and not regnum when summing the size of all registers up to regnum.
9252
f30ee0bc
AC
92532003-03-01 Andrew Cagney <cagney@redhat.com>
9254
9255 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9256 FRAME_INIT_SAVED_REGS.
9257 * gdbarch.h, gdbarch.c: Regenerate.
9258 * stack.c (frame_info): Update.
9259 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9260 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9261 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9262 * ns32k-tdep.c (ns32k_pop_frame): Update.
9263 * mips-tdep.c (mips_pop_frame): Update.
9264 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9265 * ia64-tdep.c (ia64_frame_chain): Update.
9266 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9267 (ia64_frameless_function_invocation): Update.
9268 (ia64_init_extra_frame_info): Update.
9269 (ia64_pop_frame_regular): Update.
9270 * frame.h (struct frame_info): Update comment.
9271 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9272 * frame.c (frame_saved_regs_register_unwind): Update.
9273 (frame_saved_regs_register_unwind): Update.
9274 (deprecated_generic_get_saved_register): Update.
9275 * cris-tdep.c: Update comment.
9276 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9277 Rename macro.
9278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9279 * x86-64-tdep.c (x86_64_init_abi): Update.
9280 * vax-tdep.c (vax_gdbarch_init): Update.
9281 * v850-tdep.c (v850_gdbarch_init): Update.
9282 * sparc-tdep.c (sparc_gdbarch_init): Update.
9283 * sh-tdep.c (sh_gdbarch_init): Update.
9284 * s390-tdep.c (s390_gdbarch_init): Update.
9285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9286 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9287 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9288 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9289 * mips-tdep.c (mips_gdbarch_init): Update.
9290 * mcore-tdep.c (mcore_gdbarch_init): Update.
9291 * m68k-tdep.c (m68k_gdbarch_init): Update.
9292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9293 * ia64-tdep.c (ia64_gdbarch_init): Update.
9294 * i386-tdep.c (i386_gdbarch_init): Update.
9295 * frv-tdep.c (frv_gdbarch_init): Update.
9296 * avr-tdep.c (avr_gdbarch_init): Update.
9297 * arm-tdep.c (arm_gdbarch_init): Update.
9298 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9299
42fa7c0f
AC
93002003-03-01 Andrew Cagney <cagney@redhat.com>
9301
9302 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9303 option enum and switch. When no windows, set the interpreter to
9304 INTERP_CONSOLE.
8ffd9b1b 9305
49c7e338
AC
93062003-03-01 Andrew Cagney <cagney@redhat.com>
9307
9308 * main.c (captured_main): Replace magic option characters with an
9309 enum.
9310
e9582e71
AC
93112003-03-01 Andrew Cagney <cagney@redhat.com>
9312
9313 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9314 INIT_EXTRA_FRAME_INFO.
9315 * gdbarch.h, gdbarch.c: Regenerate.
9316 * arm-tdep.c: Update comments.
9317 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9318 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9319 * frame.h, avr-tdep.c: Ditto.
9320 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9321 (create_new_frame, legacy_get_prev_frame): Ditto.
9322 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9323 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9324 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9325 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9326 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9327 * v850-tdep.c (v850_gdbarch_init): Ditto.
9328 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9329 * sh-tdep.c (sh_gdbarch_init): Ditto.
9330 * s390-tdep.c (s390_gdbarch_init): Ditto.
9331 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9332 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9333 * mips-tdep.c (mips_gdbarch_init): Ditto.
9334 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9336 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9337 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9338 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9340 * frv-tdep.c (frv_gdbarch_init): Ditto.
9341 * cris-tdep.c (cris_gdbarch_init): Ditto.
9342 * avr-tdep.c (avr_gdbarch_init): Ditto.
9343 * arm-tdep.c (arm_gdbarch_init): Ditto.
9344 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9345 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9346
35cac7cf
AC
93472003-03-01 Andrew Cagney <cagney@redhat.com>
9348
9349 * gdbarch.sh (register_type): New function with predicate.
9350 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9351 * gdbarch.h, gdbarch.c: Re-generate.
9352 * arch-utils.c (generic_register_byte): Use generic_register_size.
9353 (generic_register_size): When available, use
9354 gdbarch_register_type.
9355 * regcache.c (init_regcache_descr): When available, initialize the
9356 register type array using gdbarch_register_type. If the
9357 architecture supplies gdbarch_register_type, do not use the legacy
9358 regcache layout.
9359 * d10v-tdep.c (d10v_register_type): Replace
9360 d10v_register_virtual_type.
9361 (d10v_gdbarch_init): Set register_type instead of
9362 register_virtual_type.
9363
7b83296f
AC
93642003-03-01 Andrew Cagney <cagney@redhat.com>
9365
9366 * Makefile.in (ax-gdb.o): Update dependencies.
9367 * ax-gdb.c: Include "regcache.h".
9368 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9369 * findvar.c (value_of_register): Ditto.
9370 * infcmd.c (default_print_registers_info): Ditto.
9371
eadc1c87
MK
93722003-03-01 Mark Kettenis <kettenis@gnu.org>
9373
9374 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9375 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9376
14143612
MK
93772003-03-01 Mark Kettenis <kettenis@gnu.org>
9378
9379 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9380 of STREQ.
9381
a55cc764
DJ
93822003-02-28 Daniel Jacobowitz <drow@mvista.com>
9383
9384 * Makefile.in (dwarf2loc.o): Update dependencies.
9385 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9386 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9387 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9388 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9389 (locexpr_tracepoint_var_ref): New function.
9390 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9391
08a617da
AC
93922003-02-28 Andrew Cagney <cagney@redhat.com>
9393
9394 * regcache.c (register_size): New function.
9395 * regcache.h (register_size): Declare
9396 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9397 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9398
4224873a
DC
93992003-02-28 David Carlton <carlton@math.stanford.edu>
9400
9401 * linespec.c (decode_compound): Extract code into find_method.
9402 (find_method): New.
9403
ccdc5d7f
JB
94042003-02-28 J. Brobecker <brobecker@gnat.com>
9405
9406 * Makefile.in: Add rules to build and link in observer.o.
9407
974e8ced
JB
94082003-02-27 J. Brobecker <brobecker@gnat.com>
9409
9410 * observer.c: Minor comments edits.
9411
7a28f973
JB
94122003-02-27 J. Brobecker <brobecker@gnat.com>
9413
9414 * observer.h, observer.c: New file.
9415
27cddce2
AC
94162003-02-27 Andrew Cagney <cagney@redhat.com>
9417
9418 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9419
b94a41a1
SC
94202003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9421
9422 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9423 (M6812_OP_STS_EXT): Likewise.
9424 (m6811_prologue): Use the above to recognize prologue.
9425 (m6812_prologue): Likewise.
9426
c8be8951
DC
94272003-02-27 David Carlton <carlton@math.stanford.edu>
9428
9429 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9430 SYMBOL_PRINT_NAME.
9431 (compare_psymbols): Ditto.
9432 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9433
d05bb1fc
MS
94342003-02-27 Michael Snyder <msnyder@redhat.com>
9435
4e845cd3
MS
9436 * f-lang.c (build_fortran_types): New function.
9437 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9438 * doublest.c (extract_floating): Fix warning text.
9439
f3824013
AC
94402003-02-27 Andrew Cagney <cagney@redhat.com>
9441
9442 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9443 predicate. Replaces PUSH_DUMMY_FRAME.
9444 * gdbarch.h, gdbarch.c: Regnerate.
9445 * valops.c (hand_function_call): Update. Call
9446 generic_push_dummy_frame directly.
9447 * vax-tdep.c (vax_gdbarch_init): Update.
9448 * sparc-tdep.c (sparc_gdbarch_init): Update.
9449 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9450 * m68k-tdep.c (m68k_gdbarch_init): Update.
9451 * hppa-tdep.c (hppa_gdbarch_init): Update.
9452 * alpha-tdep.c (alpha_gdbarch_init): Update.
9453 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9454 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9455 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9457 push_dummy_frame to generic_push_dummy_frame.
9458 * v850-tdep.c (v850_gdbarch_init): Ditto.
9459 * sh-tdep.c (sh_gdbarch_init): Ditto.
9460 * s390-tdep.c (s390_gdbarch_init): Ditto.
9461 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9462 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9463 * mips-tdep.c (mips_gdbarch_init): Ditto.
9464 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9466 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9467 * i386-tdep.c (i386_gdbarch_init): Ditto.
9468 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9469 * frv-tdep.c (frv_gdbarch_init): Ditto.
9470 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9471 * cris-tdep.c (cris_gdbarch_init): Ditto.
9472 * avr-tdep.c (avr_gdbarch_init): Ditto.
9473 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9474
ad188201
KB
94752003-02-26 Kevin Buettner <kevinb@redhat.com>
9476
9477 * mips-tdep.c (show_mips_abi): New function.
9478 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9479 command ``show mips abi''.
9480
6b37567a 94812003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9482
6b37567a 9483 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9484 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9485 more sline entries have been seen for the function.
9486
d3e0a5bf
MC
94872003-02-26 Michael Chastain <mec@shout.net>
9488
9489 * configure: Regenerate with autoconf 000227.
9490
18972eea
MC
94912003-02-26 Michael Chastain <mec@shout.net>
9492
9493 Close PR build/660.
9494 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9495 for old libc5/glibc.
9496 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9497
0bbde931
KW
94982003-02-26 Kris Warkentin <kewarken@qnx.com>
9499
9500 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9501 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9502
27ca5dad
MC
95032003-02-26 Michael Chastain <mec@shout.net>
9504
9505 * configure.in: New variable HAVE_UINTPTR_T.
9506 * configure, config.in: Regenerated.
9507
6f88d630
DJ
95082003-02-26 Daniel Jacobowitz <drow@mvista.com>
9509
9510 Fix PR build/1097.
9511 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9512
b14185ce
AC
95132003-02-25 Andrew Cagney <cagney@redhat.com>
9514
9515 * frame.c (get_prev_frame): Add comment on check for
9516 inside_entry_func. Only check for inside_entry_file when not a
9517 dummy and not a sentinel. Check that the new frame is not inner
9518 to the old frame.
9519
ac2bd0a9
AC
95202003-02-25 Andrew Cagney <cagney@redhat.com>
9521
9522 * frame.c (frame_debug): New variable.
9523 (_initialize_frame): Add "set/show debug frame" command.
9524 (get_prev_frame): When frame_debug, print reason why unwind
9525 failed.
9526
b18a0fd2
MC
95272003-02-25 Michael Chastain <mec@shout.net>
9528
9529 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9530 to avoid uintptr_t definition problems.
9531
22abf04a
DC
95322003-02-25 David Carlton <carlton@math.stanford.edu>
9533
9534 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9535 (SYMBOL_LINKAGE_NAME): Ditto.
9536 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9537 SYMBOL_LINKAGE_NAME.
9538 (struct general_symbol_info): Expand comment.
9539 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9540 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9541 (SYMBOL_MATCHES_REGEXP): Ditto.
9542 * symtab.c (symbol_natural_name): New function.
9543 * objfiles.h: Replace all uses of SYMBOL_NAME by
9544 DEPRECATED_SYMBOL_NAME.
9545 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9546 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9547 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9548 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9549 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9550 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9551 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9552 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9553 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9554 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9555 * ada-exp.y: Ditto.
9556 * ada-exp.y: Update copyright.
9557 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9558 * cp-valprint.c: Ditto.
9559
1a5848f6
JJ
95602003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9561
9562 * infptrace.c (detach): Do not flag error if ptrace detach fails
9563 and errno is set to ESRCH.
9564
7343d46a
AC
95652003-02-24 Andrew Cagney <cagney@redhat.com>
9566
9567 * infptrace.c (udot_info): Change type of udot_off to long. Use
9568 paddr when printing udot_off's value.
9569
49fa1dc2
DC
95702003-02-24 David Carlton <carlton@math.stanford.edu>
9571
9572 * symtab.c (make_symbol_overload_list): Only read in partial
9573 symtabs containing a matching partial symbol.
9574
0fe19209
DC
95752003-02-24 David Carlton <carlton@math.stanford.edu>
9576
9577 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9578 do the comparison, not strcmp.
9579 * symfile.c (compare_psymbols): Ditto.
9580 * defs.h: Declare strcmp_iw_ordered.
9581 * utils.c (strcmp_iw_ordered): New function.
9582
8e3ee7b5
JB
95832003-02-24 Jim Blandy <jimb@redhat.com>
9584
9585 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9586 support, shared libs): Remove my name from here, to better reflect
9587 reality.
9588
7df1a324
KW
95892003-02-24 Kris Warkentin <kewarken@qnx.com>
9590
9591 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9592 (target_ops): Add to_have_continuable_watchpoint.
9593 * target.c (update_current_target): Add INHERIT line for
9594 to_have_continuable_watchpoint.
9595 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9596 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9597 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9598 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9599
d1c76907
EZ
96002003-02-24 Elena Zannoni <ezannoni@redhat.com>
9601
9602 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9603 maintainership.
9604
2610b0bf
KW
96052003-02-24 Kris Warkentin <kewarken@qnx.com>
9606
f46169db
KW
9607 * solib.c (solib_open): Call target defined search function after
9608 failing with solib-search-path.
9609 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9610 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9611
9a3c34fe
KW
96122003-02-24 Kris Warkentin <kewarken@qnx.com>
9613
f46169db 9614 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9615
2417dd25
SC
96162003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9617
9618 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9619
b631436b
SC
96202003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9621
9622 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9623 (m68hc11_add_reggroups): New function.
9624 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9625 (m68hc11_gdbarch_init): Install the reggroups.
9626 (_initialize_m68hc11_tdep): Initialize them.
9627
0aa8c1e4
JW
96282003-02-21 James E Wilson <wilson@tuliptree.org>
9629
9630 * MAINTAINERS: Update my email address.
9631
50ceaba5
DC
96322003-02-21 David Carlton <carlton@math.stanford.edu>
9633
9634 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9635
4c2df51b
DJ
96362003-02-21 Daniel Jacobowitz <drow@mvista.com>
9637
9638 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9639 * symtab.h: Add opaque declarations of struct axs_value and
9640 struct agent_expr.
9641 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9642 (struct location_funcs): New type.
9643 (struct symbol): Add "loc" to aux_value.
9644 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9645 * dwarf2read.c: Include "dwarf2expr.h".
9646 (dwarf2_symbol_mark_computed): New function.
9647 (read_func_scope): Use it.
9648 (var_decode_location): New function.
9649 (new_symbol): Use it.
9650 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9651
9652 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9653 (dwarf2expr_h, dwarf2loc_h): New variables.
9654 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9655 (dwarf2expr.o, dwarf2loc.o): New rules.
9656 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9657 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9658 LOC_COMPUTED_ARG.
9659 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9660 * m2-exp.y (yylex): Likewise.
9661 * printcmd.c (address_info, print_frame_args): Likewise.
9662 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9663 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9664 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9665 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9666 * symtab.c (lookup_block_symbol): Likewise.
9667
5784d15e
AF
96682003-02-20 Adam Fedor <fedor@gnu.org>
9669
9670 * symtab.h: Remove objc_specific struct
9671 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9672 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9673 Have language_objc use cplus_specific struct.
9674
d4cad8db
TT
96752003-02-20 Tom Tromey <tromey@redhat.com>
9676
9677 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9678 TYPE_NAME, when printing a String value. PR java/1075.
9679
2f9a90b4
AF
96802003-02-20 Adam Fedor <fedor@gnu.org>
9681
d38074a8 9682 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9683 * objc-lang.c (find_methods): Make static.
2f9a90b4 9684
6f17862b
CF
96852003-02-20 Christopher Faylor <cgf@redhat.com>
9686
9687 * win32-nat.c (get_image_name): Check return value from
9688 ReadProcessMemory.
9689 (child_xfer_memory): Ditto.
9690
715d1656
AO
96912003-02-20 Alexandre Oliva <aoliva@redhat.com>
9692
9693 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9694 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9695 '${exec_prefix}' (in addition to the expansion thereof) as
9696 relocatable.
9697 * configure: Rebuilt.
9698
b1262a02
DC
96992003-02-20 David Carlton <carlton@math.stanford.edu>
9700
9701 * symtab.c (search_symbols): Revert the search_symbols part of my
9702 2002-12-23 patch. Add comment.
9703
7134143f
DJ
97042002-02-20 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9707 * dbxread.c (elfstab_build_psymtabs): Don't call
9708 install_minimal_symbols.
9709 (stabsect_build_psymtabs): Likewise.
9710 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9711 earlier.
9712 * somread.c (som_symfile_read): Call install_minimal_symbols
9713 and do_cleanups earlier.
9714 * nlmread.c (nlm_symfile_read): Likewise.
9715 * mdebugread.c (elfmdebug_build_psymtabs): Call
9716 install_minimal_symbols and make appropriate cleanups.
9717
cf466558
KB
97182003-02-20 Kevin Buettner <kevinb@redhat.com>
9719
9720 * solib.c (reload_shared_libraries): New function.
9721 (_initialize_solib): Add callbacks for ``set solib-search-path''
9722 and ``set solib-absolute-prefix''.
9723
de5ad195
DC
97242003-02-20 David Carlton <carlton@math.stanford.edu>
9725
9726 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9727 expand comment.
9728 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9729 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9730 * ada-typeprint.c (ada_typedef_print): Ditto.
9731 * ax-gdb.c (gen_var_ref): Ditto.
9732 * breakpoint.c (print_one_breakpoint): Ditto.
9733 * buildsym.c (finish_block): Ditto.
9734 * c-valprint.c (c_val_print): Ditto.
9735 * expprint.c (print_subexp): Ditto.
9736 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9737 * infcmd.c (jump_command): Ditto.
9738 * linespec.c (decode_line_2, decode_compound): Ditto.
9739 * maint.c (maintenance_translate_address): Ditto.
9740 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9741 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9742 Ditto.
8ffd9b1b
AJ
9743 * p-valprint.c (pascal_val_print): Ditto.
9744 * stabsread.c (define_symbol): Ditto.
de5ad195 9745 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9746 (print_frame_arg_vars, return_command): Ditto.
9747 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9748 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9749 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9750 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9751 (rbreak_command): Ditto.
9752 * tracepoint.c (tracepoints_info): Ditto.
9753 * typeprint.c (typedef_print): Ditto.
9754 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9755 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9756 * ada-typeprint.c: Update Copyright.
9757 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9758 * tracepoint.c, cli/cli-cmds.c: Ditto.
9759
f796e4be
KB
97602003-02-20 Kevin Buettner <kevinb@redhat.com>
9761
9762 * frame.c (generic_unwind_get_saved_register): Make non-static.
9763 * frame.h (generic_unwind_get_saved_register): Declare.
9764 * mips-tdep.c (read_next_frame_reg): Fetch register from
9765 current regcache when frame is NULL.
9766 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9767 that must be NULL.
9768 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9769 instead of frame_register_unwind().
9770
836cc9f4
AC
97712003-02-20 Andrew Cagney <ac131313@redhat.com>
9772
9773 * remote-sim.c (gdbsim_insert_breakpoint)
9774 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9775 code.
9776
501eef12
AC
97772003-02-20 Andrew Cagney <ac131313@redhat.com>
9778
9779 * remote.c (_initialize_remote): Add commands "set/show remote
9780 hardware-watchpoint-limit" and "set/show remote
9781 hardware-breakpoint-limit".
9782 (remote_hw_watchpoint_limit): Initialize to -1.
9783 (remote_hw_breakpoint_limit): Ditto.
9784 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9785
1b6bc7e0
CF
97862003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9787
9788 * coff-pe-read.c: New file - support reading of minimal symbols from a
9789 portable executable using the export table.
9790 * coff-pe-read.h: New file.
9791 * coffread.c: Include coff-pe-read.h.
9792 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9793 debugging symbols found.
9794 * Makefile.in (SFILES): Add coff-pe-read.o.
9795 (coff_pe_read_h): Define.
9796 (COMMON_OBS): Add coff-pe-read.o.
9797 (coffread.o): Add coff_pe_read_h dependency.
9798 (coff-pe-read.o): New target.
9799
fe898f56
DC
98002003-02-19 David Carlton <carlton@math.stanford.edu>
9801
9802 * Makefile.in (SFILES): Add block.c.
9803 (block_h): New.
9804 (COMMON_OBS): Add block.o.
9805 (block.o): New.
9806 (x86-64-tdep.o): Add $(block_h).
9807 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9808 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9809 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9810 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9811 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9812 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9813 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9814 * value.h: Add opaque declaration for struct block.
9815 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9816 * ada-lang.h: Ditto.
9817 * x86-64-tdep.c: #include "block.h"
9818 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9819 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9820 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9821 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9822 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9823 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9824 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9825 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9826 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9827 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9828 * symtab.c (block_function): Ditto.
9829 (contained_in): Ditto.
9830 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9831 block.h. Add opaque declaration for struct block.
9832 * symtab.h: Move block_function and contained_in declarations to
9833 block.h. Add opaque declarations for struct block, struct
9834 blockvector.
9835 (struct block): Move to block.h.
9836 (struct blockvector): Ditto.
9837 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9838 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9839 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9840 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9841 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9842 Ditto.
9843 * block.c: New file.
9844 * block.h: New file.
9845
173345b5
TR
98462003-02-19 Theodore A. Roth <troth@openavr.org>
9847
9848 * avr-tdep.c (avr_extract_return_value): Remove function.
9849 (avr_store_return_value): Remove function.
9850 (avr_extract_struct_value_address): Remove function.
9851 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9852
338ef23d
AC
98532003-02-19 Andrew Cagney <ac131313@redhat.com>
9854
9855 * rs6000-tdep.c: Include "gdb_assert.h".
9856 (registers_e500): Add "acc" and "spefscr".
9857 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9858 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9859 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9860 really is "r0".
9861 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9862
5412f5f3
KS
98632003-02-18 Keith Seitz <keiths@redhat.com>
9864
9865 * Makefile.in: Add gdbtk-interps.c.
9866
881324eb
KB
98672003-02-18 Kevin Buettner <kevinb@redhat.com>
9868
9869 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9870 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9871
6a2f5abf
AC
98722003-02-18 Andrew Cagney <cagney@redhat.com>
9873
9874 * symtab.h (struct objfile): Add opaque declaration.
9875
54c7009d
EZ
98762003-02-18 Elena Zannoni <ezannoni@redhat.com>
9877
9878 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9879 * dbxread.c (process_one_symbol): Use last_function_start rather
9880 than function_start_offset to find the real beginning of the
9881 current function. The latter is just the text section offset on
9882 some systems, the former is always the real function start.
54c7009d 9883
7ee6d7eb
AC
98842003-02-17 Andrew Cagney <cagney@redhat.com>
9885
9886 * configure.in: Revert ${target} != ${host}.
9887
2846da9b
AC
98882003-02-17 Andrew Cagney <ac131313@redhat.com>
9889
9890 * configure.in (Makefile): Use the test ${target} != ${host},
9891 instead of the absence of the "nm.h" file, to determine of the
9892 configuration non-native.
9893 * configure: Regenerate.
8ffd9b1b 9894
3b27aeea
EZ
98952003-02-14 Elena Zannoni <ezannoni@redhat.com>
9896
fbe586ae 9897 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9898
9899 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9900 conditionalize tui_active test.
9901 (lookup_cmd_1): Ditto.
9902
b0b1c2c0
MK
99032003-02-14 Mark Kettenis <kettenis@gnu.org>
9904
9905 * configure.in: Add check for _etext.
9906 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9907 available.
9908 * config.in, configure: regenerated.
9909
8f05cde5
DJ
99102003-02-14 Daniel Jacobowitz <drow@mvista.com>
9911
9912 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9913
021e7609
AC
99142003-02-14 Andrew Cagney <ac131313@redhat.com>
9915
9916 * main.c (tui_version): Delete variable.
9917 (captured_main): When --tui, set interpreter_p to "tui" instead of
9918 enabling tui_version.
9919 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9920 tui_version.
9921 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9922 * cli/cli-cmds.c (disassemble_command): Ditto.
9923 * defs.h (tui_version): Delete declaration.
9924 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9925 (tui-interp.o): Add rules.
9926 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9927
e325dcec
CF
99282003-02-14 Christopher Faylor <cgf@redhat.com>
9929
36ffb041 9930 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9931 just-loaded dll.
9932
c4f90d87
JM
99332003-02-12 Jason Molenda (jmolenda@apple.com)
9934
fbe586ae
RH
9935 * symmisc.c (print_objfile_statistics): Include information about
9936 the number of psymtabs and symtabs in each object file.
c4f90d87 9937
e46e5ccd
KS
99382003-02-13 Keith R Seitz <keiths@redhat.com>
9939
9940 * main.h (struct captured_main_args): Add interpreter_p.
9941 * main.c (captured_main): Initialize interpreter_p from context.
9942 * gdb.c (main): Set interpreter_p argument.
9943 * Makefile.in (gdb.o): Add dependency for interps.h.
9944
fe97fe9c
AC
99452003-02-12 Andrew Cagney <ac131313@redhat.com>
9946
9947 * event-top.c (cli_command_loop): Delete declaration.
9948 (_initialize_event_loop): Delete function setting event_loop_hook.
9949 * event-top.h (cli_command_loop): Declare. Update copyright.
9950 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9951 * interps.c (current_interp_command_loop): When event_loop_p, call
9952 cli_command_loop.
9953
1cdac4ef
AC
99542003-02-12 Andrew Cagney <ac131313@redhat.com>
9955
9956 * interps.h (interp_command_loop_ftype): Change return type to
9957 void.
9958
48037ead
ML
99592003-02-12 Michal Ludvig <mludvig@suse.cz>
9960
9961 * x86-64-tdep.c (x86_64_extract_return_value)
9962 (x86_64_store_return_value): Use regcache instead of regbuf.
9963 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9964 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9965
033afc63
AC
99662003-02-11 Andrew Cagney <ac131313@redhat.com>
9967
9968 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9969 * aclocal.m4: Regenerate.
9970 * configure: Regenerate.
9971
9972 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9973 TCL_LD_SEARCH_FLAGS.
9974
40d02bca
ML
99752003-02-10 Michal Ludvig <mludvig@suse.cz>
9976
9977 * dwarf2cfi.c: Reindented.
9978
11308a41
AC
99792003-02-09 Andrew Cagney <ac131313@redhat.com>
9980
9981 * interps.c (clear_interpreter_hooks): Convert function definition
9982 to ISO C.
9983
e1c1c0f6
DC
99842003-02-07 David Carlton <carlton@math.stanford.edu>
9985
9986 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9987
ab5d3da6
KB
99882003-02-07 Kevin Buettner <kevinb@redhat.com>
9989
9990 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9991 (struct type): ...to here.
9992 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9993 field.
9994 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9995 (replace_type): Set length on all type variants for a given type.
9996
b8a92b82
AC
99972003-02-07 Andrew Cagney <ac131313@redhat.com>
9998
9999 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10000 <sys/stat.h>.
10001 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10002
5cb316ef
AC
100032003-02-06 Andrew Cagney <ac131313@redhat.com>
10004
2555fe1a
AC
10005 * Makefile.in (symm-nat.o): Update dependencies.
10006 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10007 (lynx-nat.o, ia64-linux-nat.): Ditto.
10008 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10009 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10010 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10011
44270758
AC
10012 * Makefile.in (inflow_h): Define.
10013 (procfs.o, inflow.o, procfs.o): Update dependencies.
10014 * inftarg.c (child_stop): Delete extern declaration of
10015 inferior_process_group. Include "inflow.h".
10016 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10017 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10018 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10019 (our_process_group, inferior_process_group): Extern declarations.
10020
df8f7274
AC
10021 * procfs.c: Include "gdb_assert.h".
10022
5cb316ef
AC
10023 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10024 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10025 * jv-typeprint.c (java_type_print_base): Ditto.
10026 * typeprint.c (typedef_print): Eliminate STREQ.
10027 * cli/cli-script.c (define_command, define_command): Ditto.
10028 * main.c (captured_main): Ditto.
10029 * values.c (lookup_internalvar): Ditto.
10030 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10031 within `if' conditional.
10032 * linespec.c (decode_line_2): Ditto.
10033 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10034 (bfd_openw_with_cleanup): Ditto.
10035
2a28ccea
MK
100362003-02-07 Mark Kettenis <kettenis@gnu.org>
10037
10038 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10039 legacy_extract_return_value and store_return_value to
10040 legacy_return_value.
10041
786b8124
CF
100422003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10043
10044 * win32-nat.c (get_relocated_section_addrs): New function. Find
10045 section load addresses for symbol handling in relocated DLLs.
10046 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10047
b871e4ec
FF
100482003-02-05 Fred Fish <fnf@intrinsity.com>
10049
10050 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10051 '=' and '!='.
10052 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10053 with '&' and '=='.
10054 (angel_RDI_info): Ditto.
10055 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10056 with '&' and '!='.
10057 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10058
4389a95a 100592003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10060 Keith Seitz <keiths@redhat.com>
10061 Elena Zannoni <ezannoni@redhat.com>
10062 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10063
10064 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10065 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10066 (SUBDIR_MI_OBS): Add "mi-interp.o".
10067 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10068 (SFILES): Add "interps.c".
10069 (COMMON_OBS): Add "interps.o".
10070 (interps_h, mi_main_h): Define.
10071 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10072 (mi-main.o, main.o, event-top.o): Update dependencies.
10073 * cli/cli-interp.c: New file.
10074 * interps.h, interps.c: New files.
10075 * top.c: (gdb_init): Don't install the default interpreter, handed
10076 by captured_main.
10077 * main.c: Include "interps.h".
10078 (interpreter_p): Note that it should malloc'ed.
10079 (captured_command_loop): Call current_interp_command_loop.
10080 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10081 xfree and xstrdup when updating interpreter_p. Install the
10082 default interpreter. Add hack to stop mi1's copyright notice
10083 being encoded.
10084 * event-top.h (gdb_setup_readline): Declare.
10085 (gdb_disable_readline): Declare.
10086 * event-top.c: Include "interps.h".
10087 (display_gdb_prompt): Call current_interp_display_prompt_p.
10088 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10089 gdb_stdlog, and gdb_stdtarg.
10090 (_initialize_event_loop): Don't call gdb_setup_readline.
10091 * cli-out.c (cli_out_set_stream): New function.
10092 * cli-out.h (cli_out_set_stream): Declare.
10093
ff3b5810
MK
100942003-02-06 Mark Kettenis <kettenis@gnu.org>
10095
10096 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10097 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10098 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10099 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10100 config/i386/i386v42mp.mt: Removed.
10101
5b729aa5
MK
101022003-02-05 Mark Kettenis <kettenis@gnu.org>
10103
10104 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10105 GDB_OSABI_SOLARIS.
10106
8cc15142
MC
101072003-02-05 Michael Chastain <mec@shout.net>
10108
10109 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10110 2.12.1 and earlier versions.
10111
5aa5d4b9
AC
101122003-02-05 Andrew Cagney <ac131313@redhat.com>
10113
10114 Remove orphaned hosts, targets and files.
10115 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10116 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10117 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10118 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10119 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10120 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10121 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10122 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10123 * config/sparc/tm-sp64sim.h: Delete.
10124 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10125 hosts.
10126 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10127 mips*-dec-mach3* targets.
10128
b68767c1
MC
101292003-02-04 Michael Chastain <mec@shout.net>
10130
10131 * NEWS: Fix typo: sepcifying -> specifying.
10132
5ae7ca1d
MC
101332003-02-04 Michael Chastain <mec@shout.net>
10134
10135 * dwarfread.c: Add documentation on the state of dwarf-1,
10136 looking towards obsoletion.
10137
d08a4280
MC
101382003-02-03 Michael Chastain <mec@shout.net>
10139
10140 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10141 gdb/testsuite/gdb.c++/pr-1023.exp.
10142
e9be73e4
AC
101432003-02-04 Andrew Cagney <ac131313@redhat.com>
10144
10145 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10146 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10147
10148 * utils.c (init_page_info): Delete reference to MPW in comments.
10149 * main.c (captured_main): Delete #ifdef MPW.
10150
05d57f6f
AC
101512003-02-04 Andrew Cagney <ac131313@redhat.com>
10152
8ffd9b1b 10153 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10154 * monitor.c (monitor_expect): Obsolete reference to m32r.
10155 * configure.tgt: Mark m32r-*-elf* as obsolete.
10156 * MAINTAINERS: Mark m32k as obsolete.
10157 * m32r-rom.c: Obsolete file.
10158 * config/m32r/m32r.mt: Obsolete file.
10159 * config/m32r/tm-m32r.h: Obsolete file.
10160 * m32r-stub.c: Obsolete file.
10161 * m32r-tdep.c: Obsolete file.
10162
8b0e5691
AC
101632003-02-04 Andrew Cagney <ac131313@redhat.com>
10164
10165 * NEWS: Mention that the z8k-zilog-none is obsolete.
10166 * MAINTAINERS: Mark z8k as obsolete.
10167 * configure.tgt: Obsolete the z8k-*-coff* target.
10168 * config/z8k/z8k.mt: Obsolete file.
10169 * config/z8k/tm-z8k.h: Obsolete file.
10170 * z8k-tdep.c: Obsolete file.
10171
67f16606
AC
101722003-02-04 Andrew Cagney <ac131313@redhat.com>
10173
10174 * NEWS: Mention that the mn10200-elf is obsolete.
10175 * configure.tgt: Obsolete mn10200-*-* target.
10176 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10177 mention that the mn10200 is obsolete.
10178 * breakpoint.h: Ditto.
10179 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10180 * config/mn10200/mn10200.mt: Obsolete file.
10181 * config/mn10200/tm-mn10200.h: Obsolete file.
10182 * mn10200-tdep.c: Obsolete file.
10183
fd2299bd
AC
101842003-02-04 Andrew Cagney <ac131313@redhat.com>
10185
10186 * MAINTAINERS: Mark h8500 as obsolete.
10187 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10188 * findvar.c (value_from_register): Ditto.
10189 * h8500-tdep.c: Mark file as obsolete.
10190 * config/h8500/h8500.mt: Ditto.
10191 * config/h8500/tm-h8500.h: Ditto.
10192 * NEWS: Mention that h8500 is obsolete.
10193
eb9a305d
DC
101942003-02-04 David Carlton <carlton@math.stanford.edu>
10195
10196 * objfiles.c (allocate_objfile): Always set name. Add comment at
10197 start of function.
10198 * jv-lang.c (get_dynamics_objfile): Add comment.
10199
406fc7fb
DC
102002003-02-04 David Carlton <carlton@math.stanford.edu>
10201
10202 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10203 * printcmd.c (build_address_symbolic): Replace uses of
10204 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10205 SYMBOL_NAME, and asm_demangle.
10206 Update copyright.
10207
93d91629
DC
102082003-02-04 David Carlton <carlton@math.stanford.edu>
10209
10210 * linespec.c (decode_compound): Extract code into
10211 lookup_prefix_sym.
10212 (lookup_prefix_sym): New function.
10213
1c5cb38e
DC
102142003-02-04 David Carlton <carlton@math.stanford.edu>
10215
10216 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10217 FLOAT_COERCION_BADNESS.
10218 * gdbtypes.c (rank_one_type): Replace all uses of
10219 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10220
0cf824c9
JB
102212003-02-04 Jim Blandy <jimb@redhat.com>
10222
10223 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10224 section, let dwarf_macinfo_section point to it, not
10225 dwarf_loc_section.
10226
a2d356b0
DJ
102272003-02-04 Daniel Jacobowitz <drow@mvista.com>
10228
10229 Pointed out by Anton Blanchard <anton@samba.org>.
10230 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10231 (ppc_linux_at_sigtramp_return_path): Use it.
10232
2de7ced7
DJ
102332003-02-04 Daniel Jacobowitz <drow@mvista.com>
10234
10235 * defs.h (streq): Add prototype.
10236 * utils.c (streq): New function.
10237
10238 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10239 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10240 * mdebugread.c (new_symbol): Likewise.
10241 * stabsread.c (define_symbol): Likewise.
10242 * coffread.c (process_coff_symbol): Likewise.
10243 * dwarfread.c (new_symbol): Likewise.
10244
10245 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10246 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10247 here.
10248 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10249 SYMBOL_INIT_DEMANGLED_NAME.
10250 * objfiles.c: Include "hashtab.h".
10251 (allocate_objfile): Call htab_set_functions_ex for the
10252 demangled_names_hash.
10253 (free_objfile): Call htab_delete for the demangled_names_hash.
10254 * objfiles.h (struct htab): Add declaration.
10255 (struct objfile): Add demangled_names_hash.
10256 * symfile.c: Include "hashtab.h".
10257 (reread_symbols): Call htab_delete for the demangled_names_hash.
10258 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10259 SYMBOL_NAME in the bcache.
10260 * symtab.c: Include "hashtab.h". Update comments.
10261 (create_demangled_names_hash, symbol_set_names): New functions.
10262 (symbol_find_demangled_name): New function, broken out from
10263 symbol_init_demangled_names.
10264 (symbol_init_demangled_names): Use it.
10265 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10266 (SYMBOL_SET_NAMES): New macro.
10267 (symbol_set_names): Add prototype.
10268
15831452
JB
102692003-02-03 Jim Blandy <jimb@redhat.com>
10270
10271 Use a single, consistent representation for an empty minimal
10272 symbol table in an objfile.
10273 * objfiles.c (terminate_minimal_symbol_table): New function.
10274 (allocate_objfile): Call it.
10275 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10276 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10277 non-NULL.
15831452
JB
10278 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10279 objfile has minimal symbols, compare minimal_symbol_count to zero,
10280 instead of comparing msymbols with NULL.
10281 * objfiles.c (have_minimal_symbols): Same.
10282 * solib-sunos.c (solib_add_common_symbols): Call
10283 terminate_minimal_symbol_table.
10284 * symfile.c (reread_symbols): Same.
8ffd9b1b 10285
ffc65945
KB
102862003-02-03 Kevin Buettner <kevinb@redhat.com>
10287
10288 * s390-tdep.c (s390_address_class_type_flags)
10289 (s390_address_class_type_flags_to_name)
10290 (s390_address_class_name_to_type_flags): New functions.
10291 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10292 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10293
f211c6d4
MS
102942003-02-03 Michael Snyder <msnyder@redhat.com>
10295
10296 * arm-tdep.c: Fix spell-o in comment.
10297
659b0389
ML
102982003-02-03 Michal Ludvig <mludvig@suse.cz>
10299
10300 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10301 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10302 error messages to contain BFD filename.
659b0389 10303
3b31d625
EZ
103042003-02-02 Elena Zannoni <ezannoni@redhat.com>
10305
997b089a 10306 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10307 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10308 (do_mixed_source_and_assembly): Use
10309 make_cleanup_ui_out_tuple_begin_end and
10310 make_cleanup_ui_out_tuple_begin_end.
10311 (do_mixed_source_and_assembly): Ditto.
10312 * thread.c (do_captured_list_thread_ids): Ditto.
10313 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10314 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10315 ui_out_tuple_end): Delete prototypes.
10316 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10317 ui_out_list_end, ui_out_tuple_end): Delete.
10318
10319 From Kevin Buettner <kevinb@redhat.com>:
10320 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10321 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10322 (do_cleanup_table_end): New functions.
10323 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10324 Use cleanups to invoke_ui_out_tuple_end().
10325 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10326 * cli/cli-setshow.c (cmd_show_list): Use
10327 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10328
5b181d62
AC
103292003-02-02 Andrew Cagney <ac131313@redhat.com>
10330
10331 * frame.c (frame_unwind_register): New function.
10332 (frame_unwind_unsigned_register): Use.
10333 (frame_unwind_signed_register): Use.
10334 (frame_read_register): New function.
10335 * frame.h (frame_unwind_register): Declare.
10336 (frame_read_register): Declare.
10337
10338 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10339 and frame_unwind_register instead of read_memory, write_register
10340 and deprecated_write_register_bytes.
10341
5f601589
AC
103422003-02-02 Andrew Cagney <ac131313@redhat.com>
10343
10344 * frame.h: Note that namelen can be negative.
10345 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10346 NAME's length.
10347
10348 * NEWS: Mention that the d10v's `regs' command is deprecated.
10349 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10350 (d10v_print_registers_info): New function.
10351 (show_regs): Call d10v_print_registers_info.
10352 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10353
6a3fe0a4
MK
103542003-02-02 Mark Kettenis <kettenis@gnu.org>
10355
10356 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10357 lost in the previous patch.
10358
075559bc
AC
103592003-02-01 Andrew Cagney <ac131313@redhat.com>
10360
10361 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10362 * stack.c (print_frame_info_base): Output complete FRAME tuple
10363 for synthesized frames.
075559bc 10364
6789195b
AC
103652003-02-02 Andrew Cagney <ac131313@redhat.com>
10366
10367 * mips-nat.c (zerobuf): Delete.
10368 (fetch_inferior_registers): Alloc local zerobuf.
10369 (fetch_core_registers): Alloc local zerobuf.
10370 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10371 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10372 * thread-db.c (thread_db_store_registers): Ditto.
10373 * sh-tdep.c (sh_do_register): Ditto.
10374 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10375 * remote-sim.c (gdbsim_store_register): Ditto.
10376 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10377 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10378 * monitor.c (monitor_supply_register): Ditto.
10379 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10380 * mips-nat.c (fetch_inferior_registers): Ditto.
10381 * m68klinux-nat.c (fetch_register): Ditto.
10382 * lynx-nat.c (fetch_inferior_registers): Ditto.
10383 (fetch_inferior_registers): Ditto.
10384 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10385 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10386 (hpux_thread_store_registers): Ditto.
10387 * hppah-nat.c (fetch_register): Ditto.
10388 * hppab-nat.c (fetch_register): Ditto.
10389 * hppa-tdep.c (pa_register_look_aside): Ditto.
10390 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10391 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10392
e669114a
AC
103932003-02-01 Andrew Cagney <ac131313@redhat.com>
10394
10395 * gdbarch.sh: Explictly specify all method levels. When a
10396 variable with an empty level, provide a non-multi-arch default.
10397 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10398 * gdbarch.h: Re-generate.
10399 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10400 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10401
9a043c1d
AC
104022003-02-01 Andrew Cagney <ac131313@redhat.com>
10403
10404 * defs.h (host_pointer_to_address): Delete declaration.
10405 (address_to_host_pointer): Delete declaration.
10406 * utils.c (host_pointer_to_address): Delete function.
10407 (address_to_host_pointer): Delete function.
10408 * procfs.c (procfs_address_to_host_pointer): New function.
10409 * procfs.c (proc_set_watchpoint): Use.
10410 (procfs_can_use_hw_breakpoint): Update comments.
10411 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10412 (som_solib_add): Use.
10413 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10414 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10415
7ca9f392
AC
104162003-02-01 Andrew Cagney <ac131313@redhat.com>
10417
94bbfd30
AC
10418 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10419 strlen d_name.
10420
7ca9f392
AC
10421 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10422 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10423 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10424 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10425 (define_symbol): Update.
10426 * symfile.c (generic_load): Remove references to nindy.
10427 * symtab.c: Remove references to nindy.
10428
31a85ea2
AC
104292003-02-01 Andrew Cagney <ac131313@redhat.com>
10430
10431 * infcmd.c (print_float_info): Delete code conditional on
10432 FLOAT_INFO.
10433 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10434 * config/m68k/nm-apollo68b.h: Ditto.
10435 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10436 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10437 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10438
f6e85fc8
MK
104392003-02-01 Mark Kettenis <kettenis@gnu.org>
10440
6015b6a0
MK
10441 * config/i386/tm-i386os9k.h: Removed.
10442
f7a30bdf
MK
10443 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10444 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10445 they're identical to i[3456]86-*-sysv* now.
10446 * config/i386/i386v32.mh: Removed.
10447 * config/i386/xm-i386v32.h: Removed.
10448 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10449
28d52111
MK
10450 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10451
4d3f6bce
MK
10452 * config/i386/i386dgux.mh: Removed.
10453 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10454
f6e85fc8
MK
10455 * configure.in: Fix typo.
10456 * configure: Regenerated.
10457
53955967
DC
104582003-01-31 David Carlton <carlton@math.stanford.edu>
10459
10460 * dwarf2read.c (dwarf2_locate_sections): Set
10461 dwarf_ranges_section.
10462
b1364885
AC
104632003-01-31 Andrew Cagney <ac131313@redhat.com>
10464
8dbb1c65
AC
10465 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10466 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10467
8731e58e
AC
10468 * utils.c: Re-indent.
10469
b1364885
AC
10470 * config/djgpp/fnchange.lst: Delete nindy files.
10471 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10472 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10473 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10474 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10475 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10476 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10477 * Makefile.in (init.c): Remove nindy references.
10478 (saber_gdb): Delete rule.
10479 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10480 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10481 and a68v-nat.c.
10482 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10483 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10484 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10485 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10486 nindy-share/stop.h.
10487 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10488 * saber.suppress: Delete file.
10489
086df311
DJ
104902003-01-31 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * dbxread.c (stabs_data): New static variable.
10493 (fill_symbuf): Support an in-memory buffer for stabs data.
10494 (stabs_seek): New function.
10495 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10496 (read_ofile_symtab): Use stabs_seek.
10497 (elfstab_build_psymtabs): Take an asection* instead of
10498 an offset and size. Relocate the stabs data if necessary.
10499 Save the section* for dbx_psymtab_to_symtab.
10500 * dwarf2read.c: Add section variables for each debug section.
10501 (dwarf2_locate_sections): Fill them in.
10502 (dwarf2_read_section): Take an asection* argument.
10503 Relocate the section contents if necessary.
10504 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10505 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10506 it to dwarf2_read_section.
10507 (dwarf2_build_frame_info): Update callers.
10508 * elfread.c (elf_symfile_read): Update call to
10509 elfstab_build_psymtabs.
10510 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10511 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10512 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10513 * symfile.c (symfile_dummy_outputs): New function.
10514 (symfile_relocate_debug_section): New function.
10515 * symfile.h (symfile_relocate_debug_section): Add prototype.
10516
87d1b352
RH
105172003-01-31 Richard Henderson <rth@redhat.com>
10518
10519 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10520 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10521 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10522 * alpha-tdep.c (alpha_register_name): Add "unique".
10523 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10524 (ALPHA_UNIQUE_REGNUM): New.
10525 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10526
c48861fb
AC
105272003-01-31 Andrew Cagney <ac131313@redhat.com>
10528
10529 * README: Remove reference to Ericsson 1800 monitor.
10530 * Makefile.in (remote-es.o): Delete rule.
10531 (ALLDEPFILES): Delete remote-es.c.
10532 * remote-es.c: Delete file.
10533 * config/m68k/es1800.mt: Delete file.
10534 * config/djgpp/fnchange.lst: Update.
10535 * configure.tgt: Delete m68*-ericsson-* target.
10536
d764a824
AF
105372003-01-31 Adam Fedor <fedor@gnu.org>
10538
10539 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10540 Remove duplicate/shadowing variable of same name.
10541
fe36c4f4
JB
105422003-01-30 Jim Blandy <jimb@redhat.com>
10543
10544 * symfile.c (find_separate_debug_file): Assert that the objfile's
10545 directory name we compute ends with a slash, and then assume that
10546 that's so everywhere we use it.
10547
cb741690
DJ
105482003-01-30 Daniel Jacobowitz <drow@mvista.com>
10549
10550 * valops.c (value_assign): Flush frame cache after stores to memory
10551 also.
10552
96ee5227
AC
105532003-01-30 Andrew Cagney <ac131313@redhat.com>
10554
10555 * Makefile.in (mon960-rom.o): Delete rule.
10556 * mon960-rom.c: Delete file.
10557
7f6104a9
AC
105582003-01-30 Andrew Cagney <ac131313@redhat.com>
10559
10560 * d10v-tdep.c: Include "frame-unwind.h".
10561 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10562 list.
10563 (next_addr, uses_frame): Delete.
10564 (struct d10v_unwind_cache): Define.
10565 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10566 Use info instead of next_addr and uses_frame globals.
10567 (d10v_frame_init_saved_regs): Delete function.
10568 (d10v_init_extra_frame_info): Delete function.
10569 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10570 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10571 init_frame_pc or frame_saved_pc.
10572 (d10v_pop_frame): Delete function.
10573 (do_d10v_pop_frame): Delete function.
10574 (d10v_frame_chain): Delete function.
10575 (d10v_frame_chain_valid): Delete function.
10576 (d10v_frame_pc_unwind): New function.
10577 (d10v_frame_id_unwind): New function.
10578 (saved_regs_unwinder): New function.
10579 (d10v_frame_register_unwind): New function.
10580 (d10v_frame_pop): New function.
10581 (d10v_frame_unwind): New variable.
10582 (d10v_frame_p): New function.
10583 (d10v_frame_saved_pc): Delete function.
10584 * Makefile.in (d10v-tdep.o): Update dependencies.
10585
cad2e848
JB
105862003-01-30 J. Brobecker <brobecker@gnat.com>
10587
10588 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10589 causing some regressions due to a change in the default value
10590 for this macro.
10591
af34e669
DJ
105922003-01-29 Richard Henderson <rth@redhat.com>
10593 Elena Zannoni <ezannoni@redhat.com>
10594 Daniel Jacobowitz <drow@mvista.com>
10595
10596 Fix PR gdb/961.
8ffd9b1b 10597 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10598 variables.
10599 (RANGES_SECTION): New.
10600 (dwarf_ranges_buffer): New variable.
10601 (struct comp_unit_head): Add member "die".
10602 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10603 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10604 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10605 (dwarf2_locate_sections): Likewise.
10606 (dwarf2_build_psymtabs): Read .debug_ranges.
10607 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10608 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10609 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10610 Look for DW_AT_ranges and return the bounding box.
10611
baa93fa6
CF
106122003-01-29 Brian Ford <ford@vss.fsi.com>
10613
10614 * win32-nat.c (cygwin_pid): Removed as unused.
10615 (child_attach): Try fall back to Cygwin pid.
10616
c63f977f
JB
106172003-01-29 Jim Blandy <jimb@redhat.com>
10618
10619 * objfiles.h (struct objfile): Doc fix.
10620
d62d1979
AC
106212003-01-29 Andrew Cagney <ac131313@redhat.com>
10622
10623 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10624 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10625 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10626 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10627 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10628 (FRAME_SAVED_PC): Change to a function with predicate.
10629 * gdbarch.h, gdbarch.c: Re-generate.
10630
1ae18a04
AC
106312003-01-28 Andrew Cagney <ac131313@redhat.com>
10632
52287340
AC
10633 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10634
1ae18a04
AC
10635 * complaints.c (complain): Delete function.
10636 * complaints.h (struct deprecated_complaint): Delete definition.
10637 (complain): Delete declaration.
10638
f2c16bd6
KB
106392003-01-28 Kevin Buettner <kevinb@redhat.com>
10640
10641 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10642 dummy frames.
10643
a94dd1fd
AC
106442003-01-27 Andrew Cagney <ac131313@redhat.com>
10645
10646 * sentinel-frame.h, sentinel-frame.c: New files.
10647 * Makefile.in (frame.o): Update dependencies.
10648 (SFILES): Add sentinel-frame.c.
10649 (sentinel_frame_h): Define.
10650 (COMMON_OBS): Add sentinel-frame.o.
10651 (sentinel-frame.o): Specify dependencies.
10652 * frame.c: Include "sentinel-frame.h".
10653 (frame_register_unwind): Rewrite assuming that there is always a a
10654 ->next frame.
10655 (frame_register, generic_unwind_get_saved_register): Ditto.
10656 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10657 (create_sentinel_frame, unwind_to_current_frame): New functions.
10658 (get_current_frame): Rewrite using create_sentinel_frame and
10659 unwind_to_current_frame. When possible, always create a frame.
10660 (create_new_frame): Set next to the sentinel frame.
10661 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10662 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10663 ID cache when necessary.
10664 (frame_saved_regs_id_unwind): Use frame_relative_level.
10665 (deprecated_generic_get_saved_register): Use frame_relative_level,
10666 get_frame_saved_regs, get_frame_pc, get_frame_base and
10667 get_next_frame.
10668 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10669 frame_register.
10670
5378adc4
DJ
106712003-01-27 Daniel Jacobowitz <drow@mvista.com>
10672
10673 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10674
51ee2ddc
DJ
106752003-01-27 Daniel Jacobowitz <drow@mvista.com>
10676
10677 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10678 (maintenance_set_profile_cmd): Use error () instead of warning ().
10679
d9feb4e7
DJ
106802003-01-27 Daniel Jacobowitz <drow@mvista.com>
10681
10682 * configure.in: Check that -pg works if using --enable-profiling.
10683 Check for monstartup and _mcleanup regardless of --enable-profiling.
10684 * maint.c: Check for monstartup and _mcleanup before using them.
10685 * config.in: Regenerated.
10686 * configure: Regenerated.
10687
2d188dd3
NC
106882003-01-24 Nick Clifton <nickc@redhat.com>
10689
10690 * Add sh2e support:
10691
10692 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10693
10694 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10695 (sh2e_show_regs): New.
10696 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10697 * config/sh/tm-sh.h: Added sh2e to comments.
10698
cb3c37b2
JB
106992003-01-23 Jim Blandy <jimb@redhat.com>
10700
10701 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10702 symbols found)" message here; we haven't checked for a separate
10703 debug info file yet, so we don't know yet.
10704 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10705 we've looked everywhere. Also, there's no need to print a special
10706 message when we're loading the separate debug info file: the one
10707 symbol_file_add prints is fine.
10708
5b5d99cf
JB
107092003-01-23 Alexander Larsson <alexl@redhat.com>
10710 Jim Blandy <jimb@redhat.com>
10711
10712 Add support for executables whose debug info has been separated
10713 out into a separate file, leaving only a link behind.
10714 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10715 and separate_debug_objfile_backlink.
10716 (put_objfile_before): New declaration.
10717 * symfile.c: #include "filenames.h".
10718 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10719 debug info in a separate file, read that, too. Save the addrs
10720 argument, so we can use it again to read the separated debug info;
10721 syms_from_objfile modifies the table we pass it.
10722 (reread_symbols): After re-reading an objfile, call
10723 reread_separate_symbols to refresh its separate debug info
10724 objfile, if it has one.
10725 (reread_separate_symbols, find_separate_debug_file,
10726 get_debug_link_info, separate_debug_file_exists): New functions.
10727 (debug_file_directory): New global var.
10728 (_initialize_symfile): Initialize debug_file_directory, and
10729 provide the new `set debug-file-directory' command to let the user
10730 change it.
10731 * objfiles.c (free_objfile): If this objfile has its debug info in
10732 a separate objfile, free that one too. If this is itself a
10733 separate debug info objfile, clear our parent's backlink.
10734 (put_objfile_before): New function.
10735 * utils.c (gnu_debuglink_crc32): New function.
10736 * defs.h (gnu_debuglink_crc32): New declaration.
10737 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10738 * configure.in: Handle --with-separate-debug-dir config option.
10739 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10740 * acconfig.h (DEBUGDIR): New macro.
10741 * configure, aclocal.m4, config.in: Regenerated.
10742
7e8580c1
JB
107432003-01-22 Jim Blandy <jimb@redhat.com>
10744
7904e09f
JB
10745 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10746 like the old symbol_file_add, but taking new arguments: you can
10747 now pass in either a `struct section_addr_info' list to say where
10748 each section is loaded, or a `struct section_offsets' table. Pass
10749 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10750 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10751 with the appropriate quiescent values for the new arguments.
10752
7e8580c1
JB
10753 * symfile.c: #include "gdb_assert.h".
10754 (syms_from_objfile): Add the ability to pass in a section offset
10755 table directly, as an alternative to the section_addr_info table.
10756 Document arguments better.
10757 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10758 * symfile.h (syms_from_objfile): Update declaration.
10759 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10760 syms_from_objfile.
10761 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10762
d28f9cdf
DJ
107632003-01-22 Daniel Jacobowitz <drow@mvista.com>
10764
10765 Original patch by Tom Tromey <tromey@cygnus.com> and
10766 Jason Molenda <jmolenda@apple.com>.
10767 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10768 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10769 * NEWS: Mention profiling.
10770 * configure.in (--enable-gdbtk): Fix typo.
10771 (--enable-profiling): New. Set PROFILE_CFLAGS.
10772 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10773 Fill in function.
10774 (profiling_state): New variable.
10775 (mcleanup_wrapper): New function.
10776 (_initialize_maint): Remove NOTYET, fix call to
10777 add_setshow_boolean_cmd for "maint set profile".
10778 * configure: Regenerated.
10779
df21e465
MH
107802003-01-21 Martin M. Hunt <hunt@redhat.com>
10781
10782 * Makefile.in (install-gdbtk): Install PNG images too.
10783
73c1f219
AC
107842003-01-21 Andrew Cagney <ac131313@redhat.com>
10785
10786 * exec.c (text_start): Delete global variable.
10787 (exec_file_attach): Make text_start local to the function.
10788 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10789 * valops.c (hand_function_call): Delete code that handles
10790 BEFORE_TEXT_END and AFTER_TEXT_END.
10791 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10792 of CALL_DUMMY_LOCATION.
10793 * gdbarch.c: Regenerate.
10794 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10795 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10796 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10797 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10798 (text_end): Delete extern declaration.
10799
eb4f72c5
AC
108002003-01-21 Andrew Cagney <ac131313@redhat.com>
10801
10802 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10803 * blockframe.c (backtrace_below_main): Move to "frame.c".
10804 (frame_chain_valid): Delete check for backtrace_below_main.
10805 (_initialize_blockframe): Delete initialization, move ``set
10806 backtrace-below-main'' command to "frame.c".
10807 (do_flush_frames_sfunc): Delete function.
10808 * frame.c: Include "command.h" and "gdbcmd.h".
10809 (frame_type_from_pc): New function.
10810 (create_new_frame): Use frame_type_from_pc.
10811 (legacy_get_prev_frame): New function.
10812 (get_prev_frame): Rewrite. When an old style frame, call
10813 legacy_get_prev_frame. Otherwize, unwind the PC first.
10814 (_initialize_frame): Add ``set backtrace-below-main'' command.
10815 * Makefile.in (frame.o): Update dependencies.
10816
778ce8cc
AC
108172003-01-19 Andrew Cagney <ac131313@redhat.com>
10818
10819 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10820 DEPRECATED_REGISTERS_INFO.
10821
01c193c8
AC
108222003-01-19 Andrew Cagney <ac131313@redhat.com>
10823
10824 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10825 Maintainers'. Update `Various Maintainers'.
10826
dedc2a2b
AC
108272003-01-19 Andrew Cagney <ac131313@redhat.com>
10828
10829 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10830 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10831 Suppress actual parameters when `-'.
10832 * gdbarch.h, gdbarch.c: Regenerate.
10833
b7261c70
AC
108342003-01-19 Andrew Cagney <ac131313@redhat.com>
10835
10836 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10837 code handling dummy frames.
10838
dbe9fe58
AC
108392003-01-19 Andrew Cagney <ac131313@redhat.com>
10840
10841 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10842 (struct frame_unwind): Add field pop.
10843 * frame.h (frame_pop): Declare.
10844 * frame.c (frame_saved_regs_pop): New function.
10845 (trad_frame_unwinder): Add frame_saved_regs_pop.
10846 (frame_pop): New function.
10847 * dummy-frame.c (dummy_frame_pop): New function.
10848 (discard_innermost_dummy): New function.
10849 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10850 (dummy_frame_unwind): Add dummy_frame_pop.
10851 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10852 * valops.c (hand_function_call): Ditto.
10853 * stack.c (return_command): Ditto.
10854
570b8f7c
AC
108552003-01-18 Andrew Cagney <ac131313@redhat.com>
10856
10857 * cris-tdep.c: Fix function declaration indentation.
10858 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10859 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10860 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10861 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10862 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10863 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10864
108652003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10866
10867 * README (Unpacking and Installation -- quick overview):
10868 Warn against ".../gdb-5.3/gdb/configure".
10869
494cca16
AC
108702003-01-18 Andrew Cagney <ac131313@redhat.com>
10871
10872 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10873 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10874 (struct frame_unwind): Declare opaque.
10875 (dummy_frame_p): Declare function.
10876 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10877 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10878 * dummy-frame.c: Include "frame-unwind.h".
10879 (dummy_frame_p): New function.
10880 (dummy_frame_unwind): New variable.
10881 * frame.c: Include "frame-unwind.h".
10882 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10883 to use the new unwind field.
10884 (set_unwind_by_pc): Delete function.
10885 (create_new_frame, get_prev_frame): Set unwind field using
10886 frame_unwind_find_by_pc.
10887 (trad_frame_unwind, trad_frame_unwinder): New variables.
10888 * frame.h (trad_frame_unwind): Declare variable.
10889 (frame_id_unwind_ftype): Delete declaration.
10890 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10891 (struct frame_unwind): Declare opaque.
10892 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10893 register_unwind with a single unwind pointer.
10894 * frame-unwind.h, frame-unwind.c: New files.
10895 * Makefile.in (SFILES): Add frame-unwind.c.
10896 (frame_unwind_h): Define.
10897 (COMMON_OBS): Add frame-unwind.o.
10898 (frame-unwind.o): Specify dependencies.
10899 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10900
4efb68b1
AC
109012003-01-18 Andrew Cagney <ac131313@redhat.com>
10902
10903 * ada-valprint.c: Eliminate PTR.
10904 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10905 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10906 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10907 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10908 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10909 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10910 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10911
a84d24ee
AC
109122003-01-17 Andrew Cagney <ac131313@redhat.com>
10913
762f08a3
AC
10914 * main.c (captured_main): Don't use PTR.
10915 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10916 * gdbtypes.c (lookup_primitive_typename): Ditto.
10917 (lookup_struct_elt_type): Ditto.
10918 * f-valprint.c (info_common_command): Ditto.
10919 (list_all_visible_commons): Ditto.
10920 * jv-typeprint.c (java_type_print_base): Ditto.
10921
a84d24ee
AC
10922 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10923 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10924 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10925 i386-interix-nat.c and i386-interix-tdep.c. Rename
10926 m68klinux-nat.c and m68klinux-tdep.c. Rename
10927 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10928 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10929 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10930 * main.c (captured_main): Use xfree, not free.
10931
c170fb60
AC
109322003-01-16 Andrew Cagney <ac131313@redhat.com>
10933
10934 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10935 ID back using a parameter.
10936 * frame.c (frame_id_unwind): Update call.
10937 (frame_saved_regs_id_unwind): Update.
10938 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10939 * dummy-frame.h (struct frame_id): Add opaque declaration.
10940 (dummy_frame_id_unwind): Update declaration.
10941
867f3898
AC
109422003-01-15 Andrew Cagney <ac131313@redhat.com>
10943
10944 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10945
40622be8 109462003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10947
40622be8 10948 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10949
ae66c1fc
EZ
109502003-01-14 Elena Zannoni <ezannoni@redhat.com>
10951
997b089a 10952 Fix PR gdb/898
ae66c1fc
EZ
10953 * breakpoint.c (until_break_command): Add new argument. Use it to
10954 decide whether to stop only at the current frame or not.
10955 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10956 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10957 call.
10958 (advance_command): New function.
10959 (_initialize_infcmd): Update help string for 'until' command.
10960 Add new 'advance' command.
10961
a04257e6
DC
109622003-01-14 David Carlton <carlton@math.stanford.edu>
10963
10964 * linespec.c (decode_line_1): Normalize comments.
10965 (set_flags): Ditto.
10966 (locate_first_half): Ditto.
10967 (decode_compound): Ditto.
10968 (symtab_from_filename): Ditto.
10969 (decode_all_digits): Ditto.
10970 (decode_dollar): Ditto.
10971 (find_methods): Ditto.
10972 (find_toplevel_char): Ditto.
10973
1bac305b
AC
109742003-01-13 Andrew Cagney <ac131313@redhat.com>
10975
10976 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10977 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10978 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10979 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10980 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10981 * language.c, language.h, m32r-tdep.c: Update copyright.
10982 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10983 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10984 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10985 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10986 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10987 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10988
25caa7a8
EZ
109892003-01-13 Elena Zannoni <ezannoni@redhat.com>
10990
10991 * stabsread.h (process_later, resolve_cfront_continuation):
10992 Obsolete.
10993 Update copyright years.
10994 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10995 Update copyright year.
10996 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10997 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10998 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10999 Update copyright year.
11000 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11001 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11002 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11003 (parse_partial_symbols): Obsolete cfront support.
11004 * stabsread.c
11005 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11006 macros.
11007 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11008 read_cfront_baseclasses, read_cfront_member_functions,
11009 resolve_cfront_continuation,read_cfront_static_fields,
11010 copy_cfront_struct_fields): Obsolete functions.
11011 (define_symbol, read_one_struct_field): Obsolete cfront support.
11012 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11013 Update Copyright year.
11014
7789c6f5
EZ
110152003-01-13 Elena Zannoni <ezannoni@redhat.com>
11016
11017 * stack.c (print_frame_info, print_stack_frame_base_stub,
11018 print_stack_frame_base, show_and_print_stack_frame_stub,
11019 show_and_print_stack_frame, print_only_stack_frame_stub,
11020 print_only_stack_frame): Delete functions.
11021 (print_stack_frame_stub): Call print_frame_info instead of
11022 print_frame_info_base.
11023 (print_frame_info_base): Rename to print_frame_info.
11024 (backtrace_command_1): Call print_frame_info, instead of
11025 print_frame_info_base.
11026 (current_frame_command): Call print_stack_frame, instead of
11027 print_only_stack_frame.
11028 (frame_command): Call print_stack_frame, instead of
11029 show_and_print_stack_frame.
11030 (up_command): Ditto.
11031 (down_command): Ditto.
11032 * frame.h (print_only_stack_frame): Delete prototype.
11033 * infrun.c (normal_stop): Call print_stack_frame, instead of
11034 show_and_print_stack_frame.
11035 * thread.c (info_threads_command): Call print_stack_frame, instead
11036 of print_only_stack_frame.
11037
3f5a3016
AC
110382003-01-13 Andrew Cagney <ac131313@redhat.com>
11039
d99ba314
AC
11040 * README (Graphical interface to GDB): Update URL. Point at
11041 gdb/links/.
11042
3f5a3016
AC
11043 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11044 version match.
11045
083ae935
DJ
110462003-01-13 Daniel Jacobowitz <drow@mvista.com>
11047
11048 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11049 lines.
11050
5365276c
DJ
110512003-01-13 Daniel Jacobowitz <drow@mvista.com>
11052
11053 * thread-db.c (attach_thread): Prototype.
11054 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11055 thread information (ti), and valid flags (th_valid, ti_valid).
11056 (attach_thread): Move target_pid_to_str call to after the thread
11057 is added to GDB's list. Initialize the cache.
11058 (thread_get_info_callback, thread_db_map_id2thr)
11059 (thread_db_get_info): New functions.
11060 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11061 (thread_db_store_registers, thread_db_thread_alive)
11062 (thread_db_get_thread_local_address): Use them.
11063 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11064 of calling error() for threads in unknown state.
11065
11066 (clear_lwpid_callback): New function.
11067 (thread_db_resume): Use it to clear the cache.
11068
9fc30b6b
DJ
110692003-01-13 Daniel Jacobowitz <drow@mvista.com>
11070
11071 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11072 (resume_callback): Remove dead code.
11073
8f871025
AC
110742003-01-13 Andrew Cagney <ac131313@redhat.com>
11075
11076 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11077 predicate.
11078 * gdbarch.h, gdbarch.c: Regenerate.
11079 * stack.c (frame_info): Only initialize the saved registers when
11080 FRAME_INIT_SAVED_REGS_P.
11081 * frame.c (frame_saved_regs_register_unwind): Assert
11082 FRAME_INIT_SAVED_REGS_P.
11083 (deprecated_generic_get_saved_register): Ditto.
11084
3f565f1e
DJ
110852003-01-13 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * source.c (openp): Squelch warning about "filename".
11088
072b1022
DJ
110892003-01-13 Daniel Jacobowitz <drow@mvista.com>
11090
11091 * source.c (openp): If the file does not exist don't necessarily
11092 search the path.
11093
973ccf8b
DJ
110942003-01-13 Daniel Jacobowitz <drow@mvista.com>
11095
11096 Fix PR gdb/872.
11097 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11098 (integer_types_same_name_p): New function.
11099 (rank_one_type): Use it.
11100 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11101
030292b7
DJ
111022003-01-13 Daniel Jacobowitz <drow@mvista.com>
11103
11104 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11105 variables.
11106 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11107 * configure.in: Add --with-sysroot.
11108 * configure: Regenerated.
11109 * main.c (gdb_sysroot): New variable.
11110 (captured_main): Initialize gdb_sysroot.
11111 * defs.h (gdb_sysroot): New extern declaration.
11112 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11113
afb5d334
MC
111142003-01-12 Michael Chastain <mec@shout.net>
11115
11116 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11117
751ceeb4
MC
111182003-01-12 Michael Chastain <mec@shout.net>
11119
11120 * top.c (print_gdb_version): Bump copyright year to 2003.
11121
94cd26f8
DC
111222003-01-12 David Carlton <carlton@bactrian.org>
11123
11124 * linespec.c (symtab_from_filename): Rename variable 's' to
11125 'file_symtab'.
11126
1ce79225
AC
111272003-01-12 Andrew Cagney <ac131313@redhat.com>
11128
11129 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11130 dummy frame.
11131 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11132
fa1fd571
AC
111332003-01-12 Andrew Cagney <ac131313@redhat.com>
11134
11135 * d10v-tdep.c: Include "gdb_assert.h".
11136 (d10v_store_return_value): Rewrite to match current interface.
11137 (d10v_extract_struct_value_address): Ditto.
11138 (d10v_extract_return_value): Ditto.
11139 (d10v_gdbarch_init): Set store_restore_value,
11140 extract_struct_value_address and extract_return_value.
11141
68b8d23e
JB
111422003-01-12 J. Brobecker <brobecker@gnat.com>
11143
11144 * hpread.c (set_namestring): New procedure replacing the
11145 SET_NAMESTRING macro.
11146 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11147 by calls to set_namestring.
11148
111492003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11150
11151 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11152 a compilation warning.
11153 (hpread_process_one_debug_symbol): Likewise.
11154
88d262ca
DC
111552003-01-10 David Carlton <carlton@math.stanford.edu>
11156
11157 * linespec.c (decode_line_1): Rename variable 's' to
11158 'file_symtab'.
11159 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11160 (decode_dollar): Ditto.
11161 (decode_variable): Ditto.
11162 (symbol_found): Ditto.
11163
86669319
MC
111642003-01-09 Michael Chastain <mec@shout.net>
11165
11166 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11167
616a9dc4
CV
111682003-01-07 Corinna Vinschen <vinschen@redhat.com>
11169
11170 * win32-nat.c (set_process_privilege): New function.
11171 (child_attach): Call set_process_privilege() to enable the
11172 SE_DEBUG_NAME user privilege if available in process token.
11173
3269bcfa
JB
111742003-01-10 J. Brobecker <brobecker@gnat.com>
11175
11176 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11177 compilation error in the previous revision.
11178
2b0ee454
DC
111792003-01-09 David Carlton <carlton@math.stanford.edu>
11180
11181 * linespec.c: Update copyright.
11182
b3ba1b44
DJ
111832003-01-09 Daniel Jacobowitz <drow@mvista.com>
11184
11185 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11186 than inferior_ptid.
11187 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11188
4ef3f3be
AC
111892003-01-09 Andrew Cagney <ac131313@redhat.com>
11190
479ab5a0
AC
11191 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11192 Update comments.
11193 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11194 (frame_saved_regs_zalloc): Update.
11195 (frame_saved_regs_register_unwind): Update.
11196 (create_new_frame): Update.
11197 (get_prev_frame): Update.
11198 (frame_extra_info_zalloc): Update.
11199 (deprecated_get_frame_saved_regs): Update.
11200 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11201 * cris-tdep.c: Update comment.
11202
bde58177
AC
11203 * somsolib.h: Fix function indentation.
11204 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11205 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11206 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11207 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11208 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11209
4ef3f3be
AC
11210 * infrun.c (follow_fork): Use ISO C definition.
11211 * expprint.c (print_subexp): Use xfree instead of free.
11212 * charset.c: Include "gdb_string.h" instead of <string.h>.
11213 (register_iconv_charsets): Use ISO C definition.
11214 (host_charset, target_charset): Ditto.
11215 * Makefile.in (charset.o): Update dependencies.
11216 (mi-cmd-env.o): Update dependencies.
11217
1c615f7a
AC
112182003-01-08 Andrew Cagney <cagney@redhat.com>
11219
11220 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11221 get_frame_base.
11222
c9a1dc08
AC
112232003-01-08 Andrew Cagney <ac131313@redhat.com>
11224
11225 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11226 build directories. Save edited gdb output in Mbuild.log. If a
11227 build fails, remove any final GDB executable.
11228
dbad9d94
AC
112292003-01-08 Andrew Cagney <ac131313@redhat.com>
11230
11231 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11232 replacing hex constants with function names and stripping leading
11233 file name directory prefixes.
11234
8d357cca
AC
112352003-01-08 Andrew Cagney <cagney@redhat.com>
11236
11237 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11238 get_frame_base.
11239
bca02a8a
DC
112402003-01-08 David Carlton <carlton@math.stanford.edu>
11241
11242 * linespec.c (decode_line_1): Move code into decode_variable.
11243 (decode_variable): New function.
11244
7f8ab3a0
AC
112452003-01-08 Andrew Cagney <ac131313@redhat.com>
11246
11247 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11248
7b5849cc
AC
112492003-01-08 Andrew Cagney <cagney@redhat.com>
11250
11251 * cris-tdep.c (cris_frame_init_saved_regs): Use
11252 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11253 saved_regs buffer.
11254 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11255 (sh64_nofp_frame_init_saved_regs): Ditto.
11256 (sh_fp_frame_init_saved_regs): Ditto.
11257 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11258 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11259 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11260 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11261
72a5efb3
DJ
112622003-01-08 Daniel Jacobowitz <drow@mvista.com>
11263
11264 * minsyms.c (lookup_minimal_symbol): Update comment.
11265 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11266 (lookup_minimal_symbol_solib_trampoline): Likewise.
11267
11c02a10
AC
112682003-01-08 Andrew Cagney <cagney@redhat.com>
11269
aab3ea25
AC
11270 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11271 frame_relative_level.
11272
da50a4b7
AC
11273 * alpha-tdep.c: Use get_frame_extra_info.
11274 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11275 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11276 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11277 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11278
11c02a10
AC
11279 * alpha-tdep.c: Use get_next_frame.
11280 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11281 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11282 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11283 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11284 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11285 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11286 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11287
1e2330ba
AC
112882003-01-07 Andrew Cagney <cagney@redhat.com>
11289
11290 * alpha-tdep.c: Use get_frame_base.
11291 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11292 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11293 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11294 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11295 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11296 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11297 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11298 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11299
2d75187b
AC
113002003-01-07 Andrew Cagney <cagney@redhat.com>
11301
11302 * frame.c (deprecated_get_frame_context): New function.
11303 (deprecated_set_frame_context): New function.
11304 * frame.h (deprecated_get_frame_context): Declare.
11305 (deprecated_set_frame_context): Declare.
11306 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11307 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11308
483d36b2
AC
113092003-01-07 Andrew Cagney <cagney@redhat.com>
11310
11311 * frame.c (deprecated_set_frame_next_hack): New function.
11312 (deprecated_set_frame_prev_hack): New function.
11313 * frame.h (deprecated_set_frame_next_hack): Declare.
11314 (deprecated_set_frame_prev_hack): Declare.
11315 * mcore-tdep.c (analyze_dummy_frame): Use
11316 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11317 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11318
14e91ac5
DC
113192003-01-07 David Carlton <carlton@math.stanford.edu>
11320
11321 * linespec.c (decode_line_1): Move code into decode_dollar.
11322 (decode_dollar): New function.
11323
b0c6b05c
AC
113242003-01-07 Andrew Cagney <cagney@redhat.com>
11325
11326 * arm-tdep.c (arm_init_extra_frame_info): Use
11327 deprecated_update_frame_base_hack.
11328 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11329 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11330 (fix_frame_pointer): Ditto.
11331 (mn10300_analyze_prologue): Ditto.
11332
a00a19e9
AC
113332003-01-07 Andrew Cagney <cagney@redhat.com>
11334
11335 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11336 extra_info using frame_extra_info_zalloc.
11337 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11338 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11339 (sh64_init_extra_frame_info): Ditto.
11340 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11341 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11342 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11343 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11344 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11345 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11346 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11347 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11348 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11349 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11350 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11351 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11352
11353 * mn10300-tdep.c (analyze_dummy_frame): Use
11354 deprecated_set_frame_extra_info_hack.
11355 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11356
1fb4c65b
JB
113572003-01-07 J. Brobecker <brobecker@gnat.com>
11358
11359 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11360 class is not scText. These do not define "real" procedures.
11361 (parse_partial_symbols): Likewise.
11362
9fe7d6bf
MS
113632003-01-06 Michael Snyder <msnyder@redhat.com>
11364
11365 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11366
f6c609c4
AC
113672003-01-06 Andrew Cagney <ac131313@redhat.com>
11368
11369 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11370 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11371 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11372 deprecated_frame_xmalloc_with_cleanup.
11373 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11374 deprecated_frame_xmalloc.
11375 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11376 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11377
d995ff4b
AC
113782003-01-06 Andrew Cagney <cagney@redhat.com>
11379
84dc46cb
AC
11380 * x86-64-linux-tdep.c: Include "osabi.h".
11381 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11382
d995ff4b
AC
11383 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11384
66140c26
AC
113852003-01-06 Andrew Cagney <cagney@redhat.com>
11386
11387 * MAINTAINERS (Target Instruction Set Architectures): Update
11388 arm-elf. Can be built with -Werror, has been multiarched.
11389
11390 * value.h (unpack_long): Make buffer parameter constant.
11391 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11392 * scm-lang.h (scm_parse): Ditto.
11393 * defs.h (extract_typed_address, extract_address): Ditto.
11394 (extract_long_unsigned_integer): Ditto.
11395 * inferior.h (unsigned_pointer_to_address): Ditto.
11396 (signed_pointer_to_address): Ditto.
11397 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11398 * gdbarch.h, gdbarch.c: Regenerate.
11399 * findvar.c (extract_long_unsigned_integer): Update.
11400 (extract_address): Update.
11401 (extract_typed_address): Update.
11402 (unsigned_pointer_to_address): Update.
11403 * values.c (unpack_long): Update.
11404 (unpack_double): Update.
11405 (unpack_pointer): Update.
11406 (unpack_field_as_long): Update.
11407 * d10v-tdep.c (d10v_pointer_to_address): Update.
11408 * avr-tdep.c (avr_pointer_to_address): Update.
11409 * scm-lang.c (scm_unpack): Update.
11410 * findvar.c (signed_pointer_to_address): Update.
11411
b089b3da
ML
114122003-01-06 Michal Ludvig <mludvig@suse.cz>
11413
8ffd9b1b 11414 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11415 since it is in i386-tdep.c.
11416
aff87235
JB
114172003-01-06 J. Brobecker <brobecker@gnat.com>
11418
11419 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11420 failure introduced in the previous change.
11421
34f5e845
MC
114222003-01-05 Michael Chastain <mec@shout.net>
11423
11424 * README: Remove references to deleted remote-*.c files:
11425 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11426 remote-nrom.c, remote-os9k.c, remote-udi.c.
11427
28bcfd30
MK
114282003-01-05 Mark Kettenis <kettenis@gnu.org>
11429
11430 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11431 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11432 i386_get_longjmp_target.
11433
15a5b3ee
AC
114342003-01-05 Andrew Cagney <ac131313@redhat.com>
11435
11436 * arm-tdep.c (prologue_cache): Change to a pointer.
11437 (_initialize_arm_tdep): Allocate prologue_cache.
11438 (check_prologue_cache): Update.
11439 (save_prologue_cache): Update.
11440 (arm_gdbarch_init): Update.
11441
c263362b
DJ
114422003-01-04 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * stabsread.c (update_method_name_from_physname): Call complaint()
11445 instead of error.
11446
51603483
DJ
114472003-01-04 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11450 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11451 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11452
11453 * blockframe.c: Include "gdbcmd.h" and "command.h".
11454 (backtrace_below_main): New variable.
11455 (file_frame_chain_valid, func_frame_chain_valid)
11456 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11457 (generic_func_frame_chain_valid): Remove functions.
11458 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11459 (_initialize_blockframe): New function.
11460 * Makefile.in (blockframe.o): Update dependencies.
11461 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11462 comment. Call frame_chain_valid ().
11463 * frame.h: Remove old prototypes. Add prototype for
11464 frame_chain_valid and update comments to match.
11465 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11466 Remove old comment.
11467 * gdbarch.h: Regenerated.
11468 * gdbarch.c: Regenerated.
11469
11470 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11471 set_gdbarch_frame_chain_valid.
11472 * avr-tdep.c (avr_gdbarch_init): Likewise.
11473 * cris-tdep.c (cris_gdbarch_init): Likewise.
11474 * frv-tdep.c (frv_gdbarch_init): Likewise.
11475 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11476 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11477 (i386_nw_init_abi): Likewise.
11478 (i386_gdbarch_init): Likewise.
11479 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11481 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11482 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11483 * mips-tdep.c (mips_gdbarch_init): Likewise.
11484 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11485 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11486 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11487 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11488 * s390-tdep.c (s390_gdbarch_init): Likewise.
11489 * sh-tdep.c (sh_gdbarch_init): Likewise.
11490 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11491 * v850-tdep.c (v850_gdbarch_init): Likewise.
11492 * vax-tdep.c (vax_gdbarch_init): Likewise.
11493 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11494
11495 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11496 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11497 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11498 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11499 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11500 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11501 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11502 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11503
b00a8037
DJ
115042002-01-04 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * Makefile.in (acconfig_h): Remove incorrect macro.
11507 (config_h): Define.
11508 (osabi.o): Update dependencies.
11509 * configure.tgt: Set gdb_osabi based on target triplet.
11510 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11511 * configure: Regenerated.
11512 * config.in: Regenerated.
11513 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11514 (GDB_OSABI_DEFAULT): Define if not already defined.
11515 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11516 (set_osabi_string): New variables.
11517 (gdbarch_register_osabi): Add new OS ABI to
11518 gdb_osabi_available_names.
11519 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11520 (set_osabi, show_osabi): New functions.
11521 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11522
4be87837
DJ
115232003-01-04 Daniel Jacobowitz <drow@mvista.com>
11524
11525 * arch-utils.c (gdbarch_info_init): Set osabi to
11526 GDB_OSABI_UNINITIALIZED.
11527 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11528 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11529 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11530 * gdbarch.c: Regenerated.
11531 * gdbarch.h: Regenerated.
11532 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11533 there's no BFD.
11534 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11535 * osabi.h (enum gdb_osabi): Move to defs.h.
11536 (gdbarch_init_osabi): Update prototype.
11537 * defs.h (enum gdb_osabi): Moved here.
11538 * Makefile.in: Update dependencies.
11539
11540 * alpha-tdep.h: Don't include "osabi.h".
11541 (struct gdbarch_tdep): Remove osabi member.
11542 * alpha-tdep.c: Include "osabi.h".
11543 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11544 iterate over arches. Update call to gdbarch_init_osabi.
11545 (alpha_dump_tdep): Don't dump osabi.
11546 * alpha-linux-tdep.c: Include "osabi.h".
11547 * alpha-osf1-tdep.c: Include "osabi.h".
11548 * alphafbsd-tdep.c: Include "osabi.h".
11549 * alphanbsd-tdep.c: Include "osabi.h".
11550
11551 * arm-tdep.h: Don't include "osabi.h".
11552 (struct gdbarch_tdep): Remove osabi member.
11553 * arm-tdep.c: Include "osabi.h".
11554 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11555 iterate over arches. Update call to gdbarch_init_osabi.
11556 (arm_dump_tdep): Don't dump osabi.
11557 * arm-linux-tdep.c: Include "osabi.h".
11558 * armnbsd-tdep.c: Include "osabi.h".
11559
11560 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11561 Update call to gdbarch_init_osabi.
11562
11563 * i386-tdep.h: Don't include "osabi.h".
11564 (struct gdbarch_tdep): Remove osabi member.
11565 * i386-tdep.c: Include "osabi.h".
11566 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11567 iterate over arches. Update call to gdbarch_init_osabi.
11568 (i386_dump_tdep): Don't dump osabi.
11569 * i386-linux-tdep.c: Include "osabi.h".
11570 * i386-sol2-tdep.c: Include "osabi.h".
11571 * i386bsd-tdep.c: Include "osabi.h".
11572 * i386gnu-tdep.c: Include "osabi.h".
11573 * i386ly-tdep.c: Include "osabi.h".
11574 * i386nbsd-tdep.c: Include "osabi.h".
11575 * i386obsd-tdep.c: Include "osabi.h".
11576
11577 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11578 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11579 check osabi when iterating over arches. Update call to
11580 gdbarch_init_osabi.
11581 (mips_dump_tdep): Don't dump osabi.
11582
11583 * ns32k-tdep.h: Don't include "osabi.h".
11584 (struct gdbarch_tdep): Remove.
11585 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11586 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11587 allocate tdep. Update call to gdbarch_init_osabi.
11588 (ns32k_dump_tdep): Remove.
11589 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11590 * ns32knbsd-tdep.c: Include "osabi.h".
11591
11592 * ppc-tdep.h: Don't include "osabi.h".
11593 (struct gdbarch_tdep): Remove osabi member.
11594 * rs6000-tdep.c: Include "osabi.h".
11595 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11596 osabi when iterating over arches. Update call to
11597 gdbarch_init_osabi.
11598 (rs6000_dump_tdep): Don't dump osabi.
11599 * ppc-linux-tdep.c: Include "osabi.h".
11600 * ppcnbsd-tdep.c: Include "osabi.h".
11601
11602 * sh-tdep.h: Don't include "osabi.h".
11603 (struct gdbarch_tdep): Remove osabi member.
11604 * sh-tdep.c: Include "osabi.h".
11605 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11606 iterate over arches. Update call to gdbarch_init_osabi.
11607 (sh_dump_tdep): Don't dump osabi.
11608 * shnbsd-tdep.c: Include "osabi.h".
11609
11610 * sparc-tdep.c: Include "osabi.h".
11611 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11612 iterate over arches. Update call to gdbarch_init_osabi.
11613 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11614 tdep structure.
11615
11616 * vax-tdep.h: Don't include "osabi.h".
11617 (struct gdbarch_tdep): Remove.
11618 * vax-tdep.c: Include "osabi.h".
11619 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11620 iterate over arches. Don't allocate tdep. Update call
11621 to gdbarch_init_osabi.
11622 (vax_dump_tdep): Remove.
11623 (_initialize_vax_tdep): Update call to gdbarch_register.
11624
a881cf8e
DJ
116252003-01-04 Daniel Jacobowitz <drow@mvista.com>
11626
11627 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11628 entirely.
11629 (breakpoint_re_set_one): Don't fetch the value for a disabled
11630 watchpoint.
11631
1e698235
DJ
116322003-01-04 Daniel Jacobowitz <drow@mvista.com>
11633
11634 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11635 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11636 (COERCE_FLOAT_TO_DOUBLE): Remove.
11637 * gdbarch.c: Regenerate.
11638 * gdbarch.h: Regenerate.
11639 * Makefile.in: Remove value_h from gdbarch_h.
11640 * valops.c (coerce_float_to_double): New variable.
11641 (default_coerce_float_to_double): Remove.
11642 (standard_coerce_float_to_double): Remove.
11643 (value_arg_coerce): Use coerce_float_to_double.
11644 (_initialize_valops): Add "set coerce-float-to-double".
11645 * value.h (default_coerce_float_to_double): Remove prototype.
11646 (standard_coerce_float_to_double): Remove prototype.
11647
11648 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11649 prototyped.
11650 * mdebugread.c (parse_symbol): Likewise.
11651 * stabsread.c (define_symbol): Mark all functions as prototyped.
11652
11653 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11654 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11655 set_gdbarch_coerce_float_to_double.
11656 * arm-tdep.c (arm_gdbarch_init): Likewise.
11657 * frv-tdep.c (frv_gdbarch_init): Likewise.
11658 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11659 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11660 * mips-tdep.c (mips_gdbarch_init): Likewise.
11661 (mips_coerce_float_to_double): Remove.
11662 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11663 (rs6000_coerce_float_to_double): Remove.
11664 * s390-tdep.c (s390_gdbarch_init): Likewise.
11665 * sh-tdep.c (sh_gdbarch_init): Likewise.
11666 (sh_coerce_float_to_double): Remove.
11667 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11668 (sparc_coerce_float_to_double): Remove.
11669 * v850-tdep.c (v850_gdbarch_init): Likewise.
11670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11671 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11672 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11673 (hppa_coerce_float_to_double): Remove prototype.
11674 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11675
f436a26a
DJ
116762003-01-04 Daniel Jacobowitz <drow@mvista.com>
11677
11678 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11679
248f8055
DJ
116802003-01-04 Daniel Jacobowitz <drow@mvista.com>
11681
11682 Suggested by Stewart Brown <sb24@avaya.com>:
11683 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11684 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11685 (c_type_print_varspec_suffix): Likewise.
11686
72cfdc76
MK
116872003-01-04 Mark Kettenis <kettenis@gnu.org>
11688
bfd260bb
MK
11689 * configure.in: Don't set and AC_SUBST SUBDIRS.
11690 * configure: Regenerated.
11691
72cfdc76
MK
11692 * configure.in: Remove code dealing with shared libraries.
11693 * Makefile.in: Remove HLDFLAGS and HLDENV.
11694 * configure: Regenerated.
11695
c8b8a898
AC
116962003-01-04 Andrew Cagney <ac131313@redhat.com>
11697
11698 * frame.c (deprecated_frame_xmalloc): New function.
11699 (deprecated_set_frame_saved_regs_hack): New function.
11700 (deprecated_set_frame_extra_info_hack): New function.
11701 * frame.h (deprecated_frame_xmalloc): Declare.
11702 (deprecated_set_frame_saved_regs_hack): Declare.
11703 (deprecated_set_frame_extra_info_hack): Declare.
11704
14abd0fb
MK
117052003-01-04 Mark Kettenis <kettenis@gnu.org>
11706
8ee53726
MK
11707 * configure.in: Move code that provides the --enable-gdbtk option
11708 right after the code that handles the --enable-tui option, and
11709 polish it somewhat.
11710 * configure: Regenerated.
11711
14abd0fb
MK
11712 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11713 AC_CHECK_FUNCS and remove the old check for pread64.
11714 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11715 * acconfig.h (_GNU_SOURCE): Add.
11716 (HAVE_PREAD64): Remove.
11717 * configure, aclocal.m4, config.in: Regenerated.
11718
b2fb4676
AC
117192003-01-03 Andrew Cagney <ac131313@redhat.com>
11720
11721 * alpha-tdep.c: Use get_frame_saved_regs.
11722 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11723 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11724 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11725 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11726 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11727
8dcde887
MK
117282003-01-03 Mark Kettenis <kettenis@gnu.org>
11729
11730 * configure.in: Remove all use of the SUBDIRS variable; add
11731 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11732 code providing the --enable-multi-ice option, and move it right in
11733 front of the code that checks whether gdbserver is supported.
11734 Polish that too.
11735 * configure: Regenerated.
11736 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11737 @SUBDIRS@.
11738
8ccd593b
AC
117392003-01-03 Andrew Cagney <cagney@redhat.com>
11740
11741 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11742 * avr-tdep.c, cris-tdep.c: Ditto.
11743 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11744 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11745
91151a06
MK
117462003-01-03 Mark Kettenis <kettenis@gnu.org>
11747
11748 * configure.in: Remove --enable-netrom option.
11749 * configure: Regenerated.
11750
8fe84d01
MK
117512003-01-03 Mark Kettenis <kettenis@gnu.org>
11752
11753 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11754 declaration for `struct re_pattern_buffer' instead.
11755 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11756
f0394be6
JB
117572003-01-03 J. Brobecker <brobecker@gnat.com>
11758
11759 * mdebugread.c (parse_symbol): Count until the stEnd matching
11760 the structure name.
11761
27e9bf90
MK
117622003-01-02 Mark Kettenis <kettenis@gnu.org>
11763
93d331ba
MK
11764 * configure.in: Remove --with-cpu option.
11765 subscripts. Remove evil changequotes here.
11766 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11767 * config.in, configure: Regenerated.
8ffd9b1b 11768
27e9bf90
MK
11769 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11770 * configure.in: Cleanup section that sources GDB and BFD configure
11771 subscripts. Remove evil changequotes here.
11772 * config.in, configure: Regenerated.
11773
50abf9e5
AC
117742003-01-02 Andrew Cagney <ac131313@redhat.com>
11775
11776 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11777 frame accessor methods.
11778 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11779 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11780 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11781 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11782 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11783 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11784 * z8k-tdep.c: Ditto.
8ffd9b1b 11785
287c1a40
MK
117862003-01-02 Mark Kettenis <kettenis@gnu.org>
11787
f5dbc56d
MK
11788 * configure.in: Remove UI_OUT configuration code.
11789 * ada-lang.c: Update assuming UI_OUT is always true.
11790 * Makefile.in (UIOUT_CFLAGS): Remove.
11791 * configure: Regenerated.
11792 * TODO: Remove blurb about elimination of -DUI_OUT.
11793
627af7ea
MK
11794 * configure.in: Move code that provides the --enable-gdbcli,
11795 --enable-gdbmi options right before the code that handles the
11796 --enable-tui option. Polish a bit.
11797 * configure: Regenerated.
11798
06825bd1
MK
11799 * configure.in: Rewrite check for GNU regex and the
11800 --without-included regex option, and move it into the "Checks for
11801 library functions" section. This makes us use the system regex
11802 again by default on systems with version 2 of the GNU C library.
11803 This was apparently broken.
11804 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11805 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11806 * config.in, configure: Regenerated.
11807
287c1a40
MK
11808 * configure.in: Move code that provides the --enable-tui option
11809 before the "Checks for libraries" section. Polish the code
11810 somewhat and set need_curses to yes if we build the TUI. Rewrite
11811 code that looks for a library providing termcap functionality to
11812 match more closely what's done in the Readline library, and move
11813 it into to the "Checks for libraries" section.
11814 * configure: Regenerated.
11815 * Makefile.in (TERMCAP): Remove variable.
11816 * config/i386/go32.mh (TERMCAP): Remove variable.
11817
684e56bf
AC
118182003-01-02 Andrew Cagney <ac131313@redhat.com>
11819
11820 * MAINTAINERS: Mention gdb_mbuild.sh.
11821 * gdb_mbuild.sh: Rewrite.
11822
e1ea1d75
MK
118232003-01-02 Mark Kettenis <kettenis@gnu.org>
11824
11825 * configure.in: Fix typo in last change.
11826 * config.in, configure: Regenerated.
11827
1b831c93
AC
118282003-01-02 Andrew Cagney <ac131313@redhat.com>
11829
11830 * valarith.c (value_binop): Delete obsolete code and comments.
11831 * configure.host: Ditto.
11832 * buildsym.h (make_blockvector): Ditto.
11833 * buildsym.c (make_blockvector): Ditto.
11834 * defs.h (enum language): Ditto.
11835 (chill_demangle): Ditto.
11836 * elfread.c (elf_symtab_read): Ditto.
11837 * dwarfread.c (CHILL_PRODUCER): Ditto.
11838 (set_cu_language): Ditto.
11839 (handle_producer): Ditto.
11840 * expprint.c (print_subexp): Ditto.
11841 * gdbtypes.c (chill_varying_type): Ditto.
11842 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11843 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11844 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11845 (chill_varying_type): Ditto.
11846 * language.h (_LANG_chill): Ditto.
11847 * language.c (binop_result_type, integral_type): Ditto.
11848 (character_type, string_type, structured_type): Ditto.
11849 (lang_bool_type, binop_type_check): Ditto.
11850 * stabsread.h (os9k_stabs): Ditto.
11851 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11852 (define_symbol, read_type, read_struct_fields): Ditto.
11853 (read_array_type, read_enum_type, read_huge_number): Ditto.
11854 (read_range_type, start_stabs): Ditto.
11855 * symfile.c (init_filename_language_table): Ditto.
11856 (add_psymbol_with_dem_name_to_list): Ditto.
11857 * symtab.c (symbol_init_language_specific): Ditto.
11858 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11859 * symtab.h (struct general_symbol_info): Ditto.
11860 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11861 * typeprint.c (typedef_print): Ditto.
11862 * utils.c (fprintf_symbol_filtered): Ditto.
11863 * valops.c (value_cast, search_struct_field, value_slice): Delete
11864 obsolete code.
11865 (varying_to_slice): Delete function.
11866 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11867 (varying_to_slice): Delete declaration.
11868 * MAINTAINERS: Update.
11869
8bb2c122
MK
118702003-01-02 Mark Kettenis <kettenis@gnu.org>
11871
97bf5e38
MK
11872 * configure.in: Reorganize "Checks for library functions section"
11873 a bit. Remove check for `btowc' and `isascii' functions.
11874 * configure: Regenerated.
11875
5ee754fc
MK
11876 * acconfig.h (_MSE_INT_H): Remove.
11877 * configure.in: Create "Checks for header files" section, and move
11878 appropriate tests there. Don't check for objlist.h, wchar.h,
11879 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11880 misdetection fix. Also add "Checks for types", "Checks for
11881 compiler characteristics" and "Checks for library functions"
11882 sections.
11883 * config.in, configure: Regenerated.
11884
8bb2c122
MK
11885 * configure.in: Create "Checks for programs" section, and move
11886 appropriate tests there.
11887
9a156167
MK
118882003-01-01 Mark Kettenis <kettenis@gnu.org>
11889
11890 * configure.in: Create "Checks for libraries" section, and move
11891 appropriate tests there. Cleanup check for wctype in libw. Use
11892 AC_SEARCH_LIBS to see whether we need libsocket.
11893 * configure: Regenerated.
11894
a80e2bcb 11895For older changes see ChangeLog-2002
c906108c
SS
11896\f
11897Local Variables:
11898mode: change-log
11899left-margin: 8
11900fill-column: 74
11901version-control: never
11902End:
This page took 1.000031 seconds and 4 git commands to generate.