]> Git Repo - binutils.git/blame - gdb/ChangeLog
Index: include/ChangeLog
[binutils.git] / gdb / ChangeLog
CommitLineData
1c704f11
AC
12003-09-15 Andrew Cagney <[email protected]>
2
3 * doublest.c (convert_floatformat_to_doublest): No longer need to
4 cast "exp_bias" to an int. Reverts 2002-12-04 change.
5
ac79b88b
DJ
62003-09-15 Daniel Jacobowitz <[email protected]>
7
8 * values.c (unpack_double): Call floatformat_is_valid.
9
1c671366
MK
102003-09-15 Mark Kettenis <[email protected]>
11
de5227fb
MK
12 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
13 ps_strings into a long.
14
1c671366
MK
15 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
16 _initialize_am64fbsd_nat.
17
a604369a
KB
182003-09-15 Kevin Buettner <[email protected]>
19
20 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
21 associated with DW_AT_ranges attribute is out of bounds.
22
b3cacbee
DL
232003-09-15 David Lecomber <[email protected]>
24
25 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
26
d0f37bb2
MC
272003-09-14 Michael Chastain <[email protected]>
28
29 * config/m68k/nm-apollo68v.h: Delete.
30 * config/m68k/xm-apollo68v.h: Delete.
31
69517000
AC
322003-09-14 Andrew Cagney <[email protected]>
33
34 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
35 * dcache.c: Update copyrights and descriptions.
36 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
37
ef8b349d
AC
382003-09-14 Andrew Cagney <[email protected]>
39
40 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
41 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
42
52f0bd74
AC
432003-09-14 Andrew Cagney <[email protected]>
44
45 * alpha-nat.c: Remove some occurances of "register".
46 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
47 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
48 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
49 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
50 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
51 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
52 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
53 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
54 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
55 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
56 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
57 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
58 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
59 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
60 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
61 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
62 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
63 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
64 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
65 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
66 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
67 * values.c, vax-tdep.c, xcoffread.c: Ditto.
68
4a4b3fed
AC
692003-09-13 Andrew Cagney <[email protected]>
70
71 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
72 * ppc-tdep.h (struct regcache): Declare opaque.
73 * objfiles.h (struct objfile_data): Declare opaque.
74 * cp-support.h (struct objfile): Declare opaque.
75 * linux-nat.h (target_waitstatus): Declare opaque.
76
2110b94f
MK
772003-09-14 Mark Kettenis <[email protected]>
78
1c671366
MK
79 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
80 (stabs_argument_has_addr): New architecture method.
81 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
82 * arch-utils.c: Include "buildsym.h".
83 (default_stabs_argument_has_addr): New function.
84 * stabsread.c (define_symbol): Use stabs_argument_has_addr
85 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
86
2110b94f
MK
87 * cris-tdep.c (cris_gdbarch_init): Set
88 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
89 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
90 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
91 * mips-tdep.c (mips_gdbarch_init): Likewise.
92 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
93 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
94
48436ce6
AC
952003-09-13 Andrew Cagney <[email protected]>
96
97 * values.c (using_struct_return): Delete "function" and "funcaddr"
98 parameters.
99 * value.h (using_struct_return): Update declaration.
100 * infcmd.c (finish_command_continuation): Update.
101 (finish_command): Update.
102 * infcall.c (call_function_by_hand): Update.
103 * eval.c (evaluate_subexp_standard): Update.
104
403d9909
CF
1052003-09-13 Christopher Faylor <[email protected]>
106
107 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
108 SSE registers since gdb will not operate correctly without this.
109 Restore include file ordering munged in previous change.
110 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
111
ebf7d56b
MK
1122003-09-13 Mark Kettenis <[email protected]>
113
8e823e25
MK
114 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
115 REG_STRUCT_HAS_ADDR.
116 * gdbarch.c, gdbarch.h: Updated.
117 * infcall.c (call_function_by_hand): Update.
118 * stabsread.c (define_symbol): Updated.
119
ebf7d56b
MK
120 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
121
d3f13f72
CF
1222003-09-12 Christopher Faylor <[email protected]>
123
124 * win32-nat.c: Reorganize so that defines used by target headers are
125 actually defined by the system headers.
126 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
127 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
128
14f75137
JB
1292003-09-12 Jim Blandy <[email protected]>
130
d646061f
JB
131 * dbxread.c (read_dbx_symtab): Don't report an internal error if
132 the file has no .data, .bss, or .rodata sections. Instead wait
133 until we see a variable alleged to live in one of those sections.
134
2a13f9bc
JB
135 * dbxread.c (read_dbx_symtab): If we have no .data section and no
136 .bss section, presume that any variables we find live in the
137 .rodata section.
138
4f49b26b
JB
139 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
140 offsets for global and static variables.
141
14f75137
JB
142 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
143 symbol types are, by definition, in the .data section, so it is
144 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
145 If there is no .data section, there should be no N_DATA or N_DATA
146 | N_EXT symbols.
147
212c460c
MK
1482003-09-12 Mark Kettenis <[email protected]>
149
150 * amd64fbsd-tdep.c: Fix sigtramp recognition.
151 (amd64fbsd_sigcontext_addr): Rewrite.
152 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
153 with correct values.
154 (amd64fbsd_sc_reg_offset): Initialize with correct values.
155 (amd64fbsd_init_abi): Fix typo.
156
68856ea3
AC
1572003-09-12 Andrew Cagney <[email protected]>
158
159 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
160 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
161
627b3ba2
AC
1622003-09-12 Andrew Cagney <[email protected]>
163
164 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
165 "entry_file_highpc". Update comments.
166 * defs.h (deprecated_inside_entry_file): Rename
167 "inside_entry_file".
168 * blockframe.c (deprecated_inside_entry_file): Rename
169 "inside_entry_file".
170 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
171 * vax-tdep.c (vax_frame_chain): Update.
172 * sh64-tdep.c (sh64_frame_chain): Update.
173 * sh-tdep.c (sh_frame_chain): Update.
174 * rs6000-tdep.c (rs6000_frame_chain): Update.
175 * ns32k-tdep.c (ns32k_frame_chain): Update.
176 * mips-tdep.c (mips_frame_chain): Update.
177 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
178 * m32r-tdep.c (m32r_frame_this_id): Update.
179 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
180 * frv-tdep.c (frv_frame_this_id): Update.
181 * d10v-tdep.c (d10v_frame_this_id): Update.
182 * cris-tdep.c (cris_frame_chain): Update.
183 * blockframe.c (legacy_frame_chain_valid): Update.
184 * avr-tdep.c (avr_frame_this_id): Update.
185 * arm-tdep.c (arm_prologue_this_id): Update.
186 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
187 * objfiles.c (objfile_relocate): Update.
188 * mipsread.c (mipscoff_symfile_read): Update.
189 (mipscoff_symfile_read): Update.
190 * mdebugread.c (parse_partial_symbols): Update.
191 * dwarfread.c (read_file_scope): Update.
192 * dwarf2read.c (read_file_scope): Update.
193 * dbxread.c (read_dbx_symtab): Update.
194 (read_dbx_symtab): Update.
195 * coffread.c (complete_symtab): Update.
196
b0abbc58
JJ
1972003-09-12 Jeff Johnston <[email protected]>
198
199 * top.c (quit_target): New static helper function.
200 (quit_force): Moved code to quit_target(). Call quit_target()
201 via catch_errors() to catch errors during quit.
202
a1632d59
DC
2032003-09-11 David Carlton <[email protected]>
204
205 * buildsym.c (finish_block): Use allocate_block to allocate the
206 block.
207 * mdebugread.c (new_block): Add FIXME.
208
5c4e30ca
DC
2092003-09-11 David Carlton <[email protected]>
210
211 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
212 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
213 (recursive_dump_type): Ditto.
214 * printcmd.c (print_formatted): Ditto.
215 * typeprint.c (print_type_scalar): Ditto.
216 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
217 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
218 * cp-support.h: Declare cp_check_possible_namespace_symbols,
219 maint_cplus_cmd_list.
220 * cp-support.c: Make maint_cplus_cmd_list extern.
221 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
222 command.h.
223 (lookup_symbol_file): Look in possible namespace blocks when
224 appropriate.
225 (initialize_namespace_symtab): New.
226 (get_possible_namespace_block, free_namespace_block)
227 (check_possible_namespace_symbols)
228 (check_possible_namespace_symbols_loop)
229 (check_one_possible_namespace_symbol)
230 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
231 (_initialize_cp_namespace): Ditto.
232 * block.h: Declare allocate_block.
233 * block.c (allocate_block): New.
234 * jv-lang.c (get_java_class_symtab): Allocate blocks via
235 allocate_block.
236 * symfile.h: Update declaration of add_psymbol_to_list.
237 * symfile.c (add_psymbol_to_list): Return the partial symbol in
238 question.
239 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
240 scan_partial_symbols_call.
241 (scan_partial_symbols): Add NAMESPACE argument; update calls to
242 helper functions.
243 (add_partial_symbol): If necessary, scan mangled names for names
244 of namespaces.
245 (add_partial_namespace): Add NAMESPACE argument; generate partial
246 symbols associated to namespaces.
247 (add_partial_enumeration): Add NAMESPACE argument.
248 (new_symbol): Allow namespace syms.
249 (read_namespace): Generate namespace syms.
250 * objfiles.h: Add opaque declaration of struct symtab.
251 (struct objfile): Add cp_namespace_symtab member.
252 * objfiles.c (allocate_objfile): Set
253 objfile->cp_namespace_symtab.
254 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
255 dictionary_h, command_h.
256
33a7c2fc
AC
2572003-09-11 Andrew Cagney <[email protected]>
258
259 * rs6000-tdep.c (rs6000_push_dummy_call): Use
260 regcache_raw_write_signed to set SP_REGNUM, move the operation to
261 near the function's end.
262 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
263 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
264 regcache_raw_write_signed to set SP_REGNUM.
265
63cd24fe
EZ
2662003-09-11 Elena Zannoni <[email protected]>
267
268 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
269 orig_addrs is set up properly.
270
f27dd7fd
AC
2712003-09-11 Andrew Cagney <[email protected]>
272
273 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
274 * gdbarch.h, gdbarch.c: Re-generate.
275 * infcall.c (call_function_by_hand): Update.
276 * hppa-tdep.c (hppa_push_arguments): Update.
277 * ada-lang.c (place_on_stack): Update.
278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
279 * sparc-tdep.c (sparc_gdbarch_init): Update.
280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
281 * hppa-tdep.c (hppa_gdbarch_init): Update.
282 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
283 stack_align.
284
f630a401
DJ
2852003-09-11 Daniel Jacobowitz <[email protected]>
286
287 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
288 register do need a frame.
289
0ddabb4c
AC
2902003-09-11 Andrew Cagney <[email protected]>
291
292 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
293 buildable since GDB 5.0.
294 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
295 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
296 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
297 * irix4-nat.c: Delete file.
298 * config/mips/irix4.mh: Delete file.
299 * config/mips/irix3.mh: Delete file.
300 * config/mips/irix3.mt: Delete file.
301 * config/mips/tm-irix3.h: Delete file.
302 * config/mips/nm-irix3.h: Delete file.
303 * config/mips/xm-irix3.h: Delete file.
304 * config/mips/nm-irix4.h: Delete file.
305 * config/mips/xm-irix4.h: Delete file.
306 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
307
fde2cceb
JB
3082003-09-10 J. Brobecker <[email protected]>
309
310 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
311 * Makefile.in (hppa-tdep.o): Update dependencies.
312
66f667f5
JW
3132003-09-10 James E Wilson <[email protected]>
314
ef5fd69f
JW
315 * MAINTAINERS: Change my e-mail address. Move to paper trail
316 section.
66f667f5 317
53e8aaea
KB
3182003-09-10 Kevin Buettner <[email protected]>
319
320 * MAINTAINERS (frv): New ISA entry.
321
dcc6aaff
KB
3222003-09-10 Kevin Buettner <[email protected]>
323
324 * frv-tdep.c (dis-asm.h): Include.
325 * Makefile.in (frv-tdep.o): Update dependencies.
326
932644f0
JJ
3272003-09-09 Jeff Johnston <[email protected]>
328
329 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
330 Fix typo for high range of floating registers.
331
91c24f0a
DC
3322003-09-09 David Carlton <[email protected]>
333
334 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
335 highpc initialization here out of scan_partial_symbols.
336 (scan_partial_symbols): Restructure into a recursive version,
337 calling add_partial_namespace and add_partial_enumeration when
338 appropriate.
339 (add_partial_namespace): New.
340 (add_partial_enumeration, locate_pdi_sibling): Ditto.
341
c9263853
AC
3422003-09-09 Andrew Cagney <[email protected]>
343
e56a0ecc
AC
344 * rs6000-tdep.c (ppc_push_return_address): Delete function.
345 (rs6000_push_dummy_call): Set LR to BP_ADDR.
346 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
347 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
348
794a477a
AC
349 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
350 (rs6000_push_dummy_call): Set the "TOC" register.
351
c9263853
AC
352 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
353 methods "max_register_raw_size", "max_register_virtual_size" or
354 "register_virtual_size".
355
afa7d0b2
ILT
3562003-09-09 Ian Lance Taylor <[email protected]>
357
358 * MAINTAINERS: Update my e-mail address.
359
7a41266b
AC
3602003-09-09 Andrew Cagney <[email protected]>
361
362 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
363 (rs6000_push_dummy_call): Store the struct return address.
364 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
365
77b2b6d4
AC
3662003-09-09 Andrew Cagney <[email protected]>
367
368 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
369 "ppc_sysv_abi_push_arguments".
370 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
371 "ppc_sysv_abi_push_arguments".
372 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
373 instead of "push_arguments".
374 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
375
e8a7b686
AC
3762003-09-09 Andrew Cagney <[email protected]>
377
378 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
379 instead of CALL_DUMMY_ADDRESS.
380
f86f5ca3
PH
3812003-09-09 Paul N. Hilfinger <[email protected]>
382
383 * p-lang.c: Eliminate "register".
384 * c-lang.c: Ditto.
385 * expprint.c: Ditto.
386 * f-lang.c: Ditto.
387 * jv-lang.c: Ditto.
388 * language.c: Ditto.
389 * m2-lang.c: Ditto.
390 * parse.c: Ditto.
391 * scm-lang.c: Ditto.
392 * objc-lang.c: Ditto.
393
83ee270e
NC
3942003-09-09 Nick Clifton <[email protected]>
395
396 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
397
a89aa300
AC
3982003-09-04 Andrew Cagney <[email protected]>
399
400 * avr-tdep.c: Include "dis-asm.h".
401 * cris-tdep.c: Include "dis-asm.h".
402 (cris_delayed_get_disassembler): Use "struct disassemble_info"
403 instead of corresponding typedef.
404 * h8300-tdep.c: Include "dis-asm.h".
405 * ia64-tdep.c: Include "dis-asm.h".
406 * i386-tdep.c: Include "dis-asm.h".
407 (i386_print_insn): Use "struct disassemble_info" instead of
408 corresponding typedef.
409 * m68k-tdep.c: Include "dis-asm.h".
410 * mcore-tdep.c: Include "dis-asm.h".
411 * mips-tdep.c: Include "dis-asm.h".
412 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
413 instead of corresponding typedef.
414 * ns32k-tdep.c: Include "dis-asm.h".
415 * s390-tdep.c: Include "dis-asm.h".
416 * sparc-tdep.c: Include "dis-asm.h".
417 * vax-tdep.c: Include "dis-asm.h".
418 * v850-tdep.c: Include "dis-asm.h".
419 * mn10300-tdep.c: Include "dis-asm.h".
420 * rs6000-tdep.c: Include "dis-asm.h".
421 * xstormy16-tdep.c: Include "dis-asm.h".
422 (_initialize_xstormy16_tdep): Delete "extern" declaration of
423 print_insn_xstormy16.
424 * Makefile.in (v850-tdep.o): Update dependencies.
425 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
426 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
427 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
428 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
429 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
430 (gdbarch_h): Remove $(dis_asm_h).
431 * disasm.c: Include "dis-asm.h".
432 (dis_asm_read_memory): Use "struct disassemble_info" instead of
433 corresponding typedef.
434 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
435 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
436 * gdbarch.sh: Do not include "dis-asm.h".
437 (struct disassemble_info): Declare opaque.
438 (TARGET_PRINT_INSN): Update declaration.
439 * gdbarch.h, gdbarch.c: Re-generate.
440
88a82a65
AC
4412003-09-08 Andrew Cagney <[email protected]>
442
443 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
444 CALL_DUMMY_ADDRESS, change to a predicate.
445 * gdbarch.h, gdbarch.c: Re-generate.
446 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
447 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
448 * infcall.c (call_function_by_hand): Ditto.
449 * sparc-tdep.c (sparc_push_return_address): Ditto.
450 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
451 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
452 CALL_DUMMY_ADDRESS with entry_point_address.
453 * v850-tdep.c (v850_push_return_address): Ditto.
454 * s390-tdep.c (s390_push_return_address): Ditto.
455 * rs6000-tdep.c (ppc_push_return_address): Ditto.
456 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
457 * mcore-tdep.c (mcore_push_return_address): Ditto.
458 * cris-tdep.c (cris_push_return_address): Ditto.
459 * arm-tdep.c (arm_push_return_address): Ditto.
460
3e2c4033
AC
4612003-09-08 Andrew Cagney <[email protected]>
462
463 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
464 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
465 and REG_UNMODIFIED to REG_SAME_VALUE.
466 (execute_cfa_program): Update.
467 (dwarf2_frame_cache): Update. Initialize table to
468 REG_UNSPECIFIED, complain if CFI fails to specify a register's
469 location.
470 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
471
39efb398
AC
4722003-09-08 Andrew Cagney <[email protected]>
473
474 * gnu-nat.c: Remove "inline" function attribute.
475 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
476
f5cb5aca
KB
4772003-09-08 Kevin Buettner <[email protected]>
478
479 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
480 target.
481
1cb761c7
KB
4822003-09-08 Kevin Buettner <[email protected]>
483
484 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
485 (frame_extra_info): Rename this struct to frv_unwind_cache.
486 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
487 Add fields ``prev_sp'' and ``base''.
488 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
489 (frv_saved_pc_after_call, frv_init_extra_frame_info)
490 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
491 Delete.
492 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
493 Revise all callers. Fill in the unwind cache argument and make
494 other adjustments to account for new frame mechanisms.
495 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
496 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
497 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
498 (frv_frame_unwind, frv_frame_base): New structs.
499 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
500 additional arguments expected by this method and adjust function
501 body accordingly.
502 (frv_gdbarch_init): Remove calls to the following functions:
503 set_gdbarch_deprecated_init_frame_pc(),
504 set_gdbarch_deprecated_saved_pc_after_call(),
505 set_gdbarch_deprecated_frame_chain(),
506 set_gdbarch_deprecated_frame_saved_pc(),
507 set_gdbarch_deprecated_frame_init_saved_regs(),
508 set_gdbarch_deprecated_push_arguments(),
509 set_gdbarch_deprecated_push_return_address(),
510 set_gdbarch_deprecated_pop_frame(),
511 set_gdbarch_deprecated_call_dummy_words(),
512 set_gdbarch_deprecated_sizeof_call_dummy_words(),
513 set_gdbarch_deprecated_init_extra_frame_info(),
514 set_gdbarch_deprecated_dummy_write_sp(), and
515 set_gdbarch_deprecated_pc_in_call_dummy().
516 Add calls to the following functions:
517 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
518 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
519 frame_base_set_default().
520 * Makefile.in (frv-tdep.o): Update dependencies.
521
68f6cf99
MK
5222003-09-09 Mark Kettenis <[email protected]>
523
524 * dwarf2-frame.c (read_encoded_value): Add support for
525 DW_EH_PE_aligned encoding.
526
73b65bb0
DJ
5272003-09-08 Daniel Jacobowitz <[email protected]>
528
529 * infrun.c (normal_stop): Don't print a message if the inferior
530 has exited.
531
7c8a5605
JB
5322003-09-08 Jim Blandy <[email protected]>
533
534 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
535 * dbxread.c: #include "gdb_assert.h".
536 (read_dbx_symtab): If the objfile has no .data section, use the
537 section index for the .bss section instead.
538
7dd88986
DJ
5392003-09-08 Daniel Jacobowitz <[email protected]>
540
541 * frame.c (deprecated_safe_get_selected_frame): New function.
542 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
543 * findvar.c (read_var_value): Call it.
544
55ff77ac
CV
5452003-09-08 Corinna Vinschen <[email protected]>
546
547 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
548 (sh64-tdep.o): Add dependencies.
549 * configure.tgt: Add FIXME to sh-*-linux*.
550 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
551 (sh_gdbarch_init): Always set correct sh_show_regs function
552 pointer. Call sh64_gdbarch_init() if machine type is sh5.
553 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
554 * sh64-tdep.c: New file, containing all sh64 related code from
555 sh-tdep.c.
556 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
557 * config/sh/linux.mt (TDEPFILES): Ditto.
558 * config/sh/nbsd.mt (TDEPFILES): Ditto.
559 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
560 * config/sh/wince.mt (TDEPFILES): Ditto.
561
bfb39158
DJ
5622003-09-07 Daniel Jacobowitz <[email protected]>
563
564 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
565 (stop_wait_callback): Handle !lp->signalled also.
566 (lin_lwp_has_pending, flush_callback): New functions.
567 (lin_lwp_wait): Call flush_callback.
568 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
569 (linux_proc_pending_signals): New function.
570 * linux-nat.h (linux_proc_pending_signals): Add prototype.
571
9407de8e
DJ
5722003-09-07 Daniel Jacobowitz <[email protected]>
573
574 From Nick Kelsey <[email protected]>:
575 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
576 when the stop PC is at the beginning of a function also.
577
2ef47cd0
DJ
5782003-09-06 Daniel Jacobowitz <[email protected]>
579
580 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
581 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
582
6f4492c8
MK
5832003-09-06 Mark Kettenis <[email protected]>
584
585 * sol-thread.c: Include "gdb_string.h".
586
d3420b2f
MK
5872003-09-03 Mark Kettenis <[email protected]>
588
589 * gcore.c: Reorder include files in alphabetical order. Include
590 "gdb_assert.h". Various coding style fixes.
591 (derive_stack_segment, derive_heap_segment): Replace check for
592 non-null BOTTOM and TOP with gdb_assert.
593 (derive_heap_segment): Replace check for successful creation of
594 ZERO with gdb_assert.
595 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
596
5220ea4c
AC
5972003-09-04 Andrew Cagney <[email protected]>
598
599 * thread-db.c (verbose_dlsym): New function.
600 (thread_db_load): Use verbose_dlsym
601 (thread_db_new_objfile): Print that libthread_db was loaded, and
602 that thread debugging was enabled.
603
6e8c2c06
AC
6042003-09-04 Andrew Cagney <[email protected]>
605
606 * configure.tgt: Add "mips64*-*-*" target. Delete
607 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
608 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
609 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
610 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
611 mips*-sony-*, and mips64*-*-elf* targets.
612 * config/mips/embedl.mt: Delete file.
613 * config/mips/embedl64.mt: Delete file.
614 * config/mips/mips.mt: Delete file.
615 * config/mips/mips64.mt: Delete file.
616 * config/mips/tm-embed.h: Delete file.
617 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
618 * config/mips/embed64.mt: Delete out-of-date comment.
619
3a3bc038
AC
6202003-09-04 Andrew Cagney <[email protected]>
621
622 * hppa-tdep.c (hppa_gdbarch_init): Set
623 "have_nonsteppable_watchpoint".
624 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
625 * mips-tdep.c (mips_dump_tdep): Do not print
626 HAVE_NONSTEPPABLE_WATCHPOINT.
627 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
628 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
629 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
630 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
631
a957e642
CV
6322003-09-04 Corinna Vinschen <[email protected]>
633
634 * breakpoint.c (watchpoint_check): Remove accidentally checked in
635 unused code. Add comment.
636
a6fbcf2f
CV
6372003-09-04 Corinna Vinschen <[email protected]>
638
639 * breakpoint.c (watchpoint_check): Check for pc being in an
640 epilogue if watchpoint frame couldn't be found.
641
c14a44d5
AC
6422003-09-04 Andrew Cagney <[email protected]>
643
644 * Makefile.in: Re-generate all dependencies.
645
f6c40618
AC
6462003-09-03 Andrew Cagney <[email protected]>
647
648 * arch-utils.h (legacy_print_insn): Delete declaration.
649 * arch-utils.c (legacy_print_insn): Delete function.
650 * disasm.c (deprecated_tm_print_insn_info): Delete.
651 (_initialize_disasm): Delete function, contained code initializing
652 deprecated_tm_print_insn_info.
653 * gdbarch.sh (deprecated_tm_print_insn): Delete.
654 (deprecated_tm_print_insn_info): Delete.
655 (TARGET_PRINT_INSN): Do not provide a default.
656 * gdbarch.h, gdbarch.c: Re-generate.
657
242e8be5
AC
6582003-09-03 Andrew Cagney <[email protected]>
659
660 * disasm.c (fprintf_disasm): New function.
661 (gdb_disassemble_info): Call "init_disassemble_info", instead of
662 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
663 reverts 2003-08-14 change.
664 (_initialize_disasm): Call "init_disassemble_info", instead of
665 INIT_DISASSEMBLE_INFO_NO_ARCH.
666
3ffc3dda
MS
6672003-09-03 Michael Snyder <[email protected]>
668
669 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
670
52d16ba8
AC
6712003-09-03 Andrew Cagney <[email protected]>
672
673 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
674 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
675 * symfile.c (syms_from_objfile): Update.
676 (reread_symbols): `Update
677 * exec.c (exec_file_attach): Update.
678 (exec_file_attach): Update.
679 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
680 2003-08-29 change.
681 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
682
eb5492fa
DJ
6832003-09-03 Daniel Jacobowitz <[email protected]>
684
685 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
686 trad-frame.h.
687 (arm_get_cache): Delete macro.
688 (struct arm_prologue_cache): Update comments. Make saved_regs into
689 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
690 to prev_sp.
691 (thumb_scan_prologue): Update for cache changes. Don't call
692 DEPRECATED_PC_IN_CALL_DUMMY.
693 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
694 argument and use it in desperation search for our prologue. Do not
695 search past the specified PC.
696 (arm_make_prologue_cache): Simplify.
697
698 (arm_prologue_this_id, arm_prologue_prev_register)
699 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
700 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
701 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
702 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
703 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
704
705 (arm_frame_chain_valid, arm_find_callers_reg)
706 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
707 (arm_pop_frame): Delete obsolete methods.
708 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
709
710 (arm_gdbarch_init): Update for new frame methods. Register prologue
711 and sigtramp unwinders. Set the default frame base method.
712
713 * Makefile.in (arm-tdep.o): Update dependencies.
714 * varobj.c (find_frame_addr_in_frame_chain): Call
715 get_frame_base_address.
716 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
717
24de872b
DJ
7182003-09-03 Daniel Jacobowitz <[email protected]>
719
720 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
721 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
722 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
723 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
724 Take NEXT_FRAME and CACHE arguments. Call
725 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
726 Set unwound_pc in CACHE instead of modifying the frame argument.
727 Don't bother checking the frame type when looking for sigtramp
728 frames.
729 (arm_make_prologue_cache, arm_frame_chain)
730 (arm_init_extra_frame_info): New functions.
731
9b8d791a
DJ
7322003-09-03 Daniel Jacobowitz <[email protected]>
733
734 * arm-tdep.c (arm_get_cache): Define.
735 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
736 unwound_sp, unwound_pc, and saved_regs.
737 (thumb_scan_prologue): Take a cache instead of the frame.
738 (arm_scan_prologue): Likewise.
739 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
740 instead of a temporary frame.
741 (arm_init_extra_frame_info): Allocate and use a cache.
742 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
743
7ee3275f
AC
7442003-09-03 Andrew Cagney <[email protected]>
745
746 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
747 * config/mips/wince.mt (TM_CLIBS): Ditto.
748 * config/sh/wince.mt (TM_CLIBS): Ditto.
749 * config/pa/hppa64.mt (TM_CLIBS): Delete.
750 * config/sparc/sp64.mt (CC): Delete.
751
57b29be7
AC
7522003-09-03 Andrew Cagney <[email protected]>
753
754 * defs.h: Do not include "arch-utils.h".
755 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
756 GDB_MULTI_ARCH_PURE.
757 * configure.in (GDB_MULTI_ARCH): Do not define.
758 * configure, config.in: Regenerate.
759 * configure.tgt: Do not set variable "gdb_multi_arch".
760 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
761 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
762 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
763 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
764 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
765 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
766 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
767 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
768 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
769 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
770 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
771 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
772 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
773 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
774 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
775 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
776 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
777 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
778
12e035e2
MC
7792003-08-30 Michael Chastain <[email protected]>
780
781 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
782 * config/m68k/nm-hp300hpux.h: Delete.
783 * config/m68k/tm-hp300hpux.h: Delete.
784 * config/m68k/xm-hp300hpux.h: Delete.
785 * config/m68k/xm-hp300bsd.h: Delete.
786 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
787 tm-hp300hpux.h, xm-hp300hpux.h.
788 * somsolib.c: Remove comment about hp300 shared libraries.
789
bda34dc2
MK
7902003-08-31 Mark Kettenis <[email protected]>
791
5bca7895
MK
792 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
793 Only define PTRACE_GET_THREAD_AREA is not already defined.
794 Various style fixes in code and comments and some additional
795 spelling fixes in comments. Move after functions dealing with
796 debug registers.
797 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
798 Fix coding-style.
799
bda34dc2
MK
800 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
801 frame_unwind_register_unsigned instead of
802 frame_unwind_unsigned_register.
803
c890192f
MK
8042003-08-30 Mark Kettenis <[email protected]>
805
806 * configure.in: Search for gethostbyname in libnsl.
807 * configure: Regenerated.
808
60fac5b8
MK
8092003-08-29 Mark Kettenis <[email protected]>
810
e294916c
MK
811 * configure.in: Remove redundant AC_MSG_RESULT in check for
812 uintptr_t in stdint.h.
813 * configure: Regenerated.
814
c40d267a
MK
815 * amd64-nat.h (struct regcache): Add opaque declaration.
816
60fac5b8
MK
817 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
818 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
819 Change "register array" to "register cache" in comments.
820 (x86_64_linux_gregset64_reg_offset): New variable.
821 (GETREGS_SUPPLIES): Remove macro.
822 (supply_gregset): Call amd64_supply_native_gregset instead of
823 x86_64_linux_supply_gregset.
824 (fill_gregset): Rename `regno' to `regnum'. Call
825 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
826 (store_regs): Rename `regno' to `regnum'.
827 (store_fpregs): Rename `regno' to `regnum'.
828 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
829 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
830 Reorganize function a bit.
831 (store_inferior_registers): Rename `regno' to `regnum'. Use
832 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
833 Reorganize function a bit.
834 (_initialize_x86_64_linux_nat): New function.
835 * config/i386/x86-64linux.mh.
836
546143b6
AC
8372003-08-29 Andrew Cagney <[email protected]>
838
839 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
840 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
841 (target_remove_watchpoint): Delete macro.
842 (target_insert_watchpoint): Delete macro.
843 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
844 (remote_mips_stopped_by_watchpoint): Delete declaration.
845 (remote_mips_remove_watchpoint): Delete declaration.
846 (remote_mips_set_watchpoint): Delete declaration.
847 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
848 * remote-mips.c (_initialize_remote_mips): Set
849 "to_insert_watchpoint", "to_stopped_by_watchpoint",
850 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
851 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
852 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
853 (mips_stopped_by_watchpoint): Rename
854 remote_mips_stopped_by_watchpoint.
855 (mips_can_hardware_watchpoint): Rename
856 remote_mips_can_use_hardware_watchpoint, update function
857 signature.
858
7bace51b
MK
8592003-08-29 Mark Kettenis <[email protected]>
860
b0f5c6f2
MK
861 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
862 USER_DS. We haven't given them a register number yet.
863
2a6d284d
MK
864 * amd64-nat.h: New file.
865 * amd64-nat.c: New file.
866 * amd64fbsd-nat.c: Include "amd64-nat.h".
867 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
868 (amd64fbsd32_r_reg_offset): New variable.
869 (supply_gregset): Simply call amd64_supply_native_gregset.
870 (fill_gregset): Rename `regno' to `regnum'. Simply call
871 amd64_collect_native_gregset.
872 (fill_fpregset): Rename `regno' to `regnum'.
873 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
874 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
875 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
876 `fpregset_t'. Call amd64_supply_native_gregset instead of
877 supply_gregset. Call x86_64_supply_fxsave instead of
878 supply_fpregset.
879 (store_inferior_registers): Rename `regno' to `regnum'. Replace
880 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
881 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
882 `fpregset_t'. Call amd64_collect_native_gregset instead of
883 fill_gregset. Call x86_64_collect_fxsave instead of
884 fill_fpregset.
885 (_initialize_am64fbsd_nat): Initialize
886 amd64_native_gregset32_reg_offset and
887 amd64_native_gregset64_reg_offset.
888 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
889
a16d75cc
MK
890 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
891 null pointer. Fix typo in comment.
892
7bace51b
MK
893 * regcache.c (supply_register): Reimplement to call
894 regcache_raw_supply.
895 (regcache_collect): Reimplement by calling regcache_raw_collect.
896
9a661b68
MK
8972003-08-28 Mark Kettenis <[email protected]>
898
899 * regcache.c (register_buffer): Consitify first argument.
900 (regcache_raw_supply, regcache_raw_collect): New
901 functions.
902
e94cc8fa
DJ
9032003-08-28 Daniel Jacobowitz <[email protected]>
904
905 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
906 by Nathan J. Williams.
907
c64bd0ce
DJ
9082003-08-28 Daniel Jacobowitz <[email protected]>
909
910 * lin-lwp.c (wait_lwp): New function, copied from
911 stop_wait_callback. Clean up.
912 (stop_wait_callback): Use wait_lwp.
913
e5ab0dce
AC
9142003-08-28 Andrew Cagney <[email protected]>
915
916 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
917 flavour and disassembler options.
918 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
919 (mips_gdbarch_init): Set "print_insn". Delete initialization of
920 deprecated_tm_print_insn_info.
921
a788de9b
AC
9222003-08-27 Andrew Cagney <[email protected]>
923
924 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
925 Use target_read_memory.
926 (s390_get_frame_info): Update. Do not reference
927 deprecated_tm_print_insn_info.
928 (s390_check_function_end, s390_is_sigreturn): Ditto.
929
36482093
AC
9302003-08-27 Andrew Cagney <[email protected]>
931
932 * Makefile.in (cris-tdep.o): Update dependencies.
933 * cris-tdep.c: Include "gdb_assert.h".
934 (cris_gdbarch_init): Set print_insn.
935 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
936 (cris_delayed_get_disassembler): Simplify, directly call the
937 disassembler returned by cris_get_disassembler.
938 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
939 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
940 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
941 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
942 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
943 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
944 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
945 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
946 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
947 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
948 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
949 (gdb_print_insn_sparc): Delete function.
950 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
951 deprecated_tm_print_insn_info.
952 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
953 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
954 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
956 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
957 * s390-tdep.c (gdb_print_insn_s390): Delete function.
958 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
959 (s390_gdbarch_init): Set print_insn.
960
0285512f
AC
9612003-08-27 Andrew Cagney <[email protected]>
962
963 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
964 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
965 * infcall.c (call_function_by_hand): Convert the entry point
966 address into a code address.
967
cdcd5552
AC
9682003-08-27 Andrew Cagney <[email protected]>
969
970 * dsrec.c: Include "gdb_string.h".
971 * Makefile.in (dsrec.o): Update dependencies.
972
e85cddad
MC
9732003-08-27 Michael Chastain <[email protected]>
974
975 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
976
8bbfbb23
AC
9772003-08-27 Andrew Cagney <[email protected]>
978
979 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
980 (alpha_osf1_init_abi): Do not set call_dummy_address.
981
ba058b66
DC
9822003-08-27 David Carlton <[email protected]>
983
984 From Randolph Chung <[email protected]>:
985 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
986 compiles with -Wformat-nonliteral -Werror.
987
87f84c9d
JB
9882003-08-26 Jim Blandy <[email protected]>
989
990 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
991 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
992 bfd_lookup_symbol, since we only want symbols in code sections.
993 (look_for_base): Pass zero as the SECT_FLAGS argument to
994 bfd_lookup_symbol, since we're not concerned about which section
995 the symbol is in.
996
102d615a
JJ
9972003-08-26 Jeff Johnston <[email protected]>
998
999 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1000 we are frameless or the return address register is already known.
1001
cc7ad3ea
AC
10022003-08-26 Andrew Cagney <[email protected]>
1003
1004 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1005 in size. Add comments.
1006
af8b88dd
JJ
10072003-08-26 Jeff Johnston <[email protected]>
1008
1009 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1010 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1011
e0a4f5a1
JM
10122003-08-26 Jason Merrill <[email protected]>
1013
1014 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1015 case out of #ifdef MIPS block.
1016
4ae9ee8e
DJ
10172003-08-25 Daniel Jacobowitz <[email protected]>
1018
1019 PR java/1322
1020 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1021 available before calling SECT_OFF_TEXT.
3c164570 1022 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1023
004d836a
JJ
10242003-08-25 Jeff Johnston <[email protected]>
1025
1026 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1027 bof, and nat0-nat127 as pseudo-registers.
1028 (ia64_frame_cache): New struct used to cache frame info.
1029 (ia64_register_reggroup_p): New routine used to override default
1030 register grouping so registers without names are still saved and
1031 restored.
1032 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1033 pseudo values.
1034 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1035 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1036 (ia64_alloc_frame_cache): New routine to create a new
1037 ia64_frame_cache.
1038 (examine_prologue): Change prototype to add next_frame pointer.
1039 Assume frameless until otherwise proven. Verify that the cfm for
1040 current frame matches the cfm that should occur for the prologues
1041 alloc insn and if equal, mark as not frameless. At end of routine,
1042 if not frameless, calculate registers for the previous frame and store
1043 in the cache, if a cache is provided.
1044 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1045 and pass 0 for next_frame.
1046 (ia64_store_return_value): Change to use convert_typed_floating()
1047 instead of calling ia64_convert_to_raw().
1048 (ia64_extract_return_value): Change to use convert_typed_floating()
1049 instead of calling ia64_convert_to_virtual().
1050 (ia64_frame_cache): New routine to support new frame model.
1051 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1052 (ia64_frame_sniffer): Ditto.
1053 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1054 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1055 (ia64_sigtramp_frame_prev_register): Ditto.
1056 (ia64_sigtramp_frame_sniffer): Ditto.
1057 (ia64_frame_base_address): Ditto.
1058 (ia64_extract_struct_value_address): Change to issue error message.
1059 (ia64_frame_align): New routine to align sp.
1060 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1061 (ia64_push_arguments): Removed. Logic moved to
1062 ia64_push_dummy_call().
1063 (ia64_push_return_address): Ditto.
1064 (ia64_unwind_dummy_id): New function.
1065 (ia64_unwind_pc): Ditto.
1066 (ia64_convert_register_p): Ditto.
1067 (ia64_register_to_value): Ditto.
1068 (ia64_value_to_register): Ditto.
1069 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1070 (ia64_register_byte, ia64_register_raw_size): Ditto.
1071 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1072 (ia64_saved_pc_after_call): Ditto.
1073 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1074 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1075 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1076 (ia64_register_convert_to_raw): Ditto.
1077 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1078 (ia64_init_extra_frame_info): Ditto.
1079 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1080 (ia64_gdbarch_init): Remove registering of deprecated functions that
1081 are no longer used. Add registration of new gdbarch functions.
1082 Remove registering deprecated_write_sp. Replace
1083 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1084 Delete set_gdbarch_deprecated_register_convertible(),
1085 set_gdbarch_deprecated_register_convert_to_virtual(), and
1086 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1087 set_gdbarch_deprecated_register_size(),
1088 set_gdbarch_deprecated_register_bytes(),
1089 set_gdbarch_pcregnum(),
1090 set_gdbarch_deprecated_register_byte(),
1091 set_gdbarch_deprecated_register_raw_size(),
1092 set_gdbarch_deprecated_max_register_raw_size(),
1093 set_gdbarch_deprecated_register_virtual_size(),
1094 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1095 Replace set_gdbarch_deprecated_extract_return_value() with
1096 set_gdbarch_extract_return_value(). Remove calls to:
1097 set_gdbarch_deprecated_saved_pc_after_call();
1098 set_gdbarch_deprecated_frame_chain(),
1099 set_gdbarch_deprecated_frame_saved_pc(),
1100 set_gdbarch_deprecated_frame_init_saved_regs(),
1101 set_gdbarch_deprecated_get_saved_register(),
1102 set_gdbarch_deprecated_call_dummy_words(),
1103 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1104 set_gdbarch_deprecated_init_extra_frame_info(),
1105 set_gdbarch_deprecated_frame_args_address(),
1106 set_gdbarch_deprecated_frame_locals_address(),
1107 and set_gdbarch_deprecated_dummy_write_sp().
1108 Add set_gdbarch_convert_register_p(),
1109 set_gdbarch_register_to_value(),
1110 set_gdbarch_value_to_register(),
1111 set_gdbarch_push_dummy_call(),
1112 set_gdbarch_frame_align(),
1113 set_gdbarch_unwind_dummy_id(),
1114 set_gdbarch_unwind_pc(),
1115 frame_unwind_append_sniffer(),
1116 frame_unwind_append_sniffer(),
1117 and frame_base_set_default().
1118
aede7613
CD
11192003-08-25 Chris Demetriou <[email protected]>
1120
1121 * configure.tgt: Document need for special "mipsisa64" handling.
1122 (mipsisa64*-*-linux64): Handle as target linux64.
1123 (mipsisa64*-*-*): Handle as target embed64.
1124
43c3a82e
MC
11252003-08-18 Michael Chastain <[email protected]>
1126
1127 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1128 objfile bug.
1129
6564f77d
MK
11302003-08-24 Mark Kettenis <[email protected]>
1131
2de139ba
MK
1132 * i387-tdep.h: Update copyright date.
1133 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1134
6564f77d
MK
1135 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1136 CFLAGS games to reflect reality.
1137
42cf1509
AC
11382003-08-24 Andrew Cagney <[email protected]>
1139
1140 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1141 GDB_MULTI_ARCH is always non-zero.
1142 * osabi.c (_initialize_gdb_osabi): Ditto.
1143 (gdbarch_init_osabi): Ditto.
1144 * sparc-tdep.c: Ditto for #if code.
1145
0485f6ad
MK
11462003-08-23 Mark Kettenis <[email protected]>
1147
1148 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1149 Update comments.
1150 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1151 comments.
1152 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1153 x86_64_supply_fxsave.
1154 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1155 x86_64_supply_fxsave.
1156 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1157 x86_64_supply_fxsave.
1158
c7716133
AJ
11592003-08-23 Andreas Jaeger <[email protected]>
1160
1161 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1162 i387_supply_fxsave.
1163
ed504bdf
MK
11642003-08-23 Mark Kettenis <[email protected]>
1165
1166 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1167 i387_supply_register.
1168 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1169 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1170 i387_supply_fsave.
1171 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1172 i387_supply_fxsave.
1173 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1174 i387_supply_fsave.
1175 * i386bsd-nat.c (supply_fpregset): Adjust call to
1176 i387_supply_fsave.
1177 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1178 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1179 supply_fpregset.
1180 (store_inferior_registers): Remove extraneous whitespace. Call
1181 i387_fill_fsave instead of fill_fpregset.
1182 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1183 (supply_fpregset): Likewise.
1184 * i386v4-nat.c (supply_fpregset): Adjust call to
1185 i387_supply_fsave.
1186 * i386-interix-nat.c (supply_fpregset): Adjust call to
1187 i387_supply_fsave.
1188 * i386-linux-nat.c (supply_fpregset): Adjust call to
1189 i387_supply_fsave.
1190 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1191 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1192 i387supply_fsave and i387_supply_fxsave.
1193 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1194 Incorporate code from `i387_supply_register.
1195 (i387_supply_register): Remove.
1196 (i387_supply_fxsave): Add `regnum' argument.
1197 Update comments.
1198 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1199 prototype.
1200 (i387_supply_register): remove prototype.
1201 Update comments.
1202
4be5d520
MC
12032003-08-22 Michael Chastain <[email protected]>
1204
1205 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1206 Add lines for files in gdb/testsuite/gdb.cp/* that are
1207 still not 8.3 unique.
1208
7ed85d26
DJ
12092003-08-22 Daniel Jacobowitz <[email protected]>
1210
1211 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1212 TYPE_VPTR_FIELDNO is valid.
1213
eb0d3137
MK
12142003-08-19 Mark Kettenis <[email protected]>
1215
1216 * utils.c (set_width_command): Remove prototypes.
1217 (set_screen_size): New prototype.
1218 (init_page_info): Simplify by fetching the screen size from
1219 Readline. Call set_screen_size.
1220 (set_screen_size): New function.
1221 (set_width): Add missing whitespace in comment.
1222 (set_width_command): Call set_screen_size.
1223 (set_height_command): New function.
1224 (initialize_utils): Fix formatting. Make "set height" command
1225 call set_height_command. Remove redundant code that turns off
1226 pagination if output isn't a terminal. Remove redundant call to
1227 set_width_command.
1228
7e6d0ac8
MK
12292003-08-22 Mark Kettenis <[email protected]>
1230
3567a8ea
MK
1231 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1232 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1233 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1234 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1235 `case' keyword.
1236 (sparc64_register_info): Give the reister with number
1237 SPARC64_STATE_REGNUM a name.
1238 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1239 %asi and %ccr.
1240 (sparc64_push_dummy_call): Take BIAS into account when checking
1241 stcak alignment.
1242 (sparc_software_single_step): Remove assertions that check whether
1243 NPC and NNPC were zero.
1244 (sparc_supply_rwindow): Make public. Merge functionality with
1245 sparc64_supply_rwindow.
1246 (sparc_fill_rwindow): Make public. Merge functionality with
1247 sparc64_fill_rwindow.
1248 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1249 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1250 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1251 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1252 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1253
7e6d0ac8
MK
1254 * reggroups.c: Add whitespace after declarations of local
1255 variables in functions.
1256
72e5f484
MC
12572003-08-21 Michael Chastain <[email protected]>
1258
1259 * gdbtypes.h: Change array bound type from an int to enum.
1260
435ac228
AC
12612003-08-21 Andrew Cagney <[email protected]>
1262
1263 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1264 * config/sparc/tm-sparc.h: Ditto.
1265 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1266 unconditionally.
1267 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1268
0d0e1a63
MK
12692003-07-13 Mark Kettenis <[email protected]>
1270
1271 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1272 (register_objfile_data, set_objfile_data, objfile_data): New
1273 prototypes.
1274 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1275 prototypes.
1276 (allocate_objfile): Call objfile_alloc_data.
1277 (free_objfile): Call objfile_free_data.
1278 (struct objfile_data): New.
1279 (struct objfile_data_registration): New.
1280 (struct objfile_data_registry): New.
1281 (objfile_data_registry): New variable.
1282 (register_objfile_data): New function.
1283 (objfile_alloc_data, objfile_free_data): New functions.
1284 (set_objfile_data, objfile_data): New functions.
1285 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1286 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1287 (_initialize_dwarf2_frame): New function and prototype.
1288
d90cf509
AC
12892003-08-21 Andrew Cagney <[email protected]>
1290
1291 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1292 a specific architecture.
1293 * arch-utils.h (set_architecture_from_arch_mach): Delete
1294 declaration.
1295 (target_architecture_hook): Delete declaration.
1296 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1297 (default_float_format): Assume GDB_MULTI_ARCH.
1298 (default_double_format): Assume GDB_MULTI_ARCH.
1299 (set_endian_from_file): Delete function.
1300 (arch_ok): Delete function.
1301 (set_arch): Delete function.
1302 (set_architecture_from_arch_mach): Delete function.
1303 (set_architecture_from_file): Delete function.
1304 (set_architecture): Assume GDB_MULTI_ARCH.
1305 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1306
8b39fe56
MK
13072003-08-21 Mark Kettenis <[email protected]>
1308
1309 Rewrite FreeBSD/sparc64 native configuration.
1310 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1311 * sparc64fbsd-nat.c: New file.
1312 * sparc64fbsd-tdep.c: New file.
1313 * sparc64-tdep.c sparc64-tdep.h: New files.
1314 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1315 sparc64fbsd-tdep.o): New dependencies.
1316 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1317 and sparc64fbsd-tdep.c.
1318 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1319 * config/sparc/fbsd.mh: Remove copyright notice.
1320 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1321 sparcbsd-nat.o.
1322 * config/sparc/fbsd.mt: Remove copyright notice.
1323 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1324 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1325 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1326 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1327 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1328 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1329 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1330 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1331 "sparc/tm-sp64.h".
1332 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1333 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1334
a7f19c79
MC
13352003-08-21 Michael Chastain <[email protected]>
1336
1337 * symtab.h: Add doco on the space critical structures and
1338 some measurements of space usage.
1339
da08ea5b
MS
13402003-08-21 Michael Snyder <[email protected]>
1341
1342 * tracepoint.c (trace_dump_command): Trace break address
1343 is subject to DECR_PC_AFTER_BREAK.
1344 (set_traceframe_context): Make "trace_line" an int.
1345 Fixes suggested by Mark Newman <[email protected]>
1346
6df2bf50
MS
13472003-08-20 Michael Snyder <[email protected]>
1348
1349 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1350 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1351 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1352 argument passing.
1353 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1354 functions, replace sh_push_dummy_call.
1355 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1356
0955bbf0
MC
13572003-08-20 Michael Chastain <[email protected]>
1358
1359 * gdbtypes.h (struct main_type): Rearrange to save space.
1360
260a4188
MS
13612003-08-20 Michael Snyder <[email protected]>
1362
1363 * trad-frame.c: Comment typo fix.
1364
8baa6f92
KB
13652003-08-20 Michael Snyder <[email protected]>
1366 Kevin Buettner <[email protected]>
1367
1368 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1369 (frv_frame_init_saved_regs): Add declaration.
1370 (frame_extra_info): Add new field ``saved_regs''.
1371 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1372 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1373 Update frame related code.
1374 (frv_extract_struct_value_address): Adjust formatting.
1375 * Makefile.in (frv-tdep.o): Update dependencies.
1376 * config/frv/tm-frv.h (target_insert_watchpoint)
1377 (target_remove_watchpoint, target_insert_hw_breakpoint)
1378 (target_remove_hw_breakpoint): Delete these macros.
1379 (remote_insert_watchpoint, remote_remove_watchpoint)
1380 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1381 these declarations.
1382
87193939
MC
13832003-08-20 Michael Chastain <[email protected]>
1384
1385 * defs.h (ENUM_BITFIELD): New macro.
1386 * symtab.h (ENUM_BITFIELD): Use it.
1387 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1388
062103ba
SA
13892003-08-19 Shrinivas Atre <[email protected]>
1390
1391 * MAINTAINERS (write after approval): Add myself.
1392
8b148df9
AC
13932003-08-18 Andrew Cagney <[email protected]>
1394
1395 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1396 * gdbarch.h, gdbarch.c: Re-generate.
1397 * infcall.c (call_function_by_hand): Adjust the SP by
1398 frame_red_zone_size before allocating any stack space.
1399 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1400 * x86-64-tdep.c (x86_64_frame_align): New function.
1401 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1402
1403 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1404 Remove code adjusting SP so that it skips over the Red Zone.
1405
954a4db8
MK
14062003-08-18 Mark Kettenis <[email protected]>
1407
1408 * NEWS (New native configurations): Mention FreeBSD/amd64.
1409
1a241548
AC
14102003-08-18 Andrew Cagney <[email protected]>
1411
1412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1413 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1414 "m68k_frame_p".
1415 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1416
f82b2acd
MK
14172003-08-18 Mark Kettenis <[email protected]>
1418
1419 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1420
4056d258
ML
14212003-08-18 Michal Ludvig <[email protected]>
1422
1423 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1424 Define.
1425 * i386-linux-nat.c: Include "linux-nat.h".
1426 (child_post_startup_inferior): New function.
1427
99ab4326
MK
14282003-08-18 Mark Kettenis <[email protected]>
1429
1430 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1431 at the start of a frameless function. This probably fixes PR
1432 backtrace/1338.
1433
c8d5f0d6
MC
14342003-08-17 Michael Chastain <[email protected]>
1435
1436 * symfile.c (find_sym_fns): Remove special case for apollo target.
1437
9016a515
DJ
14382003-08-17 Daniel Jacobowitz <[email protected]>
1439
1440 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1441 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1442 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1443 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1444 (linux_supports_tracevforkdone): New function.
1445 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1446 TRACEVFORKDONE.
1447 (child_follow_fork): Handle vfork.
1448 (linux_handle_extended_wait): Likewise. Also handle exec.
1449 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1450 * NEWS: Mention fork tracing.
1451
c538c11c
DJ
14522003-08-17 Daniel Jacobowitz <[email protected]>
1453
1454 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1455
4de4c07c
DJ
14562003-08-17 Daniel Jacobowitz <[email protected]>
1457
1458 * Makefile.in (i386-linux-nat.o): Update dependencies.
1459 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1460 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1461 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1462 * i386-linux-nat.c: Include "linux-nat.h".
1463 (child_post_startup_inferior): New function.
1464 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1465 * infptrace.c (kill_inferior): Wrap in #ifdef.
1466 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1467 attaching to each LWP.
1468 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1469 (init_lin_lwp_ops): Fill in some more operations.
1470 * linux-nat.h (linux_enable_event_reporting)
1471 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1472 prototypes.
1473 * linux-nat.c (linux_enable_event_reporting): New function.
1474 (child_post_attach, linux_child_post_startup_inferior)
1475 (child_post_startup_inferior, child_follow_fork)
1476 (linux_handle_extended_wait, kill_inferior): New functions.
1477
7996bcec
AC
14782003-08-16 Andrew Cagney <[email protected]>
1479
1480 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1481 * gdbarch.h, gdbarch.c: Re-generate.
1482
3d48a7a0
MK
14832003-08-16 Mark Kettenis <[email protected]>
1484
1485 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1486
7989c619
AC
14872003-08-16 Andrew Cagney <[email protected]>
1488
1489 * NEWS: Mention that "set prompt-escape-char" was deleted.
1490 * top.c (get_prompt_1): Delete function.
1491 (gdb_prompt_escape):
1492 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1493 prompt-escape-char" command.
1494 (MAX_PROMPT_SIZE): Delete macro.
1495 (get_prompt): Simplify, do not call get_prompt_1.
1496
07978cd8
AC
14972003-08-16 Andrew Cagney <[email protected]>
1498
1499 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1500 -Werror. -Wformat-nonliteral problems.
1501
3ff7cf9e
JB
15022003-08-15 J. Brobecker <[email protected]>
1503
1504 Further multiarching work mostly for hppa64-*-hpux11:
1505 * hppa-tdep.h: New file.
1506 * hppa-tdep.c: #include hppa-tdep.c.
1507 (hppa32_num_regs): Renamed from hppa_num_regs.
1508 (hppa64_num_regs): New constant.
1509 (hppa64_call_dummy_breakpoint_offset): New constant.
1510 (hppa32_call_dummy_length): New constant.
1511 (hppa64_call_dummy_length): New constant.
1512 (hppa32_stack_align): Make name 32bit explicit.
1513 (hppa32_register_virtual_type): Likewise.
1514 (hppa32_extract_return_value): Likewise.
1515 (hppa32_use_struct_convention): Likewise.
1516 (hppa32_store_return_value): Likewise.
1517 (hppa64_register_virtual_type): New function.
1518 (hppa64_extract_return_value): New function.
1519 (hppa64_use_struct_convention): New function.
1520 (hppa64_store_return_value): New function.
1521 (hppa_frame_locals_address): Remove declaration, function does
1522 not exist anymore.
1523 (hppa_register_byte): Add support for PA64 ABI.
1524 (hppa_gdbarch_init): Add support for PA64 ABI.
1525 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1526 Make name 32bit explicit.
1527 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1528 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1529 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1530 (hppa64_hpux_frame_base_before_sigtramp): New function.
1531 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1532 * config/pa/tm-hppa64.h: Remove macros that are no longer
1533 necessary now that the gdbarch vector is properly setup.
1534 Transform some macros into function calls. Some minor cleanup.
1535 * config/pa/tm-hppah.h: Update function calls in macros
1536 following the function renaming in hppa-hpux-tdep.c.
1537 * Makefile.in (hppa_tdep_h): New variable.
1538 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1539
5d05ca6d
MS
15402003-08-14 Michael Snyder <[email protected]>
1541
1542 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1543
37ba2569
JB
15442003-08-13 J. Brobecker <[email protected]>
1545
1546 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1547 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1548 routine.
1549
aed7f26a
MS
15502003-08-13 Michael Snyder <[email protected]>
1551
1552 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1553 (frv_saved_pc_after_call): Use deprecated ftype.
1554 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1555 (frv_remote_translate_xfer_address): Remove.
1556 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1557
752d4ac1
JB
15582003-08-13 J. Brobecker <[email protected]>
1559
1560 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1561 initialization after the common gdbarch initialization, not before.
1562
1426ac1d
JB
15632003-08-13 J. Brobecker <[email protected]>
1564
1565 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1566 (ADDR_BITS_REMOVE): Remove, redundant.
1567
b6fbdd1d
JB
15682003-08-13 J. Brobecker <[email protected]>
1569
1570 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1571 gdbarch method to clear the 2 low bits of text addresses.
1572
44160db3
AC
15732003-08-12 Andrew Cagney <[email protected]>
1574
1575 * Makefile.in (dsrec.o): Update dependencies.
1576 * dsrec.c: Include "gdb_assert.h".
1577 (make_srec): Use snprintf instead of sprintf, use a literal format
1578 string.
1579
bcf7d3ca
AC
15802003-08-12 Andrew Cagney <[email protected]>
1581
1582 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1583 FRAME_OBSTACK_ZALLOC.
1584
49ed40de
KB
15852003-08-12 Kevin Buettner <[email protected]>
1586
1587 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1588 SSE registers.
1589
b246147c
MK
15902003-08-10 Mark Kettenis <[email protected]>
1591
1592 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1593 amd64fbsd_sc_reg_offset): Add extern declarations.
1594 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1595 declarations.
1596
d95fdc0d
BE
15972003-08-11 Ben Elliston <[email protected]>
1598
1599 * MAINTAINERS (write after approval): Update my mail address.
1600
cf6a0e73
AC
16012003-08-10 Andrew Cagney <[email protected]>
1602
1603 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1604
f837910f
MK
16052003-08-10 Mark Kettenis <[email protected]>
1606
e2dbbd2d
MK
1607 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1608 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1609 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1610 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1611 i386bsd_sc_reg_offset): Add extern declarations.
1612 * i386obsd-nat.c: Include "i386-tdep.h"
1613 (_initialize_i386obsd_nat): Remove extern declarations.
1614 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1615 declarations.
1616 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1617 declarations.
1618
f837910f
MK
1619 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1620 instead of frame_read_register.
1621 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1622 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1623 SP_REGNUM.
1624 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1625 instead of frame_unwind_unsigned_register. Use
1626 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1627 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1628 instead of read_register. Use builtin_type_void_data_ptr instead
1629 of builtin_type_void_func_ptr when extracting the address of the
1630 jmp_buf.
1631 (i386_extract_return_value, i386_store_return_value,
1632 i386_pseudo_register_read, i386_pseudo_register_write): Use
1633 register_size instead REGISTER_RAW_SIZE.
1634
edcf254d
AC
16352003-08-10 Andrew Cagney <[email protected]>
1636
1637 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1638 sprintf. Make "name" constant.
1639
26604a34
MK
16402003-08-10 Mark Kettenis <[email protected]>
1641
192285c6
MK
1642 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1643 instead of frame_read_register.
f837910f
MK
1644 (i387_print_float_info): Use get_frame_register and
1645 get_frame_register_unsigned instead of frame_register_read.
192285c6 1646
f0925262
MK
1647 * i386fbsd-nat.c: Include "i386-tdep.h".
1648 (child_resume): Make `eflags' an ULONGEST. Use
1649 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1650 instead of register_read and register_write.
1651
a144416f
MK
1652 * i386bsd-nat.c (fetch_inferior_registers,
1653 store_inferior_registers): Don't use && at the end of a line.
1654 (_initialize_i386bsd_nat): Fix typo.
1655
fec74868
MK
1656 * frame.c (_initialize_frame): Add missing backslash.
1657
87232496
MK
1658 From Peter Schauer ([email protected]):
1659 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1660 and supply_register instead of manipulating the register buffer
1661 directly.
1662
c9b9de0b
MK
1663 From Peter Schauer ([email protected]):
1664 * config/i386/nm-i386sol2.h
1665 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1666
26604a34
MK
1667 Based on a patch from Michael Elizabeth Chastain ([email protected]):
1668 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1669 instructions that GCC likes to mingle into the prologue. Fixes
1670 gdb/1253 and gdb/1255.
1671
25d29d70
AC
16722003-08-09 Andrew Cagney <[email protected]>
1673
1674 Fix GDB PR cli/926.
1675 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1676 * command.h (add_setshow_uinteger_cmd): Declare.
1677 * frame.c (set_backtrace_cmd): New function.
1678 (show_backtrace_cmd): New function.
1679 * frame.c (_initialize_frame): Replace "set/show
1680 backtrace-below-main" with "set/show backtrace past-main". Add
1681 command "set/show backtrace limit".
1682 (backtrace_past_main): Rename "backtrace_below_main".
1683 (backtrace_limit): New variable.
1684 (get_prev_frame): Update. Check the backtrace_limit.
1685
9ebf4acf
AC
16862003-08-09 Andrew Cagney <[email protected]>
1687
1688 * defs.h (xstrprintf): Declare.
1689 * utils.c (xstrprintf): New function.
1690 * breakpoint.c (insert_breakpoints): Replace sprintf and
1691 non-literal format strings, with xstrprintf and cleanups.
1692 (delete_breakpoint,breakpoint_re_set): Ditto.
1693 (commands_command, insert_breakpoints): Ditto.
1694 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1695 (break_at_finish_command_1): Ditto.
1696
3771659b
AC
16972003-08-09 Andrew Cagney <[email protected]>
1698
1699 * MAINTAINERS (language support): List Adam Fedor as Objective C
1700 maintainer.
1701
b4263afa
JB
17022003-08-08 J. Brobecker <[email protected]>
1703
1704 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1705 are now multiarched.
1706
d84defb1
JB
17072003-08-08 J. Brobecker <[email protected]>
1708
1709 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1710 longer necessary now that hppa64 is partially multiarch'ed.
1711
f786f615
AC
17122003-08-08 Andrew Cagney <[email protected]>
1713
1714 * interps.c (interp_set): Check for a NULL "old_interp".
1715
c938e9b0
L
17162003-08-08 H.J. Lu <[email protected]>
1717
1718 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1719 (install-only): Support DESTDIR.
1720 (uninstall): Likewise.
1721 (install-gdbtk): Likewise.
1722
9a146a11
EZ
17232003-08-08 Elena Zannoni <[email protected]>
1724
1725 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1726 contains something meaningful at all times.
1727
1728Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <[email protected]>
7a76ced5 1729
62599e99 1730 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1731
56296155
BC
1732Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <[email protected]>
1733
62599e99 1734 * MAINTAINERS (write after approval): Added self.
56296155 1735
9710e734
AC
17362003-08-07 Andrew Cagney <[email protected]>
1737
1738 * inferior.h (AT_SYMBOL): Define.
1739 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1740 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1741 * mips-tdep.c (mips_call_dummy_address): Delete function.
1742 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1743 set call_dummy_address.
1744
98b3ab73
AC
17452003-08-07 Andrew Cagney <[email protected]>
1746
1747 * language.c (op_error): Delete function.
1748 (binop_type_check): Delete function.
1749 * language.h (type_op_error, range_op_error): Delete macros.
1750 (op_error): Delete declaration.
1751
2fcf52f0
AC
17522003-08-07 Andrew Cagney <[email protected]>
1753
1754 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1755
abd4220e 17562003-08-07 Michal Ludvig <[email protected]>
fd83bada 1757
abd4220e 1758 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1759 (x86_64_push_arguments): Skip the red zone.
abd4220e 1760
9dd5f34f
AC
17612003-08-05 Andrew Cagney <[email protected]>
1762
1763 * reggroups.c (reggroup_next): Check for the final entry.
1764
e5e78edc
AC
17652003-08-04 Andrew Cagney <[email protected]>
1766
ab4e3d93
AC
1767 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1768 * cli/cli-script.c (define_command): Call query directly, instead
1769 of passing it a buffer.
1770 * ocd.c (ocd_error): Pass error a constant format string.
1771 * remote-mips.c (mips_error): Use fputs_filtered.
1772
1062ca82
AC
1773 * solib-svr4.c (_initialize_svr4_solib): Update
1774 register_gdbarch_data call.
1775 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1776
fcc1c85c
AC
1777 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1778 (register_gdbarch_data): Delete "free" parameter. Update
1779 comments.
1780 * gdbarch.h, gdbarch.c: Re-generate.
1781 * reggroups.c (_initialize_reggroup): Update.
1782 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1783 * frame-base.c (_initialize_frame_base): Update.
1784 * frame-unwind.c (_initialize_frame_unwind): Update.
1785 * user-regs.c (_initialize_user_regs): Update.
1786 * remote.c (_initialize_remote): Update.
1787 * regcache.c (_initialize_regcache): Update.
1788
116f06ea
AC
1789 * regcache.c (xfree_regcache_descr): Delete function.
1790 (_initialize_regcache): Update call to register_gdbarch_data.
1791 (init_regcache_descr, init_legacy_regcache_descr): Use
1792 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1793
e5e78edc
AC
1794 * remote.c (free_remote_state): Delete function.
1795 (_initialize_remote): Update register_gdbarch_data.
1796 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1797 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1798
6c7d17ba
AC
17992003-08-04 Andrew Cagney <[email protected]>
1800
1801 * reggroups.c (struct reggroup_el): Define.
1802 (struct reggroups): Delete field "nr_group". Replace array
1803 "group" with a "first" to "last" linked list.
1804 (reggroups_init): Update. Allocate using gdbarch's obstack.
1805 (reggroups_free): Delete function.
1806 (add_group): Update. Add "el" parameter.
1807 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1808 (default_groups): Update.
1809 (reggroup_next): Replace reggroups.
1810 (reggroups_dump): Update.
1811 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1812 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1813 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1814
89b7795b
DJ
18152003-08-04 Daniel Jacobowitz <[email protected]>
1816
1817 * Makefile.in (tui-interp.o): Update dependencies.
1818
306d9ac5
DC
18192003-08-04 David Carlton <[email protected]>
1820
1821 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1822 to internal_error call.
1823 * source.c (forward_search_command): Add "%s" format argument.
1824 (reverse_search_command): Ditto.
1825 * top.c (quit_confirm): Ditto.
1826 * cli/cli-setshow.c (do_setshow_command): Ditto.
1827 * cp-valprint.c (cp_print_class_method): Replace
1828 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1829 (cp_print_class_member): Ditto.
1830 * event-top.c (command_line_handler): Ditto.
1831 * linux-proc.c (linux_info_proc_cmd): Ditto.
1832 * p-typeprint.c (pascal_type_print_base): Ditto.
1833 * p-valprint.c (pascal_object_print_class_method): Ditto.
1834 (pascal_object_print_class_member): Ditto.
1835 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1836 * remote.c (remote_cisco_section_offsets): Ditto.
1837 * top.c (command_line_input): Ditto.
1838 * utils.c (vwarning,error_stream,quit): Ditto.
1839 * valprint.c (print_floating,print_binary_chars)
1840 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1841
57bfe177
AC
18422003-08-04 Andrew Cagney <[email protected]>
1843
1844 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1845
e546b999
AC
18462003-08-02 Andrew Cagney <[email protected]>
1847
1848 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1849 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1850 amd64fbsd-nat.c.
1851
91092ee5
AC
18522003-08-02 Andrew Cagney <[email protected]>
1853
1854 * Makefile.in: Update all dependencies and definitions.
1855
889f28e2
AF
18562003-08-02 Adam Fedor <[email protected]>
1857
1858 * linespec.c (is_objc_method_format): New function
1859 (decode_line_1, locate_first_half): Use it.
1860 Fixes PR objc/1298
1861
880bc914
AC
18622003-08-01 Andrew Cagney <[email protected]>
1863
1864 * NEWS: Mention that m32r is multi-arch.
1865 From 2003-07-28 Kei Sakamoto <[email protected]>:
1866 * configure.tgt: Recognize m32r-*-*.
1867 * config/m32r/tm-m32r.h: Delete file.
1868 * config/m32r/m32r.mt: New file.
1869 * m32r-rom.c (m32r_upload_command): Use hostent only when
1870 gethostname succeeds, in order to avoid a compilation
1871 warning.
1872 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1873 compiler warning.
1874
19f59343
MS
18752003-08-01 Michael Snyder <[email protected]>
1876
1877 * sh-tdep.c (sh_frame_align): New gdbarch method.
1878 (sh_gdbarch_init): Set up frame_align method.
1879
4e7d7511
MS
18802003-07-31 Michael Snyder <[email protected]>
1881
1882 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1883 which is already covered by the new frames infrastructure.
1884
63022984
AC
18852003-07-31 Andrew Cagney <[email protected]>
1886
1887 * user-regs.c (struct user_reg): Add "next" link.
1888 (struct user_regs): Replace "user" with "first" and "last" links.
1889 (append_user_reg): Add pre-allocated "reg" parameter.
1890 (builtin_user_regs): Provide initial value for "last".
1891 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1892 (user_regs_init): Allocate memory from the gdbarch obstack.
1893 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1894 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1895 linked list.
1896 (usernum_to_user_reg): New function.
1897 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1898 (value_of_user_reg): Use usernum_to_user_reg.
1899 (user_regs_free): Delete function.
1900 (_initialize_user_regs): Update register_gdbarch_data call.
1901
7cf6e574
DJ
19022003-07-31 Daniel Jacobowitz <[email protected]>
1903
1904 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1905
c48a845b
MS
19062003-07-30 Michael Snyder <[email protected]>
1907
4e7d7511 1908 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1909 * infcall.c (call_function_by_hand): Pass struct_addr to
1910 value_being_returned.
1911 * infcmd.c (print_return_value): Pass zero as struct_addr.
1912 * values.c (value_being_returned): If struct_addr is passed,
1913 use it instead of trying to recover it from the inferior.
1914
f0d8db19
KB
19152003-07-30 Kevin Buettner <[email protected]>
1916
1917 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1918 the prologue analyzer won't need to attempt to extract the pc
1919 value from the woefully incomplete dummy frame.
1920 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1921 possible. Disable code which modifies the frame.
1922
e5c113a1
AC
19232003-07-28 Andrew Cagney <[email protected]>
1924
1925 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1926 to level 2.
1927 (annotate_breakpoints_table, annotate_record): Ditto.
1928 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1929 (annotate_field_name_end, annotate_field_value): Ditto.
1930 (annotate_field_end, annotate_frame_source_begin): Ditto.
1931 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1932 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1933 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1934 (annotate_frame_address_end, annotate_frame_address): Ditto.
1935 (annotate_frame_args, annotate_frame_end): Ditto.
1936 (annotate_frame_where, annotate_arg_begin): Ditto.
1937 (annotate_arg_name_end, annotate_arg_value): Ditto.
1938 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1939 (annotate_function_call, annotate_signal_name): Ditto.
1940 (annotate_signal_string, annotate_signal_name_end): Ditto.
1941 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1942 (annotate_value_begin, annotate_value_history_value): Ditto.
1943 (annotate_value_history_end, annotate_value_end): Ditto.
1944 (annotate_display_begin, annotate_display_number_end): Ditto.
1945 (annotate_display_format, annotate_display_expression): Ditto.
1946 (annotate_display_expression_end, annotate_display_value): Ditto.
1947 (annotate_display_end, annotate_array_section_begin): Ditto.
1948 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1949 (annotate_elt, annotate_array_section_end): Ditto.
1950
bb1db049
AC
19512003-07-28 Andrew Cagney <[email protected]>
1952
1953 * regcache.c (struct regcache_descr): Update comments on
1954 nr_raw_registers.
1955 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1956 sizeof_raw_register_valid_p.
1957 (init_regcache_descr): Set nr_raw_registers and
1958 sizeof_raw_register_valid_p before calling
1959 init_legacy_regcache_descr.
1960
20e6603c
AC
19612003-07-28 Andrew Cagney <[email protected]>
1962
1963 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1964 MOD NUM_REGS.
1965
db742940
DJ
19662003-07-28 Daniel Jacobowitz <[email protected]>
1967
1968 * thread.c (info_threads_command): Use get_selected_frame ().
1969 Check that there is at least one non-sentinel frame.
1970
ce7f4371
SC
19712003-07-27 Stephane Carrez <[email protected]>
1972
1973 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1974 (m68hc11_pop_frame): Remove.
1975 (m68hc11_frame_saved_pc): Remove.
1976 (m68hc11_frame_chain): Remove.
1977 (m68hc11_frame_init_saved_regs): Remove.
1978 (m68hc11_init_extra_frame_info): Remove.
1979 (m68hc11_store_struct_return): Remove.
1980 (m68hc11_saved_pc_after_call): Remove.
1981
1ea653ae
SC
19822003-07-27 Stephane Carrez <[email protected]>
1983
1984 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1985 frame unwind information.
1986 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1987 and adapted for frame unwinding.
1988 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1989 (m68hc11_unwind_pc): New function.
1990 (m68hc11_frame_unwind_cache): New function to analyze frames.
1991 (m68hc11_frame_this_id): New function to create new frame struct.
1992 (m68hc11_frame_prev_register): New function to unwind a register from
1993 the frame.
1994 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1995 (m68hc11_frame_p): New function for the above.
1996 (m68hc11_frame_base_address): New function to return fp of frame.
1997 (m68hc11_frame_args_address): Update for frame.
1998 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1999 (m68hc11_unwind_sp): New function.
2000 (m68hc11_unwind_dummy_id): New function.
2001 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2002 calls.
2003
c8a7f6ac
SC
20042003-07-27 Stephane Carrez <[email protected]>
2005
2006 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2007 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2008 when we are beyond the current pc.
2009
3dc990bf
SC
20102003-07-27 Stephane Carrez <[email protected]>
2011
2012 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2013 from m68hc11_push_arguments.
2014 (m68hc11_push_arguments): Remove.
2015 (m68hc11_push_return_address): Remove.
2016 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2017 handlers; remove deprecated_extra_stack_alignment_needed.
2018
222e5d1d
AC
20192003-07-27 Andrew Cagney <[email protected]>
2020
2021 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2022 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2023 REAL_PC and not the pointer.
2024 * hppa-hpux-tdep.c: Include frame.h
2025
a7e9a47e
AC
20262003-07-27 Andrew Cagney <[email protected]>
2027
2028 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2029 GDB_MULTI_ACH_PARTIAL.
2030
7e3dd49e
AC
20312003-07-27 Andrew Cagney <[email protected]>
2032
2033 Patch from 2003-07-22 Kei Sakamoto <[email protected]>:
2034 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2035 operator at start and not end of line.
2036 (decode_prologue): Ditto.
2037 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2038 frame_unwind_register_unsigned instead of
2039 frame_unwind_unsigned_register.
2040 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2041 read_register.
2042 (m32r_push_dummy_call): Use register_size instead of
2043 REGISTER_RAW_SIZE.
2044 (m32r_frame_sniffer): Replace m32r_frame_p.
2045 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2046 * m32r-rom.c (report_transfer_performance): Delete extern
2047 declaration.
2048 (m32r_load, m32r_upload_command): Use print_transfer_performance
2049 instead of report_transfer_performance.
2050 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2051 / add_show_from_set.
2052
0880807f
AC
20532003-07-26 Andrew Cagney <[email protected]>
2054
2055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2056 store_return_value and extract_struct_value_address.
2057
64ae9269
DJ
20582003-07-26 Daniel Jacobowitz <[email protected]>
2059
2060 PR c++/1267
2061 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2062 NULL, default to the section containing PC.
2063
e286caf2
SC
20642003-07-24 Stephane Carrez <[email protected]>
2065
2066 * NEWS: Mention "regs" deprecated for m68hc11 too.
2067
2068 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2069 (m68hc11_print_register): New function to print out one register.
2070 (m68hc11_print_registers_info): New function to print registers.
2071 (show_regs): Deprecate and use the above.
2072 (m68hc11_gdbarch_init): Install the print_registers_info.
2073
705b278b
JJ
20742003-07-24 Jeff Johnston <[email protected]>
2075
2076 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2077 that we have a SIGTRAP before returning non-zero.
2078
63cd4198
EZ
20792003-07-23 Michal Ludvig <[email protected]>
2080 Elena Zannoni <[email protected]>
2081
2082 * linespec.c (decode_line_2): Avoid crash if
2083 find_function_start_sal() returns empty record.
2084
6926787d
AS
20852003-07-23 Andreas Schwab <[email protected]>
2086
2087 * ia64-tdep.c (ia64_print_insn): New function.
2088 (ia64_gdbarch_init): Set print_insn to it.
2089 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2090 deprecated_tm_print_insn_info.
2091
708cc1b6
MS
20922003-07-22 Michael Snyder <[email protected]>
2093
2094 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2095 handle 8-bit returns (long long).
2096 (h8300h_extract_return_value): Ditto.
2097 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2098
aebd7893
AC
20992003-07-22 Andrew Cagney <[email protected]>
2100
2101 * gdbarch.c Include "gdb_obstack.h".
2102 (struct gdbarch): Add an "obstack".
2103 (alloc_gdbarch_data): Allocate the gdbarch data using
2104 GDBARCH_OBSTACK_CALLOC.
2105 (free_gdbarch_data): Delete function.
2106 (gdbarch_obstack_zalloc): New function.
2107 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2108 Assert that the architecture is not initialized.
2109 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2110 vector from the obstack.
2111 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2112 architecture obstack.
2113 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2114 (set_gdbarch_data): Assert that the data is not initialized.
2115 (struct gdbarch_data): Delete member "free".
2116 (register_gdbarch_data): Do not initialize "free".
2117 * gdbarch.h, gdbarch.c: Re-generate.
2118
153721e6
AC
21192003-07-22 Andrew Cagney <[email protected]>
2120
2121 * configure.in (build_warnings): Add -Wformat-nonliteral.
2122 * configure: Re-generate.
2123
c193f044 21242003-07-22 Elena Zannoni <[email protected]>
32ffcbed
EZ
2125
2126 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2127
c3228f12
EZ
21282003-07-22 Elena Zannoni <[email protected]>
2129
2130 * findvar.c (read_var_value): Remove case for thread local storage
2131 variables. It is now entirely handled by the dwarf2 location
2132 expression code.
2133 * printcmd.c (address_info): Ditto.
2134 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2135 enumeration value.
2136 (struct symbol): Remove objfile field, which was used by
2137 LOC_THREAD_LOCAL_STATIC only.
2138 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2139 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2140 usage of objfile pointer.
2141 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2142 thread local variables.
2143 Add include of objfiles.h.
2144 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2145 storage variables.
2146 * Makefile.in (dwarf2loc.o): Update dependencies.
2147
aef9bcd2
AC
21482003-07-22 Andrew Cagney <[email protected]>
2149
2150 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2151 get_frame_base.
2152 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2153 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2154 (struct value): Add opaque declaration.
2155 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2156
d95a8903
AC
21572003-07-21 Andrew Cagney <[email protected]>
2158
2159 From 2003-07-04 Kei Sakamoto <[email protected]>:
2160 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2161
4db73d49
SC
21622003-07-20 Stephane Carrez <[email protected]>
2163
2164 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2165 regcache_cooked_read_unsigned instead of read_register.
2166 (m68hc11_saved_pc_after_call): Likewise.
2167 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2168 instead of write_register.
2169 (m68hc11_register_type): New function.
2170 (m68hc11_register_virtual_type): Remove.
2171 (m68hc11_store_return_value): Convert to use the regcache.
2172 (m68hc11_extract_struct_value_address): Likewise.
2173 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2174 m68hc11_register_type; undeprecate store_return_value and
2175 extract_struct_value_address.
2176
ef2b8fcd
SC
21772003-07-20 Stephane Carrez <[email protected]>
2178
2179 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2180 and translate to use regcache.
2181 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2182
625b0b97
AC
21832003-07-18 Andrew Cagney <[email protected]>
2184
2185 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2186 * gdbarch.h, gdbarch.c: Re-generate.
2187 * i386-tdep.c (i386_gdbarch_init): Do not set
2188 DWARF2_BUILD_FRAME_INFO.
2189 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2190 unconditionally.
2191 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2192 DWARF2_BUILD_FRAME_INFO.
2193
22b0d388
AC
21942003-07-18 Andrew Cagney <[email protected]>
2195
2196 From 2003-07-04 Kei Sakamoto <[email protected]>:
2197 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2198
1ce5d6dd
AC
21992003-07-18 Andrew Cagney <[email protected]>
2200
2201 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2202 frame_unwind_address_in_block, instead of frame_pc_unwind.
2203 (dwarf2_frame_cache): Ditto.
2204
e6e5e94c
AC
22052003-07-18 Andrew Cagney <[email protected]>
2206
2207 * user-regs.h (struct gdbarch): Declare opaque.
2208 * ui-out.h (struct ui_file): Declare opaque.
2209 * dwarf2-frame.h (struct frame_info): Declare opaque.
2210
5483d879
KW
22112003-07-18 Kris Warkentin <[email protected]>
2212
2213 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2214 #include "...".
2215 (procfs_meminfo): Change strerror to safe_strerror.
2216 (procfs_can_run): Remove K&R badness.
2217
278a7cf7
MS
22182003-07-17 Michael Snyder <[email protected]>
2219
2220 * remote-sim.c: Comment typo fix.
2221
606e3b82
AC
22222003-07-17 Andrew Cagney <[email protected]>
2223
2224 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2225 configure.
2226 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2227 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2228 GDB_MULTI_ARCH_PARTIAL.
2229
c43af07c
EZ
22302003-07-17 Elena Zannoni <[email protected]>
2231
2232 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2233 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2234 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2235
3b85b0f1
TR
22362003-07-16 Theodore A. Roth <[email protected]>
2237
2238 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2239 found.
2240 (avr_frame_unwind_cache): Don't unwind FP for main.
2241 Update a comment.
2242 Save the computed prev_sp.
2243 (avr_saved_regs_unwinder): Remove function.
2244 (avr_frame_prev_register): Use PC unwind logic from
2245 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2246
336d1bba
AC
22472003-07-16 Andrew Cagney <[email protected]>
2248
2249 * frame-base.h (frame_base_p_ftype): Delete definition.
2250 (frame_base_append_predicate): Delete declaration.
2251 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2252 (frame_unwind_append_predicate): Delete declaration.
2253 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2254 (append_predicate): Delete parameter "p".
2255 (frame_unwind_append_predicate): Delete function.
2256 (frame_unwind_append_sniffer): Update call to append_predicate.
2257 (frame_unwind_free): Delete function.
2258 (_initialize_frame_unwind): Pass NULL as "free" to
2259 register_gdbarch_data.
2260 (frame_unwind_init): Append the dummy_frame_sniffer.
2261 (frame_unwind_find_by_frame): Simplify.
2262 * frame-base.c (struct frame_base_table): Delete field "p".
2263 (append_predicate): Delete parameter "p".
2264 (frame_base_append_predicate): Delete function.
2265 (frame_base_append_sniffer): Update call to append_predicate.
2266 (frame_base_free): Delete function.
2267 (frame_base_find_by_frame): Simplify.
2268 (_initialize_frame_base): Pass NULL as "free" to
2269 register_gdbarch_data.
2270 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2271 (x86_64_sigtramp_frame_sniffer): Replace
2272 "x86_64_sigtramp_frame_p".
2273 (x86_64_init_abi): Set the frame unwind sniffers.
2274 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2275 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2276 (m68k_gdbarch_init): Set the frame unwind sniffers.
2277 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2278 "i386_sigtramp_frame_p".
2279 (i386_frame_sniffer): Replace "i386_frame_p".
2280 (i386_gdbarch_init): Set the frame unwind sniffers.
2281 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2282 (avr_gdbarch_init): Set the frame unwind sniffers.
2283 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2284 "alpha_sigtramp_frame_p"
2285 (alpha_heuristic_frame_sniffer): Replace
2286 "alpha_heuristic_frame_p".
2287 (alpha_gdbarch_init): Set the frame unwind sniffers.
2288 (alpha_dwarf2_init_abi): Ditto.
2289 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2290 "alpha_debug_frame_p".
2291 (alpha_mdebug_frame_base_sniffer): Replace
2292 "alpha_mdebug_frame_base_p".
2293 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2294 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2295 (d10v_gdbarch_init): Set the frame unwind sniffer.
2296 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2297 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2298 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2299 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2300 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2301 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2302
48db5a3c
CV
23032003-07-16 Michael Snyder <[email protected]>
2304
2305 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2306 should go thru sh_dsp_register_sim_regno, else the dsp regs
2307 will not get the right values.
2308
23092003-07-16 Corinna Vinschen <[email protected]>
2310
2311 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2312 deprecated_store_floating by call to store_typed_floating.
2313 (sh_sh4_register_convert_to_raw): Substitute call to
2314 deprecated_extract_floating by call to extract_typed_floating.
2315
23162003-07-16 Corinna Vinschen <[email protected]>
2317
2318 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2319
23202003-07-16 Corinna Vinschen <[email protected]>
2321
2322 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2323 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2324 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2325 as possible.
2326 (do_pseudo_register): Remove.
2327 (sh_push_dummy_code): New function.
2328 (sh64_store_struct_return): Rename from sh_store_struct_return.
2329 Only called for sh64 now.
2330 (sh_extract_struct_value_address): Regcache'ify.
2331 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2332 and accomodate new tasks.
2333 (sh64_push_return_address): Rename from sh_push_return_address.
2334 Only called for sh64 now.
2335 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2336 Regcache'ify.
2337 (sh3e_sh4_extract_return_value): Regcache'ify.
2338 (sh_default_store_return_value): Ditto.
2339 (sh3e_sh4_store_return_value): Ditto.
2340 (sh_default_register_byte): Remove.
2341 (sh_sh4_register_byte): Remove.
2342 (sh_default_register_raw_size): Remove.
2343 (sh_sh4_register_raw_size): Remove.
2344 (sh_register_virtual_size): Remove.
2345 (sh_sh3e_register_virtual_type): Remove.
2346 (sh_sh3e_register_type): New function.
2347 (sh_sh4_register_virtual_type): Remove.
2348 (sh_sh4_register_type): New function.
2349 (sh_default_register_virtual_type): Remove.
2350 (sh_default_register_type): New function.
2351 (do_fv_register_info): Add parameters to accomodate call from
2352 sh_print_registers_info.
2353 (do_dr_register_info): Ditto.
2354 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2355 Add parameters to accomodate call from sh_print_registers_info.
2356 (sh_do_fp_register): Ditto.
2357 (sh64_do_pseudo_register): Call do_dr_register_info,
2358 do_fv_register_info and sh_do_fp_register with default parameters.
2359 (sh_do_register): Add parameters to accomodate call from
2360 sh_print_registers_info.
2361 (sh_print_register): Ditto.
2362 (sh_print_registers_info): Rename from sh_do_registers_info.
2363 Add parameters to be used as gdbarch_print_registers_info
2364 implementation. Accomodate removed do_pseudo_register function
2365 pointer.
2366 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2367 function pointer. Call sh_print_register with default parameters.
2368 (sh64_do_registers_info): Call sh_print_registers_info instead of
2369 sh_do_registers_info.
2370 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2371 detection of deprecated vs. non-deprecated functionality.
2372 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2373 function pointer assignments by direct function calls.
2374
e8a89fe2
AC
23752003-07-15 Andrew Cagney <[email protected]>
2376
2377 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2378 (frame_register_unwind, create_new_frame): Ditto.
2379 (legacy_get_prev_frame, get_frame_type): Ditto.
2380 (get_frame_base_address): Use frame_base_find_by_frame.
2381 (get_frame_locals_address): Use frame_base_find_by_frame.
2382 (get_frame_args_address): Use frame_base_find_by_frame.
2383 * frame-base.h (frame_base_sniffer_ftype): Declare.
2384 (frame_base_append_sniffer): Declare.
2385 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2386 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2387 (frame_base_append_sniffer): New function.
2388 (frame_base_append_predicate): Add a NULL sniffer.
2389 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2390 (struct frame_base_table): Add "sniffer".
2391 (frame_base_free): Free the "sniffer" table.
2392 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2393 (frame_unwind_append_sniffer): Declare.
2394 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2395 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2396 (struct frame_unwind_table): Add "sniffer", delete "middle".
2397 (append_predicate): Add "sniffer" parameter, append the sniffer.
2398 (frame_unwind_init): Update append_predicate call.
2399 (frame_unwind_append_sniffer): New function.
2400 (frame_unwind_append_predicate): Update append_predicate call.
2401 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2402
0714963c
AC
24032003-07-15 Andrew Cagney <[email protected]>
2404
2405 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2406 before code inhibiting repeated unwind attempts. Add to
2407 commentary on that test's problems.
2408 * blockframe.c (inside_main_func): Look for "main" in the minimal
2409 symbol table.
2410 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2411 identical.
2412
d9170e22
AC
24132003-07-15 Andrew Cagney <[email protected]>
2414
2415 * complaints.c (struct explanation): Define.
2416 (struct complaints): Change type of "explanation" to "struct
2417 explanation".
2418 (symfile_explanations): Convert to a "struct explanation" table.
2419 (vcomplaint): Update.
2420
eba29c8c
ML
24212003-07-15 Michal Ludvig <[email protected]>
2422
2423 * x86-64-linux-nat.c (regmap): Removed.
2424 (supply_gregset, fill_gregset): Call
2425 x86_64_linux_(fill,supply)_gregset functions.
2426 * x86-64-linux-tdep.c (USER_*): New defines.
2427 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2428 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2429 New functions.
2430 (fetch_core_registers): Ditto.
2431 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2432 * x86-64-linux-tdep.h: New file.
2433 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2434 and core-regset.o.
2435 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2436
68cc0bfb
MK
24372003-07-13 Mark Kettenis <[email protected]>
2438
88a115f7
MK
2439 * x86-64-tdep.c (x86_64_store_return_value): Use
2440 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2441
68cc0bfb
MK
2442 * configure.host: Add x86_64-*-freebsd*.
2443 * configure.tgt: Add x86_64-*-freebsd*.
2444 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2445 * amd64fbsd-nat.c: New file.
2446 * amd64fbsd-tdep.c: New file.
2447 * config/i386/nm-fbsd64.h: New file.
2448 * config/i386/fbsd64.mh: New file.
2449 * config/i386/fbsd64.mt: New file.
2450
138e7be5
MK
24512003-07-11 Mark Kettenis <[email protected]>
2452
2453 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2454 `sc_regs_offset' and `sc_fpregs_offset'.
2455 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2456 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2457 (alpha_sigtramp_register_address): Rewrite to use new members of
2458 `struct gdbarch_tdep'.
2459 (alpha_gdbarch_init): Initialize new members of struct
2460 gdbarch_tdep'.
2461 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2462 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2463 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2464 (alphafbsd_pc_in_sigtramp): Implement.
2465 (alphafbsd_sigtramp_offset): New function.
2466 (alphafbsd_sigcontext_addr): New function.
2467 (alphafbsd_init_abi): Initialize signal trampoline related members
2468 of `struct gdbarch_tdep'.
2469 (_initialize_alphafbsd_tdep): Add prototype.
2470
95303a68
TR
24712003-07-11 Theodore A. Roth <[email protected]>
2472
ba292e4c
TR
2473 * Makefile.in (install-only): Quote sed expression when generating
2474 transformed_name.
95303a68 2475
6896c0c7
RH
24762003-07-11 Richard Henderson <[email protected]>
2477
2478 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2479 * dwarf2-frame.c: Include complaints.h.
2480 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2481 variable initialization; return NULL on error.
2482 (decode_frame_entry): New.
2483
8edd5d01
AC
24842003-07-11 Andrew Cagney <[email protected]>
2485
c4a09524
AC
2486 * frame.h (frame_address_in_block): Delete declaration.
2487 * blockframe.c (frame_address_in_block): Delete function.
2488 (get_frame_block): Use get_frame_address_in_block.
2489 (block_innermost_frame): Ditto.
2490 * stack.c (print_frame, backtrace_command_1): Ditto.
2491
8edd5d01
AC
2492 * frame.h (get_frame_address_in_block): Declare.
2493 (frame_unwind_address_in_block): Declare.
2494 * frame.c (frame_unwind_address_in_block): New function.
2495 (get_frame_address_in_block): New function.
2496
f7968451
AC
24972003-07-10 Andrew Cagney <[email protected]>
2498
2499 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2500 pre-default. Note: re-generate has no effect.
2501
ae99b398
AC
25022003-07-10 Andrew Cagney <[email protected]>
2503
2504 * gdbarch.sh: When a variable, but not a function, compare against
2505 0. Fix problem in previous patch.
2506 * gdbarch.c: Re-generate.
2507
956ac328
AC
25082003-07-10 Andrew Cagney <[email protected]>
2509
2510 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2511 functions against NULL, not 0.
2512 * gdbarch.c: Re-generate.
2513
287c3240
FF
25142003-07-10 Fred Fish <[email protected]>
2515
2516 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2517 null string instead of a null pointer.
2518 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2519
32f63c4b
MS
25202003-07-09 Michael Snyder <[email protected]>
2521
2522 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2523
402ecd56
MK
25242003-07-09 Mark Kettenis <[email protected]>
2525
2526 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2527 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2528 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2529 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2530 * x86-64-tdep.c: ... from here.
2531
c481dac7
AS
25322003-07-09 Andreas Schwab <[email protected]>
2533
2534 * m68k-tdep.h (enum struct_return): Define.
2535 (struct gdbarch_tdep): Add struct_return.
2536 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2537 bytes are padded to the right, not to the left. Pass struct value
2538 address in register %a1, not on stack.
2539 (m68k_use_struct_convention): New function.
2540 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2541 struct_return in tdep to pcc_struct_return.
2542 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2543 reg_struct_return.
2544
64176fa3
JB
25452003-07-09 Joel Brobecker <[email protected]>
2546
2547 * somread.c (som_symfile_offsets): Fix compilation error.
2548
96a4ee76
AC
25492003-07-09 Andrew Cagney <[email protected]>
2550
2551 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2552 Add comments about the checks.
2553
1517c6d1
AC
25542003-07-08 Andrew Cagney <[email protected]>
2555
2556 * Makefile.in: Make dependency section headers consistent.
2557 (config_h): Move to $BUILD headers section.
2558 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2559 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2560 (ada-exp.tab.c): Move to YACC/LEX section.
2561 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2562 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2563
dc5dd1eb
KW
25642003-07-08 Kris Warkentin <[email protected]>
2565
2566 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2567 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2568 of strerror with safe_strerror, use ISO C function definitions,
2569 and replace instances of sprintf with snprintf.
dc5dd1eb 2570
612dde91
AC
25712003-07-07 Andrew Cagney <[email protected]>
2572
2573 * frame.c (get_prev_frame): Enable check for identical frames.
2574 Update comments. Update error messages.
2575
492c11d3
JB
25762003-07-07 Joel Brobecker <[email protected]>
2577
2578 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2579
376a5a49
JB
25802003-07-07 Joel Brobecker <[email protected]>
2581
2582 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2583 sort_symtab_syms, no longer necessary.
2584
22b4a9ad
JB
25852003-07-07 Joel Brobecker <[email protected]>
2586
2587 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2588
5bbcb741
JB
25892003-07-07 Joel Brobecker <[email protected]>
2590
2591 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2592 (mips_register_byte): Likewise.
2593
c139e7d9
DJ
25942003-07-07 Daniel Jacobowitz <[email protected]>
2595
2596 * Makefile.in (sparc_tdep_h): New.
2597 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2598 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2599 * sparc-linux-nat.c: Include "sparc-tdep.h".
2600 * sparc-nat.c: Likewise.
2601 * sparc-tdep.c: Likewise.
2602 * sparc64nbsd-nat.c: Likewise.
2603 * sparcnbsd-nat.c: Likewise.
2604 * sparcnbsd-tdep.c: Likewise.
2605 * sparc-tdep.h: New file.
2606 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2607 and sparc_npc_regnum.
2608
fd8f87c5
DJ
26092003-07-07 Daniel Jacobowitz <[email protected]>
2610
2611 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2612 (mips_linux_cannot_store_register): List supported instead of
2613 unsupported registers.
2614
13adf674
DJ
26152003-07-07 Daniel Jacobowitz <[email protected]>
2616
2617 * disasm.c (dump_insns): Separate instructions from addresses.
2618
8de307e0
AS
26192003-07-07 Andreas Schwab <[email protected]>
2620
2621 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2622 dependencies.
2623 * m68k-tdep.c (NUM_FREGS): Delete.
2624 (SIG_PC_FP_OFFSET): Delete.
2625 (TARGET_M68K): Delete.
2626 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2627 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2628 P_MOVEL_SP, P_MOVEML_SP): Define.
2629 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2630 P_TRAP): Delete.
2631 (m68k_register_raw_size): Delete.
2632 (m68k_register_virtual_size): Delete.
2633 (m68k_register_type): Renamed from m68k_register_virtual_type and
2634 add gdbarch argument.
2635 (m68k_store_struct_return): Delete.
2636 (m68k_deprecated_extract_return_value): Delete.
2637 (m68k_deprecated_extract_struct_value_address): Delete.
2638 (m68k_frame_chain): Delete.
2639 (m68k_frame_saved_pc): Delete.
2640 (m68k_fix_call_dummy): Delete.
2641 (m68k_push_dummy_frame): Delete.
2642 (m68k_pop_frame): Delete.
2643 (m68k_extract_return_value): New function.
2644 (m68k_store_return_value): Rewrite using regcache.
2645 (m68k_extract_struct_value_address): Rewrite using regcache.
2646 (m68k_push_dummy_call): New function.
2647 (struct m68k_frame_cache): Define.
2648 (m68k_alloc_frame_cache): New function.
2649 (m68k_analyze_frame_setup): New function.
2650 (m68k_analyze_register_saves): New function.
2651 (m68k_analyze_prologue): New function.
2652 (m68k_skip_prologue): Rewrite using above functions.
2653 (m68k_unwind_pc): New function.
2654 (m68k_frame_cache): New function.
2655 (m68k_frame_this_id): New function.
2656 (m68k_frame_prev_register): New function.
2657 (m68k_frame_unwind): New variable.
2658 (m68k_frame_p): New function.
2659 (m68k_sigtramp_frame_cache): New function.
2660 (m68k_sigtramp_frame_this_id): New function.
2661 (m68k_sigtramp_frame_prev_register): New function.
2662 (m68k_sigtramp_frame_unwind): New variable.
2663 (m68k_sigtramp_frame_p): New function.
2664 (m68k_frame_base_address): New function.
2665 (m68k_frame_base): New function.
2666 (m68k_unwind_dummy_id): New function.
2667 (fill_gregset): Use regcache_collect.
2668 (fill_fpregset): Likewise.
2669 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2670 defined.
2671 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2672 deprecated_init_frame_pc, deprecated_store_struct_return,
2673 deprecated_extract_return_value, deprecated_store_return_value,
2674 deprecated_frame_chain, deprecated_frame_saved_pc,
2675 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2676 deprecated_register_virtual_size,
2677 deprecated_max_register_raw_size,
2678 deprecated_max_register_virtual_size,
2679 deprecated_register_virtual_type, deprecated_register_size,
2680 deprecated_register_byte, deprecated_register_bytes,
2681 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2682 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2683 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2684 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2685 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2686 deprecated_push_dummy_frame, deprecated_pop_frame,
2687 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2688 only if SYSCALL_TRAP is defined. Set extract_return_value,
2689 store_return_value, extract_struct_value_address, register_type,
2690 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2691 predicates.
2692 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2693 M68K_MAX_REGISTER_SIZE): Define.
2694 (struct m68k_sigtramp_info): Define.
2695 (struct gdbarch_tdep): Add get_sigtramp_info.
2696 * m68klinux-nat.c (fetch_register): Use register_size instead of
2697 REGISTER_RAW_SIZE. Don't put assignment in if.
2698 (store_register): Likewise.
2699 (fetch_inferior_registers): Likewise.
2700 (store_inferior_registers): Likewise.
2701 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2702 (m68k_linux_frame_saved_pc): Delete.
2703 (m68k_linux_sigcontext_reg_offset,
2704 m68k_linux_ucontext_reg_offset): Define.
2705 (m68k_linux_get_sigtramp_info): New function.
2706 (m68k_linux_extract_return_value): Rewrite using regcache.
2707 (m68k_linux_store_return_value): Likewise.
2708 (m68k_linux_extract_struct_value_address): Likewise.
2709 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2710 Don't set deprecated_frame_saved_pc,
2711 deprecated_extract_return_value, deprecated_store_return_value,
2712 deprecated_extract_struct_value_address. Set
2713 extract_return_value, store_return_value,
2714 extract_struct_value_address.
2715
eb8bc282
AC
27162003-07-07 Andrew Cagney <[email protected]>
2717
2718 * expprint.c: Include "user-regs.h" instead of "frame.h".
2719 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2720 frame_map_regnum_to_name.
2721 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2722 (frame_map_name_to_regnum): Simplify, call
2723 user_reg_map_name_to_regnum.
2724 (frame_map_regnum_to_name): Simplify, call
2725 user_reg_map_regnum_to_name.
2726 (frame_register_unwind): Update.
2727 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2728 (_initialize_frame_reg): Call user_reg_add_builtin.
2729 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2730 (value_of_register): Use value_of_user_reg.
2731 * eval.c (evaluate_subexp_standard): Update.
2732 * parse.c (write_dollar_variable): Update.
2733 * d10v-tdep.c (d10v_print_registers_info): Update.
2734 * infcmd.c (registers_info): Update.
2735 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2736 (builtin_regs_h): Delete macro.
2737 (user_regs_h): Define.
2738 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2739 (builtin-regs.o): Delete target.
2740 (user-regs.o): Specify dependencies.
2741 (expprint.o): Update dependencies.
2742 (findvar.o): Update dependencies.
2743 (frame.o): Update dependencies.
2744 (std-regs.o): Update dependencies.
2745
9f476a01
CF
27462003-07-06 Christopher Faylor <[email protected]>
2747
2748 * win32-nat.c (solib_symbols_add): Use one variable for all section
2749 address stuff. Pass variable rather than address of variable to
2750 safe_symbol_file_add.
2751
a731b831
AS
27522003-07-06 Andreas Schwab <[email protected]>
2753
2754 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2755
9f83329d
JB
27562003-07-04 Joel Brobecker <[email protected]>
2757
2758 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2759
27e28cc5
KW
27602003-07-04 Kris Warkentin <[email protected]>
2761
2762 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2763
27642003-07-04 Kris Warkentin <[email protected]>
2765
2766 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2767 * config/i386/nto.mh: New file.
2768 * config/i386/nm-nto.h: New file.
2769 * configure.host: Add i[3456]86-*-nto*.
2770
100f2e98
JB
27712003-07-03 Joel Brobecker <[email protected]>
2772
2773 * remote-vx.c (vx_add_symbols): Fix compilation error.
2774
e23457df
AC
27752003-07-03 Andrew Cagney <[email protected]>
2776
2777 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2778 * gdbarch.h, gdbarch.c: Re-generate.
2779 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2780 (legacy_register_name): Declare.
2781 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2782 (REGISTER_NAME): Define.
2783 * sparc-tdep.c (legacy_register_name): New function.
2784 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2785 (REGISTER_NAME): Define.
2786 (hppa64_register_name): Declare.
2787 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2788 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2789 (hppa64_register_name): New function.
2790 (hppa_register_name): New function.
2791 * arch-utils.c (legacy_register_name): Delete.
2792 * arch-utils.h (legacy_register_name): Delete.
2793
38caaeec
DJ
27942003-07-03 Daniel Jacobowitz <[email protected]>
2795
2796 * cli/cli-interp.c (cli_interpreter_resume): Update the
2797 cli_uiout's stream to gdb_stdout.
2798
dadd712e
AC
27992003-07-03 Andrew Cagney <[email protected]>
2800
2801 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2802 predicate.
2803 * gdbarch.h, gdbarch.c: Re-generate.
2804 * regcache.c (init_regcache_descr): Use legacy code when either
2805 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2806
c7f1390e
DJ
28072003-07-02 Daniel Jacobowitz <[email protected]>
2808
2809 * NEWS: Move "set logging" entry into GDB 6.0 section.
2810
4bc8c588
JB
28112003-07-02 Jim Blandy <[email protected]>
2812
a9dd42f1
JB
2813 * s390-tdep.c (struct frame_extra_info): new member:
2814 'stack_bought_valid'.
2815 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2816 initialize fextra_info->stack_bought.
2817 (s390_frameless_function_invocation): Don't trust the value of
2818 fextra_info_ptr->stack_bought unless
2819 fextra_info->stack_bought_valid is set.
2820
4bc8c588
JB
2821 New S390 prologue analyzer.
2822 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2823 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2824 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2825 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2826 compute_x_addr, s390_on_stack, s390_store,
2827 s390_get_signal_frame_info): New functions.
2828 (S390_NUM_SPILL_SLOTS): New macro.
2829 (s390_get_frame_info): Rewritten.
2830 (is_arg_reg): Deleted.
2831
2832 Break out the decoding of S/390 instructions into separate
2833 functions, to make it more legible, and easier to check
2834 against the spec.
2835 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2836 is_rx, is_rxe): New functions.
2837 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2838 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2839 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2840 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2841 enums for opcode values. (Is this an improvement?)
2842
fd13a04a
AC
28432003-07-02 Andrew Cagney <[email protected]>
2844
2845 * i386-tdep.c: Revert change committed as part of trad-frame code
2846 below.
2847
3f8091c1
DJ
28482003-07-02 Daniel Jacobowitz <[email protected]>
2849
2850 * breakpoint.c (insert_catchpoint): Make static.
2851
8dd5115e
AS
28522003-07-02 Andreas Schwab <[email protected]>
2853
2854 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2855 former ia64_push_arguments and ia64_push_return_address, and use
2856 regcache functions instead of read/write_register.
2857 (ia64_gdbarch_init): Set push_dummy_call instead of
2858 deprecated_push_arguments and deprecated_push_return_address.
2859
a2229c23
AJ
28602003-07-01 Andreas Jaeger <[email protected]>
2861
2862 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2863 before the call.
2864 Set %rax only to number of SSE registers used.
2865
3b3850e8
AC
28662003-07-01 Andrew Cagney <[email protected]>
2867
2868 * trad-frame.h: Update comments, a -1 .addr is reserved.
2869 (trad_frame_value_p, trad_frame_addr_p): Declare.
2870 (trad_frame_reg_p): Declare.
2871 (trad_frame_set_value): Rename trad_frame_register_value.
2872 (trad_frame_set_unknown): Declare.
2873 * trad-frame.c (trad_frame_realreg_p): New function.
2874 (trad_frame_addr_p, trad_frame_value_p): New function.
2875 (trad_frame_set_unknown): New function.
2876 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2877 (trad_frame_prev_register): Use trad_frame_realreg_p,
2878 trad_frame_addr_p and trad_frame_value_p.
2879 (trad_frame_set_value): Rename trad_frame_register_value.
2880 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2881 and trad_frame_set_value.
a2229c23 2882
4d819d0e
JB
28832003-06-30 Jim Blandy <[email protected]>
2884
2885 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2886 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2887 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2888 for 16 registers, and then 32 more bytes.
2889 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2890 New macros.
2891 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2892 Move up in the file, since it's now used by is_simple_arg.
2893 (is_simple_arg): Don't assume registers are four bytes long.
2894 Exclude all double arguments. Extended floats are not simple
2895 args.
2896 (is_power_of_two): New function.
2897 (pass_by_copy_ref): Call is_power_of_two, and check that the
2898 length fits in a register, rather than listing all the acceptable
2899 sizes. Extended floats are not passed by reference.
2900 (s390_push_arguments): Don't assume registers are four bytes long.
2901 Reserve an argument register to point to the buffer for structures
2902 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2903 S390_STACK_FRAME_OVERHEAD.
2904
1ad828f1
AS
29052003-06-30 Andreas Schwab <[email protected]>
2906
2907 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2908 format error message.
2909
39b00981
JB
29102003-06-30 Joel Brobecker <[email protected]>
2911
2912 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2913
b2a7f303
DC
29142003-06-30 David Carlton <[email protected]>
2915
2916 Band-aid for PR c++/1245.
2917 * Makefile.in (cp-support.o): Depend on complaints_h.
2918 * cp-support.c: Include complaints.h. Add declaration for
2919 find_last_component.
2920 (cp_find_first_component): Separate code into
2921 cp_find_first_component_aux.
2922 (cp_find_first_component_aux): Call demangled_name_complaint.
2923 (demangled_name_complaint): New.
2924
a257b5bb
AC
29252003-06-30 Andrew Cagney <[email protected]>
2926
2927 * remote.c (remote_write_bytes): Explicitly compute and then use
2928 the payload size. Update comments to reflect. Fixes problem of
2929 GDB not sending small packets as found by Fred Fish.
2930
0a2cfde4
AC
29312003-06-30 Andrew Cagney <[email protected]>
2932
2933 * remote.c (remote_async_wait): Fix -Wformat problem.
2934
3fcb8548
AC
29352003-06-29 Andrew Cagney <[email protected]>
2936
2937 * remote.c (remote_wait): Call error, and not warning, when the
2938 packet is corrupt.
2939 (remote_async_wait): Ditto.
2940
9f9970a3
DJ
29412003-06-29 Daniel Jacobowitz <[email protected]>
2942
2943 * sparc-tdep.c (sparc_y_regnum): Make external again.
2944
83a8ccca
DJ
29452003-06-29 Daniel Jacobowitz <[email protected]>
2946
2947 * cli/cli-logging.c (pop_output_files): Add void to function
2948 definition.
2949
d2cf594a
AC
29502003-06-29 Andrew Cagney <[email protected]>
2951
2952 * frame.c (frame_register_unwind): Use unsigned char when dumping
2953 the buffer contents.
2954
0fac0b41
DJ
29552003-06-28 Daniel Jacobowitz <[email protected]>
2956
2957 * cli/cli-logging.c: New file.
2958 * cli-out.c (struct ui_out_data): Add original_stream.
2959 (cli_redirect): New function.
2960 (cli_ui_out_impl): Add cli_redirect.
2961 (cli_out_new): Initialize original_stream.
2962 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2963 (uo_redirect, ui_out_redirect): New.
2964 * ui-out.h (struct ui_out_impl): Add redirect member.
2965 (redirect_ftype): New.
2966 (ui_out_redirect): Add prototype.
2967 * Makefile.in: Add rules for cli-logging.c.
2968 * NEWS: Mention "set logging".
2969
88a07d7c
EZ
29702003-06-27 Elena Zannoni <[email protected]>
2971
2972 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2973
4eb58876
AC
29742003-06-27 Andrew Cagney <[email protected]>
2975
2976 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2977 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2978 * avr-tdep.c (avr_call_dummy_address): Delete function.
2979 (avr_gdbarch_init): Do not set call_dummy_address.
2980
1549f619
EZ
29812003-06-27 Elena Zannoni <[email protected]>
2982
2983 * symfile.c (syms_from_objfile): Move variables to inner block.
2984 Move the checks for the non-mainline case a bit earlier to avoid
2985 doing some useless computations.
2986
3cb3398d
EZ
29872003-06-27 Elena Zannoni <[email protected]>
2988
2989 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2990
3799ccc6
EZ
29912003-06-26 Elena Zannoni <[email protected]>
2992
2993 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2994 sections.
2995
ce1f6491
MC
29962003-06-26 Michael Chastain <[email protected]>
2997
2998 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2999 gdb/testsuite/gdb.c++/pr-1210.exp.
3000
d958dfd0
AC
30012003-06-26 Andrew Cagney <[email protected]>
3002
3003 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3004 altivec_expression.h and altivec_registers.h.
3005
d31431ed
AC
30062003-06-26 Andrew Cagney <[email protected]>
3007
3008 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3009 info->mach when MIPS16. Patch suggested by Fred Fish.
3010
714b1282
AC
30112003-06-26 Andrew Cagney <[email protected]>
3012
3013 * utils.c (internal_vproblem): Print the problem to a reason
3014 buffer and then pass to query. Make the msg variable more local.
3015
42efa47a
AC
30162003-06-26 Andrew Cagney <[email protected]>
3017
3018 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3019 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3020 * gdbarch.h, gdbarch.c: Re-generate.
3021 * frame-base.c (default_frame_args_address): Update. Use
3022 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3023 not available.
3024 (default_frame_locals_address): Ditto for
3025 DEPRECATED_FRAME_LOCALS_ADDRESS.
3026 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3027 (vax_frame_num_args): Update.
3028 (vax_gdbarch_init): Update.
3029 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3030 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3031 * mcore-tdep.c (mcore_gdbarch_init): Update.
3032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3033 * ia64-tdep.c (ia64_gdbarch_init): Update.
3034 * symtab.h (address_class): Update comments.
3035 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3036 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3037 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3038 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3039 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3040 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3041 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3042 * alpha-mdebug-tdep.c: Update.
3043 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3044
8ffd9b1b
AJ
30452003-06-26 Andreas Jaeger <[email protected]>
3046
3047 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3048 of SSE registers so that varargs functions work. Rework handling
3049 of passing arguments on the stack.
3050 (x86_64_store_return_value): Return double and float values in SSE
3051 register.
3052
e8ac10a6
MC
30532003-06-24 Michael Chastain <[email protected]>
3054
3055 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3056 the "constructor breakpoints ignored" bug.
3057
986af8e6
DC
30582003-06-25 David Carlton <[email protected]>
3059
3060 * MAINTAINERS: Update e-mail address.
3061
d64558a5
JB
30622003-06-24 Jim Blandy <[email protected]>
3063
e538d2d7
JB
3064 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3065
02631ec0
JB
3066 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3067 function.
3068 (ppc_linux_init_abi): Register it as the
3069 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3070
e716d87a
JB
3071 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3072 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3073 method.
3074
d64558a5
JB
3075 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3076 (ppc64_standard_linkage_target): Use it.
3077
449a5da4
AC
30782003-06-23 Andrew Cagney <[email protected]>
3079
3080 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3081 for 0 "int0" and 4 "int32" sized registers.
3082 * gdbtypes.c (builtin_type_int0): Define.
3083 (build_gdbtypes): Initialize builtin_type_int0.
3084 * gdbtypes.h (builtin_type_int0): Declare.
3085
b2a02dda
SC
30862003-06-23 Stephane Carrez <[email protected]>
3087
3088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3089 as characters are unsigned.
3090
fba3138e
DJ
30912003-06-22 Daniel Jacobowitz <[email protected]>
3092
3093 PR gdb/1179
3094 * dwarfread.c (struct_type): Skip static fields without crashing.
3095
f6c8180b
AC
30962003-06-22 Andrew Cagney <[email protected]>
3097
3098 GDB 6.0 branch created.
f2c06f52
AC
3099 * README: Update.
3100 * PROBLEMS: Update. Empty.
3101 * NEWS: Update.
f6c8180b 3102
ae822768
DJ
31032003-06-22 Daniel Jacobowitz <[email protected]>
3104
3105 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3106 Suggested by Nick Hibma <[email protected]>.
3107
261de166
AC
31082003-06-22 Andrew Cagney <[email protected]>
3109
3110 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3111 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3112 Velikov.
3113
30e94205
DJ
31142003-06-22 Daniel Jacobowitz <[email protected]>
3115
3116 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3117 compilers.
3118
9e14d721
DJ
31192003-06-21 Daniel Jacobowitz <[email protected]>
3120
3121 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3122 argument of val_print.
3123 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3124 to the address argument of baseclass_offset or target_read_memory.
3125 Do add it to the argument of cp_print_value_fields.
3126
a4b8ebc8
AC
31272003-06-21 Andrew Cagney <[email protected]>
3128
3129 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3130 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3131 instead of 0..NUM_REGS.
3132 (mips_register_reggroup_p): New function.
3133 (mips_pseudo_register_write): New function.
3134 (mips_pseudo_register_read): New function.
3135 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3136 based on the register's type.
3137 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3138 cooked.
3139 (mips_get_saved_register): Simplify. Assert that REGNO is a
3140 pseudo / cooked.
3141 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3142 (mips_register_type): Replace mips_register_virtual_type. Map
3143 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3144 when available.
3145 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3146 that the register is cooked / virtual.
3147 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3148 Only get the extra info when needed.
3149 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3150 (mips32_heuristic_proc_desc): Fetch the cooked register.
3151 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3152 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3153 (mips_print_register): Use gdbarch_register_type, instead of
3154 REGISTER_VIRTUAL_TYPE.
3155 (print_gp_register_row): Use gdbarch_register_type, instead of
3156 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3157 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3158 Print the pseudo / cooked registers.
3159 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3160 Print the pseudo / cooked registers.
3161 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3162 REG_NUM is pseudo / cooked.
3163 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3164 (mips_n32n64_xfer_return_value): Ditto.
3165 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3166 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3167 (mips_register_sim_regno): New function.
3168 (mips_gdbarch_init): Set deprecated_register_byte,
3169 register_group_p, pseudo_register_write, pseudo_register_read,
3170 register_sim_regno, and num_pseudo_regs. Set register_type,
3171 instead of register_virtual_type.
3172 * Makefile.in (mips-tdep.o): Update dependencies.
3173 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3174 REGISTER_VIRTUAL_TYPE.
3175 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3176 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3177 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3178 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3179 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3180
325ed089
DJ
31812003-06-21 Daniel Jacobowitz <[email protected]>
3182
3183 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3184 * cli/cli-cmds.c: Include "gdb_vfork.h".
3185 (shell_escape): Use vfork.
3186
f0e7d0e8
AC
31872003-06-21 Andrew Cagney <[email protected]>
3188
c57bb9fa
AC
3189 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3190 32 bit floating-point register saves.
3191
6e51443a
AC
3192 * frame.h (deprecated_unwind_get_saved_register): Delete.
3193 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3194 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3195 and deprecated_get_next_frame_hack instead of
3196 deprecated_unwind_get_saved_register.
3197
ed183c7c
AC
3198 * mips-tdep.c (mips_dump_tdep): Do not print
3199 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3200
f0e7d0e8
AC
3201 * frame.c (get_frame_register): New function.
3202 (frame_unwind_register_signed): New function.
3203 (get_frame_register_signed): New function.
3204 (frame_unwind_register_unsigned): New function.
3205 (get_frame_register_unsigned): New function.
3206 * frame.h: Add comments on naming schema.
3207 (get_frame_register, frame_unwind_register_signed): Declare.
3208 (get_frame_register_signed, get_frame_register_signed): Declare.
3209 (frame_unwind_register_unsigned): Declare.
3210 (get_frame_register_unsigned): Declare.
3211
2224d941
TR
32122003-06-20 Theodore A. Roth <[email protected]>
3213
3214 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3215
8619218d
TR
32162003-06-20 Theodore A. Roth <[email protected]>
3217
3218 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3219 (avr_read_sp): Ditto.
3220
0b1b50c0
DJ
32212003-06-20 Daniel Jacobowitz <[email protected]>
3222
3223 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3224 * config/arm/nm-linux.h: Likewise.
3225 * config/arm/tm-linux.h: Likewise.
3226 * config/ia64/nm-linux.h: Likewise.
3227 * config/ia64/tm-ia64.h: Likewise.
3228 * config/s390/tm-linux.h: Likewise.
3229 * config/s390/tm-s390.h: Likewise.
3230 * s390-nat.c: Likewise.
3231 * s390-tdep.c: Likewise.
3232
3233 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3234 * config/ia64/linux.mt: Likewise.
3235 * config/m68k/linux.mh: Likewise.
3236 * config/mips/linux.mt: Likewise.
3237 * config/powerpc/linux.mh: Likewise.
3238 * config/sh/linux.mt: Likewise.
3239
c8c18e65
KW
32402003-06-19 Kris Warkentin <[email protected]>
3241
3242 * solib.c (solib_open): Change tests for whether to search
3243 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3244 comments.
3245
dcccef2e
TR
32462003-06-19 Theodore A. Roth <[email protected]>
3247
3248 * avr-tdep.c (avr_frame_address): Delete function.
3249 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3250 set_gdbarch_frame_args_address.
3251
5861a190
AC
32522003-06-19 Andrew Cagney <[email protected]>
3253
3254 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3255 (REGISTER_CONVERT_FROM_TYPE): Delete.
3256 (mips_register_convert_to_type): Delete declaration.
3257 (mips_register_convert_from_type): Delete declaration.
3258 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3259 kernel/.
3260
0274a8ce
MS
32612003-06-19 Michael Snyder <[email protected]>
3262
3263 * linux-nat.h: New file.
3264 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3265 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3266 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3267 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3268 (linux_make_note_section): Iterate over lwps instead of threads.
3269 (linux_do_thread_registers): Use lwp instead of merged pid.
3270 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3271 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3272 Add dependency on linux_nat_h.
3273
adf5f719
TR
32742003-06-19 Theodore A. Roth <[email protected]>
3275
3276 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3277
6766a268
DJ
32782003-06-19 Daniel Jacobowitz <[email protected]>
3279
3280 * varobj.c (get_type, get_target_type): Use check_typedef.
3281
1171114a
DJ
32822003-06-19 Daniel Jacobowitz <[email protected]>
3283
3284 * breakpoint.c (insert_catchpoint): Call internal_error.
3285
adcf68a2
TR
32862003-06-19 Theodore A. Roth <[email protected]>
3287
3288 * avr-tdep.c (avr_push_dummy_code): Delete function.
3289 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3290
ea67f13b
DJ
32912003-06-19 Daniel Jacobowitz <[email protected]>
3292
3293 * arch-utils.c (default_prepare_to_proceed): Remove.
3294 (generic_prepare_to_proceed): Remove.
3295 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3296 (generic_prepare_to_proceed): Remove prototype.
3297 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3298 * gdbarch.c: Regenerate.
3299 * gdbarch.h: Regenerate.
3300 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3301 * hppah-nat.c (hppa_switched_threads): Remove.
3302 * infrun.c (prepare_to_proceed): New static function, copied from
3303 generic_prepare_to_proceed. Remove select_it argument.
3304 (proceed): Call prepare_to_proceed.
3305 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3306 variables.
3307 (ptrace_wait): Don't set the removed variables.
3308 (hppa_switched_threads): Remove.
3309 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3310 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3311 (lin_lwp_prepare_to_proceed): Remove prototype.
3312 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3313 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3314
4add8633
TR
33152003-06-18 Theodore A. Roth <[email protected]>
3316
3317 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3318 trad-frame.h.
3319 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3320 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3321 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3322 (AVR_PROLOGUE_*): Enumerate prologue types.
3323 (struct frame_extra_info): Remove.
3324 (struct avr_unwind_cache): Define.
3325 (avr_write_sp): Delete function.
3326 (avr_read_fp): Ditto.
3327 (avr_init_extra_frame_info): Ditto.
3328 (avr_pop_frame): Ditto.
3329 (avr_frame_saved_pc): Ditto.
3330 (avr_saved_pc_after_call): Ditto.
3331 (avr_push_return_address): Ditto.
3332 (avr_frame_chain): Ditto.
3333 (avr_store_struct_return): Ditto.
3334 (avr_push_arguments): Ditto.
3335 (avr_scan_prologue): Update comments. Changed to set up the info for
3336 cache unwinding. Now returns end of prologue PC.
3337 (avr_skip_prologue): Better handling of functions lacking a prologue
3338 by using avr_scan_prologue.
3339 (avr_scan_arg_moves): New function.
3340 (avr_saved_regs_unwinder): Ditto.
3341 (avr_frame_unwind_cache): Ditto.
3342 (avr_unwind_pc): Ditto.
3343 (avr_frame_this_id): Ditto.
3344 (avr_frame_prev_register): Ditto.
3345 (avr_frame_p): Ditto.
3346 (avr_frame_base_address ): Ditto.
3347 (avr_unwind_dummy_id): Ditto.
3348 (avr_push_dummy_code): Ditto.
3349 (push_stack_item): Ditto.
3350 (pop_stack_item): Ditto.
3351 (avr_push_dummy_call): Ditto.
3352 (struct stack_item): Define.
3353 (avr_frame_unwind): Declare structure.
3354 (avr_frame_base): Ditto.
3355 (avr_gdbarch_init): Remove calls to
3356 set_gdbarch_deprecated_init_frame_pc,
3357 set_gdbarch_deprecated_target_read_fp,
3358 set_gdbarch_deprecated_dummy_write_sp,
3359 set_gdbarch_deprecated_fp_regnum,
3360 set_gdbarch_deprecated_push_arguments,
3361 set_gdbarch_deprecated_push_return_address,
3362 set_gdbarch_deprecated_pop_frame,
3363 set_gdbarch_deprecated_store_struct_return,
3364 set_gdbarch_deprecated_frame_init_saved_regs,
3365 set_gdbarch_deprecated_init_extra_frame_info,
3366 set_gdbarch_deprecated_frame_chain,
3367 set_gdbarch_deprecated_frame_saved_pc,
3368 set_gdbarch_deprecated_saved_pc_after_call.
3369 Add calls to set_gdbarch_push_dummy_call,
3370 set_gdbarch_push_dummy_code,
3371 frame_unwind_append_predicate,
3372 frame_base_set_default,
3373 set_gdbarch_unwind_dummy_id,
3374 set_gdbarch_unwind_pc.
3375 Wrap a long line.
3376
7be04a68
MS
33772003-06-18 Corinna Vinschen <[email protected]>
3378
3379 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3380 registers for H8/300S.
3381 (h8300_print_registers_info): Ditto.
8ffd9b1b 3382 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3383
ae087d01
DJ
33842003-06-18 Daniel Jacobowitz <[email protected]>
3385
3386 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3387 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3388 (lin_lwp_wait): Likewise. Update comments.
3389 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3390 (pull_pid_from_list, linux_record_stopped_pid): New.
3391
07d8f827
SC
33922003-06-17 Stephane Carrez <[email protected]>
3393
3394 * ada-lang.c (scan_discrim_bound): Name first argument.
3395 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3396 declared by ALL_BLOCK_SYMBOLS.
3397
7cb47b14
SC
33982003-06-17 Stephane Carrez <[email protected]>
3399
3400 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3401 ("regcache.h"): Include it.
3402 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3403
6ad8ae5c
DJ
34042003-06-17 Daniel Jacobowitz <[email protected]>
3405
3406 * NEWS: Mention gdbserver detach change and "disconnect" command.
3407 * infcmd.c (disconnect_command): New function.
3408 (_initialize_infcmd): Add ``disconnect'' command.
3409 * remote.c (remote_async_detach): Delete.
3410 (remote_detach): Merge remote_async_detach.
3411 (remote_disconnect): New.
3412 (init_remote_ops): Set to_disconnect.
3413 (init_remote_cisco_ops): Likewise.
3414 (init_remote_async_ops): Likewise. Use remote_detach.
3415 * target.c (cleanup_target): Default to_disconnect.
3416 (update_current_target): Inherit to_disconnect.
3417 (target_disconnect, debug_to_disconnect): New functions.
3418 (setup_target_debug): Set to_disconnect.
3419 * target.h (struct target_ops): Add to_disconnect.
3420 (target_disconnect): Add prototype.
3421
687595f9
DJ
34222003-06-17 Daniel Jacobowitz <[email protected]>
3423
3424 * breakpoint.c (insert_catchpoint): New function.
3425 (insert_breakpoints): Use catch_exceptions to call
3426 insert_catchpoint. Disable catchpoints if they fail to insert.
3427
29239a8f
DJ
34282003-06-17 Daniel Jacobowitz <[email protected]>
3429
3430 * symfile.c (reread_symbols): Clear sym_private.
3431
2cdf3c63
AC
34322003-06-17 Andrew Cagney <[email protected]>
3433
3434 * trad-frame.h (struct frame_info): Add opaque declaration.
3435 * remote-fileio.h (struct cmd_list_element): Add opaque
3436 declaration.
3437 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3438 comments.
3439
cf0e1e0d
DJ
34402003-06-17 Daniel Jacobowitz <[email protected]>
3441
3442 * remote.c (remote_prepare_to_store): Replace call to
3443 deprecated_read_register_bytes with multiple regcache_raw_read
3444 calls.
3445
192cdb19
KW
34462003-06-17 Kris Warkentin <[email protected]>
3447
3448 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3449 (nto_find_and_open_solib): Likewise.
3450 (nto_init_solib_absolute_prefix): Likewise.
3451 (_initialize_nto_tdep): Fix indentation.
3452
89929b45
KW
34532003-06-17 Kris Warkentin <[email protected]>
3454
3455 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3456
46019f27
KW
34572003-06-17 Kris Warkentin <[email protected]>
3458
3459 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3460
1a38736e
JB
34612003-06-17 Jim Blandy <[email protected]>
3462
3463 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3464
3605c34a
TR
34652003-06-16 Theodore A. Roth <[email protected]>
3466
3467 * avr-tdep.c (avr_extract_return_value): New function.
3468 (avr_gdbarch_init): Set extract_return_value method.
3469
870b3035
AC
34702003-06-16 Andrew Cagney <[email protected]>
3471
3472 * frame.h (deprecated_get_next_frame_hack): Declare.
3473 * frame.c (legacy_saved_regs_prev_register): Only require
3474 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3475 there are always saved regs.
3476 (deprecated_generic_get_saved_register): Do not require
3477 DEPRECATED_FRAME_INIT_SAVED_REGS.
3478 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3479 use frame ID unwind instead.
3480 (deprecated_get_next_frame_hack): New function.
3481
63d47a7d
CV
34822003-06-16 Corinna Vinschen <[email protected]>
3483
3484 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3485 (h8300_push_dummy_call): ...this function. Some minor optimization.
3486 (h8300_push_return_address): Remove.
3487 (h8300_gdbarch_init): Remove calls to
3488 set_gdbarch_deprecated_dummy_write_sp,
3489 set_gdbarch_deprecated_push_arguments and
3490 set_gdbarch_deprecated_push_return_address.
3491 Add call to set_gdbarch_push_dummy_call.
3492
4bb1dc5e
CV
34932003-06-16 Corinna Vinschen <[email protected]>
3494
3495 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3496 (E_PSEUDO_EXR_REGNUM): Ditto.
3497 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3498 registers into safe registers.
4bb1dc5e
CV
3499 (h8300_skip_prologue): Check for stm instruction to push registers
3500 used for register variables onto stack.
3501 (gdb_print_insn_h8300): Remove.
3502 (h8300_examine_prologue): Add a comment.
3503 (h8300_register_name): Take pseudo registers into account.
3504 (h8300s_register_name): Ditto.
3505 (h8300sx_register_name): Ditto.
3506 (h8300_print_register): Ditto.
3507 (h8300_print_registers_info): Define "nice" printing order.
3508 (h8300_saved_pc_after_call): Take pseudo registers into account.
3509 (h8300_register_type): Ditto. Return type used for remote connection
3510 when requesting real CCR or EXR register, return actual type when
3511 requesting pseudo CCR or EXR.
3512 (h8300_pseudo_register_read): New function.
3513 (h8300_pseudo_register_write): Ditto.
3514 (h8300_dbg_reg_to_regnum): Ditto.
3515 (h8300s_dbg_reg_to_regnum): Ditto.
3516 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3517 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3518 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3519 set_gdbarch_print_insn architecture dependent.
3520 Call set_gdbarch_pseudo_register_read and
3521 set_gdbarch_pseudo_register_write.
3522 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3523
a59fe496
AC
35242003-06-16 Andrew Cagney <[email protected]>
3525
3526 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3527 * gdbarch.h, gdbarch.c: Re-generate.
3528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3529 * s390-tdep.c (s390_gdbarch_init): Update.
3530 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3531 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3532 * mips-tdep.c (mips_gdbarch_init): Update.
3533 * mcore-tdep.c (mcore_gdbarch_init): Update.
3534 * cris-tdep.c (cris_gdbarch_init): Update.
3535 * infcall.c (call_function_by_hand): Update.
3536 * ia64-tdep.c (ia64_push_arguments): Update comment.
3537 * frame.c (legacy_get_prev_frame): Do not assume
3538 SAVE_DUMMY_FRAME_TOS_P.
3539 * dummy-frame.c (find_dummy_frame): Update comment.
3540
6f4e5a41
AC
35412003-06-16 Andrew Cagney <[email protected]>
3542
3543 * regcache.c (do_cooked_read): Do not use register_valid_p.
3544
72fab697
TR
35452003-06-15 Theodore A. Roth <[email protected]>
3546
3547 * avr-tdep.c (avr_register_type): Remove a blank line.
3548 (avr_scan_prologue): Correct some comments.
3549
e3d8b004
TR
35502003-06-15 Theodore A. Roth <[email protected]>
3551
3552 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3553 prologue types.
8ffd9b1b 3554 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3555 option.
3556 Add code to scan -mcall-prologues for mega devices.
3557
866b76ea
TR
35582003-06-15 Theodore A. Roth <[email protected]>
3559
3560 * avr-tdep.c (avr_register_byte): Delete function.
3561 (avr_register_raw_size): Delete function.
3562 (avr_register_virtual_size): Delete function.
3563 (avr_register_virtual_type): Delete function.
3564 (avr_register_type): New function.
3565 (avr_address_to_pointer): Remove unused code.
3566 (avr_read_fp): Need to read FP as two separate bytes due to change to
3567 avr_register_type() usage.
3568 (avr_gdbarch_init): Don't set deprecated_register_size.
3569 Don't set deprecated_register_bytes.
3570 Don't set deprecated_register_byte.
3571 Don't set deprecated_register_raw_size.
3572 Don't set deprecated_max_register_raw_size.
3573 Don't set deprecated_register_virtual_size.
3574 Don't set deprecated_max_register_virtual_size.
3575 Don't set deprecated_register_virtual_type.
3576 Set register_type method.
3577
3993f6b1
DJ
35782003-06-15 Daniel Jacobowitz <[email protected]>
3579
3580 * Makefile.in (linux-nat.o): Add rule.
3581 * linux-nat.c: New file.
3582 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3583 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3584 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3585 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3586 * config/arm/linux.mh (NATDEPFILES): Likewise.
3587 * config/i386/linux.mh (NATDEPFILES): Likewise.
3588 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3589 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3590 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3591 * config/mips/linux.mh (NATDEPFILES): Likewise.
3592 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3593 * config/s390/s390.mh (NATDEPFILES): Likewise.
3594 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3595
786a90bb
MK
35962003-06-15 Mark Kettenis <[email protected]>
3597
3598 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3599 replace out-of-date comment.
3600
3bd3f01e
AC
36012003-06-15 Andrew Cagney <[email protected]>
3602
3603 * rdi-share/host.h (Fail): Change to a varargs function.
3604 * remote-rdi.c (Fail): Update.
8ffd9b1b 3605
de5b9bb9
MK
36062003-06-15 Mark Kettenis <[email protected]>
3607
3608 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3609 (i386_convert_register_p, i386_register_to_value,
3610 i386_register_from_value): Handle types longer than 8 bytes.
3611
d532c08f
MK
36122003-06-15 Mark Kettenis <[email protected]>
3613
3614 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3615 Move floating-point code to new function in i387-tdep.c.
3616 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3617 New functions containing code moved here from i386-tdep.c.
3618 * i387-tdep.h: Add opaque declaration for `struct type'.
3619 (i387_register_to_value, i387_value_to_register): New prototypes.
3620 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3621 (x86_64_init_abi): Set convert_register_p, register_to_value and
3622 value_to_register here.
8ffd9b1b 3623
42c466d7
AC
36242003-06-14 Andrew Cagney <[email protected]>
3625
3626 * mips-tdep.c (mips_register_to_value): Make static.
3627 (mips_value_to_register): Make static.
3628 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3629 * ia64-tdep.c (ia64_register_raw_size): Make static.
3630 (ia64_register_virtual_size): Make static.
3631 (ia64_register_byte): Make static.
3632 * i387-tdep.c: Include "i387-tdep.h".
3633 (print_387_control_word): Delete function.
3634 (print_387_status_word): Delete function.
3635 (print_387_status_bits): Delete function.
3636 (print_387_control_bits): Delete function.
3637 * Makefile.in (i387-tdep.o): Update dependencies.
3638 * rdi-share/host.h (Fail): Declare.
3639 * remote-rdi.c (Fail): Update to match declaration.
3640
2a9cda49
AC
36412003-06-14 Andrew Cagney <[email protected]>
3642
3643 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3644 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3645 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3646 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3647 * README: Delete reference to remote-array.
3648 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3649 (remote-array.o): Delete target.
3650 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3651 * remote-array.c: Delete file.
3652
ff2e87ac
AC
36532003-06-14 Andrew Cagney <[email protected]>
3654 Mark Kettenis <[email protected]>
3655
3656 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3657 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3658 parameter with "frame".
3659 * gdbarch.h, gdbarch.c: Re-generate.
3660 * frame.h (put_frame_register): Declare.
3661 * frame.c (put_frame_register): New function.
3662 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3663 (legacy_register_to_value): Rewrite, use "frame" to get the
3664 register value.
3665 (legacy_value_to_register): Rewrite, use "frame" to find the
3666 register's location before storing.
3667 * arch-utils.h (legacy_convert_register_p): Update.
3668 (legacy_register_to_value, legacy_value_to_register): Update.
3669 * findvar.c (value_from_register): Rewrite, eliminate use of
3670 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3671 "frame" to REGISTER_TO_VALUE.
3672 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3673 lval_reg_frame_relative + lval_register branch of the switch. Do
3674 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3675 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3676 I386_EDI_REGNUM): New defines.
3677 (i386_next_regnum, i386_convert_register_p,
3678 i386_register_to_value, i386_value_to_register): New functions.
3679 (i386_register_convertible, i386_register_convert_to_virtual,
3680 i386_convert_to_raw): Remove functions.
3681 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3682 value_to_register instead of register_convertible,
3683 register_convert_to_virtual and register_convert_to_raw.
3684 * mips-tdep.c (mips_convert_register_p): New function.
3685 (mips_value_to_register): Replace mips_register_convert_from_type.
3686 (mips_register_to_value): Replace mips_register_convert_to_type.
3687 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3688 register_to_value.
3689 * alpha-tdep.c (alpha_convert_register_p): Update.
3690 (alpha_value_to_register): Update, store the register.
3691 (alpha_register_to_value): Update, fetch the register.
3692
98be1e77
TR
36932003-06-14 Theodore A. Roth <[email protected]>
3694
3695 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3696 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3697 Don't set deprecated_call_dummy_words.
3698 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3699 Don't set remote_translate_xfer_address.
3700 (avr_io_reg_read_command): Remove commented out debug printf.
3701 Wrap a long line.
3702
57bc6122
TR
37032003-06-14 Theodore A. Roth <[email protected]>
3704
3705 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3706 causes gdb to seg fault.
3707
eb01fc62
DJ
37082003-06-14 Daniel Jacobowitz <[email protected]>
3709
3710 * sparc-nat.c (fetch_inferior_registers): Correct
3711 a reference to "registers".
3712
3b3e6bee
DJ
37132003-06-14 Jeroen Dekkers <[email protected]>
3714
3715 * Makefile.in (exc_request_U_h): Define
3716 (exc_request_S_h): Likewise.
3717 (msg_reply_S_h): Likewise.
3718 (msg_U_h): Likewise.
3719 (notify_S_h): Likewise.
3720 (process_reply_S_h): Likewise.
3721 (gnu-nat.o): Depend on gdb_obstack_h
3722 * gnu-nat.c: Include "gdb_obstack.h".
3723
b8de8283
AC
37242003-06-13 Andrew Cagney <[email protected]>
3725
3726 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3727 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3728
f3be58bc
AC
37292003-06-13 Andrew Cagney <[email protected]>
3730
3731 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3732 when deprecated REGISTER macros can be deleted.
3733 * gdbarch.h, gdbarch.c: Re-generate.
3734
4c0122c8
JB
37352003-06-13 Jim Blandy <[email protected]>
3736
3737 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3738 Linux entry point symbols for _dl_debug_state, too.
3739
3e210248
AC
37402003-06-13 Andrew Cagney <[email protected]>
3741
3742 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3743 available, do not use the FP register, and always save the TOS.
3744 * dummy-frame.c (dummy_frame_this_id): Do not assert
3745 SAVE_DUMMY_FRAME_TOS.
3746 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3747 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3748 (i386_push_dummy_call): Add 8 to the returned SP.
3749 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3750 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3751 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3752 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3753 (x86_64_push_dummy_call): Return "sp + 16".
3754 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3755 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3756 save_dummy_frame_tos.
3757
0b65af49
JB
37582003-06-13 Jim Blandy <[email protected]>
3759
3760 * frv-tdep.c (frv_use_struct_convention): Delete static
3761 declaration for function deleted in my change of 2003-06-12.
3762
4ea2465e
TR
37632003-06-13 Theodore A. Roth <[email protected]>
3764
3765 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3766 (avr_pointer_to_address): Shift code addrs left 1 bit.
3767 (avr_convert_from_func_ptr_addr): Delete function since operation is
3768 better handled by avr_address_to_pointer and avr_pointer_to_address.
3769 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3770
1581182a
MK
37712003-06-13 Mark Kettenis <[email protected]>
3772
3773 From Kelley Cook <[email protected]>:
3774 * configure.host: Accept i[34567]86 variants.
3775 * configure.tgt: Likewise.
3776 * nlm/configure.in: Likewise.
3777 * nlm/configure: Regenerated.
3778
7aa1783e
RE
37792003-06-13 Richard Earnshaw <[email protected]>
3780
3781 * arm-tdep.c (solib-svr4.h): Dont' include it.
3782 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3783 * arm-linux-tdep.c: ... here. Make static.
3784 (arm_linux_init_abi): Register it.
3785 (solib-svr4.h): Include it.
3786 * Makefile.in: Update dependencies.
3787 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3788 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3789
0261a0d0
CV
37902003-06-13 Corinna Vinschen <[email protected]>
3791
3792 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3793 indicate registers used for return values.
3794 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3795 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3796 members.
3797 (h8300_init_extra_frame_info): Ditto.
3798 (h8300_frame_locals_address): Removed.
3799 (h8300_frame_args_address): Removed.
3800 (h8300_extract_return_value): Use new regcache structure. Only care
3801 for 16 bit CPUs.
3802 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3803 (h8300_store_return_value): Use new regcache structure. Only care
3804 for 16 bit CPUs.
3805 (h8300h_store_return_value): Same function for 32 bit CPUs.
3806 (h8300_store_struct_return): Removed.
3807 (h8300_extract_struct_value_address): Use new regcache structure.
3808 (h8300h_extract_struct_value_address): Removed.
3809 (h8300_push_dummy_code): New function.
3810 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3811 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3812 set_gdbarch_store_return_value architecture dependent.
3813 Call set_gdbarch_push_dummy_code and
3814 set_gdbarch_extract_struct_value_address.
3815 Remove calls to set_gdbarch_frame_args_address,
3816 set_gdbarch_frame_locals_address,
3817 set_gdbarch_deprecated_store_struct_return,
3818 set_gdbarch_deprecated_extract_return_value,
3819 set_gdbarch_deprecated_extract_struct_value_address,
3820 set_gdbarch_deprecated_call_dummy_words and
3821 set_gdbarch_deprecated_sizeof_call_dummy_words.
3822
055c394a
CV
38232003-06-13 Corinna Vinschen <[email protected]>
3824
3825 * h8300-tdep.c (h8300_register_byte): Remove.
3826 (h8300h_register_byte): Remove.
3827 (h8300_register_virtual_type): Remove. Substitute by...
3828 (h8300_register_type): New function.
3829 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3830 (h8300h_extract_struct_value_address): Ditto.
3831 (h8300_gdbarch_init): Drop calls to
3832 set_gdbarch_deprecated_register_byte and
3833 set_gdbarch_deprecated_register_virtual_type.
3834 Add call to set_gdbarch_register_type.
3835
9c04cab7
AC
38362003-06-13 Andrew Cagney <[email protected]>
3837
3838 * gdbarch.sh: Update comments on registers.
3839 (deprecated_register_byte): Rename register_byte.
3840 (deprecated_register_raw_size): Rename register_raw_size.
3841 (deprecated_register_virtual_size): Rename register_virtual_size.
3842 (deprecated_register_virtual_type): Rename register_virtual_type.
3843 * gdbarch.h, gdbarch.c: Re-generate.
3844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3845 * vax-tdep.c (vax_gdbarch_init): Update.
3846 * v850-tdep.c (v850_gdbarch_init): Update.
3847 * sparc-tdep.c (sparc_gdbarch_init): Update.
3848 * sh-tdep.c (sh_gdbarch_init): Update.
3849 * s390-tdep.c (s390_gdbarch_init): Update.
3850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3851 * ns32k-tdep.c: Update.
3852 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3853 * mips-tdep.c (mips_gdbarch_init): Update.
3854 * mcore-tdep.c (mcore_gdbarch_init): Update.
3855 * m68k-tdep.c (m68k_gdbarch_init): Update.
3856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3857 * ia64-tdep.c (ia64_gdbarch_init): Update.
3858 * hppa-tdep.c (hppa_gdbarch_init): Update.
3859 * h8300-tdep.c (h8300_gdbarch_init): Update.
3860 * frv-tdep.c (frv_gdbarch_init): Update.
3861 * cris-tdep.c (cris_gdbarch_init): Update.
3862 * avr-tdep.c (avr_gdbarch_init): Update.
3863 * alpha-tdep.c (alpha_gdbarch_init): Update.
3864 * arm-tdep.c (arm_gdbarch_init): Update.
3865
b060cbea
AC
38662003-06-13 Andrew Cagney <[email protected]>
3867
3868 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3869 mips_o32_use_struct_convention with always_use_struct_convention.
3870
0fc9922a
DC
38712003-06-12 David Carlton <[email protected]>
3872
3873 * cp-namespace.c (cp_set_block_scope): Comment out
3874 processing_has_namespace_info branch.
3875
1fd35568
JB
38762003-06-12 Jim Blandy <[email protected]>
3877
f470a70a
JB
3878 Recognize and skip 64-bit PowerPC Linux linkage functions.
3879 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3880 insn_pattern, insns_match_pattern, d_field, ds_field): New
3881 functions, macros, and types for working with PPC instructions.
3882 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3883 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3884 ppc64_skip_trampoline_code): New functions, variables, and macros
3885 for recognizing and skipping linkage functions.
3886 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3887 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3888
49ff75ad
JB
3889 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3890 register offsets for both the 32- and 64-bit interfaces.
3891
bd918c83
JB
3892 Actually finish the job started by my change of 2003-05-29.
3893 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3894 other #definition of this.
3895 (ppc_linux_skip_trampoline_code): Remove declaration.
3896 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3897 static.
3898 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3899 method for GDBARCH.
3900
3901 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3902 'long' on ppc64-*-linux*.
3903
f8c59253
JB
3904 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3905 isn't #defined, assume the register doesn't exist: act as if
3906 tdep->ppc_mq_regnum were -1.
3907
8fbb30b1
JB
3908 * configure.host, configure.tgt: Add entries for
3909 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3910 powerpc/linux.mt.
3911 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3912 New files.
3913
1fd35568
JB
3914 * arch-utils.c (always_use_struct_convention): New function.
3915 * arch-utils.h (always_use_struct_convention): New prototype.
3916 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3917 (alpha_gdbarch_init): Register always_use_struct_convention,
3918 instead of alpha_use_struct_convention.
3919 * cris-tdep.c (cris_use_struct_convention): Delete.
3920 (cris_gdbarch_init): Register always_use_struct_convention,
3921 instead of cris_use_struct_convention.
3922 * frv-tdep.c (frv_use_struct_convention): Delete.
3923 (frv_gdbarch_init): Register always_use_struct_convention,
3924 instead of frv_use_struct_convention.
3925 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3926 (h8300_gdbarch_init): Register always_use_struct_convention,
3927 instead of h8300_use_struct_convention.
e3305dd9 3928 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3929 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3930 instead of mips_o32_use_struct_convention.
3931
e14e6e9c
AC
39322003-06-12 Andrew Cagney <[email protected]>
3933
3934 * wince.c: Include "mips-tdep.h".
3935 * mips-tdep.h (mips_next_pc): Declare.
3936 * mcore-tdep.c: Make more local functions static.
3937 * Makefile.in (wince.o): Update dependencies.
3938
2335f48e
DC
39392003-06-12 David Carlton <[email protected]>
3940
3941 * symtab.c (lookup_symbol_aux_minsyms): Replace
3942 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3943 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3944 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3945 SYMBOL_NATURAL_NAME.
3946
f70a7d61
AS
39472003-06-12 Andreas Schwab <[email protected]>
3948
3949 * Makefile.in (tuiDisassem.o): Update dependencies.
3950
b6429628
DC
39512003-06-12 David Carlton <[email protected]>
3952
3953 * symtab.h: Delete declaration of make_symbol_overload_list.
3954 Add declaration of lookup_partial_symbol.
3955 * symtab.c (remove_params): Move to cp-support.c.
3956 (overload_list_add_symbol, make_symbol_overload_list)
3957 (sym_return_val_size, sym_return_val_index): Ditto.
3958 (lookup_partial_symbol): Make extern.
3959 * cp-support.h: Add declaration of make_symbol_overload_list.
3960 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3961 symtab.h, and block.h.
3962 (remove_params): Move here from symtab.c.
3963 (overload_list_add_symbol, make_symbol_overload_list)
3964 (sym_return_val_size, sym_return_val_index): Ditto.
3965 * valops.c: Include cp-support.h.
3966 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3967 frame_h, and block_h.
3968 (valops.o): Depend on cp_support_h.
3969
084edea5
CV
39702003-06-12 Corinna Vinschen <[email protected]>
3971
3972 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3973 substitute by NUM_REGS throughout.
3974 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3975 (h8300s_register_name): New function for H8S registers.
3976 (h8300sx_register_name): Ditto for H8SX registers.
3977 (h8300_print_register): Revise register printing, avoid depending
3978 on 32 bit long.
0261a0d0 3979 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3980 (h8300h_register_byte): New function for any other architecture.
3981 (h8300_register_raw_size): Remove.
3982 (h8300_register_virtual_type): Revise to return actually useful
3983 type.
3984 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3985 (h8300h_extract_struct_value_address): New function for any other
3986 architecture.
3987 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3988 set_gdbarch_register_name, set_gdbarch_register_byte,
3989 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3990 Remove calls to set_gdbarch_deprecated_register_size,
3991 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3992 set_gdbarch_deprecated_max_register_raw_size,
3993 set_gdbarch_register_virtual_size and
3994 set_gdbarch_deprecated_max_register_virtual_size entirely.
3995 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3996 set_gdbarch_long_double_bit.
3997
06194148
JJ
39982003-06-11 Jeff Johnston <[email protected]>
3999
8ffd9b1b
AJ
4000 * doublest.c (convert_doublest_to_floatformat): When dealing
4001 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4002 processing a full 32 bits of mantissa.
4003
de4f826b
DC
40042003-06-11 David Carlton <[email protected]>
4005
4006 * dictionary.h: New.
4007 * dictionary.c: New.
4008 * block.h: Add opaque declaration for struct dictionary.
4009 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4010 'sym' members.
4011 (BLOCK_DICT): New macro.
4012 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4013 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4014 BLOCK_SHOULD_SORT.
4015 (ALL_BLOCK_SYMBOLS): Update definition.
4016 * Makefile.in (SFILES): Add dictionary.c.
4017 (dictionary_h): New.
4018 (COMMON_OBS): Add dictionary.o.
4019 (dictionary.o): New.
4020 (ada-lang.o): Depend on dictionary_h.
4021 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4022 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4023 (mi-cmd-stack.o): Ditto.
4024 (gdbtk-cmds.o): Update dependencies.
4025 (gdbtk-stack.o): Ditto.
4026 * ada-lang.c: Include dictionary.h.
4027 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4028 (fill_in_ada_prototype, debug_print_block): Ditto.
4029 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4030 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4031 'is_sorted'.
4032 * mdebugread.c: Include dictionary.h.
4033 (struct parse_stack): Delete 'maxsyms' member.
4034 (parse_symbol): Update calls to new_block. Delete calls to
4035 shrink_block. Use dictionary methods.
4036 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4037 Update calls to new_symtab. Don't maintain maxsyms data.
4038 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4039 (add_symbol): Just call dict_add_symbol.
4040 (new_symtab): Delete 'maxsyms' argument.
4041 (new_symtab): Update calls to new_block.
4042 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4043 (shrink_block): Delete function.
4044 (fixup_sigtramp): Update call to new_block. Add symbol via
4045 dict_add_symbol.
4046 * jv-lang.c: Include dictionary.h.
4047 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4048 appropriately. Set class_symtab->free_func. Make sure the
4049 blockvector is big enough to hold two blocks.
4050 (add_class_symtab_symbol): Use dictionary methods.
4051 (free_class_block): New function.
4052 (type_from_class): Replace explicit iteration by
4053 ALL_BLOCK_SYMBOLS.
4054 * symtab.h (struct symtab): Replace 'free_ptr' method by
4055 'free_func'.
4056 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4057 sort_symtab_syms.
4058 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4059 sort_symtab_syms.
4060 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4061 Include dictionary.h.
4062 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4063 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4064 sort_symtab_syms.
4065 * objfiles.c: Include dictionary.h.
4066 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4067 * buildsym.c: Include dictionary.h.
4068 (finish_block): Use dictionary methods.
4069 (end_symtab): Set free_func to NULL, not free_ptr.
4070 * tracepoint.c: Include dictionary.h.
4071 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4072 (scope_info): Ditto.
4073 * stack.c: Include dictionary.h.
4074 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4075 (print_block_frame_labels, print_frame_arg_vars)
4076 (print_frame_args): Ditto.
4077 * symmisc.c (free_symtab_block): Use dictionary methods.
4078 (dump_symtab): Ditto.
4079 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4080 Include dictionary.h.
4081 * symfile.h: Delete declarations of sort_block_syms,
4082 sort_symtab_syms.
4083 * symfile.c (sort_block_syms): Delete.
4084 (sort_symtab_syms): Delete.
4085 * symtab.c: Include dictionary.h.
4086 (lookup_block_symbol): Use dictionary iterators.
4087 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4088 (search_symbols, make_symbol_completion_list): Ditto.
4089 (make_symbol_overload_list): Ditto.
4090 * valops.c (value_of_local): Use dict_empty.
4091 Include dictionary.h.
4092
a31f978c
JB
40932003-06-11 J. Brobecker <[email protected]>
4094
4095 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4096
526e70c0
DC
40972003-06-11 David Carlton <[email protected]>
4098
4099 * block.h (BLOCK_SHOULD_SORT): Delete.
4100 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4101 blocks.
4102 * ada-lang.c (ada_add_block_symbols): Ditto.
4103 * symfile.c (sort_block_syms): Delete.
4104 (sort_symtab_syms): Ditto.
4105 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4106 declarations.
4107 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4108 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4109 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4110 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4111 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4112 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4113 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4114
33c08150
JJ
41152003-06-11 Jeff Johnston <[email protected]>
4116
8ffd9b1b 4117 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4118 bits to 128.
4119
781a750d
AC
41202003-06-11 Andrew Cagney <[email protected]>
4121
4122 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4123 REGISTER_CONVERTIBLE.
4124 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4125 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4126 * gdbarch.h, gdbarch.c: Re-generate.
4127 * arch-utils.h (deprecated_register_convertible_not): Rename
4128 generic_register_convertible_not.
4129 * arch-utils.c (deprecated_register_convertible_not): Rename
4130 generic_register_convertible.
4131 (legacy_convert_register_p, legacy_register_to_value): Update.
4132 * sh-tdep.c (sh64_push_arguments): Update.
4133 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4134 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4135 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4136 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4137 * arch-utils.c (legacy_value_to_register): Update.
4138 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4139 (rs6000_register_convert_to_raw): Make parameter "from" const.
4140 * mips-tdep.c (mips_gdbarch_init): Update.
4141 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4142 * infcmd.c (default_print_registers_info): Update.
4143 * ia64-tdep.c (ia64_gdbarch_init): Update.
4144 (ia64_register_convert_to_raw): Make parameter "from" const.
4145 * i386-tdep.c (i386_gdbarch_init): Update.
4146 (i386_register_convert_to_raw): Update.
4147
cd90e54f
AC
41482003-06-11 Andrew Cagney <[email protected]>
4149
4150 * remote-fileio.c: Include "remote-fileio.h".
4151 * Makefile.in (remote-fileio.o): Update dependencies.
4152 (remote_fileio_h): Fix typo.
4153
a78f21af
AC
41542003-06-11 Andrew Cagney <[email protected]>
4155
4156 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4157 (xstormy16_save_dummy_frame_tos): Make static.
4158 (_initialize_xstormy16_tdep): Add declaration.
4159 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4160 * v850-tdep.c: Make local functions static.
4161 (_initialize_v850_tdep): Add declaration.
4162 * sparc-tdep.c: Make local functions static.
4163 (_initialize_sparc_tdep): Add declaration.
4164 * sh-tdep.c: Make local functions static.
4165 (_initialize_sh_tdep): Add declaration.
4166 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4167 * s390-tdep.c: Make local functions static.
4168 (_initialize_s390_tdep): Add declaration.
4169 * dbxread.c (find_stab_function_addr): Make static.
4170 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4171 * ocd.c (_initialize_remote_ocd): Add declaration.
4172 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4173 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4174 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4175 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4176 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4177 * remote-array.c (_initialize_array): Add declaration.
4178 (_initialize_remote_monitors): Add declaration.
4179 * remote-mips.c: Make local functions static.
4180 (_initialize_remote_mips): Add declaration.
4181 * mcore-tdep.c: Make all local functions static.
4182 (_initialize_mcore_tdep): Add declaration.
4183 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4184 * abug-rom.c (_initialize_abug_rom): Add declaration.
4185 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4186 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4187 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4188 * remote-est.c (_initialize_est): Add declaration.
4189 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4190 (m68hc11_call_dummy_address): Make static.
4191 * ia64-tdep.c: Make local functions static.
4192 (_initialize_ia64_tdep): Add declaration.
4193 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4194 * monitor.c (monitor_wait_filter): Make static.
4195 (_initialize_remote_monitors): Add declaration.
4196 * remote-hms.c (_initialize_remote_hms): Add declaration.
4197 * remote-e7000.c (fetch_regs_from_dump): Make static.
4198 (expect_n): Make static.
4199 (_initialize_remote_e7000): Add declaration.
4200 * ser-e7kpc.c: Always include "defs.h".
4201 (_initialize_ser_e7000pc): Add declaration.
4202 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4203 * cris-tdep.c: Make all but one function static.
4204 (_initialize_cris_tdep): Add declaration.
4205 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4206 * solib.c (update_solib_list): Make static.
4207 (_initialize_solib): Add declaration.
4208 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4209 (_initialize_avr_tdep): Add declaration.
4210 * remote-rdi.c (voiddummy): Make static.
4211 (_initialize_remote_rdi): Add declaration.
4212 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4213 * remote-rdp.c (send_rdp): Make static.
4214 (_initialize_remote_rdp): Add declaration.
4215 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4216
cbcdb1f5
CV
42172003-06-11 Corinna Vinschen <[email protected]>
4218
4219 * remote-fileio.c: Make ari happy.
4220
a191ea8d
JB
42212003-06-10 J. Brobecker <[email protected]>
4222
4223 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4224 fetching the trailing bytes of the buffer we are about to write.
4225
0ef75e11
AC
42262003-06-10 Andrew Cagney <[email protected]>
4227
4228 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4229 * Makefile.in (remote-fileio.o): Update dependencies.
4230 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4231 include <setjmp.h>, or <sys/types.h> conditional on USG.
4232 (remote_fio_jmp_buf): Delete global variable.
4233
449092f6 42342003-06-10 Corinna Vinschen <[email protected]>
559fa028 4235 Martin M. Hunt <[email protected]>
449092f6 4236
559fa028
AC
4237 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4238 (SFILES): Add remote-fileio.c.
4239 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4240 dependencies for building remote.o.
449092f6
CV
4241 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4242 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4243 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4244 static storage class.
4245 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4246 'F' packet.
4247 (_initialize_remote): Call initialize_remote_fileio().
4248 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4249 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4250 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4251 (captured_main): Initialize new ui_files.
4252 * ui-file.c: Add read and fgets input functions.
4253 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4254 (null_file_read): New function.
4255 (ui_file_read): New function.
4256 (set_ui_file_read): New function.
4257 (stdio_file_read): New function.
4258 * ui-file.h: New type ui_file_read_ftype.
4259 (set_ui_file_read): Declare.
4260 (ui_file_read): Declare.
4261
248de703
AC
42622003-06-09 Andrew Cagney <[email protected]>
4263
4264 * frame.h (deprecated_unwind_get_saved_register): Rename
4265 generic_unwind_get_saved_register, update comments.
4266 * mips-tdep.c (mips_get_saved_register): Update.
4267 * frame.c (deprecated_unwind_get_saved_register): Update.
4268
0ed8aa57
AC
42692003-06-09 Andrew Cagney <[email protected]>
4270
4271 * vax-tdep.c (vax_frame_locals_address): Delete function.
4272 (vax_gdbarch_init): Do not set frame_locals_address.
4273 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4274 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4275 * s390-tdep.c (s390_frame_args_address): Delete function.
4276 (s390_gdbarch_init): Do not set frame_args_address or
4277 frame_locals_address.
4278 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4279 (ns32k_gdbarch_init): Do not set frame_locals_address.
4280 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4281 (hppa_frame_locals_address): Delete function.
4282 (hppa_gdbarch_init): Do not set frame_args_address, or
4283 frame_locals_address.
4284 * arm-tdep.c (arm_frame_args_address): Delete.
4285 (arm_frame_locals_address): Delete.
4286 (arm_gdbarch_init): Do not set frame_args_address, or
4287 frame_locals_address.
4288
983a287a
AC
42892003-06-09 Andrew Cagney <[email protected]>
4290
4291 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4292 * gdbarch.h, gdbarch.c: Re-generate.
4293 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4294 * arch-utils.c (frame_num_args_unknown): Delete function.
4295 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4296 (frame_info): Use FRAME_NUM_ARGS_P.
4297 * arm-tdep.c (arm_frame_num_args): Delete function.
4298 (arm_gdbarch_init): Do not set frame_num_args.
4299 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4300 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4301 (hppa_gdbarch_init): Do not set frame_num_args.
4302 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4304 frame_num_args to default frame_num_args_unknown.
4305 * v850-tdep.c (v850_gdbarch_init): Ditto.
4306 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4307 * sh-tdep.c (sh_gdbarch_init): Ditto.
4308 * s390-tdep.c (s390_gdbarch_init): Ditto.
4309 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4310 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4311 * mips-tdep.c (mips_gdbarch_init): Ditto.
4312 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4313 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4315 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4316 * i386-tdep.c (i386_gdbarch_init): Ditto.
4317 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4318 * frv-tdep.c (frv_gdbarch_init): Ditto.
4319 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4320 * cris-tdep.c (cris_gdbarch_init): Ditto.
4321 * avr-tdep.c (avr_gdbarch_init): Ditto.
4322 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4323
8d3b0994
AC
43242003-06-09 Andrew Cagney <[email protected]>
4325
4326 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4327 (print_frame_args): Moved to "stack.c".
4328 * stack.c: Include "gdb_assert.h".
4329 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4330 (print_frame_args): Moved from "printcmd.c".
4331 * frame.h (print_frame_args): Delete declaration.
4332 * Makefile.in (stack.o): Update dependencies.
4333
25e3a86b
AC
43342003-06-08 Andrew Cagney <[email protected]>
4335
4336 * frame.c (get_prev_frame): Remove reference to
4337 frame_args_address_correct in comments.
4338 * frame-base.c (default_frame_args_address): Delete code
4339 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4340 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4341 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4342 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4343 (vax_frame_args_address_correct): Delete declaration.
4344
a9e5fdc2
AC
43452003-06-08 Andrew Cagney <[email protected]>
4346
4347 * gdbarch.sh (UNWIND_SP): Add.
4348 * gdbarch.h, gdbarch.c: Re-generate.
4349 * frame.c (frame_sp_unwind): New function.
4350 (get_frame_sp): New function.
4351 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4352 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4353 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4354 value.
4355 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4356 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4357
8983bd83
AC
43582003-06-08 Andrew Cagney <[email protected]>
4359
7fec2c59
AC
4360 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4361 REMOTE_BREAKPOINT.
4362 * remote.c: Update.
4363 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4364 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4365 * config/m68k/tm-sun3.h: Update.
4366 * config/m68k/tm-m68klynx.h: Update.
4367 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4368
8983bd83
AC
4369 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4370 trad_frame". Update comments.
4371 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4372 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4373 (trad_frame_register_value, trad_frame_prev_register): Update.
4374
b9362cc7
AC
43752003-06-08 Andrew Cagney <[email protected]>
4376
4377 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4378 from GCC's acinclude.m4.
4379 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4380 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4381 * main.c (error_init): Delete declaration.
4382 * defs.h (error_init): Declare.
4383 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4384 (rs6000_convert_from_func_ptr_addr): Make static.
4385 (_initialize_rs6000_tdep): Add declaration.
4386 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4387 (show_commands, set_verbose, show_history): Delete declaration.
4388 * top.h (set_verbose): Add declaration.
4389 (show_history, set_history, show_commands): Add declaration.
4390 (do_restore_instream_cleanup): Add declaration.
4391 * objc-lang.c (specialcmp): Make static.
4392 (print_object_command): Make static.
4393 (find_objc_msgsend): Make static.
4394 (find_objc_msgcall_submethod_helper): Make static.
4395 (find_objc_msgcall_submethod): Make static.
4396 (_initialize_objc_language): Add declaration.
4397 (find_implementation_from_class): Make static.
4398 (find_implementation): Make static.
4399 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4400 * objc-lang.h (lookup_struct_typedef): Add declaration.
4401 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4402 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4403 (do_restore_user_call_depth): Make static.
4404 (do_restore_instream_cleanup): Delete declaration.
4405 (dont_repeat): Delete declaration.
4406 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4407 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4408 * reggroups.c (_initialize_reggroup): Add declaration.
4409 * cp-support.c (_initialize_cp_support): Add declaration.
4410 * cp-abi.c (_initialize_cp_abi): Add declaration.
4411 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4412 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4413 (_initialize_gnu_v3_abi): Add declaration.
4414 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4415 (_initialize_gnu_v2_abi): Add declaration.
4416 * frame-base.c (_initialize_frame_base): Add declaration.
4417 * doublest.c (floatformat_from_length): Make static.
4418 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4419 * frame.c (create_sentinel_frame): Make static.
4420 (_initialize_frame): Add declaration.
4421 * top.c (do_catch_errors): Make static.
4422 (gdb_rl_operate_and_get_next_completion): Make static.
4423 * typeprint.c: Include "typeprint.h".
4424 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4425 (sentinel_frame_this_id): Make static.
4426 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4427 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4428 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4429 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4430 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4431 * maint.c (maintenance_print_architecture): Make static.
4432 * signals/signals.c (_initialize_signals): Add declaration.
4433 * std-regs.c (_initialize_frame_reg): Add declaration.
4434 * jv-exp.y (push_variable): ISO C definition.
4435 (push_qualified_expression_name): Ditto.
4436 * memattr.c (_initialize_mem): Add declaration.
4437 * remote.c (remote_check_watch_resources): Make static.
4438 (remote_stopped_by_watchpoint): Make static.
4439 (remote_stopped_data_address): Make static.
4440 * d10v-tdep.c (nr_dmap_regs): Make static.
4441 (a0_regnum): Make static.
4442 (d10v_frame_unwind_cache): Make static.
4443 (d10v_frame_p): Make static.
4444 * osabi.c (show_osabi): Make static.
4445 (_initialize_gdb_osabi): Add extern declaration.
4446 * gdbtypes.c (make_qualified_type): Make static.
4447 (safe_parse_type): Make static.
4448 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4449 * macrotab.c (macro_bcache_free): Make static.
4450 * interps.c (interp_set_quiet): Make static.
4451 (interpreter_exec_cmd): Make static.
4452 * stack.h (select_frame_command): New file.
4453 * stack.c: Include "stack.h".
4454 (select_frame_command_wrapper): Delete function.
4455 (select_frame_command): Make global.
4456 * infcall.c: Include "infcall.h".
4457 * linespec.c: Include "linespec.h".
4458 * symfile.c (sections_overlap): Make static.
4459 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4460 * charset.c (_initialize_charset): Add missing prototype.
4461 * regcache.c (init_legacy_regcache_descr): Make static.
4462 (do_regcache_xfree): Make static.
4463 (regcache_xfer_part): Make static.
4464 (_initialize_regcache): Add missing prototype.
4465 * breakpoint.c (parse_breakpoint_sals): Make static.
4466 (breakpoint_sals_to_pc): Make static.
4467 * interps.h (clear_interpreter_hooks): ISO C declaration.
4468 * Makefile.in (stack_h): Define.
4469 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4470 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4471
a0f267c7
AC
44722003-06-08 Andrew Cagney <[email protected]>
4473
4474 * Makefile.in (d10v-tdep.o): Update dependencies.
4475 (SFILES): Add trad-frame.c.
4476 (trad_frame_h): Define.
4477 (COMMON_OBS): Add trad-frame.o.
4478 (trad-frame.o): Specify dependencies.
4479 * d10v-tdep.c: Include "trad-frame.h".
4480 (saved_regs_unwinder): Delete function.
4481 (d10v_frame_prev_register): Use trad_frame_prev_register.
4482 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4483 trad_frame", delete "regs" and "prev_sp".
4484 (prologue_find_regs): Use trad-frame.
4485 * trad-frame.h, trad-frame.c: New files.
4486
4538b4f4
MK
44872003-06-08 Mark Kettenis <[email protected]>
4488
4489 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4490
a0273b2f
AF
44912003-06-07 Adam Fedor <[email protected]>
4492
4493 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4494 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4495 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4496 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4497 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4498 Use it.
4499
3a6c3343
AC
45002003-06-07 Andrew Cagney <[email protected]>
4501
4502 * symfile.h: Re-indent, clean up comments.
4503
b46e02f6
AC
45042003-06-07 Andrew Cagney <[email protected]>
4505
4506 * inferior.h (deprecated_write_sp): Replace
4507 generic_target_write_sp.
4508 * regcache.c (deprecated_write_sp): Replace
4509 generic_target_write_sp.
4510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4511 * vax-tdep.c (vax_gdbarch_init): Update.
4512 * v850-tdep.c (v850_gdbarch_init): Update.
4513 * sparc-tdep.c (sparc_gdbarch_init): Update.
4514 * sh-tdep.c (sh_gdbarch_init): Update.
4515 * s390-tdep.c (s390_gdbarch_init): Update.
4516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4517 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4518 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4519 * mcore-tdep.c (mcore_gdbarch_init): Update.
4520 * m68k-tdep.c (m68k_gdbarch_init): Update.
4521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4522 * ia64-tdep.c (ia64_gdbarch_init): Update.
4523 * h8300-tdep.c (h8300_gdbarch_init): Update.
4524 * frv-tdep.c (frv_gdbarch_init): Update.
4525 * cris-tdep.c (cris_gdbarch_init): Update.
4526 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4527
a42e117c
AC
45282003-06-07 Andrew Cagney <[email protected]>
4529
4530 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4531 Assert that PC_REGNUM is valid.
4532 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4533
bd1ce8ba
AC
45342003-06-07 Andrew Cagney <[email protected]>
4535
4536 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4537 * gdbarch.h, gdbarch.c: Regenerate.
4538 * mn10300-tdep.c: Include "gdb_assert.h".
4539 (mn10300_read_fp): New function.
4540 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4541 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4542 * ia64-tdep.c: Include "gdb_assert.h".
4543 (ia64_read_fp): New function.
4544 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4545 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4546 * regcache.c (generic_target_read_sp): Delete function.
4547 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4548 * inferior.h (generic_target_read_sp): Delete declaration.
4549 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4550 generic_target_read_sp.
4551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4552 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4553 * sh-tdep.c (sh_gdbarch_init): Ditto.
4554 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4555 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4556
ec5cbaec
AC
45572003-06-07 Andrew Cagney <[email protected]>
4558
4559 * gdbarch.sh: Comment each field of startup_gdbarch.
4560 * gdbarch.h, gdbarch.c: Re-generate.
4561
cde9ea48
AC
45622003-06-07 Andrew Cagney <[email protected]>
4563
4564 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4565 * gdbarch.h, gdbarch.c: Re-generate.
4566 * regcache.c: Update comments on read_pc et.al.
4567 (generic_target_read_pc): Delete function.
4568 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4569 * inferior.h (generic_target_read_pc): Delete declaration.
4570 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4571 generic_target_read_pc.
4572 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4573 * sh-tdep.c (sh_gdbarch_init): Ditto.
4574 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4576
9a90a780
AC
45772003-06-07 Andrew Cagney <[email protected]>
4578
4579 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4580 "index" with "special_local_sect". Use strcmp instead of STREQ.
4581 Append period to coments.
4582
a39a16c4
MM
45832003-06-06 Mark Mitchell <[email protected]>
4584
4585 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4586 (elfstab_offset_sections): Likewise.
4587 * gdb-stabs.h (stab_section_info): Likewise.
4588 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4589 * objfiles.c (objfile_relocate): Likewise.
4590 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4591 * remote.c (get_offsets): Likewise.
4592 (remote_cisco_objfile_relocate): Likewise.
4593 * somread.c (som_symfile_offsets): Likewise.
4594 * symfile.c (alloc_section_addr_info): New function.
4595 (build_section_addr_info_from_section_tab): Use it.
4596 (free_section_addr_info): Adjust.
4597 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4598 (syms_from_objfile): Allocate local_addr dynamically.
4599 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4600 dynamically.
4601 (add_symbol_file_command): Allocate sect_opts dynamically.
4602 (reread_symbols): Avoid use of SECT_OFF_MAX.
4603 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4604 (alloc_section_addr_info): Declare it.
4605 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4606 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4607 dynamically.
4608 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4609
20c6c2f8
AC
46102003-06-06 Andrew Cagney <[email protected]>
4611
4612 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4613 (d10v_frame_unwind_cache): Do not set "return_pc".
4614
884a26c8
MS
46152003-06-06 Michael Snyder <[email protected]>
4616
4617 * h8300-tdep.c: Make tidy (long lines).
4618
088ce440
ML
46192003-06-06 Michal Ludvig <[email protected]>
4620
8ffd9b1b 4621 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4622 to regcache_collect().
4623
7d773d96
JB
46242003-06-05 J. Brobecker <[email protected]>
4625
4626 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4627 pc_in_sigtramp multiarch method.
4628 (hppa_hpux_som_init_abi): Use it.
4629 (hppa_hpux_elf_init_abi): Likewise.
4630 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4631 macro has been multiarched.
4632 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4633 macro here, as hppa64 isn't multiarched yet.
4634
1df6926e
AC
46352003-06-05 Andrew Cagney <[email protected]>
4636
4637 * Makefile.in (value_h): Add $(frame_h).
4638 * value.h: Include "frame.h".
4639 (struct value): Replace "frame_addr" with "frame_id".
4640 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4641 * values.c (allocate_value): Use VALUE_FRAME_ID.
4642 (value_copy): Use VALUE_FRAME_ID.
4643 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4644 * valops.c (value_assign): Update. Use frame_find_by_id.
4645
6b53acc6
ML
46462003-06-05 Michal Ludvig <[email protected]>
4647
4648 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4649 in each pass.
4650
4d9850d3
JJ
46512003-06-05 Jeff Johnston <[email protected]>
4652
4653 * thread-db.c (check_event): For create/death event breakpoints,
4654 loop through all messages to ensure that we read the message
4655 corresponding to the breakpoint we are at.
4656
8efca6ba
MS
46572003-06-04 Michael Snyder <[email protected]>
4658
4659 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4660
0912c7f2
MK
46612003-06-04 Mark Kettenis <[email protected]>
4662
4663 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4664 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4665 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4666 when handling .eh_frame sections.
4667
4e370325
JB
46682003-06-04 J. Brobecker <[email protected]>
4669
4670 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4671 prepare_to_proceed procedure instead of the hppa-specific one.
4672 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4673
b757528f 46742003-06-04 Jeff Johnston <[email protected]>
8ffd9b1b 4675
b757528f
JJ
4676 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4677 * config.in: Regenerated.
4678 * configure.in: Add test for syscall function and check for
4679 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4680 * configure: Regenerated.
4681 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4682 <sys/syscall.h>.
4683 (kill_lwp): New function that uses tkill syscall or
4684 uses kill, depending on whether threading model is nptl or not.
4685 All callers of kill() changed to use kill_lwp().
4686 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4687 see if all threads have already exited in the nptl model.
4688 (stop_and_resume_callback): New callback function used by the
4689 lin_lwp_wait thread exit handling code.
4690 (stop_wait_callback): Check for threads already having exited and
4691 delete such threads fromt the lwp list when discovered.
4692 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4693
b757528f
JJ
4694 Roland McGrath <[email protected]>
4695 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4696 nptl libthread_db.
4697
087779b1
RH
46982003-06-03 Richard Henderson <[email protected]>
4699
b21fd293
RH
4700 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4701 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4702 (alpha_sigtramp_frame_prev_register): Likewise.
4703 (alpha_heuristic_frame_prev_register): Likewise.
4704 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4705
8ffd9b1b 4706 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4707 alpha-specific register id names.
4708 (alpha_mdebug_frame_unwind_cache): Likewise.
4709 (alpha_mdebug_frame_prev_register): Likewise.
4710
baa490c4
RH
47112003-06-03 Richard Henderson <[email protected]>
4712
4713 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4714 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4715 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4716 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4717 unwind routines.
4718 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4719 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4720 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4721
4722 * alpha-linux-tdep.c: Remove unnecessary includes.
4723 * Makefile.in (alpha-linux-tdep.o): Update.
4724
47252003-06-03 Richard Henderson <[email protected]>
4726
4727 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4728 (alphabsd_fill_fpreg): Likewise.
4729
f534e522
JB
47302003-06-03 J. Brobecker <[email protected]>
4731
4732 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4733 references to struct frame_info fields by calls to the equivalent
4734 accessors. Necessary now that frame_info is opaque.
4735
4035536b
JB
47362003-06-03 J. Brobecker <[email protected]>
4737
4738 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4739 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4740 structure, field no longer exists.
4741
0bd79c5c
JB
47422003-06-03 J. Brobecker <[email protected]>
4743
4744 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4745 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4746
37bb6d9f
JB
47472003-06-03 J. Brobecker <[email protected]>
4748
4749 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4750 references to struct frame_info fields by calls to the equivalent
4751 accessors. Necessary now that frame_info is opaque.
4752
852ee05c
JB
47532003-06-03 J. Brobecker <[email protected]>
4754
4755 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4756 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4757 structure, field no longer exists.
4758
7d58c67d
TR
47592003-06-03 Theodore A. Roth <[email protected]>
4760
8ffd9b1b 4761 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4762 accumulation of the size of all registers instead of blindly using
4763 DEPRECATED_REGISTER_BYTES.
4764
0a48e7e8
MS
47652003-06-03 Michael Snyder <[email protected]>
4766
4767 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4768 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4769 for h8300sx.
4770
9798ab0d
JB
47712003-06-03 J. Brobecker <[email protected]>
4772
4773 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4774 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4775
00b037e2
AC
47762003-06-03 Andrew Cagney <[email protected]>
4777
4778 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4779 (sparc_convert_to_raw): Delete function.
4780 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4781 register_convert_to_virtual.
4782
043b2f77
JJ
47832003-06-03 Jeff Johnston <[email protected]>
4784
4785 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4786 layer if not dealing with a statically-linked threaded program.
4787
f43caff8
KW
47882003-06-03 Kris Warkentin <[email protected]>
4789
4790 * solib.c (solib_open): Update comment to reflect actual search order.
4791
ae1e7417
AC
47922003-06-03 Andrew Cagney <[email protected]>
4793
4794 * frame.c (get_frame_memory_signed): New function.
4795 (get_frame_memory, get_frame_memory_unsigned): New function.
4796 (get_frame_arch): New function.
4797 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4798 (get_frame_memory, get_frame_unsigned_memory): Declare.
4799 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4800 get_frame_memory_unsigned and get_frame_arch.
4801 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4802
cb123844
RG
48032003-06-03 Raoul Gough <[email protected]>
4804
4805 * MAINTAINERS (write after approval): Add myself.
4806
1bb792e9
JB
48072003-06-03 Jim Blandy <[email protected]>
4808
4809 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4810 elements of gregset_t are 64 bits each, but access registers
4811 are still 32 bits, so they're packed two per gregset_t
4812 element. Unpack/pack them properly.
4813
aee8d8ba
DC
48142003-06-02 David Carlton <[email protected]>
4815
4816 * linespec.c (find_methods): Break out code into
4817 add_matching_methods and add_constructors.
4818 (add_matching_methods): New.
4819 (add_constructors): Ditto.
4820
bf7488d2
AC
48212003-06-02 Andrew Cagney <[email protected]>
4822
bf7488d2
AC
4823 * sparc-tdep.c (sparc_print_registers): Delete call to
4824 REGISTER_CONVERTIBLE.
4825 (sparc_gdbarch_init): Do not set register_convertible.
4826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4827 * frv-tdep.c (frv_gdbarch_init): Ditto.
4828 * cris-tdep.c (cris_gdbarch_init): Ditto.
4829
adedef68
EZ
48302003-06-02 Elena Zannoni <[email protected]>
4831
8ffd9b1b 4832 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4833 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4834 (syms_from_objfile): Ditto.
4835
650fcc91
AS
48362003-06-03 Andreas Schwab <[email protected]>
4837
4838 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4839 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4840
df4a182b
RH
48412003-06-02 Richard Henderson <[email protected]>
4842
4843 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4844 a member of all_reggroup.
4845
c483c494
RH
48462003-06-02 Richard Henderson <[email protected]>
4847
4848 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4849 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4850 (alpha_lds, alpha_sts): New.
4851 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4852 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4853 restructure and fail for type sizes other than 4 or 8.
4854 (alpha_value_to_register): Similarly.
4855 (alpha_extract_return_value): Use alpha_sts.
4856 (alpha_store_return_value): Use alpha_lds.
4857 (alpha_gdbarch_init): Update hooks.
4858
b38b6be2
RH
48592003-06-02 Richard Henderson <[email protected]>
4860
4861 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4862 regnum identifiers.
4863 (alpha_sigtramp_register_address): Likewise.
4864
98a8e1e5
RH
48652003-06-02 Richard Henderson <[email protected]>
4866
4867 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4868 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4869 * alpha-tdep.h: Declare them.
4870
4871 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4872 Remove zerobuf. Don't error on UNIQUE.
4873 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4874 (ALPHA_REGSET_UNIQUE): Provide default.
4875 (supply_gregset): Use alpha_supply_int_regs.
4876 (fill_gregset): Use alpha_fill_int_regs.
4877 (supply_fpregset): Use alpha_supply_fp_regs.
4878 (fill_fpregset): Use alpha_fill_fp_regs.
4879 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4880 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4881 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4882 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4883 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4884 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4885
67dfac52
RH
48862003-06-02 Richard Henderson <[email protected]>
4887
f75d70cc
RH
4888 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4889
67dfac52
RH
4890 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4891 (alpha_store_return_value): Likewise.
4892
0cf566ec
DC
48932003-06-02 David Carlton <[email protected]>
4894
4895 * block.c (contained_in): Add 'const' to arguments.
4896 (block_function): Ditto.
4897 * block.h: Update declarations for block_function and
4898 contained_in.
4899
cdef89d0
DC
49002003-06-02 David Carlton <[email protected]>
4901
4902 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4903 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4904 * p-valprint.c (pascal_val_print): Ditto.
4905 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4906
72667056
RH
49072003-06-02 Richard Henderson <[email protected]>
4908
98a8e1e5
RH
4909 * alpha-tdep.c (alpha_push_dummy_call): Use
4910 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4911
8ffd9b1b 4912 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4913 sign-extension of 32-bit values.
4914 (alpha_store_return_value): Similarly.
0ede8eca 4915
98a8e1e5
RH
4916 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4917 (alpha_extract_return_value): Likewise.
4918 (alpha_store_return_value): Likewise.
7b5e1cb3 4919
98a8e1e5
RH
4920 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4921 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4922
98a8e1e5
RH
4923 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4924 (alpha_extract_struct_value_address): Likewise.
4925 (alpha_store_return_value): Likewise.
4926 (alpha_store_struct_return): Remove.
4927 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4928
98a8e1e5
RH
4929 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4930 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4931 macros where appropriate.
4932 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4933 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4934
98a8e1e5
RH
4935 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4936 for SP, GP; void_func_ptr for PC; non-language-specific types
4937 for all others.
4938 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4939
6dd77b81
RH
49402003-06-02 Richard Henderson <[email protected]>
4941
4942 * top.h (lim_at_start): Declare.
4943 * main.c (captured_main): Set it.
4944 * top.c (lim_at_start): Define.
4945 (command_loop): Use it instead of &environ.
4946 * event-top.c (command_handler): Likewise.
4947
f4dbdb54
JT
49482003-06-01 Jason Thorpe <[email protected]>
4949
4950 * mipsnbsd-tdep.c: Update copyright years.
4951 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4952
8f285956
RH
49532003-06-01 Richard Henderson <[email protected]>
4954
98a8e1e5
RH
4955 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4956 (alpha-linux-tdep.o): Update dependencies.
4957 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4958 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4959
615967cb
RH
49602003-06-01 Richard Henderson <[email protected]>
4961
98a8e1e5
RH
4962 * alpha-tdep.c (alpha_register_reggroup_p): New.
4963 (alpha_gdbarch_init): Register it.
615967cb 4964
b59661bd
AC
49652003-06-02 Andrew Cagney <[email protected]>
4966
4967 * dwarfread.c: Eliminate "register"
4968 (decode_die_type): Eliminate assignment within "if".
4969 (struct_type, decode_array_element_type): Ditto.
4970 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4971 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4972 (decode_modified_type, completedieinfo): Ditto.
4973 * block.c: Eliminate "register".
4974 (blockvector_for_pc_sect): Eliminate assignment within "if".
4975 * cp-support.h (struct symbol): Opaque declaration.
4976 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4977
5ef165c2
RH
49782003-06-01 Richard Henderson <[email protected]>
4979
98a8e1e5
RH
4980 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4981 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4982
143985b7
AF
49832003-06-01 Adam Fedor <[email protected]>
4984
4985 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4986 * gdbarch.[ch]: Regenerate.
4987 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4988 (hppa_gdbarch_init): Set it in the gdbarch vector.
4989 * i386-tdep.c (i386_fetch_pointer_argument): New
4990 (i386_gdbarch_init): Set it into gdbarch.
4991 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4992 (rs6000_gdbarch_init): Set it in gdbarch.
4993 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4994 (sparc_gdbarch_init): Set it in gdbarch.
4995
ae0167b9
AC
49962003-06-01 Andrew Cagney <[email protected]>
4997
7c0b4a20
AC
4998 * defs.h (extract_address): Delete declaration.
4999 * findvar.c (extract_address): Delete function.
5000 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5001 extract_address with the inline equivalent,
5002 extract_unsigned_integer.
5003 (xstormy16_extract_struct_value_address): Ditto.
5004 (xstormy16_pointer_to_address): Ditto.
5005 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5006 * v850-tdep.c (v850_push_arguments): Ditto.
5007 (v850_extract_return_value): Ditto.
5008 (v850_extract_struct_value_address): Ditto.
5009 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5010 (sparcnbsd_get_longjmp_target_64): Ditto.
5011 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5012 (get_longjmp_target): Ditto.
5013 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5014 (sh64_extract_struct_value_address): Ditto.
5015 (sh_push_arguments): Ditto.
5016 (sh64_push_arguments): Ditto.
5017 * remote-vxsparc.c (vx_read_register): Ditto.
5018 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5019 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5020 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5021 * mipsv4-nat.c (get_longjmp_target): Ditto.
5022 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5023 * mips-nat.c (get_longjmp_target): Ditto.
5024 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5025 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5026 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5027 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5028 * irix5-nat.c (get_longjmp_target): Ditto.
5029 * irix4-nat.c (get_longjmp_target): Ditto.
5030 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5031 (ia64_push_arguments): Ditto.
5032 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5033 * h8300-tdep.c (h8300_push_arguments): Ditto.
5034 (h8300_store_return_value): Ditto.
5035 (h8300_extract_struct_value_address): Ditto.
5036 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5037 (frv_push_arguments): Ditto.
5038 * avr-tdep.c (avr_pointer_to_address): Ditto.
5039 (avr_push_arguments): Ditto.
5040 * arm-tdep.c (arm_push_dummy_call): Ditto.
5041 (arm_get_longjmp_target): Ditto.
5042 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5043 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5044 (alpha_get_longjmp_target): Ditto.
5045
ae0167b9
AC
5046 * solib-irix.c (extract_mips_address): Inline extract_address,
5047 replacing it with extract_signed_integer.
5048 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5049 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5050 (first_link_map_member, open_symbol_file_object): Ditto.
5051 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5052 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5053 (LM_NEXT, LM_NAME): Ditto.
5054
44d88583
RH
50552003-06-01 Richard Henderson <[email protected]>
5056
98a8e1e5
RH
5057 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5058 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5059 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5060 (alpha_cannot_store_register): Likewise.
5061 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5062 * alpha-nat.c (supply_gregset): Likewise.
5063 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5064
310e9b6a
AC
50652003-06-01 Andrew Cagney <[email protected]>
5066
5067 * infcall.c (call_function_by_hand): Update comment on
5068 DEPRECATED_DUMMY_WRITE_SP.
5069
5070 * mips-tdep.c (mips_gdbarch_init): Do not set
5071 deprecated_dummy_write_sp.
5072 (mips_eabi_push_dummy_call): Set the SP register.
5073 (mips_o64_push_dummy_call): Set the SP register.
5074 (mips_o32_push_dummy_call): Set the SP register.
5075 (mips_n32n64_push_dummy_call): Set the SP register.
5076
5ab84872
RH
50772003-06-01 Richard Henderson <[email protected]>
5078
98a8e1e5
RH
5079 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5080 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5081 (supply_gregset): Likewise.
5082 * alpha-tdep.c (alpha_store_return_value): Likewise.
5083 (alpha_get_longjmp_target): Likewise.
5084 (alpha_register_name): Constify array.
5085 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5086 deprecated_register_size, deprecated_register_bytes,
5087 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5088 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5089 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5090
09cc52fd
RH
50912003-06-01 Richard Henderson <[email protected]>
5092
5093 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5094 from arg_reg_buffer to regcache to avoid double conversion.
5095
c7f16359
MK
50962003-06-01 Mark Kettenis <[email protected]>
5097
5098 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5099 SP_REGNUM.
5100 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5101 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5102
7131cb6e
RH
51032003-06-01 Richard Henderson <[email protected]>
5104
98a8e1e5
RH
5105 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5106 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5107
f3e0f90b
RH
51082003-06-01 Richard Henderson <[email protected]>
5109
98a8e1e5
RH
5110 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5111 not overlapping PC_REGNUM.
f3e0f90b 5112
c88e30c0
RH
51132003-06-01 Richard Henderson <[email protected]>
5114
98a8e1e5
RH
5115 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5116 alpha_push_arguments. Don't dump argument register data to
5117 the target stack. Fix float and 128-bit long double semantics.
5118 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5119 (alpha_fix_call_dummy): Remove.
5120 (alpha_call_dummy_words): Remove.
5121 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5122
f1a559ae
RH
51232003-06-01 Richard Henderson <[email protected]>
5124
5125 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5126
5e045346
AC
51272003-06-01 Andrew Cagney <[email protected]>
5128
95404a3e
AC
5129 * mips-tdep.c (is_mips16_addr): New function.
5130 (make_mips16_addr, unmake_mips16_addr): New functions.
5131 (pc_is_mips16, mips_fetch_instruction): Use.
5132 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5133 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5134 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5135 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5136 TARGET_MIPS.
5137 * config/mips/tm-mips.h: Update copyright.
5138 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5139 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5140 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5141 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5142 (TM_PRINT_INSN_MACH): Delete.
5143 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5144
5e045346
AC
5145 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5146 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5147 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5148 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5149 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5150 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5151 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5152 mips*-*-riscos* and mips*-*-sysv* onto mips.
5153 * config/mips/mips64.mt: New file.
5154 * config/mips/mips.mt: New file.
5155 * config/mips/littlemips.mt: Delete file.
5156 * config/mips/decstation.mt: Delete file.
5157 * config/mips/vr4300el.mt: Delete file.
5158 * config/mips/vr5000el.mt: Delete file.
5159 * config/mips/vr5000.mt: Delete file.
5160 * config/mips/vr4100.mt: Delete file.
5161 * config/mips/vr4xxxel.mt: Delete file.
5162 * config/mips/vr4300.mt: Delete file.
5163 * config/mips/vr4xxx.mt: Delete file.
5164 * config/mips/bigmips.mt: Delete file.
5165 * config/mips/bigmips64.mt: Delete file.
5166 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5167 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5168 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5169 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5170 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5171 "tm-bigmips.h".
5172 * config/mips/tm-irix3.h: Ditto.
5173 * config/mips/tm-mipsv4.h: Ditto.
5174 * config/mips/tm-embed.h: Ditto.
5175 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5176 "tm-bigmips64.h".
5177 * config/mips/tm-vr5000el.h: Delete file.
5178 * config/mips/tm-tx39l.h: Delete file.
5179 * config/mips/tm-vr4300el.h: Delete file.
5180 * config/mips/tm-vr4xxxel.h: Delete file.
5181 * config/mips/tm-vr4300.h: Delete file.
5182 * config/mips/tm-vr4100.h: Delete file.
5183 * config/mips/tm-vr4xxx.h: Delete file.
5184 * config/mips/tm-vr5000.h: Delete file.
5185 * config/mips/tm-embedl64.h: Delete file.
5186 * config/mips/tm-embedl.h: Delete file.
5187 * config/mips/tm-embed64.h: Delete file.
5188 * config/mips/tm-bigmips64.h: Delete file.
5189 * config/mips/tm-bigmips.h: Delete file.
5190
2473a4a9
MK
51912003-06-01 Mark Kettenis <[email protected]>
5192
97a5b208
MK
5193 Fix gdb/1216.
5194 * shnbsd-nat.c: Include "sh-tdep.h".
5195
2473a4a9
MK
5196 From Richard Henderson <[email protected]>:
5197 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5198
e0f7ec59
AC
51992003-05-31 Andrew Cagney <[email protected]>
5200
5201 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5202 forward declaration.
5203 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5204 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5205 (mips_find_saved_regs): Use set_reg_offset.
5206 (mips_frame_init_saved_regs): Delete function.
5207 (mips_pop_frame): Call mips_find_saved_regs instead of
5208 DEPRECATED_FRAME_INIT_SAVED_REGS.
5209
68dcc709
AC
52102003-05-31 Andrew Cagney <[email protected]>
5211
5212 * mips-tdep.c (mips_gdbarch_init): Do not set
5213 deprecated_max_register_raw_size, register_virtual_size, and
5214 deprecated_max_register_virtual_size.
5215
cfc14b3a
MK
52162003-05-31 Mark Kettenis <[email protected]>
5217
6405b0a6
MK
5218 * i386-tdep.c: Include "dwarf2-frame.h".
5219 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5220 * Makefile.in (i386-tdep.o): Update dependencies.
5221
cfc14b3a
MK
5222 * dwarf2-frame.c, dwarf2-frame.h: New files.
5223 * Makefile.in (SFILES): Add dwarf2-frame.c.
5224 (dwarf2_frame_h): Define.
5225 (COMMON_OBS): Add dwarf2-frame.o.
5226 (dwarf2-frame.o): Add dependencies.
5227
6a2751d2
AJ
52282003-05-31 Andreas Jaeger <[email protected]>
5229
5230 * x86-64-linux-nat.c: Fix comment.
5231
1c3545ae
MK
52322003-05-31 Mark Kettenis <[email protected]>
5233
10f93086
MK
5234 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5235 function signature.
5236
1c3545ae
MK
5237 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5238 have a sigcontext_addr handler.
5239 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5240 sigcontext_addr handler.
5241
e11c53d2
AC
52422003-05-31 Andrew Cagney <[email protected]>
5243
5244 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5245 (print_fp_register_row): Replace do_fp_register_row.
5246 (mips_print_fp_register): Add "file" and "frame" parameters.
5247 (mips_print_register): Add "file" and "frame" parameters.
5248 (mips_print_registers_info): Replace mips_do_registers_info.
5249 (mips_gdbarch_init): Set print_registers_info instead of
5250 deprecated_do_registers_info.
5251 (mips_read_fp_register_single): Add "frame" parameter.
5252 (mips_read_fp_register_double): Add "frame" parameter.
5253
a3386186
MK
52542003-05-31 Mark Kettenis <[email protected]>
5255
70913449
MK
5256 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5257 Fixes a bug where GDB would print the wrong register names for
5258 targets without SSE.
5259
2b5e0749
MK
5260 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5261 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5262 registers.
5263
5264 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5265 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5266 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5267 TDEP->sc_sp_offset.
5268
a3386186
MK
5269 From Michal Ludvig <[email protected]>:
5270 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5271 and `sc_num_regs'.
5272 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5273 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5274 I386_ST0_REGNUM): Move here from...
5275 * i386-tdep.c: ... here.
5276 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5277 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5278 registers if possible.
5279 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5280 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5281 Remove variables.
5282 (i386bsd_sc_reg_offset): New variable.
5283 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5284 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5285 TDEP->sc_sp_offset.
5286 (i386fbsd_sc_reg_offset): New variable.
5287 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5288 TDEP->sc_num_regs.
5289 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5290 variables.
5291 (i386fbsd4_sc_reg_offset): New variable.
5292 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5293 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5294 TDEP->sc_sp_offset.
5295 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5296 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5297 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5298 Remove variables.
5299 (i386nbsd_sc_reg_offset): New variable.
5300 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5301 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5302 TDEP->sc_sp_offset.
5303 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5304 Remove variables.
5305 (i386obsd_sc_reg_offset): New variable.
5306 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5307 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5308 TDEP->sc_sp_offset.
5309 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5310 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5311 for frame pointer offset in `struct sigcontext'.
5312
25ab4790
AC
53132003-05-31 Andrew Cagney <[email protected]>
5314
5315 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5316 architecture methods call_dummy_words, sizeof_call_dummy_words,
5317 push_return_address, store_struct_return, and fix_call_dummy. Set
5318 push_dummy_call instead of deprecated_push_arguments.
5319 (mips_store_struct_return): Delete function.
5320 (mips_fix_call_dummy): Delete function.
5321 (mips_push_return_address): Delete function.
5322 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5323 RA_REGNUM and T9_REGNUM.
5324 (mips_n32n64_push_dummy_call): Ditto for
5325 mips_n32n64_push_arguments.
5326 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5327 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5328
6a65450a
AC
53292003-05-31 Andrew Cagney <[email protected]>
5330
5331 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5332 "dummy_addr" to "bp_addr".
5333 * infcall.c (call_function_by_hand): Pass "funaddr" to
5334 gdbarch_push_dummy_call.
5335 * gdbarch.h, gdbarch.c: Re-generate.
5336 * i386-tdep.c (i386_push_dummy_call): Update.
5337 * arm-tdep.c (arm_push_dummy_call): Update.
5338 * d10v-tdep.c (d10v_push_dummy_call): Update.
5339
c4f35dd8
MK
53402003-05-31 Mark Kettenis <[email protected]>
5341
5342 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5343 variable declarations.
5344 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5345 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5346 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5347 x86_64_init_frame_pc, x86_64_init_frame_pc,
5348 x86_64_function_has_prologue): Remove prototypes.
5349 (X86_64_NUM_GREGS): New define.
5350 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5351 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5352 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5353 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5354 XMM1_REGNUM): Remove defines.
5355 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5356 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5357 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5358 X86_64_XMM1_REGNUM): New defines.
5359 (struct x86_64_register_info): Renamed from `struct
5360 register_info'. Remove `size' member.
5361 (x86_64_register_info_table): Remove variable.
5362 (x86_64_register_info): New variable.
5363 (X86_64_NUM_REGS): New define.
5364 (X86_64_NUM_GREGS): Remove define.
5365 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5366 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5367 Remove variables.
5368 (x86_54_dwarf2_reg_to_regnum): Remove function.
5369 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5370 (x86_64_dwarf_reg_to_regnum): New function.
5371 (x86_64_register_name): Rewrite.
5372 (x86_64_register_raw_size): Remove function.
5373 (x86_64_register_byte_table): Remove variable.
5374 (x86_64_register_byte): Remove function.
5375 (x86_64_register_virtual_type): Remove function.
5376 (x86_64_register_type): New function.
5377 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5378 x86_64_register_convert_to_raw): Remove functions.
5379 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5380 (x86_64_use_struct_convention): Make static. Adjust for renamed
5381 defines.
5382 (x86_64_frame_init_saved_regs): Remove function.
5383 (x86_64_push_arguments): Make static. Change to accept a regcache
5384 as argument.
5385 (x86_64_store_return_value, x86_64_extract_return_value): Make
5386 static. Rewrite based on i386 counterparts.
5387 (x86_64_push_dummy_call): New function.
5388 (X86_64_NUM_SAVED_REGS): New define.
5389 (x86_64_register_number): Remove function.
5390 (x86_64_store_struct_return): Remove function.
5391 (x86_64_frameless_function_invocation,
5392 x86_64_function_has_prologue): Remove functions.
5393 (PROLOG_BUFSIZE): Remove define.
5394 (struct x86_64_frame_cache): New structure.
5395 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5396 x86_64_frame_cache, x86_64_frame_this_id,
5397 x86_64_frame_prev_register, x86_64_frame_p,
5398 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5399 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5400 functions.
5401 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5402 variables.
5403 (x86_64_skip_prologue): Rewrite in terms of
5404 x86_64_analyze_prologue.
5405 (x86_64_frame_base_address): New function.
5406 (x86_64_frame_base): New variable.
5407 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5408 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5409 set deprecated_fp_regnum, deprecated_register_size,
5410 deprecated_register_bytes, register_raw_size, register_byte,
5411 register_virtual_type, register_convertiable,
5412 register_convert_to_virtual, convert_to_raw,
5413 deprecated_get_saved_register, deprecated_target_read_fp,
5414 deprecated_push_arguments, deprecated_push_return_address,
5415 deprecated_pop_frame, deprecated_store_struct_return,
5416 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5417 frameless_function_invocation, deprecated_frame_saved_pc,
5418 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5419 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5420 deprecated_init_frame_pc and virtual_frame_pointer. Call
5421 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5422 and x86_64_frame_p. Call frame_base_set_default to register
5423 x86_64_frame_base.
5424 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5425 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5426 (_initialize_x86_64_tdep): Remove function.
5427 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5428 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5429 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5430 define.
5431 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5432 (x86_64_linux_sigcontext_addr): Rewrite.
5433 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5434 x86_64_linux_frame_saved_pc): Remove functions.
5435 (x86_64_linux_pc_in_sigtramp): Renamed from
5436 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5437 trampoline.
5438 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5439 Remove_functions.
5440 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5441 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5442 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5443 (x86_64_regmap): Rename to regmap.
5444 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5445 x86_64_num_gregs.
5446 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5447 x86_64_regmap.
5448 (x86_64_fxsave_offset): Remove function.
5449 (supply_fpregset): Simply call x86_64_supply_fxsave.
5450 (fill_fpregset): Simply call x86_64_fill_fxsave.
5451 (fetch_inferior_registers, store_inferior_registers): Avoid
5452 asignment in if-statement.
5453 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5454 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5455 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5456 (fetch_core_registers): Remove function.
5457 (linux_elf_core_fns): Remove.
5458 (offsetoff): Don't define.
5459 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5460 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5461 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5462 add core-regset.o.
5463 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5464 protection against multiple includes instead of NM_X86_64_h. Add
5465 various comments. Include "config/nm-linux.h". Don't include
5466 <signal.h>.
5467 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5468 GET_THREAD_SIGNALS): Remove defines.
5469 (x86_64_register_u_addr, kernel_u_size,
5470 lin_thread_get_thread_signals): Remove prototypes.
5471 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5472 [HAVE_LINK_H]: Don't include "solib.h".
5473 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5474 * config/i386/tm-x86-64linux.h: Fix comments.
5475 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5476 x86-64-tdep.o): Update dependencies.
5477
c25083af
AC
54782003-05-30 Andrew Cagney <[email protected]>
5479
c8f55a7b
AC
5480 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5481 Change parameter type to a "struct regcache *".
5482
c25083af
AC
5483 * gdbarch.sh: Regardless of the multi-arch level, always define
5484 the macro when not already defined.
5485 * gdbarch.h, gdbarch.c: Re-generate.
5486
fbe586ae
RH
54872003-05-30 Richard Henderson <[email protected]>
5488
5489 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5490 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5491 (alpha_mdebug_frame_this_id): Likewise.
5492 (alpha_mdebug_frame_prev_register): Likewise.
5493 (alpha_mdebug_frame_base_address): Likewise.
5494 (alpha_mdebug_frame_locals_address): Likewise.
5495 (alpha_mdebug_frame_args_address): Likewise.
5496 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5497 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5498 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5499 loop increment.
5500 (alpha_heuristic_frame_this_id): Make static.
5501 (alpha_heuristic_frame_prev_register): Likewise.
5502 (alpha_heuristic_frame_base_address): Likewise.
5503 * alpha-tdep.h: Update.
5504
acd5c798
MK
55052003-05-30 Mark Kettenis <[email protected]>
5506
5507 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5508 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5509 defenitions.
5510 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5511 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5512 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5513 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5514 I386_ST0_REGNUM): New defines.
5515 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5516 codestream_get): Remove define.
5517 (codestream_next_addr, condestream_addr, condestream_buf,
5518 codestream_off, codestream_cnt): Remove variables.
5519 (codestream_fill, codestream_seek, codestream_read): Remove
5520 functions.
5521 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5522 functionality.
5523 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5524 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5525 i386_frame_saved_pc, i386_saved_pc_after_call,
5526 i386_frame_num_args, i386_frame_init_saved_regs,
5527 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5528 i386_push_arguments): Remove functions.
5529 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5530 functionality. Use i386_analyze_prologue instead of
5531 i386_get_frame_setup.
5532 (I386_NUM_SAVED_REGS): New define.
5533 (struct i386_frame_cache): New structure.
5534 (i386_alloc_frame_cache, i386_analyze_struct_return,
5535 i386_skip_probe, i386_analyze_frame_setup,
5536 i386_analyze_register_saves, i386_analyze_prologue,
5537 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5538 i386_frame_prev_register, i386_sigtramp_frame_cache,
5539 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5540 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5541 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5542 New functions.
5543 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5544 New variables.
5545 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5546 I386_EAX_REGNUM and I386_EDX_REGNUM.
5547 (i386_extract_return_value, i386_store_return_value): Use
5548 I386_ST0_REGNUM where appropriate.
5549 (i386_extract_struct_value_address): Rewrite to use extract_address.
5550 (i386_svr4_pc_in_sigtramp): Add comment.
5551 (i386_svr4_sigcontext_addr): Rewrite.
5552 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5553 TDEP->sc_sp_offset.
5554 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5555 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5556 of new defines. Set push_dummy_call, don't set
5557 deprecated_push_arguments, deprecated_push_return_address,
5558 deprecated_pop_frame. Don't set parm_boundary. Don't set
5559 deprecated_frame_chain, deprecated_frame_saved_pc,
5560 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5561 save_dummy_frame_tos, unwind_pc. Call
5562 frame_unwind_append_predicate and frame_base_set_default. Don't
5563 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5564 Don't set frameless_function_invocation. Don't set
5565 deprecated_register_bytes, deprecated_register_size,
5566 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5567 * i386-linux-tdep.c: Fix formatting in some comments.
5568 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5569 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5570 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5571 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5572 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5573 redundant parentheses.
5574 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5575 (i386_linux_sigcontext_addr): Use it. Rewrite.
5576 (find_minsym_and_objfile): Change name of second argument.
5577 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5578 changed. Use frame_pc_unwind instead of
5579 DEPRECATED_SAVED_PC_AFTER_CALL.
5580 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5581 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5582 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5583 unwinder.
5584 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5585 "dummy-frame.h".
5586 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5587 (_initialize_i386_cygwin_tdep): New prototype.
5588 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5589 deprecated_frame_chain_valid.
5590 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5591 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5592 Rely on the SVR4 defaults.
5593 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5594 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5595
c89b70f1
AC
55962003-05-30 Andrew Cagney <[email protected]>
5597
5598 * infcall.c (call_function_by_hand): Always call
5599 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5600
85b32d22
RH
56012003-05-30 Richard Henderson <[email protected]>
5602
c89b70f1
AC
5603 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5604 increment.
85b32d22 5605
bfe51b1e
JB
56062003-05-29 Jim Blandy <[email protected]>
5607
5608 Use gdbarch methods for solib stuff on PowerPC Linux.
5609 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5610 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5611 show through.
5612 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5613 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5614 giving the same effect as the #definitions above.
5615
1abf022c
AF
56162003-05-29 Adam Fedor <[email protected]>
5617
5618 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5619 (find_implementation_from_class): Replace it with the standard
5620 case i.e. do nothing.
5621
d2427a71
RH
56222003-05-29 Richard Henderson <[email protected]>
5623
5624 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5625 (alpha_linux_sigtramp_offset): Use it. Make static.
5626 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5627 update for new frame model.
5628 * alpha-mdebug-tdep.c: New file.
5629 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5630 (alpha_osf1_init_abi): Install it.
5631 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5632 (linked_proc_desc_table): Remove.
5633 (alpha_frame_past_sigtramp_frame): Remove.
5634 (alpha_dynamic_sigtramp_offset): Remove.
5635 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5636 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5637 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5638 (push_sigtramp_desc): Remove.
5639 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5640 (alpha_cannot_store_register): Likewise.
5641 (alpha_sigcontext_addr): Remove.
5642 (alpha_find_saved_regs): Remove.
5643 (alpha_frame_init_saved_regs): Remove.
5644 (alpha_init_frame_pc_first): Remove.
5645 (read_next_frame_reg): Remove.
5646 (alpha_frame_saved_pc): Remove.
5647 (alpha_saved_pc_after_call): Remove.
5648 (temp_proc_desc, temp_saved_regs): Remove.
5649 (alpha_about_to_return): Remove.
5650 (cached_proc_desc): Remove.
5651 (alpha_frame_chain): Remove.
5652 (alpha_print_extra_frame_info): Remove.
5653 (alpha_init_extra_frame_info): Remove.
5654 (alpha_frame_locals_address): Remove.
5655 (alpha_frame_args_address): Remove.
5656 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5657 (alpha_push_dummy_frame): Remove.
5658 (alpha_pop_frame): Remove.
5659 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5660 (alpha_read_insn): New.
5661 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5662 for different insn encodings.
5663 (alpha_in_lenient_prologue): Remove.
5664 (struct alpha_sigtramp_unwind_cache): New.
5665 (alpha_sigtramp_frame_unwind_cache): New.
5666 (alpha_sigtramp_register_address): New.
5667 (alpha_sigtramp_frame_this_id): New.
5668 (alpha_sigtramp_frame_prev_register): New.
5669 (alpha_sigtramp_frame_unwind): New.
5670 (alpha_sigtramp_frame_p): New.
5671 (struct alpha_heuristic_unwind_cache): New.
5672 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5673 don't count nop insns that occur between functions.
5674 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5675 heuristic_proc_desc, but without the mdebug wrapping.
5676 (alpha_heuristic_frame_this_id): New.
5677 (alpha_heuristic_frame_prev_register): New.
5678 (alpha_heuristic_frame_unwind): New.
5679 (alpha_heuristic_frame_p): New.
5680 (alpha_heuristic_frame_base_address): New.
5681 (alpha_heuristic_frame_base): New.
5682 (alpha_unwind_dummy_id): New.
5683 (alpha_unwind_pc): New.
5684 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5685 frame related deprecated initializations; install replacements.
5686 (alpha_dump_tdep): Remove.
5687 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5688 (alpha_read_insn, alpha_after_prologue,
5689 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5690 alpha_heuristic_frame_prev_register,
5691 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5692 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5693 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5694 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5695
93ec1121
AC
56962003-05-29 Andrew Cagney <[email protected]>
5697
5698 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5699 dependant on the availability of ASSERT_FUNCTION.
5700 (ASSERT_FUNCTION): Do not define when there is no function name.
5701
98f08d3d
KB
57022003-05-29 Kevin Buettner <[email protected]>
5703
5704 From Jimi X <[email protected]>:
5705 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5706
0897f59b
JB
57072003-05-28 Jim Blandy <[email protected]>
5708
5709 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5710 argument to ptrace to int; the system headers should give it the
5711 right type, and pointers don't fit in ints on powerpc64-*-*.
5712
14898363
L
57132003-05-28 H.J. Lu <[email protected]>
5714
5715 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5716 DW_TAG_catch_block.
5717
a7a48797
EZ
57182003-05-26 Elena Zannoni <[email protected]>
5719
5720 * stabsread.c (dbx_lookup_type): Make static.
5721 (read_type): Ditto.
5722 (add_undefined_type): Ditto.
5723 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5724 not export.
5725
f5479e9c
EZ
57262003-05-26 Elena Zannoni <[email protected]>
5727
5728 * hpread.c (hpread_has_name): Make static.
5729 (hpread_psymtab_to_symtab): Ditto.
5730 (file_exists): Ditto.
5731 (hpread_call_pxdb): Ditto.
5732 (hpread_pxdb_needed): Ditto.
5733 (hpread_quick_traverse): Ditto.
5734 (hpread_get_header): Ditto.
5735 (hpread_get_lntt): Ditto.
5736 (hpread_get_slt): Ditto.
5737 (class_of): Ditto.
5738
eb2e12d7
AS
57392003-05-25 Andreas Schwab <[email protected]>
5740
78bf922a
AS
5741 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5742 stack_align and deprecated_extra_stack_alignment_needed.
5743 (m68k_stack_align): Delete.
5744
eb2e12d7
AS
5745 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5746 (m68k_register_virtual_size): Likewise.
5747 (altos_skip_prologue): Remove obsolete function.
5748 (isi_frame_num_args): Likewise.
5749 (news_frame_num_args): Likewise.
5750 (m68k_fix_call_dummy): Make static.
5751 (m68k_push_dummy_frame): Likewise.
5752 (m68k_pop_frame): Likewise.
5753 (m68k_skip_prologue): Likewise.
5754 (m68k_frame_init_saved_regs): Likewise.
5755 (m68k_saved_pc_after_call): Likewise.
5756 (m68k_get_longjmp_target): Make multi-arch.
5757 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5758 structure. Register m68k_get_longjmp_target if enabled.
5759 * m68k-tdep.h (struct gdbarch_tdep): Define.
5760 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5761
5762 * Makefile.in (config.status): Also depend on configure.tgt
5763 and configure.host.
5764 (m68klinux-tdep.o): Update dependencies.
5765 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5766 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5767 (M68K_LINUX_JB_PC): Define.
5768 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5769 and take additional parameter.
5770 (m68k_linux_sigtramp_saved_pc): Update.
5771 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5772 m68k_linux_pc_in_sigtramp, in_plt_section,
5773 find_solib_trampoline_target.
5774 * config/m68k/tm-linux.h: Don't include any tm headers.
5775 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5776 (JB_ELEMENT_SIZE): Likewise.
5777 (JB_PC): Likewise.
5778 (GET_LONGJMP_TARGET): Likewise.
5779 (IN_SIGTRAMP): Likewise.
5780 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5781
eb2c22dc
MK
57822003-05-25 Mark Kettenis <[email protected]>
5783
5784 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5785 (sparc32_push_arguments): Re-implement by calling
5786 sparc32_do_push_arguments.
5787
44b7b84e
MK
57882003-05-25 Mark Kettenis <[email protected]>
5789
5790 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5791 SPARC_O1_REGNUM): New defines.
5792 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5793 (sparc32_store_return_value): New function.
5794 (sparc_extract_struct_value_address): Rewrite to operate on a
5795 regcache.
5796 (sparc_gdbarch_init): Don't set
5797 deprecated_extract_struct_value_address. Set
5798 extract_struct_value_address instead. Don't set
5799 deprecated_extract_return_value and deprecated_store_return_value
5800 for 32-bit targets. Set extract_return_value and
5801 store_return_value instead.
5802 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5803 DEPRECTAED_EXTRACT_RETURN_VALUE,
5804 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5805 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5806 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5807 (sparc_store_return_value): Remove prototype.
5808 (sparc32_store_return_value): New prototype.
5809 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5810 Adjust prototypes.
5811
f6ad61e3
MK
58122003-05-24 Mark Kettenis <[email protected]>
5813
5814 * sparcnbsd-tdep.c: Include "gdb_string.h".
5815
b276f1bb
AC
58162003-05-23 Andrew Cagney <[email protected]>
5817
5818 * p-valprint.c (pascal_val_print): Replace extract_address with
5819 the inline equivalent extract_unsigned_integer.
5820 * jv-valprint.c (java_value_print): Ditto.
5821 * ada-valprint.c (ada_val_print_1): Ditto.
5822 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5823
e76c5fcc
TR
58242003-05-23 Theodore A. Roth <[email protected]>
5825
5826 * blockframe.c (frameless_look_for_prologue): Remove unused
5827 after_prologue variable.
5828
2cdd89cb
MK
58292003-05-23 Mark Kettenis <[email protected]>
5830
5831 * blockframe.c (get_pc_function_start): Rewrite to avoid
5832 asignments in if-statements.
5833
182d43bc
EZ
58342003-05-23 Raoul Gough <[email protected]>
5835
5836 Committed by Elena Zannoni <[email protected]>.
8ffd9b1b 5837 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5838 files, don't relocate absolute symbols (and do use mst_abs).
5839
e8f3fcdd
AC
58402003-05-23 Andrew Cagney <[email protected]>
5841
5842 * objc-lang.c: Include "gdb_assert.h".
5843 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5844 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5845 (gdb_check, gdb_check_fatal): Delete functions.
5846 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5847 gdb_assert.
5848 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5849 * Makefile.in (objc-lang.o): Update dependencies.
5850
3c23e6fb
ILT
58512003-05-22 Ian Lance Taylor <[email protected]>
5852
5853 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5854 with fprintf_filtered, not fprintf_unfiltered.
5855
af1342ab
AC
58562003-05-22 Andrew Cagney <[email protected]>
5857
5858 * stack.c (frame_info): Inline extract_address, replacing it with
5859 extract_unsigned_integer.
5860 * findvar.c (unsigned_pointer_to_address): Ditto.
5861 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5862 * dwarf2expr.c (dwarf2_read_address): Ditto.
5863 * frame.c (frame_pc_unwind): Update comment.
5864 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5865
47e242ec
JJ
58662003-05-22 Jeff Johnston <[email protected]>
5867
5868 * infptrace.c (detach): Call print_sys_errmsg rather than
5869 perror_with_name to issue warning message when errno is non-zero
5870 after calling ptrace detach.
5871
e2ac8128
JB
58722003-05-21 J. Brobecker <[email protected]>
5873
5874 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5875 macro definitions from here...
5876 * hppa-tdep.c: ...to there.
5877
92b3541e
KB
58782003-05-20 Kevin Buettner <[email protected]>
5879
5880 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5881 register_ptrace_addr(). Fix all callers.
5882
55809acb
AS
58832003-05-21 Andreas Schwab <[email protected]>
5884
5885 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5886 dependencies.
5887 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5888 end.
5889 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5890 (_initialize_m68k_linux_tdep): New function.
5891 (m68k_linux_frame_saved_pc): Make static.
5892 (m68k_linux_extract_return_value): Likewise.
5893 (m68k_linux_store_return_value): Likewise.
5894 (m68k_linux_extract_struct_value_address): Likewise.
5895 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5896 Remove.
5897 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5898 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5899 (DEPRECATED_FRAME_SAVED_PC): Remove.
5900
0fbc10f7
KW
59012003-05-20 Kris Warkentin <[email protected]>
5902
5903 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5904 regset numbering rather than our own.
5905
58da2eb2
DC
59062003-05-19 David Carlton <[email protected]>
5907
5908 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5909
1fcb5155
DC
59102003-05-19 David Carlton <[email protected]>
5911
5912 Partial fix for PR c++/827.
5913 * cp-support.h: Include symtab.h.
5914 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5915 * cp-namespace.c: Update contributors.
5916 (cp_lookup_symbol_nonlocal): New.
5917 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5918 (lookup_symbol_file): Ditto.
5919 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5920 * block.h: Declare block_scope, block_using, block_global_block.
5921 * block.c (block_scope): New.
5922 (block_using, block_global_block): Ditto.
5923 * Makefile.in (cp_support_h): Depend on symtab_h.
5924 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5925
5f9a71c3
DC
59262003-05-19 David Carlton <[email protected]>
5927
5928 * language.h (struct language_defn): Add 'la_value_of_this'
5929 and 'la_lookup_symbol_nonlocal' members.
5930 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5931 lookup_symbol_static, lookup_symbol_global,
5932 lookup_symbol_aux_block.
5933 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5934 if we should search fields of this and how to do static/global
5935 lookup.
5936 (lookup_symbol_aux_block): Make extern.
5937 (basic_lookup_symbol_nonlocal): New.
5938 (lookup_symbol_static, lookup_symbol_global): Ditto.
5939 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5940 'la_lookup_symbol_nonlocal' members.
5941 * c-lang.c (c_language_defn, cplus_language_defn)
5942 (asm_language_defn, minimal_language_defn): Ditto.
5943 * jv-lang.c (java_language_defn): Ditto.
5944 * language.c (unknown_language_defn, auto_language_defn)
5945 (local_language_defn): Ditto.
5946 * m2-lang.c (m2_language_defn): Ditto.
5947 * objc-lang.c (objc_language_defn): Ditto.
5948 * scm-lang.c (scm_language_defn): Ditto.
5949 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5950 * p-lang.c (pascal_language_defn): Ditto for both.
5951 * Makefile.in (f-lang.o): Depend on value_h.
5952 (p-lang.o): Ditto.
5953
89a9d1b1
DC
59542003-05-19 David Carlton <[email protected]>
5955
5956 * block.h: Declare block_static_block.
5957 * block.c (block_static_block): New.
5958 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5959 lookup_symbol_aux_local, calling block_static_block instead.
5960 (lookup_symbol_aux_local): Delete 'static_block' argument.
5961
eed3f8ab
DC
59622003-05-19 David Carlton <[email protected]>
5963
5964 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5965
a09d8bda
ML
59662003-05-19 Michal Ludvig <[email protected]>
5967
5968 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5969 register numbers mapping.
5970
69636828
AF
59712003-05-18 Adam Fedor <[email protected]>
5972
5973 * symtab.c (completion_list_objc_symbol): New function.
5974 (make_symbol_completion_list): Use it to add ObjC symbols
5975 when looking though the list.
5976 (language_search_unquoted_string): New function.
5977 (make_file_symbol_completion_list): Use it.
5978
55baeb84
AS
59792003-05-18 Andreas Schwab <[email protected]>
5980
d0b45d99
AS
5981 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5982 dependencies.
5983 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5984 as m68k_linux_extract_return_value.
5985 (DEPRECATED_STORE_RETURN_VALUE): Define as
5986 m68k_linux_store_return_value.
5987 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5988 m68k_linux_extract_struct_value_address.
5989 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5990 get_next_frame, get_frame_base, get_frame_pc.
5991 (m68k_linux_frame_saved_pc): Use get_frame_base.
5992 (m68k_linux_extract_return_value): New function.
5993 (m68k_linux_store_return_value): New function.
5994 (m68k_linux_extract_struct_value_address): New function.
5995 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5996
55baeb84
AS
5997 * c-exp.y (typebase): Remove duplicate occurence of
5998 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5999 of lookup_signed_typename.
55baeb84 6000
b6b08ebf
MK
60012003-05-18 Mark Kettenis <[email protected]>
6002
6003 * dwarf2loc.c (find_location_expression): Change type of second
6004 argument to `size_t *'.
6005 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6006 for size variable.
6007
5ad1c190
DC
60082003-05-18 David Carlton <[email protected]>
6009
6010 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6011 'linkage_name'. Add comment.
6012 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6013 'linkage_name'.
6014 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6015 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6016 (lookup_block_symbol): Ditto.
6017
b8b527c5
AC
60182003-05-16 Andrew Cagney <[email protected]>
6019
6020 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6021 * gdbarch.h, gdbarch.c: Re-generate.
6022 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6023 * TODO (REGISTER_BYTES): Delete reference.
6024 * alpha-tdep.c (alpha_gdbarch_init): Update.
6025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6026 * x86-64-tdep.c (x86_64_init_abi): Update.
6027 * vax-tdep.c (vax_gdbarch_init): Update.
6028 * v850-tdep.c (v850_gdbarch_init): Update.
6029 * sparc-tdep.c (sparc_gdbarch_init): Update.
6030 * sh-tdep.c (sh_gdbarch_init): Update.
6031 * s390-tdep.c (s390_gdbarch_init): Update.
6032 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6033 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6034 (ns32k_gdbarch_init_32382): Update.
6035 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6036 * mcore-tdep.c (mcore_gdbarch_init): Update.
6037 * m68k-tdep.c (m68k_gdbarch_init): Update.
6038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6039 * ia64-tdep.c (ia64_gdbarch_init): Update.
6040 * i386-tdep.c (i386_gdbarch_init): Update.
6041 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6042 * hppa-tdep.c (hppa_gdbarch_init): Update.
6043 * h8300-tdep.c (h8300_gdbarch_init): Update.
6044 * frv-tdep.c (frv_gdbarch_init): Update.
6045 * cris-tdep.c (cris_gdbarch_init): Update.
6046 * avr-tdep.c (avr_gdbarch_init): Update.
6047 * arm-tdep.c (arm_gdbarch_init): Update.
6048 * sparc-tdep.c (sparc_pop_frame): Update.
6049 * rs6000-tdep.c (rs6000_pop_frame): Update.
6050 * remote.c (init_remote_state): Update.
6051 (remote_prepare_to_store): Update.
6052 * remote-vx.c (vx_prepare_to_store): Update.
6053 * remote-sds.c (sds_fetch_registers): Update.
6054 (sds_prepare_to_store): Update.
6055 * remote-array.c: Update.
6056 * regcache.c (init_legacy_regcache_descr): Update.
6057 (init_regcache_descr): Update.
6058 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6059 (mips_o64_extract_return_value): Update.
6060 * irix5-nat.c (fetch_core_registers): Update.
6061 * irix4-nat.c (fetch_core_registers): Update.
6062 * i386-tdep.h: Update.
6063 * hppa-tdep.c (pa_do_registers_info): Update.
6064 (pa_do_strcat_registers_info): Update.
6065 * cris-tdep.c (cris_register_bytes_ok): Update.
6066 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6067 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6068 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6069 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6070 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6071 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6072 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6073 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6074 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6075 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6076 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6077 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6078 (REGISTER_BYTES_OK): Update.
6079 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6080 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6081
ee2842e2
ILT
60822003-05-16 Ian Lance Taylor <[email protected]>
6083
6084 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6085 (vax_print_insn, print_insn_arg): Remove static functions.
6086 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6087 print_insn_vax from opcodes library.
6088 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6089
973177d3
AC
60902003-05-15 Andrew Cagney <[email protected]>
6091
aaab4dba
AC
6092 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6093 * target.h (memory_breakpoint_from_pc): Delete declaration.
6094 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6095 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6096 * monitor.c (monitor_insert_breakpoint): Use
6097 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6098 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6099 * gdbarch.h, gdbarch.c: Re-generate.
6100 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6101 (sparc_gdbarch_init): Set breakpoint_from_pc to
6102 sparc_breakpoint_from_pc.
6103 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6104 (BREAKPOINT_FROM_PC): Define.
6105 (sparc_breakpoint_from_pc): Declare.
6106 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6107 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6108 (BREAKPOINT_FROM_PC): Define.
6109 (BREAKPOINT): Delete macro.
6110 * target.h: Update comment.
6111 * s390-tdep.c (s390_gdbarch_init): Update comments.
6112 * remote.c: Update comments.
6113 * remote-mips.c: Update comments.
6114 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6115 * mem-break.c: Update comment.
6116 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6117 (ia64_memory_insert_breakpoint): Update.
6118 * config/sparc/tm-sparc.h: Update comment.
6119 * config/pa/tm-hppa64.h: Update comment.
6120 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6121 (rs6000_breakpoint_from_pc): Update.
6122 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6123 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6124 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6125 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6126 (mips_breakpoint_from_pc): Update.
6127 (mips_dump_tdep): Update.
6128
e06963ff
AC
6129 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6130 * minsyms.c (lookup_minimal_symbol): Inline
6131 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6132
973177d3
AC
6133 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6134 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6135 * p-lang.c (pascal_printstr): Ditto.
6136 * objc-lang.c (objc_printstr): Ditto.
6137 * m2-lang.c (m2_printstr): Ditto.
6138 * jv-valprint.c (java_print_value_fields): Ditto.
6139 * f-lang.c (f_printstr): Ditto.
6140 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6141 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6142 for repeat_count_threshold.
6143 * Makefile.in (cp-valprint.o): Update dependencies.
6144
5ea2bd7f 61452003-05-15 Jeff Johnston <[email protected]>
8ffd9b1b 6146
5ea2bd7f
JJ
6147 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6148 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6149 they start with mov r2,r12. Support skipping over indirect stores
6150 of the input registers. Upon hitting a non-nop branch instruction
6151 or predicated instruction, bail out by setting lim_pc to the current
6152 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6153 beyond our calculated value and we have trust_limit set,
6154 use the lim_pc value.
6155
cc8c88f3
AC
61562003-05-15 Andrew Cagney <[email protected]>
6157
6158 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6159 generic_find_dummy_frame.
6160 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6161 (deprecated_generic_find_dummy_frame): Update.
6162 (deprecated_read_register_dummy): Update.
6163 * frame.c (deprecated_generic_get_saved_register): Update.
6164
909cd28e
TR
61652003-05-15 Theodore A. Roth <[email protected]>
6166
6167 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6168 (avr_gdbarch_init): Set breakpoint_from_pc method.
6169
b923b08d
AC
61702003-05-15 Andrew Cagney <[email protected]>
6171
6172 * regcache.c (build_regcache): Set deprecated_register_valid
6173 directly.
6174 (deprecated_grub_regcache_for_register_valid): Delete function.
6175 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6176 declaration.
6177
ae2f03ac 61782003-05-15 David Carlton <[email protected]>
8ffd9b1b
AJ
6179
6180 Committed by Elena Zannoni <[email protected]>
fbe586ae
RH
6181 * symtab.c (lookup_symbol_aux): Delete calls to
6182 lookup_symbol_aux_minsyms.
6183 (lookup_symbol_aux_minsyms): Comment out function and
6184 prototype. Delete lookup by mangled name.
ae2f03ac 6185
18ec9831
KB
61862003-05-14 Kevin Buettner <[email protected]>
6187
6188 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6189 correctly indicate an empty stack and ``stack_allocated'' to the
6190 indicate the number of elements initially allocated.
6191 (dwarf_expr_grow_stack): Simplify method for computing new
6192 stack size. Don't loop infinitely if ``stack_len'' is zero.
6193 (execute_stack_op): Move ``ctx->in_reg'' initialization
6194 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6195 be used in conjuction with DW_OP_piece. Revise error message
6196 accordingly.
6197
de18ac1f
TR
61982003-05-14 Theodore A. Roth <[email protected]>
6199
6200 * MAINTAINERS: Update my email address.
6201 * avr-tdep.c: Ditto.
6202
176620f1
EZ
62032003-05-14 Elena Zannoni <[email protected]>
6204
6205 * symtab.h (enum domain_enum): Rename from namespace_enum.
6206 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6207 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6208 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6209 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6210 TYPES_NAMESPACE, METHODS_NAMESPACE.
6211 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6212 (struct symbol, struct partial_symbol): Rename field
6213 'namespace_enum namespace' to 'domain_enum domain'.
6214 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6215 Delete old define kludge for namespace.
6216
6217 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6218 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6219 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6220 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6221 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6222 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6223 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6224 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6225 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6226 occurrences of the above.
6227
b7f31508
ILT
62282003-05-14 Ian Lance Taylor <[email protected]>
6229
6230 * Makefile.in (install-only): Use $(SHELL) when running
6231 mkinstalldirs.
6232
2fdbdd39
ILT
62332003-05-13 Ian Lance Taylor <[email protected]>
6234
a208d82c
ILT
6235 * MAINTAINERS (write after approval): Add myself.
6236
2fdbdd39
ILT
6237 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6238 second and third arguments.
6239 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6240 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6241
fbd9dcd3
AC
62422003-05-13 Andrew Cagney <[email protected]>
6243
6244 * defs.h (store_address): Delete declaration.
6245 findvar.c (store_address): Delete function.
6246 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6247 store_unsigned_integer.
6248 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6249 * v850-tdep.c (v850_push_arguments): Ditto.
6250 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6251 * sh-tdep.c (sh64_get_saved_register): Ditto.
6252 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6253 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6254 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6255 (mips_get_saved_register): Ditto.
6256 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6257 (find_func_descr, ia64_push_arguments): Ditto.
6258 * i386-tdep.c (i386_push_arguments): Ditto.
6259 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6260 * frv-tdep.c (frv_push_arguments): Ditto.
6261 * frame.c (legacy_saved_regs_prev_register): Ditto.
6262 (deprecated_generic_get_saved_register): Ditto.
6263 * findvar.c (unsigned_address_to_pointer): Ditto.
6264 * dwarf2read.c (dwarf2_const_value): Ditto.
6265 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6266 * alpha-tdep.c (alpha_push_arguments): Ditto.
6267
6760f9e6
JB
62682003-05-12 J. Brobecker <[email protected]>
6269
6270 * NEWS: Mention that the hppa-hpux port has been partially
6271 multiarched (32bit ABIT only, so far).
6272
30e221b4
AC
62732003-05-11 Andrew Cagney <[email protected]>
6274
6275 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6276 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6277 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6278 sim/testsuite/sim/arm/misaligned2.ms, and
6279 sim/testsuite/sim/arm/misaligned3.ms.
6280 * disasm.h (struct ui_file): Add opaque struct declaration.
6281 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6282 * frame.h (struct ui_file): Ditto.
6283
dea7f9ba
MK
62842003-05-11 Mark Kettenis <[email protected]>
6285
6286 * value.h: Pretty print.
6287
01986c48
MK
62882003-05-10 Mark Kettenis <[email protected]>
6289
6290 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6291
123a958e
AC
62922003-05-08 Andrew Cagney <[email protected]>
6293
6294 * regcache.h (max_register_size): Delete declaration.
6295 * regcache.c (max_register_size): Delete function.
6296 (struct regcache_descr): Delete field "max_register_size".
6297 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6298 registers fit in MAX_REGISTER_SIZE.
6299 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6300 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6301 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6302 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6303 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6304 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6305 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6306 * dve3900-rom.c, hppa-tdep.c: Ditto.
6307
eb294659
DC
63082003-05-08 David Carlton <[email protected]>
6309
6310 * valops.c (push_word): Fix typo.
6311
d9d9c31f
AC
63122003-05-08 Andrew Cagney <[email protected]>
6313
6314 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6315 * gdbarch.h: Re-generate.
6316 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6317 (legacy_max_register_raw_size): Delete declaration.
6318 * regcache.c (legacy_max_register_raw_size): Delete function.
6319 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6320 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6321 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6322 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6323 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6324 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6325 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6326 * findvar.c, dwarf2cfi.c: Ditto.
6327
22540ece
AC
63282003-05-08 Andrew Cagney <[email protected]>
6329
6330 * mips-tdep.c (read_signed_register): New function, moved to here
6331 from "regcache.c".
6332 (read_signed_register_pid): Ditto.
6333 * regcache.c (read_signed_register_pid): Delete function, moved to
6334 "mips-tdep.c".
6335 (read_signed_register): Ditto.
6336 * regcache.h (read_signed_register): Delete declaration.
6337 (read_signed_register_pid): Delete declaration.
6338
0c92afe8
AC
63392003-05-08 Andrew Cagney <[email protected]>
6340
6341 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6342 * gdbarch.h: Re-generate.
6343 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6344 (legacy_max_register_virtual_size): Delete declaration.
6345 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6346 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6347 * tracepoint.c (memrange_sortmerge): Ditto.
6348 * sparc-tdep.c (sparc_print_registers): Ditto.
6349 * regcache.c (legacy_max_register_virtual_size): Delete function.
6350
6037b830
JB
63512002-05-08 J. Brobecker <[email protected]>
6352
6353 * fork-child.c (escape_bang_in_quoted_argument): New function.
6354 (fork_inferior): Escape '!' characters in quoted arguments
6355 only when needed.
6356
5d62c8b1
JB
63572003-05-08 J. Brobecker <[email protected]>
6358
6359 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6360 the language of the CU is not currently supported by GDB.
6361
20a0e81d
JB
63622003-05-08 J. Brobecker <[email protected]>
6363
6364 * defs.h (language): Add language_minimal enum value.
6365 * c-lang.c (minimal_language_defn): New language definition.
6366 (_initialize_c_language): Add the new minimal language to the list
6367 of languages known to GDB.
6368
710ee10a
KB
63692003-05-08 Kevin Buettner <[email protected]>
6370
6371 * frame.c (get_frame_type): Don't attempt to lazily initialize
6372 frame's unwinder for legacy frames.
6373
1750fa04
AC
63742003-05-07 Andrew Cagney <[email protected]>
6375
6376 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6377 and "regcache" parameters.
6378 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6379
ddf9f258 63802003-05-07 Jeff Johnston <[email protected]>
8ffd9b1b
AJ
6381
6382 * dwarf2read.c (dwarf_decode_lines): Only use output of
6383 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6384 the current address.
6385
87767c29
AC
63862003-05-07 Andrew Cagney <[email protected]>
6387
6388 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6389 code.
6390
5e7b2f39
JB
63912003-05-07 Jim Blandy <[email protected]>
6392
6393 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6394 'maint info symtabs' and 'maint info psymtabs'.
6395 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6396 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6397 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6398 Declarations updated.
6399 * maint.c (maintenance_list_command): Delete.
6400 (_initialize_maint_cmds): Update calls to add_cmd.
6401 * gdbcmd.h (maintenancelistlist): Delete declaration.
6402 * cli/cli-cmds.c (maintenancelistlist): Delete.
6403 (init_cmd_lists): Don't initialize it.
6404 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6405
f6684c31
AC
64062003-05-07 Andrew Cagney <[email protected]>
6407
6408 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6409 "regcache".
6410 (d10v_print_registers_info): Update.
6411 (d10v_dmap_register, d10v_imap_register): Delete functions.
6412 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6413 and "imap_register".
6414 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6415 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6416 * arch-utils.c (generic_remote_translate_xfer_address): Add
6417 "regcache" and "gdbarch" parameters.
6418 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6419 parameter. Change class to multi-arch.
6420 * gdbarch.h, gdbarch.c: Re-generate.
6421 * remote.c (remote_xfer_memory): Use
6422 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6423
e4846b08
JJ
64242003-05-07 Jeff Johnston <[email protected]>
6425
6426 * infrun.c (prev_pc): Move declaration ahead of proceed().
6427 (proceed): Refresh prev_pc value before resuming.
6428 (stop_stepping): Remove code to refresh prev_pc.
6429
6b71b8ac
KW
64302003-05-06 Kris Warkentin <[email protected]>
6431
6432 * nto-tdep.c: Removed stray comment.
6433
47979a4b
KW
64342003-05-06 Kris Warkentin <[email protected]>
6435
6436 * i386-nto-tdep.c: Fix old K&R function definitions.
6437 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6438 Also change add_show_from_set() call to add_setshow_cmd().
6439 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6440
00905d52
AC
64412003-05-05 Andrew Cagney <[email protected]>
6442
6443 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6444 (fprint_dummy_frames): New function.
6445 (maintenance_print_dummy_frames): New function.
6446 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6447 * frame.c (fprint_frame_id): Make global.
6448 * frame.h (fprint_frame_id): Declare.
6449 * Makefile.in (dummy-frame.o): Update dependencies.
6450
b1e29e33
AC
64512003-05-05 Andrew Cagney <[email protected]>
6452
6453 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6454 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6455 SIZEOF_CALL_DUMMY_WORDS.
6456 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6457 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6458 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6459 CALL_DUMMY_BREAKPOINT_OFFSET.
6460 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6461 CALL_DUMMY_START_OFFSET.
6462 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6463 * gdbarch.h, gdbarch.c: Re-generate.
6464 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6465 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6466 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6467 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6468 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6469 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6470 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6471 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6472 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6473 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6474 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6475 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6476 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6477 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6478 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6479
64802003-05-05 Kris Warkentin <[email protected]>
6481
6482 * configure.tgt: Add i[3456]86-*-nto*.
6483 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6484 * nto-tdep.c: New file. Neutrino target support routines.
6485 * nto-tdep.h: New file. Neutrino target header.
6486 * config/tm-qnxnto.h: New file.
6487 * config/i386/i386nto.mt: New file.
6488 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6489
0ce3d317
AC
64902003-05-04 Andrew Cagney <[email protected]>
6491
6492 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6493 (load_infrun_state): Ditto.
6494 (struct thread_info): Drop "prev_func_name" field.
6495 * thread.c (load_infrun_state): Update.
6496 (save_infrun_state): Update.
6497 * infrun.c (prev_func_name): Delete variable.
6498 (init_wait_for_inferior): Do not clear prev_func_name.
6499 (stop_stepping, keep_going, context_switch): Do not swap
6500 prev_func_name.
6501 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6502 instead of PC_IN_SIGTRAMP.
6503
46654a5b
AC
65042003-05-04 Andrew Cagney <[email protected]>
6505
6506 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6507 REGISTER_BYTE with register_offset_hack.
6508 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6509 that REGISTER_BYTE is consistent with the regcache.
6510 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6511 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6512
14b08c1b
MK
65132003-05-04 Mark Kettenis <[email protected]>
6514
04c8243f
MK
6515 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6516 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6517
14b08c1b
MK
6518 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6519
c7a11e01
JB
65202003-05-03 J. Brobecker <[email protected]>
6521
6522 From Thierry Schneider <[email protected]>
6523 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6524 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6525 (mi-cmd-symbol.o): Add rule.
6526
7043d8dc
AC
65272003-05-03 Andrew Cagney <[email protected]>
6528
6529 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6530 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6531 * gdbarch.h, gdbarch.c: Re-generate.
6532 * d10v-tdep.c (d10v_push_dummy_code): New function.
6533 (d10v_gdbarch_init): Set push_dummy_code.
6534 * infcall.c (legacy_push_dummy_code): New function.
6535 (generic_push_dummy_code): New function.
6536 (push_dummy_code): New function.
6537 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6538 instead of dummy_addr, to push_dummy_call. Move call to
6539 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6540 switch.
6541 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6542
92bf2b80
AC
65432003-05-03 Andrew Cagney <[email protected]>
6544
6545 * disasm.h (print_insn): Declare.
6546 * disasm.c (init_gdb_disassemble_info): New function.
6547 (gdb_disassembly): Call init_gdb_disassemble_info.
6548 (gdb_print_insn): New function.
6549 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6550 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6551 * mcore-tdep.c: Include "disasm.h"
6552 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6553 * d10v-tdep.c: Include "disasm.h".
6554 (display_trace): Call gdb_print_insn, instead of print_insn.
6555 (print_insn): Delete function.
6556 * printcmd.c: Include "disasm.h".
6557 (print_insn): Delete function.
6558 (print_formatted): Call gdb_print_insn, instead of print_insn.
6559 * Makefile.in (printcmd.o): Update dependencies.
6560 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6561
27d94c49
AC
65622003-05-02 Andrew Cagney <[email protected]>
6563
82de1e5b
AC
6564 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6565 PC_REGNUM, re-indent.
6566 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6567 PC_REGNUM isn't set.
6568
27d94c49
AC
6569 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6570 * gdbarch.h, gdbarch.c: Re-generate.
6571 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6572 register_virtual_size, pc_regnum, or register_bytes.
6573 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6574 (d10v_register_type): Use D10V_PC_REGNUM.
6575 (d10v_print_registers_info, d10v_read_pc): Ditto.
6576 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6577 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6578
a9c0dc7f
DC
65792003-05-02 David Carlton <[email protected]>
6580
6581 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6582 the name with mstrsave.
6583
e33d66ec
EZ
65842003-05-02 Elena Zannoni <[email protected]>
6585
6586 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6587 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6588 (host_charset_name, target_charset_name): New vars for use by
6589 set/show commands.
6590 (host_charset_enum, target_charset_enum): New enums for set/show
6591 commands.
6592 (set_charset_sfunc, set_host_charset_sfunc,
6593 set_target_charset_sfunc): New functions.
6594 (set_host_charset, set_target_charset): Make static.
6595 (list_charsets, set_host_charset_command,
6596 set_target_charset_command): Delete functions.
6597 (show_charset_command): Rewrite as....
6598 (show_charset): Hook this up with the set/show command mechanism.
6599 (_initialize_charset): Change names of charsets to match the
6600 set/show enums. Use host_charset_name and target_charset_name.
6601 Use set/show mechanism for charset, host-charset, target-charset
6602 commands. Do not make 'show host-charset' and 'show
6603 target-charset' be aliases of 'show charset'.
6604
6605 * charset.h (set_host_charset, set_target_charset): Don't export,
6606 they are not used outside the file.
6607
2b6fd0d8
AC
66082003-05-01 Andrew Cagney <[email protected]>
6609
6610 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6611 (gdb_disassembly): Make "di" non static, always initialize and
6612 cleanup. Always use dis_asm_read_memory.
6613 (gdb_dis_asm_read_memory): Delete function.
6614
6ae2f580
AC
66152003-05-01 Andrew Cagney <[email protected]>
6616
6617 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6618 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6619
810ecf9f
AC
66202003-04-30 Andrew Cagney <[email protected]>
6621
6622 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6623 "tm_print_insn_info".
6624 (TARGET_PRINT_INSN_INFO): Delete macro.
6625 (dis_asm_read_memory): Delete function declaration.
6626 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6627 (tm_print_insn_info): Delete variable definition.
6628 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6629 * gdbarch.h, gdbarch.c: Re-generate.
6630 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6631 "deprecated_tm_print_insn_info".
6632 * mcore-tdep.c (mcore_dump_insn): Ditto.
6633 * mips-tdep.c (mips_gdbarch_init): Ditto.
6634 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6635 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6636 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6637 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6638 instead of TARGET_PRINT_INSN_INFO, add comment.
6639 * s390-tdep.c (s390_get_frame_info): Instead of
6640 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6641 (s390_check_function_end, s390_is_sigreturn): Ditto.
6642 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6643 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6644 * disasm.c: Include "gdbcore.h".
6645 (_initialize_disasm): New function, initialize
6646 "deprecated_tm_print_insn_info".
6647 (deprecated_tm_print_insn_info): New variable.
6648 (dis_asm_read_memory): Moved from "corefile.c", made static.
6649 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6650 * Makefile.in (disasm.o): Update dependencies.
6651
07020390
AC
66522003-04-30 Andrew Cagney <[email protected]>
6653
6654 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6655
a9fa03de
AF
66562003-04-29 Adam Fedor <[email protected]>
6657
6658 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6659 * infcall.c (find_function_addr): Make non-static.
6660 * infcall.h (find_function_addr): Declare.
6661 * Makefile.in (eval.o): Update dependencies.
6662
1bae87b9
AF
66632003-04-28 Adam Fedor <[email protected]>
6664
6665 * symtab.c (symbol_find_demangled_name): Check for and demangle
6666 ObjC symbols.
6667 (symbol_init_demangled_name): Init for language_objc as well.
6668
0ba6dca9
AC
66692003-04-28 Andrew Cagney <[email protected]>
6670
6671 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6672 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6673 * gdbarch.h, gdbarch.c: Re-generate.
6674 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6675 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6676 * inferior.h (deprecated_read_fp): Rename read_fp.
6677 (generic_target_read_fp): Delete declaration.
6678 * regcache.c (generic_target_read_fp): Delete function.
6679 (deprecated_read_fp): Replace read_fp, use
6680 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6681 * d10v-tdep.c (d10v_read_fp): Delete function.
6682 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6683
6684 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6685 deprecated_target_read_fp to generic_target_read_fp.
6686 * sh-tdep.c (sh_gdbarch_init): Ditto.
6687 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6688 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6689 * frv-tdep.c (frv_gdbarch_init): Ditto.
6690
6691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6692 deprecated_fp_regnum.
6693 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6694 * vax-tdep.c (vax_gdbarch_init): Ditto.
6695 * v850-tdep.c (v850_gdbarch_init): Ditto.
6696 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6697 * sh-tdep.c (sh_gdbarch_init): Ditto.
6698 * s390-tdep.c (s390_gdbarch_init): Ditto.
6699 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6700 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6701 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6702 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6704 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6705 * i386-tdep.c (i386_gdbarch_init): Ditto.
6706 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6707 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6708 * frv-tdep.c (frv_gdbarch_init): Ditto.
6709 * cris-tdep.c (cris_gdbarch_init): Ditto.
6710 * avr-tdep.c (avr_gdbarch_init): Ditto.
6711 * arm-tdep.c (arm_gdbarch_init): Ditto.
6712 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6713
6714 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6715 * v850-tdep.c (v850_gdbarch_init): Ditto.
6716 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6717 * sh-tdep.c (sh_gdbarch_init): Ditto.
6718 * s390-tdep.c (s390_gdbarch_init): Ditto.
6719 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6720 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6721 * mips-tdep.c (mips_gdbarch_init): Ditto.
6722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6723 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6724 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6725 * frv-tdep.c (frv_gdbarch_init): Ditto.
6726 * avr-tdep.c (avr_gdbarch_init): Ditto.
6727 * arm-tdep.c (arm_gdbarch_init): Ditto.
6728
6729 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6730 DEPRECATED_FP_REGNUM.
6731 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6732 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6733 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6734 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6735 (sparc32_register_virtual_type): Ditto.
6736 * sh-tdep.c (sh64_frame_chain): Ditto.
6737 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6738 (sh_nofp_frame_init_saved_regs): Ditto.
6739 (sh64_nofp_frame_init_saved_regs): Ditto.
6740 (sh_fp_frame_init_saved_regs): Ditto.
6741 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6742 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6743 * procfs.c (procfs_fetch_registers): Ditto.
6744 (procfs_store_registers): Ditto.
6745 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6746 (store_inferior_registers, fetch_core_registers): Ditto.
6747 (fetch_kcore_registers, clear_regs): Ditto.
6748 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6749 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6750 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6751 * nlm/i386.c (do_status): Ditto.
6752 * mipsv4-nat.c (supply_gregset): Ditto.
6753 * mips-tdep.c: Ditto for comments.
6754 * mips-nat.c (fetch_inferior_registers): Ditto.
6755 (store_inferior_registers, fetch_core_registers): Ditto.
6756 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6757 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6758 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6759 (i386_do_pop_frame, i386_register_type): Ditto.
6760 * hppa-tdep.c (hppa_frame_chain): Ditto.
6761 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6762 (hppa_pop_frame, hppa_read_fp): Ditto.
6763 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6764 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6765 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6766 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6767 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6768 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6769 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6770 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6771 * blockframe.c: Ditto for comments.
6772 * arch-utils.h: Ditto for comments.
6773 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6774 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6775 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6776 * alpha-tdep.h: Ditto for comments.
6777 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6778 (alpha_cannot_store_register): Ditto.
6779 (alpha_push_dummy_frame): Ditto.
6780 * alpha-nat.c (supply_gregset): Ditto.
6781
6782 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6783 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6784 * config/sparc/tm-sparc.h: Update comment.
6785
6786 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6787 deprecated_read_fp instead of TARGET_READ_FP.
6788 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6789 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6790 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6791 deprecated_read_fp instead of read_fp.
6792 * s390-tdep.c (s390_push_arguments): Ditto.
6793 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6794 * frame.h: Ditto in comments.
6795 * frame.c (legacy_get_prev_frame): Ditto.
6796 * dummy-frame.c (dummy_frame_this_id): Ditto.
6797 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6798
d7a27068
AC
67992003-04-28 Andrew Cagney <[email protected]>
6800
6801 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6802 * gdbarch.h, gdbarch.c: Re-generate.
6803 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6804 * vax-tdep.c (_initialize_vax_tdep): Update.
6805 * v850-tdep.c (_initialize_v850_tdep): Update.
6806 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6807 * s390-tdep.c (_initialize_s390_tdep): Update.
6808 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6809 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6810 * mips-tdep.c (_initialize_mips_tdep): Update.
6811 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6812 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6813 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6814 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6815 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6816 * frv-tdep.c (_initialize_frv_tdep): Update.
6817 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6818 (_initialize_cris_tdep): Update.
6819 * arch-utils.c (legacy_print_insn): Update.
6820 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6821
d2630e69
AF
68222003-04-26 Adam Fedor <[email protected]>
6823
6824 * linespec.c (decode_objc): New function to decode ObjC calls
6825 (decode_line_1): Check for ObjC calls (using decode_objc)
6826 * Makefile (linespec.o): Update dependencies.
6827
3086aeae
DJ
68282003-04-26 Daniel Jacobowitz <[email protected]>
6829
6830 * breakpoint.h (struct breakpoint_ops): New.
6831 (struct breakpoint): Add ops member.
6832
6833 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6834 (mention): Use new breakpoint ops member.
6835 (set_raw_breakpoint): Initialize ops field to NULL.
6836 (print_exception_catchpoint, print_one_exception_catchpoint)
6837 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6838 (gnu_v3_exception_catchpoint_ops): New.
6839 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6840
1fbec6c3
AF
68412003-04-25 Adam Fedor <[email protected]>
6842
6843 * Makefile.in (COMMON_OBS): Add objc-lang.o
6844
0ef21242
AC
68452003-04-25 Andrew Cagney <[email protected]>
6846
6847 * d10v-tdep.c (print_insn): Delete function.
6848 (display_trace): Use TARGET_PRINT_INSN.
6849 (_initialize_d10v_tdep): Do not set tm_print_insn.
6850 (d10v_gdbarch_init): Set print_insn.
6851
f75493ed
AC
68522003-04-25 Andrew Cagney <[email protected]>
6853
6854 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6855 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6856 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6857 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6858 (nr_dmap_regs, a0_regnum): ... new functions.
6859 (d10v_print_registers_info): Use a0_regnum, use register_size.
6860 (d10v_register_byte): Delete function.
6861 (d10v_register_raw_size): Delete function.
6862 (d10v_register_type): Use a0_regnum.
6863 (d10v_print_registers_info): Use a0_regnum.
6864 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6865 (d10v_gdbarch_init): Do not set register_byte or
6866 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6867 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6868 extract_address.
6869 (trace_command): Use XCALLOC.
6870 (print_insn): Delete reference to tm_print_insn.
6871 (saved_regs_unwinder): Use store_unsigned_integer instead of
6872 store_address.
6873 * frame.h (FRAME_OBSTACK_CALLOC): Define
6874
2202b100
DC
68752003-04-25 David Carlton <[email protected]>
6876
6877 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6878
4e45ca2e
AF
68792003-04-24 Adam Fedor <[email protected]>
6880
6881 * objc-lang.c: Include "valprint.h"
6882 * Makefile.in (objc-lang.o): Update dependencies.
6883
93de3e7f
AF
68842003-04-24 Adam Fedor <[email protected]>
6885
8ffd9b1b 6886 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6887 architecture dependant compilation and mark as unimplemented
6888 (until they get put in the gdbarch vector).
6889
0f20eeea
DC
68902003-04-23 David Carlton <[email protected]>
6891
6892 * cp-support.c (cp_find_first_component): Accept 'operator' in
6893 more locations.
6894
74cfe982
AC
68952003-04-23 Andrew Cagney <[email protected]>
6896
6897 * infcall.c (call_function_by_hand): Eliminate redundant
6898 indentation. Move "saved_async" and "old_cleanups" to where they
6899 are needed.
8ffd9b1b 6900
52557533
AC
69012003-04-23 Andrew Cagney <[email protected]>
6902
6903 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6904 and "buffer". Move the "name" code to where it is needed.
6905
158775de
AC
69062003-04-23 Andrew Cagney <[email protected]>
6907
6908 * infcall.c (call_function_by_hand): Move variables "start_sp",
6909 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6910 code to ON_STACK switch branch.
8ffd9b1b 6911
ebc7896c
AC
69122003-04-23 Andrew Cagney <[email protected]>
6913
6914 * infcall.c (call_function_by_hand): Make declaration of "i",
6915 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6916 lint.
6917
d727590f
AC
69182003-04-23 Andrew Cagney <[email protected]>
6919
6920 * infcall.c (call_function_by_hand): Delete variable
6921 "n_method_args". Localize "param_type"'s declaration to the loop
6922 that it is used. Reinstate code assigning to said variable -
6923 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6924 Rationalize code using "param_type".
6925
d585e13a
AC
69262003-04-22 Andrew Cagney <[email protected]>
6927
6928 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6929 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6930 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6931 to DEPRECATED_PUSH_RETURN_ADDRESS.
6932
051caad9
KB
69332003-04-22 Kevin Buettner <[email protected]>
6934
6935 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6936 on the DWARF2 register number prior to fetching a register.
6937
77296879
JB
69382003-04-22 J. Brobecker <[email protected]>
6939
6940 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6941 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6942 this macro was always set to 0.
77296879
JB
6943 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6944 considering the fact that this macro was always set to 0.
6945 * hppa-tdep.h (hppa_store_return_value): Likewise.
6946 (hppa_extract_return_value): Likewise.
6947
4252f1df
JB
69482003-04-22 J. Brobecker <[email protected]>
6949
6950 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6951 the hppa-pro target only.
6952
14604c6b
JB
69532003-04-21 J. Brobecker <[email protected]>
6954
6955 Ongoing multi-arch conversion effort for HP/UX:
6956 * config/pa/tm-hppa.h: Move all macro that are no longer
6957 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6958 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6959
77eb01d1
JB
69602003-04-21 J. Brobecker <[email protected]>
6961
6962 * config/pa/tm-hppa.h: Obsolete a section that was only used
6963 for hppa-pro.
6964
61995b3b
JB
69652003-04-21 J. Brobecker <[email protected]>
6966
6967 Ongoing multi-arch conversion for HP/UX.
6968 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6969 if already defined (allows hppa64 to stay non-multiarched for now).
6970 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6971
4aa79dcc
AC
69722003-04-21 Andrew Cagney <[email protected]>
6973
6974 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6975
0f751ff2
AC
69762003-04-21 Andrew Cagney <[email protected]>
6977
6978 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6979 "i386_num_mmx_regs".
6980
04714b91
AC
69812003-04-21 Andrew Cagney <[email protected]>
6982
6983 * infcall.c: New file.
6984 * infcall.h: New file.
6985 * valarith.c: Include "infcall.h".
6986 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6987 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6988 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6989 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6990 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6991 (SFILES): Add "infcall.c"
6992 (COMMON_OBS): Add "infcall.o".
6993 (infcall.o): Specify dependencies.
6994 * value.h (call_function_by_hand): Delete declaration.
6995 * inferior.h (run_stack_dummy): Delete declaration.
6996 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6997 (run_stack_dummy): Move to "infcall.c", merged into
6998 call_function_by_hand.
6999 * valops.c (call_function_by_hand): Moved to "infcall.c".
7000 (find_function_addr, value_arg_coerce): Ditto.
7001 (unwindonsignal_p, coerce_float_to_double): Ditto.
7002 (_initialize_valops): Move "set/show coerce-float-to-double", and
7003 "set/show unwindonsignal" commands to "infcall.c".
7004 * v850-tdep.c, target.h: Update comments.
7005 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7006 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7007 (sh64_init_extra_frame_info): Update comments.
7008 * mn10300-tdep.c: Update comments.
7009 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7010 * config/sparc/tm-sparc.h: Update comments.
7011 * breakpoint.h: Update comments.
7012 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7013 * arm-tdep.c: Update comment.
7014
f9d3c2a8
MK
70152003-04-19 Mark Kettenis <[email protected]>
7016
c40e1eab
MK
7017 * i386-tdep.c (i386_num_register_names): New variable.
7018 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7019 (MM0_REGNUM): Remove redundant parentheses in define.
7020 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7021 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7022 i386_mxcsr_regnum_p): Remove redundant parentheses.
7023 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7024
94ea66b3
MK
7025 * i386-tdep.c (i386_extract_return_value,
7026 i386_store_return_value): Correct check for availability of
7027 floating-point registers.
7028
54299a1d
MK
7029 * i386-tdep.c (i386_frame_num_args): Remove function.
7030 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7031
c86c27af
MK
7032 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7033 mmx_regnum_to_fp_regnum. Adjust all callers.
7034
f9d3c2a8
MK
7035 * i386-tdep.c (i386_get_longjmp_target): Use
7036 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7037 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7038 extract_address.
7039
94ba74a9
MK
70402003-04-19 Mark Kettenis <[email protected]>
7041
7042 * core-regset.c: Update comments to reflect reality. Re-order
7043 includes.
7044 (fetch_core_registers): Use switch instead of if. Remove
7045 redundant prototype.
7046
4074e13c
JB
70472003-04-18 Jim Blandy <[email protected]>
7048
7049 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7050 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7051
e3ab4aba
RH
70522003-04-17 Richard Henderson <[email protected]>
7053
7054 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7055
627bf7c1
EZ
70562003-04-17 Michael Snyder <[email protected]>
7057 Karen Bennet <[email protected]>
7058
7059 Committed by Elena Zannoni <[email protected]>
7060 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7061
514621a9
EZ
70622003-04-17 Elena Zannoni <[email protected]>
7063
7064 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7065 value if the return type is void.
514621a9 7066
b4acd559
JJ
70672003-04-17 Jeff Johnston <[email protected]>
7068
7069 * thread-db.c: Reindented.
8ffd9b1b 7070
530b167e 70712003-04-17 Jeff Johnston <[email protected]>
8ffd9b1b
AJ
7072
7073 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7074 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7075 as types.
7076
0a48e7e8
MS
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
8ffd9b1b 7100
ab9fe00e
KB
71012003-04-16 Kevin Buettner <[email protected]>
7102
610a3745 7103 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7104 the size of ``long double'' to 16, instead of 8.
7105
e64a344c
MK
71062003-04-16 Mark Kettenis <[email protected]>
7107
7108 * i386-linux-nat.c: Add some whitespace to make things more
7109 readable.
7110 (fetch_register, store_register, fetch_inferior_registers,
7111 store_inferior_registers): Get rid of assignment in if-statement.
7112 (store_register): Fix typo in error message.
7113
25d41031
AC
71142003-04-16 Andrew Cagney <[email protected]>
7115
7116 * utils.c (xmmalloc): Always allocate something, matches
7117 libiberty/xmalloc's semantics.
7118 (xmrealloc, xmcalloc): Ditto.
7119
c50901fd
AC
71202003-04-16 Andrew Cagney <[email protected]>
7121
7122 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7123 update comments.
7124 (get_frame_type): Initialize unwind and type when needed.
7125 (get_frame_id, frame_register_unwind): Ditto.
7126
f81824a9
AC
71272003-04-16 Andrew Cagney <[email protected]>
7128
7129 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7130 obsolete.
7131 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7132 * sparcl-stub.c: Obsolete file.
7133 * config/sparc/tm-sparclet.h: Obsolete file.
7134 * sparclet-stub.c: Obsolete file.
7135 * sparclet-rom.c: Obsolete file.
7136 * sparcl-tdep.c: Obsolete file.
7137 * config/sparc/tm-sparclite.h: Obsolete file.
7138 * config/sparc/sparclite.mt: Obsolete file.
7139 * config/sparc/sparclet.mt: Obsolete file.
7140 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7141 sparc86x-*-* obsolete.
7142
9219021c
DC
71432003-04-15 David Carlton <[email protected]>
7144
7145 * Makefile.in (SFILES): Add cp-namespace.c.
7146 (COMMON_OBS): Add cp-namespace.o.
7147 (block.o): Depend on gdb_obstack_h and cp_support_h.
7148 (buildsym.o): Depend on cp_support_h.
7149 (cp-namespace.o): New.
7150 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7151 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7152 (dwarf2read.o): Depend on cp_support_h.
7153 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7154 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7155 processing_current_namespace.
7156 (read_namespace): Update processing_current_namespace; check for
7157 anonymous namespaces.
7158 (dwarf2_name): New function.
7159 (dwarf2_extension): Ditto.
7160 * cp-support.h: Update copyright, contributors.
7161 Add inclusion guards.
7162 Add opaque declaration for structs obstack, block, symbol.
7163 (struct using_direct): New struct.
7164 Add declarations for cp_find_first_component,
7165 cp_entire_prefix_len, processing_has_namespace_info,
7166 processing_current_namespace, cp_is_anonymous,
7167 cp_add_using_directive, cp_initialize_namespace,
7168 cp_finalize_namespace, cp_set_block_scope,
7169 cp_scan_for_anonymous_namespaces.
7170 * cp-namespace.c: New file.
7171 * cp-support.c: Update copyright.
7172 Include ctype.h, gdb_assert.h, gdbcmd.h.
7173 New variable maint_cplus_cmd_list.
7174 (cp_find_first_component): New function.
7175 (cp_entire_prefix_len, maint_cplus_command)
7176 (first_component_command, _initialize_cp_support): Ditto.
7177 * buildsym.c: Include cp-support.h.
7178 New variable using_list.
7179 (add_symbol_to_list): Check for anonymous namespaces.
7180 (finish_block): Set block's scope.
7181 (start_symtab): Initialize C++ namespace support.
7182 (end_symtab): Finalize C++ namespace support.
7183 * block.h: Add opaque declarations for structs
7184 block_namespace_info, using_direct, and obstack.
7185 Add declarations for block_set_scope and block_set_using.
7186 (struct block): Add 'language_specific' member.
7187 (BLOCK_NAMESPACE): New macro.
7188 * block.c: Include gdb_obstack.h and cp-support.h.
7189 (struct block_namespace_info): New struct.
7190 (block_set_scope): New function.
7191 (block_set_using, block_initialize_namespace): Ditto.
7192
d5a921c9
KB
71932003-04-14 Kevin Buettner <[email protected]>
7194
7195 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7196 (locate_base): Return early if there aren't any link map offsets.
7197 (svr4_solib_create_inferior_hook): Warn if shared library support
7198 is unavailable.
7199
d2a52b27
DC
72002003-04-14 David Carlton <[email protected]>
7201
7202 * symtab.c (symbol_set_names): Add prefix when storing Java names
7203 in hash table. Fix for PR java/1039.
7204
980cae7a
DC
72052003-04-14 David Carlton <[email protected]>
7206
7207 * symtab.c (symbol_set_names): Rename 'name' arg to
7208 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7209 * symtab.h: Change 'name' argument in declaration of
7210 symbol_set_names to 'linkage_name'.
7211 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7212
e227b13c
AC
72132003-04-14 Andrew Cagney <[email protected]>
7214
7215 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7216 return the fully sign-extended register value.
7217 (get_frame_pointer): Ditto.
7218 (mips_pop_frame): Initialize "proc_desc" after checking for a
7219 dummy frame.
7220
36712a20
AC
72212003-04-14 Andrew Cagney <[email protected]>
7222
7223 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7224 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7225 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7226 (mips_push_register): Delete function.
7227 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7228 PUSH_FP_REGNUM.
7229
44ea7b70
JB
72302003-04-14 Jim Blandy <[email protected]>
7231
7232 * symmisc.c: #include "gdb_regex.h".
7233 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7234 functions.
7235 * maint.c (maintenance_list_command): New function.
7236 (_initialize_maint_cmds): Register the above as commands.
7237 * symtab.h (maintenance_list_symtabs,
7238 maintenance_list_psymtabs): New declarations.
7239 * cli/cli-cmds.c (maintenancelistlist): New variable.
7240 (init_cmd_lists): Initialize it.
7241 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7242 * gdbcmd.h (maintenancelistlist): New declaration.
7243 * Makefile.in (symmisc.o): Update dependencies.
7244
2d0c7962
EZ
72452003-04-14 Elena Zannoni <[email protected]>
7246
7247 * s390-nat.c: Include asm/types.h for addr_t.
7248
1947a811
CV
72492003-04-14 Corinna Vinschen <[email protected]>
7250
7251 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7252 actually incoming type.
7253
adb616d7
AC
72542003-04-13 Andrew Cagney <[email protected]>
7255
7256 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7257 get_next_frame and get_frame_saved_regs.
7258
9b5e151c
AC
72592003-04-13 Andrew Cagney <[email protected]>
7260
7261 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7262 of gdbarch_num_regs.
7263
ef6e7e13
AC
72642003-04-13 Andrew Cagney <[email protected]>
7265
7266 * frame.h: Mention what replaced what in "struct frame_info".
7267 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7268 deprecated_update_frame_base_hack and
7269 deprecated_update_frame_pc_hack.
7270 * hppa-tdep.c: Ditto.
7271
61fbb938
DJ
72722003-04-13 Daniel Jacobowitz <[email protected]>
7273
7274 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7275 to read_reg and update its comment. Remove regnum member.
7276 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7277 Don't call read_reg when setting in_reg. Call read_reg to get
7278 the frame base if it's in a register. Return the register number
7279 on the stack instead of in the context. Remove extra arguments
7280 to read_reg.
7281 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7282 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7283 the register number on the expression stack.
7284 (needs_frame_read_reg): Remove extra arguments.
7285
0d53c4c4
DJ
72862003-04-13 Daniel Jacobowitz <[email protected]>
7287
7288 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7289 made non-static.
7290 (execute_stack_op): All callers updated.
7291 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7292 * dwarf2loc.c (find_location_expression): New function.
7293 (dwarf_expr_frame_base): Call it.
7294 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7295 (dwarf2_tracepoint_var_ref): New function, broken out from
7296 locexpr_tracepoint_var_ref.
7297 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7298 Make static.
7299 (loclist_read_variable, loclist_read_needs_frame): New functions.
7300 (loclist_describe_location, loclist_tracepoint_var_ref): New
7301 functions.
7302 (dwarf2_loclist_funcs): New struct location_funcs.
7303 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7304 (struct dwarf2_locexpr_baton): Add comments.
7305 (dwarf2_loclist_funcs): New extern.
7306 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7307 base_address and base_known.
7308 (dwarf_loc_buffer): New variable.
7309 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7310 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7311 (dwarf2_has_info): Initialize dwarf_loc_offset.
7312 (dwarf2_build_psymtabs): Read in .debug_loc.
7313 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7314 DWARF_LOC_SIZE.
7315 (psymtab_to_symtab_1): Likewise. Move base address calculation
7316 here, from...
7317 (dwarf2_get_pc_bounds): ... here. Use the base address from
7318 cu_header.
7319 (dwarf2_symbol_mark_computed): Handle location lists.
7320
6aca59a3
DJ
73212003-04-13 Daniel Jacobowitz <[email protected]>
7322
7323 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7324 if the linkage name demangled successfully.
7325
aca1fcd0
MK
73262003-04-13 Mark Kettenis <[email protected]>
7327
97095916
MK
7328 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7329 disassmbly_flavour): Removed.
7330
aca1fcd0
MK
7331 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7332
562a961f
MK
73332003-04-13 Mark Kettenis <[email protected]>
7334
7335 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7336
bd013d54
AC
73372003-04-12 Andrew Cagney <[email protected]>
7338
7339 * frame.h (struct frame_info): Move definition from here ...
7340 * frame.c (struct frame_info): ... to here.
7341
167ef8b1
AC
73422003-04-12 Andrew Cagney <[email protected]>
7343
7344 * gdbthread.h (save_infrun_state): Delete parameter
7345 "prev_func_start".
7346 (struct thread_info): Delete field "prev_func_start".
7347 (load_infrun_state): Ditto.
7348 * thread.c (load_infrun_state, save_infrun_state): Update.
7349 * infrun.c (prev_func_start): Delete variable.
7350 (context_switch, init_wait_for_inferior): Update.
7351 (stop_stepping, keep_going): Update.
7352
da3331ec
AC
73532003-04-12 Andrew Cagney <[email protected]>
7354
7355 * gdbarch.sh: Add missing opaque declarations.
7356 * gdbarch.h: Regnerate.
7357 * symtab.h: Add missing opaque declarations.
7358 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7359 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7360 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7361 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7362 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7363 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7364 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7365 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7366 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7367 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7368 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7369 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7370 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7371
18adea3f
AC
73722003-04-11 Andrew Cagney <[email protected]>
7373
7374 * frame.c (get_frame_id): Return this frame's "id".
7375 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7376 function start.
7377 (legacy_saved_regs_this_id): Replace function body with
7378 internal-error.
7379 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7380 FRAME_OBSTACK_ZALLOC.
7381 (create_new_frame): Mark the frame ID as valid.
7382
2252e863
AO
73832003-04-11 Alexandre Oliva <[email protected]>
7384
7385 * Makefile.in (libbfd_h): Added missing setting.
7386 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7387 according to the selected ABI.
7388
a8245ab8
JJ
73892003-04-11 Jeff Johnston <[email protected]>
7390
7391 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7392
6913c89a
AC
73932003-04-11 Andrew Cagney <[email protected]>
7394
7395 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7396 SAVED_PC_AFTER_CALL.
7397 * gdbarch.h, gdbarch.c: Regenerate.
7398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7399 * x86-64-tdep.c (x86_64_init_abi): Update.
7400 * vax-tdep.c (vax_gdbarch_init): Update.
7401 * v850-tdep.c (v850_gdbarch_init): Update.
7402 * sparc-tdep.c (sparc_gdbarch_init): Update.
7403 * sh-tdep.c (sh_gdbarch_init): Update.
7404 * s390-tdep.c (s390_gdbarch_init): Update.
7405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7406 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7408 * mips-tdep.c (mips_gdbarch_init): Update.
7409 * mcore-tdep.c (mcore_gdbarch_init): Update.
7410 * m68k-tdep.c (m68k_gdbarch_init): Update.
7411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7412 * ia64-tdep.c (ia64_gdbarch_init): Update.
7413 (ia64_saved_pc_after_call): Update declaration.
7414 * i386ly-tdep.c (i386lynx_init_abi): Update.
7415 * i386-tdep.c (i386_gdbarch_init): Update.
7416 * hppa-tdep.c (hppa_gdbarch_init): Update.
7417 * h8300-tdep.c (h8300_gdbarch_init): Update.
7418 * frv-tdep.c (frv_gdbarch_init): Update.
7419 * cris-tdep.c (cris_gdbarch_init): Update.
7420 * avr-tdep.c (avr_gdbarch_init): Update.
7421 * arm-tdep.c (arm_gdbarch_init): Update.
7422 * alpha-tdep.c (alpha_gdbarch_init): Update.
7423 * ns32knbsd-nat.c (frame_num_args): Update.
7424 * ns32k-tdep.c (umax_frame_num_args): Update.
7425 * mips-tdep.c (mips_init_frame_pc_first): Update.
7426 * infrun.c (step_over_function): Update.
7427 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7428 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7429 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7430 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7431 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7432 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7433 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7434 * arch-utils.c (init_frame_pc_default): Update.
7435 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7436 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7437 declaration.
8ffd9b1b 7438
38edeab8
AC
74392003-04-11 Andrew Cagney <[email protected]>
7440
7441 * i387-tdep.c: Update copyright.
7442 (i387_to_double): Delete function.
7443 (double_to_i387): Delete function.
7444
81f8a206
AC
74452003-04-10 Andrew Cagney <[email protected]>
7446
7447 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7448 frame's function's address. Simplify.
7449 (d10v_frame_unwind_cache): Check that the frame's function is
7450 non-zero.
7451
6e691f7a
JB
74522003-04-10 Jim Blandy <[email protected]>
7453
7454 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7455 call to set_gdbarch_deprecated_push_arguments.
7456
7f78e237
AC
74572003-04-10 Andrew Cagney <[email protected]>
7458
7459 * frame.c (fprint_frame_id): New function.
7460 (fprint_frame_type, fprint_frame): New function.
7461 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7462 (create_sentinel_frame, get_frame_id): Ditto.
7463 (frame_id_p, frame_id_eq): Ditto.
7464 (frame_id_inner, create_new_frame): Ditto.
7465 (legacy_get_prev_frame, get_prev_frame): Ditto.
7466 (deprecated_update_frame_pc_hack): Ditto.
7467 (frame_register_unwind): Ditto.
7468 (deprecated_update_frame_base_hack): Ditto.
7469
f870b49b
CV
74702003-04-10 Corinna Vinschen <[email protected]>
7471
7472 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7473 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7474 frame_chain function.
7475 * Makefile.in: Add dependencies due to above change.
7476
7c86889b
CV
74772003-04-10 Corinna Vinschen <[email protected]>
7478
7479 * blockframe.c (legacy_frame_chain_valid): Move call to
7480 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7481 inside_entry_file.
7482
d0a55772
AC
74832003-04-09 Andrew Cagney <[email protected]>
7484
7485 * frame.h (struct frame_id): Replace "pc" and "base" with
7486 "stack_addr" and "code_addr". Update comments.
7487 (frame_id_build): Update parameter names and comment.
7488 (struct frame_info): Replace "id_p" and "id" with "this_id".
7489 * dummy-frame.c (dummy_frame_this_id): Update.
7490 * breakpoint.c (print_one_breakpoint): Update.
7491 * frame.c (get_frame_id): Update.
7492 (get_frame_base, frame_id_build): Update.
7493 (create_sentinel_frame, legacy_get_prev_frame): Update.
7494 (deprecated_update_frame_base_hack): Update.
7495 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7496 (frame_id_inner): Ditto.
7497
ac16bf07
AC
74982003-04-09 Andrew Cagney <[email protected]>
7499
7500 * defs.h (gdb_print_host_address): Make "addr" parameter a
7501 pointer constant.
7502 * utils.c (gdb_print_host_address): Update.
7503
366cfc9e
KB
75042003-04-09 Kevin Buettner <[email protected]>
7505
7506 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7507 register number for R0 is 0.
7508
cd983b5c
JB
75092003-04-09 J. Brobecker <[email protected]>
7510
7511 * frame.h (struct gdbarch): Add opaque structure definition
7512 to avoid a compilation warning on LynxOS 4.0.
7513
d1340264
AC
75142003-04-09 Andrew Cagney <[email protected]>
7515
7516 * frame.h (struct frame_info): Delete field "pc". Replace
7517 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7518 structure.
7519 * frame.c (frame_pc_unwind): Update.
7520 (create_sentinel_frame): Do not set "pc".
7521 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7522 (get_frame_pc): Call frame_pc_unwind.
7523 (deprecated_update_frame_pc_hack): Update.
7524 (create_new_frame): Use "pc" not "->pc".
7525
90a6fffb
AC
75262003-04-09 Andrew Cagney <[email protected]>
7527
7528 * frame.c (get_frame_id): Eliminate code updating "frame".
7529 (legacy_get_prev_frame): Ditto.
7530 (get_frame_base): Return id.base directly.
7531 (deprecated_update_frame_base_hack): Update "id.base".
7532 * frame.h (struct frame_info): Delete field "frame".
7533
2fbce691
AC
75342003-04-09 Andrew Cagney <[email protected]>
7535
7536 * NEWS: Mention that the "Sequent family" is obsolete.
7537 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7538 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7539 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7540 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7541 * config/i386/tm-ptx4.h: Obsolete file.
7542 * config/i386/tm-ptx.h: Obsolete file.
7543 * symm-tdep.c: Obsolete file.
7544 * config/i386/symmetry.mt: Obsolete file.
7545 * config/i386/tm-symmetry.h: Obsolete file.
7546 * symm-nat.c: Obsolete file.
7547 * config/i386/nm-symmetry.h: Obsolete file.
7548 * config/i386/xm-symmetry.h: Obsolete file.
7549 * config/i386/symmetry.mh: Obsolete file.
7550 * config/i386/nm-ptx4.h: Obsolete file.
7551 * config/i386/ptx4.mh: Obsolete file.
7552 * config/i386/ptx.mt: Obsolete file.
7553 * config/i386/ptx.mh: Obsolete file.
7554 * config/i386/xm-ptx4.h: Obsolete file.
7555 * config/i386/xm-ptx.h: Obsolete file.
7556
78c43945
AC
75572003-04-09 Andrew Cagney <[email protected]>
7558
7559 Obsolete mips*-*-mach3*.
7560 * NEWS: Mention that mips*-*-mach3* is obsolete.
7561 * m3-nat.c: Obsolete file.
7562 * config/nm-m3.h: Obsolete file.
7563 * config/mips/tm-mipsm3.h: Obsolete file.
7564 * config/mips/mipsm3.mt: Obsolete file.
7565 * config/mips/mipsm3.mh: Obsolete file.
7566 * config/mips/xm-mipsm3.h: Obsolete file.
7567 * mipsm3-nat.c: Obsolete file.
7568 * configure.host: Obsolete mips-dec-mach3*.
7569 * configure.tgt: Obsolete mips*-*-mach3*.
7570
f1908289
AC
75712003-04-09 Andrew Cagney <[email protected]>
7572
7573 * doublest.h: Update copyright.
7574 (deprecated_store_floating, deprecated_extract_floating): Rename
7575 store_floating and extract_floating. Update comments.
7576 * doublest.c: Update copyright.
7577 (extract_floating_by_length): Replace extract_floating.
7578 (store_floating_by_length): Replace store_floating.
7579 (deprecated_extract_floating): New function.
7580 (deprecated_store_floating): New function.
7581 (extract_typed_floating): Call extract_floating_by_length.
7582 (store_typed_floating): Call store_floating_by_length.
7583 * x86-64-tdep.c (x86_64_store_return_value): Update.
7584 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7585 (sh64_extract_return_value): Update.
7586 (sh_sh4_register_convert_to_virtual): Update.
7587 (sh_sh64_register_convert_to_virtual): Update.
7588 (sh_sh4_register_convert_to_raw): Update.
7589 (sh_sh64_register_convert_to_raw): Update.
7590 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7591 (rs6000_register_convert_to_raw): Update.
7592 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7593 (ia64_register_convert_to_raw): Update.
7594 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7595 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7596 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7597 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7598 (alpha_register_convert_to_raw): Update.
7599
4443bd83
AC
76002003-04-08 Andrew Cagney <[email protected]>
7601
7602 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7603 * gdbarch.h, gdbarch.c: Re-generate.
7604 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7605 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7606 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7607 conditionally, use frame_pc_unwind as an alternative. Add
7608 comments.
7609 * arch-utils.c (init_frame_pc_default): Only call
7610 SAVED_PC_AFTER_CALL when available.
7611
c0236d92
EZ
76122003-04-08 Elena Zannoni <[email protected]>
7613
fbe586ae 7614 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7615 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7616 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7617 (start_remote): Ditto.
7618 (handle_inferior_event): Ditto.
7619 (save_inferior_status): Ditto.
7620 (restore_inferior_status): Ditto.
7621 * infcmd.c (attach_command): Ditto.
7622 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7623 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7624 * alpha-tdep.c (heuristic_proc_start): Ditto.
7625 * mips-tdep.c (heuristic_proc_start): Ditto.
7626 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7627 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7628 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7629 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7630 * remote-vx.c (vx_create_inferior): Ditto.
7631
76322003-04-08 Elena Zannoni <[email protected]>
7633
7634 * infrun.c (stop_soon_quietly): Make it an enum, to better
7635 override the default behavior of handle_inferior_event.
7636 (clear_proceed_status): Update uses of stop_soon_quietly to
7637 reflect that it is now an enum.
7638 (start_remote): Ditto.
7639 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7640 is set to handle the new GNU/Linux kernel behavior for
7641 attach/sigstop. Update uses of stop_soon_quietly.
7642 * inferior.h (enum stop_kind): New enum.
7643 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7644 Reset normal handle_inferior_event behavior, afterwards.
7645 * fork-child.c (startup_inferior): Update.
7646 * alpha-tdep.c (heuristic_proc_start): Update.
7647 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7648 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7649 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7650 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7651 * remote-vx.c (vx_create_inferior): Update.
7652 * mips-tdep.c (heuristic_proc_start): Update.
7653
1211bce3
EZ
76542003-04-07 Elena Zannoni <[email protected]>
7655
7656 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7657 be freed more than once, causing wild memory corruptions.
1211bce3 7658 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7659 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7660 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7661 with the "core" target.
1211bce3 7662
f0ef6b29
KB
76632003-04-07 Kevin Buettner <[email protected]>
7664
7665 * mips-tdep.c (mips_print_fp_register): New function, created from
7666 do_fp_register_row(). Registers are now (also) printed as hex.
7667 Only one register is printed per row.
7668 (mips_print_register, do_fp_register_row): Print floating point
7669 registers with mips_print_fp_register().
7670
8cf71652
AC
76712003-04-06 Andrew Cagney <[email protected]>
7672
5e488a7b
AC
7673 * valprint.h (inspect_it): Add extern declaration.
7674 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7675 (selectors_info, classes_info): Ditto.
7676 (find_objc_msgcall): Fix indentation.
7677 (objc_printstr): Delete extern declarations.
7678
8cf71652
AC
7679 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7680
e6ba3bc9
AC
76812003-04-06 Andrew Cagney <[email protected]>
7682
7683 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7684 Update comment.
7685 * frame.c (legacy_saved_regs_this_id): Update.
7686 (legacy_get_prev_frame): Update.
7687 * xstormy16-tdep.c: Update comment.
7688 * sparc-tdep.c (sparc_frame_chain): Update comment.
7689 * blockframe.c (legacy_frame_chain_valid): Update.
7690
55e1d7e7
AC
76912003-04-06 Andrew Cagney <[email protected]>
7692
996179ee
AC
7693 * valprint.c (val_print_type_code_int): Delete #ifdef
7694 PRINT_TYPELESS_INTEGER code.
7695
55e1d7e7
AC
7696 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7697 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7698 multi-arch definition.
7699 * gdbarch.h: Re-generate.
7700
43bd9a9e
AC
77012003-04-05 Andrew Cagney <[email protected]>
7702
7703 Eliminate FRAME_FIND_SAVED_REGS.
7704 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7705 Change FSR parameter to a pointer.
7706 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7707 Assume FSR parameter is a pointer.
7708 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7709 Make fsr a pointer.
7710 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7711 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7712 saved_regs a pointer.
7713 (hppa_frame_saved_pc): Ditto.
7714 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7715 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7716 pointer.
7717 (restore_pc_queue): Make fsr a pointer.
7718 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7719 (hppa_frame_chain): Make saved_regs a pointer, call
7720 hppa_frame_init_saved_regs.
7721 * sparc-tdep.c: Include "gdb_assert.h".
7722 (sparc_frame_find_saved_regs): Replace internal_error with
7723 gdb_assert.
7724 * remote-vxsparc.c (vx_read_register): Delete reference to
7725 FRAME_FIND_SAVED_REGS.
7726 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7727 * gdbarch.h: Regenerate.
7728 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7729 (deprecated_get_frame_saved_regs): Delete declaration.
7730 (struct frame_saved_regs): Delete definition.
7731 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7732 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7733 (hppa_frame_find_saved_regs): Delete declaration.
7734 (FRAME_FIND_SAVED_REGS): Delete macro.
7735 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7736 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7737 FRAME_FIND_SAVED_REGS in comment.
7738
be41e9f4
AC
77392003-04-05 Andrew Cagney <[email protected]>
7740
7741 * frame.c (frame_func_unwind, get_frame_func): New functions.
7742 * frame.h (get_frame_func, frame_func_unwind): Declare.
7743 (struct frame_info): Add field "prev_func" for caching the
7744 previous frame's function address.
7745 * arm-tdep.c (arm_frameless_function_invocation): Combine
7746 get_pc_function_start and get_frame_pc into get_frame_func.
7747 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7748 (sh64_nofp_frame_init_saved_regs): Ditto.
7749 * s390-tdep.c (s390_function_start): Ditto.
7750 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7751 (rs6000_frameless_function_invocation): Ditto.
7752 (rs6000_frame_saved_pc): Ditto.
7753 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7754 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7755 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7756 (i386_frame_init_saved_regs): Ditto.
7757 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7758 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7759 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7760 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7761 * blockframe.c (frameless_look_for_prologue): Ditto.
7762
a01dd7cc
AC
77632003-04-05 Andrew Cagney <[email protected]>
7764
7765 * frame.c (legacy_get_prev_frame): Link prev to next at the
7766 function start. Update comments.
7767
5e5592e6
AC
77682003-04-05 Andrew Cagney <[email protected]>
7769
7770 * frame.c (get_frame_id): Update comment.
7771 (legacy_get_prev_frame): Update comment.
7772 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7773 * gdbarch.h: Regenerate.
7774 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7775 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7776
6fba5002
AC
77772003-04-05 Andrew Cagney <[email protected]>
7778
7779 * stack.c (print_frame_info): Use get_frame_pc.
7780
7df05f2b
AC
77812003-04-04 Andrew Cagney <[email protected]>
7782
7783 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7784 the frame's type from the unwinder.
7785 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7786 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7787 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7788 (get_frame_base_address): Use get_frame_type.
7789 (get_frame_locals_address, get_frame_args_address): Ditto.
7790 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7791 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7792 (struct frame_info): Add comment explaining why the frame contains
7793 a "type" field.
7794 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7795 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7796 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7797 NORMAL_FRAME.
7798 * frame-unwind.h: Include "frame.h".
7799 (struct frame_unwind): Add "type" field.
7800 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7801
11889732
AC
78022003-04-04 Andrew Cagney <[email protected]>
7803
7804 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7805 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7806 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7807 get_frame_base.
7808 (d10v_unwind_dummy_id): Use frame_id_build.
7809 * frame.c (find_frame_sal): Use get_frame_pc.
7810 (create_new_frame): Use deprecated_update_frame_pc_hack and
7811 deprecated_update_frame_base_hack.
7812 (create_sentinel_frame): Add comment about ->pc going away.
7813 (get_prev_frame): Add comment about ->pc going away.
7814 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7815 frame_id_build, deprecated_update_frame_pc_hack and
7816 deprecated_update_frame_base_hack.
7817 (select_frame): Use get_frame_pc.
7818 (legacy_saved_regs_this_id): Use frame_id_build.
7819
50c46a0d
EZ
78202003-04-04 Elena Zannoni <[email protected]>
7821
fbe586ae
RH
7822 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7823 signed integer case.
7824 (classify_argument): Handle enumerations and references.
50c46a0d 7825
50bbdbd9
AC
78262003-04-04 Andrew Cagney <[email protected]>
7827
7828 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7829 ID to NULL.
7830
36018d2e
AF
78312003-04-01 Adam Fedor <[email protected]>
7832
7833 * gdb/objc-lang.c (selectors_info): Replace calls to
7834 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7835 SYMBOL_NATURAL_NAME.
7836 (classes_info, find_methods): Likewise.
7837
35cec841
KB
78382003-04-03 Kevin Buettner <[email protected]>
7839
7840 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7841 ``mach'' to the value determined by bfd_default_set_arch_mach().
7842
43136899
BR
78432003-04-02 Bob Rossi <[email protected]>
7844
7845 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7846 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7847 (mi-cmd-file.o): Update dependencies.
7848
040b99fd
KB
78492003-04-01 Kevin Buettner <[email protected]>
7850
7851 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7852 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7853
9a3d7dfd
AF
78542003-04-01 Adam Fedor <[email protected]>
7855
7856 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7857 * language.h (struct language_defn): Add la_demangle.
7858 (language_demangle): Declare.
7859 * language.c (language_demangle): New function.
7860 (unk_lang_demangle): Likewise.
7861 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7862 Add ukn_lang_demangle.
9a3d7dfd 7863 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7864 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7865 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7866 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7867 * jv-lang.c (java_demangle): New function
7868 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7869 * objc-lang.c (objc_demangle): Add options argument
7870 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7871 * maint.c (maintenance_demangle): Replace switch with
7872 call to language_demangle.
7873 * utils.c (fprintf_symbol_filtered): Likewise.
7874
5e074003
AC
78752003-04-01 Andrew Cagney <[email protected]>
7876
7877 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7878 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7879 PRINT_TYPELESS_INTEGER.
7880 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7881 PUSH_RETURN_ADDRESS.
7882
270cb5d6
AC
78832003-04-01 Andrew Cagney <[email protected]>
7884
7885 * Makefile.in (d10v-tdep.o): Update dependencies.
7886 * d10v-tdep.c: Include "frame-base.h".
7887 (d10v_frame_unwind): Make constant.
7888 (d10v_frame_base_address): New function.
7889 (d10v_frame_base): New variable.
7890 (d10v_gdbarch_init): Set frame_base default.
7891 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7892 comment for base.
7893 (d10v_frame_unwind_cache): Set and use "prev_sp".
7894 (d10v_frame_this_id): Use the previous frame's inner most stack
7895 address and this frame's func address for the frame ID. Use
7896 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7897
6bfb3e36
AC
78982003-04-01 Andrew Cagney <[email protected]>
7899
7900 * frame.h (get_frame_locals_address, get_frame_args_address):
7901 Refer to the base address, instead of the address of the first
7902 local or parameter.
8ffd9b1b 7903
da62e633
AC
79042003-04-01 Andrew Cagney <[email protected]>
7905
7906 Add frame debug info addresses:
7907 * frame-base.c: New file.
7908 * frame-base.h: New file.
7909 * frame.h (struct frame_base): Add opaque declaration.
7910 (get_frame_base): Update comment.
7911 (get_frame_base_address): Declare.
7912 (get_frame_locals_address): Declare.
7913 (get_frame_args_address): Declare.
7914 (struct frame_info): Add "base" and "base_cache". Update
7915 comments on the unwinder.
7916 * frame.c: Include "frame-base.h".
7917 (get_frame_locals_address): New function.
7918 (get_frame_base_address): New function.
7919 (get_frame_args_address): New function.
7920 * findvar.c (read_var_value): Use get_frame_locals_address and
7921 get_frame_args_address.
7922 * stack.c (frame_info): Use get_frame_locals_address and
7923 get_frame_args_address.
7924 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7925 moved to "frame-base.c".
7926 * printcmd.c (print_frame_nameless_args): Ditto.
7927 * symtab.h (address_class): Update comments.
7928 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7929 get_frame_base_address.
7930 * dwarf2expr.c (execute_stack_op): Ditto.
7931 * Makefile.in (frame_base_h): Define.
7932 (frame.o): Update dependencies.
7933 (frame-base.o): Add dependencies.
7934 (SFILES): Add frame-base.c.
7935 (COMMON_OBS): Add frame-base.o.
7936
3d30e9c2
AC
79372003-04-01 Andrew Cagney <[email protected]>
7938
7939 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7940 CALL_DUMMY_LENGTH): Ditto.
7941 * gdbarch.c: Re-generate.
7942 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7943 (CALL_DUMMY_LENGTH): Delete macro.
7944 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7945 * arm-tdep.c (arm_gdbarch_init): Ditto.
7946 * avr-tdep.c (avr_gdbarch_init): Ditto.
7947 * cris-tdep.c (cris_gdbarch_init): Ditto.
7948 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7949 * frv-tdep.c (frv_gdbarch_init): Ditto.
7950 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7951 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7952 * i386-tdep.c (i386_gdbarch_init): Ditto.
7953 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7955 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7956 * mips-tdep.c (mips_gdbarch_init): Ditto.
7957 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7958 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7959 * s390-tdep.c (s390_gdbarch_init): Ditto.
7960 * sh-tdep.c (sh_gdbarch_init): Ditto.
7961 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7962 * v850-tdep.c (v850_gdbarch_init): Ditto.
7963 * vax-tdep.c (vax_gdbarch_init): Ditto.
7964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7965
ce0c7262
CV
79662003-04-01 Corinna Vinschen <[email protected]>
7967
7968 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7969
73dd234f
AC
79702003-04-01 Andrew Cagney <[email protected]>
7971
7972 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7973 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7974 * gdbarch.h, gdbarch.c: Re-generate.
7975 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7976 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7977 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7978 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7979 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7980 * infcmd.c (run_stack_dummy): Simplify assuming
7981 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7982 * infrun.c (handle_inferior_event): Ditto.
7983 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7984 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7985 * arm-tdep.c (arm_gdbarch_init): Ditto.
7986 * avr-tdep.c (avr_gdbarch_init): Ditto.
7987 * cris-tdep.c (cris_gdbarch_init): Ditto.
7988 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7989 * frv-tdep.c (frv_gdbarch_init): Ditto.
7990 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7991 * i386-tdep.c (i386_gdbarch_init): Ditto.
7992 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7993 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7994 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7995 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7996 * mips-tdep.c (mips_gdbarch_init): Ditto.
7997 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7998 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7999 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8000 * s390-tdep.c (s390_gdbarch_init): Ditto.
8001 * sh-tdep.c (sh_gdbarch_init): Ditto.
8002 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8003 * v850-tdep.c (v850_gdbarch_init): Ditto.
8004 * vax-tdep.c (vax_gdbarch_init): Ditto.
8005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8006
97606a13
DJ
80072003-04-01 Daniel Jacobowitz <[email protected]>
8008
8009 * symfile.c (symfile_relocate_debug_section): Update call to
8010 bfd_simple_get_relocated_section_contents.
8011
e8ab51f7
AC
80122003-03-31 Andrew Cagney <[email protected]>
8013
8014 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8015 * gdbarch.h, gdbarch.c: Regenerate.
8016 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8017 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8018 available.
8019 * frame.h (generic_fix_call_dummy): Delete declaration.
8020 * dummy-frame.h: Update comment.
8021 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8023 fix_call_dummy.
8024 * sh-tdep.c (sh_gdbarch_init): Ditto.
8025 * s390-tdep.c (s390_gdbarch_init): Ditto.
8026 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8029 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8030 * i386-tdep.c (i386_gdbarch_init): Ditto.
8031 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8032 * frv-tdep.c (frv_gdbarch_init): Ditto.
8033 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8034 * cris-tdep.c (cris_gdbarch_init): Ditto.
8035 * avr-tdep.c (avr_gdbarch_init): Ditto.
8036 * arm-tdep.c (arm_gdbarch_init): Ditto.
8037
018d1b48
JB
80382003-03-31 J. Brobecker <[email protected]>
8039
8040 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8041 (INIT_FRAME_AP): Likewise.
8042 (EXTRA_FRAME_INFO): Likewise.
8043
e9a2674e
AC
80442003-03-31 Andrew Cagney <[email protected]>
8045
8046 * gdbarch.sh: Include "symfile.h".
8047 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8048 * gdbarch.h, gdbarch.c: Re-generate.
8049 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8051 call_dummy_address, the default is at entry_point_address.
8052 * v850-tdep.c (v850_gdbarch_init): Ditto.
8053 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8054 * sh-tdep.c (sh_gdbarch_init): Ditto.
8055 * s390-tdep.c (s390_gdbarch_init): Ditto.
8056 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8057 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8058 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8059 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8060 * i386-tdep.c (i386_gdbarch_init): Ditto.
8061 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8062 * frv-tdep.c (frv_gdbarch_init): Ditto.
8063 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8064 * cris-tdep.c (cris_gdbarch_init): Ditto.
8065 * arm-tdep.c (arm_gdbarch_init): Ditto.
8066
e8a8712a
AC
80672003-03-31 Andrew Cagney <[email protected]>
8068
8069 * gdbarch.sh (CALL_DUMMY_P): Delete.
8070 * gdbarch.h, gdbarch.c: Re-generate.
8071 * inferior.h (CALL_DUMMY_P): Delete macro.
8072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8073 * vax-tdep.c (vax_gdbarch_init): Update.
8074 * v850-tdep.c (v850_gdbarch_init): Update.
8075 * sparc-tdep.c (sparc_gdbarch_init): Update.
8076 * sh-tdep.c (sh_gdbarch_init): Update.
8077 * s390-tdep.c (s390_gdbarch_init): Update.
8078 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8079 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8081 * mips-tdep.c (mips_gdbarch_init): Update.
8082 * mcore-tdep.c (mcore_gdbarch_init): Update.
8083 * m68k-tdep.c (m68k_gdbarch_init): Update.
8084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8085 * ia64-tdep.c (ia64_gdbarch_init): Update.
8086 * i386-tdep.c (i386_gdbarch_init): Update.
8087 * h8300-tdep.c (h8300_gdbarch_init): Update.
8088 * frv-tdep.c (frv_gdbarch_init): Update.
8089 * d10v-tdep.c (d10v_gdbarch_init): Update.
8090 * cris-tdep.c (cris_gdbarch_init): Update.
8091 * breakpoint.c (deprecated_frame_in_dummy): Update.
8092 * avr-tdep.c (avr_gdbarch_init): Update.
8093 * alpha-tdep.c (alpha_gdbarch_init): Update.
8094 * arm-tdep.c (arm_gdbarch_init): Update.
8095 * dummy-frame.c (dummy_frame_this_id): Update comments.
8096 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8097 * frame.c (legacy_get_prev_frame): Ditto.
8098 * valops.c (call_function_by_hand): Delete function.
8099 (hand_function_call): Rename to call_function_by_hand
8100
ed234cf8
AC
81012003-03-30 Andrew Cagney <[email protected]>
8102
8103 2002-11-10 Klee Dienes <[email protected]>
fbe586ae 8104 * value.h (struct value): Update comment.
ed234cf8 8105
06c77151
AC
81062003-03-30 Andrew Cagney <[email protected]>
8107
6c2b5168
AC
8108 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8109 D10V_FP_REGNUM.
8110 (d10v_gdbarch_init): Do not set fp_regnum.
8111
06c77151
AC
8112 * frame.c (get_frame_base): Force ID initialization.
8113 (get_prev_frame): Move computation of the frame ID from here ...
8114 (get_frame_id): ... to here.
8115 (legacy_get_prev_frame): Mark the frame ID as valid.
8116 * frame.h (struct frame_info): Add field "id_p".
8117
97a1a11c
MK
81182003-03-30 Mark Kettenis <[email protected]>
8119
8120 * i386-tdep.c (i386_store_struct_return): Removed.
8121 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8122
6c0e89ed
AC
81232003-03-30 Andrew Cagney <[email protected]>
8124
8125 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8126 * gdbarch.h, gdbarch.c: Regenerate.
8127 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8130 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8131 * i386-tdep.c (i386_gdbarch_init): Ditto.
8132 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8133 * cris-tdep.c (cris_gdbarch_init): Ditto.
8134 * vax-tdep.c (vax_gdbarch_init): Ditto.
8135 * s390-tdep.c (s390_gdbarch_init): Ditto.
8136 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8138 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8139 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8140 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8141 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8142 * sparc-tdep.c (sparc_gdbarch_init): Update.
8143 * sh-tdep.c (sh_gdbarch_init): Update.
8144 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8145 * mips-tdep.c (mips_gdbarch_init): Update.
8146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8147 * ia64-tdep.c (ia64_gdbarch_init): Update.
8148 * frv-tdep.c (frv_gdbarch_init): Update.
8149 * avr-tdep.c (avr_gdbarch_init): Update.
8150 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8151 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8152 instead of when push_dummy_call is not available.
8ffd9b1b 8153
f7dd6af2
AC
81542003-03-30 Andrew Cagney <[email protected]>
8155
8156 * infttrace.c: Include "gdbthread.h".
8157 (parent_attach_all): Fix function signature.
8158 (call_ptrace): Update call.
8159 * Makefile.in (infttrace.o): Update dependencies.
8160
28f617b3
AC
81612003-03-30 Andrew Cagney <[email protected]>
8162
8163 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8164 PUSH_RETURN_ADDRESS.
8165 * gdbarch.h, gdbarch.c: Regenerate.
8166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8167 * x86-64-tdep.c (x86_64_init_abi): Update.
8168 * v850-tdep.c (v850_gdbarch_init): Update.
8169 * sparc-tdep.c (sparc_gdbarch_init): Update.
8170 * sh-tdep.c (sh_gdbarch_init): Update.
8171 * s390-tdep.c (s390_gdbarch_init): Update.
8172 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8174 * mips-tdep.c (mips_gdbarch_init): Update.
8175 * mcore-tdep.c (mcore_gdbarch_init): Update.
8176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8177 * ia64-tdep.c (ia64_gdbarch_init): Update.
8178 * i386-tdep.c (i386_gdbarch_init): Update.
8179 * h8300-tdep.c (h8300_gdbarch_init): Update.
8180 * frv-tdep.c (frv_gdbarch_init): Update.
8181 * cris-tdep.c (cris_gdbarch_init): Update.
8182 * avr-tdep.c (avr_gdbarch_init): Update.
8183 * arm-tdep.c (arm_gdbarch_init): Update.
8184 * valops.c (hand_function_call): Update.
8185
4d628cd7
AC
81862003-03-29 Andrew Cagney <[email protected]>
8187
8188 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8189 sizeof_call_dummy_words.
8190 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8191 define.
8192 * gdbarch.h: Regenerate.
8ffd9b1b 8193
65e82032
AC
81942003-03-29 Andrew Cagney <[email protected]>
8195
8196 * infttrace.h: New file.
8197 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8198 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8199 (hpread_read_doc_function_type): Detect an initialized type1.
8200 (hpread_quick_traverse): Initialize mod_name_string.
8201 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8202 (som_solib_get_solib_by_pc): Declare.
8203 (so_lib_thread_start_addr): Declare.
8204 (no_shared_libraries): Declare.
8205 * somread.c (init_import_symbols): Make static. Add forward
8206 declaration.
8207 * config/pa/nm-hppah.h: Include "infttrace.h" for
8208 parent_attach_all.
8209 (hppa_insert_hw_watchpoint): Declare.
8210 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8211 * hppah-nat.c: Include "gdb_string.h".
8212 (parent_attach_all): Delete extern declaration, moved to
8213 "infttrace.h".
8214 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8215 int.
8216 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8217 * Makefile.in (infttrace_h): Define.
8218 (hpread.o): Update dependencies.
8219 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8220 * hppa-hpux-tdep.c: Include "gdb_string.h".
8221 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8222 * infrun.c (handle_inferior_event): Always initialize
8223 stepped_after_stopped_by_watchpoint. Add default and remove
8224 fallthrough in switch statement.
8225 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8226 parameter to int.
8227 (hppa_remove_hw_watchpoint): Ditto.
8228
2c3bbe77
AC
82292003-03-29 Andrew Cagney <[email protected]>
8230
8231 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8232 offset.
8233
2dd604e7
RE
82342003-03-29 Richard Earnshaw <[email protected]>
8235
8236 * arm-tdep.c (arm_push_arguments): Delete.
8237 (struct stack_item): New type.
8238 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8239 (arm_store_struct_return): Delte.
8240 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8241 arm_push_arguments or arm_store_struct_return.
8242
e8933a55
AC
82432003-03-28 Andrew Cagney <[email protected]>
8244
8245 * Makefile.in (d10v-tdep.o): Update dependencies.
8246 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8247 * d10v-tdep.c: Include "remote.h".
8248 (target_resume_hook): Delete extern declaration.
8249 (target_wait_loop_hook): Ditto.
8250 (tdisassemble_command): Eliminate assignment in "if" conditional.
8251 (d10v_ts2_register_sim_regno): Eliminate call to
8252 legacy_register_sim_regno.
8253 (d10v_ts3_register_sim_regno): Ditto.
8254
6949171e
JJ
82552003-03-28 Jeff Johnston <[email protected]>
8256
8257 * thread.c: Reindented.
8258 * lin-lwp.c: Ditto.
8259 * linux-proc.c: Ditto.
8260
98c7071f
BR
82612003-03-28 Bob Rossi <[email protected]>
8262
fbe586ae 8263 * MAINTAINERS (write after approval): Add myself.
98c7071f 8264
5edc9ca6
TR
82652003-03-27 Theodore A. Roth <[email protected]>
8266
8267 * objc-exp.y: Add missing semi-colons.
8268
378bfd1b
AC
82692003-03-27 Andrew Cagney <[email protected]>
8270
8271 * regcache.c (write_sp): Delete function and references.
8272 * inferior.h (write_sp): Delete declaration.
8273 * valops.c (hand_function_call): Replace write_sp with
8274 TARGET_WRITE_SP.
8275 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8276 (sparc_pop_frame): Ditto.
8ffd9b1b 8277
56056df7
AC
82782003-03-27 Andrew Cagney <[email protected]>
8279
8280 * NEWS: Mention removal of support for hppa*-*-bsd* and
8281 hppa*-*-osf* natives, and hppa*-*-pro* target.
8282 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8283 * config/pa/xm-pa.h: Obsolete file.
8284 * config/pa/xm-hppab.h: Obsolete file.
8285 * config/pa/nm-hppab.h: Obsolete file.
8286 * config/pa/tm-hppab.h: Obsolete file.
8287 * config/pa/tm-hppao.h: Obsolete file.
8288 * config/pa/nm-hppao.h: Obsolete file.
8289 * config/pa/tm-pro.h: Obsolete file.
8290 * config/pa/hppaosf.mt: Obsolete file.
8291 * config/pa/hppaosf.mh: Obsolete file.
8292 * config/pa/hppapro.mt: Obsolete file.
8293 * config/pa/hppabsd.mt: Obsolete file.
8294 * config/pa/hppabsd.mh: Obsolete file.
8295 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8296 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8297 hppa*-*-osf*.
8298
5873a88d
AC
82992003-03-27 Andrew Cagney <[email protected]>
8300
8301 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8302 push_arguments. Don't set push_return_address or write_sp.
8303 (d10v_push_dummy_call): Replace d10v_push_arguments.
8304 (d10v_push_return_address, d10v_write_sp): Delete function,
8305 handled by push_dummy_call.
8306
b81774d8
AC
83072003-03-26 Andrew Cagney <[email protected]>
8308
8309 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8310 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8311 regcache and dummy_addr parameters.
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8314 available; assume it will handle stack alignment and return
8315 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8316 legacy_push_arguments.
8317 (legacy_push_arguments): Rename default_push_arguments.
8318 * value.h (legacy_push_arguments): Rename default_push_arguments.
8319 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8320 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8321 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8322 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8323 * config/i386/tm-symmetry.h: Update.
8324 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8325 * x86-64-tdep.c (x86_64_init_abi): Update.
8326 * v850-tdep.c (v850_gdbarch_init): Update.
8327 * sparc-tdep.c (sparc_gdbarch_init): Update.
8328 * sh-tdep.c (sh_gdbarch_init): Update.
8329 * s390-tdep.c (s390_gdbarch_init): Update.
8330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8332 * mips-tdep.c (mips_gdbarch_init): Update.
8333 * mcore-tdep.c (mcore_gdbarch_init): Update.
8334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8335 * ia64-tdep.c (ia64_gdbarch_init): Update.
8336 * i386-tdep.c (i386_gdbarch_init): Update.
8337 * hppa-tdep.c (hppa_gdbarch_init): Update.
8338 * h8300-tdep.c (h8300_gdbarch_init): Update.
8339 * frv-tdep.c (frv_gdbarch_init): Update.
8340 * d10v-tdep.c (d10v_gdbarch_init): Update.
8341 * cris-tdep.c (cris_gdbarch_init): Update.
8342 * avr-tdep.c (avr_gdbarch_init): Update.
8343 * arm-tdep.c (arm_gdbarch_init): Update.
8344 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8345 * alpha-tdep.c (alpha_gdbarch_init): Update.
8346
f541410f
DJ
83472003-03-26 Daniel Jacobowitz <[email protected]>
8348
8349 * signals/signals.c (do_target_signal_to_host): Correct realtime
8350 signal range test.
8351
69f567ae
DJ
83522003-03-26 Daniel Jacobowitz <[email protected]>
8353
8354 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8355 (struct sal_chain, map_catch_names): Remove.
8356 (catch_exception_command_1): Don't call
8357 handle_gnu_4_16_catch_command.
8358
d5d14a5a
DJ
83592003-03-26 Daniel Jacobowitz <[email protected]>
8360
8361 From Mark Dettinger <[email protected]>:
8362 * dwarf2cfi.c (read_2u): Increment pointer by two.
8363
bdd73e22
DJ
83642003-03-26 Daniel Jacobowitz <[email protected]>
8365
8366 * signals/signals.c: Fix typos in last change.
8367
960cb555
DJ
83682003-03-26 Daniel Jacobowitz <[email protected]>
8369
8370 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8371 not already defined. Use __SIGRTMIN if available.
8372 (target_signal_from_host): Remove SIGRTMIN block.
8373 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8374 the signal is within the realtime range.
8375
f636b87d
AF
83762003-03-25 Adam Fedor <[email protected]>
8377
8378 * Makefile.in (infrun.o): Add $(language_h)
8379 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8380 for language specific trampolines.
8381 * language.h (struct language_defn): Add skip_trampoline.
8382 (skip_language_trampoline): Declare.
8383 * language.c (unk_lang_trampoline, skip_language_trampoline):
8384 New functions.
8385 (unknown_language_defn, auto_language_defn, local_language_defn):
8386 Add ukn_lang_trampoline.
8387 * ada-lang.c (ada_language_defn): Add NULL for language
8388 specific skip_trampoline.
8389 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8390 scm-lang.c: Likewise.
8391 * objc-lang.c (objc_skip_trampoline): New function.
8392 (objc_language_defn): Add objc_skip_trampoline.
8393
28f617b3 83942003-03-25 Andrew Cagney <[email protected]>
270c3b1d
AC
8395
8396 * frame.c (get_prev_frame): Delay validating a frame's ID -
8397 non-NULL, didn't go backwards - until an attempt to unwind it to
8398 the previous frame.
8399
f933a9c5
AC
84002003-03-25 Andrew Cagney <[email protected]>
8401
8402 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8403 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8404 * gdbarch.h, gdbarch.c: Re-generate.
8405 * config/sparc/tm-sparc.h
8406 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8407 * sparc-tdep.c (sparc_gdbarch_init): Set
8408 deprecated_extra_stack_alignment_needed.
8409 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8410 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8411 extra_stack_alignment_needed.
8412 * v850-tdep.c (v850_gdbarch_init): Ditto.
8413 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8414 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8415 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8416 * cris-tdep.c (cris_gdbarch_init): Ditto.
8417 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8419
4183d812
AC
84202003-03-25 Andrew Cagney <[email protected]>
8421
8422 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8423 STORE_STRUCT_RETURN.
8424 * gdbarch.h, gdbarch.c: Regenerate.
8425 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8426 (d10v_push_arguments): Set the struct return register.
8427 (d10v_gdbarch_init): Update.
8428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8429 * x86-64-tdep.c (x86_64_init_abi): Update.
8430 * vax-tdep.c (vax_gdbarch_init): Update.
8431 * v850-tdep.c (v850_gdbarch_init): Update.
8432 * sparc-tdep.c (sparc_gdbarch_init): Update.
8433 * sh-tdep.c (sh_gdbarch_init): Update.
8434 * s390-tdep.c (s390_gdbarch_init): Update.
8435 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8436 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8438 * mips-tdep.c (mips_gdbarch_init): Update.
8439 * mcore-tdep.c (mcore_gdbarch_init): Update.
8440 * m68k-tdep.c (m68k_gdbarch_init): Update.
8441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8442 * ia64-tdep.c (ia64_gdbarch_init): Update.
8443 * i386-tdep.c (i386_gdbarch_init): Update.
8444 * hppa-tdep.c (hppa_gdbarch_init): Update.
8445 * h8300-tdep.c (h8300_gdbarch_init): Update.
8446 * frv-tdep.c (frv_gdbarch_init): Update.
8447 * cris-tdep.c (cris_gdbarch_init): Update.
8448 * avr-tdep.c (avr_gdbarch_init): Update.
8449 * arm-tdep.c (arm_gdbarch_init): Update.
8450 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8451
1bf6d5cc
AC
84522003-03-25 Andrew Cagney <[email protected]>
8453
8454 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8455 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8456 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8457 * gdbarch.h, gdbarch.c: Regenerate.
8458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8459 call_dummy_stack_adjust_p.
8460 * vax-tdep.c (vax_gdbarch_init): Ditto.
8461 * v850-tdep.c (v850_gdbarch_init): Ditto.
8462 * sh-tdep.c (sh_gdbarch_init): Ditto.
8463 * s390-tdep.c (s390_gdbarch_init): Ditto.
8464 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8465 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8466 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8467 * mips-tdep.c (mips_gdbarch_init): Ditto.
8468 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8469 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8471 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8472 * i386-tdep.c (i386_gdbarch_init): Ditto.
8473 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8474 * frv-tdep.c (frv_gdbarch_init): Ditto.
8475 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8476 * cris-tdep.c (cris_gdbarch_init): Ditto.
8477 * avr-tdep.c (avr_gdbarch_init): Ditto.
8478 * arm-tdep.c (arm_gdbarch_init): Ditto.
8479 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8480 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8481 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8482 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8483 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8484 call_dummy_stack_adjust_p.
8485 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8486 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8487 * sparc-tdep.c (sparc32_push_arguments): Update.
8488 * valops.c (hand_function_call): Update.
8489
71c08af0
CV
84902003-03-25 Corinna Vinschen <[email protected]>
8491
8492 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8493 set_gdbarch_char_signed.
8494
30757f90
RE
84952003-03-25 Richard Earnshaw <[email protected]>
8496
8497 PR cli/548
8498 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8499
03d48a7d
RE
85002003-03-25 Richard Earnshaw <[email protected]>
8501
8502 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8503 (_initialize_arm_tdep): Don't set tm_print_insn.
8504
2cf6873c
AF
85052003-03-24 Adam Fedor <[email protected]>
8506
8507 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8508 * objc-lang.h: Add multiple inclusion protection.
8509 (start_msglist, add_msglist, end_msglist): Additional declarations.
8510
17c0759e
RE
85112003-03-24 Richard Earnshaw <[email protected]>
8512
8513 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8514 value was renamed to ARM_FLOAT_SOFT_FPA.
8515
618ce49f
AC
85162003-03-23 Andrew Cagney <[email protected]>
8517
8518 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8519 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8520 * gdbarch.h, gdbarch.c: Regenerate.
8521 * valops.c (hand_function_call): Update.
8522 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8523 * frame.c (legacy_saved_regs_this_id): Update.
8524 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8525 * dummy-frame.h: Update.
8526 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8527 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8528 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8529 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8530 * config/m68k/tm-sun3.h: Update.
8531 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8533 * x86-64-tdep.c (x86_64_init_abi): Update.
8534 * vax-tdep.c (vax_gdbarch_init): Update.
8535 * v850-tdep.c (v850_gdbarch_init): Update.
8536 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8537 * sh-tdep.c (sh_gdbarch_init): Update.
8538 * s390-tdep.c (s390_gdbarch_init): Update.
8539 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8540 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8541 (frame_get_saved_regs): Update.
8542 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8543 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8545 * mips-tdep.c (mips_gdbarch_init): Update.
8546 * mcore-tdep.c (mcore_gdbarch_init): Update.
8547 * m68k-tdep.c (m68k_gdbarch_init): Update.
8548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8549 * ia64-tdep.c (ia64_gdbarch_init): Update.
8550 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8551 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8552 (i386_interix_back_one_frame): Update.
8553 * hppa-tdep.c (hppa_gdbarch_init): Update.
8554 (hppa_init_extra_frame_info): Update.
8555 * h8300-tdep.c (h8300_gdbarch_init): Update.
8556 * frv-tdep.c (frv_gdbarch_init): Update.
8557 * cris-tdep.c (cris_gdbarch_init): Update.
8558 * avr-tdep.c (avr_gdbarch_init): Update.
8559 * arm-tdep.c (arm_gdbarch_init): Update.
8560 * alpha-tdep.c (alpha_gdbarch_init): Update.
8561
fd50bc42
RE
85622003-03-22 Richard Earnshaw <[email protected]>
8563
8564 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8565 (arm_get_fp_model): Declare.
8566 * arm-tdep.c (fp_model_strings): New string array.
8567 (arm_fp_model, current_fp_model): New variables.
8568 (arm_get_fp_model): New function.
8569 (arm_set_fp): New function.
8570 (set_fp_model_sfunc): New function.
8571 (show_fp_model): New function.
8572 (_initialize_arm_tdep): Add new command to set/show the FPU.
8573 (arm_extract_return_value): Use arm_get_fp_model.
8574 (arm_store_return_value): Likewise.
8575 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8576 to initialize the floating-point data types.
8577 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8578 model is FPA.
8579
26304000
RE
85802003-03-22 Richard Earnshaw <[email protected]>
8581
8582 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8583 the current setting of each value.
8584 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8585 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8586 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8587 commands and add new version as subcommands of "set/show arm".
8588
afd7eef0
RE
85892003-03-22 Richard Earnshaw <[email protected]>
8590
8591 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8592 (set_arm_command, show_arm_command): New functions.
8593 (_initialize_arm_tdep): Add them.
8594 (num_disassembly_options): Renamed from num_flavor_options.
8595 (valid_disassembly_styles): Renamed from valid_flavors.
8596 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8597 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8598 set_disassembly_flavor_sfunc.
8599 (set_disassembly_style): Renamed from set_disassembly_flavor.
8600 (arm_othernames): Updated.
8601 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8602 command. Add "set/show arm disassembly" commands. Deprecate
8603 "othernames" command.
8604
299a7944
RE
86052003-03-22 Richard Earnshaw <[email protected]>
8606
8607 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8608 (arm-tdep.o): Depend on elf_arm_h.
8609
c1dac9e6
RE
86102003-03-22 Richard Earnshaw <[email protected]>
8611
8612 * Makefile.in (coff_internal_h): Define.
8613 (arm-tdep.o): Update dependencies.
8614
2702d96c
RE
86152003-03-22 Richard Earnshaw <[email protected]>
8616
8617 * arm-tdep.c (prologue_cache): Delete.
8618 (check_prologue_cache, save_prologue_cache): Delete.
8619 (arm_scan_prologue): Don't check or update the prologue_cache.
8620 (arm_gdb_arch_init): Don't initialize it.
8621 (_initialize_arm_tdep): Likewise.
8622
27d5d74b
SC
86232003-03-21 Stephane Carrez <[email protected]>
8624
8625 * MAINTAINERS (tui): Maintainer of tui code.
8626
1762d96d
CV
86272003-03-21 Corinna Vinschen <[email protected]>
8628
8629 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8630 (i386-cygwin-tdep.o): Add dependencies.
8631 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8632 * i386-cygwin-tdep.c: New file.
8633 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8634 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8635
4c2e2391
AC
86362003-03-20 Andrew Cagney <[email protected]>
8637
f20d38b7
AC
8638 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8639 (handle_inferior_event): Remove code calling
8640 DYNAMIC_TRAMPOLINE_NEXTPC.
8641
0022b738
AC
8642 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8643 already has a full path.
8644
864dbc90
AC
8645 * main.c (gdb_main): Return 1.
8646 (captured_main): Call error to report an invalid interpreter.
8647
4c2e2391
AC
8648 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8649 * alpha-osf1-tdep.c: Include "gdb_string.h".
8650
5ef7553b
JB
86512003-03-19 J. Brobecker <[email protected]>
8652
8653 Continuing work to convert the hppa targets to multiarch partial.
8654
8655 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8656 method, now that hppa_push_dummy_frame has a conformant prototype.
8657 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8658 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8659 for the switch to multiarch partial.
8660
7bde8967
KB
86612003-03-19 Kevin Buettner <[email protected]>
8662
8663 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8664 when iss is issNull.
8665
b006a9e9
KB
86662003-03-18 Kevin Buettner <[email protected]>
8667
8668 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8669 NUM_REGS bounds check.
8670
5e2e9765
KB
86712003-03-18 Kevin Buettner <[email protected]>
8672
8673 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8674 * mips-tdep.c (gdb_assert.h): Include.
8675 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8676 (mips_register_name): Handle integer registers explicitly. Add
8677 bounds checking.
8678 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8679 (mips_lsi33k_reg_names): Don't list integer registers; they're
8680 handled by mips_register_name() now.
8681 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8682 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8683 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8684 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8685 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8686
a2867626
AC
86872003-03-18 Andrew Cagney <[email protected]>
8688
8689 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8690 a void pointer.
8691 * gdbtypes.h (print_scalar_formatted): Update declaration.
8692 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8693
06600e06
JB
86942003-03-18 J. Brobecker <[email protected]>
8695
8696 * infrun.c (observer.h): Add #include.
8697 (normal_stop): Add call to observer_notify_normal_stop.
8698 * Makefile.in (infrun.o): Add dependency on observer.h.
8699
7daf4f5b
JB
87002003-03-18 J. Brobecker <[email protected]>
8701
8702 Continuing work to convert the hppa targets to multiarch partial.
8703 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8704 parameter. Reformat comment.
8705 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8706 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8707 to match new profile.
8708
3371ccc0
JB
87092003-03-18 J. Brobecker <[email protected]>
8710
8711 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8712 appear to be working in any case.
8713
4fbe891e
JB
87142003-03-18 J. Brobecker <[email protected]>
8715
8716 * observer.c (observer_test_first_observer): New static variable.
8717 (observer_test_second_observer): Likewise.
8718 (observer_test_third_observer): Likewise.
8719 (observer_test_first_notification_function): New static function.
8720 (observer_test_second_notification_function): Likewise.
8721 (observer_test_third_notification_function): Likewise.
8722
a7ff40e7
JB
87232003-03-17 J. Brobecker <[email protected]>
8724
8725 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8726 * somsolib.c (gdb_assert.h): Likewise.
8727 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8728 (somsolib.o): Likewise.
8729
26ca4152
AC
87302003-03-17 Andrew Cagney <[email protected]>
8731
8732 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8733 BFD. Simplify setting of di.endian.
8734
0a613259
AC
87352003-03-17 Andrew Cagney <[email protected]>
8736
8737 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8738 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8739
8740 From Elena Zannoni <[email protected]>
8741 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8742 vector and floating-point parameters.
8743 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8744 convention.
8745 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8746
1132738f
FN
87472003-03-17 Fernando Nasser <[email protected]>
8748
8749 * MAINTAINERS: Remove my name from several maintainership roles.
8750
6dc42492
AC
87512003-03-17 Andrew Cagney <[email protected]>
8752
8753 Fix frame off-by-one bug.
8754 * frame-unwind.h (frame_this_id_ftype): Replace
8755 frame_unwind_id_ftype.
8756 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8757 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8758 with "prev_register".
8759 * frame-unwind.c (frame_unwind_find_by_pc): Return
8760 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8761 comment.
8762 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8763 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8764 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8765 (dummy_frame_unwind): Update.
8766 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8767 sentinel_frame_register_unwind.
8768 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8769 (sentinel_frame_unwinder): Update.
8770 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8771 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8772 * frame.c (create_sentinel_frame): Update. Initialize
8773 "prologue_cache" instead of "unwind_cache".
8774 (frame_register_unwind): Call this frame's prev_register with the
8775 next frame and this frame's prologue cache.
8776 (get_prev_frame): Simplify. Always call prev frame's this_id with
8777 this frame and prev frame's prologue cache. Document that this
8778 call is shifted one to the left when compared to the
8779 frame_register_unwind call.
8780 (legacy_saved_regs_prev_register): Replace
8781 frame_saved_regs_register_unwind.
8782 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8783 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8784 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8785 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8786 (d10v_frame_unwind): Update.
8787 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8788 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8789 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8790 "saved_regs" with "this_saved_regs".
8791
efd710d6
AC
87922003-03-16 Andrew Cagney <[email protected]>
8793
8794 * frame.c (frame_pop): Don't call target_store_registers. Fix
8795 problem reported by Mark Kettenis.
8796
4e259f09
MK
87972003-03-16 Mark Kettenis <[email protected]>
8798
8799 * i386-tdep.c (i386_register_type): Renamed from
8800 i386_register_virtual_type. Adjust function signature.
8801 (i386_gdbarch_init): Set register_type instead of
8802 deprecated_max_register_raw_size,
8803 deprecated_max_register_virtual_size and register_virtual_type.
8804
055bb976
AC
88052003-03-14 Andrew Cagney <[email protected]>
8806
8807 * frame.c (get_prev_frame): When a legacy frame, always call
8808 legacy_get_prev_frame. Simplify unwind code using assumption that
8809 the unwinder is new.
8810 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8811 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8812 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8813
ac2adee5
AC
88142003-03-14 Andrew Cagney <[email protected]>
8815
8816 * frame.c (get_saved_register): Delete function.
8817 * frame.h (get_saved_register): Delete declaration.
8818 * xstormy16-tdep.c: Update comment.
8819 * regcache.h: Update comments.
8820 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8821 get_saved_register and extract_address, use
8822 frame_read_unsigned_register.
8823 (sparc_frame_saved_pc): Ditto.
8824 (sparc_get_saved_register): Instead of get_saved_register, use
8825 frame_register.
8826 (sparc_pop_frame): Ditto.
8827 * findvar.c: Update comments.
8828 (value_of_register): Call frame_register instead of
8829 get_saved_register.
8830 (value_from_register): Ditto.
8831 * config/sparc/tm-sparc.h: Update comment.
8832 * breakpoint.c: Update comment.
8833
129c1cd6
AC
88342003-03-14 Andrew Cagney <[email protected]>
8835
8836 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8837 GET_SAVED_REGISTER.
8838 * gdbarch.h, gdbarch.c: Re-generate.
8839 * frame.h: Update comments.
8840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8841 * x86-64-tdep.c (x86_64_init_abi): Update.
8842 * sparc-tdep.c (sparc_gdbarch_init): Update.
8843 * sh-tdep.c (sh_gdbarch_init): Update.
8844 * mips-tdep.c (mips_gdbarch_init): Update.
8845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8846 * cris-tdep.c (cris_gdbarch_init): Update.
8847 * ia64-tdep.c (ia64_gdbarch_init): Update.
8848 * frame.c (frame_register): Update.
8849 (get_saved_register): Update.
8850 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8851
749b82f6
AC
88522003-03-13 Andrew Cagney <[email protected]>
8853
8854 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8855 * gdbarch.h, gdbarch.c: Regenerate.
8856 * valops.c (hand_function_call): Update comment.
8857 * stack.c (return_command): Update comment.
8858 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8859 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8860 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8861 * x86-64-tdep.c (x86_64_init_abi): Update.
8862 * vax-tdep.c (vax_gdbarch_init): Update.
8863 * v850-tdep.c (v850_gdbarch_init): Update.
8864 * sparc-tdep.c (sparc_gdbarch_init): Update.
8865 * sh-tdep.c (sh_gdbarch_init): Update.
8866 * s390-tdep.c (s390_gdbarch_init): Update.
8867 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8868 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8869 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8870 * mips-tdep.c (mips_gdbarch_init): Update.
8871 * mcore-tdep.c (mcore_gdbarch_init): Update.
8872 * m68k-tdep.c (m68k_gdbarch_init): Update.
8873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8874 * ia64-tdep.c (ia64_gdbarch_init): Update.
8875 * i386-tdep.c (i386_gdbarch_init): Update.
8876 * hppa-tdep.c (hppa_gdbarch_init): Update.
8877 * h8300-tdep.c (h8300_gdbarch_init): Update.
8878 * frv-tdep.c (frv_gdbarch_init): Update.
8879 * cris-tdep.c (cris_gdbarch_init): Update.
8880 * avr-tdep.c (avr_gdbarch_init): Update.
8881 * arm-tdep.c (arm_gdbarch_init): Update.
8882 * alpha-tdep.c (alpha_gdbarch_init): Update.
8883
1594fa56
AC
88842003-03-13 Andrew Cagney <[email protected]>
8885
8886 * frame.c (legacy_frame_p): New function.
8887 (get_prev_frame): Use legacy_frame_p.
8888 * frame.h (legacy_frame_p): Declare.
8889
7717fda3
V
88902003-03-13 D. Venkatasubramanian <[email protected]>
8891
fbe586ae 8892 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8893 listing corrected.
8894
0c67cbe9
V
88952003-03-13 D. Venkatasubramanian <[email protected]>
8896
fbe586ae 8897 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8898
03febf99
AC
88992003-03-12 Andrew Cagney <[email protected]>
8900
8901 * frame.c (get_prev_frame): Rename the frame parameter to
8902 "this_frame".
8903 (get_next_frame, legacy_get_prev_frame): Ditto.
8904
0a1e1ca1
AC
89052003-03-12 Andrew Cagney <[email protected]>
8906
8907 * frame.c (get_current_frame): Check target_has_registers before
8908 checking target_has_stack.
8909 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8910 instead of deprecated_selected_frame.
8911 * findvar.c (value_of_register): Pass "frame", not
8912 deprecated_selected_frame, to value_of_builtin_reg.
8913
a66a9c23
AC
89142003-03-12 Andrew Cagney <[email protected]>
8915
8916 * regcache.c (regcache_cooked_write_signed): New function.
8917 (regcache_cooked_write_unsigned): New function.
8918 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8919 (regcache_cooked_read_signed): Fix regnum in range assertion.
8920 * regcache.h (regcache_cooked_write_signed): Declare.
8921 (regcache_cooked_write_unsigned): Declare.
8922
8bedc050
AC
89232003-03-12 Andrew Cagney <[email protected]>
8924
8925 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8926 * gdbarch.h, gdbarch.c: Re-generate.
8927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8928 * x86-64-tdep.h: Update.
8929 * x86-64-tdep.c (x86_64_init_abi): Update.
8930 * v850-tdep.c (v850_gdbarch_init): Update.
8931 * sparc-tdep.c (sparc_gdbarch_init): Update.
8932 * sh-tdep.c (sh_gdbarch_init): Update.
8933 * s390-tdep.c (s390_gdbarch_init): Update.
8934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8935 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8936 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8937 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8938 * mips-tdep.c (mips_gdbarch_init): Update.
8939 * mcore-tdep.c (mcore_gdbarch_init): Update.
8940 * m68k-tdep.c (m68k_gdbarch_init): Update.
8941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8942 * ia64-tdep.c (ia64_gdbarch_init): Update.
8943 * i386-tdep.c (i386_gdbarch_init): Update.
8944 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8945 * hppa-tdep.c (hppa_gdbarch_init): Update.
8946 * h8300-tdep.c (h8300_gdbarch_init): Update.
8947 * frv-tdep.c (frv_gdbarch_init): Update.
8948 * cris-tdep.c (cris_gdbarch_init): Update.
8949 * avr-tdep.c (avr_gdbarch_init): Update.
8950 * arm-tdep.c (arm_gdbarch_init): Update.
8951 * alpha-tdep.c (alpha_gdbarch_init): Update.
8952 * sh-tdep.c (sh_init_extra_frame_info): Update.
8953 (sh64_init_extra_frame_info): Update.
8954 * ns32knbsd-nat.c (frame_num_args): Update.
8955 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8956 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8957 (xstormy16_frame_chain_valid): Update.
8958 * vax-tdep.c (vax_saved_pc_after_call): Update.
8959 * v850-tdep.c (v850_frame_chain): Update.
8960 (v850_pop_frame): Update.
8961 (v850_init_extra_frame_info): Update.
8962 * sparc-tdep.c (setup_arbitrary_frame): Update.
8963 * ns32k-tdep.c (umax_frame_num_args): Update.
8964 * s390-tdep.c (s390_pop_frame_regular): Update.
8965 * mn10300-tdep.c (mn10300_frame_chain): Update.
8966 (mn10300_pop_frame_regular): Update.
8967 (mn10300_init_extra_frame_info): Update.
8968 * mips-tdep.c (mips_init_frame_pc_first): Update.
8969 (mips_frame_chain): Update.
8970 (mips_pop_frame): Update.
8971 * mcore-tdep.c (mcore_frame_chain): Update.
8972 (mcore_pop_frame): Update.
8973 (mcore_init_extra_frame_info): Update.
8974 * arch-utils.c (init_frame_pc_default): Update.
8975 * m68k-tdep.c (isi_frame_num_args): Update.
8976 (delta68_frame_num_args): Update.
8977 (news_frame_num_args): Update.
8978 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8979 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8980 (alpha_frame_chain): Update.
8981 (alpha_pop_frame): Update.
8982 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8983 (hppa_init_extra_frame_info): Update.
8984 (hppa_frame_chain): Update.
8985 (hppa_frame_chain_valid): Update.
8986 * cris-tdep.c (cris_init_extra_frame_info): Update.
8987 * avr-tdep.c (avr_init_extra_frame_info): Update.
8988 * arm-tdep.c (arm_frame_chain_valid): Update.
8989 (arm_init_extra_frame_info): Update.
8990 (arm_pop_frame): Update.
8991 * frame.c (frame_pc_unwind): Update.
8992 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8993 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8994 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8995 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8996 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8997 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8998
7a25a7c1
AC
89992003-03-12 Andrew Cagney <[email protected]>
9000
9001 Eliminate the need for POP_FRAME.
9002 * frame.c (do_frame_unwind_register): New function.
9003 (frame_pop): When no POP_FRAME, pop the frame using register
9004 unwind and a scratch regcache.
9005 (frame_saved_regs_pop): Delete function.
9006 (trad_frame_unwinder): Update.
9007 * d10v-tdep.c (d10v_frame_pop): Delete function.
9008 (d10v_frame_unwind): Update.
9009 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9010 (sentinel_frame_unwinder): Update.
9011 * dummy-frame.c (dummy_frame_pop): Delete function.
9012 (dummy_frame_unwind): Update.
9013 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9014 (struct frame_unwind): Update.
9015
2f38ef89
KB
90162003-03-11 Kevin Buettner <[email protected]>
9017
9018 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9019 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9020 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9021 Do range checks on register number obtained from debugging info.
9022 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9023 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9024 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9025 mapping function.
9026 (do_fp_register_row): Fix typo which caused double type to be
9027 used when attempting to unpack a float.
9028
552f4abf
JB
90292003-03-11 J. Brobecker <[email protected]>
9030
9031 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9032
e0d2ae16
AC
90332003-03-11 Andrew Cagney <[email protected]>
9034
9035 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9036 frame. Problem found by Corinna Vinschen.
9037
ddbfdd06
PM
90382003-03-11 Pierre Muller <[email protected]>
9039
9040 * doublest.c (floatformat_from_length): Accept also
9041 the real size of 'long double' type.
9042
088b2ddc 90432003-03-10 Daniel Jacobowitz <[email protected]>
31cc81e9 9044
088b2ddc 9045 From Klee Dienes <[email protected]>:
31cc81e9
DJ
9046 * breakpoint.c (bpstat_copy): Copy the command lines as well
9047 as the old value, to match what is freed in bpstat_clear.
9048
f56f77c1
DC
90492003-03-10 David Carlton <[email protected]>
9050
9051 * minsyms.c (add_minsym_to_hash_table): Replace
9052 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9053 (compare_minimal_symbols, compact_minimal_symbols)
9054 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9055 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9056 of DEPRECATED_SYMBOL_MATCHES_NAME.
9057 (lookup_minimal_symbol_solib_trampoline): Ditto.
9058
5602984a
AC
90592003-03-10 Andrew Cagney <[email protected]>
9060
9061 * regcache.h (regcache_cooked_read_ftype): Define.
9062 (regcache_save, regcache_restore): Add a cooked_read parameter.
9063 * regcache.c (regcache_save, regcache_restore): Update.
9064 (do_cooked_read): New function.
9065 (regcache_cpy): Pass do_cooked_read to regcache_save and
9066 regcache_restore.
9067
8bedc050
AC
90682003-03-10 Andrew Cagney <[email protected]>
9069
9070 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9071 * gdbarch.h, gdbarch.c: Re-generate.
9072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9073 * x86-64-tdep.h: Update.
9074 * x86-64-tdep.c (x86_64_init_abi): Update.
9075 * v850-tdep.c (v850_gdbarch_init): Update.
9076 * sparc-tdep.c (sparc_gdbarch_init): Update.
9077 * sh-tdep.c (sh_gdbarch_init): Update.
9078 * s390-tdep.c (s390_gdbarch_init): Update.
9079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9080 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9081 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9082 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9083 * mips-tdep.c (mips_gdbarch_init): Update.
9084 * mcore-tdep.c (mcore_gdbarch_init): Update.
9085 * m68k-tdep.c (m68k_gdbarch_init): Update.
9086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9087 * ia64-tdep.c (ia64_gdbarch_init): Update.
9088 * i386-tdep.c (i386_gdbarch_init): Update.
9089 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9090 * hppa-tdep.c (hppa_gdbarch_init): Update.
9091 * h8300-tdep.c (h8300_gdbarch_init): Update.
9092 * frv-tdep.c (frv_gdbarch_init): Update.
9093 * cris-tdep.c (cris_gdbarch_init): Update.
9094 * avr-tdep.c (avr_gdbarch_init): Update.
9095 * arm-tdep.c (arm_gdbarch_init): Update.
9096 * alpha-tdep.c (alpha_gdbarch_init): Update.
9097 * sh-tdep.c (sh_init_extra_frame_info): Update.
9098 (sh64_init_extra_frame_info): Update.
9099 * ns32knbsd-nat.c (frame_num_args): Update.
9100 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9101 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9102 (xstormy16_frame_chain_valid): Update.
9103 * vax-tdep.c (vax_saved_pc_after_call): Update.
9104 * v850-tdep.c (v850_frame_chain): Update.
9105 (v850_pop_frame): Update.
9106 (v850_init_extra_frame_info): Update.
9107 * sparc-tdep.c (setup_arbitrary_frame): Update.
9108 * ns32k-tdep.c (umax_frame_num_args): Update.
9109 * s390-tdep.c (s390_pop_frame_regular): Update.
9110 * mn10300-tdep.c (mn10300_frame_chain): Update.
9111 (mn10300_pop_frame_regular): Update.
9112 (mn10300_init_extra_frame_info): Update.
9113 * mips-tdep.c (mips_init_frame_pc_first): Update.
9114 (mips_frame_chain): Update.
9115 (mips_pop_frame): Update.
9116 * mcore-tdep.c (mcore_frame_chain): Update.
9117 (mcore_pop_frame): Update.
9118 (mcore_init_extra_frame_info): Update.
9119 * arch-utils.c (init_frame_pc_default): Update.
9120 * m68k-tdep.c (isi_frame_num_args): Update.
9121 (delta68_frame_num_args): Update.
9122 (news_frame_num_args): Update.
9123 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9124 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9125 (alpha_frame_chain): Update.
9126 (alpha_pop_frame): Update.
9127 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9128 (hppa_init_extra_frame_info): Update.
9129 (hppa_frame_chain): Update.
9130 (hppa_frame_chain_valid): Update.
9131 * cris-tdep.c (cris_init_extra_frame_info): Update.
9132 * avr-tdep.c (avr_init_extra_frame_info): Update.
9133 * arm-tdep.c (arm_frame_chain_valid): Update.
9134 (arm_init_extra_frame_info): Update.
9135 (arm_pop_frame): Update.
9136 * frame.c (frame_pc_unwind): Update.
9137 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9138 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9139 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9140 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9141 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9142 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9143
12cc2063
AC
91442003-03-10 Andrew Cagney <[email protected]>
9145
9146 * gdbarch.sh (gdbarch_unwind_pc): New method.
9147 * gdbarch.h, gdbarch.c: Regenerate.
9148 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9149 but use read_pc and FRAME_SAVED_PC as fall backs.
9150 (frame_saved_regs_pc_unwind): Delete function.
9151 (trad_frame_unwinder): Update.
9152 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9153 (struct frame_unwind): Update.
9154 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9155 (dummy_frame_unwind): Update.
9156 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9157 (sentinel_frame_unwinder): Update.
9158 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9159 (d10v_frame_unwind): Update.
9160 (d10v_unwind_pc): New function.
9161 (d10v_gdbarch_init): Set unwind_pc.
9162
ef840a37
AC
91632003-03-10 Andrew Cagney <[email protected]>
9164
a2ce2e56
AC
9165 * gdbarch.h: Re-generate.
9166
ef840a37
AC
9167 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9168 PC.
9169 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9170 the PC register.
9171
08f3424b
MK
91722003-03-08 Mark Kettenis <[email protected]>
9173
9174 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9175
1248ede2
AC
91762003-03-08 Andrew Cagney <[email protected]>
9177
9178 * cli-out.c: Update copyright.
9179 (cli_out_data): Define typedef. Use instead of ui_out_data.
9180
f49bacc8
AC
91812003-03-08 Andrew Cagney <[email protected]>
9182
9183 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9184 the result.
9185
9b05f993
AC
91862003-03-07 Andrew Cagney <[email protected]>
9187
9188 * gdbarch.sh: Don't generate two macro definitions when an
9189 undefined macro taking no arguments.
9190 * gdbarch.h: Regenerate.
8ffd9b1b 9191
166f4c7b
ML
91922002-03-07 Michal Ludvig <[email protected]>
9193
9194 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9195 (x86_64_unwind_dummy_id): New functions.
9196 (x86_64_init_abi): Register these two new functions.
9197
6d686a84
ML
91982003-03-07 Michal Ludvig <[email protected]>
9199
9200 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9201 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9202 separate function.
9203 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9204
6314f104
AC
92052003-03-05 Andrew Cagney <[email protected]>
9206
9207 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9208 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9209 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9210 to use unwind_dummy_id when a dummy frame.
9211 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9212 predicate.
9213 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9214
ceea5145
AC
92152003-03-05 Andrew Cagney <[email protected]>
9216
9217 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9218 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9219 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9220 values.
9221
0d843116
AC
92222003-03-05 Andrew Cagney <[email protected]>
9223
9224 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9225 (struct d10v_unwind_cache): Delete field "frameless". Replace
9226 "next_addr" with "sp_offset". Add "r11_offset".
9227 (d10v_frame_unwind_cache): Update.
9228 (prologue_find_regs): Update. When "mv r11, sp", save the
9229 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9230 RN was saved in r11_offset.
9231
b2579786
AC
92322003-03-05 Andrew Cagney <[email protected]>
9233
9234 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9235 cached PC value in the next frame.
9236
218e5956
AC
92372003-03-05 Andrew Cagney <[email protected]>
9238
9239 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9240 "id_unwind_cache" with "id".
9241 (frame_id_unwind): Delete declaration.
9242 * frame.c (frame_id_unwind): Delete function.
9243 (get_prev_frame): Call the frame id unwind method directly. Store
9244 the returned next frame's ID value in NEXT_FRAME. Note that there
9245 is a problem with the wrong unwind ID being called with the wrong
9246 unwind cache.
9247
ed363b1b
DJ
92482003-03-05 Daniel Jacobowitz <[email protected]>
9249
9250 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9251
fe1f4a5e
DJ
92522003-03-05 James Ingham <[email protected]>
9253 Daniel Jacobowitz <[email protected]>
9254
9255 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9256 (auto_cp_abi): New variable.
9257 (current_cp_abi, num_cp_abis): Make static.
9258 (CP_ABI_MAX): Define.
9259 (cp_abis): Turn into an array.
9260 (value_virtual_fn_field): Fix formatting.
9261 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9262 takes a pointer.
9263 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9264 (list_cp_abis, _initialize_cp_abi): New functions.
9265 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9266 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9267 switch_to_cp_abi. Update prototype for register_cp_abi.
9268 * Makefile.in (cp-abi.o): Update dependencies.
9269 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9270 instead of switch_to_cp_abi.
9271 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9272 register_cp_abi.
9273 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9274 register_cp_abi.
9275 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9276
e4adbba9
DJ
92772003-03-05 Daniel Jacobowitz <[email protected]>
9278
9279 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9280 * dwarf2loc.c: Include "regcache.h".
9281 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9282 register_size.
9283 * Makefile.in (dwarf2loc.o): Update dependencies.
9284
91ccbfc1
TR
92852003-03-04 Theodore A. Roth <[email protected]>
9286
9287 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9288 number of io registers reported by remote target is not a multiple of
9289 step.
9290
3d4e8fd2
DC
92912003-03-04 David Carlton <[email protected]>
9292
9293 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9294 (lookup_symbol_aux_psymtabs): Update call to
9295 lookup_partial_symbol.
9296 (lookup_transparent_type, find_main_psymtab)
9297 (make_symbol_overload_list): Ditto.
9298
ed42d87b
KH
92992003-03-04 Kazu Hirata <[email protected]>
9300
9301 * MAINTAINERS (Write after approval): Update my email address.
9302
a0ed5532
AC
93032003-03-03 Andrew Cagney <[email protected]>
9304
9305 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9306 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9307 predicate. Replace MAX_REGISTER_RAW_SIZE.
9308 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9309 MAX_REGISTER_VIRTUAL_SIZE.
9310 * regcache.c (legacy_max_register_raw_size): New function.
9311 (legacy_max_register_virtual_size): New function.
9312 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9313 (MAX_REGISTER_RAW_SIZE): Define.
9314 (legacy_max_register_raw_size): Declare.
9315 (legacy_max_register_virtual_size): Declare.
9316 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9317 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9318 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9319 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9320 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9321 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9322 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9323 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9324 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9325 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9326 * vax-tdep.c (vax_gdbarch_init): Update.
9327 * v850-tdep.c (v850_gdbarch_init): Update.
9328 * sparc-tdep.c (sparc_gdbarch_init): Update.
9329 * sh-tdep.c (sh_gdbarch_init): Update.
9330 * s390-tdep.c (s390_gdbarch_init): Update.
9331 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9332 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9333 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9334 * mips-tdep.c (mips_gdbarch_init): Update.
9335 * mcore-tdep.c (mcore_gdbarch_init): Update.
9336 * m68k-tdep.c (m68k_gdbarch_init): Update.
9337 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9338 * ia64-tdep.c (ia64_gdbarch_init): Update.
9339 * i386-tdep.c (i386_gdbarch_init): Update.
9340 * hppa-tdep.c (hppa_gdbarch_init): Update.
9341 * h8300-tdep.c (h8300_gdbarch_init): Update.
9342 * frv-tdep.c (frv_gdbarch_init): Update.
9343 * cris-tdep.c (cris_gdbarch_init): Update.
9344 * avr-tdep.c (avr_gdbarch_init): Update.
9345 * arm-tdep.c (arm_gdbarch_init): Update.
9346 * alpha-tdep.c (alpha_gdbarch_init): Update.
9347 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9348 max_register_raw_size or max_register_virtual_size.
9349
8e437497
DC
93502003-03-03 David Carlton <[email protected]>
9351
9352 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9353 SYMBOL_MATCHES_NAME, add comment.
9354 (SYMBOL_MATCHES_NATURAL_NAME): New.
9355 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9356 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9357 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9358 * symtab.c (lookup_partial_symbol): Use
9359 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9360 unhelpful comment.
9361 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9362 SYMBOL_MATCHES_NAME.
9363 Fix for PR c++/33.
9364
25120b0d
DC
93652003-03-03 David Carlton <[email protected]>
9366
9367 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9368 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9369 by regexp matching against SYMBOL_NATURAL_NAME.
9370
78a11fb4
DC
93712003-03-03 David Carlton <[email protected]>
9372
9373 * linespec.c (find_method): Extract code into collect_methods.
9374 (collect_methods): New.
9375
645dd519
MK
93762003-03-02 Mark Kettenis <[email protected]>
9377
b4700d91
MK
9378 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9379 get_frame_base.
9380
645dd519
MK
9381 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9382 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9383
0aa7e1aa
SC
93842003-03-02 Stephane Carrez <[email protected]>
9385
8ffd9b1b 9386 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9387 and not regnum when summing the size of all registers up to regnum.
9388
f30ee0bc
AC
93892003-03-01 Andrew Cagney <[email protected]>
9390
9391 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9392 FRAME_INIT_SAVED_REGS.
9393 * gdbarch.h, gdbarch.c: Regenerate.
9394 * stack.c (frame_info): Update.
9395 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9396 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9397 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9398 * ns32k-tdep.c (ns32k_pop_frame): Update.
9399 * mips-tdep.c (mips_pop_frame): Update.
9400 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9401 * ia64-tdep.c (ia64_frame_chain): Update.
9402 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9403 (ia64_frameless_function_invocation): Update.
9404 (ia64_init_extra_frame_info): Update.
9405 (ia64_pop_frame_regular): Update.
9406 * frame.h (struct frame_info): Update comment.
9407 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9408 * frame.c (frame_saved_regs_register_unwind): Update.
9409 (frame_saved_regs_register_unwind): Update.
9410 (deprecated_generic_get_saved_register): Update.
9411 * cris-tdep.c: Update comment.
9412 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9413 Rename macro.
9414 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9415 * x86-64-tdep.c (x86_64_init_abi): Update.
9416 * vax-tdep.c (vax_gdbarch_init): Update.
9417 * v850-tdep.c (v850_gdbarch_init): Update.
9418 * sparc-tdep.c (sparc_gdbarch_init): Update.
9419 * sh-tdep.c (sh_gdbarch_init): Update.
9420 * s390-tdep.c (s390_gdbarch_init): Update.
9421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9422 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9423 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9424 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9425 * mips-tdep.c (mips_gdbarch_init): Update.
9426 * mcore-tdep.c (mcore_gdbarch_init): Update.
9427 * m68k-tdep.c (m68k_gdbarch_init): Update.
9428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9429 * ia64-tdep.c (ia64_gdbarch_init): Update.
9430 * i386-tdep.c (i386_gdbarch_init): Update.
9431 * frv-tdep.c (frv_gdbarch_init): Update.
9432 * avr-tdep.c (avr_gdbarch_init): Update.
9433 * arm-tdep.c (arm_gdbarch_init): Update.
9434 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9435
42fa7c0f
AC
94362003-03-01 Andrew Cagney <[email protected]>
9437
9438 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9439 option enum and switch. When no windows, set the interpreter to
9440 INTERP_CONSOLE.
8ffd9b1b 9441
49c7e338
AC
94422003-03-01 Andrew Cagney <[email protected]>
9443
9444 * main.c (captured_main): Replace magic option characters with an
9445 enum.
9446
e9582e71
AC
94472003-03-01 Andrew Cagney <[email protected]>
9448
9449 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9450 INIT_EXTRA_FRAME_INFO.
9451 * gdbarch.h, gdbarch.c: Regenerate.
9452 * arm-tdep.c: Update comments.
9453 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9454 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9455 * frame.h, avr-tdep.c: Ditto.
9456 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9457 (create_new_frame, legacy_get_prev_frame): Ditto.
9458 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9459 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9461 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9462 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9463 * v850-tdep.c (v850_gdbarch_init): Ditto.
9464 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9465 * sh-tdep.c (sh_gdbarch_init): Ditto.
9466 * s390-tdep.c (s390_gdbarch_init): Ditto.
9467 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9468 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9469 * mips-tdep.c (mips_gdbarch_init): Ditto.
9470 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9472 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9473 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9474 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9475 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9476 * frv-tdep.c (frv_gdbarch_init): Ditto.
9477 * cris-tdep.c (cris_gdbarch_init): Ditto.
9478 * avr-tdep.c (avr_gdbarch_init): Ditto.
9479 * arm-tdep.c (arm_gdbarch_init): Ditto.
9480 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9481 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9482
35cac7cf
AC
94832003-03-01 Andrew Cagney <[email protected]>
9484
9485 * gdbarch.sh (register_type): New function with predicate.
9486 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9487 * gdbarch.h, gdbarch.c: Re-generate.
9488 * arch-utils.c (generic_register_byte): Use generic_register_size.
9489 (generic_register_size): When available, use
9490 gdbarch_register_type.
9491 * regcache.c (init_regcache_descr): When available, initialize the
9492 register type array using gdbarch_register_type. If the
9493 architecture supplies gdbarch_register_type, do not use the legacy
9494 regcache layout.
9495 * d10v-tdep.c (d10v_register_type): Replace
9496 d10v_register_virtual_type.
9497 (d10v_gdbarch_init): Set register_type instead of
9498 register_virtual_type.
9499
7b83296f
AC
95002003-03-01 Andrew Cagney <[email protected]>
9501
9502 * Makefile.in (ax-gdb.o): Update dependencies.
9503 * ax-gdb.c: Include "regcache.h".
9504 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9505 * findvar.c (value_of_register): Ditto.
9506 * infcmd.c (default_print_registers_info): Ditto.
9507
eadc1c87
MK
95082003-03-01 Mark Kettenis <[email protected]>
9509
9510 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9511 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9512
14143612
MK
95132003-03-01 Mark Kettenis <[email protected]>
9514
9515 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9516 of STREQ.
9517
a55cc764
DJ
95182003-02-28 Daniel Jacobowitz <[email protected]>
9519
9520 * Makefile.in (dwarf2loc.o): Update dependencies.
9521 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9522 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9523 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9524 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9525 (locexpr_tracepoint_var_ref): New function.
9526 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9527
08a617da
AC
95282003-02-28 Andrew Cagney <[email protected]>
9529
9530 * regcache.c (register_size): New function.
9531 * regcache.h (register_size): Declare
9532 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9533 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9534
4224873a
DC
95352003-02-28 David Carlton <[email protected]>
9536
9537 * linespec.c (decode_compound): Extract code into find_method.
9538 (find_method): New.
9539
ccdc5d7f
JB
95402003-02-28 J. Brobecker <[email protected]>
9541
9542 * Makefile.in: Add rules to build and link in observer.o.
9543
974e8ced
JB
95442003-02-27 J. Brobecker <[email protected]>
9545
9546 * observer.c: Minor comments edits.
9547
7a28f973
JB
95482003-02-27 J. Brobecker <[email protected]>
9549
9550 * observer.h, observer.c: New file.
9551
27cddce2
AC
95522003-02-27 Andrew Cagney <[email protected]>
9553
9554 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9555
b94a41a1
SC
95562003-02-27 Stephane Carrez <[email protected]>
9557
9558 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9559 (M6812_OP_STS_EXT): Likewise.
9560 (m6811_prologue): Use the above to recognize prologue.
9561 (m6812_prologue): Likewise.
9562
c8be8951
DC
95632003-02-27 David Carlton <[email protected]>
9564
9565 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9566 SYMBOL_PRINT_NAME.
9567 (compare_psymbols): Ditto.
9568 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9569
d05bb1fc
MS
95702003-02-27 Michael Snyder <[email protected]>
9571
4e845cd3
MS
9572 * f-lang.c (build_fortran_types): New function.
9573 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9574 * doublest.c (extract_floating): Fix warning text.
9575
f3824013
AC
95762003-02-27 Andrew Cagney <[email protected]>
9577
9578 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9579 predicate. Replaces PUSH_DUMMY_FRAME.
9580 * gdbarch.h, gdbarch.c: Regnerate.
9581 * valops.c (hand_function_call): Update. Call
9582 generic_push_dummy_frame directly.
9583 * vax-tdep.c (vax_gdbarch_init): Update.
9584 * sparc-tdep.c (sparc_gdbarch_init): Update.
9585 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9586 * m68k-tdep.c (m68k_gdbarch_init): Update.
9587 * hppa-tdep.c (hppa_gdbarch_init): Update.
9588 * alpha-tdep.c (alpha_gdbarch_init): Update.
9589 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9590 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9591 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9593 push_dummy_frame to generic_push_dummy_frame.
9594 * v850-tdep.c (v850_gdbarch_init): Ditto.
9595 * sh-tdep.c (sh_gdbarch_init): Ditto.
9596 * s390-tdep.c (s390_gdbarch_init): Ditto.
9597 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9598 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9599 * mips-tdep.c (mips_gdbarch_init): Ditto.
9600 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9602 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9603 * i386-tdep.c (i386_gdbarch_init): Ditto.
9604 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9605 * frv-tdep.c (frv_gdbarch_init): Ditto.
9606 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9607 * cris-tdep.c (cris_gdbarch_init): Ditto.
9608 * avr-tdep.c (avr_gdbarch_init): Ditto.
9609 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9610
ad188201
KB
96112003-02-26 Kevin Buettner <[email protected]>
9612
9613 * mips-tdep.c (show_mips_abi): New function.
9614 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9615 command ``show mips abi''.
9616
6b37567a 96172003-02-26 Jeff Johnston <[email protected]>
8ffd9b1b 9618
6b37567a 9619 From Elena Zannoni <[email protected]>
8ffd9b1b 9620 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9621 more sline entries have been seen for the function.
9622
d3e0a5bf
MC
96232003-02-26 Michael Chastain <[email protected]>
9624
9625 * configure: Regenerate with autoconf 000227.
9626
18972eea
MC
96272003-02-26 Michael Chastain <[email protected]>
9628
9629 Close PR build/660.
9630 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9631 for old libc5/glibc.
9632 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9633
0bbde931
KW
96342003-02-26 Kris Warkentin <[email protected]>
9635
9636 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9637 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9638
27ca5dad
MC
96392003-02-26 Michael Chastain <[email protected]>
9640
9641 * configure.in: New variable HAVE_UINTPTR_T.
9642 * configure, config.in: Regenerated.
9643
6f88d630
DJ
96442003-02-26 Daniel Jacobowitz <[email protected]>
9645
9646 Fix PR build/1097.
9647 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9648
b14185ce
AC
96492003-02-25 Andrew Cagney <[email protected]>
9650
9651 * frame.c (get_prev_frame): Add comment on check for
9652 inside_entry_func. Only check for inside_entry_file when not a
9653 dummy and not a sentinel. Check that the new frame is not inner
9654 to the old frame.
9655
ac2bd0a9
AC
96562003-02-25 Andrew Cagney <[email protected]>
9657
9658 * frame.c (frame_debug): New variable.
9659 (_initialize_frame): Add "set/show debug frame" command.
9660 (get_prev_frame): When frame_debug, print reason why unwind
9661 failed.
9662
b18a0fd2
MC
96632003-02-25 Michael Chastain <[email protected]>
9664
9665 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9666 to avoid uintptr_t definition problems.
9667
22abf04a
DC
96682003-02-25 David Carlton <[email protected]>
9669
9670 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9671 (SYMBOL_LINKAGE_NAME): Ditto.
9672 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9673 SYMBOL_LINKAGE_NAME.
9674 (struct general_symbol_info): Expand comment.
9675 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9676 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9677 (SYMBOL_MATCHES_REGEXP): Ditto.
9678 * symtab.c (symbol_natural_name): New function.
9679 * objfiles.h: Replace all uses of SYMBOL_NAME by
9680 DEPRECATED_SYMBOL_NAME.
9681 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9682 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9683 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9684 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9685 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9686 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9687 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9688 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9689 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9690 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9691 * ada-exp.y: Ditto.
9692 * ada-exp.y: Update copyright.
9693 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9694 * cp-valprint.c: Ditto.
9695
1a5848f6
JJ
96962003-02-25 Jeff Johnston <[email protected]>
9697
9698 * infptrace.c (detach): Do not flag error if ptrace detach fails
9699 and errno is set to ESRCH.
9700
7343d46a
AC
97012003-02-24 Andrew Cagney <[email protected]>
9702
9703 * infptrace.c (udot_info): Change type of udot_off to long. Use
9704 paddr when printing udot_off's value.
9705
49fa1dc2
DC
97062003-02-24 David Carlton <[email protected]>
9707
9708 * symtab.c (make_symbol_overload_list): Only read in partial
9709 symtabs containing a matching partial symbol.
9710
0fe19209
DC
97112003-02-24 David Carlton <[email protected]>
9712
9713 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9714 do the comparison, not strcmp.
9715 * symfile.c (compare_psymbols): Ditto.
9716 * defs.h: Declare strcmp_iw_ordered.
9717 * utils.c (strcmp_iw_ordered): New function.
9718
8e3ee7b5
JB
97192003-02-24 Jim Blandy <[email protected]>
9720
9721 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9722 support, shared libs): Remove my name from here, to better reflect
9723 reality.
9724
7df1a324
KW
97252003-02-24 Kris Warkentin <[email protected]>
9726
9727 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9728 (target_ops): Add to_have_continuable_watchpoint.
9729 * target.c (update_current_target): Add INHERIT line for
9730 to_have_continuable_watchpoint.
9731 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9732 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9733 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9734 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9735
d1c76907
EZ
97362003-02-24 Elena Zannoni <[email protected]>
9737
9738 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9739 maintainership.
9740
2610b0bf
KW
97412003-02-24 Kris Warkentin <[email protected]>
9742
f46169db
KW
9743 * solib.c (solib_open): Call target defined search function after
9744 failing with solib-search-path.
9745 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9746 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9747
9a3c34fe
KW
97482003-02-24 Kris Warkentin <[email protected]>
9749
f46169db 9750 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9751
2417dd25
SC
97522003-02-23 Stephane Carrez <[email protected]>
9753
9754 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9755
b631436b
SC
97562003-02-22 Stephane Carrez <[email protected]>
9757
9758 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9759 (m68hc11_add_reggroups): New function.
9760 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9761 (m68hc11_gdbarch_init): Install the reggroups.
9762 (_initialize_m68hc11_tdep): Initialize them.
9763
0aa8c1e4
JW
97642003-02-21 James E Wilson <[email protected]>
9765
9766 * MAINTAINERS: Update my email address.
9767
50ceaba5
DC
97682003-02-21 David Carlton <[email protected]>
9769
9770 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9771
4c2df51b
DJ
97722003-02-21 Daniel Jacobowitz <[email protected]>
9773
9774 Based on a patch from Daniel Berlin ([email protected]).
9775 * symtab.h: Add opaque declarations of struct axs_value and
9776 struct agent_expr.
9777 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9778 (struct location_funcs): New type.
9779 (struct symbol): Add "loc" to aux_value.
9780 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9781 * dwarf2read.c: Include "dwarf2expr.h".
9782 (dwarf2_symbol_mark_computed): New function.
9783 (read_func_scope): Use it.
9784 (var_decode_location): New function.
9785 (new_symbol): Use it.
9786 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9787
9788 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9789 (dwarf2expr_h, dwarf2loc_h): New variables.
9790 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9791 (dwarf2expr.o, dwarf2loc.o): New rules.
9792 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9793 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9794 LOC_COMPUTED_ARG.
9795 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9796 * m2-exp.y (yylex): Likewise.
9797 * printcmd.c (address_info, print_frame_args): Likewise.
9798 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9799 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9800 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9801 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9802 * symtab.c (lookup_block_symbol): Likewise.
9803
5784d15e
AF
98042003-02-20 Adam Fedor <[email protected]>
9805
9806 * symtab.h: Remove objc_specific struct
9807 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9808 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9809 Have language_objc use cplus_specific struct.
9810
d4cad8db
TT
98112003-02-20 Tom Tromey <[email protected]>
9812
9813 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9814 TYPE_NAME, when printing a String value. PR java/1075.
9815
2f9a90b4
AF
98162003-02-20 Adam Fedor <[email protected]>
9817
d38074a8 9818 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9819 * objc-lang.c (find_methods): Make static.
2f9a90b4 9820
6f17862b
CF
98212003-02-20 Christopher Faylor <[email protected]>
9822
9823 * win32-nat.c (get_image_name): Check return value from
9824 ReadProcessMemory.
9825 (child_xfer_memory): Ditto.
9826
715d1656
AO
98272003-02-20 Alexandre Oliva <[email protected]>
9828
9829 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9830 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9831 '${exec_prefix}' (in addition to the expansion thereof) as
9832 relocatable.
9833 * configure: Rebuilt.
9834
b1262a02
DC
98352003-02-20 David Carlton <[email protected]>
9836
9837 * symtab.c (search_symbols): Revert the search_symbols part of my
9838 2002-12-23 patch. Add comment.
9839
7134143f
DJ
98402002-02-20 Daniel Jacobowitz <[email protected]>
9841
9842 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9843 * dbxread.c (elfstab_build_psymtabs): Don't call
9844 install_minimal_symbols.
9845 (stabsect_build_psymtabs): Likewise.
9846 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9847 earlier.
9848 * somread.c (som_symfile_read): Call install_minimal_symbols
9849 and do_cleanups earlier.
9850 * nlmread.c (nlm_symfile_read): Likewise.
9851 * mdebugread.c (elfmdebug_build_psymtabs): Call
9852 install_minimal_symbols and make appropriate cleanups.
9853
cf466558
KB
98542003-02-20 Kevin Buettner <[email protected]>
9855
9856 * solib.c (reload_shared_libraries): New function.
9857 (_initialize_solib): Add callbacks for ``set solib-search-path''
9858 and ``set solib-absolute-prefix''.
9859
de5ad195
DC
98602003-02-20 David Carlton <[email protected]>
9861
9862 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9863 expand comment.
9864 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9865 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9866 * ada-typeprint.c (ada_typedef_print): Ditto.
9867 * ax-gdb.c (gen_var_ref): Ditto.
9868 * breakpoint.c (print_one_breakpoint): Ditto.
9869 * buildsym.c (finish_block): Ditto.
9870 * c-valprint.c (c_val_print): Ditto.
9871 * expprint.c (print_subexp): Ditto.
9872 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9873 * infcmd.c (jump_command): Ditto.
9874 * linespec.c (decode_line_2, decode_compound): Ditto.
9875 * maint.c (maintenance_translate_address): Ditto.
9876 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9877 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9878 Ditto.
8ffd9b1b
AJ
9879 * p-valprint.c (pascal_val_print): Ditto.
9880 * stabsread.c (define_symbol): Ditto.
de5ad195 9881 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9882 (print_frame_arg_vars, return_command): Ditto.
9883 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9884 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9885 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9886 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9887 (rbreak_command): Ditto.
9888 * tracepoint.c (tracepoints_info): Ditto.
9889 * typeprint.c (typedef_print): Ditto.
9890 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9891 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9892 * ada-typeprint.c: Update Copyright.
9893 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9894 * tracepoint.c, cli/cli-cmds.c: Ditto.
9895
f796e4be
KB
98962003-02-20 Kevin Buettner <[email protected]>
9897
9898 * frame.c (generic_unwind_get_saved_register): Make non-static.
9899 * frame.h (generic_unwind_get_saved_register): Declare.
9900 * mips-tdep.c (read_next_frame_reg): Fetch register from
9901 current regcache when frame is NULL.
9902 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9903 that must be NULL.
9904 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9905 instead of frame_register_unwind().
9906
836cc9f4
AC
99072003-02-20 Andrew Cagney <[email protected]>
9908
9909 * remote-sim.c (gdbsim_insert_breakpoint)
9910 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9911 code.
9912
501eef12
AC
99132003-02-20 Andrew Cagney <[email protected]>
9914
9915 * remote.c (_initialize_remote): Add commands "set/show remote
9916 hardware-watchpoint-limit" and "set/show remote
9917 hardware-breakpoint-limit".
9918 (remote_hw_watchpoint_limit): Initialize to -1.
9919 (remote_hw_breakpoint_limit): Ditto.
9920 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9921
1b6bc7e0
CF
99222003-02-19 Raoul Gough <[email protected]>
9923
9924 * coff-pe-read.c: New file - support reading of minimal symbols from a
9925 portable executable using the export table.
9926 * coff-pe-read.h: New file.
9927 * coffread.c: Include coff-pe-read.h.
9928 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9929 debugging symbols found.
9930 * Makefile.in (SFILES): Add coff-pe-read.o.
9931 (coff_pe_read_h): Define.
9932 (COMMON_OBS): Add coff-pe-read.o.
9933 (coffread.o): Add coff_pe_read_h dependency.
9934 (coff-pe-read.o): New target.
9935
fe898f56
DC
99362003-02-19 David Carlton <[email protected]>
9937
9938 * Makefile.in (SFILES): Add block.c.
9939 (block_h): New.
9940 (COMMON_OBS): Add block.o.
9941 (block.o): New.
9942 (x86-64-tdep.o): Add $(block_h).
9943 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9944 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9945 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9946 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9947 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9948 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9949 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9950 * value.h: Add opaque declaration for struct block.
9951 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9952 * ada-lang.h: Ditto.
9953 * x86-64-tdep.c: #include "block.h"
9954 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9955 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9956 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9957 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9958 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9959 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9960 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9961 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9962 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9963 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9964 * symtab.c (block_function): Ditto.
9965 (contained_in): Ditto.
9966 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9967 block.h. Add opaque declaration for struct block.
9968 * symtab.h: Move block_function and contained_in declarations to
9969 block.h. Add opaque declarations for struct block, struct
9970 blockvector.
9971 (struct block): Move to block.h.
9972 (struct blockvector): Ditto.
9973 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9974 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9975 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9976 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9977 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9978 Ditto.
9979 * block.c: New file.
9980 * block.h: New file.
9981
173345b5
TR
99822003-02-19 Theodore A. Roth <[email protected]>
9983
9984 * avr-tdep.c (avr_extract_return_value): Remove function.
9985 (avr_store_return_value): Remove function.
9986 (avr_extract_struct_value_address): Remove function.
9987 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9988
338ef23d
AC
99892003-02-19 Andrew Cagney <[email protected]>
9990
9991 * rs6000-tdep.c: Include "gdb_assert.h".
9992 (registers_e500): Add "acc" and "spefscr".
9993 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9994 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9995 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9996 really is "r0".
9997 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9998
5412f5f3
KS
99992003-02-18 Keith Seitz <[email protected]>
10000
10001 * Makefile.in: Add gdbtk-interps.c.
10002
881324eb
KB
100032003-02-18 Kevin Buettner <[email protected]>
10004
10005 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10006 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10007
6a2f5abf
AC
100082003-02-18 Andrew Cagney <[email protected]>
10009
10010 * symtab.h (struct objfile): Add opaque declaration.
10011
54c7009d
EZ
100122003-02-18 Elena Zannoni <[email protected]>
10013
10014 From Jim Ingham <[email protected]>:
fbe586ae
RH
10015 * dbxread.c (process_one_symbol): Use last_function_start rather
10016 than function_start_offset to find the real beginning of the
10017 current function. The latter is just the text section offset on
10018 some systems, the former is always the real function start.
54c7009d 10019
7ee6d7eb
AC
100202003-02-17 Andrew Cagney <[email protected]>
10021
10022 * configure.in: Revert ${target} != ${host}.
10023
2846da9b
AC
100242003-02-17 Andrew Cagney <[email protected]>
10025
10026 * configure.in (Makefile): Use the test ${target} != ${host},
10027 instead of the absence of the "nm.h" file, to determine of the
10028 configuration non-native.
10029 * configure: Regenerate.
8ffd9b1b 10030
3b27aeea
EZ
100312003-02-14 Elena Zannoni <[email protected]>
10032
fbe586ae 10033 From Brian Ford <[email protected]>
3b27aeea
EZ
10034
10035 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10036 conditionalize tui_active test.
10037 (lookup_cmd_1): Ditto.
10038
b0b1c2c0
MK
100392003-02-14 Mark Kettenis <[email protected]>
10040
10041 * configure.in: Add check for _etext.
10042 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10043 available.
10044 * config.in, configure: regenerated.
10045
8f05cde5
DJ
100462003-02-14 Daniel Jacobowitz <[email protected]>
10047
10048 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10049
021e7609
AC
100502003-02-14 Andrew Cagney <[email protected]>
10051
10052 * main.c (tui_version): Delete variable.
10053 (captured_main): When --tui, set interpreter_p to "tui" instead of
10054 enabling tui_version.
10055 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10056 tui_version.
10057 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10058 * cli/cli-cmds.c (disassemble_command): Ditto.
10059 * defs.h (tui_version): Delete declaration.
10060 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10061 (tui-interp.o): Add rules.
10062 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10063
e325dcec
CF
100642003-02-14 Christopher Faylor <[email protected]>
10065
36ffb041 10066 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10067 just-loaded dll.
10068
c4f90d87
JM
100692003-02-12 Jason Molenda ([email protected])
10070
fbe586ae
RH
10071 * symmisc.c (print_objfile_statistics): Include information about
10072 the number of psymtabs and symtabs in each object file.
c4f90d87 10073
e46e5ccd
KS
100742003-02-13 Keith R Seitz <[email protected]>
10075
10076 * main.h (struct captured_main_args): Add interpreter_p.
10077 * main.c (captured_main): Initialize interpreter_p from context.
10078 * gdb.c (main): Set interpreter_p argument.
10079 * Makefile.in (gdb.o): Add dependency for interps.h.
10080
fe97fe9c
AC
100812003-02-12 Andrew Cagney <[email protected]>
10082
10083 * event-top.c (cli_command_loop): Delete declaration.
10084 (_initialize_event_loop): Delete function setting event_loop_hook.
10085 * event-top.h (cli_command_loop): Declare. Update copyright.
10086 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10087 * interps.c (current_interp_command_loop): When event_loop_p, call
10088 cli_command_loop.
10089
1cdac4ef
AC
100902003-02-12 Andrew Cagney <[email protected]>
10091
10092 * interps.h (interp_command_loop_ftype): Change return type to
10093 void.
10094
48037ead
ML
100952003-02-12 Michal Ludvig <[email protected]>
10096
10097 * x86-64-tdep.c (x86_64_extract_return_value)
10098 (x86_64_store_return_value): Use regcache instead of regbuf.
10099 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10100 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10101
033afc63
AC
101022003-02-11 Andrew Cagney <[email protected]>
10103
10104 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10105 * aclocal.m4: Regenerate.
10106 * configure: Regenerate.
10107
10108 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10109 TCL_LD_SEARCH_FLAGS.
10110
40d02bca
ML
101112003-02-10 Michal Ludvig <[email protected]>
10112
10113 * dwarf2cfi.c: Reindented.
10114
11308a41
AC
101152003-02-09 Andrew Cagney <[email protected]>
10116
10117 * interps.c (clear_interpreter_hooks): Convert function definition
10118 to ISO C.
10119
e1c1c0f6
DC
101202003-02-07 David Carlton <[email protected]>
10121
10122 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10123
ab5d3da6
KB
101242003-02-07 Kevin Buettner <[email protected]>
10125
10126 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10127 (struct type): ...to here.
10128 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10129 field.
10130 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10131 (replace_type): Set length on all type variants for a given type.
10132
b8a92b82
AC
101332003-02-07 Andrew Cagney <[email protected]>
10134
10135 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10136 <sys/stat.h>.
10137 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10138
5cb316ef
AC
101392003-02-06 Andrew Cagney <[email protected]>
10140
2555fe1a
AC
10141 * Makefile.in (symm-nat.o): Update dependencies.
10142 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10143 (lynx-nat.o, ia64-linux-nat.): Ditto.
10144 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10145 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10146 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10147
44270758
AC
10148 * Makefile.in (inflow_h): Define.
10149 (procfs.o, inflow.o, procfs.o): Update dependencies.
10150 * inftarg.c (child_stop): Delete extern declaration of
10151 inferior_process_group. Include "inflow.h".
10152 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10153 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10154 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10155 (our_process_group, inferior_process_group): Extern declarations.
10156
df8f7274
AC
10157 * procfs.c: Include "gdb_assert.h".
10158
5cb316ef
AC
10159 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10160 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10161 * jv-typeprint.c (java_type_print_base): Ditto.
10162 * typeprint.c (typedef_print): Eliminate STREQ.
10163 * cli/cli-script.c (define_command, define_command): Ditto.
10164 * main.c (captured_main): Ditto.
10165 * values.c (lookup_internalvar): Ditto.
10166 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10167 within `if' conditional.
10168 * linespec.c (decode_line_2): Ditto.
10169 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10170 (bfd_openw_with_cleanup): Ditto.
10171
2a28ccea
MK
101722003-02-07 Mark Kettenis <[email protected]>
10173
10174 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10175 legacy_extract_return_value and store_return_value to
10176 legacy_return_value.
10177
786b8124
CF
101782003-02-06 Raoul Gough <[email protected]>
10179
10180 * win32-nat.c (get_relocated_section_addrs): New function. Find
10181 section load addresses for symbol handling in relocated DLLs.
10182 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10183
b871e4ec
FF
101842003-02-05 Fred Fish <[email protected]>
10185
10186 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10187 '=' and '!='.
10188 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10189 with '&' and '=='.
10190 (angel_RDI_info): Ditto.
10191 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10192 with '&' and '!='.
10193 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10194
4389a95a 101952003-02-05 Jim Ingham <[email protected]>
fbe586ae
RH
10196 Keith Seitz <[email protected]>
10197 Elena Zannoni <[email protected]>
10198 Andrew Cagney <[email protected]>
4389a95a
AC
10199
10200 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10201 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10202 (SUBDIR_MI_OBS): Add "mi-interp.o".
10203 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10204 (SFILES): Add "interps.c".
10205 (COMMON_OBS): Add "interps.o".
10206 (interps_h, mi_main_h): Define.
10207 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10208 (mi-main.o, main.o, event-top.o): Update dependencies.
10209 * cli/cli-interp.c: New file.
10210 * interps.h, interps.c: New files.
10211 * top.c: (gdb_init): Don't install the default interpreter, handed
10212 by captured_main.
10213 * main.c: Include "interps.h".
10214 (interpreter_p): Note that it should malloc'ed.
10215 (captured_command_loop): Call current_interp_command_loop.
10216 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10217 xfree and xstrdup when updating interpreter_p. Install the
10218 default interpreter. Add hack to stop mi1's copyright notice
10219 being encoded.
10220 * event-top.h (gdb_setup_readline): Declare.
10221 (gdb_disable_readline): Declare.
10222 * event-top.c: Include "interps.h".
10223 (display_gdb_prompt): Call current_interp_display_prompt_p.
10224 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10225 gdb_stdlog, and gdb_stdtarg.
10226 (_initialize_event_loop): Don't call gdb_setup_readline.
10227 * cli-out.c (cli_out_set_stream): New function.
10228 * cli-out.h (cli_out_set_stream): Declare.
10229
ff3b5810
MK
102302003-02-06 Mark Kettenis <[email protected]>
10231
10232 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10233 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10234 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10235 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10236 config/i386/i386v42mp.mt: Removed.
10237
5b729aa5
MK
102382003-02-05 Mark Kettenis <[email protected]>
10239
10240 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10241 GDB_OSABI_SOLARIS.
10242
8cc15142
MC
102432003-02-05 Michael Chastain <[email protected]>
10244
10245 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10246 2.12.1 and earlier versions.
10247
5aa5d4b9
AC
102482003-02-05 Andrew Cagney <[email protected]>
10249
10250 Remove orphaned hosts, targets and files.
10251 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10252 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10253 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10254 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10255 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10256 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10257 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10258 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10259 * config/sparc/tm-sp64sim.h: Delete.
10260 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10261 hosts.
10262 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10263 mips*-dec-mach3* targets.
10264
b68767c1
MC
102652003-02-04 Michael Chastain <[email protected]>
10266
10267 * NEWS: Fix typo: sepcifying -> specifying.
10268
5ae7ca1d
MC
102692003-02-04 Michael Chastain <[email protected]>
10270
10271 * dwarfread.c: Add documentation on the state of dwarf-1,
10272 looking towards obsoletion.
10273
d08a4280
MC
102742003-02-03 Michael Chastain <[email protected]>
10275
10276 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10277 gdb/testsuite/gdb.c++/pr-1023.exp.
10278
e9be73e4
AC
102792003-02-04 Andrew Cagney <[email protected]>
10280
10281 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10282 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10283
10284 * utils.c (init_page_info): Delete reference to MPW in comments.
10285 * main.c (captured_main): Delete #ifdef MPW.
10286
05d57f6f
AC
102872003-02-04 Andrew Cagney <[email protected]>
10288
8ffd9b1b 10289 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10290 * monitor.c (monitor_expect): Obsolete reference to m32r.
10291 * configure.tgt: Mark m32r-*-elf* as obsolete.
10292 * MAINTAINERS: Mark m32k as obsolete.
10293 * m32r-rom.c: Obsolete file.
10294 * config/m32r/m32r.mt: Obsolete file.
10295 * config/m32r/tm-m32r.h: Obsolete file.
10296 * m32r-stub.c: Obsolete file.
10297 * m32r-tdep.c: Obsolete file.
10298
8b0e5691
AC
102992003-02-04 Andrew Cagney <[email protected]>
10300
10301 * NEWS: Mention that the z8k-zilog-none is obsolete.
10302 * MAINTAINERS: Mark z8k as obsolete.
10303 * configure.tgt: Obsolete the z8k-*-coff* target.
10304 * config/z8k/z8k.mt: Obsolete file.
10305 * config/z8k/tm-z8k.h: Obsolete file.
10306 * z8k-tdep.c: Obsolete file.
10307
67f16606
AC
103082003-02-04 Andrew Cagney <[email protected]>
10309
10310 * NEWS: Mention that the mn10200-elf is obsolete.
10311 * configure.tgt: Obsolete mn10200-*-* target.
10312 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10313 mention that the mn10200 is obsolete.
10314 * breakpoint.h: Ditto.
10315 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10316 * config/mn10200/mn10200.mt: Obsolete file.
10317 * config/mn10200/tm-mn10200.h: Obsolete file.
10318 * mn10200-tdep.c: Obsolete file.
10319
fd2299bd
AC
103202003-02-04 Andrew Cagney <[email protected]>
10321
10322 * MAINTAINERS: Mark h8500 as obsolete.
10323 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10324 * findvar.c (value_from_register): Ditto.
10325 * h8500-tdep.c: Mark file as obsolete.
10326 * config/h8500/h8500.mt: Ditto.
10327 * config/h8500/tm-h8500.h: Ditto.
10328 * NEWS: Mention that h8500 is obsolete.
10329
eb9a305d
DC
103302003-02-04 David Carlton <[email protected]>
10331
10332 * objfiles.c (allocate_objfile): Always set name. Add comment at
10333 start of function.
10334 * jv-lang.c (get_dynamics_objfile): Add comment.
10335
406fc7fb
DC
103362003-02-04 David Carlton <[email protected]>
10337
10338 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10339 * printcmd.c (build_address_symbolic): Replace uses of
10340 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10341 SYMBOL_NAME, and asm_demangle.
10342 Update copyright.
10343
93d91629
DC
103442003-02-04 David Carlton <[email protected]>
10345
10346 * linespec.c (decode_compound): Extract code into
10347 lookup_prefix_sym.
10348 (lookup_prefix_sym): New function.
10349
1c5cb38e
DC
103502003-02-04 David Carlton <[email protected]>
10351
10352 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10353 FLOAT_COERCION_BADNESS.
10354 * gdbtypes.c (rank_one_type): Replace all uses of
10355 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10356
0cf824c9
JB
103572003-02-04 Jim Blandy <[email protected]>
10358
10359 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10360 section, let dwarf_macinfo_section point to it, not
10361 dwarf_loc_section.
10362
a2d356b0
DJ
103632003-02-04 Daniel Jacobowitz <[email protected]>
10364
10365 Pointed out by Anton Blanchard <[email protected]>.
10366 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10367 (ppc_linux_at_sigtramp_return_path): Use it.
10368
2de7ced7
DJ
103692003-02-04 Daniel Jacobowitz <[email protected]>
10370
10371 * defs.h (streq): Add prototype.
10372 * utils.c (streq): New function.
10373
10374 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10375 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10376 * mdebugread.c (new_symbol): Likewise.
10377 * stabsread.c (define_symbol): Likewise.
10378 * coffread.c (process_coff_symbol): Likewise.
10379 * dwarfread.c (new_symbol): Likewise.
10380
10381 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10382 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10383 here.
10384 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10385 SYMBOL_INIT_DEMANGLED_NAME.
10386 * objfiles.c: Include "hashtab.h".
10387 (allocate_objfile): Call htab_set_functions_ex for the
10388 demangled_names_hash.
10389 (free_objfile): Call htab_delete for the demangled_names_hash.
10390 * objfiles.h (struct htab): Add declaration.
10391 (struct objfile): Add demangled_names_hash.
10392 * symfile.c: Include "hashtab.h".
10393 (reread_symbols): Call htab_delete for the demangled_names_hash.
10394 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10395 SYMBOL_NAME in the bcache.
10396 * symtab.c: Include "hashtab.h". Update comments.
10397 (create_demangled_names_hash, symbol_set_names): New functions.
10398 (symbol_find_demangled_name): New function, broken out from
10399 symbol_init_demangled_names.
10400 (symbol_init_demangled_names): Use it.
10401 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10402 (SYMBOL_SET_NAMES): New macro.
10403 (symbol_set_names): Add prototype.
10404
15831452
JB
104052003-02-03 Jim Blandy <[email protected]>
10406
10407 Use a single, consistent representation for an empty minimal
10408 symbol table in an objfile.
10409 * objfiles.c (terminate_minimal_symbol_table): New function.
10410 (allocate_objfile): Call it.
10411 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10412 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10413 non-NULL.
15831452
JB
10414 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10415 objfile has minimal symbols, compare minimal_symbol_count to zero,
10416 instead of comparing msymbols with NULL.
10417 * objfiles.c (have_minimal_symbols): Same.
10418 * solib-sunos.c (solib_add_common_symbols): Call
10419 terminate_minimal_symbol_table.
10420 * symfile.c (reread_symbols): Same.
8ffd9b1b 10421
ffc65945
KB
104222003-02-03 Kevin Buettner <[email protected]>
10423
10424 * s390-tdep.c (s390_address_class_type_flags)
10425 (s390_address_class_type_flags_to_name)
10426 (s390_address_class_name_to_type_flags): New functions.
10427 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10428 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10429
f211c6d4
MS
104302003-02-03 Michael Snyder <[email protected]>
10431
10432 * arm-tdep.c: Fix spell-o in comment.
10433
659b0389
ML
104342003-02-03 Michal Ludvig <[email protected]>
10435
10436 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10437 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10438 error messages to contain BFD filename.
659b0389 10439
3b31d625
EZ
104402003-02-02 Elena Zannoni <[email protected]>
10441
997b089a 10442 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10443 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10444 (do_mixed_source_and_assembly): Use
10445 make_cleanup_ui_out_tuple_begin_end and
10446 make_cleanup_ui_out_tuple_begin_end.
10447 (do_mixed_source_and_assembly): Ditto.
10448 * thread.c (do_captured_list_thread_ids): Ditto.
10449 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10450 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10451 ui_out_tuple_end): Delete prototypes.
10452 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10453 ui_out_list_end, ui_out_tuple_end): Delete.
10454
10455 From Kevin Buettner <[email protected]>:
10456 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10457 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10458 (do_cleanup_table_end): New functions.
10459 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10460 Use cleanups to invoke_ui_out_tuple_end().
10461 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10462 * cli/cli-setshow.c (cmd_show_list): Use
10463 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10464
5b181d62
AC
104652003-02-02 Andrew Cagney <[email protected]>
10466
10467 * frame.c (frame_unwind_register): New function.
10468 (frame_unwind_unsigned_register): Use.
10469 (frame_unwind_signed_register): Use.
10470 (frame_read_register): New function.
10471 * frame.h (frame_unwind_register): Declare.
10472 (frame_read_register): Declare.
10473
10474 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10475 and frame_unwind_register instead of read_memory, write_register
10476 and deprecated_write_register_bytes.
10477
5f601589
AC
104782003-02-02 Andrew Cagney <[email protected]>
10479
10480 * frame.h: Note that namelen can be negative.
10481 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10482 NAME's length.
10483
10484 * NEWS: Mention that the d10v's `regs' command is deprecated.
10485 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10486 (d10v_print_registers_info): New function.
10487 (show_regs): Call d10v_print_registers_info.
10488 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10489
6a3fe0a4
MK
104902003-02-02 Mark Kettenis <[email protected]>
10491
10492 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10493 lost in the previous patch.
10494
075559bc
AC
104952003-02-01 Andrew Cagney <[email protected]>
10496
10497 From 2002-11-09 Jason Molenda ([email protected])
fbe586ae
RH
10498 * stack.c (print_frame_info_base): Output complete FRAME tuple
10499 for synthesized frames.
075559bc 10500
6789195b
AC
105012003-02-02 Andrew Cagney <[email protected]>
10502
10503 * mips-nat.c (zerobuf): Delete.
10504 (fetch_inferior_registers): Alloc local zerobuf.
10505 (fetch_core_registers): Alloc local zerobuf.
10506 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10507 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10508 * thread-db.c (thread_db_store_registers): Ditto.
10509 * sh-tdep.c (sh_do_register): Ditto.
10510 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10511 * remote-sim.c (gdbsim_store_register): Ditto.
10512 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10513 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10514 * monitor.c (monitor_supply_register): Ditto.
10515 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10516 * mips-nat.c (fetch_inferior_registers): Ditto.
10517 * m68klinux-nat.c (fetch_register): Ditto.
10518 * lynx-nat.c (fetch_inferior_registers): Ditto.
10519 (fetch_inferior_registers): Ditto.
10520 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10521 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10522 (hpux_thread_store_registers): Ditto.
10523 * hppah-nat.c (fetch_register): Ditto.
10524 * hppab-nat.c (fetch_register): Ditto.
10525 * hppa-tdep.c (pa_register_look_aside): Ditto.
10526 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10527 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10528
e669114a
AC
105292003-02-01 Andrew Cagney <[email protected]>
10530
10531 * gdbarch.sh: Explictly specify all method levels. When a
10532 variable with an empty level, provide a non-multi-arch default.
10533 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10534 * gdbarch.h: Re-generate.
10535 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10536 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10537
9a043c1d
AC
105382003-02-01 Andrew Cagney <[email protected]>
10539
10540 * defs.h (host_pointer_to_address): Delete declaration.
10541 (address_to_host_pointer): Delete declaration.
10542 * utils.c (host_pointer_to_address): Delete function.
10543 (address_to_host_pointer): Delete function.
10544 * procfs.c (procfs_address_to_host_pointer): New function.
10545 * procfs.c (proc_set_watchpoint): Use.
10546 (procfs_can_use_hw_breakpoint): Update comments.
10547 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10548 (som_solib_add): Use.
10549 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10550 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10551
7ca9f392
AC
105522003-02-01 Andrew Cagney <[email protected]>
10553
94bbfd30
AC
10554 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10555 strlen d_name.
10556
7ca9f392
AC
10557 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10558 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10559 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10560 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10561 (define_symbol): Update.
10562 * symfile.c (generic_load): Remove references to nindy.
10563 * symtab.c: Remove references to nindy.
10564
31a85ea2
AC
105652003-02-01 Andrew Cagney <[email protected]>
10566
10567 * infcmd.c (print_float_info): Delete code conditional on
10568 FLOAT_INFO.
10569 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10570 * config/m68k/nm-apollo68b.h: Ditto.
10571 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10572 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10573 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10574
f6e85fc8
MK
105752003-02-01 Mark Kettenis <[email protected]>
10576
6015b6a0
MK
10577 * config/i386/tm-i386os9k.h: Removed.
10578
f7a30bdf
MK
10579 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10580 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10581 they're identical to i[3456]86-*-sysv* now.
10582 * config/i386/i386v32.mh: Removed.
10583 * config/i386/xm-i386v32.h: Removed.
10584 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10585
28d52111
MK
10586 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10587
4d3f6bce
MK
10588 * config/i386/i386dgux.mh: Removed.
10589 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10590
f6e85fc8
MK
10591 * configure.in: Fix typo.
10592 * configure: Regenerated.
10593
53955967
DC
105942003-01-31 David Carlton <[email protected]>
10595
10596 * dwarf2read.c (dwarf2_locate_sections): Set
10597 dwarf_ranges_section.
10598
b1364885
AC
105992003-01-31 Andrew Cagney <[email protected]>
10600
8dbb1c65
AC
10601 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10602 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10603
8731e58e
AC
10604 * utils.c: Re-indent.
10605
b1364885
AC
10606 * config/djgpp/fnchange.lst: Delete nindy files.
10607 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10608 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10609 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10610 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10611 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10612 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10613 * Makefile.in (init.c): Remove nindy references.
10614 (saber_gdb): Delete rule.
10615 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10616 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10617 and a68v-nat.c.
10618 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10619 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10620 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10621 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10622 nindy-share/stop.h.
10623 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10624 * saber.suppress: Delete file.
10625
086df311
DJ
106262003-01-31 Daniel Jacobowitz <[email protected]>
10627
10628 * dbxread.c (stabs_data): New static variable.
10629 (fill_symbuf): Support an in-memory buffer for stabs data.
10630 (stabs_seek): New function.
10631 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10632 (read_ofile_symtab): Use stabs_seek.
10633 (elfstab_build_psymtabs): Take an asection* instead of
10634 an offset and size. Relocate the stabs data if necessary.
10635 Save the section* for dbx_psymtab_to_symtab.
10636 * dwarf2read.c: Add section variables for each debug section.
10637 (dwarf2_locate_sections): Fill them in.
10638 (dwarf2_read_section): Take an asection* argument.
10639 Relocate the section contents if necessary.
10640 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10641 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10642 it to dwarf2_read_section.
10643 (dwarf2_build_frame_info): Update callers.
10644 * elfread.c (elf_symfile_read): Update call to
10645 elfstab_build_psymtabs.
10646 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10647 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10648 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10649 * symfile.c (symfile_dummy_outputs): New function.
10650 (symfile_relocate_debug_section): New function.
10651 * symfile.h (symfile_relocate_debug_section): Add prototype.
10652
87d1b352
RH
106532003-01-31 Richard Henderson <[email protected]>
10654
10655 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10656 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10657 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10658 * alpha-tdep.c (alpha_register_name): Add "unique".
10659 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10660 (ALPHA_UNIQUE_REGNUM): New.
10661 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10662
c48861fb
AC
106632003-01-31 Andrew Cagney <[email protected]>
10664
10665 * README: Remove reference to Ericsson 1800 monitor.
10666 * Makefile.in (remote-es.o): Delete rule.
10667 (ALLDEPFILES): Delete remote-es.c.
10668 * remote-es.c: Delete file.
10669 * config/m68k/es1800.mt: Delete file.
10670 * config/djgpp/fnchange.lst: Update.
10671 * configure.tgt: Delete m68*-ericsson-* target.
10672
d764a824
AF
106732003-01-31 Adam Fedor <[email protected]>
10674
10675 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10676 Remove duplicate/shadowing variable of same name.
10677
fe36c4f4
JB
106782003-01-30 Jim Blandy <[email protected]>
10679
10680 * symfile.c (find_separate_debug_file): Assert that the objfile's
10681 directory name we compute ends with a slash, and then assume that
10682 that's so everywhere we use it.
10683
cb741690
DJ
106842003-01-30 Daniel Jacobowitz <[email protected]>
10685
10686 * valops.c (value_assign): Flush frame cache after stores to memory
10687 also.
10688
96ee5227
AC
106892003-01-30 Andrew Cagney <[email protected]>
10690
10691 * Makefile.in (mon960-rom.o): Delete rule.
10692 * mon960-rom.c: Delete file.
10693
7f6104a9
AC
106942003-01-30 Andrew Cagney <[email protected]>
10695
10696 * d10v-tdep.c: Include "frame-unwind.h".
10697 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10698 list.
10699 (next_addr, uses_frame): Delete.
10700 (struct d10v_unwind_cache): Define.
10701 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10702 Use info instead of next_addr and uses_frame globals.
10703 (d10v_frame_init_saved_regs): Delete function.
10704 (d10v_init_extra_frame_info): Delete function.
10705 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10706 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10707 init_frame_pc or frame_saved_pc.
10708 (d10v_pop_frame): Delete function.
10709 (do_d10v_pop_frame): Delete function.
10710 (d10v_frame_chain): Delete function.
10711 (d10v_frame_chain_valid): Delete function.
10712 (d10v_frame_pc_unwind): New function.
10713 (d10v_frame_id_unwind): New function.
10714 (saved_regs_unwinder): New function.
10715 (d10v_frame_register_unwind): New function.
10716 (d10v_frame_pop): New function.
10717 (d10v_frame_unwind): New variable.
10718 (d10v_frame_p): New function.
10719 (d10v_frame_saved_pc): Delete function.
10720 * Makefile.in (d10v-tdep.o): Update dependencies.
10721
cad2e848
JB
107222003-01-30 J. Brobecker <[email protected]>
10723
10724 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10725 causing some regressions due to a change in the default value
10726 for this macro.
10727
af34e669
DJ
107282003-01-29 Richard Henderson <[email protected]>
10729 Elena Zannoni <[email protected]>
10730 Daniel Jacobowitz <[email protected]>
10731
10732 Fix PR gdb/961.
8ffd9b1b 10733 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10734 variables.
10735 (RANGES_SECTION): New.
10736 (dwarf_ranges_buffer): New variable.
10737 (struct comp_unit_head): Add member "die".
10738 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10739 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10740 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10741 (dwarf2_locate_sections): Likewise.
10742 (dwarf2_build_psymtabs): Read .debug_ranges.
10743 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10744 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10745 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10746 Look for DW_AT_ranges and return the bounding box.
10747
baa93fa6
CF
107482003-01-29 Brian Ford <[email protected]>
10749
10750 * win32-nat.c (cygwin_pid): Removed as unused.
10751 (child_attach): Try fall back to Cygwin pid.
10752
c63f977f
JB
107532003-01-29 Jim Blandy <[email protected]>
10754
10755 * objfiles.h (struct objfile): Doc fix.
10756
d62d1979
AC
107572003-01-29 Andrew Cagney <[email protected]>
10758
10759 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10760 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10761 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10762 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10763 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10764 (FRAME_SAVED_PC): Change to a function with predicate.
10765 * gdbarch.h, gdbarch.c: Re-generate.
10766
1ae18a04
AC
107672003-01-28 Andrew Cagney <[email protected]>
10768
52287340
AC
10769 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10770
1ae18a04
AC
10771 * complaints.c (complain): Delete function.
10772 * complaints.h (struct deprecated_complaint): Delete definition.
10773 (complain): Delete declaration.
10774
f2c16bd6
KB
107752003-01-28 Kevin Buettner <[email protected]>
10776
10777 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10778 dummy frames.
10779
a94dd1fd
AC
107802003-01-27 Andrew Cagney <[email protected]>
10781
10782 * sentinel-frame.h, sentinel-frame.c: New files.
10783 * Makefile.in (frame.o): Update dependencies.
10784 (SFILES): Add sentinel-frame.c.
10785 (sentinel_frame_h): Define.
10786 (COMMON_OBS): Add sentinel-frame.o.
10787 (sentinel-frame.o): Specify dependencies.
10788 * frame.c: Include "sentinel-frame.h".
10789 (frame_register_unwind): Rewrite assuming that there is always a a
10790 ->next frame.
10791 (frame_register, generic_unwind_get_saved_register): Ditto.
10792 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10793 (create_sentinel_frame, unwind_to_current_frame): New functions.
10794 (get_current_frame): Rewrite using create_sentinel_frame and
10795 unwind_to_current_frame. When possible, always create a frame.
10796 (create_new_frame): Set next to the sentinel frame.
10797 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10798 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10799 ID cache when necessary.
10800 (frame_saved_regs_id_unwind): Use frame_relative_level.
10801 (deprecated_generic_get_saved_register): Use frame_relative_level,
10802 get_frame_saved_regs, get_frame_pc, get_frame_base and
10803 get_next_frame.
10804 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10805 frame_register.
10806
5378adc4
DJ
108072003-01-27 Daniel Jacobowitz <[email protected]>
10808
10809 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10810
51ee2ddc
DJ
108112003-01-27 Daniel Jacobowitz <[email protected]>
10812
10813 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10814 (maintenance_set_profile_cmd): Use error () instead of warning ().
10815
d9feb4e7
DJ
108162003-01-27 Daniel Jacobowitz <[email protected]>
10817
10818 * configure.in: Check that -pg works if using --enable-profiling.
10819 Check for monstartup and _mcleanup regardless of --enable-profiling.
10820 * maint.c: Check for monstartup and _mcleanup before using them.
10821 * config.in: Regenerated.
10822 * configure: Regenerated.
10823
2d188dd3
NC
108242003-01-24 Nick Clifton <[email protected]>
10825
10826 * Add sh2e support:
10827
10828 2002-04-02 Elena Zannoni <[email protected]>
10829
10830 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10831 (sh2e_show_regs): New.
10832 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10833 * config/sh/tm-sh.h: Added sh2e to comments.
10834
cb3c37b2
JB
108352003-01-23 Jim Blandy <[email protected]>
10836
10837 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10838 symbols found)" message here; we haven't checked for a separate
10839 debug info file yet, so we don't know yet.
10840 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10841 we've looked everywhere. Also, there's no need to print a special
10842 message when we're loading the separate debug info file: the one
10843 symbol_file_add prints is fine.
10844
5b5d99cf
JB
108452003-01-23 Alexander Larsson <[email protected]>
10846 Jim Blandy <[email protected]>
10847
10848 Add support for executables whose debug info has been separated
10849 out into a separate file, leaving only a link behind.
10850 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10851 and separate_debug_objfile_backlink.
10852 (put_objfile_before): New declaration.
10853 * symfile.c: #include "filenames.h".
10854 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10855 debug info in a separate file, read that, too. Save the addrs
10856 argument, so we can use it again to read the separated debug info;
10857 syms_from_objfile modifies the table we pass it.
10858 (reread_symbols): After re-reading an objfile, call
10859 reread_separate_symbols to refresh its separate debug info
10860 objfile, if it has one.
10861 (reread_separate_symbols, find_separate_debug_file,
10862 get_debug_link_info, separate_debug_file_exists): New functions.
10863 (debug_file_directory): New global var.
10864 (_initialize_symfile): Initialize debug_file_directory, and
10865 provide the new `set debug-file-directory' command to let the user
10866 change it.
10867 * objfiles.c (free_objfile): If this objfile has its debug info in
10868 a separate objfile, free that one too. If this is itself a
10869 separate debug info objfile, clear our parent's backlink.
10870 (put_objfile_before): New function.
10871 * utils.c (gnu_debuglink_crc32): New function.
10872 * defs.h (gnu_debuglink_crc32): New declaration.
10873 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10874 * configure.in: Handle --with-separate-debug-dir config option.
10875 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10876 * acconfig.h (DEBUGDIR): New macro.
10877 * configure, aclocal.m4, config.in: Regenerated.
10878
7e8580c1
JB
108792003-01-22 Jim Blandy <[email protected]>
10880
7904e09f
JB
10881 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10882 like the old symbol_file_add, but taking new arguments: you can
10883 now pass in either a `struct section_addr_info' list to say where
10884 each section is loaded, or a `struct section_offsets' table. Pass
10885 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10886 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10887 with the appropriate quiescent values for the new arguments.
10888
7e8580c1
JB
10889 * symfile.c: #include "gdb_assert.h".
10890 (syms_from_objfile): Add the ability to pass in a section offset
10891 table directly, as an alternative to the section_addr_info table.
10892 Document arguments better.
10893 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10894 * symfile.h (syms_from_objfile): Update declaration.
10895 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10896 syms_from_objfile.
10897 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10898
d28f9cdf
DJ
108992003-01-22 Daniel Jacobowitz <[email protected]>
10900
10901 Original patch by Tom Tromey <[email protected]> and
10902 Jason Molenda <[email protected]>.
10903 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10904 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10905 * NEWS: Mention profiling.
10906 * configure.in (--enable-gdbtk): Fix typo.
10907 (--enable-profiling): New. Set PROFILE_CFLAGS.
10908 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10909 Fill in function.
10910 (profiling_state): New variable.
10911 (mcleanup_wrapper): New function.
10912 (_initialize_maint): Remove NOTYET, fix call to
10913 add_setshow_boolean_cmd for "maint set profile".
10914 * configure: Regenerated.
10915
df21e465
MH
109162003-01-21 Martin M. Hunt <[email protected]>
10917
10918 * Makefile.in (install-gdbtk): Install PNG images too.
10919
73c1f219
AC
109202003-01-21 Andrew Cagney <[email protected]>
10921
10922 * exec.c (text_start): Delete global variable.
10923 (exec_file_attach): Make text_start local to the function.
10924 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10925 * valops.c (hand_function_call): Delete code that handles
10926 BEFORE_TEXT_END and AFTER_TEXT_END.
10927 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10928 of CALL_DUMMY_LOCATION.
10929 * gdbarch.c: Regenerate.
10930 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10931 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10932 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10933 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10934 (text_end): Delete extern declaration.
10935
eb4f72c5
AC
109362003-01-21 Andrew Cagney <[email protected]>
10937
10938 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10939 * blockframe.c (backtrace_below_main): Move to "frame.c".
10940 (frame_chain_valid): Delete check for backtrace_below_main.
10941 (_initialize_blockframe): Delete initialization, move ``set
10942 backtrace-below-main'' command to "frame.c".
10943 (do_flush_frames_sfunc): Delete function.
10944 * frame.c: Include "command.h" and "gdbcmd.h".
10945 (frame_type_from_pc): New function.
10946 (create_new_frame): Use frame_type_from_pc.
10947 (legacy_get_prev_frame): New function.
10948 (get_prev_frame): Rewrite. When an old style frame, call
10949 legacy_get_prev_frame. Otherwize, unwind the PC first.
10950 (_initialize_frame): Add ``set backtrace-below-main'' command.
10951 * Makefile.in (frame.o): Update dependencies.
10952
778ce8cc
AC
109532003-01-19 Andrew Cagney <[email protected]>
10954
10955 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10956 DEPRECATED_REGISTERS_INFO.
10957
01c193c8
AC
109582003-01-19 Andrew Cagney <[email protected]>
10959
10960 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10961 Maintainers'. Update `Various Maintainers'.
10962
dedc2a2b
AC
109632003-01-19 Andrew Cagney <[email protected]>
10964
10965 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10966 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10967 Suppress actual parameters when `-'.
10968 * gdbarch.h, gdbarch.c: Regenerate.
10969
b7261c70
AC
109702003-01-19 Andrew Cagney <[email protected]>
10971
10972 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10973 code handling dummy frames.
10974
dbe9fe58
AC
109752003-01-19 Andrew Cagney <[email protected]>
10976
10977 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10978 (struct frame_unwind): Add field pop.
10979 * frame.h (frame_pop): Declare.
10980 * frame.c (frame_saved_regs_pop): New function.
10981 (trad_frame_unwinder): Add frame_saved_regs_pop.
10982 (frame_pop): New function.
10983 * dummy-frame.c (dummy_frame_pop): New function.
10984 (discard_innermost_dummy): New function.
10985 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10986 (dummy_frame_unwind): Add dummy_frame_pop.
10987 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10988 * valops.c (hand_function_call): Ditto.
10989 * stack.c (return_command): Ditto.
10990
570b8f7c
AC
109912003-01-18 Andrew Cagney <[email protected]>
10992
10993 * cris-tdep.c: Fix function declaration indentation.
10994 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10995 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10996 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10997 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10998 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10999 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11000
110012003-01-18 Michael Chastain <[email protected]>
eaec4d85
MC
11002
11003 * README (Unpacking and Installation -- quick overview):
11004 Warn against ".../gdb-5.3/gdb/configure".
11005
494cca16
AC
110062003-01-18 Andrew Cagney <[email protected]>
11007
11008 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11009 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11010 (struct frame_unwind): Declare opaque.
11011 (dummy_frame_p): Declare function.
11012 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11013 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11014 * dummy-frame.c: Include "frame-unwind.h".
11015 (dummy_frame_p): New function.
11016 (dummy_frame_unwind): New variable.
11017 * frame.c: Include "frame-unwind.h".
11018 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11019 to use the new unwind field.
11020 (set_unwind_by_pc): Delete function.
11021 (create_new_frame, get_prev_frame): Set unwind field using
11022 frame_unwind_find_by_pc.
11023 (trad_frame_unwind, trad_frame_unwinder): New variables.
11024 * frame.h (trad_frame_unwind): Declare variable.
11025 (frame_id_unwind_ftype): Delete declaration.
11026 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11027 (struct frame_unwind): Declare opaque.
11028 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11029 register_unwind with a single unwind pointer.
11030 * frame-unwind.h, frame-unwind.c: New files.
11031 * Makefile.in (SFILES): Add frame-unwind.c.
11032 (frame_unwind_h): Define.
11033 (COMMON_OBS): Add frame-unwind.o.
11034 (frame-unwind.o): Specify dependencies.
11035 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11036
4efb68b1
AC
110372003-01-18 Andrew Cagney <[email protected]>
11038
11039 * ada-valprint.c: Eliminate PTR.
11040 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11041 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11042 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11043 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11044 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11045 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11046 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11047
a84d24ee
AC
110482003-01-17 Andrew Cagney <[email protected]>
11049
762f08a3
AC
11050 * main.c (captured_main): Don't use PTR.
11051 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11052 * gdbtypes.c (lookup_primitive_typename): Ditto.
11053 (lookup_struct_elt_type): Ditto.
11054 * f-valprint.c (info_common_command): Ditto.
11055 (list_all_visible_commons): Ditto.
11056 * jv-typeprint.c (java_type_print_base): Ditto.
11057
a84d24ee
AC
11058 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11059 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11060 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11061 i386-interix-nat.c and i386-interix-tdep.c. Rename
11062 m68klinux-nat.c and m68klinux-tdep.c. Rename
11063 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11064 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11065 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11066 * main.c (captured_main): Use xfree, not free.
11067
c170fb60
AC
110682003-01-16 Andrew Cagney <[email protected]>
11069
11070 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11071 ID back using a parameter.
11072 * frame.c (frame_id_unwind): Update call.
11073 (frame_saved_regs_id_unwind): Update.
11074 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11075 * dummy-frame.h (struct frame_id): Add opaque declaration.
11076 (dummy_frame_id_unwind): Update declaration.
11077
867f3898
AC
110782003-01-15 Andrew Cagney <[email protected]>
11079
11080 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11081
40622be8 110822003-01-15 Stephen P. Smith <[email protected]>
de3a8c23 11083
40622be8 11084 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11085
ae66c1fc
EZ
110862003-01-14 Elena Zannoni <[email protected]>
11087
997b089a 11088 Fix PR gdb/898
ae66c1fc
EZ
11089 * breakpoint.c (until_break_command): Add new argument. Use it to
11090 decide whether to stop only at the current frame or not.
11091 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11092 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11093 call.
11094 (advance_command): New function.
11095 (_initialize_infcmd): Update help string for 'until' command.
11096 Add new 'advance' command.
11097
a04257e6
DC
110982003-01-14 David Carlton <[email protected]>
11099
11100 * linespec.c (decode_line_1): Normalize comments.
11101 (set_flags): Ditto.
11102 (locate_first_half): Ditto.
11103 (decode_compound): Ditto.
11104 (symtab_from_filename): Ditto.
11105 (decode_all_digits): Ditto.
11106 (decode_dollar): Ditto.
11107 (find_methods): Ditto.
11108 (find_toplevel_char): Ditto.
11109
1bac305b
AC
111102003-01-13 Andrew Cagney <[email protected]>
11111
11112 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11113 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11114 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11115 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11116 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11117 * language.c, language.h, m32r-tdep.c: Update copyright.
11118 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11119 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11120 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11121 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11122 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11123 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11124
25caa7a8
EZ
111252003-01-13 Elena Zannoni <[email protected]>
11126
11127 * stabsread.h (process_later, resolve_cfront_continuation):
11128 Obsolete.
11129 Update copyright years.
11130 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11131 Update copyright year.
11132 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11133 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11134 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11135 Update copyright year.
11136 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11137 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11138 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11139 (parse_partial_symbols): Obsolete cfront support.
11140 * stabsread.c
11141 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11142 macros.
11143 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11144 read_cfront_baseclasses, read_cfront_member_functions,
11145 resolve_cfront_continuation,read_cfront_static_fields,
11146 copy_cfront_struct_fields): Obsolete functions.
11147 (define_symbol, read_one_struct_field): Obsolete cfront support.
11148 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11149 Update Copyright year.
11150
7789c6f5
EZ
111512003-01-13 Elena Zannoni <[email protected]>
11152
11153 * stack.c (print_frame_info, print_stack_frame_base_stub,
11154 print_stack_frame_base, show_and_print_stack_frame_stub,
11155 show_and_print_stack_frame, print_only_stack_frame_stub,
11156 print_only_stack_frame): Delete functions.
11157 (print_stack_frame_stub): Call print_frame_info instead of
11158 print_frame_info_base.
11159 (print_frame_info_base): Rename to print_frame_info.
11160 (backtrace_command_1): Call print_frame_info, instead of
11161 print_frame_info_base.
11162 (current_frame_command): Call print_stack_frame, instead of
11163 print_only_stack_frame.
11164 (frame_command): Call print_stack_frame, instead of
11165 show_and_print_stack_frame.
11166 (up_command): Ditto.
11167 (down_command): Ditto.
11168 * frame.h (print_only_stack_frame): Delete prototype.
11169 * infrun.c (normal_stop): Call print_stack_frame, instead of
11170 show_and_print_stack_frame.
11171 * thread.c (info_threads_command): Call print_stack_frame, instead
11172 of print_only_stack_frame.
11173
3f5a3016
AC
111742003-01-13 Andrew Cagney <[email protected]>
11175
d99ba314
AC
11176 * README (Graphical interface to GDB): Update URL. Point at
11177 gdb/links/.
11178
3f5a3016
AC
11179 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11180 version match.
11181
083ae935
DJ
111822003-01-13 Daniel Jacobowitz <[email protected]>
11183
11184 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11185 lines.
11186
5365276c
DJ
111872003-01-13 Daniel Jacobowitz <[email protected]>
11188
11189 * thread-db.c (attach_thread): Prototype.
11190 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11191 thread information (ti), and valid flags (th_valid, ti_valid).
11192 (attach_thread): Move target_pid_to_str call to after the thread
11193 is added to GDB's list. Initialize the cache.
11194 (thread_get_info_callback, thread_db_map_id2thr)
11195 (thread_db_get_info): New functions.
11196 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11197 (thread_db_store_registers, thread_db_thread_alive)
11198 (thread_db_get_thread_local_address): Use them.
11199 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11200 of calling error() for threads in unknown state.
11201
11202 (clear_lwpid_callback): New function.
11203 (thread_db_resume): Use it to clear the cache.
11204
9fc30b6b
DJ
112052003-01-13 Daniel Jacobowitz <[email protected]>
11206
11207 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11208 (resume_callback): Remove dead code.
11209
8f871025
AC
112102003-01-13 Andrew Cagney <[email protected]>
11211
11212 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11213 predicate.
11214 * gdbarch.h, gdbarch.c: Regenerate.
11215 * stack.c (frame_info): Only initialize the saved registers when
11216 FRAME_INIT_SAVED_REGS_P.
11217 * frame.c (frame_saved_regs_register_unwind): Assert
11218 FRAME_INIT_SAVED_REGS_P.
11219 (deprecated_generic_get_saved_register): Ditto.
11220
3f565f1e
DJ
112212003-01-13 Daniel Jacobowitz <[email protected]>
11222
11223 * source.c (openp): Squelch warning about "filename".
11224
072b1022
DJ
112252003-01-13 Daniel Jacobowitz <[email protected]>
11226
11227 * source.c (openp): If the file does not exist don't necessarily
11228 search the path.
11229
973ccf8b
DJ
112302003-01-13 Daniel Jacobowitz <[email protected]>
11231
11232 Fix PR gdb/872.
11233 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11234 (integer_types_same_name_p): New function.
11235 (rank_one_type): Use it.
11236 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11237
030292b7
DJ
112382003-01-13 Daniel Jacobowitz <[email protected]>
11239
11240 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11241 variables.
11242 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11243 * configure.in: Add --with-sysroot.
11244 * configure: Regenerated.
11245 * main.c (gdb_sysroot): New variable.
11246 (captured_main): Initialize gdb_sysroot.
11247 * defs.h (gdb_sysroot): New extern declaration.
11248 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11249
afb5d334
MC
112502003-01-12 Michael Chastain <[email protected]>
11251
11252 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11253
751ceeb4
MC
112542003-01-12 Michael Chastain <[email protected]>
11255
11256 * top.c (print_gdb_version): Bump copyright year to 2003.
11257
94cd26f8
DC
112582003-01-12 David Carlton <[email protected]>
11259
11260 * linespec.c (symtab_from_filename): Rename variable 's' to
11261 'file_symtab'.
11262
1ce79225
AC
112632003-01-12 Andrew Cagney <[email protected]>
11264
11265 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11266 dummy frame.
11267 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11268
fa1fd571
AC
112692003-01-12 Andrew Cagney <[email protected]>
11270
11271 * d10v-tdep.c: Include "gdb_assert.h".
11272 (d10v_store_return_value): Rewrite to match current interface.
11273 (d10v_extract_struct_value_address): Ditto.
11274 (d10v_extract_return_value): Ditto.
11275 (d10v_gdbarch_init): Set store_restore_value,
11276 extract_struct_value_address and extract_return_value.
11277
68b8d23e
JB
112782003-01-12 J. Brobecker <[email protected]>
11279
11280 * hpread.c (set_namestring): New procedure replacing the
11281 SET_NAMESTRING macro.
11282 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11283 by calls to set_namestring.
11284
112852003-01-11 J. Brobecker <[email protected]>
1fb309ea
JB
11286
11287 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11288 a compilation warning.
11289 (hpread_process_one_debug_symbol): Likewise.
11290
88d262ca
DC
112912003-01-10 David Carlton <[email protected]>
11292
11293 * linespec.c (decode_line_1): Rename variable 's' to
11294 'file_symtab'.
11295 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11296 (decode_dollar): Ditto.
11297 (decode_variable): Ditto.
11298 (symbol_found): Ditto.
11299
86669319
MC
113002003-01-09 Michael Chastain <[email protected]>
11301
11302 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11303
616a9dc4
CV
113042003-01-07 Corinna Vinschen <[email protected]>
11305
11306 * win32-nat.c (set_process_privilege): New function.
11307 (child_attach): Call set_process_privilege() to enable the
11308 SE_DEBUG_NAME user privilege if available in process token.
11309
3269bcfa
JB
113102003-01-10 J. Brobecker <[email protected]>
11311
11312 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11313 compilation error in the previous revision.
11314
2b0ee454
DC
113152003-01-09 David Carlton <[email protected]>
11316
11317 * linespec.c: Update copyright.
11318
b3ba1b44
DJ
113192003-01-09 Daniel Jacobowitz <[email protected]>
11320
11321 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11322 than inferior_ptid.
11323 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11324
4ef3f3be
AC
113252003-01-09 Andrew Cagney <[email protected]>
11326
479ab5a0
AC
11327 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11328 Update comments.
11329 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11330 (frame_saved_regs_zalloc): Update.
11331 (frame_saved_regs_register_unwind): Update.
11332 (create_new_frame): Update.
11333 (get_prev_frame): Update.
11334 (frame_extra_info_zalloc): Update.
11335 (deprecated_get_frame_saved_regs): Update.
11336 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11337 * cris-tdep.c: Update comment.
11338
bde58177
AC
11339 * somsolib.h: Fix function indentation.
11340 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11341 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11342 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11343 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11344 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11345
4ef3f3be
AC
11346 * infrun.c (follow_fork): Use ISO C definition.
11347 * expprint.c (print_subexp): Use xfree instead of free.
11348 * charset.c: Include "gdb_string.h" instead of <string.h>.
11349 (register_iconv_charsets): Use ISO C definition.
11350 (host_charset, target_charset): Ditto.
11351 * Makefile.in (charset.o): Update dependencies.
11352 (mi-cmd-env.o): Update dependencies.
11353
1c615f7a
AC
113542003-01-08 Andrew Cagney <[email protected]>
11355
11356 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11357 get_frame_base.
11358
c9a1dc08
AC
113592003-01-08 Andrew Cagney <[email protected]>
11360
11361 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11362 build directories. Save edited gdb output in Mbuild.log. If a
11363 build fails, remove any final GDB executable.
11364
dbad9d94
AC
113652003-01-08 Andrew Cagney <[email protected]>
11366
11367 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11368 replacing hex constants with function names and stripping leading
11369 file name directory prefixes.
11370
8d357cca
AC
113712003-01-08 Andrew Cagney <[email protected]>
11372
11373 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11374 get_frame_base.
11375
bca02a8a
DC
113762003-01-08 David Carlton <[email protected]>
11377
11378 * linespec.c (decode_line_1): Move code into decode_variable.
11379 (decode_variable): New function.
11380
7f8ab3a0
AC
113812003-01-08 Andrew Cagney <[email protected]>
11382
11383 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11384
7b5849cc
AC
113852003-01-08 Andrew Cagney <[email protected]>
11386
11387 * cris-tdep.c (cris_frame_init_saved_regs): Use
11388 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11389 saved_regs buffer.
11390 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11391 (sh64_nofp_frame_init_saved_regs): Ditto.
11392 (sh_fp_frame_init_saved_regs): Ditto.
11393 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11394 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11395 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11396 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11397
72a5efb3
DJ
113982003-01-08 Daniel Jacobowitz <[email protected]>
11399
11400 * minsyms.c (lookup_minimal_symbol): Update comment.
11401 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11402 (lookup_minimal_symbol_solib_trampoline): Likewise.
11403
11c02a10
AC
114042003-01-08 Andrew Cagney <[email protected]>
11405
aab3ea25
AC
11406 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11407 frame_relative_level.
11408
da50a4b7
AC
11409 * alpha-tdep.c: Use get_frame_extra_info.
11410 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11411 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11412 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11413 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11414
11c02a10
AC
11415 * alpha-tdep.c: Use get_next_frame.
11416 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11417 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11418 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11419 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11420 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11421 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11422 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11423
1e2330ba
AC
114242003-01-07 Andrew Cagney <[email protected]>
11425
11426 * alpha-tdep.c: Use get_frame_base.
11427 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11428 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11429 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11430 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11431 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11432 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11433 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11434 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11435
2d75187b
AC
114362003-01-07 Andrew Cagney <[email protected]>
11437
11438 * frame.c (deprecated_get_frame_context): New function.
11439 (deprecated_set_frame_context): New function.
11440 * frame.h (deprecated_get_frame_context): Declare.
11441 (deprecated_set_frame_context): Declare.
11442 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11443 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11444
483d36b2
AC
114452003-01-07 Andrew Cagney <[email protected]>
11446
11447 * frame.c (deprecated_set_frame_next_hack): New function.
11448 (deprecated_set_frame_prev_hack): New function.
11449 * frame.h (deprecated_set_frame_next_hack): Declare.
11450 (deprecated_set_frame_prev_hack): Declare.
11451 * mcore-tdep.c (analyze_dummy_frame): Use
11452 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11453 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11454
14e91ac5
DC
114552003-01-07 David Carlton <[email protected]>
11456
11457 * linespec.c (decode_line_1): Move code into decode_dollar.
11458 (decode_dollar): New function.
11459
b0c6b05c
AC
114602003-01-07 Andrew Cagney <[email protected]>
11461
11462 * arm-tdep.c (arm_init_extra_frame_info): Use
11463 deprecated_update_frame_base_hack.
11464 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11465 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11466 (fix_frame_pointer): Ditto.
11467 (mn10300_analyze_prologue): Ditto.
11468
a00a19e9
AC
114692003-01-07 Andrew Cagney <[email protected]>
11470
11471 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11472 extra_info using frame_extra_info_zalloc.
11473 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11474 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11475 (sh64_init_extra_frame_info): Ditto.
11476 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11477 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11478 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11479 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11480 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11481 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11482 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11483 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11484 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11485 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11486 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11487 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11488
11489 * mn10300-tdep.c (analyze_dummy_frame): Use
11490 deprecated_set_frame_extra_info_hack.
11491 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11492
1fb4c65b
JB
114932003-01-07 J. Brobecker <[email protected]>
11494
11495 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11496 class is not scText. These do not define "real" procedures.
11497 (parse_partial_symbols): Likewise.
11498
9fe7d6bf
MS
114992003-01-06 Michael Snyder <[email protected]>
11500
11501 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11502
f6c609c4
AC
115032003-01-06 Andrew Cagney <[email protected]>
11504
11505 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11506 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11507 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11508 deprecated_frame_xmalloc_with_cleanup.
11509 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11510 deprecated_frame_xmalloc.
11511 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11512 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11513
d995ff4b
AC
115142003-01-06 Andrew Cagney <[email protected]>
11515
84dc46cb
AC
11516 * x86-64-linux-tdep.c: Include "osabi.h".
11517 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11518
d995ff4b
AC
11519 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11520
66140c26
AC
115212003-01-06 Andrew Cagney <[email protected]>
11522
11523 * MAINTAINERS (Target Instruction Set Architectures): Update
11524 arm-elf. Can be built with -Werror, has been multiarched.
11525
11526 * value.h (unpack_long): Make buffer parameter constant.
11527 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11528 * scm-lang.h (scm_parse): Ditto.
11529 * defs.h (extract_typed_address, extract_address): Ditto.
11530 (extract_long_unsigned_integer): Ditto.
11531 * inferior.h (unsigned_pointer_to_address): Ditto.
11532 (signed_pointer_to_address): Ditto.
11533 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11534 * gdbarch.h, gdbarch.c: Regenerate.
11535 * findvar.c (extract_long_unsigned_integer): Update.
11536 (extract_address): Update.
11537 (extract_typed_address): Update.
11538 (unsigned_pointer_to_address): Update.
11539 * values.c (unpack_long): Update.
11540 (unpack_double): Update.
11541 (unpack_pointer): Update.
11542 (unpack_field_as_long): Update.
11543 * d10v-tdep.c (d10v_pointer_to_address): Update.
11544 * avr-tdep.c (avr_pointer_to_address): Update.
11545 * scm-lang.c (scm_unpack): Update.
11546 * findvar.c (signed_pointer_to_address): Update.
11547
b089b3da
ML
115482003-01-06 Michal Ludvig <[email protected]>
11549
8ffd9b1b 11550 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11551 since it is in i386-tdep.c.
11552
aff87235
JB
115532003-01-06 J. Brobecker <[email protected]>
11554
11555 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11556 failure introduced in the previous change.
11557
34f5e845
MC
115582003-01-05 Michael Chastain <[email protected]>
11559
11560 * README: Remove references to deleted remote-*.c files:
11561 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11562 remote-nrom.c, remote-os9k.c, remote-udi.c.
11563
28bcfd30
MK
115642003-01-05 Mark Kettenis <[email protected]>
11565
11566 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11567 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11568 i386_get_longjmp_target.
11569
15a5b3ee
AC
115702003-01-05 Andrew Cagney <[email protected]>
11571
11572 * arm-tdep.c (prologue_cache): Change to a pointer.
11573 (_initialize_arm_tdep): Allocate prologue_cache.
11574 (check_prologue_cache): Update.
11575 (save_prologue_cache): Update.
11576 (arm_gdbarch_init): Update.
11577
c263362b
DJ
115782003-01-04 Daniel Jacobowitz <[email protected]>
11579
11580 * stabsread.c (update_method_name_from_physname): Call complaint()
11581 instead of error.
11582
51603483
DJ
115832003-01-04 Daniel Jacobowitz <[email protected]>
11584
11585 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11586 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11587 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11588
11589 * blockframe.c: Include "gdbcmd.h" and "command.h".
11590 (backtrace_below_main): New variable.
11591 (file_frame_chain_valid, func_frame_chain_valid)
11592 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11593 (generic_func_frame_chain_valid): Remove functions.
11594 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11595 (_initialize_blockframe): New function.
11596 * Makefile.in (blockframe.o): Update dependencies.
11597 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11598 comment. Call frame_chain_valid ().
11599 * frame.h: Remove old prototypes. Add prototype for
11600 frame_chain_valid and update comments to match.
11601 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11602 Remove old comment.
11603 * gdbarch.h: Regenerated.
11604 * gdbarch.c: Regenerated.
11605
11606 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11607 set_gdbarch_frame_chain_valid.
11608 * avr-tdep.c (avr_gdbarch_init): Likewise.
11609 * cris-tdep.c (cris_gdbarch_init): Likewise.
11610 * frv-tdep.c (frv_gdbarch_init): Likewise.
11611 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11612 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11613 (i386_nw_init_abi): Likewise.
11614 (i386_gdbarch_init): Likewise.
11615 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11617 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11618 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11619 * mips-tdep.c (mips_gdbarch_init): Likewise.
11620 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11621 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11622 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11623 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11624 * s390-tdep.c (s390_gdbarch_init): Likewise.
11625 * sh-tdep.c (sh_gdbarch_init): Likewise.
11626 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11627 * v850-tdep.c (v850_gdbarch_init): Likewise.
11628 * vax-tdep.c (vax_gdbarch_init): Likewise.
11629 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11630
11631 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11632 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11633 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11634 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11635 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11636 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11637 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11638 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11639
b00a8037
DJ
116402002-01-04 Daniel Jacobowitz <[email protected]>
11641
11642 * Makefile.in (acconfig_h): Remove incorrect macro.
11643 (config_h): Define.
11644 (osabi.o): Update dependencies.
11645 * configure.tgt: Set gdb_osabi based on target triplet.
11646 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11647 * configure: Regenerated.
11648 * config.in: Regenerated.
11649 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11650 (GDB_OSABI_DEFAULT): Define if not already defined.
11651 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11652 (set_osabi_string): New variables.
11653 (gdbarch_register_osabi): Add new OS ABI to
11654 gdb_osabi_available_names.
11655 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11656 (set_osabi, show_osabi): New functions.
11657 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11658
4be87837
DJ
116592003-01-04 Daniel Jacobowitz <[email protected]>
11660
11661 * arch-utils.c (gdbarch_info_init): Set osabi to
11662 GDB_OSABI_UNINITIALIZED.
11663 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11664 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11665 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11666 * gdbarch.c: Regenerated.
11667 * gdbarch.h: Regenerated.
11668 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11669 there's no BFD.
11670 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11671 * osabi.h (enum gdb_osabi): Move to defs.h.
11672 (gdbarch_init_osabi): Update prototype.
11673 * defs.h (enum gdb_osabi): Moved here.
11674 * Makefile.in: Update dependencies.
11675
11676 * alpha-tdep.h: Don't include "osabi.h".
11677 (struct gdbarch_tdep): Remove osabi member.
11678 * alpha-tdep.c: Include "osabi.h".
11679 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11680 iterate over arches. Update call to gdbarch_init_osabi.
11681 (alpha_dump_tdep): Don't dump osabi.
11682 * alpha-linux-tdep.c: Include "osabi.h".
11683 * alpha-osf1-tdep.c: Include "osabi.h".
11684 * alphafbsd-tdep.c: Include "osabi.h".
11685 * alphanbsd-tdep.c: Include "osabi.h".
11686
11687 * arm-tdep.h: Don't include "osabi.h".
11688 (struct gdbarch_tdep): Remove osabi member.
11689 * arm-tdep.c: Include "osabi.h".
11690 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11691 iterate over arches. Update call to gdbarch_init_osabi.
11692 (arm_dump_tdep): Don't dump osabi.
11693 * arm-linux-tdep.c: Include "osabi.h".
11694 * armnbsd-tdep.c: Include "osabi.h".
11695
11696 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11697 Update call to gdbarch_init_osabi.
11698
11699 * i386-tdep.h: Don't include "osabi.h".
11700 (struct gdbarch_tdep): Remove osabi member.
11701 * i386-tdep.c: Include "osabi.h".
11702 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11703 iterate over arches. Update call to gdbarch_init_osabi.
11704 (i386_dump_tdep): Don't dump osabi.
11705 * i386-linux-tdep.c: Include "osabi.h".
11706 * i386-sol2-tdep.c: Include "osabi.h".
11707 * i386bsd-tdep.c: Include "osabi.h".
11708 * i386gnu-tdep.c: Include "osabi.h".
11709 * i386ly-tdep.c: Include "osabi.h".
11710 * i386nbsd-tdep.c: Include "osabi.h".
11711 * i386obsd-tdep.c: Include "osabi.h".
11712
11713 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11714 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11715 check osabi when iterating over arches. Update call to
11716 gdbarch_init_osabi.
11717 (mips_dump_tdep): Don't dump osabi.
11718
11719 * ns32k-tdep.h: Don't include "osabi.h".
11720 (struct gdbarch_tdep): Remove.
11721 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11722 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11723 allocate tdep. Update call to gdbarch_init_osabi.
11724 (ns32k_dump_tdep): Remove.
11725 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11726 * ns32knbsd-tdep.c: Include "osabi.h".
11727
11728 * ppc-tdep.h: Don't include "osabi.h".
11729 (struct gdbarch_tdep): Remove osabi member.
11730 * rs6000-tdep.c: Include "osabi.h".
11731 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11732 osabi when iterating over arches. Update call to
11733 gdbarch_init_osabi.
11734 (rs6000_dump_tdep): Don't dump osabi.
11735 * ppc-linux-tdep.c: Include "osabi.h".
11736 * ppcnbsd-tdep.c: Include "osabi.h".
11737
11738 * sh-tdep.h: Don't include "osabi.h".
11739 (struct gdbarch_tdep): Remove osabi member.
11740 * sh-tdep.c: Include "osabi.h".
11741 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11742 iterate over arches. Update call to gdbarch_init_osabi.
11743 (sh_dump_tdep): Don't dump osabi.
11744 * shnbsd-tdep.c: Include "osabi.h".
11745
11746 * sparc-tdep.c: Include "osabi.h".
11747 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11748 iterate over arches. Update call to gdbarch_init_osabi.
11749 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11750 tdep structure.
11751
11752 * vax-tdep.h: Don't include "osabi.h".
11753 (struct gdbarch_tdep): Remove.
11754 * vax-tdep.c: Include "osabi.h".
11755 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11756 iterate over arches. Don't allocate tdep. Update call
11757 to gdbarch_init_osabi.
11758 (vax_dump_tdep): Remove.
11759 (_initialize_vax_tdep): Update call to gdbarch_register.
11760
a881cf8e
DJ
117612003-01-04 Daniel Jacobowitz <[email protected]>
11762
11763 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11764 entirely.
11765 (breakpoint_re_set_one): Don't fetch the value for a disabled
11766 watchpoint.
11767
1e698235
DJ
117682003-01-04 Daniel Jacobowitz <[email protected]>
11769
11770 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11771 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11772 (COERCE_FLOAT_TO_DOUBLE): Remove.
11773 * gdbarch.c: Regenerate.
11774 * gdbarch.h: Regenerate.
11775 * Makefile.in: Remove value_h from gdbarch_h.
11776 * valops.c (coerce_float_to_double): New variable.
11777 (default_coerce_float_to_double): Remove.
11778 (standard_coerce_float_to_double): Remove.
11779 (value_arg_coerce): Use coerce_float_to_double.
11780 (_initialize_valops): Add "set coerce-float-to-double".
11781 * value.h (default_coerce_float_to_double): Remove prototype.
11782 (standard_coerce_float_to_double): Remove prototype.
11783
11784 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11785 prototyped.
11786 * mdebugread.c (parse_symbol): Likewise.
11787 * stabsread.c (define_symbol): Mark all functions as prototyped.
11788
11789 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11790 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11791 set_gdbarch_coerce_float_to_double.
11792 * arm-tdep.c (arm_gdbarch_init): Likewise.
11793 * frv-tdep.c (frv_gdbarch_init): Likewise.
11794 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11795 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11796 * mips-tdep.c (mips_gdbarch_init): Likewise.
11797 (mips_coerce_float_to_double): Remove.
11798 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11799 (rs6000_coerce_float_to_double): Remove.
11800 * s390-tdep.c (s390_gdbarch_init): Likewise.
11801 * sh-tdep.c (sh_gdbarch_init): Likewise.
11802 (sh_coerce_float_to_double): Remove.
11803 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11804 (sparc_coerce_float_to_double): Remove.
11805 * v850-tdep.c (v850_gdbarch_init): Likewise.
11806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11807 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11808 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11809 (hppa_coerce_float_to_double): Remove prototype.
11810 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11811
f436a26a
DJ
118122003-01-04 Daniel Jacobowitz <[email protected]>
11813
11814 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11815
248f8055
DJ
118162003-01-04 Daniel Jacobowitz <[email protected]>
11817
11818 Suggested by Stewart Brown <[email protected]>:
11819 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11820 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11821 (c_type_print_varspec_suffix): Likewise.
11822
72cfdc76
MK
118232003-01-04 Mark Kettenis <[email protected]>
11824
bfd260bb
MK
11825 * configure.in: Don't set and AC_SUBST SUBDIRS.
11826 * configure: Regenerated.
11827
72cfdc76
MK
11828 * configure.in: Remove code dealing with shared libraries.
11829 * Makefile.in: Remove HLDFLAGS and HLDENV.
11830 * configure: Regenerated.
11831
c8b8a898
AC
118322003-01-04 Andrew Cagney <[email protected]>
11833
11834 * frame.c (deprecated_frame_xmalloc): New function.
11835 (deprecated_set_frame_saved_regs_hack): New function.
11836 (deprecated_set_frame_extra_info_hack): New function.
11837 * frame.h (deprecated_frame_xmalloc): Declare.
11838 (deprecated_set_frame_saved_regs_hack): Declare.
11839 (deprecated_set_frame_extra_info_hack): Declare.
11840
14abd0fb
MK
118412003-01-04 Mark Kettenis <[email protected]>
11842
8ee53726
MK
11843 * configure.in: Move code that provides the --enable-gdbtk option
11844 right after the code that handles the --enable-tui option, and
11845 polish it somewhat.
11846 * configure: Regenerated.
11847
14abd0fb
MK
11848 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11849 AC_CHECK_FUNCS and remove the old check for pread64.
11850 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11851 * acconfig.h (_GNU_SOURCE): Add.
11852 (HAVE_PREAD64): Remove.
11853 * configure, aclocal.m4, config.in: Regenerated.
11854
b2fb4676
AC
118552003-01-03 Andrew Cagney <[email protected]>
11856
11857 * alpha-tdep.c: Use get_frame_saved_regs.
11858 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11859 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11860 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11861 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11862 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11863
8dcde887
MK
118642003-01-03 Mark Kettenis <[email protected]>
11865
11866 * configure.in: Remove all use of the SUBDIRS variable; add
11867 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11868 code providing the --enable-multi-ice option, and move it right in
11869 front of the code that checks whether gdbserver is supported.
11870 Polish that too.
11871 * configure: Regenerated.
11872 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11873 @SUBDIRS@.
11874
8ccd593b
AC
118752003-01-03 Andrew Cagney <[email protected]>
11876
11877 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11878 * avr-tdep.c, cris-tdep.c: Ditto.
11879 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11880 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11881
91151a06
MK
118822003-01-03 Mark Kettenis <[email protected]>
11883
11884 * configure.in: Remove --enable-netrom option.
11885 * configure: Regenerated.
11886
8fe84d01
MK
118872003-01-03 Mark Kettenis <[email protected]>
11888
11889 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11890 declaration for `struct re_pattern_buffer' instead.
11891 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11892
f0394be6
JB
118932003-01-03 J. Brobecker <[email protected]>
11894
11895 * mdebugread.c (parse_symbol): Count until the stEnd matching
11896 the structure name.
11897
27e9bf90
MK
118982003-01-02 Mark Kettenis <[email protected]>
11899
93d331ba
MK
11900 * configure.in: Remove --with-cpu option.
11901 subscripts. Remove evil changequotes here.
11902 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11903 * config.in, configure: Regenerated.
8ffd9b1b 11904
27e9bf90
MK
11905 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11906 * configure.in: Cleanup section that sources GDB and BFD configure
11907 subscripts. Remove evil changequotes here.
11908 * config.in, configure: Regenerated.
11909
50abf9e5
AC
119102003-01-02 Andrew Cagney <[email protected]>
11911
11912 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11913 frame accessor methods.
11914 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11915 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11916 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11917 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11918 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11919 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11920 * z8k-tdep.c: Ditto.
8ffd9b1b 11921
287c1a40
MK
119222003-01-02 Mark Kettenis <[email protected]>
11923
f5dbc56d
MK
11924 * configure.in: Remove UI_OUT configuration code.
11925 * ada-lang.c: Update assuming UI_OUT is always true.
11926 * Makefile.in (UIOUT_CFLAGS): Remove.
11927 * configure: Regenerated.
11928 * TODO: Remove blurb about elimination of -DUI_OUT.
11929
627af7ea
MK
11930 * configure.in: Move code that provides the --enable-gdbcli,
11931 --enable-gdbmi options right before the code that handles the
11932 --enable-tui option. Polish a bit.
11933 * configure: Regenerated.
11934
06825bd1
MK
11935 * configure.in: Rewrite check for GNU regex and the
11936 --without-included regex option, and move it into the "Checks for
11937 library functions" section. This makes us use the system regex
11938 again by default on systems with version 2 of the GNU C library.
11939 This was apparently broken.
11940 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11941 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11942 * config.in, configure: Regenerated.
11943
287c1a40
MK
11944 * configure.in: Move code that provides the --enable-tui option
11945 before the "Checks for libraries" section. Polish the code
11946 somewhat and set need_curses to yes if we build the TUI. Rewrite
11947 code that looks for a library providing termcap functionality to
11948 match more closely what's done in the Readline library, and move
11949 it into to the "Checks for libraries" section.
11950 * configure: Regenerated.
11951 * Makefile.in (TERMCAP): Remove variable.
11952 * config/i386/go32.mh (TERMCAP): Remove variable.
11953
684e56bf
AC
119542003-01-02 Andrew Cagney <[email protected]>
11955
11956 * MAINTAINERS: Mention gdb_mbuild.sh.
11957 * gdb_mbuild.sh: Rewrite.
11958
e1ea1d75
MK
119592003-01-02 Mark Kettenis <[email protected]>
11960
11961 * configure.in: Fix typo in last change.
11962 * config.in, configure: Regenerated.
11963
1b831c93
AC
119642003-01-02 Andrew Cagney <[email protected]>
11965
11966 * valarith.c (value_binop): Delete obsolete code and comments.
11967 * configure.host: Ditto.
11968 * buildsym.h (make_blockvector): Ditto.
11969 * buildsym.c (make_blockvector): Ditto.
11970 * defs.h (enum language): Ditto.
11971 (chill_demangle): Ditto.
11972 * elfread.c (elf_symtab_read): Ditto.
11973 * dwarfread.c (CHILL_PRODUCER): Ditto.
11974 (set_cu_language): Ditto.
11975 (handle_producer): Ditto.
11976 * expprint.c (print_subexp): Ditto.
11977 * gdbtypes.c (chill_varying_type): Ditto.
11978 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11979 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11980 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11981 (chill_varying_type): Ditto.
11982 * language.h (_LANG_chill): Ditto.
11983 * language.c (binop_result_type, integral_type): Ditto.
11984 (character_type, string_type, structured_type): Ditto.
11985 (lang_bool_type, binop_type_check): Ditto.
11986 * stabsread.h (os9k_stabs): Ditto.
11987 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11988 (define_symbol, read_type, read_struct_fields): Ditto.
11989 (read_array_type, read_enum_type, read_huge_number): Ditto.
11990 (read_range_type, start_stabs): Ditto.
11991 * symfile.c (init_filename_language_table): Ditto.
11992 (add_psymbol_with_dem_name_to_list): Ditto.
11993 * symtab.c (symbol_init_language_specific): Ditto.
11994 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11995 * symtab.h (struct general_symbol_info): Ditto.
11996 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11997 * typeprint.c (typedef_print): Ditto.
11998 * utils.c (fprintf_symbol_filtered): Ditto.
11999 * valops.c (value_cast, search_struct_field, value_slice): Delete
12000 obsolete code.
12001 (varying_to_slice): Delete function.
12002 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12003 (varying_to_slice): Delete declaration.
12004 * MAINTAINERS: Update.
12005
8bb2c122
MK
120062003-01-02 Mark Kettenis <[email protected]>
12007
97bf5e38
MK
12008 * configure.in: Reorganize "Checks for library functions section"
12009 a bit. Remove check for `btowc' and `isascii' functions.
12010 * configure: Regenerated.
12011
5ee754fc
MK
12012 * acconfig.h (_MSE_INT_H): Remove.
12013 * configure.in: Create "Checks for header files" section, and move
12014 appropriate tests there. Don't check for objlist.h, wchar.h,
12015 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12016 misdetection fix. Also add "Checks for types", "Checks for
12017 compiler characteristics" and "Checks for library functions"
12018 sections.
12019 * config.in, configure: Regenerated.
12020
8bb2c122
MK
12021 * configure.in: Create "Checks for programs" section, and move
12022 appropriate tests there.
12023
9a156167
MK
120242003-01-01 Mark Kettenis <[email protected]>
12025
12026 * configure.in: Create "Checks for libraries" section, and move
12027 appropriate tests there. Cleanup check for wctype in libw. Use
12028 AC_SEARCH_LIBS to see whether we need libsocket.
12029 * configure: Regenerated.
12030
a80e2bcb 12031For older changes see ChangeLog-2002
c906108c
SS
12032\f
12033Local Variables:
12034mode: change-log
12035left-margin: 8
12036fill-column: 74
12037version-control: never
12038End:
This page took 2.486696 seconds and 4 git commands to generate.