1 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
3 * parser-defs.h (operator_length): Declare.
5 * parse.c (length_of_subexp): Use operator_length to get operator
6 lengths and arities for operators.
7 Move most code to new operator_length function.
8 (operator_length): New function absorbing most code from
10 (prefixify_subexp): Remove large case and use operator_length instead.
11 (parse_exp_1): Use renamings:
12 dump_prefix_expression => dump_raw_expression and
13 dump_postfix_expression => dump_prefix_expression.
15 * expression.h (dump_prefix_expression): Rename to ...
16 (dump_raw_expression): New name.
17 (dump_postfix_expression): Rename to ...
18 (dump_prefix_expression): New name.
20 * expprint.c (dump_subexp): Make global. Add comment.
21 Move most existing code to dump_subexp_body.
22 (dump_subexp_body): New function.
23 (dump_prefix_expression): Rename to dump_raw_expression.
24 Remove attempt to print the expression via print_expression: it can't
25 work before the expression is prefixified.
26 (dump_raw_expression): Renamed from dump_prefix_expression.
27 (dump_postfix_expression): Rename to dump_prefix_expression, since
29 Remove 'note' parameter, since this routine must be used on
30 prefixified expression.
31 (dump_prefix_expression): Renamed from dump_postfix_expression.
33 2003-09-22 Jim Blandy <jimb@redhat.com>
35 * dwarf2read.c (read_array_type): When building the type for an
36 array of unspecified length, make sure to choose the upper bound
37 so that the array's total length comes out to be zero --- that's
38 how we represent such arrays.
40 2003-09-22 Michael Chastain <mec@shout.net>
42 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
44 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
46 * top.c (quit_force): Fix indirect call to quit_target so
47 a struct qt_args pointer is passed.
49 2003-09-22 Andrew Cagney <cagney@redhat.com>
51 * arch-utils.h (init_frame_pc_noop): Delete declaration.
52 * arch-utils.c (init_frame_pc_noop): Delete function.
53 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
55 * mips-tdep.c (mips_gdbarch_init): Ditto.
56 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
57 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
59 (DEPRECATED_INIT_FRAME_PC): Delete macro.
60 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
62 (DEPRECATED_INIT_FRAME_PC): Delete macro.
64 2003-09-22 Anthony Green <green@redhat.com>
66 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
69 2003-09-20 Andrew Cagney <cagney@redhat.com>
71 * breakpoint.c: Eliminate ARGSUSED.
72 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
73 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
74 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
75 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
76 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
77 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
78 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
79 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
80 * wince.c, remote-vx.c: Ditto.
82 * cli/cli-script.c: Remove "register" attributes.
83 * config/pa/tm-hppa.h: Ditto.
84 * cli/cli-decode.c: Ditto.
85 * cli/cli-cmds.c: Ditto.
87 2003-09-19 Andrew Cagney <cagney@redhat.com>
89 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
90 DEPRECATED_NPC_REGNUM.
91 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
93 2003-09-19 Christopher Faylor <cgf@redhat.com>
95 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
97 2003-09-19 Jim Blandy <jimb@redhat.com>
99 * macrotab.c (macro_include): Use the correct comparison to find
100 the appropriate place for this inclusion in the list.
102 2003-09-19 Andrew Cagney <cagney@redhat.com>
104 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
105 (DEPRECATED_HPUX_TEXT_END): Define.
106 (deprecated_hpux_text_end): Declare.
107 (struct target_ops): Declare opaque.
108 * hppah-nat.c (text_end): Make static.
109 (deprecated_hpux_text_end): New function.
110 * exec.c (text_end): Delete global variable.
111 (NEED_TEXT_START_END): Do not define.
112 (exec_file_attach): Replace code computing "text_end" code with
113 call to DEPRECATED_HPUX_TEXT_END.
115 2003-09-19 Andrew Cagney <cagney@redhat.com>
117 * utils.c (align_up, align_down): New functions.
118 * defs.h (align_up, align_down): Declare.
119 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
120 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
122 (round_up, round_down): Delete functions.
123 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
125 (ROUND_DOWN, ROUND_UP): Delete macros.
126 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
127 * h8300-tdep.c: Replace "round_up" and "round_down" with
128 "align_up" and "align_down".
129 (round_up, round_down): Delete macros.
130 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
132 (ROUND_UP, ROUND_DOWN): Delete macros.
134 2003-09-18 J. Brobecker <brobecker@gnat.com>
136 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
137 hard-coded constant. Use the proper machine name instead.
139 2003-09-17 Andrew Cagney <cagney@redhat.com>
141 * sparc-tdep.c (legacy_register_name): Delete function.
142 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
143 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
144 * infcmd.c (gdb_register_name): Delete variable.
145 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
146 REGISTER_NAME and "tm.h".
147 * gdbarch.h, gdbarch.c: Regenerate.
148 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
149 REGISTER_NAMES in comments.
150 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
151 * m68klinux-nat.c (regmap): Ditto.
153 2003-09-17 Jim Blandy <jimb@redhat.com>
155 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
157 2003-09-17 Andrew Cagney <cagney@redhat.com>
159 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
160 (ppcnbsd_init_abi): Set "use_struct_convention" to
161 "ppcnbsd_use_struct_convention".
163 2003-09-17 Mark Kettenis <kettenis@gnu.org>
165 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
166 * gdbarch.h, gdbarch.c: Regenerate.
167 (stabs_argument_has_addr): New architecture method.
168 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
169 * arch-utils.c: Include "buildsym.h".
170 (default_stabs_argument_has_addr): New function.
171 * stabsread.c (define_symbol): Use stabs_argument_has_addr
172 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
174 2003-09-17 Andrew Cagney <cagney@redhat.com>
176 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
177 * gdbarch.h, gdbarch.c: Regenerate.
178 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
179 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
180 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
181 * sparcnbsd-tdep.c: Update.
183 2003-09-17 Andrew Cagney <cagney@redhat.com>
185 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
186 * gdbarch.h, gdbarch.c: Regenerate.
187 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
188 * d10v-tdep.c, frame.c: Update.
189 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
190 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
191 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
192 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
193 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
194 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
195 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
196 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
197 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
198 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
199 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
200 * config/pa/nm-hppah.h: Update.
202 2003-09-16 Andrew Cagney <cagney@redhat.com>
204 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
205 "use_struct_convention" to "ppc_linux_use_struct_convention".
206 (ppc_linux_use_struct_convention): New function.
207 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
208 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
209 "rs6000_use_struct_convention".
210 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
212 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
215 2003-09-16 Andrew Cagney <cagney@redhat.com>
217 * buildsym.c: Remove more occurances of "register".
218 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
219 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
220 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
221 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
222 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
223 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
224 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
225 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
227 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
229 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
230 numbers to enumeration values.
231 * sh-tdep.c: Accomodate above change.
232 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
233 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
234 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
235 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
236 (IS_FPUSH): Rename from IS_FMOV.
237 (sh_extract_struct_value_address): Remove useless comment.
238 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
239 instead of own local values.
240 (sh_dump_tdep): Remove.
241 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
242 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
244 2003-09-15 Andrew Cagney <cagney@redhat.com>
246 * doublest.c (convert_floatformat_to_doublest): No longer need to
247 cast "exp_bias" to an int. Reverts 2002-12-04 change.
249 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
251 * values.c (unpack_double): Call floatformat_is_valid.
253 2003-09-15 Mark Kettenis <kettenis@gnu.org>
255 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
256 ps_strings into a long.
258 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
259 _initialize_am64fbsd_nat.
261 2003-09-15 Kevin Buettner <kevinb@redhat.com>
263 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
264 associated with DW_AT_ranges attribute is out of bounds.
266 2003-09-15 David Lecomber <dsl@sources.redhat.com>
268 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
270 2003-09-14 Michael Chastain <mec@shout.net>
272 * config/m68k/nm-apollo68v.h: Delete.
273 * config/m68k/xm-apollo68v.h: Delete.
275 2003-09-14 Andrew Cagney <cagney@redhat.com>
277 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
278 * dcache.c: Update copyrights and descriptions.
279 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
281 2003-09-14 Andrew Cagney <cagney@redhat.com>
283 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
284 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
286 2003-09-14 Andrew Cagney <cagney@redhat.com>
288 * alpha-nat.c: Remove some occurances of "register".
289 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
290 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
291 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
292 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
293 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
294 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
295 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
296 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
297 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
298 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
299 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
300 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
301 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
302 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
303 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
304 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
305 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
306 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
307 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
308 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
309 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
310 * values.c, vax-tdep.c, xcoffread.c: Ditto.
312 2003-09-13 Andrew Cagney <cagney@redhat.com>
314 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
315 * ppc-tdep.h (struct regcache): Declare opaque.
316 * objfiles.h (struct objfile_data): Declare opaque.
317 * cp-support.h (struct objfile): Declare opaque.
318 * linux-nat.h (target_waitstatus): Declare opaque.
320 2003-09-14 Mark Kettenis <kettenis@gnu.org>
322 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
323 (stabs_argument_has_addr): New architecture method.
324 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
325 * arch-utils.c: Include "buildsym.h".
326 (default_stabs_argument_has_addr): New function.
327 * stabsread.c (define_symbol): Use stabs_argument_has_addr
328 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
330 * cris-tdep.c (cris_gdbarch_init): Set
331 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
332 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
333 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
334 * mips-tdep.c (mips_gdbarch_init): Likewise.
335 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
336 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
338 2003-09-13 Andrew Cagney <cagney@redhat.com>
340 * values.c (using_struct_return): Delete "function" and "funcaddr"
342 * value.h (using_struct_return): Update declaration.
343 * infcmd.c (finish_command_continuation): Update.
344 (finish_command): Update.
345 * infcall.c (call_function_by_hand): Update.
346 * eval.c (evaluate_subexp_standard): Update.
348 2003-09-13 Christopher Faylor <cgf@redhat.com>
350 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
351 SSE registers since gdb will not operate correctly without this.
352 Restore include file ordering munged in previous change.
353 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
355 2003-09-13 Mark Kettenis <kettenis@gnu.org>
357 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
359 * gdbarch.c, gdbarch.h: Updated.
360 * infcall.c (call_function_by_hand): Update.
361 * stabsread.c (define_symbol): Updated.
363 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
365 2003-09-12 Christopher Faylor <cgf@redhat.com>
367 * win32-nat.c: Reorganize so that defines used by target headers are
368 actually defined by the system headers.
369 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
370 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
372 2003-09-12 Jim Blandy <jimb@redhat.com>
374 * dbxread.c (read_dbx_symtab): Don't report an internal error if
375 the file has no .data, .bss, or .rodata sections. Instead wait
376 until we see a variable alleged to live in one of those sections.
378 * dbxread.c (read_dbx_symtab): If we have no .data section and no
379 .bss section, presume that any variables we find live in the
382 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
383 offsets for global and static variables.
385 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
386 symbol types are, by definition, in the .data section, so it is
387 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
388 If there is no .data section, there should be no N_DATA or N_DATA
391 2003-09-12 Mark Kettenis <kettenis@gnu.org>
393 * amd64fbsd-tdep.c: Fix sigtramp recognition.
394 (amd64fbsd_sigcontext_addr): Rewrite.
395 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
397 (amd64fbsd_sc_reg_offset): Initialize with correct values.
398 (amd64fbsd_init_abi): Fix typo.
400 2003-09-12 Andrew Cagney <cagney@redhat.com>
402 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
403 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
405 2003-09-12 Andrew Cagney <cagney@redhat.com>
407 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
408 "entry_file_highpc". Update comments.
409 * defs.h (deprecated_inside_entry_file): Rename
411 * blockframe.c (deprecated_inside_entry_file): Rename
413 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
414 * vax-tdep.c (vax_frame_chain): Update.
415 * sh64-tdep.c (sh64_frame_chain): Update.
416 * sh-tdep.c (sh_frame_chain): Update.
417 * rs6000-tdep.c (rs6000_frame_chain): Update.
418 * ns32k-tdep.c (ns32k_frame_chain): Update.
419 * mips-tdep.c (mips_frame_chain): Update.
420 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
421 * m32r-tdep.c (m32r_frame_this_id): Update.
422 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
423 * frv-tdep.c (frv_frame_this_id): Update.
424 * d10v-tdep.c (d10v_frame_this_id): Update.
425 * cris-tdep.c (cris_frame_chain): Update.
426 * blockframe.c (legacy_frame_chain_valid): Update.
427 * avr-tdep.c (avr_frame_this_id): Update.
428 * arm-tdep.c (arm_prologue_this_id): Update.
429 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
430 * objfiles.c (objfile_relocate): Update.
431 * mipsread.c (mipscoff_symfile_read): Update.
432 (mipscoff_symfile_read): Update.
433 * mdebugread.c (parse_partial_symbols): Update.
434 * dwarfread.c (read_file_scope): Update.
435 * dwarf2read.c (read_file_scope): Update.
436 * dbxread.c (read_dbx_symtab): Update.
437 (read_dbx_symtab): Update.
438 * coffread.c (complete_symtab): Update.
440 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
442 * top.c (quit_target): New static helper function.
443 (quit_force): Moved code to quit_target(). Call quit_target()
444 via catch_errors() to catch errors during quit.
446 2003-09-11 David Carlton <carlton@kealia.com>
448 * buildsym.c (finish_block): Use allocate_block to allocate the
450 * mdebugread.c (new_block): Add FIXME.
452 2003-09-11 David Carlton <carlton@kealia.com>
454 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
455 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
456 (recursive_dump_type): Ditto.
457 * printcmd.c (print_formatted): Ditto.
458 * typeprint.c (print_type_scalar): Ditto.
459 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
460 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
461 * cp-support.h: Declare cp_check_possible_namespace_symbols,
462 maint_cplus_cmd_list.
463 * cp-support.c: Make maint_cplus_cmd_list extern.
464 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
466 (lookup_symbol_file): Look in possible namespace blocks when
468 (initialize_namespace_symtab): New.
469 (get_possible_namespace_block, free_namespace_block)
470 (check_possible_namespace_symbols)
471 (check_possible_namespace_symbols_loop)
472 (check_one_possible_namespace_symbol)
473 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
474 (_initialize_cp_namespace): Ditto.
475 * block.h: Declare allocate_block.
476 * block.c (allocate_block): New.
477 * jv-lang.c (get_java_class_symtab): Allocate blocks via
479 * symfile.h: Update declaration of add_psymbol_to_list.
480 * symfile.c (add_psymbol_to_list): Return the partial symbol in
482 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
483 scan_partial_symbols_call.
484 (scan_partial_symbols): Add NAMESPACE argument; update calls to
486 (add_partial_symbol): If necessary, scan mangled names for names
488 (add_partial_namespace): Add NAMESPACE argument; generate partial
489 symbols associated to namespaces.
490 (add_partial_enumeration): Add NAMESPACE argument.
491 (new_symbol): Allow namespace syms.
492 (read_namespace): Generate namespace syms.
493 * objfiles.h: Add opaque declaration of struct symtab.
494 (struct objfile): Add cp_namespace_symtab member.
495 * objfiles.c (allocate_objfile): Set
496 objfile->cp_namespace_symtab.
497 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
498 dictionary_h, command_h.
500 2003-09-11 Andrew Cagney <cagney@redhat.com>
502 * rs6000-tdep.c (rs6000_push_dummy_call): Use
503 regcache_raw_write_signed to set SP_REGNUM, move the operation to
504 near the function's end.
505 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
506 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
507 regcache_raw_write_signed to set SP_REGNUM.
509 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
511 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
512 orig_addrs is set up properly.
514 2003-09-11 Andrew Cagney <cagney@redhat.com>
516 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
517 * gdbarch.h, gdbarch.c: Re-generate.
518 * infcall.c (call_function_by_hand): Update.
519 * hppa-tdep.c (hppa_push_arguments): Update.
520 * ada-lang.c (place_on_stack): Update.
521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
522 * sparc-tdep.c (sparc_gdbarch_init): Update.
523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
524 * hppa-tdep.c (hppa_gdbarch_init): Update.
525 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
528 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
530 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
531 register do need a frame.
533 2003-09-11 Andrew Cagney <cagney@redhat.com>
535 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
536 buildable since GDB 5.0.
537 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
538 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
539 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
540 * irix4-nat.c: Delete file.
541 * config/mips/irix4.mh: Delete file.
542 * config/mips/irix3.mh: Delete file.
543 * config/mips/irix3.mt: Delete file.
544 * config/mips/tm-irix3.h: Delete file.
545 * config/mips/nm-irix3.h: Delete file.
546 * config/mips/xm-irix3.h: Delete file.
547 * config/mips/nm-irix4.h: Delete file.
548 * config/mips/xm-irix4.h: Delete file.
549 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
551 2003-09-10 J. Brobecker <brobecker@gnat.com>
553 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
554 * Makefile.in (hppa-tdep.o): Update dependencies.
556 2003-09-10 James E Wilson <wilson@specifixinc.com>
558 * MAINTAINERS: Change my e-mail address. Move to paper trail
561 2003-09-10 Kevin Buettner <kevinb@redhat.com>
563 * MAINTAINERS (frv): New ISA entry.
565 2003-09-10 Kevin Buettner <kevinb@redhat.com>
567 * frv-tdep.c (dis-asm.h): Include.
568 * Makefile.in (frv-tdep.o): Update dependencies.
570 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
572 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
573 Fix typo for high range of floating registers.
575 2003-09-09 David Carlton <carlton@kealia.com>
577 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
578 highpc initialization here out of scan_partial_symbols.
579 (scan_partial_symbols): Restructure into a recursive version,
580 calling add_partial_namespace and add_partial_enumeration when
582 (add_partial_namespace): New.
583 (add_partial_enumeration, locate_pdi_sibling): Ditto.
585 2003-09-09 Andrew Cagney <cagney@redhat.com>
587 * rs6000-tdep.c (ppc_push_return_address): Delete function.
588 (rs6000_push_dummy_call): Set LR to BP_ADDR.
589 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
590 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
592 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
593 (rs6000_push_dummy_call): Set the "TOC" register.
595 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
596 methods "max_register_raw_size", "max_register_virtual_size" or
597 "register_virtual_size".
599 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
601 * MAINTAINERS: Update my e-mail address.
603 2003-09-09 Andrew Cagney <cagney@redhat.com>
605 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
606 (rs6000_push_dummy_call): Store the struct return address.
607 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
609 2003-09-09 Andrew Cagney <cagney@redhat.com>
611 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
612 "ppc_sysv_abi_push_arguments".
613 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
614 "ppc_sysv_abi_push_arguments".
615 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
616 instead of "push_arguments".
617 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
619 2003-09-09 Andrew Cagney <cagney@redhat.com>
621 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
622 instead of CALL_DUMMY_ADDRESS.
624 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
626 * p-lang.c: Eliminate "register".
635 * objc-lang.c: Ditto.
637 2003-09-09 Nick Clifton <nickc@redhat.com>
639 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
641 2003-09-04 Andrew Cagney <cagney@redhat.com>
643 * avr-tdep.c: Include "dis-asm.h".
644 * cris-tdep.c: Include "dis-asm.h".
645 (cris_delayed_get_disassembler): Use "struct disassemble_info"
646 instead of corresponding typedef.
647 * h8300-tdep.c: Include "dis-asm.h".
648 * ia64-tdep.c: Include "dis-asm.h".
649 * i386-tdep.c: Include "dis-asm.h".
650 (i386_print_insn): Use "struct disassemble_info" instead of
651 corresponding typedef.
652 * m68k-tdep.c: Include "dis-asm.h".
653 * mcore-tdep.c: Include "dis-asm.h".
654 * mips-tdep.c: Include "dis-asm.h".
655 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
656 instead of corresponding typedef.
657 * ns32k-tdep.c: Include "dis-asm.h".
658 * s390-tdep.c: Include "dis-asm.h".
659 * sparc-tdep.c: Include "dis-asm.h".
660 * vax-tdep.c: Include "dis-asm.h".
661 * v850-tdep.c: Include "dis-asm.h".
662 * mn10300-tdep.c: Include "dis-asm.h".
663 * rs6000-tdep.c: Include "dis-asm.h".
664 * xstormy16-tdep.c: Include "dis-asm.h".
665 (_initialize_xstormy16_tdep): Delete "extern" declaration of
666 print_insn_xstormy16.
667 * Makefile.in (v850-tdep.o): Update dependencies.
668 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
669 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
670 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
671 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
672 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
673 (gdbarch_h): Remove $(dis_asm_h).
674 * disasm.c: Include "dis-asm.h".
675 (dis_asm_read_memory): Use "struct disassemble_info" instead of
676 corresponding typedef.
677 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
678 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
679 * gdbarch.sh: Do not include "dis-asm.h".
680 (struct disassemble_info): Declare opaque.
681 (TARGET_PRINT_INSN): Update declaration.
682 * gdbarch.h, gdbarch.c: Re-generate.
684 2003-09-08 Andrew Cagney <cagney@redhat.com>
686 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
687 CALL_DUMMY_ADDRESS, change to a predicate.
688 * gdbarch.h, gdbarch.c: Re-generate.
689 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
690 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
691 * infcall.c (call_function_by_hand): Ditto.
692 * sparc-tdep.c (sparc_push_return_address): Ditto.
693 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
694 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
695 CALL_DUMMY_ADDRESS with entry_point_address.
696 * v850-tdep.c (v850_push_return_address): Ditto.
697 * s390-tdep.c (s390_push_return_address): Ditto.
698 * rs6000-tdep.c (ppc_push_return_address): Ditto.
699 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
700 * mcore-tdep.c (mcore_push_return_address): Ditto.
701 * cris-tdep.c (cris_push_return_address): Ditto.
702 * arm-tdep.c (arm_push_return_address): Ditto.
704 2003-09-08 Andrew Cagney <cagney@redhat.com>
706 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
707 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
708 and REG_UNMODIFIED to REG_SAME_VALUE.
709 (execute_cfa_program): Update.
710 (dwarf2_frame_cache): Update. Initialize table to
711 REG_UNSPECIFIED, complain if CFI fails to specify a register's
713 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
715 2003-09-08 Andrew Cagney <cagney@redhat.com>
717 * gnu-nat.c: Remove "inline" function attribute.
718 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
720 2003-09-08 Kevin Buettner <kevinb@redhat.com>
722 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
725 2003-09-08 Kevin Buettner <kevinb@redhat.com>
727 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
728 (frame_extra_info): Rename this struct to frv_unwind_cache.
729 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
730 Add fields ``prev_sp'' and ``base''.
731 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
732 (frv_saved_pc_after_call, frv_init_extra_frame_info)
733 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
735 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
736 Revise all callers. Fill in the unwind cache argument and make
737 other adjustments to account for new frame mechanisms.
738 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
739 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
740 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
741 (frv_frame_unwind, frv_frame_base): New structs.
742 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
743 additional arguments expected by this method and adjust function
745 (frv_gdbarch_init): Remove calls to the following functions:
746 set_gdbarch_deprecated_init_frame_pc(),
747 set_gdbarch_deprecated_saved_pc_after_call(),
748 set_gdbarch_deprecated_frame_chain(),
749 set_gdbarch_deprecated_frame_saved_pc(),
750 set_gdbarch_deprecated_frame_init_saved_regs(),
751 set_gdbarch_deprecated_push_arguments(),
752 set_gdbarch_deprecated_push_return_address(),
753 set_gdbarch_deprecated_pop_frame(),
754 set_gdbarch_deprecated_call_dummy_words(),
755 set_gdbarch_deprecated_sizeof_call_dummy_words(),
756 set_gdbarch_deprecated_init_extra_frame_info(),
757 set_gdbarch_deprecated_dummy_write_sp(), and
758 set_gdbarch_deprecated_pc_in_call_dummy().
759 Add calls to the following functions:
760 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
761 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
762 frame_base_set_default().
763 * Makefile.in (frv-tdep.o): Update dependencies.
765 2003-09-09 Mark Kettenis <kettenis@gnu.org>
767 * dwarf2-frame.c (read_encoded_value): Add support for
768 DW_EH_PE_aligned encoding.
770 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
772 * infrun.c (normal_stop): Don't print a message if the inferior
775 2003-09-08 Jim Blandy <jimb@redhat.com>
777 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
778 * dbxread.c: #include "gdb_assert.h".
779 (read_dbx_symtab): If the objfile has no .data section, use the
780 section index for the .bss section instead.
782 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
784 * frame.c (deprecated_safe_get_selected_frame): New function.
785 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
786 * findvar.c (read_var_value): Call it.
788 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
790 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
791 (sh64-tdep.o): Add dependencies.
792 * configure.tgt: Add FIXME to sh-*-linux*.
793 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
794 (sh_gdbarch_init): Always set correct sh_show_regs function
795 pointer. Call sh64_gdbarch_init() if machine type is sh5.
796 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
797 * sh64-tdep.c: New file, containing all sh64 related code from
799 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
800 * config/sh/linux.mt (TDEPFILES): Ditto.
801 * config/sh/nbsd.mt (TDEPFILES): Ditto.
802 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
803 * config/sh/wince.mt (TDEPFILES): Ditto.
805 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
807 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
808 (stop_wait_callback): Handle !lp->signalled also.
809 (lin_lwp_has_pending, flush_callback): New functions.
810 (lin_lwp_wait): Call flush_callback.
811 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
812 (linux_proc_pending_signals): New function.
813 * linux-nat.h (linux_proc_pending_signals): Add prototype.
815 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
817 From Nick Kelsey <nickk@ubicom.com>:
818 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
819 when the stop PC is at the beginning of a function also.
821 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
823 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
824 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
826 2003-09-06 Mark Kettenis <kettenis@gnu.org>
828 * sol-thread.c: Include "gdb_string.h".
830 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
832 * gcore.c: Reorder include files in alphabetical order. Include
833 "gdb_assert.h". Various coding style fixes.
834 (derive_stack_segment, derive_heap_segment): Replace check for
835 non-null BOTTOM and TOP with gdb_assert.
836 (derive_heap_segment): Replace check for successful creation of
837 ZERO with gdb_assert.
838 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
840 2003-09-04 Andrew Cagney <cagney@redhat.com>
842 * thread-db.c (verbose_dlsym): New function.
843 (thread_db_load): Use verbose_dlsym
844 (thread_db_new_objfile): Print that libthread_db was loaded, and
845 that thread debugging was enabled.
847 2003-09-04 Andrew Cagney <cagney@redhat.com>
849 * configure.tgt: Add "mips64*-*-*" target. Delete
850 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
851 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
852 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
853 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
854 mips*-sony-*, and mips64*-*-elf* targets.
855 * config/mips/embedl.mt: Delete file.
856 * config/mips/embedl64.mt: Delete file.
857 * config/mips/mips.mt: Delete file.
858 * config/mips/mips64.mt: Delete file.
859 * config/mips/tm-embed.h: Delete file.
860 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
861 * config/mips/embed64.mt: Delete out-of-date comment.
863 2003-09-04 Andrew Cagney <cagney@redhat.com>
865 * hppa-tdep.c (hppa_gdbarch_init): Set
866 "have_nonsteppable_watchpoint".
867 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
868 * mips-tdep.c (mips_dump_tdep): Do not print
869 HAVE_NONSTEPPABLE_WATCHPOINT.
870 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
871 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
872 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
873 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
875 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
877 * breakpoint.c (watchpoint_check): Remove accidentally checked in
878 unused code. Add comment.
880 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
882 * breakpoint.c (watchpoint_check): Check for pc being in an
883 epilogue if watchpoint frame couldn't be found.
885 2003-09-04 Andrew Cagney <cagney@redhat.com>
887 * Makefile.in: Re-generate all dependencies.
889 2003-09-03 Andrew Cagney <cagney@redhat.com>
891 * arch-utils.h (legacy_print_insn): Delete declaration.
892 * arch-utils.c (legacy_print_insn): Delete function.
893 * disasm.c (deprecated_tm_print_insn_info): Delete.
894 (_initialize_disasm): Delete function, contained code initializing
895 deprecated_tm_print_insn_info.
896 * gdbarch.sh (deprecated_tm_print_insn): Delete.
897 (deprecated_tm_print_insn_info): Delete.
898 (TARGET_PRINT_INSN): Do not provide a default.
899 * gdbarch.h, gdbarch.c: Re-generate.
901 2003-09-03 Andrew Cagney <cagney@redhat.com>
903 * disasm.c (fprintf_disasm): New function.
904 (gdb_disassemble_info): Call "init_disassemble_info", instead of
905 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
906 reverts 2003-08-14 change.
907 (_initialize_disasm): Call "init_disassemble_info", instead of
908 INIT_DISASSEMBLE_INFO_NO_ARCH.
910 2003-09-03 Michael Snyder <msnyder@redhat.com>
912 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
914 2003-09-03 Andrew Cagney <cagney@redhat.com>
916 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
917 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
918 * symfile.c (syms_from_objfile): Update.
919 (reread_symbols): `Update
920 * exec.c (exec_file_attach): Update.
921 (exec_file_attach): Update.
922 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
924 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
926 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
928 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
930 (arm_get_cache): Delete macro.
931 (struct arm_prologue_cache): Update comments. Make saved_regs into
932 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
934 (thumb_scan_prologue): Update for cache changes. Don't call
935 DEPRECATED_PC_IN_CALL_DUMMY.
936 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
937 argument and use it in desperation search for our prologue. Do not
938 search past the specified PC.
939 (arm_make_prologue_cache): Simplify.
941 (arm_prologue_this_id, arm_prologue_prev_register)
942 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
943 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
944 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
945 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
946 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
948 (arm_frame_chain_valid, arm_find_callers_reg)
949 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
950 (arm_pop_frame): Delete obsolete methods.
951 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
953 (arm_gdbarch_init): Update for new frame methods. Register prologue
954 and sigtramp unwinders. Set the default frame base method.
956 * Makefile.in (arm-tdep.o): Update dependencies.
957 * varobj.c (find_frame_addr_in_frame_chain): Call
958 get_frame_base_address.
959 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
961 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
963 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
964 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
965 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
966 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
967 Take NEXT_FRAME and CACHE arguments. Call
968 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
969 Set unwound_pc in CACHE instead of modifying the frame argument.
970 Don't bother checking the frame type when looking for sigtramp
972 (arm_make_prologue_cache, arm_frame_chain)
973 (arm_init_extra_frame_info): New functions.
975 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
977 * arm-tdep.c (arm_get_cache): Define.
978 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
979 unwound_sp, unwound_pc, and saved_regs.
980 (thumb_scan_prologue): Take a cache instead of the frame.
981 (arm_scan_prologue): Likewise.
982 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
983 instead of a temporary frame.
984 (arm_init_extra_frame_info): Allocate and use a cache.
985 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
987 2003-09-03 Andrew Cagney <cagney@redhat.com>
989 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
990 * config/mips/wince.mt (TM_CLIBS): Ditto.
991 * config/sh/wince.mt (TM_CLIBS): Ditto.
992 * config/pa/hppa64.mt (TM_CLIBS): Delete.
993 * config/sparc/sp64.mt (CC): Delete.
995 2003-09-03 Andrew Cagney <cagney@redhat.com>
997 * defs.h: Do not include "arch-utils.h".
998 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1000 * configure.in (GDB_MULTI_ARCH): Do not define.
1001 * configure, config.in: Regenerate.
1002 * configure.tgt: Do not set variable "gdb_multi_arch".
1003 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1004 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1005 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1006 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1007 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1008 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1009 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1010 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1011 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1012 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1013 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1014 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1015 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1016 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1017 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1018 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1019 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1020 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1022 2003-08-30 Michael Chastain <mec@shout.net>
1024 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1025 * config/m68k/nm-hp300hpux.h: Delete.
1026 * config/m68k/tm-hp300hpux.h: Delete.
1027 * config/m68k/xm-hp300hpux.h: Delete.
1028 * config/m68k/xm-hp300bsd.h: Delete.
1029 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1030 tm-hp300hpux.h, xm-hp300hpux.h.
1031 * somsolib.c: Remove comment about hp300 shared libraries.
1033 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1035 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1036 Only define PTRACE_GET_THREAD_AREA is not already defined.
1037 Various style fixes in code and comments and some additional
1038 spelling fixes in comments. Move after functions dealing with
1040 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1043 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1044 frame_unwind_register_unsigned instead of
1045 frame_unwind_unsigned_register.
1047 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1049 * configure.in: Search for gethostbyname in libnsl.
1050 * configure: Regenerated.
1052 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1054 * configure.in: Remove redundant AC_MSG_RESULT in check for
1055 uintptr_t in stdint.h.
1056 * configure: Regenerated.
1058 * amd64-nat.h (struct regcache): Add opaque declaration.
1060 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1061 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1062 Change "register array" to "register cache" in comments.
1063 (x86_64_linux_gregset64_reg_offset): New variable.
1064 (GETREGS_SUPPLIES): Remove macro.
1065 (supply_gregset): Call amd64_supply_native_gregset instead of
1066 x86_64_linux_supply_gregset.
1067 (fill_gregset): Rename `regno' to `regnum'. Call
1068 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1069 (store_regs): Rename `regno' to `regnum'.
1070 (store_fpregs): Rename `regno' to `regnum'.
1071 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1072 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1073 Reorganize function a bit.
1074 (store_inferior_registers): Rename `regno' to `regnum'. Use
1075 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1076 Reorganize function a bit.
1077 (_initialize_x86_64_linux_nat): New function.
1078 * config/i386/x86-64linux.mh.
1080 2003-08-29 Andrew Cagney <cagney@redhat.com>
1082 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1083 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1084 (target_remove_watchpoint): Delete macro.
1085 (target_insert_watchpoint): Delete macro.
1086 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1087 (remote_mips_stopped_by_watchpoint): Delete declaration.
1088 (remote_mips_remove_watchpoint): Delete declaration.
1089 (remote_mips_set_watchpoint): Delete declaration.
1090 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1091 * remote-mips.c (_initialize_remote_mips): Set
1092 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1093 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1094 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1095 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1096 (mips_stopped_by_watchpoint): Rename
1097 remote_mips_stopped_by_watchpoint.
1098 (mips_can_hardware_watchpoint): Rename
1099 remote_mips_can_use_hardware_watchpoint, update function
1102 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1104 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1105 USER_DS. We haven't given them a register number yet.
1107 * amd64-nat.h: New file.
1108 * amd64-nat.c: New file.
1109 * amd64fbsd-nat.c: Include "amd64-nat.h".
1110 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1111 (amd64fbsd32_r_reg_offset): New variable.
1112 (supply_gregset): Simply call amd64_supply_native_gregset.
1113 (fill_gregset): Rename `regno' to `regnum'. Simply call
1114 amd64_collect_native_gregset.
1115 (fill_fpregset): Rename `regno' to `regnum'.
1116 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1117 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1118 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1119 `fpregset_t'. Call amd64_supply_native_gregset instead of
1120 supply_gregset. Call x86_64_supply_fxsave instead of
1122 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1123 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1124 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1125 `fpregset_t'. Call amd64_collect_native_gregset instead of
1126 fill_gregset. Call x86_64_collect_fxsave instead of
1128 (_initialize_am64fbsd_nat): Initialize
1129 amd64_native_gregset32_reg_offset and
1130 amd64_native_gregset64_reg_offset.
1131 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1133 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1134 null pointer. Fix typo in comment.
1136 * regcache.c (supply_register): Reimplement to call
1137 regcache_raw_supply.
1138 (regcache_collect): Reimplement by calling regcache_raw_collect.
1140 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1142 * regcache.c (register_buffer): Consitify first argument.
1143 (regcache_raw_supply, regcache_raw_collect): New
1146 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1148 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1149 by Nathan J. Williams.
1151 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1153 * lin-lwp.c (wait_lwp): New function, copied from
1154 stop_wait_callback. Clean up.
1155 (stop_wait_callback): Use wait_lwp.
1157 2003-08-28 Andrew Cagney <cagney@redhat.com>
1159 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1160 flavour and disassembler options.
1161 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1162 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1163 deprecated_tm_print_insn_info.
1165 2003-08-27 Andrew Cagney <cagney@redhat.com>
1167 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1168 Use target_read_memory.
1169 (s390_get_frame_info): Update. Do not reference
1170 deprecated_tm_print_insn_info.
1171 (s390_check_function_end, s390_is_sigreturn): Ditto.
1173 2003-08-27 Andrew Cagney <cagney@redhat.com>
1175 * Makefile.in (cris-tdep.o): Update dependencies.
1176 * cris-tdep.c: Include "gdb_assert.h".
1177 (cris_gdbarch_init): Set print_insn.
1178 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1179 (cris_delayed_get_disassembler): Simplify, directly call the
1180 disassembler returned by cris_get_disassembler.
1181 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1182 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1183 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1184 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1185 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1186 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1187 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1188 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1189 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1190 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1191 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1192 (gdb_print_insn_sparc): Delete function.
1193 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1194 deprecated_tm_print_insn_info.
1195 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1196 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1197 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1199 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1200 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1201 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1202 (s390_gdbarch_init): Set print_insn.
1204 2003-08-27 Andrew Cagney <cagney@redhat.com>
1206 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1207 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1208 * infcall.c (call_function_by_hand): Convert the entry point
1209 address into a code address.
1211 2003-08-27 Andrew Cagney <cagney@redhat.com>
1213 * dsrec.c: Include "gdb_string.h".
1214 * Makefile.in (dsrec.o): Update dependencies.
1216 2003-08-27 Michael Chastain <mec@shout.net>
1218 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1220 2003-08-27 Andrew Cagney <cagney@redhat.com>
1222 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1223 (alpha_osf1_init_abi): Do not set call_dummy_address.
1225 2003-08-27 David Carlton <carlton@kealia.com>
1227 From Randolph Chung <tausq@debian.org>:
1228 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1229 compiles with -Wformat-nonliteral -Werror.
1231 2003-08-26 Jim Blandy <jimb@redhat.com>
1233 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1234 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1235 bfd_lookup_symbol, since we only want symbols in code sections.
1236 (look_for_base): Pass zero as the SECT_FLAGS argument to
1237 bfd_lookup_symbol, since we're not concerned about which section
1240 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1242 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1243 we are frameless or the return address register is already known.
1245 2003-08-26 Andrew Cagney <cagney@redhat.com>
1247 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1248 in size. Add comments.
1250 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1252 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1253 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1255 2003-08-26 Jason Merrill <jason@redhat.com>
1257 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1258 case out of #ifdef MIPS block.
1260 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1263 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1264 available before calling SECT_OFF_TEXT.
1265 * PROBLEMS: Remove description of java/1322.
1267 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1269 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1270 bof, and nat0-nat127 as pseudo-registers.
1271 (ia64_frame_cache): New struct used to cache frame info.
1272 (ia64_register_reggroup_p): New routine used to override default
1273 register grouping so registers without names are still saved and
1275 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1277 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1278 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1279 (ia64_alloc_frame_cache): New routine to create a new
1281 (examine_prologue): Change prototype to add next_frame pointer.
1282 Assume frameless until otherwise proven. Verify that the cfm for
1283 current frame matches the cfm that should occur for the prologues
1284 alloc insn and if equal, mark as not frameless. At end of routine,
1285 if not frameless, calculate registers for the previous frame and store
1286 in the cache, if a cache is provided.
1287 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1288 and pass 0 for next_frame.
1289 (ia64_store_return_value): Change to use convert_typed_floating()
1290 instead of calling ia64_convert_to_raw().
1291 (ia64_extract_return_value): Change to use convert_typed_floating()
1292 instead of calling ia64_convert_to_virtual().
1293 (ia64_frame_cache): New routine to support new frame model.
1294 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1295 (ia64_frame_sniffer): Ditto.
1296 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1297 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1298 (ia64_sigtramp_frame_prev_register): Ditto.
1299 (ia64_sigtramp_frame_sniffer): Ditto.
1300 (ia64_frame_base_address): Ditto.
1301 (ia64_extract_struct_value_address): Change to issue error message.
1302 (ia64_frame_align): New routine to align sp.
1303 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1304 (ia64_push_arguments): Removed. Logic moved to
1305 ia64_push_dummy_call().
1306 (ia64_push_return_address): Ditto.
1307 (ia64_unwind_dummy_id): New function.
1308 (ia64_unwind_pc): Ditto.
1309 (ia64_convert_register_p): Ditto.
1310 (ia64_register_to_value): Ditto.
1311 (ia64_value_to_register): Ditto.
1312 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1313 (ia64_register_byte, ia64_register_raw_size): Ditto.
1314 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1315 (ia64_saved_pc_after_call): Ditto.
1316 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1317 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1318 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1319 (ia64_register_convert_to_raw): Ditto.
1320 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1321 (ia64_init_extra_frame_info): Ditto.
1322 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1323 (ia64_gdbarch_init): Remove registering of deprecated functions that
1324 are no longer used. Add registration of new gdbarch functions.
1325 Remove registering deprecated_write_sp. Replace
1326 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1327 Delete set_gdbarch_deprecated_register_convertible(),
1328 set_gdbarch_deprecated_register_convert_to_virtual(), and
1329 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1330 set_gdbarch_deprecated_register_size(),
1331 set_gdbarch_deprecated_register_bytes(),
1332 set_gdbarch_pcregnum(),
1333 set_gdbarch_deprecated_register_byte(),
1334 set_gdbarch_deprecated_register_raw_size(),
1335 set_gdbarch_deprecated_max_register_raw_size(),
1336 set_gdbarch_deprecated_register_virtual_size(),
1337 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1338 Replace set_gdbarch_deprecated_extract_return_value() with
1339 set_gdbarch_extract_return_value(). Remove calls to:
1340 set_gdbarch_deprecated_saved_pc_after_call();
1341 set_gdbarch_deprecated_frame_chain(),
1342 set_gdbarch_deprecated_frame_saved_pc(),
1343 set_gdbarch_deprecated_frame_init_saved_regs(),
1344 set_gdbarch_deprecated_get_saved_register(),
1345 set_gdbarch_deprecated_call_dummy_words(),
1346 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1347 set_gdbarch_deprecated_init_extra_frame_info(),
1348 set_gdbarch_deprecated_frame_args_address(),
1349 set_gdbarch_deprecated_frame_locals_address(),
1350 and set_gdbarch_deprecated_dummy_write_sp().
1351 Add set_gdbarch_convert_register_p(),
1352 set_gdbarch_register_to_value(),
1353 set_gdbarch_value_to_register(),
1354 set_gdbarch_push_dummy_call(),
1355 set_gdbarch_frame_align(),
1356 set_gdbarch_unwind_dummy_id(),
1357 set_gdbarch_unwind_pc(),
1358 frame_unwind_append_sniffer(),
1359 frame_unwind_append_sniffer(),
1360 and frame_base_set_default().
1362 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1364 * configure.tgt: Document need for special "mipsisa64" handling.
1365 (mipsisa64*-*-linux64): Handle as target linux64.
1366 (mipsisa64*-*-*): Handle as target embed64.
1368 2003-08-18 Michael Chastain <mec@shout.net>
1370 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1373 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1375 * i387-tdep.h: Update copyright date.
1376 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1378 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1379 CFLAGS games to reflect reality.
1381 2003-08-24 Andrew Cagney <cagney@redhat.com>
1383 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1384 GDB_MULTI_ARCH is always non-zero.
1385 * osabi.c (_initialize_gdb_osabi): Ditto.
1386 (gdbarch_init_osabi): Ditto.
1387 * sparc-tdep.c: Ditto for #if code.
1389 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1391 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1393 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1395 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1396 x86_64_supply_fxsave.
1397 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1398 x86_64_supply_fxsave.
1399 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1400 x86_64_supply_fxsave.
1402 2003-08-23 Andreas Jaeger <aj@suse.de>
1404 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1407 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1409 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1410 i387_supply_register.
1411 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1412 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1414 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1416 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1418 * i386bsd-nat.c (supply_fpregset): Adjust call to
1420 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1421 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1423 (store_inferior_registers): Remove extraneous whitespace. Call
1424 i387_fill_fsave instead of fill_fpregset.
1425 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1426 (supply_fpregset): Likewise.
1427 * i386v4-nat.c (supply_fpregset): Adjust call to
1429 * i386-interix-nat.c (supply_fpregset): Adjust call to
1431 * i386-linux-nat.c (supply_fpregset): Adjust call to
1433 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1434 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1435 i387supply_fsave and i387_supply_fxsave.
1436 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1437 Incorporate code from `i387_supply_register.
1438 (i387_supply_register): Remove.
1439 (i387_supply_fxsave): Add `regnum' argument.
1441 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1443 (i387_supply_register): remove prototype.
1446 2003-08-22 Michael Chastain <mec@shout.net>
1448 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1449 Add lines for files in gdb/testsuite/gdb.cp/* that are
1450 still not 8.3 unique.
1452 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1454 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1455 TYPE_VPTR_FIELDNO is valid.
1457 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1459 * utils.c (set_width_command): Remove prototypes.
1460 (set_screen_size): New prototype.
1461 (init_page_info): Simplify by fetching the screen size from
1462 Readline. Call set_screen_size.
1463 (set_screen_size): New function.
1464 (set_width): Add missing whitespace in comment.
1465 (set_width_command): Call set_screen_size.
1466 (set_height_command): New function.
1467 (initialize_utils): Fix formatting. Make "set height" command
1468 call set_height_command. Remove redundant code that turns off
1469 pagination if output isn't a terminal. Remove redundant call to
1472 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1474 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1475 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1476 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1477 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1479 (sparc64_register_info): Give the reister with number
1480 SPARC64_STATE_REGNUM a name.
1481 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1483 (sparc64_push_dummy_call): Take BIAS into account when checking
1485 (sparc_software_single_step): Remove assertions that check whether
1486 NPC and NNPC were zero.
1487 (sparc_supply_rwindow): Make public. Merge functionality with
1488 sparc64_supply_rwindow.
1489 (sparc_fill_rwindow): Make public. Merge functionality with
1490 sparc64_fill_rwindow.
1491 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1492 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1493 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1494 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1495 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1497 * reggroups.c: Add whitespace after declarations of local
1498 variables in functions.
1500 2003-08-21 Michael Chastain <mec@shout.net>
1502 * gdbtypes.h: Change array bound type from an int to enum.
1504 2003-08-21 Andrew Cagney <cagney@redhat.com>
1506 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1507 * config/sparc/tm-sparc.h: Ditto.
1508 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1510 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1512 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1514 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1515 (register_objfile_data, set_objfile_data, objfile_data): New
1517 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1519 (allocate_objfile): Call objfile_alloc_data.
1520 (free_objfile): Call objfile_free_data.
1521 (struct objfile_data): New.
1522 (struct objfile_data_registration): New.
1523 (struct objfile_data_registry): New.
1524 (objfile_data_registry): New variable.
1525 (register_objfile_data): New function.
1526 (objfile_alloc_data, objfile_free_data): New functions.
1527 (set_objfile_data, objfile_data): New functions.
1528 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1529 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1530 (_initialize_dwarf2_frame): New function and prototype.
1532 2003-08-21 Andrew Cagney <cagney@redhat.com>
1534 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1535 a specific architecture.
1536 * arch-utils.h (set_architecture_from_arch_mach): Delete
1538 (target_architecture_hook): Delete declaration.
1539 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1540 (default_float_format): Assume GDB_MULTI_ARCH.
1541 (default_double_format): Assume GDB_MULTI_ARCH.
1542 (set_endian_from_file): Delete function.
1543 (arch_ok): Delete function.
1544 (set_arch): Delete function.
1545 (set_architecture_from_arch_mach): Delete function.
1546 (set_architecture_from_file): Delete function.
1547 (set_architecture): Assume GDB_MULTI_ARCH.
1548 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1550 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1552 Rewrite FreeBSD/sparc64 native configuration.
1553 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1554 * sparc64fbsd-nat.c: New file.
1555 * sparc64fbsd-tdep.c: New file.
1556 * sparc64-tdep.c sparc64-tdep.h: New files.
1557 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1558 sparc64fbsd-tdep.o): New dependencies.
1559 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1560 and sparc64fbsd-tdep.c.
1561 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1562 * config/sparc/fbsd.mh: Remove copyright notice.
1563 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1565 * config/sparc/fbsd.mt: Remove copyright notice.
1566 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1567 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1568 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1569 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1570 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1571 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1572 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1573 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1575 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1576 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1578 2003-08-21 Michael Chastain <mec@shout.net>
1580 * symtab.h: Add doco on the space critical structures and
1581 some measurements of space usage.
1583 2003-08-21 Michael Snyder <msnyder@redhat.com>
1585 * tracepoint.c (trace_dump_command): Trace break address
1586 is subject to DECR_PC_AFTER_BREAK.
1587 (set_traceframe_context): Make "trace_line" an int.
1588 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1590 2003-08-20 Michael Snyder <msnyder@redhat.com>
1592 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1593 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1594 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1596 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1597 functions, replace sh_push_dummy_call.
1598 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1600 2003-08-20 Michael Chastain <mec@shout.net>
1602 * gdbtypes.h (struct main_type): Rearrange to save space.
1604 2003-08-20 Michael Snyder <msnyder@redhat.com>
1606 * trad-frame.c: Comment typo fix.
1608 2003-08-20 Michael Snyder <msnyder@redhat.com>
1609 Kevin Buettner <kevinb@redhat.com>
1611 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1612 (frv_frame_init_saved_regs): Add declaration.
1613 (frame_extra_info): Add new field ``saved_regs''.
1614 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1615 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1616 Update frame related code.
1617 (frv_extract_struct_value_address): Adjust formatting.
1618 * Makefile.in (frv-tdep.o): Update dependencies.
1619 * config/frv/tm-frv.h (target_insert_watchpoint)
1620 (target_remove_watchpoint, target_insert_hw_breakpoint)
1621 (target_remove_hw_breakpoint): Delete these macros.
1622 (remote_insert_watchpoint, remote_remove_watchpoint)
1623 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1626 2003-08-20 Michael Chastain <mec@shout.net>
1628 * defs.h (ENUM_BITFIELD): New macro.
1629 * symtab.h (ENUM_BITFIELD): Use it.
1630 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1632 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1634 * MAINTAINERS (write after approval): Add myself.
1636 2003-08-18 Andrew Cagney <cagney@redhat.com>
1638 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1639 * gdbarch.h, gdbarch.c: Re-generate.
1640 * infcall.c (call_function_by_hand): Adjust the SP by
1641 frame_red_zone_size before allocating any stack space.
1642 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1643 * x86-64-tdep.c (x86_64_frame_align): New function.
1644 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1646 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1647 Remove code adjusting SP so that it skips over the Red Zone.
1649 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1651 * NEWS (New native configurations): Mention FreeBSD/amd64.
1653 2003-08-18 Andrew Cagney <cagney@redhat.com>
1655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1656 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1658 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1660 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1662 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1664 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1666 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1668 * i386-linux-nat.c: Include "linux-nat.h".
1669 (child_post_startup_inferior): New function.
1671 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1673 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1674 at the start of a frameless function. This probably fixes PR
1677 2003-08-17 Michael Chastain <mec@shout.net>
1679 * symfile.c (find_sym_fns): Remove special case for apollo target.
1681 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1683 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1684 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1685 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1686 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1687 (linux_supports_tracevforkdone): New function.
1688 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1690 (child_follow_fork): Handle vfork.
1691 (linux_handle_extended_wait): Likewise. Also handle exec.
1692 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1693 * NEWS: Mention fork tracing.
1695 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1697 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1699 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1701 * Makefile.in (i386-linux-nat.o): Update dependencies.
1702 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1703 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1704 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1705 * i386-linux-nat.c: Include "linux-nat.h".
1706 (child_post_startup_inferior): New function.
1707 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1708 * infptrace.c (kill_inferior): Wrap in #ifdef.
1709 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1710 attaching to each LWP.
1711 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1712 (init_lin_lwp_ops): Fill in some more operations.
1713 * linux-nat.h (linux_enable_event_reporting)
1714 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1716 * linux-nat.c (linux_enable_event_reporting): New function.
1717 (child_post_attach, linux_child_post_startup_inferior)
1718 (child_post_startup_inferior, child_follow_fork)
1719 (linux_handle_extended_wait, kill_inferior): New functions.
1721 2003-08-16 Andrew Cagney <cagney@redhat.com>
1723 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1724 * gdbarch.h, gdbarch.c: Re-generate.
1726 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1728 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1730 2003-08-16 Andrew Cagney <cagney@redhat.com>
1732 * NEWS: Mention that "set prompt-escape-char" was deleted.
1733 * top.c (get_prompt_1): Delete function.
1734 (gdb_prompt_escape):
1735 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1736 prompt-escape-char" command.
1737 (MAX_PROMPT_SIZE): Delete macro.
1738 (get_prompt): Simplify, do not call get_prompt_1.
1740 2003-08-16 Andrew Cagney <cagney@redhat.com>
1742 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1743 -Werror. -Wformat-nonliteral problems.
1745 2003-08-15 J. Brobecker <brobecker@gnat.com>
1747 Further multiarching work mostly for hppa64-*-hpux11:
1748 * hppa-tdep.h: New file.
1749 * hppa-tdep.c: #include hppa-tdep.c.
1750 (hppa32_num_regs): Renamed from hppa_num_regs.
1751 (hppa64_num_regs): New constant.
1752 (hppa64_call_dummy_breakpoint_offset): New constant.
1753 (hppa32_call_dummy_length): New constant.
1754 (hppa64_call_dummy_length): New constant.
1755 (hppa32_stack_align): Make name 32bit explicit.
1756 (hppa32_register_virtual_type): Likewise.
1757 (hppa32_extract_return_value): Likewise.
1758 (hppa32_use_struct_convention): Likewise.
1759 (hppa32_store_return_value): Likewise.
1760 (hppa64_register_virtual_type): New function.
1761 (hppa64_extract_return_value): New function.
1762 (hppa64_use_struct_convention): New function.
1763 (hppa64_store_return_value): New function.
1764 (hppa_frame_locals_address): Remove declaration, function does
1766 (hppa_register_byte): Add support for PA64 ABI.
1767 (hppa_gdbarch_init): Add support for PA64 ABI.
1768 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1769 Make name 32bit explicit.
1770 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1771 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1772 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1773 (hppa64_hpux_frame_base_before_sigtramp): New function.
1774 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1775 * config/pa/tm-hppa64.h: Remove macros that are no longer
1776 necessary now that the gdbarch vector is properly setup.
1777 Transform some macros into function calls. Some minor cleanup.
1778 * config/pa/tm-hppah.h: Update function calls in macros
1779 following the function renaming in hppa-hpux-tdep.c.
1780 * Makefile.in (hppa_tdep_h): New variable.
1781 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1783 2003-08-14 Michael Snyder <msnyder@redhat.com>
1785 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1787 2003-08-13 J. Brobecker <brobecker@gnat.com>
1789 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1790 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1793 2003-08-13 Michael Snyder <msnyder@redhat.com>
1795 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1796 (frv_saved_pc_after_call): Use deprecated ftype.
1797 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1798 (frv_remote_translate_xfer_address): Remove.
1799 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1801 2003-08-13 J. Brobecker <brobecker@gnat.com>
1803 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1804 initialization after the common gdbarch initialization, not before.
1806 2003-08-13 J. Brobecker <brobecker@gnat.com>
1808 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1809 (ADDR_BITS_REMOVE): Remove, redundant.
1811 2003-08-13 J. Brobecker <brobecker@gnat.com>
1813 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1814 gdbarch method to clear the 2 low bits of text addresses.
1816 2003-08-12 Andrew Cagney <cagney@redhat.com>
1818 * Makefile.in (dsrec.o): Update dependencies.
1819 * dsrec.c: Include "gdb_assert.h".
1820 (make_srec): Use snprintf instead of sprintf, use a literal format
1823 2003-08-12 Andrew Cagney <cagney@redhat.com>
1825 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1826 FRAME_OBSTACK_ZALLOC.
1828 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1830 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1833 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1835 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1836 amd64fbsd_sc_reg_offset): Add extern declarations.
1837 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1840 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1842 * MAINTAINERS (write after approval): Update my mail address.
1844 2003-08-10 Andrew Cagney <cagney@redhat.com>
1846 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1848 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1850 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1851 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1852 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1853 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1854 i386bsd_sc_reg_offset): Add extern declarations.
1855 * i386obsd-nat.c: Include "i386-tdep.h"
1856 (_initialize_i386obsd_nat): Remove extern declarations.
1857 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1859 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1862 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1863 instead of frame_read_register.
1864 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1865 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1867 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1868 instead of frame_unwind_unsigned_register. Use
1869 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1870 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1871 instead of read_register. Use builtin_type_void_data_ptr instead
1872 of builtin_type_void_func_ptr when extracting the address of the
1874 (i386_extract_return_value, i386_store_return_value,
1875 i386_pseudo_register_read, i386_pseudo_register_write): Use
1876 register_size instead REGISTER_RAW_SIZE.
1878 2003-08-10 Andrew Cagney <cagney@redhat.com>
1880 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1881 sprintf. Make "name" constant.
1883 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1885 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1886 instead of frame_read_register.
1887 (i387_print_float_info): Use get_frame_register and
1888 get_frame_register_unsigned instead of frame_register_read.
1890 * i386fbsd-nat.c: Include "i386-tdep.h".
1891 (child_resume): Make `eflags' an ULONGEST. Use
1892 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1893 instead of register_read and register_write.
1895 * i386bsd-nat.c (fetch_inferior_registers,
1896 store_inferior_registers): Don't use && at the end of a line.
1897 (_initialize_i386bsd_nat): Fix typo.
1899 * frame.c (_initialize_frame): Add missing backslash.
1901 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1902 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1903 and supply_register instead of manipulating the register buffer
1906 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1907 * config/i386/nm-i386sol2.h
1908 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1910 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1911 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1912 instructions that GCC likes to mingle into the prologue. Fixes
1913 gdb/1253 and gdb/1255.
1915 2003-08-09 Andrew Cagney <cagney@redhat.com>
1918 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1919 * command.h (add_setshow_uinteger_cmd): Declare.
1920 * frame.c (set_backtrace_cmd): New function.
1921 (show_backtrace_cmd): New function.
1922 * frame.c (_initialize_frame): Replace "set/show
1923 backtrace-below-main" with "set/show backtrace past-main". Add
1924 command "set/show backtrace limit".
1925 (backtrace_past_main): Rename "backtrace_below_main".
1926 (backtrace_limit): New variable.
1927 (get_prev_frame): Update. Check the backtrace_limit.
1929 2003-08-09 Andrew Cagney <cagney@redhat.com>
1931 * defs.h (xstrprintf): Declare.
1932 * utils.c (xstrprintf): New function.
1933 * breakpoint.c (insert_breakpoints): Replace sprintf and
1934 non-literal format strings, with xstrprintf and cleanups.
1935 (delete_breakpoint,breakpoint_re_set): Ditto.
1936 (commands_command, insert_breakpoints): Ditto.
1937 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1938 (break_at_finish_command_1): Ditto.
1940 2003-08-09 Andrew Cagney <cagney@redhat.com>
1942 * MAINTAINERS (language support): List Adam Fedor as Objective C
1945 2003-08-08 J. Brobecker <brobecker@gnat.com>
1947 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1948 are now multiarched.
1950 2003-08-08 J. Brobecker <brobecker@gnat.com>
1952 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1953 longer necessary now that hppa64 is partially multiarch'ed.
1955 2003-08-08 Andrew Cagney <cagney@redhat.com>
1957 * interps.c (interp_set): Check for a NULL "old_interp".
1959 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1961 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1962 (install-only): Support DESTDIR.
1963 (uninstall): Likewise.
1964 (install-gdbtk): Likewise.
1966 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1968 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1969 contains something meaningful at all times.
1971 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1973 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1975 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1977 * MAINTAINERS (write after approval): Added self.
1979 2003-08-07 Andrew Cagney <cagney@redhat.com>
1981 * inferior.h (AT_SYMBOL): Define.
1982 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1983 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1984 * mips-tdep.c (mips_call_dummy_address): Delete function.
1985 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1986 set call_dummy_address.
1988 2003-08-07 Andrew Cagney <cagney@redhat.com>
1990 * language.c (op_error): Delete function.
1991 (binop_type_check): Delete function.
1992 * language.h (type_op_error, range_op_error): Delete macros.
1993 (op_error): Delete declaration.
1995 2003-08-07 Andrew Cagney <cagney@redhat.com>
1997 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1999 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2001 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2002 (x86_64_push_arguments): Skip the red zone.
2004 2003-08-05 Andrew Cagney <cagney@redhat.com>
2006 * reggroups.c (reggroup_next): Check for the final entry.
2008 2003-08-04 Andrew Cagney <cagney@redhat.com>
2010 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2011 * cli/cli-script.c (define_command): Call query directly, instead
2012 of passing it a buffer.
2013 * ocd.c (ocd_error): Pass error a constant format string.
2014 * remote-mips.c (mips_error): Use fputs_filtered.
2016 * solib-svr4.c (_initialize_svr4_solib): Update
2017 register_gdbarch_data call.
2018 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2020 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2021 (register_gdbarch_data): Delete "free" parameter. Update
2023 * gdbarch.h, gdbarch.c: Re-generate.
2024 * reggroups.c (_initialize_reggroup): Update.
2025 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2026 * frame-base.c (_initialize_frame_base): Update.
2027 * frame-unwind.c (_initialize_frame_unwind): Update.
2028 * user-regs.c (_initialize_user_regs): Update.
2029 * remote.c (_initialize_remote): Update.
2030 * regcache.c (_initialize_regcache): Update.
2032 * regcache.c (xfree_regcache_descr): Delete function.
2033 (_initialize_regcache): Update call to register_gdbarch_data.
2034 (init_regcache_descr, init_legacy_regcache_descr): Use
2035 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2037 * remote.c (free_remote_state): Delete function.
2038 (_initialize_remote): Update register_gdbarch_data.
2039 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2040 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2042 2003-08-04 Andrew Cagney <cagney@redhat.com>
2044 * reggroups.c (struct reggroup_el): Define.
2045 (struct reggroups): Delete field "nr_group". Replace array
2046 "group" with a "first" to "last" linked list.
2047 (reggroups_init): Update. Allocate using gdbarch's obstack.
2048 (reggroups_free): Delete function.
2049 (add_group): Update. Add "el" parameter.
2050 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2051 (default_groups): Update.
2052 (reggroup_next): Replace reggroups.
2053 (reggroups_dump): Update.
2054 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2055 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2056 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2058 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2060 * Makefile.in (tui-interp.o): Update dependencies.
2062 2003-08-04 David Carlton <carlton@kealia.com>
2064 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2065 to internal_error call.
2066 * source.c (forward_search_command): Add "%s" format argument.
2067 (reverse_search_command): Ditto.
2068 * top.c (quit_confirm): Ditto.
2069 * cli/cli-setshow.c (do_setshow_command): Ditto.
2070 * cp-valprint.c (cp_print_class_method): Replace
2071 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2072 (cp_print_class_member): Ditto.
2073 * event-top.c (command_line_handler): Ditto.
2074 * linux-proc.c (linux_info_proc_cmd): Ditto.
2075 * p-typeprint.c (pascal_type_print_base): Ditto.
2076 * p-valprint.c (pascal_object_print_class_method): Ditto.
2077 (pascal_object_print_class_member): Ditto.
2078 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2079 * remote.c (remote_cisco_section_offsets): Ditto.
2080 * top.c (command_line_input): Ditto.
2081 * utils.c (vwarning,error_stream,quit): Ditto.
2082 * valprint.c (print_floating,print_binary_chars)
2083 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2085 2003-08-04 Andrew Cagney <cagney@redhat.com>
2087 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2089 2003-08-02 Andrew Cagney <cagney@redhat.com>
2091 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2092 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2095 2003-08-02 Andrew Cagney <cagney@redhat.com>
2097 * Makefile.in: Update all dependencies and definitions.
2099 2003-08-02 Adam Fedor <fedor@gnu.org>
2101 * linespec.c (is_objc_method_format): New function
2102 (decode_line_1, locate_first_half): Use it.
2105 2003-08-01 Andrew Cagney <cagney@redhat.com>
2107 * NEWS: Mention that m32r is multi-arch.
2108 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2109 * configure.tgt: Recognize m32r-*-*.
2110 * config/m32r/tm-m32r.h: Delete file.
2111 * config/m32r/m32r.mt: New file.
2112 * m32r-rom.c (m32r_upload_command): Use hostent only when
2113 gethostname succeeds, in order to avoid a compilation
2115 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2118 2003-08-01 Michael Snyder <msnyder@redhat.com>
2120 * sh-tdep.c (sh_frame_align): New gdbarch method.
2121 (sh_gdbarch_init): Set up frame_align method.
2123 2003-07-31 Michael Snyder <msnyder@redhat.com>
2125 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2126 which is already covered by the new frames infrastructure.
2128 2003-07-31 Andrew Cagney <cagney@redhat.com>
2130 * user-regs.c (struct user_reg): Add "next" link.
2131 (struct user_regs): Replace "user" with "first" and "last" links.
2132 (append_user_reg): Add pre-allocated "reg" parameter.
2133 (builtin_user_regs): Provide initial value for "last".
2134 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2135 (user_regs_init): Allocate memory from the gdbarch obstack.
2136 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2137 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2139 (usernum_to_user_reg): New function.
2140 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2141 (value_of_user_reg): Use usernum_to_user_reg.
2142 (user_regs_free): Delete function.
2143 (_initialize_user_regs): Update register_gdbarch_data call.
2145 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2147 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2149 2003-07-30 Michael Snyder <msnyder@redhat.com>
2151 * value.h (value_being_returned): Add a struct_addr argument.
2152 * infcall.c (call_function_by_hand): Pass struct_addr to
2153 value_being_returned.
2154 * infcmd.c (print_return_value): Pass zero as struct_addr.
2155 * values.c (value_being_returned): If struct_addr is passed,
2156 use it instead of trying to recover it from the inferior.
2158 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2160 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2161 the prologue analyzer won't need to attempt to extract the pc
2162 value from the woefully incomplete dummy frame.
2163 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2164 possible. Disable code which modifies the frame.
2166 2003-07-28 Andrew Cagney <cagney@redhat.com>
2168 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2170 (annotate_breakpoints_table, annotate_record): Ditto.
2171 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2172 (annotate_field_name_end, annotate_field_value): Ditto.
2173 (annotate_field_end, annotate_frame_source_begin): Ditto.
2174 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2175 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2176 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2177 (annotate_frame_address_end, annotate_frame_address): Ditto.
2178 (annotate_frame_args, annotate_frame_end): Ditto.
2179 (annotate_frame_where, annotate_arg_begin): Ditto.
2180 (annotate_arg_name_end, annotate_arg_value): Ditto.
2181 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2182 (annotate_function_call, annotate_signal_name): Ditto.
2183 (annotate_signal_string, annotate_signal_name_end): Ditto.
2184 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2185 (annotate_value_begin, annotate_value_history_value): Ditto.
2186 (annotate_value_history_end, annotate_value_end): Ditto.
2187 (annotate_display_begin, annotate_display_number_end): Ditto.
2188 (annotate_display_format, annotate_display_expression): Ditto.
2189 (annotate_display_expression_end, annotate_display_value): Ditto.
2190 (annotate_display_end, annotate_array_section_begin): Ditto.
2191 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2192 (annotate_elt, annotate_array_section_end): Ditto.
2194 2003-07-28 Andrew Cagney <cagney@redhat.com>
2196 * regcache.c (struct regcache_descr): Update comments on
2198 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2199 sizeof_raw_register_valid_p.
2200 (init_regcache_descr): Set nr_raw_registers and
2201 sizeof_raw_register_valid_p before calling
2202 init_legacy_regcache_descr.
2204 2003-07-28 Andrew Cagney <cagney@redhat.com>
2206 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2209 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2211 * thread.c (info_threads_command): Use get_selected_frame ().
2212 Check that there is at least one non-sentinel frame.
2214 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2216 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2217 (m68hc11_pop_frame): Remove.
2218 (m68hc11_frame_saved_pc): Remove.
2219 (m68hc11_frame_chain): Remove.
2220 (m68hc11_frame_init_saved_regs): Remove.
2221 (m68hc11_init_extra_frame_info): Remove.
2222 (m68hc11_store_struct_return): Remove.
2223 (m68hc11_saved_pc_after_call): Remove.
2225 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2227 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2228 frame unwind information.
2229 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2230 and adapted for frame unwinding.
2231 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2232 (m68hc11_unwind_pc): New function.
2233 (m68hc11_frame_unwind_cache): New function to analyze frames.
2234 (m68hc11_frame_this_id): New function to create new frame struct.
2235 (m68hc11_frame_prev_register): New function to unwind a register from
2237 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2238 (m68hc11_frame_p): New function for the above.
2239 (m68hc11_frame_base_address): New function to return fp of frame.
2240 (m68hc11_frame_args_address): Update for frame.
2241 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2242 (m68hc11_unwind_sp): New function.
2243 (m68hc11_unwind_dummy_id): New function.
2244 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2247 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2249 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2250 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2251 when we are beyond the current pc.
2253 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2255 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2256 from m68hc11_push_arguments.
2257 (m68hc11_push_arguments): Remove.
2258 (m68hc11_push_return_address): Remove.
2259 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2260 handlers; remove deprecated_extra_stack_alignment_needed.
2262 2003-07-27 Andrew Cagney <cagney@redhat.com>
2264 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2265 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2266 REAL_PC and not the pointer.
2267 * hppa-hpux-tdep.c: Include frame.h
2269 2003-07-27 Andrew Cagney <cagney@redhat.com>
2271 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2272 GDB_MULTI_ACH_PARTIAL.
2274 2003-07-27 Andrew Cagney <cagney@redhat.com>
2276 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2277 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2278 operator at start and not end of line.
2279 (decode_prologue): Ditto.
2280 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2281 frame_unwind_register_unsigned instead of
2282 frame_unwind_unsigned_register.
2283 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2285 (m32r_push_dummy_call): Use register_size instead of
2287 (m32r_frame_sniffer): Replace m32r_frame_p.
2288 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2289 * m32r-rom.c (report_transfer_performance): Delete extern
2291 (m32r_load, m32r_upload_command): Use print_transfer_performance
2292 instead of report_transfer_performance.
2293 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2294 / add_show_from_set.
2296 2003-07-26 Andrew Cagney <cagney@redhat.com>
2298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2299 store_return_value and extract_struct_value_address.
2301 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2304 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2305 NULL, default to the section containing PC.
2307 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2309 * NEWS: Mention "regs" deprecated for m68hc11 too.
2311 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2312 (m68hc11_print_register): New function to print out one register.
2313 (m68hc11_print_registers_info): New function to print registers.
2314 (show_regs): Deprecate and use the above.
2315 (m68hc11_gdbarch_init): Install the print_registers_info.
2317 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2319 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2320 that we have a SIGTRAP before returning non-zero.
2322 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2323 Elena Zannoni <ezannoni@redhat.com>
2325 * linespec.c (decode_line_2): Avoid crash if
2326 find_function_start_sal() returns empty record.
2328 2003-07-23 Andreas Schwab <schwab@suse.de>
2330 * ia64-tdep.c (ia64_print_insn): New function.
2331 (ia64_gdbarch_init): Set print_insn to it.
2332 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2333 deprecated_tm_print_insn_info.
2335 2003-07-22 Michael Snyder <msnyder@redhat.com>
2337 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2338 handle 8-bit returns (long long).
2339 (h8300h_extract_return_value): Ditto.
2340 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2342 2003-07-22 Andrew Cagney <cagney@redhat.com>
2344 * gdbarch.c Include "gdb_obstack.h".
2345 (struct gdbarch): Add an "obstack".
2346 (alloc_gdbarch_data): Allocate the gdbarch data using
2347 GDBARCH_OBSTACK_CALLOC.
2348 (free_gdbarch_data): Delete function.
2349 (gdbarch_obstack_zalloc): New function.
2350 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2351 Assert that the architecture is not initialized.
2352 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2353 vector from the obstack.
2354 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2355 architecture obstack.
2356 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2357 (set_gdbarch_data): Assert that the data is not initialized.
2358 (struct gdbarch_data): Delete member "free".
2359 (register_gdbarch_data): Do not initialize "free".
2360 * gdbarch.h, gdbarch.c: Re-generate.
2362 2003-07-22 Andrew Cagney <cagney@redhat.com>
2364 * configure.in (build_warnings): Add -Wformat-nonliteral.
2365 * configure: Re-generate.
2367 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2369 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2371 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2373 * findvar.c (read_var_value): Remove case for thread local storage
2374 variables. It is now entirely handled by the dwarf2 location
2376 * printcmd.c (address_info): Ditto.
2377 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2379 (struct symbol): Remove objfile field, which was used by
2380 LOC_THREAD_LOCAL_STATIC only.
2381 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2382 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2383 usage of objfile pointer.
2384 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2385 thread local variables.
2386 Add include of objfiles.h.
2387 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2389 * Makefile.in (dwarf2loc.o): Update dependencies.
2391 2003-07-22 Andrew Cagney <cagney@redhat.com>
2393 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2395 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2396 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2397 (struct value): Add opaque declaration.
2398 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2400 2003-07-21 Andrew Cagney <cagney@redhat.com>
2402 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2403 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2405 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2407 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2408 regcache_cooked_read_unsigned instead of read_register.
2409 (m68hc11_saved_pc_after_call): Likewise.
2410 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2411 instead of write_register.
2412 (m68hc11_register_type): New function.
2413 (m68hc11_register_virtual_type): Remove.
2414 (m68hc11_store_return_value): Convert to use the regcache.
2415 (m68hc11_extract_struct_value_address): Likewise.
2416 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2417 m68hc11_register_type; undeprecate store_return_value and
2418 extract_struct_value_address.
2420 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2422 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2423 and translate to use regcache.
2424 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2426 2003-07-18 Andrew Cagney <cagney@redhat.com>
2428 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2429 * gdbarch.h, gdbarch.c: Re-generate.
2430 * i386-tdep.c (i386_gdbarch_init): Do not set
2431 DWARF2_BUILD_FRAME_INFO.
2432 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2434 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2435 DWARF2_BUILD_FRAME_INFO.
2437 2003-07-18 Andrew Cagney <cagney@redhat.com>
2439 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2440 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2442 2003-07-18 Andrew Cagney <cagney@redhat.com>
2444 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2445 frame_unwind_address_in_block, instead of frame_pc_unwind.
2446 (dwarf2_frame_cache): Ditto.
2448 2003-07-18 Andrew Cagney <cagney@redhat.com>
2450 * user-regs.h (struct gdbarch): Declare opaque.
2451 * ui-out.h (struct ui_file): Declare opaque.
2452 * dwarf2-frame.h (struct frame_info): Declare opaque.
2454 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2456 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2458 (procfs_meminfo): Change strerror to safe_strerror.
2459 (procfs_can_run): Remove K&R badness.
2461 2003-07-17 Michael Snyder <msnyder@redhat.com>
2463 * remote-sim.c: Comment typo fix.
2465 2003-07-17 Andrew Cagney <cagney@redhat.com>
2467 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2469 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2470 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2471 GDB_MULTI_ARCH_PARTIAL.
2473 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2475 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2476 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2477 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2479 2003-07-16 Theodore A. Roth <troth@openavr.org>
2481 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2483 (avr_frame_unwind_cache): Don't unwind FP for main.
2485 Save the computed prev_sp.
2486 (avr_saved_regs_unwinder): Remove function.
2487 (avr_frame_prev_register): Use PC unwind logic from
2488 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2490 2003-07-16 Andrew Cagney <cagney@redhat.com>
2492 * frame-base.h (frame_base_p_ftype): Delete definition.
2493 (frame_base_append_predicate): Delete declaration.
2494 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2495 (frame_unwind_append_predicate): Delete declaration.
2496 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2497 (append_predicate): Delete parameter "p".
2498 (frame_unwind_append_predicate): Delete function.
2499 (frame_unwind_append_sniffer): Update call to append_predicate.
2500 (frame_unwind_free): Delete function.
2501 (_initialize_frame_unwind): Pass NULL as "free" to
2502 register_gdbarch_data.
2503 (frame_unwind_init): Append the dummy_frame_sniffer.
2504 (frame_unwind_find_by_frame): Simplify.
2505 * frame-base.c (struct frame_base_table): Delete field "p".
2506 (append_predicate): Delete parameter "p".
2507 (frame_base_append_predicate): Delete function.
2508 (frame_base_append_sniffer): Update call to append_predicate.
2509 (frame_base_free): Delete function.
2510 (frame_base_find_by_frame): Simplify.
2511 (_initialize_frame_base): Pass NULL as "free" to
2512 register_gdbarch_data.
2513 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2514 (x86_64_sigtramp_frame_sniffer): Replace
2515 "x86_64_sigtramp_frame_p".
2516 (x86_64_init_abi): Set the frame unwind sniffers.
2517 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2518 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2519 (m68k_gdbarch_init): Set the frame unwind sniffers.
2520 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2521 "i386_sigtramp_frame_p".
2522 (i386_frame_sniffer): Replace "i386_frame_p".
2523 (i386_gdbarch_init): Set the frame unwind sniffers.
2524 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2525 (avr_gdbarch_init): Set the frame unwind sniffers.
2526 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2527 "alpha_sigtramp_frame_p"
2528 (alpha_heuristic_frame_sniffer): Replace
2529 "alpha_heuristic_frame_p".
2530 (alpha_gdbarch_init): Set the frame unwind sniffers.
2531 (alpha_dwarf2_init_abi): Ditto.
2532 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2533 "alpha_debug_frame_p".
2534 (alpha_mdebug_frame_base_sniffer): Replace
2535 "alpha_mdebug_frame_base_p".
2536 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2537 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2538 (d10v_gdbarch_init): Set the frame unwind sniffer.
2539 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2540 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2541 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2542 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2543 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2544 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2546 2003-07-16 Michael Snyder <msnyder@redhat.com>
2548 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2549 should go thru sh_dsp_register_sim_regno, else the dsp regs
2550 will not get the right values.
2552 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2554 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2555 deprecated_store_floating by call to store_typed_floating.
2556 (sh_sh4_register_convert_to_raw): Substitute call to
2557 deprecated_extract_floating by call to extract_typed_floating.
2559 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2561 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2563 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2565 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2566 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2567 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2569 (do_pseudo_register): Remove.
2570 (sh_push_dummy_code): New function.
2571 (sh64_store_struct_return): Rename from sh_store_struct_return.
2572 Only called for sh64 now.
2573 (sh_extract_struct_value_address): Regcache'ify.
2574 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2575 and accomodate new tasks.
2576 (sh64_push_return_address): Rename from sh_push_return_address.
2577 Only called for sh64 now.
2578 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2580 (sh3e_sh4_extract_return_value): Regcache'ify.
2581 (sh_default_store_return_value): Ditto.
2582 (sh3e_sh4_store_return_value): Ditto.
2583 (sh_default_register_byte): Remove.
2584 (sh_sh4_register_byte): Remove.
2585 (sh_default_register_raw_size): Remove.
2586 (sh_sh4_register_raw_size): Remove.
2587 (sh_register_virtual_size): Remove.
2588 (sh_sh3e_register_virtual_type): Remove.
2589 (sh_sh3e_register_type): New function.
2590 (sh_sh4_register_virtual_type): Remove.
2591 (sh_sh4_register_type): New function.
2592 (sh_default_register_virtual_type): Remove.
2593 (sh_default_register_type): New function.
2594 (do_fv_register_info): Add parameters to accomodate call from
2595 sh_print_registers_info.
2596 (do_dr_register_info): Ditto.
2597 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2598 Add parameters to accomodate call from sh_print_registers_info.
2599 (sh_do_fp_register): Ditto.
2600 (sh64_do_pseudo_register): Call do_dr_register_info,
2601 do_fv_register_info and sh_do_fp_register with default parameters.
2602 (sh_do_register): Add parameters to accomodate call from
2603 sh_print_registers_info.
2604 (sh_print_register): Ditto.
2605 (sh_print_registers_info): Rename from sh_do_registers_info.
2606 Add parameters to be used as gdbarch_print_registers_info
2607 implementation. Accomodate removed do_pseudo_register function
2609 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2610 function pointer. Call sh_print_register with default parameters.
2611 (sh64_do_registers_info): Call sh_print_registers_info instead of
2612 sh_do_registers_info.
2613 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2614 detection of deprecated vs. non-deprecated functionality.
2615 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2616 function pointer assignments by direct function calls.
2618 2003-07-15 Andrew Cagney <cagney@redhat.com>
2620 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2621 (frame_register_unwind, create_new_frame): Ditto.
2622 (legacy_get_prev_frame, get_frame_type): Ditto.
2623 (get_frame_base_address): Use frame_base_find_by_frame.
2624 (get_frame_locals_address): Use frame_base_find_by_frame.
2625 (get_frame_args_address): Use frame_base_find_by_frame.
2626 * frame-base.h (frame_base_sniffer_ftype): Declare.
2627 (frame_base_append_sniffer): Declare.
2628 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2629 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2630 (frame_base_append_sniffer): New function.
2631 (frame_base_append_predicate): Add a NULL sniffer.
2632 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2633 (struct frame_base_table): Add "sniffer".
2634 (frame_base_free): Free the "sniffer" table.
2635 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2636 (frame_unwind_append_sniffer): Declare.
2637 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2638 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2639 (struct frame_unwind_table): Add "sniffer", delete "middle".
2640 (append_predicate): Add "sniffer" parameter, append the sniffer.
2641 (frame_unwind_init): Update append_predicate call.
2642 (frame_unwind_append_sniffer): New function.
2643 (frame_unwind_append_predicate): Update append_predicate call.
2644 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2646 2003-07-15 Andrew Cagney <cagney@redhat.com>
2648 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2649 before code inhibiting repeated unwind attempts. Add to
2650 commentary on that test's problems.
2651 * blockframe.c (inside_main_func): Look for "main" in the minimal
2653 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2656 2003-07-15 Andrew Cagney <cagney@redhat.com>
2658 * complaints.c (struct explanation): Define.
2659 (struct complaints): Change type of "explanation" to "struct
2661 (symfile_explanations): Convert to a "struct explanation" table.
2662 (vcomplaint): Update.
2664 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2666 * x86-64-linux-nat.c (regmap): Removed.
2667 (supply_gregset, fill_gregset): Call
2668 x86_64_linux_(fill,supply)_gregset functions.
2669 * x86-64-linux-tdep.c (USER_*): New defines.
2670 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2671 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2673 (fetch_core_registers): Ditto.
2674 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2675 * x86-64-linux-tdep.h: New file.
2676 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2678 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2680 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2682 * x86-64-tdep.c (x86_64_store_return_value): Use
2683 regcache_cooked_write_part instead of regcache_cooked_write.
2685 * configure.host: Add x86_64-*-freebsd*.
2686 * configure.tgt: Add x86_64-*-freebsd*.
2687 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2688 * amd64fbsd-nat.c: New file.
2689 * amd64fbsd-tdep.c: New file.
2690 * config/i386/nm-fbsd64.h: New file.
2691 * config/i386/fbsd64.mh: New file.
2692 * config/i386/fbsd64.mt: New file.
2694 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2696 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2697 `sc_regs_offset' and `sc_fpregs_offset'.
2698 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2699 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2700 (alpha_sigtramp_register_address): Rewrite to use new members of
2701 `struct gdbarch_tdep'.
2702 (alpha_gdbarch_init): Initialize new members of struct
2704 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2705 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2706 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2707 (alphafbsd_pc_in_sigtramp): Implement.
2708 (alphafbsd_sigtramp_offset): New function.
2709 (alphafbsd_sigcontext_addr): New function.
2710 (alphafbsd_init_abi): Initialize signal trampoline related members
2711 of `struct gdbarch_tdep'.
2712 (_initialize_alphafbsd_tdep): Add prototype.
2714 2003-07-11 Theodore A. Roth <troth@openavr.org>
2716 * Makefile.in (install-only): Quote sed expression when generating
2719 2003-07-11 Richard Henderson <rth@redhat.com>
2721 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2722 * dwarf2-frame.c: Include complaints.h.
2723 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2724 variable initialization; return NULL on error.
2725 (decode_frame_entry): New.
2727 2003-07-11 Andrew Cagney <cagney@redhat.com>
2729 * frame.h (frame_address_in_block): Delete declaration.
2730 * blockframe.c (frame_address_in_block): Delete function.
2731 (get_frame_block): Use get_frame_address_in_block.
2732 (block_innermost_frame): Ditto.
2733 * stack.c (print_frame, backtrace_command_1): Ditto.
2735 * frame.h (get_frame_address_in_block): Declare.
2736 (frame_unwind_address_in_block): Declare.
2737 * frame.c (frame_unwind_address_in_block): New function.
2738 (get_frame_address_in_block): New function.
2740 2003-07-10 Andrew Cagney <cagney@redhat.com>
2742 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2743 pre-default. Note: re-generate has no effect.
2745 2003-07-10 Andrew Cagney <cagney@redhat.com>
2747 * gdbarch.sh: When a variable, but not a function, compare against
2748 0. Fix problem in previous patch.
2749 * gdbarch.c: Re-generate.
2751 2003-07-10 Andrew Cagney <cagney@redhat.com>
2753 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2754 functions against NULL, not 0.
2755 * gdbarch.c: Re-generate.
2757 2003-07-10 Fred Fish <fnf@ninemoons.com>
2759 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2760 null string instead of a null pointer.
2761 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2763 2003-07-09 Michael Snyder <msnyder@redhat.com>
2765 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2767 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2769 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2770 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2771 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2772 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2773 * x86-64-tdep.c: ... from here.
2775 2003-07-09 Andreas Schwab <schwab@suse.de>
2777 * m68k-tdep.h (enum struct_return): Define.
2778 (struct gdbarch_tdep): Add struct_return.
2779 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2780 bytes are padded to the right, not to the left. Pass struct value
2781 address in register %a1, not on stack.
2782 (m68k_use_struct_convention): New function.
2783 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2784 struct_return in tdep to pcc_struct_return.
2785 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2788 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2790 * somread.c (som_symfile_offsets): Fix compilation error.
2792 2003-07-09 Andrew Cagney <cagney@redhat.com>
2794 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2795 Add comments about the checks.
2797 2003-07-08 Andrew Cagney <cagney@redhat.com>
2799 * Makefile.in: Make dependency section headers consistent.
2800 (config_h): Move to $BUILD headers section.
2801 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2802 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2803 (ada-exp.tab.c): Move to YACC/LEX section.
2804 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2805 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2807 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2809 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2810 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2811 of strerror with safe_strerror, use ISO C function definitions,
2812 and replace instances of sprintf with snprintf.
2814 2003-07-07 Andrew Cagney <cagney@redhat.com>
2816 * frame.c (get_prev_frame): Enable check for identical frames.
2817 Update comments. Update error messages.
2819 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2821 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2823 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2825 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2826 sort_symtab_syms, no longer necessary.
2828 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2830 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2832 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2834 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2835 (mips_register_byte): Likewise.
2837 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2839 * Makefile.in (sparc_tdep_h): New.
2840 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2841 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2842 * sparc-linux-nat.c: Include "sparc-tdep.h".
2843 * sparc-nat.c: Likewise.
2844 * sparc-tdep.c: Likewise.
2845 * sparc64nbsd-nat.c: Likewise.
2846 * sparcnbsd-nat.c: Likewise.
2847 * sparcnbsd-tdep.c: Likewise.
2848 * sparc-tdep.h: New file.
2849 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2850 and sparc_npc_regnum.
2852 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2854 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2855 (mips_linux_cannot_store_register): List supported instead of
2856 unsupported registers.
2858 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2860 * disasm.c (dump_insns): Separate instructions from addresses.
2862 2003-07-07 Andreas Schwab <schwab@suse.de>
2864 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2866 * m68k-tdep.c (NUM_FREGS): Delete.
2867 (SIG_PC_FP_OFFSET): Delete.
2868 (TARGET_M68K): Delete.
2869 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2870 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2871 P_MOVEL_SP, P_MOVEML_SP): Define.
2872 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2874 (m68k_register_raw_size): Delete.
2875 (m68k_register_virtual_size): Delete.
2876 (m68k_register_type): Renamed from m68k_register_virtual_type and
2877 add gdbarch argument.
2878 (m68k_store_struct_return): Delete.
2879 (m68k_deprecated_extract_return_value): Delete.
2880 (m68k_deprecated_extract_struct_value_address): Delete.
2881 (m68k_frame_chain): Delete.
2882 (m68k_frame_saved_pc): Delete.
2883 (m68k_fix_call_dummy): Delete.
2884 (m68k_push_dummy_frame): Delete.
2885 (m68k_pop_frame): Delete.
2886 (m68k_extract_return_value): New function.
2887 (m68k_store_return_value): Rewrite using regcache.
2888 (m68k_extract_struct_value_address): Rewrite using regcache.
2889 (m68k_push_dummy_call): New function.
2890 (struct m68k_frame_cache): Define.
2891 (m68k_alloc_frame_cache): New function.
2892 (m68k_analyze_frame_setup): New function.
2893 (m68k_analyze_register_saves): New function.
2894 (m68k_analyze_prologue): New function.
2895 (m68k_skip_prologue): Rewrite using above functions.
2896 (m68k_unwind_pc): New function.
2897 (m68k_frame_cache): New function.
2898 (m68k_frame_this_id): New function.
2899 (m68k_frame_prev_register): New function.
2900 (m68k_frame_unwind): New variable.
2901 (m68k_frame_p): New function.
2902 (m68k_sigtramp_frame_cache): New function.
2903 (m68k_sigtramp_frame_this_id): New function.
2904 (m68k_sigtramp_frame_prev_register): New function.
2905 (m68k_sigtramp_frame_unwind): New variable.
2906 (m68k_sigtramp_frame_p): New function.
2907 (m68k_frame_base_address): New function.
2908 (m68k_frame_base): New function.
2909 (m68k_unwind_dummy_id): New function.
2910 (fill_gregset): Use regcache_collect.
2911 (fill_fpregset): Likewise.
2912 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2914 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2915 deprecated_init_frame_pc, deprecated_store_struct_return,
2916 deprecated_extract_return_value, deprecated_store_return_value,
2917 deprecated_frame_chain, deprecated_frame_saved_pc,
2918 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2919 deprecated_register_virtual_size,
2920 deprecated_max_register_raw_size,
2921 deprecated_max_register_virtual_size,
2922 deprecated_register_virtual_type, deprecated_register_size,
2923 deprecated_register_byte, deprecated_register_bytes,
2924 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2925 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2926 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2927 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2928 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2929 deprecated_push_dummy_frame, deprecated_pop_frame,
2930 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2931 only if SYSCALL_TRAP is defined. Set extract_return_value,
2932 store_return_value, extract_struct_value_address, register_type,
2933 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2935 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2936 M68K_MAX_REGISTER_SIZE): Define.
2937 (struct m68k_sigtramp_info): Define.
2938 (struct gdbarch_tdep): Add get_sigtramp_info.
2939 * m68klinux-nat.c (fetch_register): Use register_size instead of
2940 REGISTER_RAW_SIZE. Don't put assignment in if.
2941 (store_register): Likewise.
2942 (fetch_inferior_registers): Likewise.
2943 (store_inferior_registers): Likewise.
2944 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2945 (m68k_linux_frame_saved_pc): Delete.
2946 (m68k_linux_sigcontext_reg_offset,
2947 m68k_linux_ucontext_reg_offset): Define.
2948 (m68k_linux_get_sigtramp_info): New function.
2949 (m68k_linux_extract_return_value): Rewrite using regcache.
2950 (m68k_linux_store_return_value): Likewise.
2951 (m68k_linux_extract_struct_value_address): Likewise.
2952 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2953 Don't set deprecated_frame_saved_pc,
2954 deprecated_extract_return_value, deprecated_store_return_value,
2955 deprecated_extract_struct_value_address. Set
2956 extract_return_value, store_return_value,
2957 extract_struct_value_address.
2959 2003-07-07 Andrew Cagney <cagney@redhat.com>
2961 * expprint.c: Include "user-regs.h" instead of "frame.h".
2962 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2963 frame_map_regnum_to_name.
2964 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2965 (frame_map_name_to_regnum): Simplify, call
2966 user_reg_map_name_to_regnum.
2967 (frame_map_regnum_to_name): Simplify, call
2968 user_reg_map_regnum_to_name.
2969 (frame_register_unwind): Update.
2970 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2971 (_initialize_frame_reg): Call user_reg_add_builtin.
2972 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2973 (value_of_register): Use value_of_user_reg.
2974 * eval.c (evaluate_subexp_standard): Update.
2975 * parse.c (write_dollar_variable): Update.
2976 * d10v-tdep.c (d10v_print_registers_info): Update.
2977 * infcmd.c (registers_info): Update.
2978 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2979 (builtin_regs_h): Delete macro.
2980 (user_regs_h): Define.
2981 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2982 (builtin-regs.o): Delete target.
2983 (user-regs.o): Specify dependencies.
2984 (expprint.o): Update dependencies.
2985 (findvar.o): Update dependencies.
2986 (frame.o): Update dependencies.
2987 (std-regs.o): Update dependencies.
2989 2003-07-06 Christopher Faylor <cgf@redhat.com>
2991 * win32-nat.c (solib_symbols_add): Use one variable for all section
2992 address stuff. Pass variable rather than address of variable to
2993 safe_symbol_file_add.
2995 2003-07-06 Andreas Schwab <schwab@suse.de>
2997 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2999 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3001 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3003 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3005 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3007 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3009 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3010 * config/i386/nto.mh: New file.
3011 * config/i386/nm-nto.h: New file.
3012 * configure.host: Add i[3456]86-*-nto*.
3014 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3016 * remote-vx.c (vx_add_symbols): Fix compilation error.
3018 2003-07-03 Andrew Cagney <cagney@redhat.com>
3020 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3021 * gdbarch.h, gdbarch.c: Re-generate.
3022 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3023 (legacy_register_name): Declare.
3024 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3025 (REGISTER_NAME): Define.
3026 * sparc-tdep.c (legacy_register_name): New function.
3027 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3028 (REGISTER_NAME): Define.
3029 (hppa64_register_name): Declare.
3030 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3031 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3032 (hppa64_register_name): New function.
3033 (hppa_register_name): New function.
3034 * arch-utils.c (legacy_register_name): Delete.
3035 * arch-utils.h (legacy_register_name): Delete.
3037 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3039 * cli/cli-interp.c (cli_interpreter_resume): Update the
3040 cli_uiout's stream to gdb_stdout.
3042 2003-07-03 Andrew Cagney <cagney@redhat.com>
3044 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3046 * gdbarch.h, gdbarch.c: Re-generate.
3047 * regcache.c (init_regcache_descr): Use legacy code when either
3048 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3050 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3052 * NEWS: Move "set logging" entry into GDB 6.0 section.
3054 2003-07-02 Jim Blandy <jimb@redhat.com>
3056 * s390-tdep.c (struct frame_extra_info): new member:
3057 'stack_bought_valid'.
3058 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3059 initialize fextra_info->stack_bought.
3060 (s390_frameless_function_invocation): Don't trust the value of
3061 fextra_info_ptr->stack_bought unless
3062 fextra_info->stack_bought_valid is set.
3064 New S390 prologue analyzer.
3065 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3066 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3067 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3068 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3069 compute_x_addr, s390_on_stack, s390_store,
3070 s390_get_signal_frame_info): New functions.
3071 (S390_NUM_SPILL_SLOTS): New macro.
3072 (s390_get_frame_info): Rewritten.
3073 (is_arg_reg): Deleted.
3075 Break out the decoding of S/390 instructions into separate
3076 functions, to make it more legible, and easier to check
3078 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3079 is_rx, is_rxe): New functions.
3080 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3081 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3082 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3083 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3084 enums for opcode values. (Is this an improvement?)
3086 2003-07-02 Andrew Cagney <cagney@redhat.com>
3088 * i386-tdep.c: Revert change committed as part of trad-frame code
3091 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3093 * breakpoint.c (insert_catchpoint): Make static.
3095 2003-07-02 Andreas Schwab <schwab@suse.de>
3097 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3098 former ia64_push_arguments and ia64_push_return_address, and use
3099 regcache functions instead of read/write_register.
3100 (ia64_gdbarch_init): Set push_dummy_call instead of
3101 deprecated_push_arguments and deprecated_push_return_address.
3103 2003-07-01 Andreas Jaeger <aj@suse.de>
3105 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3107 Set %rax only to number of SSE registers used.
3109 2003-07-01 Andrew Cagney <cagney@redhat.com>
3111 * trad-frame.h: Update comments, a -1 .addr is reserved.
3112 (trad_frame_value_p, trad_frame_addr_p): Declare.
3113 (trad_frame_reg_p): Declare.
3114 (trad_frame_set_value): Rename trad_frame_register_value.
3115 (trad_frame_set_unknown): Declare.
3116 * trad-frame.c (trad_frame_realreg_p): New function.
3117 (trad_frame_addr_p, trad_frame_value_p): New function.
3118 (trad_frame_set_unknown): New function.
3119 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3120 (trad_frame_prev_register): Use trad_frame_realreg_p,
3121 trad_frame_addr_p and trad_frame_value_p.
3122 (trad_frame_set_value): Rename trad_frame_register_value.
3123 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3124 and trad_frame_set_value.
3126 2003-06-30 Jim Blandy <jimb@redhat.com>
3128 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3129 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3130 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3131 for 16 registers, and then 32 more bytes.
3132 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3134 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3135 Move up in the file, since it's now used by is_simple_arg.
3136 (is_simple_arg): Don't assume registers are four bytes long.
3137 Exclude all double arguments. Extended floats are not simple
3139 (is_power_of_two): New function.
3140 (pass_by_copy_ref): Call is_power_of_two, and check that the
3141 length fits in a register, rather than listing all the acceptable
3142 sizes. Extended floats are not passed by reference.
3143 (s390_push_arguments): Don't assume registers are four bytes long.
3144 Reserve an argument register to point to the buffer for structures
3145 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3146 S390_STACK_FRAME_OVERHEAD.
3148 2003-06-30 Andreas Schwab <schwab@suse.de>
3150 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3151 format error message.
3153 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3155 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3157 2003-06-30 David Carlton <carlton@kealia.com>
3159 Band-aid for PR c++/1245.
3160 * Makefile.in (cp-support.o): Depend on complaints_h.
3161 * cp-support.c: Include complaints.h. Add declaration for
3162 find_last_component.
3163 (cp_find_first_component): Separate code into
3164 cp_find_first_component_aux.
3165 (cp_find_first_component_aux): Call demangled_name_complaint.
3166 (demangled_name_complaint): New.
3168 2003-06-30 Andrew Cagney <cagney@redhat.com>
3170 * remote.c (remote_write_bytes): Explicitly compute and then use
3171 the payload size. Update comments to reflect. Fixes problem of
3172 GDB not sending small packets as found by Fred Fish.
3174 2003-06-30 Andrew Cagney <cagney@redhat.com>
3176 * remote.c (remote_async_wait): Fix -Wformat problem.
3178 2003-06-29 Andrew Cagney <cagney@redhat.com>
3180 * remote.c (remote_wait): Call error, and not warning, when the
3182 (remote_async_wait): Ditto.
3184 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3186 * sparc-tdep.c (sparc_y_regnum): Make external again.
3188 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3190 * cli/cli-logging.c (pop_output_files): Add void to function
3193 2003-06-29 Andrew Cagney <cagney@redhat.com>
3195 * frame.c (frame_register_unwind): Use unsigned char when dumping
3196 the buffer contents.
3198 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3200 * cli/cli-logging.c: New file.
3201 * cli-out.c (struct ui_out_data): Add original_stream.
3202 (cli_redirect): New function.
3203 (cli_ui_out_impl): Add cli_redirect.
3204 (cli_out_new): Initialize original_stream.
3205 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3206 (uo_redirect, ui_out_redirect): New.
3207 * ui-out.h (struct ui_out_impl): Add redirect member.
3208 (redirect_ftype): New.
3209 (ui_out_redirect): Add prototype.
3210 * Makefile.in: Add rules for cli-logging.c.
3211 * NEWS: Mention "set logging".
3213 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3215 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3217 2003-06-27 Andrew Cagney <cagney@redhat.com>
3219 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3220 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3221 * avr-tdep.c (avr_call_dummy_address): Delete function.
3222 (avr_gdbarch_init): Do not set call_dummy_address.
3224 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3226 * symfile.c (syms_from_objfile): Move variables to inner block.
3227 Move the checks for the non-mainline case a bit earlier to avoid
3228 doing some useless computations.
3230 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3232 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3234 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3236 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3239 2003-06-26 Michael Chastain <mec@shout.net>
3241 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3242 gdb/testsuite/gdb.c++/pr-1210.exp.
3244 2003-06-26 Andrew Cagney <cagney@redhat.com>
3246 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3247 altivec_expression.h and altivec_registers.h.
3249 2003-06-26 Andrew Cagney <cagney@redhat.com>
3251 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3252 info->mach when MIPS16. Patch suggested by Fred Fish.
3254 2003-06-26 Andrew Cagney <cagney@redhat.com>
3256 * utils.c (internal_vproblem): Print the problem to a reason
3257 buffer and then pass to query. Make the msg variable more local.
3259 2003-06-26 Andrew Cagney <cagney@redhat.com>
3261 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3262 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3263 * gdbarch.h, gdbarch.c: Re-generate.
3264 * frame-base.c (default_frame_args_address): Update. Use
3265 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3267 (default_frame_locals_address): Ditto for
3268 DEPRECATED_FRAME_LOCALS_ADDRESS.
3269 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3270 (vax_frame_num_args): Update.
3271 (vax_gdbarch_init): Update.
3272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3274 * mcore-tdep.c (mcore_gdbarch_init): Update.
3275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3276 * ia64-tdep.c (ia64_gdbarch_init): Update.
3277 * symtab.h (address_class): Update comments.
3278 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3279 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3280 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3281 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3282 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3283 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3284 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3285 * alpha-mdebug-tdep.c: Update.
3286 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3288 2003-06-26 Andreas Jaeger <aj@suse.de>
3290 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3291 of SSE registers so that varargs functions work. Rework handling
3292 of passing arguments on the stack.
3293 (x86_64_store_return_value): Return double and float values in SSE
3296 2003-06-24 Michael Chastain <mec@shout.net>
3298 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3299 the "constructor breakpoints ignored" bug.
3301 2003-06-25 David Carlton <carlton@kealia.com>
3303 * MAINTAINERS: Update e-mail address.
3305 2003-06-24 Jim Blandy <jimb@redhat.com>
3307 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3309 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3311 (ppc_linux_init_abi): Register it as the
3312 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3314 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3315 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3318 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3319 (ppc64_standard_linkage_target): Use it.
3321 2003-06-23 Andrew Cagney <cagney@redhat.com>
3323 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3324 for 0 "int0" and 4 "int32" sized registers.
3325 * gdbtypes.c (builtin_type_int0): Define.
3326 (build_gdbtypes): Initialize builtin_type_int0.
3327 * gdbtypes.h (builtin_type_int0): Declare.
3329 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3332 as characters are unsigned.
3334 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3337 * dwarfread.c (struct_type): Skip static fields without crashing.
3339 2003-06-22 Andrew Cagney <cagney@redhat.com>
3341 GDB 6.0 branch created.
3343 * PROBLEMS: Update. Empty.
3346 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3348 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3349 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3351 2003-06-22 Andrew Cagney <cagney@redhat.com>
3353 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3354 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3357 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3359 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3362 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3364 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3365 argument of val_print.
3366 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3367 to the address argument of baseclass_offset or target_read_memory.
3368 Do add it to the argument of cp_print_value_fields.
3370 2003-06-21 Andrew Cagney <cagney@redhat.com>
3372 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3373 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3374 instead of 0..NUM_REGS.
3375 (mips_register_reggroup_p): New function.
3376 (mips_pseudo_register_write): New function.
3377 (mips_pseudo_register_read): New function.
3378 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3379 based on the register's type.
3380 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3382 (mips_get_saved_register): Simplify. Assert that REGNO is a
3384 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3385 (mips_register_type): Replace mips_register_virtual_type. Map
3386 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3388 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3389 that the register is cooked / virtual.
3390 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3391 Only get the extra info when needed.
3392 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3393 (mips32_heuristic_proc_desc): Fetch the cooked register.
3394 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3395 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3396 (mips_print_register): Use gdbarch_register_type, instead of
3397 REGISTER_VIRTUAL_TYPE.
3398 (print_gp_register_row): Use gdbarch_register_type, instead of
3399 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3400 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3401 Print the pseudo / cooked registers.
3402 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3403 Print the pseudo / cooked registers.
3404 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3405 REG_NUM is pseudo / cooked.
3406 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3407 (mips_n32n64_xfer_return_value): Ditto.
3408 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3409 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3410 (mips_register_sim_regno): New function.
3411 (mips_gdbarch_init): Set deprecated_register_byte,
3412 register_group_p, pseudo_register_write, pseudo_register_read,
3413 register_sim_regno, and num_pseudo_regs. Set register_type,
3414 instead of register_virtual_type.
3415 * Makefile.in (mips-tdep.o): Update dependencies.
3416 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3417 REGISTER_VIRTUAL_TYPE.
3418 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3419 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3420 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3421 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3422 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3424 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3426 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3427 * cli/cli-cmds.c: Include "gdb_vfork.h".
3428 (shell_escape): Use vfork.
3430 2003-06-21 Andrew Cagney <cagney@redhat.com>
3432 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3433 32 bit floating-point register saves.
3435 * frame.h (deprecated_unwind_get_saved_register): Delete.
3436 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3437 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3438 and deprecated_get_next_frame_hack instead of
3439 deprecated_unwind_get_saved_register.
3441 * mips-tdep.c (mips_dump_tdep): Do not print
3442 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3444 * frame.c (get_frame_register): New function.
3445 (frame_unwind_register_signed): New function.
3446 (get_frame_register_signed): New function.
3447 (frame_unwind_register_unsigned): New function.
3448 (get_frame_register_unsigned): New function.
3449 * frame.h: Add comments on naming schema.
3450 (get_frame_register, frame_unwind_register_signed): Declare.
3451 (get_frame_register_signed, get_frame_register_signed): Declare.
3452 (frame_unwind_register_unsigned): Declare.
3453 (get_frame_register_unsigned): Declare.
3455 2003-06-20 Theodore A. Roth <troth@openavr.org>
3457 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3459 2003-06-20 Theodore A. Roth <troth@openavr.org>
3461 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3462 (avr_read_sp): Ditto.
3464 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3466 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3467 * config/arm/nm-linux.h: Likewise.
3468 * config/arm/tm-linux.h: Likewise.
3469 * config/ia64/nm-linux.h: Likewise.
3470 * config/ia64/tm-ia64.h: Likewise.
3471 * config/s390/tm-linux.h: Likewise.
3472 * config/s390/tm-s390.h: Likewise.
3473 * s390-nat.c: Likewise.
3474 * s390-tdep.c: Likewise.
3476 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3477 * config/ia64/linux.mt: Likewise.
3478 * config/m68k/linux.mh: Likewise.
3479 * config/mips/linux.mt: Likewise.
3480 * config/powerpc/linux.mh: Likewise.
3481 * config/sh/linux.mt: Likewise.
3483 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3485 * solib.c (solib_open): Change tests for whether to search
3486 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3489 2003-06-19 Theodore A. Roth <troth@openavr.org>
3491 * avr-tdep.c (avr_frame_address): Delete function.
3492 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3493 set_gdbarch_frame_args_address.
3495 2003-06-19 Andrew Cagney <cagney@redhat.com>
3497 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3498 (REGISTER_CONVERT_FROM_TYPE): Delete.
3499 (mips_register_convert_to_type): Delete declaration.
3500 (mips_register_convert_from_type): Delete declaration.
3501 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3504 2003-06-19 Michael Snyder <msnyder@redhat.com>
3506 * linux-nat.h: New file.
3507 * linux-nat.c: Include linux-nat.h.
3508 * lin-lwp.c: Include linux-nat.h.
3509 Move struct lwp_info def to linux-nat.h.
3510 * linux-proc.c: Include linux-nat.h.
3511 (linux_make_note_section): Iterate over lwps instead of threads.
3512 (linux_do_thread_registers): Use lwp instead of merged pid.
3513 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3514 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3515 Add dependency on linux_nat_h.
3517 2003-06-19 Theodore A. Roth <troth@openavr.org>
3519 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3521 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3523 * varobj.c (get_type, get_target_type): Use check_typedef.
3525 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3527 * breakpoint.c (insert_catchpoint): Call internal_error.
3529 2003-06-19 Theodore A. Roth <troth@openavr.org>
3531 * avr-tdep.c (avr_push_dummy_code): Delete function.
3532 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3534 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3536 * arch-utils.c (default_prepare_to_proceed): Remove.
3537 (generic_prepare_to_proceed): Remove.
3538 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3539 (generic_prepare_to_proceed): Remove prototype.
3540 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3541 * gdbarch.c: Regenerate.
3542 * gdbarch.h: Regenerate.
3543 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3544 * hppah-nat.c (hppa_switched_threads): Remove.
3545 * infrun.c (prepare_to_proceed): New static function, copied from
3546 generic_prepare_to_proceed. Remove select_it argument.
3547 (proceed): Call prepare_to_proceed.
3548 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3550 (ptrace_wait): Don't set the removed variables.
3551 (hppa_switched_threads): Remove.
3552 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3553 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3554 (lin_lwp_prepare_to_proceed): Remove prototype.
3555 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3556 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3558 2003-06-18 Theodore A. Roth <troth@openavr.org>
3560 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3562 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3563 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3564 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3565 (AVR_PROLOGUE_*): Enumerate prologue types.
3566 (struct frame_extra_info): Remove.
3567 (struct avr_unwind_cache): Define.
3568 (avr_write_sp): Delete function.
3569 (avr_read_fp): Ditto.
3570 (avr_init_extra_frame_info): Ditto.
3571 (avr_pop_frame): Ditto.
3572 (avr_frame_saved_pc): Ditto.
3573 (avr_saved_pc_after_call): Ditto.
3574 (avr_push_return_address): Ditto.
3575 (avr_frame_chain): Ditto.
3576 (avr_store_struct_return): Ditto.
3577 (avr_push_arguments): Ditto.
3578 (avr_scan_prologue): Update comments. Changed to set up the info for
3579 cache unwinding. Now returns end of prologue PC.
3580 (avr_skip_prologue): Better handling of functions lacking a prologue
3581 by using avr_scan_prologue.
3582 (avr_scan_arg_moves): New function.
3583 (avr_saved_regs_unwinder): Ditto.
3584 (avr_frame_unwind_cache): Ditto.
3585 (avr_unwind_pc): Ditto.
3586 (avr_frame_this_id): Ditto.
3587 (avr_frame_prev_register): Ditto.
3588 (avr_frame_p): Ditto.
3589 (avr_frame_base_address ): Ditto.
3590 (avr_unwind_dummy_id): Ditto.
3591 (avr_push_dummy_code): Ditto.
3592 (push_stack_item): Ditto.
3593 (pop_stack_item): Ditto.
3594 (avr_push_dummy_call): Ditto.
3595 (struct stack_item): Define.
3596 (avr_frame_unwind): Declare structure.
3597 (avr_frame_base): Ditto.
3598 (avr_gdbarch_init): Remove calls to
3599 set_gdbarch_deprecated_init_frame_pc,
3600 set_gdbarch_deprecated_target_read_fp,
3601 set_gdbarch_deprecated_dummy_write_sp,
3602 set_gdbarch_deprecated_fp_regnum,
3603 set_gdbarch_deprecated_push_arguments,
3604 set_gdbarch_deprecated_push_return_address,
3605 set_gdbarch_deprecated_pop_frame,
3606 set_gdbarch_deprecated_store_struct_return,
3607 set_gdbarch_deprecated_frame_init_saved_regs,
3608 set_gdbarch_deprecated_init_extra_frame_info,
3609 set_gdbarch_deprecated_frame_chain,
3610 set_gdbarch_deprecated_frame_saved_pc,
3611 set_gdbarch_deprecated_saved_pc_after_call.
3612 Add calls to set_gdbarch_push_dummy_call,
3613 set_gdbarch_push_dummy_code,
3614 frame_unwind_append_predicate,
3615 frame_base_set_default,
3616 set_gdbarch_unwind_dummy_id,
3617 set_gdbarch_unwind_pc.
3620 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3622 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3623 registers for H8/300S.
3624 (h8300_print_registers_info): Ditto.
3625 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3627 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3629 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3630 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3631 (lin_lwp_wait): Likewise. Update comments.
3632 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3633 (pull_pid_from_list, linux_record_stopped_pid): New.
3635 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3637 * ada-lang.c (scan_discrim_bound): Name first argument.
3638 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3639 declared by ALL_BLOCK_SYMBOLS.
3641 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3643 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3644 ("regcache.h"): Include it.
3645 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3647 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3649 * NEWS: Mention gdbserver detach change and "disconnect" command.
3650 * infcmd.c (disconnect_command): New function.
3651 (_initialize_infcmd): Add ``disconnect'' command.
3652 * remote.c (remote_async_detach): Delete.
3653 (remote_detach): Merge remote_async_detach.
3654 (remote_disconnect): New.
3655 (init_remote_ops): Set to_disconnect.
3656 (init_remote_cisco_ops): Likewise.
3657 (init_remote_async_ops): Likewise. Use remote_detach.
3658 * target.c (cleanup_target): Default to_disconnect.
3659 (update_current_target): Inherit to_disconnect.
3660 (target_disconnect, debug_to_disconnect): New functions.
3661 (setup_target_debug): Set to_disconnect.
3662 * target.h (struct target_ops): Add to_disconnect.
3663 (target_disconnect): Add prototype.
3665 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3667 * breakpoint.c (insert_catchpoint): New function.
3668 (insert_breakpoints): Use catch_exceptions to call
3669 insert_catchpoint. Disable catchpoints if they fail to insert.
3671 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3673 * symfile.c (reread_symbols): Clear sym_private.
3675 2003-06-17 Andrew Cagney <cagney@redhat.com>
3677 * trad-frame.h (struct frame_info): Add opaque declaration.
3678 * remote-fileio.h (struct cmd_list_element): Add opaque
3680 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3683 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3685 * remote.c (remote_prepare_to_store): Replace call to
3686 deprecated_read_register_bytes with multiple regcache_raw_read
3689 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3691 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3692 (nto_find_and_open_solib): Likewise.
3693 (nto_init_solib_absolute_prefix): Likewise.
3694 (_initialize_nto_tdep): Fix indentation.
3696 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3698 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3700 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3702 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3704 2003-06-17 Jim Blandy <jimb@redhat.com>
3706 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3708 2003-06-16 Theodore A. Roth <troth@openavr.org>
3710 * avr-tdep.c (avr_extract_return_value): New function.
3711 (avr_gdbarch_init): Set extract_return_value method.
3713 2003-06-16 Andrew Cagney <cagney@redhat.com>
3715 * frame.h (deprecated_get_next_frame_hack): Declare.
3716 * frame.c (legacy_saved_regs_prev_register): Only require
3717 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3718 there are always saved regs.
3719 (deprecated_generic_get_saved_register): Do not require
3720 DEPRECATED_FRAME_INIT_SAVED_REGS.
3721 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3722 use frame ID unwind instead.
3723 (deprecated_get_next_frame_hack): New function.
3725 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3727 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3728 (h8300_push_dummy_call): ...this function. Some minor optimization.
3729 (h8300_push_return_address): Remove.
3730 (h8300_gdbarch_init): Remove calls to
3731 set_gdbarch_deprecated_dummy_write_sp,
3732 set_gdbarch_deprecated_push_arguments and
3733 set_gdbarch_deprecated_push_return_address.
3734 Add call to set_gdbarch_push_dummy_call.
3736 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3738 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3739 (E_PSEUDO_EXR_REGNUM): Ditto.
3740 (h8300_is_argument_spill): Check for instructions moving argument
3741 registers into safe registers.
3742 (h8300_skip_prologue): Check for stm instruction to push registers
3743 used for register variables onto stack.
3744 (gdb_print_insn_h8300): Remove.
3745 (h8300_examine_prologue): Add a comment.
3746 (h8300_register_name): Take pseudo registers into account.
3747 (h8300s_register_name): Ditto.
3748 (h8300sx_register_name): Ditto.
3749 (h8300_print_register): Ditto.
3750 (h8300_print_registers_info): Define "nice" printing order.
3751 (h8300_saved_pc_after_call): Take pseudo registers into account.
3752 (h8300_register_type): Ditto. Return type used for remote connection
3753 when requesting real CCR or EXR register, return actual type when
3754 requesting pseudo CCR or EXR.
3755 (h8300_pseudo_register_read): New function.
3756 (h8300_pseudo_register_write): Ditto.
3757 (h8300_dbg_reg_to_regnum): Ditto.
3758 (h8300s_dbg_reg_to_regnum): Ditto.
3759 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3760 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3761 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3762 set_gdbarch_print_insn architecture dependent.
3763 Call set_gdbarch_pseudo_register_read and
3764 set_gdbarch_pseudo_register_write.
3765 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3767 2003-06-16 Andrew Cagney <cagney@redhat.com>
3769 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3770 * gdbarch.h, gdbarch.c: Re-generate.
3771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3772 * s390-tdep.c (s390_gdbarch_init): Update.
3773 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3774 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3775 * mips-tdep.c (mips_gdbarch_init): Update.
3776 * mcore-tdep.c (mcore_gdbarch_init): Update.
3777 * cris-tdep.c (cris_gdbarch_init): Update.
3778 * infcall.c (call_function_by_hand): Update.
3779 * ia64-tdep.c (ia64_push_arguments): Update comment.
3780 * frame.c (legacy_get_prev_frame): Do not assume
3781 SAVE_DUMMY_FRAME_TOS_P.
3782 * dummy-frame.c (find_dummy_frame): Update comment.
3784 2003-06-16 Andrew Cagney <cagney@redhat.com>
3786 * regcache.c (do_cooked_read): Do not use register_valid_p.
3788 2003-06-15 Theodore A. Roth <troth@openavr.org>
3790 * avr-tdep.c (avr_register_type): Remove a blank line.
3791 (avr_scan_prologue): Correct some comments.
3793 2003-06-15 Theodore A. Roth <troth@openavr.org>
3795 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3797 Properly scan prologues generated by gcc with the -mcall-prologues
3799 Add code to scan -mcall-prologues for mega devices.
3801 2003-06-15 Theodore A. Roth <troth@openavr.org>
3803 * avr-tdep.c (avr_register_byte): Delete function.
3804 (avr_register_raw_size): Delete function.
3805 (avr_register_virtual_size): Delete function.
3806 (avr_register_virtual_type): Delete function.
3807 (avr_register_type): New function.
3808 (avr_address_to_pointer): Remove unused code.
3809 (avr_read_fp): Need to read FP as two separate bytes due to change to
3810 avr_register_type() usage.
3811 (avr_gdbarch_init): Don't set deprecated_register_size.
3812 Don't set deprecated_register_bytes.
3813 Don't set deprecated_register_byte.
3814 Don't set deprecated_register_raw_size.
3815 Don't set deprecated_max_register_raw_size.
3816 Don't set deprecated_register_virtual_size.
3817 Don't set deprecated_max_register_virtual_size.
3818 Don't set deprecated_register_virtual_type.
3819 Set register_type method.
3821 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3823 * Makefile.in (linux-nat.o): Add rule.
3824 * linux-nat.c: New file.
3825 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3826 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3827 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3828 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3829 * config/arm/linux.mh (NATDEPFILES): Likewise.
3830 * config/i386/linux.mh (NATDEPFILES): Likewise.
3831 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3832 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3833 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3834 * config/mips/linux.mh (NATDEPFILES): Likewise.
3835 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3836 * config/s390/s390.mh (NATDEPFILES): Likewise.
3837 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3839 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3841 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3842 replace out-of-date comment.
3844 2003-06-15 Andrew Cagney <cagney@redhat.com>
3846 * rdi-share/host.h (Fail): Change to a varargs function.
3847 * remote-rdi.c (Fail): Update.
3849 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3851 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3852 (i386_convert_register_p, i386_register_to_value,
3853 i386_register_from_value): Handle types longer than 8 bytes.
3855 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3857 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3858 Move floating-point code to new function in i387-tdep.c.
3859 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3860 New functions containing code moved here from i386-tdep.c.
3861 * i387-tdep.h: Add opaque declaration for `struct type'.
3862 (i387_register_to_value, i387_value_to_register): New prototypes.
3863 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3864 (x86_64_init_abi): Set convert_register_p, register_to_value and
3865 value_to_register here.
3867 2003-06-14 Andrew Cagney <cagney@redhat.com>
3869 * mips-tdep.c (mips_register_to_value): Make static.
3870 (mips_value_to_register): Make static.
3871 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3872 * ia64-tdep.c (ia64_register_raw_size): Make static.
3873 (ia64_register_virtual_size): Make static.
3874 (ia64_register_byte): Make static.
3875 * i387-tdep.c: Include "i387-tdep.h".
3876 (print_387_control_word): Delete function.
3877 (print_387_status_word): Delete function.
3878 (print_387_status_bits): Delete function.
3879 (print_387_control_bits): Delete function.
3880 * Makefile.in (i387-tdep.o): Update dependencies.
3881 * rdi-share/host.h (Fail): Declare.
3882 * remote-rdi.c (Fail): Update to match declaration.
3884 2003-06-14 Andrew Cagney <cagney@redhat.com>
3886 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3887 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3888 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3889 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3890 * README: Delete reference to remote-array.
3891 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3892 (remote-array.o): Delete target.
3893 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3894 * remote-array.c: Delete file.
3896 2003-06-14 Andrew Cagney <cagney@redhat.com>
3897 Mark Kettenis <kettenis@gnu.org>
3899 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3900 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3901 parameter with "frame".
3902 * gdbarch.h, gdbarch.c: Re-generate.
3903 * frame.h (put_frame_register): Declare.
3904 * frame.c (put_frame_register): New function.
3905 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3906 (legacy_register_to_value): Rewrite, use "frame" to get the
3908 (legacy_value_to_register): Rewrite, use "frame" to find the
3909 register's location before storing.
3910 * arch-utils.h (legacy_convert_register_p): Update.
3911 (legacy_register_to_value, legacy_value_to_register): Update.
3912 * findvar.c (value_from_register): Rewrite, eliminate use of
3913 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3914 "frame" to REGISTER_TO_VALUE.
3915 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3916 lval_reg_frame_relative + lval_register branch of the switch. Do
3917 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3918 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3919 I386_EDI_REGNUM): New defines.
3920 (i386_next_regnum, i386_convert_register_p,
3921 i386_register_to_value, i386_value_to_register): New functions.
3922 (i386_register_convertible, i386_register_convert_to_virtual,
3923 i386_convert_to_raw): Remove functions.
3924 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3925 value_to_register instead of register_convertible,
3926 register_convert_to_virtual and register_convert_to_raw.
3927 * mips-tdep.c (mips_convert_register_p): New function.
3928 (mips_value_to_register): Replace mips_register_convert_from_type.
3929 (mips_register_to_value): Replace mips_register_convert_to_type.
3930 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3932 * alpha-tdep.c (alpha_convert_register_p): Update.
3933 (alpha_value_to_register): Update, store the register.
3934 (alpha_register_to_value): Update, fetch the register.
3936 2003-06-14 Theodore A. Roth <troth@openavr.org>
3938 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3939 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3940 Don't set deprecated_call_dummy_words.
3941 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3942 Don't set remote_translate_xfer_address.
3943 (avr_io_reg_read_command): Remove commented out debug printf.
3946 2003-06-14 Theodore A. Roth <troth@openavr.org>
3948 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3949 causes gdb to seg fault.
3951 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3953 * sparc-nat.c (fetch_inferior_registers): Correct
3954 a reference to "registers".
3956 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3958 * Makefile.in (exc_request_U_h): Define
3959 (exc_request_S_h): Likewise.
3960 (msg_reply_S_h): Likewise.
3961 (msg_U_h): Likewise.
3962 (notify_S_h): Likewise.
3963 (process_reply_S_h): Likewise.
3964 (gnu-nat.o): Depend on gdb_obstack_h
3965 * gnu-nat.c: Include "gdb_obstack.h".
3967 2003-06-13 Andrew Cagney <cagney@redhat.com>
3969 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3970 * gdbarch.h, gdbarch.c: Re-generate.
3972 2003-06-13 Andrew Cagney <cagney@redhat.com>
3974 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3975 when deprecated REGISTER macros can be deleted.
3976 * gdbarch.h, gdbarch.c: Re-generate.
3978 2003-06-13 Jim Blandy <jimb@redhat.com>
3980 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3981 Linux entry point symbols for _dl_debug_state, too.
3983 2003-06-13 Andrew Cagney <cagney@redhat.com>
3985 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3986 available, do not use the FP register, and always save the TOS.
3987 * dummy-frame.c (dummy_frame_this_id): Do not assert
3988 SAVE_DUMMY_FRAME_TOS.
3989 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3990 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3991 (i386_push_dummy_call): Add 8 to the returned SP.
3992 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3993 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3994 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3995 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3996 (x86_64_push_dummy_call): Return "sp + 16".
3997 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3998 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3999 save_dummy_frame_tos.
4001 2003-06-13 Jim Blandy <jimb@redhat.com>
4003 * frv-tdep.c (frv_use_struct_convention): Delete static
4004 declaration for function deleted in my change of 2003-06-12.
4006 2003-06-13 Theodore A. Roth <troth@openavr.org>
4008 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4009 (avr_pointer_to_address): Shift code addrs left 1 bit.
4010 (avr_convert_from_func_ptr_addr): Delete function since operation is
4011 better handled by avr_address_to_pointer and avr_pointer_to_address.
4012 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4014 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4016 From Kelley Cook <kelleycook@wideopenwest.com>:
4017 * configure.host: Accept i[34567]86 variants.
4018 * configure.tgt: Likewise.
4019 * nlm/configure.in: Likewise.
4020 * nlm/configure: Regenerated.
4022 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4024 * arm-tdep.c (solib-svr4.h): Dont' include it.
4025 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4026 * arm-linux-tdep.c: ... here. Make static.
4027 (arm_linux_init_abi): Register it.
4028 (solib-svr4.h): Include it.
4029 * Makefile.in: Update dependencies.
4030 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4031 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4033 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4035 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4036 indicate registers used for return values.
4037 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4038 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4040 (h8300_init_extra_frame_info): Ditto.
4041 (h8300_frame_locals_address): Removed.
4042 (h8300_frame_args_address): Removed.
4043 (h8300_extract_return_value): Use new regcache structure. Only care
4045 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4046 (h8300_store_return_value): Use new regcache structure. Only care
4048 (h8300h_store_return_value): Same function for 32 bit CPUs.
4049 (h8300_store_struct_return): Removed.
4050 (h8300_extract_struct_value_address): Use new regcache structure.
4051 (h8300h_extract_struct_value_address): Removed.
4052 (h8300_push_dummy_code): New function.
4053 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4054 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4055 set_gdbarch_store_return_value architecture dependent.
4056 Call set_gdbarch_push_dummy_code and
4057 set_gdbarch_extract_struct_value_address.
4058 Remove calls to set_gdbarch_frame_args_address,
4059 set_gdbarch_frame_locals_address,
4060 set_gdbarch_deprecated_store_struct_return,
4061 set_gdbarch_deprecated_extract_return_value,
4062 set_gdbarch_deprecated_extract_struct_value_address,
4063 set_gdbarch_deprecated_call_dummy_words and
4064 set_gdbarch_deprecated_sizeof_call_dummy_words.
4066 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4068 * h8300-tdep.c (h8300_register_byte): Remove.
4069 (h8300h_register_byte): Remove.
4070 (h8300_register_virtual_type): Remove. Substitute by...
4071 (h8300_register_type): New function.
4072 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4073 (h8300h_extract_struct_value_address): Ditto.
4074 (h8300_gdbarch_init): Drop calls to
4075 set_gdbarch_deprecated_register_byte and
4076 set_gdbarch_deprecated_register_virtual_type.
4077 Add call to set_gdbarch_register_type.
4079 2003-06-13 Andrew Cagney <cagney@redhat.com>
4081 * gdbarch.sh: Update comments on registers.
4082 (deprecated_register_byte): Rename register_byte.
4083 (deprecated_register_raw_size): Rename register_raw_size.
4084 (deprecated_register_virtual_size): Rename register_virtual_size.
4085 (deprecated_register_virtual_type): Rename register_virtual_type.
4086 * gdbarch.h, gdbarch.c: Re-generate.
4087 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4088 * vax-tdep.c (vax_gdbarch_init): Update.
4089 * v850-tdep.c (v850_gdbarch_init): Update.
4090 * sparc-tdep.c (sparc_gdbarch_init): Update.
4091 * sh-tdep.c (sh_gdbarch_init): Update.
4092 * s390-tdep.c (s390_gdbarch_init): Update.
4093 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4094 * ns32k-tdep.c: Update.
4095 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4096 * mips-tdep.c (mips_gdbarch_init): Update.
4097 * mcore-tdep.c (mcore_gdbarch_init): Update.
4098 * m68k-tdep.c (m68k_gdbarch_init): Update.
4099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4100 * ia64-tdep.c (ia64_gdbarch_init): Update.
4101 * hppa-tdep.c (hppa_gdbarch_init): Update.
4102 * h8300-tdep.c (h8300_gdbarch_init): Update.
4103 * frv-tdep.c (frv_gdbarch_init): Update.
4104 * cris-tdep.c (cris_gdbarch_init): Update.
4105 * avr-tdep.c (avr_gdbarch_init): Update.
4106 * alpha-tdep.c (alpha_gdbarch_init): Update.
4107 * arm-tdep.c (arm_gdbarch_init): Update.
4109 2003-06-13 Andrew Cagney <cagney@redhat.com>
4111 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4112 mips_o32_use_struct_convention with always_use_struct_convention.
4114 2003-06-12 David Carlton <carlton@kealia.com>
4116 * cp-namespace.c (cp_set_block_scope): Comment out
4117 processing_has_namespace_info branch.
4119 2003-06-12 Jim Blandy <jimb@redhat.com>
4121 Recognize and skip 64-bit PowerPC Linux linkage functions.
4122 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4123 insn_pattern, insns_match_pattern, d_field, ds_field): New
4124 functions, macros, and types for working with PPC instructions.
4125 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4126 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4127 ppc64_skip_trampoline_code): New functions, variables, and macros
4128 for recognizing and skipping linkage functions.
4129 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4130 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4132 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4133 register offsets for both the 32- and 64-bit interfaces.
4135 Actually finish the job started by my change of 2003-05-29.
4136 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4137 other #definition of this.
4138 (ppc_linux_skip_trampoline_code): Remove declaration.
4139 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4141 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4144 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4145 'long' on ppc64-*-linux*.
4147 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4148 isn't #defined, assume the register doesn't exist: act as if
4149 tdep->ppc_mq_regnum were -1.
4151 * configure.host, configure.tgt: Add entries for
4152 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4154 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4157 * arch-utils.c (always_use_struct_convention): New function.
4158 * arch-utils.h (always_use_struct_convention): New prototype.
4159 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4160 (alpha_gdbarch_init): Register always_use_struct_convention,
4161 instead of alpha_use_struct_convention.
4162 * cris-tdep.c (cris_use_struct_convention): Delete.
4163 (cris_gdbarch_init): Register always_use_struct_convention,
4164 instead of cris_use_struct_convention.
4165 * frv-tdep.c (frv_use_struct_convention): Delete.
4166 (frv_gdbarch_init): Register always_use_struct_convention,
4167 instead of frv_use_struct_convention.
4168 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4169 (h8300_gdbarch_init): Register always_use_struct_convention,
4170 instead of h8300_use_struct_convention.
4171 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4172 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4173 instead of mips_o32_use_struct_convention.
4175 2003-06-12 Andrew Cagney <cagney@redhat.com>
4177 * wince.c: Include "mips-tdep.h".
4178 * mips-tdep.h (mips_next_pc): Declare.
4179 * mcore-tdep.c: Make more local functions static.
4180 * Makefile.in (wince.o): Update dependencies.
4182 2003-06-12 David Carlton <carlton@kealia.com>
4184 * symtab.c (lookup_symbol_aux_minsyms): Replace
4185 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4186 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4187 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4188 SYMBOL_NATURAL_NAME.
4190 2003-06-12 Andreas Schwab <schwab@suse.de>
4192 * Makefile.in (tuiDisassem.o): Update dependencies.
4194 2003-06-12 David Carlton <carlton@bactrian.org>
4196 * symtab.h: Delete declaration of make_symbol_overload_list.
4197 Add declaration of lookup_partial_symbol.
4198 * symtab.c (remove_params): Move to cp-support.c.
4199 (overload_list_add_symbol, make_symbol_overload_list)
4200 (sym_return_val_size, sym_return_val_index): Ditto.
4201 (lookup_partial_symbol): Make extern.
4202 * cp-support.h: Add declaration of make_symbol_overload_list.
4203 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4204 symtab.h, and block.h.
4205 (remove_params): Move here from symtab.c.
4206 (overload_list_add_symbol, make_symbol_overload_list)
4207 (sym_return_val_size, sym_return_val_index): Ditto.
4208 * valops.c: Include cp-support.h.
4209 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4210 frame_h, and block_h.
4211 (valops.o): Depend on cp_support_h.
4213 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4215 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4216 substitute by NUM_REGS throughout.
4217 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4218 (h8300s_register_name): New function for H8S registers.
4219 (h8300sx_register_name): Ditto for H8SX registers.
4220 (h8300_print_register): Revise register printing, avoid depending
4222 (h8300_register_byte): Only care for H8/300 registers.
4223 (h8300h_register_byte): New function for any other architecture.
4224 (h8300_register_raw_size): Remove.
4225 (h8300_register_virtual_type): Revise to return actually useful
4227 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4228 (h8300h_extract_struct_value_address): New function for any other
4230 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4231 set_gdbarch_register_name, set_gdbarch_register_byte,
4232 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4233 Remove calls to set_gdbarch_deprecated_register_size,
4234 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4235 set_gdbarch_deprecated_max_register_raw_size,
4236 set_gdbarch_register_virtual_size and
4237 set_gdbarch_deprecated_max_register_virtual_size entirely.
4238 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4239 set_gdbarch_long_double_bit.
4241 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4243 * doublest.c (convert_doublest_to_floatformat): When dealing
4244 with the implied integer bit, only alter mant_bits if we are
4245 processing a full 32 bits of mantissa.
4247 2003-06-11 David Carlton <carlton@bactrian.org>
4249 * dictionary.h: New.
4250 * dictionary.c: New.
4251 * block.h: Add opaque declaration for struct dictionary.
4252 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4254 (BLOCK_DICT): New macro.
4255 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4256 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4258 (ALL_BLOCK_SYMBOLS): Update definition.
4259 * Makefile.in (SFILES): Add dictionary.c.
4260 (dictionary_h): New.
4261 (COMMON_OBS): Add dictionary.o.
4262 (dictionary.o): New.
4263 (ada-lang.o): Depend on dictionary_h.
4264 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4265 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4266 (mi-cmd-stack.o): Ditto.
4267 (gdbtk-cmds.o): Update dependencies.
4268 (gdbtk-stack.o): Ditto.
4269 * ada-lang.c: Include dictionary.h.
4270 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4271 (fill_in_ada_prototype, debug_print_block): Ditto.
4272 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4273 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4275 * mdebugread.c: Include dictionary.h.
4276 (struct parse_stack): Delete 'maxsyms' member.
4277 (parse_symbol): Update calls to new_block. Delete calls to
4278 shrink_block. Use dictionary methods.
4279 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4280 Update calls to new_symtab. Don't maintain maxsyms data.
4281 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4282 (add_symbol): Just call dict_add_symbol.
4283 (new_symtab): Delete 'maxsyms' argument.
4284 (new_symtab): Update calls to new_block.
4285 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4286 (shrink_block): Delete function.
4287 (fixup_sigtramp): Update call to new_block. Add symbol via
4289 * jv-lang.c: Include dictionary.h.
4290 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4291 appropriately. Set class_symtab->free_func. Make sure the
4292 blockvector is big enough to hold two blocks.
4293 (add_class_symtab_symbol): Use dictionary methods.
4294 (free_class_block): New function.
4295 (type_from_class): Replace explicit iteration by
4297 * symtab.h (struct symtab): Replace 'free_ptr' method by
4299 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4301 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4303 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4304 Include dictionary.h.
4305 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4306 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4308 * objfiles.c: Include dictionary.h.
4309 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4310 * buildsym.c: Include dictionary.h.
4311 (finish_block): Use dictionary methods.
4312 (end_symtab): Set free_func to NULL, not free_ptr.
4313 * tracepoint.c: Include dictionary.h.
4314 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4315 (scope_info): Ditto.
4316 * stack.c: Include dictionary.h.
4317 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4318 (print_block_frame_labels, print_frame_arg_vars)
4319 (print_frame_args): Ditto.
4320 * symmisc.c (free_symtab_block): Use dictionary methods.
4321 (dump_symtab): Ditto.
4322 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4323 Include dictionary.h.
4324 * symfile.h: Delete declarations of sort_block_syms,
4326 * symfile.c (sort_block_syms): Delete.
4327 (sort_symtab_syms): Delete.
4328 * symtab.c: Include dictionary.h.
4329 (lookup_block_symbol): Use dictionary iterators.
4330 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4331 (search_symbols, make_symbol_completion_list): Ditto.
4332 (make_symbol_overload_list): Ditto.
4333 * valops.c (value_of_local): Use dict_empty.
4334 Include dictionary.h.
4336 2003-06-11 J. Brobecker <brobecker@gnat.com>
4338 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4340 2003-06-11 David Carlton <carlton@bactrian.org>
4342 * block.h (BLOCK_SHOULD_SORT): Delete.
4343 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4345 * ada-lang.c (ada_add_block_symbols): Ditto.
4346 * symfile.c (sort_block_syms): Delete.
4347 (sort_symtab_syms): Ditto.
4348 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4350 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4351 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4352 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4353 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4354 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4355 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4356 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4358 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4360 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4363 2003-06-11 Andrew Cagney <cagney@redhat.com>
4365 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4366 REGISTER_CONVERTIBLE.
4367 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4368 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4369 * gdbarch.h, gdbarch.c: Re-generate.
4370 * arch-utils.h (deprecated_register_convertible_not): Rename
4371 generic_register_convertible_not.
4372 * arch-utils.c (deprecated_register_convertible_not): Rename
4373 generic_register_convertible.
4374 (legacy_convert_register_p, legacy_register_to_value): Update.
4375 * sh-tdep.c (sh64_push_arguments): Update.
4376 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4377 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4378 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4379 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4380 * arch-utils.c (legacy_value_to_register): Update.
4381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4382 (rs6000_register_convert_to_raw): Make parameter "from" const.
4383 * mips-tdep.c (mips_gdbarch_init): Update.
4384 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4385 * infcmd.c (default_print_registers_info): Update.
4386 * ia64-tdep.c (ia64_gdbarch_init): Update.
4387 (ia64_register_convert_to_raw): Make parameter "from" const.
4388 * i386-tdep.c (i386_gdbarch_init): Update.
4389 (i386_register_convert_to_raw): Update.
4391 2003-06-11 Andrew Cagney <cagney@redhat.com>
4393 * remote-fileio.c: Include "remote-fileio.h".
4394 * Makefile.in (remote-fileio.o): Update dependencies.
4395 (remote_fileio_h): Fix typo.
4397 2003-06-11 Andrew Cagney <cagney@redhat.com>
4399 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4400 (xstormy16_save_dummy_frame_tos): Make static.
4401 (_initialize_xstormy16_tdep): Add declaration.
4402 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4403 * v850-tdep.c: Make local functions static.
4404 (_initialize_v850_tdep): Add declaration.
4405 * sparc-tdep.c: Make local functions static.
4406 (_initialize_sparc_tdep): Add declaration.
4407 * sh-tdep.c: Make local functions static.
4408 (_initialize_sh_tdep): Add declaration.
4409 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4410 * s390-tdep.c: Make local functions static.
4411 (_initialize_s390_tdep): Add declaration.
4412 * dbxread.c (find_stab_function_addr): Make static.
4413 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4414 * ocd.c (_initialize_remote_ocd): Add declaration.
4415 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4416 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4417 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4418 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4419 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4420 * remote-array.c (_initialize_array): Add declaration.
4421 (_initialize_remote_monitors): Add declaration.
4422 * remote-mips.c: Make local functions static.
4423 (_initialize_remote_mips): Add declaration.
4424 * mcore-tdep.c: Make all local functions static.
4425 (_initialize_mcore_tdep): Add declaration.
4426 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4427 * abug-rom.c (_initialize_abug_rom): Add declaration.
4428 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4429 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4430 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4431 * remote-est.c (_initialize_est): Add declaration.
4432 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4433 (m68hc11_call_dummy_address): Make static.
4434 * ia64-tdep.c: Make local functions static.
4435 (_initialize_ia64_tdep): Add declaration.
4436 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4437 * monitor.c (monitor_wait_filter): Make static.
4438 (_initialize_remote_monitors): Add declaration.
4439 * remote-hms.c (_initialize_remote_hms): Add declaration.
4440 * remote-e7000.c (fetch_regs_from_dump): Make static.
4441 (expect_n): Make static.
4442 (_initialize_remote_e7000): Add declaration.
4443 * ser-e7kpc.c: Always include "defs.h".
4444 (_initialize_ser_e7000pc): Add declaration.
4445 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4446 * cris-tdep.c: Make all but one function static.
4447 (_initialize_cris_tdep): Add declaration.
4448 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4449 * solib.c (update_solib_list): Make static.
4450 (_initialize_solib): Add declaration.
4451 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4452 (_initialize_avr_tdep): Add declaration.
4453 * remote-rdi.c (voiddummy): Make static.
4454 (_initialize_remote_rdi): Add declaration.
4455 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4456 * remote-rdp.c (send_rdp): Make static.
4457 (_initialize_remote_rdp): Add declaration.
4458 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4460 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4462 * remote-fileio.c: Make ari happy.
4464 2003-06-10 J. Brobecker <brobecker@gnat.com>
4466 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4467 fetching the trailing bytes of the buffer we are about to write.
4469 2003-06-10 Andrew Cagney <cagney@redhat.com>
4471 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4472 * Makefile.in (remote-fileio.o): Update dependencies.
4473 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4474 include <setjmp.h>, or <sys/types.h> conditional on USG.
4475 (remote_fio_jmp_buf): Delete global variable.
4477 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4478 Martin M. Hunt <hunt@redhat.com>
4480 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4481 (SFILES): Add remote-fileio.c.
4482 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4483 dependencies for building remote.o.
4484 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4485 * remote-fileio.h: New header file defining remote File-I/O interface.
4486 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4487 static storage class.
4488 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4490 (_initialize_remote): Call initialize_remote_fileio().
4491 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4492 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4493 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4494 (captured_main): Initialize new ui_files.
4495 * ui-file.c: Add read and fgets input functions.
4496 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4497 (null_file_read): New function.
4498 (ui_file_read): New function.
4499 (set_ui_file_read): New function.
4500 (stdio_file_read): New function.
4501 * ui-file.h: New type ui_file_read_ftype.
4502 (set_ui_file_read): Declare.
4503 (ui_file_read): Declare.
4505 2003-06-09 Andrew Cagney <cagney@redhat.com>
4507 * frame.h (deprecated_unwind_get_saved_register): Rename
4508 generic_unwind_get_saved_register, update comments.
4509 * mips-tdep.c (mips_get_saved_register): Update.
4510 * frame.c (deprecated_unwind_get_saved_register): Update.
4512 2003-06-09 Andrew Cagney <cagney@redhat.com>
4514 * vax-tdep.c (vax_frame_locals_address): Delete function.
4515 (vax_gdbarch_init): Do not set frame_locals_address.
4516 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4517 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4518 * s390-tdep.c (s390_frame_args_address): Delete function.
4519 (s390_gdbarch_init): Do not set frame_args_address or
4520 frame_locals_address.
4521 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4522 (ns32k_gdbarch_init): Do not set frame_locals_address.
4523 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4524 (hppa_frame_locals_address): Delete function.
4525 (hppa_gdbarch_init): Do not set frame_args_address, or
4526 frame_locals_address.
4527 * arm-tdep.c (arm_frame_args_address): Delete.
4528 (arm_frame_locals_address): Delete.
4529 (arm_gdbarch_init): Do not set frame_args_address, or
4530 frame_locals_address.
4532 2003-06-09 Andrew Cagney <cagney@redhat.com>
4534 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4535 * gdbarch.h, gdbarch.c: Re-generate.
4536 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4537 * arch-utils.c (frame_num_args_unknown): Delete function.
4538 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4539 (frame_info): Use FRAME_NUM_ARGS_P.
4540 * arm-tdep.c (arm_frame_num_args): Delete function.
4541 (arm_gdbarch_init): Do not set frame_num_args.
4542 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4543 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4544 (hppa_gdbarch_init): Do not set frame_num_args.
4545 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4547 frame_num_args to default frame_num_args_unknown.
4548 * v850-tdep.c (v850_gdbarch_init): Ditto.
4549 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4550 * sh-tdep.c (sh_gdbarch_init): Ditto.
4551 * s390-tdep.c (s390_gdbarch_init): Ditto.
4552 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4553 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4554 * mips-tdep.c (mips_gdbarch_init): Ditto.
4555 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4556 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4558 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4559 * i386-tdep.c (i386_gdbarch_init): Ditto.
4560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4561 * frv-tdep.c (frv_gdbarch_init): Ditto.
4562 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4563 * cris-tdep.c (cris_gdbarch_init): Ditto.
4564 * avr-tdep.c (avr_gdbarch_init): Ditto.
4565 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4567 2003-06-09 Andrew Cagney <cagney@redhat.com>
4569 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4570 (print_frame_args): Moved to "stack.c".
4571 * stack.c: Include "gdb_assert.h".
4572 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4573 (print_frame_args): Moved from "printcmd.c".
4574 * frame.h (print_frame_args): Delete declaration.
4575 * Makefile.in (stack.o): Update dependencies.
4577 2003-06-08 Andrew Cagney <cagney@redhat.com>
4579 * frame.c (get_prev_frame): Remove reference to
4580 frame_args_address_correct in comments.
4581 * frame-base.c (default_frame_args_address): Delete code
4582 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4583 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4584 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4585 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4586 (vax_frame_args_address_correct): Delete declaration.
4588 2003-06-08 Andrew Cagney <cagney@redhat.com>
4590 * gdbarch.sh (UNWIND_SP): Add.
4591 * gdbarch.h, gdbarch.c: Re-generate.
4592 * frame.c (frame_sp_unwind): New function.
4593 (get_frame_sp): New function.
4594 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4595 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4596 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4598 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4599 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4601 2003-06-08 Andrew Cagney <cagney@redhat.com>
4603 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4606 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4607 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4608 * config/m68k/tm-sun3.h: Update.
4609 * config/m68k/tm-m68klynx.h: Update.
4610 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4612 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4613 trad_frame". Update comments.
4614 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4615 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4616 (trad_frame_register_value, trad_frame_prev_register): Update.
4618 2003-06-08 Andrew Cagney <cagney@redhat.com>
4620 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4621 from GCC's acinclude.m4.
4622 * configure.in: Check for getopt's delcaration.
4623 * aclocal.m4, config.in, configure: Re-generate.
4624 * main.c (error_init): Delete declaration.
4625 * defs.h (error_init): Declare.
4626 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4627 (rs6000_convert_from_func_ptr_addr): Make static.
4628 (_initialize_rs6000_tdep): Add declaration.
4629 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4630 (show_commands, set_verbose, show_history): Delete declaration.
4631 * top.h (set_verbose): Add declaration.
4632 (show_history, set_history, show_commands): Add declaration.
4633 (do_restore_instream_cleanup): Add declaration.
4634 * objc-lang.c (specialcmp): Make static.
4635 (print_object_command): Make static.
4636 (find_objc_msgsend): Make static.
4637 (find_objc_msgcall_submethod_helper): Make static.
4638 (find_objc_msgcall_submethod): Make static.
4639 (_initialize_objc_language): Add declaration.
4640 (find_implementation_from_class): Make static.
4641 (find_implementation): Make static.
4642 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4643 * objc-lang.h (lookup_struct_typedef): Add declaration.
4644 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4645 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4646 (do_restore_user_call_depth): Make static.
4647 (do_restore_instream_cleanup): Delete declaration.
4648 (dont_repeat): Delete declaration.
4649 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4650 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4651 * reggroups.c (_initialize_reggroup): Add declaration.
4652 * cp-support.c (_initialize_cp_support): Add declaration.
4653 * cp-abi.c (_initialize_cp_abi): Add declaration.
4654 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4655 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4656 (_initialize_gnu_v3_abi): Add declaration.
4657 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4658 (_initialize_gnu_v2_abi): Add declaration.
4659 * frame-base.c (_initialize_frame_base): Add declaration.
4660 * doublest.c (floatformat_from_length): Make static.
4661 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4662 * frame.c (create_sentinel_frame): Make static.
4663 (_initialize_frame): Add declaration.
4664 * top.c (do_catch_errors): Make static.
4665 (gdb_rl_operate_and_get_next_completion): Make static.
4666 * typeprint.c: Include "typeprint.h".
4667 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4668 (sentinel_frame_this_id): Make static.
4669 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4670 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4671 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4672 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4673 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4674 * maint.c (maintenance_print_architecture): Make static.
4675 * signals/signals.c (_initialize_signals): Add declaration.
4676 * std-regs.c (_initialize_frame_reg): Add declaration.
4677 * jv-exp.y (push_variable): ISO C definition.
4678 (push_qualified_expression_name): Ditto.
4679 * memattr.c (_initialize_mem): Add declaration.
4680 * remote.c (remote_check_watch_resources): Make static.
4681 (remote_stopped_by_watchpoint): Make static.
4682 (remote_stopped_data_address): Make static.
4683 * d10v-tdep.c (nr_dmap_regs): Make static.
4684 (a0_regnum): Make static.
4685 (d10v_frame_unwind_cache): Make static.
4686 (d10v_frame_p): Make static.
4687 * osabi.c (show_osabi): Make static.
4688 (_initialize_gdb_osabi): Add extern declaration.
4689 * gdbtypes.c (make_qualified_type): Make static.
4690 (safe_parse_type): Make static.
4691 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4692 * macrotab.c (macro_bcache_free): Make static.
4693 * interps.c (interp_set_quiet): Make static.
4694 (interpreter_exec_cmd): Make static.
4695 * stack.h (select_frame_command): New file.
4696 * stack.c: Include "stack.h".
4697 (select_frame_command_wrapper): Delete function.
4698 (select_frame_command): Make global.
4699 * infcall.c: Include "infcall.h".
4700 * linespec.c: Include "linespec.h".
4701 * symfile.c (sections_overlap): Make static.
4702 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4703 * charset.c (_initialize_charset): Add missing prototype.
4704 * regcache.c (init_legacy_regcache_descr): Make static.
4705 (do_regcache_xfree): Make static.
4706 (regcache_xfer_part): Make static.
4707 (_initialize_regcache): Add missing prototype.
4708 * breakpoint.c (parse_breakpoint_sals): Make static.
4709 (breakpoint_sals_to_pc): Make static.
4710 * interps.h (clear_interpreter_hooks): ISO C declaration.
4711 * Makefile.in (stack_h): Define.
4712 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4713 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4715 2003-06-08 Andrew Cagney <cagney@redhat.com>
4717 * Makefile.in (d10v-tdep.o): Update dependencies.
4718 (SFILES): Add trad-frame.c.
4719 (trad_frame_h): Define.
4720 (COMMON_OBS): Add trad-frame.o.
4721 (trad-frame.o): Specify dependencies.
4722 * d10v-tdep.c: Include "trad-frame.h".
4723 (saved_regs_unwinder): Delete function.
4724 (d10v_frame_prev_register): Use trad_frame_prev_register.
4725 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4726 trad_frame", delete "regs" and "prev_sp".
4727 (prologue_find_regs): Use trad-frame.
4728 * trad-frame.h, trad-frame.c: New files.
4730 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4732 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4734 2003-06-07 Adam Fedor <fedor@gnu.org>
4736 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4737 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4738 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4739 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4740 resolve_msgsend_super, resolve_msgsend_super_stret):
4743 2003-06-07 Andrew Cagney <cagney@redhat.com>
4745 * symfile.h: Re-indent, clean up comments.
4747 2003-06-07 Andrew Cagney <cagney@redhat.com>
4749 * inferior.h (deprecated_write_sp): Replace
4750 generic_target_write_sp.
4751 * regcache.c (deprecated_write_sp): Replace
4752 generic_target_write_sp.
4753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4754 * vax-tdep.c (vax_gdbarch_init): Update.
4755 * v850-tdep.c (v850_gdbarch_init): Update.
4756 * sparc-tdep.c (sparc_gdbarch_init): Update.
4757 * sh-tdep.c (sh_gdbarch_init): Update.
4758 * s390-tdep.c (s390_gdbarch_init): Update.
4759 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4760 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4761 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4762 * mcore-tdep.c (mcore_gdbarch_init): Update.
4763 * m68k-tdep.c (m68k_gdbarch_init): Update.
4764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4765 * ia64-tdep.c (ia64_gdbarch_init): Update.
4766 * h8300-tdep.c (h8300_gdbarch_init): Update.
4767 * frv-tdep.c (frv_gdbarch_init): Update.
4768 * cris-tdep.c (cris_gdbarch_init): Update.
4769 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4771 2003-06-07 Andrew Cagney <cagney@redhat.com>
4773 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4774 Assert that PC_REGNUM is valid.
4775 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4777 2003-06-07 Andrew Cagney <cagney@redhat.com>
4779 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4780 * gdbarch.h, gdbarch.c: Regenerate.
4781 * mn10300-tdep.c: Include "gdb_assert.h".
4782 (mn10300_read_fp): New function.
4783 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4784 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4785 * ia64-tdep.c: Include "gdb_assert.h".
4786 (ia64_read_fp): New function.
4787 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4788 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4789 * regcache.c (generic_target_read_sp): Delete function.
4790 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4791 * inferior.h (generic_target_read_sp): Delete declaration.
4792 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4793 generic_target_read_sp.
4794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4795 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4796 * sh-tdep.c (sh_gdbarch_init): Ditto.
4797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4798 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4800 2003-06-07 Andrew Cagney <cagney@redhat.com>
4802 * gdbarch.sh: Comment each field of startup_gdbarch.
4803 * gdbarch.h, gdbarch.c: Re-generate.
4805 2003-06-07 Andrew Cagney <cagney@redhat.com>
4807 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4808 * gdbarch.h, gdbarch.c: Re-generate.
4809 * regcache.c: Update comments on read_pc et.al.
4810 (generic_target_read_pc): Delete function.
4811 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4812 * inferior.h (generic_target_read_pc): Delete declaration.
4813 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4814 generic_target_read_pc.
4815 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4816 * sh-tdep.c (sh_gdbarch_init): Ditto.
4817 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4820 2003-06-07 Andrew Cagney <cagney@redhat.com>
4822 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4823 "index" with "special_local_sect". Use strcmp instead of STREQ.
4824 Append period to coments.
4826 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4828 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4829 (elfstab_offset_sections): Likewise.
4830 * gdb-stabs.h (stab_section_info): Likewise.
4831 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4832 * objfiles.c (objfile_relocate): Likewise.
4833 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4834 * remote.c (get_offsets): Likewise.
4835 (remote_cisco_objfile_relocate): Likewise.
4836 * somread.c (som_symfile_offsets): Likewise.
4837 * symfile.c (alloc_section_addr_info): New function.
4838 (build_section_addr_info_from_section_tab): Use it.
4839 (free_section_addr_info): Adjust.
4840 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4841 (syms_from_objfile): Allocate local_addr dynamically.
4842 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4844 (add_symbol_file_command): Allocate sect_opts dynamically.
4845 (reread_symbols): Avoid use of SECT_OFF_MAX.
4846 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4847 (alloc_section_addr_info): Declare it.
4848 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4849 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4851 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4853 2003-06-06 Andrew Cagney <cagney@redhat.com>
4855 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4856 (d10v_frame_unwind_cache): Do not set "return_pc".
4858 2003-06-06 Michael Snyder <msnyder@redhat.com>
4860 * h8300-tdep.c: Make tidy (long lines).
4862 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4864 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4865 to regcache_collect().
4867 2003-06-05 J. Brobecker <brobecker@gnat.com>
4869 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4870 pc_in_sigtramp multiarch method.
4871 (hppa_hpux_som_init_abi): Use it.
4872 (hppa_hpux_elf_init_abi): Likewise.
4873 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4874 macro has been multiarched.
4875 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4876 macro here, as hppa64 isn't multiarched yet.
4878 2003-06-05 Andrew Cagney <cagney@redhat.com>
4880 * Makefile.in (value_h): Add $(frame_h).
4881 * value.h: Include "frame.h".
4882 (struct value): Replace "frame_addr" with "frame_id".
4883 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4884 * values.c (allocate_value): Use VALUE_FRAME_ID.
4885 (value_copy): Use VALUE_FRAME_ID.
4886 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4887 * valops.c (value_assign): Update. Use frame_find_by_id.
4889 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4891 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4894 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4896 * thread-db.c (check_event): For create/death event breakpoints,
4897 loop through all messages to ensure that we read the message
4898 corresponding to the breakpoint we are at.
4900 2003-06-04 Michael Snyder <msnyder@redhat.com>
4902 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4904 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4906 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4907 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4908 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4909 when handling .eh_frame sections.
4911 2003-06-04 J. Brobecker <brobecker@gnat.com>
4913 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4914 prepare_to_proceed procedure instead of the hppa-specific one.
4915 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4917 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4919 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4920 * config.in: Regenerated.
4921 * configure.in: Add test for syscall function and check for
4922 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4923 * configure: Regenerated.
4924 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4926 (kill_lwp): New function that uses tkill syscall or
4927 uses kill, depending on whether threading model is nptl or not.
4928 All callers of kill() changed to use kill_lwp().
4929 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4930 see if all threads have already exited in the nptl model.
4931 (stop_and_resume_callback): New callback function used by the
4932 lin_lwp_wait thread exit handling code.
4933 (stop_wait_callback): Check for threads already having exited and
4934 delete such threads fromt the lwp list when discovered.
4935 (stop_callback): Don't assert retcode of kill call.
4937 Roland McGrath <roland@redhat.com>
4938 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4941 2003-06-03 Richard Henderson <rth@redhat.com>
4943 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4944 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4945 (alpha_sigtramp_frame_prev_register): Likewise.
4946 (alpha_heuristic_frame_prev_register): Likewise.
4947 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4949 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4950 alpha-specific register id names.
4951 (alpha_mdebug_frame_unwind_cache): Likewise.
4952 (alpha_mdebug_frame_prev_register): Likewise.
4954 2003-06-03 Richard Henderson <rth@redhat.com>
4956 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4957 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4958 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4959 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4961 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4962 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4963 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4965 * alpha-linux-tdep.c: Remove unnecessary includes.
4966 * Makefile.in (alpha-linux-tdep.o): Update.
4968 2003-06-03 Richard Henderson <rth@redhat.com>
4970 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4971 (alphabsd_fill_fpreg): Likewise.
4973 2003-06-03 J. Brobecker <brobecker@gnat.com>
4975 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4976 references to struct frame_info fields by calls to the equivalent
4977 accessors. Necessary now that frame_info is opaque.
4979 2003-06-03 J. Brobecker <brobecker@gnat.com>
4981 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4982 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4983 structure, field no longer exists.
4985 2003-06-03 J. Brobecker <brobecker@gnat.com>
4987 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4988 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4990 2003-06-03 J. Brobecker <brobecker@gnat.com>
4992 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4993 references to struct frame_info fields by calls to the equivalent
4994 accessors. Necessary now that frame_info is opaque.
4996 2003-06-03 J. Brobecker <brobecker@gnat.com>
4998 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4999 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5000 structure, field no longer exists.
5002 2003-06-03 Theodore A. Roth <troth@openavr.org>
5004 * remote.c (init_remote_state): Compute sizeof_g_packet by
5005 accumulation of the size of all registers instead of blindly using
5006 DEPRECATED_REGISTER_BYTES.
5008 2003-06-03 Michael Snyder <msnyder@redhat.com>
5010 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5011 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5014 2003-06-03 J. Brobecker <brobecker@gnat.com>
5016 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5017 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5019 2003-06-03 Andrew Cagney <cagney@redhat.com>
5021 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5022 (sparc_convert_to_raw): Delete function.
5023 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5024 register_convert_to_virtual.
5026 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5028 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5029 layer if not dealing with a statically-linked threaded program.
5031 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5033 * solib.c (solib_open): Update comment to reflect actual search order.
5035 2003-06-03 Andrew Cagney <cagney@redhat.com>
5037 * frame.c (get_frame_memory_signed): New function.
5038 (get_frame_memory, get_frame_memory_unsigned): New function.
5039 (get_frame_arch): New function.
5040 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5041 (get_frame_memory, get_frame_unsigned_memory): Declare.
5042 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5043 get_frame_memory_unsigned and get_frame_arch.
5044 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5046 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5048 * MAINTAINERS (write after approval): Add myself.
5050 2003-06-03 Jim Blandy <jimb@redhat.com>
5052 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5053 elements of gregset_t are 64 bits each, but access registers
5054 are still 32 bits, so they're packed two per gregset_t
5055 element. Unpack/pack them properly.
5057 2003-06-02 David Carlton <carlton@bactrian.org>
5059 * linespec.c (find_methods): Break out code into
5060 add_matching_methods and add_constructors.
5061 (add_matching_methods): New.
5062 (add_constructors): Ditto.
5064 2003-06-02 Andrew Cagney <cagney@redhat.com>
5066 * sparc-tdep.c (sparc_print_registers): Delete call to
5067 REGISTER_CONVERTIBLE.
5068 (sparc_gdbarch_init): Do not set register_convertible.
5069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5070 * frv-tdep.c (frv_gdbarch_init): Ditto.
5071 * cris-tdep.c (cris_gdbarch_init): Ditto.
5073 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5075 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5076 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5077 (syms_from_objfile): Ditto.
5079 2003-06-03 Andreas Schwab <schwab@suse.de>
5081 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5082 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5084 2003-06-02 Richard Henderson <rth@redhat.com>
5086 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5087 a member of all_reggroup.
5089 2003-06-02 Richard Henderson <rth@redhat.com>
5091 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5092 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5093 (alpha_lds, alpha_sts): New.
5094 (alpha_convert_register_p): Change from _register_convertible.
5095 (alpha_register_to_value): Change from _convert_to_virtual;
5096 restructure and fail for type sizes other than 4 or 8.
5097 (alpha_value_to_register): Similarly.
5098 (alpha_extract_return_value): Use alpha_sts.
5099 (alpha_store_return_value): Use alpha_lds.
5100 (alpha_gdbarch_init): Update hooks.
5102 2003-06-02 Richard Henderson <rth@redhat.com>
5104 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5106 (alpha_sigtramp_register_address): Likewise.
5108 2003-06-02 Richard Henderson <rth@redhat.com>
5110 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5111 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5112 * alpha-tdep.h: Declare them.
5114 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5115 Remove zerobuf. Don't error on UNIQUE.
5116 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5117 (ALPHA_REGSET_UNIQUE): Provide default.
5118 (supply_gregset): Use alpha_supply_int_regs.
5119 (fill_gregset): Use alpha_fill_int_regs.
5120 (supply_fpregset): Use alpha_supply_fp_regs.
5121 (fill_fpregset): Use alpha_fill_fp_regs.
5122 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5123 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5124 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5125 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5126 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5127 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5129 2003-06-02 Richard Henderson <rth@redhat.com>
5131 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5133 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5134 (alpha_store_return_value): Likewise.
5136 2003-06-02 David Carlton <carlton@math.stanford.edu>
5138 * block.c (contained_in): Add 'const' to arguments.
5139 (block_function): Ditto.
5140 * block.h: Update declarations for block_function and
5143 2003-06-02 David Carlton <carlton@math.stanford.edu>
5145 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5146 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5147 * p-valprint.c (pascal_val_print): Ditto.
5148 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5150 2003-06-02 Richard Henderson <rth@redhat.com>
5152 * alpha-tdep.c (alpha_push_dummy_call): Use
5153 builtin_type_ieee_double_little instead of builtin_type_double.
5155 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5156 sign-extension of 32-bit values.
5157 (alpha_store_return_value): Similarly.
5159 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5160 (alpha_extract_return_value): Likewise.
5161 (alpha_store_return_value): Likewise.
5163 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5164 (alpha_store_return_value): Error on IEEE Quad floats.
5166 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5167 (alpha_extract_struct_value_address): Likewise.
5168 (alpha_store_return_value): Likewise.
5169 (alpha_store_struct_return): Remove.
5170 (alpha_gdbarch_init): Update hook registration to match.
5172 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5173 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5174 macros where appropriate.
5175 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5176 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5178 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5179 for SP, GP; void_func_ptr for PC; non-language-specific types
5181 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5183 2003-06-02 Richard Henderson <rth@redhat.com>
5185 * top.h (lim_at_start): Declare.
5186 * main.c (captured_main): Set it.
5187 * top.c (lim_at_start): Define.
5188 (command_loop): Use it instead of &environ.
5189 * event-top.c (command_handler): Likewise.
5191 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5193 * mipsnbsd-tdep.c: Update copyright years.
5194 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5196 2003-06-01 Richard Henderson <rth@redhat.com>
5198 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5199 (alpha-linux-tdep.o): Update dependencies.
5200 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5201 * alpha-mdebug-tdep.c: Remove unneeded includes.
5203 2003-06-01 Richard Henderson <rth@redhat.com>
5205 * alpha-tdep.c (alpha_register_reggroup_p): New.
5206 (alpha_gdbarch_init): Register it.
5208 2003-06-02 Andrew Cagney <cagney@redhat.com>
5210 * dwarfread.c: Eliminate "register"
5211 (decode_die_type): Eliminate assignment within "if".
5212 (struct_type, decode_array_element_type): Ditto.
5213 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5214 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5215 (decode_modified_type, completedieinfo): Ditto.
5216 * block.c: Eliminate "register".
5217 (blockvector_for_pc_sect): Eliminate assignment within "if".
5218 * cp-support.h (struct symbol): Opaque declaration.
5219 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5221 2003-06-01 Richard Henderson <rth@redhat.com>
5223 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5224 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5226 2003-06-01 Adam Fedor <fedor@gnu.org>
5228 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5229 * gdbarch.[ch]: Regenerate.
5230 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5231 (hppa_gdbarch_init): Set it in the gdbarch vector.
5232 * i386-tdep.c (i386_fetch_pointer_argument): New
5233 (i386_gdbarch_init): Set it into gdbarch.
5234 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5235 (rs6000_gdbarch_init): Set it in gdbarch.
5236 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5237 (sparc_gdbarch_init): Set it in gdbarch.
5239 2003-06-01 Andrew Cagney <cagney@redhat.com>
5241 * defs.h (extract_address): Delete declaration.
5242 * findvar.c (extract_address): Delete function.
5243 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5244 extract_address with the inline equivalent,
5245 extract_unsigned_integer.
5246 (xstormy16_extract_struct_value_address): Ditto.
5247 (xstormy16_pointer_to_address): Ditto.
5248 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5249 * v850-tdep.c (v850_push_arguments): Ditto.
5250 (v850_extract_return_value): Ditto.
5251 (v850_extract_struct_value_address): Ditto.
5252 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5253 (sparcnbsd_get_longjmp_target_64): Ditto.
5254 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5255 (get_longjmp_target): Ditto.
5256 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5257 (sh64_extract_struct_value_address): Ditto.
5258 (sh_push_arguments): Ditto.
5259 (sh64_push_arguments): Ditto.
5260 * remote-vxsparc.c (vx_read_register): Ditto.
5261 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5262 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5263 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5264 * mipsv4-nat.c (get_longjmp_target): Ditto.
5265 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5266 * mips-nat.c (get_longjmp_target): Ditto.
5267 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5268 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5269 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5270 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5271 * irix5-nat.c (get_longjmp_target): Ditto.
5272 * irix4-nat.c (get_longjmp_target): Ditto.
5273 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5274 (ia64_push_arguments): Ditto.
5275 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5276 * h8300-tdep.c (h8300_push_arguments): Ditto.
5277 (h8300_store_return_value): Ditto.
5278 (h8300_extract_struct_value_address): Ditto.
5279 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5280 (frv_push_arguments): Ditto.
5281 * avr-tdep.c (avr_pointer_to_address): Ditto.
5282 (avr_push_arguments): Ditto.
5283 * arm-tdep.c (arm_push_dummy_call): Ditto.
5284 (arm_get_longjmp_target): Ditto.
5285 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5286 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5287 (alpha_get_longjmp_target): Ditto.
5289 * solib-irix.c (extract_mips_address): Inline extract_address,
5290 replacing it with extract_signed_integer.
5291 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5292 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5293 (first_link_map_member, open_symbol_file_object): Ditto.
5294 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5295 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5296 (LM_NEXT, LM_NAME): Ditto.
5298 2003-06-01 Richard Henderson <rth@redhat.com>
5300 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5301 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5302 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5303 (alpha_cannot_store_register): Likewise.
5304 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5305 * alpha-nat.c (supply_gregset): Likewise.
5306 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5308 2003-06-01 Andrew Cagney <cagney@redhat.com>
5310 * infcall.c (call_function_by_hand): Update comment on
5311 DEPRECATED_DUMMY_WRITE_SP.
5313 * mips-tdep.c (mips_gdbarch_init): Do not set
5314 deprecated_dummy_write_sp.
5315 (mips_eabi_push_dummy_call): Set the SP register.
5316 (mips_o64_push_dummy_call): Set the SP register.
5317 (mips_o32_push_dummy_call): Set the SP register.
5318 (mips_n32n64_push_dummy_call): Set the SP register.
5320 2003-06-01 Richard Henderson <rth@redhat.com>
5322 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5323 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5324 (supply_gregset): Likewise.
5325 * alpha-tdep.c (alpha_store_return_value): Likewise.
5326 (alpha_get_longjmp_target): Likewise.
5327 (alpha_register_name): Constify array.
5328 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5329 deprecated_register_size, deprecated_register_bytes,
5330 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5331 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5332 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5334 2003-06-01 Richard Henderson <rth@redhat.com>
5336 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5337 from arg_reg_buffer to regcache to avoid double conversion.
5339 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5341 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5343 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5344 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5346 2003-06-01 Richard Henderson <rth@redhat.com>
5348 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5349 (decode_frame_entry): Set it. Skip FDE augmentation.
5351 2003-06-01 Richard Henderson <rth@redhat.com>
5353 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5354 not overlapping PC_REGNUM.
5356 2003-06-01 Richard Henderson <rth@redhat.com>
5358 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5359 alpha_push_arguments. Don't dump argument register data to
5360 the target stack. Fix float and 128-bit long double semantics.
5361 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5362 (alpha_fix_call_dummy): Remove.
5363 (alpha_call_dummy_words): Remove.
5364 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5366 2003-06-01 Richard Henderson <rth@redhat.com>
5368 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5370 2003-06-01 Andrew Cagney <cagney@redhat.com>
5372 * mips-tdep.c (is_mips16_addr): New function.
5373 (make_mips16_addr, unmake_mips16_addr): New functions.
5374 (pc_is_mips16, mips_fetch_instruction): Use.
5375 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5376 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5377 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5378 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5380 * config/mips/tm-mips.h: Update copyright.
5381 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5382 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5383 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5384 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5385 (TM_PRINT_INSN_MACH): Delete.
5386 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5388 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5389 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5390 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5391 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5392 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5393 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5394 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5395 mips*-*-riscos* and mips*-*-sysv* onto mips.
5396 * config/mips/mips64.mt: New file.
5397 * config/mips/mips.mt: New file.
5398 * config/mips/littlemips.mt: Delete file.
5399 * config/mips/decstation.mt: Delete file.
5400 * config/mips/vr4300el.mt: Delete file.
5401 * config/mips/vr5000el.mt: Delete file.
5402 * config/mips/vr5000.mt: Delete file.
5403 * config/mips/vr4100.mt: Delete file.
5404 * config/mips/vr4xxxel.mt: Delete file.
5405 * config/mips/vr4300.mt: Delete file.
5406 * config/mips/vr4xxx.mt: Delete file.
5407 * config/mips/bigmips.mt: Delete file.
5408 * config/mips/bigmips64.mt: Delete file.
5409 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5410 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5411 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5412 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5413 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5415 * config/mips/tm-irix3.h: Ditto.
5416 * config/mips/tm-mipsv4.h: Ditto.
5417 * config/mips/tm-embed.h: Ditto.
5418 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5420 * config/mips/tm-vr5000el.h: Delete file.
5421 * config/mips/tm-tx39l.h: Delete file.
5422 * config/mips/tm-vr4300el.h: Delete file.
5423 * config/mips/tm-vr4xxxel.h: Delete file.
5424 * config/mips/tm-vr4300.h: Delete file.
5425 * config/mips/tm-vr4100.h: Delete file.
5426 * config/mips/tm-vr4xxx.h: Delete file.
5427 * config/mips/tm-vr5000.h: Delete file.
5428 * config/mips/tm-embedl64.h: Delete file.
5429 * config/mips/tm-embedl.h: Delete file.
5430 * config/mips/tm-embed64.h: Delete file.
5431 * config/mips/tm-bigmips64.h: Delete file.
5432 * config/mips/tm-bigmips.h: Delete file.
5434 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5437 * shnbsd-nat.c: Include "sh-tdep.h".
5439 From Richard Henderson <rth@redhat.com>:
5440 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5442 2003-05-31 Andrew Cagney <cagney@redhat.com>
5444 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5445 forward declaration.
5446 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5447 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5448 (mips_find_saved_regs): Use set_reg_offset.
5449 (mips_frame_init_saved_regs): Delete function.
5450 (mips_pop_frame): Call mips_find_saved_regs instead of
5451 DEPRECATED_FRAME_INIT_SAVED_REGS.
5453 2003-05-31 Andrew Cagney <cagney@redhat.com>
5455 * mips-tdep.c (mips_gdbarch_init): Do not set
5456 deprecated_max_register_raw_size, register_virtual_size, and
5457 deprecated_max_register_virtual_size.
5459 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5461 * i386-tdep.c: Include "dwarf2-frame.h".
5462 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5463 * Makefile.in (i386-tdep.o): Update dependencies.
5465 * dwarf2-frame.c, dwarf2-frame.h: New files.
5466 * Makefile.in (SFILES): Add dwarf2-frame.c.
5467 (dwarf2_frame_h): Define.
5468 (COMMON_OBS): Add dwarf2-frame.o.
5469 (dwarf2-frame.o): Add dependencies.
5471 2003-05-31 Andreas Jaeger <aj@suse.de>
5473 * x86-64-linux-nat.c: Fix comment.
5475 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5477 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5480 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5481 have a sigcontext_addr handler.
5482 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5483 sigcontext_addr handler.
5485 2003-05-31 Andrew Cagney <cagney@redhat.com>
5487 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5488 (print_fp_register_row): Replace do_fp_register_row.
5489 (mips_print_fp_register): Add "file" and "frame" parameters.
5490 (mips_print_register): Add "file" and "frame" parameters.
5491 (mips_print_registers_info): Replace mips_do_registers_info.
5492 (mips_gdbarch_init): Set print_registers_info instead of
5493 deprecated_do_registers_info.
5494 (mips_read_fp_register_single): Add "frame" parameter.
5495 (mips_read_fp_register_double): Add "frame" parameter.
5497 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5499 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5500 Fixes a bug where GDB would print the wrong register names for
5501 targets without SSE.
5503 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5504 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5507 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5508 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5509 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5512 From Michal Ludvig <mludvig@suse.cz>:
5513 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5515 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5516 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5517 I386_ST0_REGNUM): Move here from...
5518 * i386-tdep.c: ... here.
5519 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5520 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5521 registers if possible.
5522 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5523 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5525 (i386bsd_sc_reg_offset): New variable.
5526 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5527 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5529 (i386fbsd_sc_reg_offset): New variable.
5530 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5532 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5534 (i386fbsd4_sc_reg_offset): New variable.
5535 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5536 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5538 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5539 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5540 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5542 (i386nbsd_sc_reg_offset): New variable.
5543 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5544 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5546 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5548 (i386obsd_sc_reg_offset): New variable.
5549 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5550 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5552 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5553 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5554 for frame pointer offset in `struct sigcontext'.
5556 2003-05-31 Andrew Cagney <cagney@redhat.com>
5558 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5559 architecture methods call_dummy_words, sizeof_call_dummy_words,
5560 push_return_address, store_struct_return, and fix_call_dummy. Set
5561 push_dummy_call instead of deprecated_push_arguments.
5562 (mips_store_struct_return): Delete function.
5563 (mips_fix_call_dummy): Delete function.
5564 (mips_push_return_address): Delete function.
5565 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5566 RA_REGNUM and T9_REGNUM.
5567 (mips_n32n64_push_dummy_call): Ditto for
5568 mips_n32n64_push_arguments.
5569 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5570 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5572 2003-05-31 Andrew Cagney <cagney@redhat.com>
5574 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5575 "dummy_addr" to "bp_addr".
5576 * infcall.c (call_function_by_hand): Pass "funaddr" to
5577 gdbarch_push_dummy_call.
5578 * gdbarch.h, gdbarch.c: Re-generate.
5579 * i386-tdep.c (i386_push_dummy_call): Update.
5580 * arm-tdep.c (arm_push_dummy_call): Update.
5581 * d10v-tdep.c (d10v_push_dummy_call): Update.
5583 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5585 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5586 variable declarations.
5587 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5588 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5589 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5590 x86_64_init_frame_pc, x86_64_init_frame_pc,
5591 x86_64_function_has_prologue): Remove prototypes.
5592 (X86_64_NUM_GREGS): New define.
5593 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5594 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5595 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5596 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5597 XMM1_REGNUM): Remove defines.
5598 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5599 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5600 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5601 X86_64_XMM1_REGNUM): New defines.
5602 (struct x86_64_register_info): Renamed from `struct
5603 register_info'. Remove `size' member.
5604 (x86_64_register_info_table): Remove variable.
5605 (x86_64_register_info): New variable.
5606 (X86_64_NUM_REGS): New define.
5607 (X86_64_NUM_GREGS): Remove define.
5608 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5609 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5611 (x86_54_dwarf2_reg_to_regnum): Remove function.
5612 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5613 (x86_64_dwarf_reg_to_regnum): New function.
5614 (x86_64_register_name): Rewrite.
5615 (x86_64_register_raw_size): Remove function.
5616 (x86_64_register_byte_table): Remove variable.
5617 (x86_64_register_byte): Remove function.
5618 (x86_64_register_virtual_type): Remove function.
5619 (x86_64_register_type): New function.
5620 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5621 x86_64_register_convert_to_raw): Remove functions.
5622 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5623 (x86_64_use_struct_convention): Make static. Adjust for renamed
5625 (x86_64_frame_init_saved_regs): Remove function.
5626 (x86_64_push_arguments): Make static. Change to accept a regcache
5628 (x86_64_store_return_value, x86_64_extract_return_value): Make
5629 static. Rewrite based on i386 counterparts.
5630 (x86_64_push_dummy_call): New function.
5631 (X86_64_NUM_SAVED_REGS): New define.
5632 (x86_64_register_number): Remove function.
5633 (x86_64_store_struct_return): Remove function.
5634 (x86_64_frameless_function_invocation,
5635 x86_64_function_has_prologue): Remove functions.
5636 (PROLOG_BUFSIZE): Remove define.
5637 (struct x86_64_frame_cache): New structure.
5638 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5639 x86_64_frame_cache, x86_64_frame_this_id,
5640 x86_64_frame_prev_register, x86_64_frame_p,
5641 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5642 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5644 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5646 (x86_64_skip_prologue): Rewrite in terms of
5647 x86_64_analyze_prologue.
5648 (x86_64_frame_base_address): New function.
5649 (x86_64_frame_base): New variable.
5650 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5651 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5652 set deprecated_fp_regnum, deprecated_register_size,
5653 deprecated_register_bytes, register_raw_size, register_byte,
5654 register_virtual_type, register_convertiable,
5655 register_convert_to_virtual, convert_to_raw,
5656 deprecated_get_saved_register, deprecated_target_read_fp,
5657 deprecated_push_arguments, deprecated_push_return_address,
5658 deprecated_pop_frame, deprecated_store_struct_return,
5659 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5660 frameless_function_invocation, deprecated_frame_saved_pc,
5661 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5662 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5663 deprecated_init_frame_pc and virtual_frame_pointer. Call
5664 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5665 and x86_64_frame_p. Call frame_base_set_default to register
5667 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5668 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5669 (_initialize_x86_64_tdep): Remove function.
5670 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5671 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5672 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5674 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5675 (x86_64_linux_sigcontext_addr): Rewrite.
5676 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5677 x86_64_linux_frame_saved_pc): Remove functions.
5678 (x86_64_linux_pc_in_sigtramp): Renamed from
5679 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5681 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5683 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5684 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5685 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5686 (x86_64_regmap): Rename to regmap.
5687 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5689 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5691 (x86_64_fxsave_offset): Remove function.
5692 (supply_fpregset): Simply call x86_64_supply_fxsave.
5693 (fill_fpregset): Simply call x86_64_fill_fxsave.
5694 (fetch_inferior_registers, store_inferior_registers): Avoid
5695 asignment in if-statement.
5696 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5697 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5698 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5699 (fetch_core_registers): Remove function.
5700 (linux_elf_core_fns): Remove.
5701 (offsetoff): Don't define.
5702 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5703 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5704 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5706 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5707 protection against multiple includes instead of NM_X86_64_h. Add
5708 various comments. Include "config/nm-linux.h". Don't include
5710 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5711 GET_THREAD_SIGNALS): Remove defines.
5712 (x86_64_register_u_addr, kernel_u_size,
5713 lin_thread_get_thread_signals): Remove prototypes.
5714 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5715 [HAVE_LINK_H]: Don't include "solib.h".
5716 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5717 * config/i386/tm-x86-64linux.h: Fix comments.
5718 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5719 x86-64-tdep.o): Update dependencies.
5721 2003-05-30 Andrew Cagney <cagney@redhat.com>
5723 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5724 Change parameter type to a "struct regcache *".
5726 * gdbarch.sh: Regardless of the multi-arch level, always define
5727 the macro when not already defined.
5728 * gdbarch.h, gdbarch.c: Re-generate.
5730 2003-05-30 Richard Henderson <rth@redhat.com>
5732 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5733 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5734 (alpha_mdebug_frame_this_id): Likewise.
5735 (alpha_mdebug_frame_prev_register): Likewise.
5736 (alpha_mdebug_frame_base_address): Likewise.
5737 (alpha_mdebug_frame_locals_address): Likewise.
5738 (alpha_mdebug_frame_args_address): Likewise.
5739 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5740 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5741 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5743 (alpha_heuristic_frame_this_id): Make static.
5744 (alpha_heuristic_frame_prev_register): Likewise.
5745 (alpha_heuristic_frame_base_address): Likewise.
5746 * alpha-tdep.h: Update.
5748 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5750 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5751 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5753 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5754 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5755 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5756 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5757 I386_ST0_REGNUM): New defines.
5758 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5759 codestream_get): Remove define.
5760 (codestream_next_addr, condestream_addr, condestream_buf,
5761 codestream_off, codestream_cnt): Remove variables.
5762 (codestream_fill, codestream_seek, codestream_read): Remove
5764 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5766 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5767 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5768 i386_frame_saved_pc, i386_saved_pc_after_call,
5769 i386_frame_num_args, i386_frame_init_saved_regs,
5770 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5771 i386_push_arguments): Remove functions.
5772 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5773 functionality. Use i386_analyze_prologue instead of
5774 i386_get_frame_setup.
5775 (I386_NUM_SAVED_REGS): New define.
5776 (struct i386_frame_cache): New structure.
5777 (i386_alloc_frame_cache, i386_analyze_struct_return,
5778 i386_skip_probe, i386_analyze_frame_setup,
5779 i386_analyze_register_saves, i386_analyze_prologue,
5780 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5781 i386_frame_prev_register, i386_sigtramp_frame_cache,
5782 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5783 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5784 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5786 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5788 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5789 I386_EAX_REGNUM and I386_EDX_REGNUM.
5790 (i386_extract_return_value, i386_store_return_value): Use
5791 I386_ST0_REGNUM where appropriate.
5792 (i386_extract_struct_value_address): Rewrite to use extract_address.
5793 (i386_svr4_pc_in_sigtramp): Add comment.
5794 (i386_svr4_sigcontext_addr): Rewrite.
5795 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5797 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5798 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5799 of new defines. Set push_dummy_call, don't set
5800 deprecated_push_arguments, deprecated_push_return_address,
5801 deprecated_pop_frame. Don't set parm_boundary. Don't set
5802 deprecated_frame_chain, deprecated_frame_saved_pc,
5803 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5804 save_dummy_frame_tos, unwind_pc. Call
5805 frame_unwind_append_predicate and frame_base_set_default. Don't
5806 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5807 Don't set frameless_function_invocation. Don't set
5808 deprecated_register_bytes, deprecated_register_size,
5809 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5810 * i386-linux-tdep.c: Fix formatting in some comments.
5811 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5812 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5813 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5814 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5815 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5816 redundant parentheses.
5817 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5818 (i386_linux_sigcontext_addr): Use it. Rewrite.
5819 (find_minsym_and_objfile): Change name of second argument.
5820 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5821 changed. Use frame_pc_unwind instead of
5822 DEPRECATED_SAVED_PC_AFTER_CALL.
5823 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5824 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5825 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5827 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5829 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5830 (_initialize_i386_cygwin_tdep): New prototype.
5831 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5832 deprecated_frame_chain_valid.
5833 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5834 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5835 Rely on the SVR4 defaults.
5836 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5837 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5839 2003-05-30 Andrew Cagney <cagney@redhat.com>
5841 * infcall.c (call_function_by_hand): Always call
5842 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5844 2003-05-30 Richard Henderson <rth@redhat.com>
5846 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5849 2003-05-29 Jim Blandy <jimb@redhat.com>
5851 Use gdbarch methods for solib stuff on PowerPC Linux.
5852 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5853 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5855 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5856 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5857 giving the same effect as the #definitions above.
5859 2003-05-29 Adam Fedor <fedor@gnu.org>
5861 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5862 (find_implementation_from_class): Replace it with the standard
5863 case i.e. do nothing.
5865 2003-05-29 Richard Henderson <rth@redhat.com>
5867 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5868 (alpha_linux_sigtramp_offset): Use it. Make static.
5869 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5870 update for new frame model.
5871 * alpha-mdebug-tdep.c: New file.
5872 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5873 (alpha_osf1_init_abi): Install it.
5874 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5875 (linked_proc_desc_table): Remove.
5876 (alpha_frame_past_sigtramp_frame): Remove.
5877 (alpha_dynamic_sigtramp_offset): Remove.
5878 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5879 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5880 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5881 (push_sigtramp_desc): Remove.
5882 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5883 (alpha_cannot_store_register): Likewise.
5884 (alpha_sigcontext_addr): Remove.
5885 (alpha_find_saved_regs): Remove.
5886 (alpha_frame_init_saved_regs): Remove.
5887 (alpha_init_frame_pc_first): Remove.
5888 (read_next_frame_reg): Remove.
5889 (alpha_frame_saved_pc): Remove.
5890 (alpha_saved_pc_after_call): Remove.
5891 (temp_proc_desc, temp_saved_regs): Remove.
5892 (alpha_about_to_return): Remove.
5893 (cached_proc_desc): Remove.
5894 (alpha_frame_chain): Remove.
5895 (alpha_print_extra_frame_info): Remove.
5896 (alpha_init_extra_frame_info): Remove.
5897 (alpha_frame_locals_address): Remove.
5898 (alpha_frame_args_address): Remove.
5899 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5900 (alpha_push_dummy_frame): Remove.
5901 (alpha_pop_frame): Remove.
5902 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5903 (alpha_read_insn): New.
5904 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5905 for different insn encodings.
5906 (alpha_in_lenient_prologue): Remove.
5907 (struct alpha_sigtramp_unwind_cache): New.
5908 (alpha_sigtramp_frame_unwind_cache): New.
5909 (alpha_sigtramp_register_address): New.
5910 (alpha_sigtramp_frame_this_id): New.
5911 (alpha_sigtramp_frame_prev_register): New.
5912 (alpha_sigtramp_frame_unwind): New.
5913 (alpha_sigtramp_frame_p): New.
5914 (struct alpha_heuristic_unwind_cache): New.
5915 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5916 don't count nop insns that occur between functions.
5917 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5918 heuristic_proc_desc, but without the mdebug wrapping.
5919 (alpha_heuristic_frame_this_id): New.
5920 (alpha_heuristic_frame_prev_register): New.
5921 (alpha_heuristic_frame_unwind): New.
5922 (alpha_heuristic_frame_p): New.
5923 (alpha_heuristic_frame_base_address): New.
5924 (alpha_heuristic_frame_base): New.
5925 (alpha_unwind_dummy_id): New.
5926 (alpha_unwind_pc): New.
5927 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5928 frame related deprecated initializations; install replacements.
5929 (alpha_dump_tdep): Remove.
5930 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5931 (alpha_read_insn, alpha_after_prologue,
5932 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5933 alpha_heuristic_frame_prev_register,
5934 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5935 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5936 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5937 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5939 2003-05-29 Andrew Cagney <cagney@redhat.com>
5941 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5942 dependant on the availability of ASSERT_FUNCTION.
5943 (ASSERT_FUNCTION): Do not define when there is no function name.
5945 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5947 From Jimi X <jimix@watson.ibm.com>:
5948 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5950 2003-05-28 Jim Blandy <jimb@redhat.com>
5952 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5953 argument to ptrace to int; the system headers should give it the
5954 right type, and pointers don't fit in ints on powerpc64-*-*.
5956 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5958 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5961 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5963 * stabsread.c (dbx_lookup_type): Make static.
5965 (add_undefined_type): Ditto.
5966 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5969 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5971 * hpread.c (hpread_has_name): Make static.
5972 (hpread_psymtab_to_symtab): Ditto.
5973 (file_exists): Ditto.
5974 (hpread_call_pxdb): Ditto.
5975 (hpread_pxdb_needed): Ditto.
5976 (hpread_quick_traverse): Ditto.
5977 (hpread_get_header): Ditto.
5978 (hpread_get_lntt): Ditto.
5979 (hpread_get_slt): Ditto.
5982 2003-05-25 Andreas Schwab <schwab@suse.de>
5984 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5985 stack_align and deprecated_extra_stack_alignment_needed.
5986 (m68k_stack_align): Delete.
5988 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5989 (m68k_register_virtual_size): Likewise.
5990 (altos_skip_prologue): Remove obsolete function.
5991 (isi_frame_num_args): Likewise.
5992 (news_frame_num_args): Likewise.
5993 (m68k_fix_call_dummy): Make static.
5994 (m68k_push_dummy_frame): Likewise.
5995 (m68k_pop_frame): Likewise.
5996 (m68k_skip_prologue): Likewise.
5997 (m68k_frame_init_saved_regs): Likewise.
5998 (m68k_saved_pc_after_call): Likewise.
5999 (m68k_get_longjmp_target): Make multi-arch.
6000 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6001 structure. Register m68k_get_longjmp_target if enabled.
6002 * m68k-tdep.h (struct gdbarch_tdep): Define.
6003 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6005 * Makefile.in (config.status): Also depend on configure.tgt
6007 (m68klinux-tdep.o): Update dependencies.
6008 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6009 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6010 (M68K_LINUX_JB_PC): Define.
6011 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6012 and take additional parameter.
6013 (m68k_linux_sigtramp_saved_pc): Update.
6014 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6015 m68k_linux_pc_in_sigtramp, in_plt_section,
6016 find_solib_trampoline_target.
6017 * config/m68k/tm-linux.h: Don't include any tm headers.
6018 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6019 (JB_ELEMENT_SIZE): Likewise.
6021 (GET_LONGJMP_TARGET): Likewise.
6022 (IN_SIGTRAMP): Likewise.
6023 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6025 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6027 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6028 (sparc32_push_arguments): Re-implement by calling
6029 sparc32_do_push_arguments.
6031 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6033 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6034 SPARC_O1_REGNUM): New defines.
6035 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6036 (sparc32_store_return_value): New function.
6037 (sparc_extract_struct_value_address): Rewrite to operate on a
6039 (sparc_gdbarch_init): Don't set
6040 deprecated_extract_struct_value_address. Set
6041 extract_struct_value_address instead. Don't set
6042 deprecated_extract_return_value and deprecated_store_return_value
6043 for 32-bit targets. Set extract_return_value and
6044 store_return_value instead.
6045 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6046 DEPRECTAED_EXTRACT_RETURN_VALUE,
6047 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6048 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6049 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6050 (sparc_store_return_value): Remove prototype.
6051 (sparc32_store_return_value): New prototype.
6052 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6055 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6057 * sparcnbsd-tdep.c: Include "gdb_string.h".
6059 2003-05-23 Andrew Cagney <cagney@redhat.com>
6061 * p-valprint.c (pascal_val_print): Replace extract_address with
6062 the inline equivalent extract_unsigned_integer.
6063 * jv-valprint.c (java_value_print): Ditto.
6064 * ada-valprint.c (ada_val_print_1): Ditto.
6065 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6067 2003-05-23 Theodore A. Roth <troth@openavr.org>
6069 * blockframe.c (frameless_look_for_prologue): Remove unused
6070 after_prologue variable.
6072 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6074 * blockframe.c (get_pc_function_start): Rewrite to avoid
6075 asignments in if-statements.
6077 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6079 Committed by Elena Zannoni <ezannoni@redhat.com>.
6080 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6081 files, don't relocate absolute symbols (and do use mst_abs).
6083 2003-05-23 Andrew Cagney <cagney@redhat.com>
6085 * objc-lang.c: Include "gdb_assert.h".
6086 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6087 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6088 (gdb_check, gdb_check_fatal): Delete functions.
6089 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6091 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6092 * Makefile.in (objc-lang.o): Update dependencies.
6094 2003-05-22 Ian Lance Taylor <ian@airs.com>
6096 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6097 with fprintf_filtered, not fprintf_unfiltered.
6099 2003-05-22 Andrew Cagney <cagney@redhat.com>
6101 * stack.c (frame_info): Inline extract_address, replacing it with
6102 extract_unsigned_integer.
6103 * findvar.c (unsigned_pointer_to_address): Ditto.
6104 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6105 * dwarf2expr.c (dwarf2_read_address): Ditto.
6106 * frame.c (frame_pc_unwind): Update comment.
6107 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6109 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6111 * infptrace.c (detach): Call print_sys_errmsg rather than
6112 perror_with_name to issue warning message when errno is non-zero
6113 after calling ptrace detach.
6115 2003-05-21 J. Brobecker <brobecker@gnat.com>
6117 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6118 macro definitions from here...
6119 * hppa-tdep.c: ...to there.
6121 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6123 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6124 register_ptrace_addr(). Fix all callers.
6126 2003-05-21 Andreas Schwab <schwab@suse.de>
6128 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6130 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6132 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6133 (_initialize_m68k_linux_tdep): New function.
6134 (m68k_linux_frame_saved_pc): Make static.
6135 (m68k_linux_extract_return_value): Likewise.
6136 (m68k_linux_store_return_value): Likewise.
6137 (m68k_linux_extract_struct_value_address): Likewise.
6138 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6140 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6141 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6142 (DEPRECATED_FRAME_SAVED_PC): Remove.
6144 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6146 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6147 regset numbering rather than our own.
6149 2003-05-19 David Carlton <carlton@bactrian.org>
6151 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6153 2003-05-19 David Carlton <carlton@bactrian.org>
6155 Partial fix for PR c++/827.
6156 * cp-support.h: Include symtab.h.
6157 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6158 * cp-namespace.c: Update contributors.
6159 (cp_lookup_symbol_nonlocal): New.
6160 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6161 (lookup_symbol_file): Ditto.
6162 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6163 * block.h: Declare block_scope, block_using, block_global_block.
6164 * block.c (block_scope): New.
6165 (block_using, block_global_block): Ditto.
6166 * Makefile.in (cp_support_h): Depend on symtab_h.
6167 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6169 2003-05-19 David Carlton <carlton@bactrian.org>
6171 * language.h (struct language_defn): Add 'la_value_of_this'
6172 and 'la_lookup_symbol_nonlocal' members.
6173 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6174 lookup_symbol_static, lookup_symbol_global,
6175 lookup_symbol_aux_block.
6176 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6177 if we should search fields of this and how to do static/global
6179 (lookup_symbol_aux_block): Make extern.
6180 (basic_lookup_symbol_nonlocal): New.
6181 (lookup_symbol_static, lookup_symbol_global): Ditto.
6182 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6183 'la_lookup_symbol_nonlocal' members.
6184 * c-lang.c (c_language_defn, cplus_language_defn)
6185 (asm_language_defn, minimal_language_defn): Ditto.
6186 * jv-lang.c (java_language_defn): Ditto.
6187 * language.c (unknown_language_defn, auto_language_defn)
6188 (local_language_defn): Ditto.
6189 * m2-lang.c (m2_language_defn): Ditto.
6190 * objc-lang.c (objc_language_defn): Ditto.
6191 * scm-lang.c (scm_language_defn): Ditto.
6192 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6193 * p-lang.c (pascal_language_defn): Ditto for both.
6194 * Makefile.in (f-lang.o): Depend on value_h.
6197 2003-05-19 David Carlton <carlton@bactrian.org>
6199 * block.h: Declare block_static_block.
6200 * block.c (block_static_block): New.
6201 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6202 lookup_symbol_aux_local, calling block_static_block instead.
6203 (lookup_symbol_aux_local): Delete 'static_block' argument.
6205 2003-05-19 David Carlton <carlton@bactrian.org>
6207 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6209 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6211 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6212 register numbers mapping.
6214 2003-05-18 Adam Fedor <fedor@gnu.org>
6216 * symtab.c (completion_list_objc_symbol): New function.
6217 (make_symbol_completion_list): Use it to add ObjC symbols
6218 when looking though the list.
6219 (language_search_unquoted_string): New function.
6220 (make_file_symbol_completion_list): Use it.
6222 2003-05-18 Andreas Schwab <schwab@suse.de>
6224 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6226 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6227 as m68k_linux_extract_return_value.
6228 (DEPRECATED_STORE_RETURN_VALUE): Define as
6229 m68k_linux_store_return_value.
6230 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6231 m68k_linux_extract_struct_value_address.
6232 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6233 get_next_frame, get_frame_base, get_frame_pc.
6234 (m68k_linux_frame_saved_pc): Use get_frame_base.
6235 (m68k_linux_extract_return_value): New function.
6236 (m68k_linux_store_return_value): New function.
6237 (m68k_linux_extract_struct_value_address): New function.
6238 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6240 * c-exp.y (typebase): Remove duplicate occurence of
6241 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6242 of lookup_signed_typename.
6244 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6246 * dwarf2loc.c (find_location_expression): Change type of second
6247 argument to `size_t *'.
6248 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6251 2003-05-18 David Carlton <carlton@bactrian.org>
6253 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6254 'linkage_name'. Add comment.
6255 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6257 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6258 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6259 (lookup_block_symbol): Ditto.
6261 2003-05-16 Andrew Cagney <cagney@redhat.com>
6263 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6264 * gdbarch.h, gdbarch.c: Re-generate.
6265 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6266 * TODO (REGISTER_BYTES): Delete reference.
6267 * alpha-tdep.c (alpha_gdbarch_init): Update.
6268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6269 * x86-64-tdep.c (x86_64_init_abi): Update.
6270 * vax-tdep.c (vax_gdbarch_init): Update.
6271 * v850-tdep.c (v850_gdbarch_init): Update.
6272 * sparc-tdep.c (sparc_gdbarch_init): Update.
6273 * sh-tdep.c (sh_gdbarch_init): Update.
6274 * s390-tdep.c (s390_gdbarch_init): Update.
6275 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6276 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6277 (ns32k_gdbarch_init_32382): Update.
6278 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6279 * mcore-tdep.c (mcore_gdbarch_init): Update.
6280 * m68k-tdep.c (m68k_gdbarch_init): Update.
6281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6282 * ia64-tdep.c (ia64_gdbarch_init): Update.
6283 * i386-tdep.c (i386_gdbarch_init): Update.
6284 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6285 * hppa-tdep.c (hppa_gdbarch_init): Update.
6286 * h8300-tdep.c (h8300_gdbarch_init): Update.
6287 * frv-tdep.c (frv_gdbarch_init): Update.
6288 * cris-tdep.c (cris_gdbarch_init): Update.
6289 * avr-tdep.c (avr_gdbarch_init): Update.
6290 * arm-tdep.c (arm_gdbarch_init): Update.
6291 * sparc-tdep.c (sparc_pop_frame): Update.
6292 * rs6000-tdep.c (rs6000_pop_frame): Update.
6293 * remote.c (init_remote_state): Update.
6294 (remote_prepare_to_store): Update.
6295 * remote-vx.c (vx_prepare_to_store): Update.
6296 * remote-sds.c (sds_fetch_registers): Update.
6297 (sds_prepare_to_store): Update.
6298 * remote-array.c: Update.
6299 * regcache.c (init_legacy_regcache_descr): Update.
6300 (init_regcache_descr): Update.
6301 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6302 (mips_o64_extract_return_value): Update.
6303 * irix5-nat.c (fetch_core_registers): Update.
6304 * irix4-nat.c (fetch_core_registers): Update.
6305 * i386-tdep.h: Update.
6306 * hppa-tdep.c (pa_do_registers_info): Update.
6307 (pa_do_strcat_registers_info): Update.
6308 * cris-tdep.c (cris_register_bytes_ok): Update.
6309 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6310 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6311 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6312 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6313 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6314 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6315 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6316 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6317 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6318 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6319 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6320 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6321 (REGISTER_BYTES_OK): Update.
6322 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6323 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6325 2003-05-16 Ian Lance Taylor <ian@airs.com>
6327 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6328 (vax_print_insn, print_insn_arg): Remove static functions.
6329 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6330 print_insn_vax from opcodes library.
6331 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6333 2003-05-15 Andrew Cagney <cagney@redhat.com>
6335 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6336 * target.h (memory_breakpoint_from_pc): Delete declaration.
6337 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6338 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6339 * monitor.c (monitor_insert_breakpoint): Use
6340 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6341 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6342 * gdbarch.h, gdbarch.c: Re-generate.
6343 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6344 (sparc_gdbarch_init): Set breakpoint_from_pc to
6345 sparc_breakpoint_from_pc.
6346 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6347 (BREAKPOINT_FROM_PC): Define.
6348 (sparc_breakpoint_from_pc): Declare.
6349 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6350 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6351 (BREAKPOINT_FROM_PC): Define.
6352 (BREAKPOINT): Delete macro.
6353 * target.h: Update comment.
6354 * s390-tdep.c (s390_gdbarch_init): Update comments.
6355 * remote.c: Update comments.
6356 * remote-mips.c: Update comments.
6357 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6358 * mem-break.c: Update comment.
6359 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6360 (ia64_memory_insert_breakpoint): Update.
6361 * config/sparc/tm-sparc.h: Update comment.
6362 * config/pa/tm-hppa64.h: Update comment.
6363 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6364 (rs6000_breakpoint_from_pc): Update.
6365 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6366 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6367 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6368 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6369 (mips_breakpoint_from_pc): Update.
6370 (mips_dump_tdep): Update.
6372 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6373 * minsyms.c (lookup_minimal_symbol): Inline
6374 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6376 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6377 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6378 * p-lang.c (pascal_printstr): Ditto.
6379 * objc-lang.c (objc_printstr): Ditto.
6380 * m2-lang.c (m2_printstr): Ditto.
6381 * jv-valprint.c (java_print_value_fields): Ditto.
6382 * f-lang.c (f_printstr): Ditto.
6383 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6384 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6385 for repeat_count_threshold.
6386 * Makefile.in (cp-valprint.o): Update dependencies.
6388 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6390 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6391 (examine_prologue): Support looking through leaf functions, knowing
6392 they start with mov r2,r12. Support skipping over indirect stores
6393 of the input registers. Upon hitting a non-nop branch instruction
6394 or predicated instruction, bail out by setting lim_pc to the current
6395 pc value in the loop. At the end, if the lim_pc value is still
6396 beyond our calculated value and we have trust_limit set,
6397 use the lim_pc value.
6399 2003-05-15 Andrew Cagney <cagney@redhat.com>
6401 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6402 generic_find_dummy_frame.
6403 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6404 (deprecated_generic_find_dummy_frame): Update.
6405 (deprecated_read_register_dummy): Update.
6406 * frame.c (deprecated_generic_get_saved_register): Update.
6408 2003-05-15 Theodore A. Roth <troth@openavr.org>
6410 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6411 (avr_gdbarch_init): Set breakpoint_from_pc method.
6413 2003-05-15 Andrew Cagney <cagney@redhat.com>
6415 * regcache.c (build_regcache): Set deprecated_register_valid
6417 (deprecated_grub_regcache_for_register_valid): Delete function.
6418 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6421 2003-05-15 David Carlton <carlton@bactrian.org>
6423 Committed by Elena Zannoni <ezannoni@redhat.com>
6424 * symtab.c (lookup_symbol_aux): Delete calls to
6425 lookup_symbol_aux_minsyms.
6426 (lookup_symbol_aux_minsyms): Comment out function and
6427 prototype. Delete lookup by mangled name.
6429 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6431 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6432 correctly indicate an empty stack and ``stack_allocated'' to the
6433 indicate the number of elements initially allocated.
6434 (dwarf_expr_grow_stack): Simplify method for computing new
6435 stack size. Don't loop infinitely if ``stack_len'' is zero.
6436 (execute_stack_op): Move ``ctx->in_reg'' initialization
6437 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6438 be used in conjuction with DW_OP_piece. Revise error message
6441 2003-05-14 Theodore A. Roth <troth@openavr.org>
6443 * MAINTAINERS: Update my email address.
6444 * avr-tdep.c: Ditto.
6446 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6448 * symtab.h (enum domain_enum): Rename from namespace_enum.
6449 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6450 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6451 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6452 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6453 TYPES_NAMESPACE, METHODS_NAMESPACE.
6454 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6455 (struct symbol, struct partial_symbol): Rename field
6456 'namespace_enum namespace' to 'domain_enum domain'.
6457 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6458 Delete old define kludge for namespace.
6460 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6461 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6462 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6463 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6464 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6465 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6466 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6467 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6468 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6469 occurrences of the above.
6471 2003-05-14 Ian Lance Taylor <ian@airs.com>
6473 * Makefile.in (install-only): Use $(SHELL) when running
6476 2003-05-13 Ian Lance Taylor <ian@airs.com>
6478 * MAINTAINERS (write after approval): Add myself.
6480 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6481 second and third arguments.
6482 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6483 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6485 2003-05-13 Andrew Cagney <cagney@redhat.com>
6487 * defs.h (store_address): Delete declaration.
6488 findvar.c (store_address): Delete function.
6489 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6490 store_unsigned_integer.
6491 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6492 * v850-tdep.c (v850_push_arguments): Ditto.
6493 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6494 * sh-tdep.c (sh64_get_saved_register): Ditto.
6495 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6496 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6497 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6498 (mips_get_saved_register): Ditto.
6499 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6500 (find_func_descr, ia64_push_arguments): Ditto.
6501 * i386-tdep.c (i386_push_arguments): Ditto.
6502 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6503 * frv-tdep.c (frv_push_arguments): Ditto.
6504 * frame.c (legacy_saved_regs_prev_register): Ditto.
6505 (deprecated_generic_get_saved_register): Ditto.
6506 * findvar.c (unsigned_address_to_pointer): Ditto.
6507 * dwarf2read.c (dwarf2_const_value): Ditto.
6508 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6509 * alpha-tdep.c (alpha_push_arguments): Ditto.
6511 2003-05-12 J. Brobecker <brobecker@gnat.com>
6513 * NEWS: Mention that the hppa-hpux port has been partially
6514 multiarched (32bit ABIT only, so far).
6516 2003-05-11 Andrew Cagney <cagney@redhat.com>
6518 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6519 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6520 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6521 sim/testsuite/sim/arm/misaligned2.ms, and
6522 sim/testsuite/sim/arm/misaligned3.ms.
6523 * disasm.h (struct ui_file): Add opaque struct declaration.
6524 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6525 * frame.h (struct ui_file): Ditto.
6527 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6529 * value.h: Pretty print.
6531 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6533 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6535 2003-05-08 Andrew Cagney <cagney@redhat.com>
6537 * regcache.h (max_register_size): Delete declaration.
6538 * regcache.c (max_register_size): Delete function.
6539 (struct regcache_descr): Delete field "max_register_size".
6540 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6541 registers fit in MAX_REGISTER_SIZE.
6542 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6543 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6544 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6545 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6546 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6547 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6548 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6549 * dve3900-rom.c, hppa-tdep.c: Ditto.
6551 2003-05-08 David Carlton <carlton@math.stanford.edu>
6553 * valops.c (push_word): Fix typo.
6555 2003-05-08 Andrew Cagney <cagney@redhat.com>
6557 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6558 * gdbarch.h: Re-generate.
6559 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6560 (legacy_max_register_raw_size): Delete declaration.
6561 * regcache.c (legacy_max_register_raw_size): Delete function.
6562 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6563 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6564 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6565 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6566 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6567 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6568 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6569 * findvar.c, dwarf2cfi.c: Ditto.
6571 2003-05-08 Andrew Cagney <cagney@redhat.com>
6573 * mips-tdep.c (read_signed_register): New function, moved to here
6575 (read_signed_register_pid): Ditto.
6576 * regcache.c (read_signed_register_pid): Delete function, moved to
6578 (read_signed_register): Ditto.
6579 * regcache.h (read_signed_register): Delete declaration.
6580 (read_signed_register_pid): Delete declaration.
6582 2003-05-08 Andrew Cagney <cagney@redhat.com>
6584 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6585 * gdbarch.h: Re-generate.
6586 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6587 (legacy_max_register_virtual_size): Delete declaration.
6588 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6589 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6590 * tracepoint.c (memrange_sortmerge): Ditto.
6591 * sparc-tdep.c (sparc_print_registers): Ditto.
6592 * regcache.c (legacy_max_register_virtual_size): Delete function.
6594 2002-05-08 J. Brobecker <brobecker@gnat.com>
6596 * fork-child.c (escape_bang_in_quoted_argument): New function.
6597 (fork_inferior): Escape '!' characters in quoted arguments
6600 2003-05-08 J. Brobecker <brobecker@gnat.com>
6602 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6603 the language of the CU is not currently supported by GDB.
6605 2003-05-08 J. Brobecker <brobecker@gnat.com>
6607 * defs.h (language): Add language_minimal enum value.
6608 * c-lang.c (minimal_language_defn): New language definition.
6609 (_initialize_c_language): Add the new minimal language to the list
6610 of languages known to GDB.
6612 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6614 * frame.c (get_frame_type): Don't attempt to lazily initialize
6615 frame's unwinder for legacy frames.
6617 2003-05-07 Andrew Cagney <cagney@redhat.com>
6619 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6620 and "regcache" parameters.
6621 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6623 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6625 * dwarf2read.c (dwarf_decode_lines): Only use output of
6626 check_cu_functions() when calling record_line(). Do not update
6627 the current address.
6629 2003-05-07 Andrew Cagney <cagney@redhat.com>
6631 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6634 2003-05-07 Jim Blandy <jimb@redhat.com>
6636 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6637 'maint info symtabs' and 'maint info psymtabs'.
6638 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6639 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6640 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6641 Declarations updated.
6642 * maint.c (maintenance_list_command): Delete.
6643 (_initialize_maint_cmds): Update calls to add_cmd.
6644 * gdbcmd.h (maintenancelistlist): Delete declaration.
6645 * cli/cli-cmds.c (maintenancelistlist): Delete.
6646 (init_cmd_lists): Don't initialize it.
6647 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6649 2003-05-07 Andrew Cagney <cagney@redhat.com>
6651 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6653 (d10v_print_registers_info): Update.
6654 (d10v_dmap_register, d10v_imap_register): Delete functions.
6655 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6656 and "imap_register".
6657 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6658 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6659 * arch-utils.c (generic_remote_translate_xfer_address): Add
6660 "regcache" and "gdbarch" parameters.
6661 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6662 parameter. Change class to multi-arch.
6663 * gdbarch.h, gdbarch.c: Re-generate.
6664 * remote.c (remote_xfer_memory): Use
6665 gdbarch_remote_translate_xfer_address.
6667 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6669 * infrun.c (prev_pc): Move declaration ahead of proceed().
6670 (proceed): Refresh prev_pc value before resuming.
6671 (stop_stepping): Remove code to refresh prev_pc.
6673 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6675 * nto-tdep.c: Removed stray comment.
6677 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6679 * i386-nto-tdep.c: Fix old K&R function definitions.
6680 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6681 Also change add_show_from_set() call to add_setshow_cmd().
6682 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6684 2003-05-05 Andrew Cagney <cagney@redhat.com>
6686 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6687 (fprint_dummy_frames): New function.
6688 (maintenance_print_dummy_frames): New function.
6689 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6690 * frame.c (fprint_frame_id): Make global.
6691 * frame.h (fprint_frame_id): Declare.
6692 * Makefile.in (dummy-frame.o): Update dependencies.
6694 2003-05-05 Andrew Cagney <cagney@redhat.com>
6696 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6697 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6698 SIZEOF_CALL_DUMMY_WORDS.
6699 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6700 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6701 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6702 CALL_DUMMY_BREAKPOINT_OFFSET.
6703 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6704 CALL_DUMMY_START_OFFSET.
6705 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6706 * gdbarch.h, gdbarch.c: Re-generate.
6707 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6708 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6709 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6710 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6711 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6712 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6713 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6714 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6715 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6716 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6717 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6718 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6719 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6720 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6721 * config/sparc/tm-sparc.h: Update.
6723 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6725 * configure.tgt: Add i[3456]86-*-nto*.
6726 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6727 * nto-tdep.c: New file. Neutrino target support routines.
6728 * nto-tdep.h: New file. Neutrino target header.
6729 * config/tm-qnxnto.h: New file.
6730 * config/i386/i386nto.mt: New file.
6731 * config/i386/tm-i386nto.h: New file.
6733 2003-05-04 Andrew Cagney <cagney@redhat.com>
6735 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6736 (load_infrun_state): Ditto.
6737 (struct thread_info): Drop "prev_func_name" field.
6738 * thread.c (load_infrun_state): Update.
6739 (save_infrun_state): Update.
6740 * infrun.c (prev_func_name): Delete variable.
6741 (init_wait_for_inferior): Do not clear prev_func_name.
6742 (stop_stepping, keep_going, context_switch): Do not swap
6744 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6745 instead of PC_IN_SIGTRAMP.
6747 2003-05-04 Andrew Cagney <cagney@redhat.com>
6749 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6750 REGISTER_BYTE with register_offset_hack.
6751 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6752 that REGISTER_BYTE is consistent with the regcache.
6753 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6754 * gdbarch.h, gdbarch.c: Regenerate.
6756 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6758 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6759 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6761 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6763 2003-05-03 J. Brobecker <brobecker@gnat.com>
6765 From Thierry Schneider <tpschneider1@yahoo.com>
6766 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6767 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6768 (mi-cmd-symbol.o): Add rule.
6770 2003-05-03 Andrew Cagney <cagney@redhat.com>
6772 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6773 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6774 * gdbarch.h, gdbarch.c: Re-generate.
6775 * d10v-tdep.c (d10v_push_dummy_code): New function.
6776 (d10v_gdbarch_init): Set push_dummy_code.
6777 * infcall.c (legacy_push_dummy_code): New function.
6778 (generic_push_dummy_code): New function.
6779 (push_dummy_code): New function.
6780 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6781 instead of dummy_addr, to push_dummy_call. Move call to
6782 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6784 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6786 2003-05-03 Andrew Cagney <cagney@redhat.com>
6788 * disasm.h (print_insn): Declare.
6789 * disasm.c (init_gdb_disassemble_info): New function.
6790 (gdb_disassembly): Call init_gdb_disassemble_info.
6791 (gdb_print_insn): New function.
6792 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6793 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6794 * mcore-tdep.c: Include "disasm.h"
6795 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6796 * d10v-tdep.c: Include "disasm.h".
6797 (display_trace): Call gdb_print_insn, instead of print_insn.
6798 (print_insn): Delete function.
6799 * printcmd.c: Include "disasm.h".
6800 (print_insn): Delete function.
6801 (print_formatted): Call gdb_print_insn, instead of print_insn.
6802 * Makefile.in (printcmd.o): Update dependencies.
6803 (mcore-tdep.o, d10v-tdep.o): Ditto.
6805 2003-05-02 Andrew Cagney <cagney@redhat.com>
6807 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6808 PC_REGNUM, re-indent.
6809 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6810 PC_REGNUM isn't set.
6812 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6813 * gdbarch.h, gdbarch.c: Re-generate.
6814 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6815 register_virtual_size, pc_regnum, or register_bytes.
6816 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6817 (d10v_register_type): Use D10V_PC_REGNUM.
6818 (d10v_print_registers_info, d10v_read_pc): Ditto.
6819 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6820 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6822 2003-05-02 David Carlton <carlton@bactrian.org>
6824 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6825 the name with mstrsave.
6827 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6829 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6830 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6831 (host_charset_name, target_charset_name): New vars for use by
6833 (host_charset_enum, target_charset_enum): New enums for set/show
6835 (set_charset_sfunc, set_host_charset_sfunc,
6836 set_target_charset_sfunc): New functions.
6837 (set_host_charset, set_target_charset): Make static.
6838 (list_charsets, set_host_charset_command,
6839 set_target_charset_command): Delete functions.
6840 (show_charset_command): Rewrite as....
6841 (show_charset): Hook this up with the set/show command mechanism.
6842 (_initialize_charset): Change names of charsets to match the
6843 set/show enums. Use host_charset_name and target_charset_name.
6844 Use set/show mechanism for charset, host-charset, target-charset
6845 commands. Do not make 'show host-charset' and 'show
6846 target-charset' be aliases of 'show charset'.
6848 * charset.h (set_host_charset, set_target_charset): Don't export,
6849 they are not used outside the file.
6851 2003-05-01 Andrew Cagney <cagney@redhat.com>
6853 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6854 (gdb_disassembly): Make "di" non static, always initialize and
6855 cleanup. Always use dis_asm_read_memory.
6856 (gdb_dis_asm_read_memory): Delete function.
6858 2003-05-01 Andrew Cagney <cagney@redhat.com>
6860 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6861 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6863 2003-04-30 Andrew Cagney <cagney@redhat.com>
6865 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6866 "tm_print_insn_info".
6867 (TARGET_PRINT_INSN_INFO): Delete macro.
6868 (dis_asm_read_memory): Delete function declaration.
6869 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6870 (tm_print_insn_info): Delete variable definition.
6871 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6872 * gdbarch.h, gdbarch.c: Re-generate.
6873 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6874 "deprecated_tm_print_insn_info".
6875 * mcore-tdep.c (mcore_dump_insn): Ditto.
6876 * mips-tdep.c (mips_gdbarch_init): Ditto.
6877 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6878 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6879 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6880 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6881 instead of TARGET_PRINT_INSN_INFO, add comment.
6882 * s390-tdep.c (s390_get_frame_info): Instead of
6883 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6884 (s390_check_function_end, s390_is_sigreturn): Ditto.
6885 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6886 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6887 * disasm.c: Include "gdbcore.h".
6888 (_initialize_disasm): New function, initialize
6889 "deprecated_tm_print_insn_info".
6890 (deprecated_tm_print_insn_info): New variable.
6891 (dis_asm_read_memory): Moved from "corefile.c", made static.
6892 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6893 * Makefile.in (disasm.o): Update dependencies.
6895 2003-04-30 Andrew Cagney <cagney@redhat.com>
6897 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6899 2003-04-29 Adam Fedor <fedor@gnu.org>
6901 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6902 * infcall.c (find_function_addr): Make non-static.
6903 * infcall.h (find_function_addr): Declare.
6904 * Makefile.in (eval.o): Update dependencies.
6906 2003-04-28 Adam Fedor <fedor@gnu.org>
6908 * symtab.c (symbol_find_demangled_name): Check for and demangle
6910 (symbol_init_demangled_name): Init for language_objc as well.
6912 2003-04-28 Andrew Cagney <cagney@redhat.com>
6914 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6915 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6916 * gdbarch.h, gdbarch.c: Re-generate.
6917 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6918 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6919 * inferior.h (deprecated_read_fp): Rename read_fp.
6920 (generic_target_read_fp): Delete declaration.
6921 * regcache.c (generic_target_read_fp): Delete function.
6922 (deprecated_read_fp): Replace read_fp, use
6923 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6924 * d10v-tdep.c (d10v_read_fp): Delete function.
6925 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6927 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6928 deprecated_target_read_fp to generic_target_read_fp.
6929 * sh-tdep.c (sh_gdbarch_init): Ditto.
6930 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6932 * frv-tdep.c (frv_gdbarch_init): Ditto.
6934 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6935 deprecated_fp_regnum.
6936 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6937 * vax-tdep.c (vax_gdbarch_init): Ditto.
6938 * v850-tdep.c (v850_gdbarch_init): Ditto.
6939 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6940 * sh-tdep.c (sh_gdbarch_init): Ditto.
6941 * s390-tdep.c (s390_gdbarch_init): Ditto.
6942 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6943 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6944 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6945 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6947 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6948 * i386-tdep.c (i386_gdbarch_init): Ditto.
6949 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6950 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6951 * frv-tdep.c (frv_gdbarch_init): Ditto.
6952 * cris-tdep.c (cris_gdbarch_init): Ditto.
6953 * avr-tdep.c (avr_gdbarch_init): Ditto.
6954 * arm-tdep.c (arm_gdbarch_init): Ditto.
6955 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6957 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6958 * v850-tdep.c (v850_gdbarch_init): Ditto.
6959 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6960 * sh-tdep.c (sh_gdbarch_init): Ditto.
6961 * s390-tdep.c (s390_gdbarch_init): Ditto.
6962 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6963 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6964 * mips-tdep.c (mips_gdbarch_init): Ditto.
6965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6966 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6967 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6968 * frv-tdep.c (frv_gdbarch_init): Ditto.
6969 * avr-tdep.c (avr_gdbarch_init): Ditto.
6970 * arm-tdep.c (arm_gdbarch_init): Ditto.
6972 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6973 DEPRECATED_FP_REGNUM.
6974 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6975 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6976 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6977 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6978 (sparc32_register_virtual_type): Ditto.
6979 * sh-tdep.c (sh64_frame_chain): Ditto.
6980 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6981 (sh_nofp_frame_init_saved_regs): Ditto.
6982 (sh64_nofp_frame_init_saved_regs): Ditto.
6983 (sh_fp_frame_init_saved_regs): Ditto.
6984 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6985 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6986 * procfs.c (procfs_fetch_registers): Ditto.
6987 (procfs_store_registers): Ditto.
6988 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6989 (store_inferior_registers, fetch_core_registers): Ditto.
6990 (fetch_kcore_registers, clear_regs): Ditto.
6991 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6992 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6993 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6994 * nlm/i386.c (do_status): Ditto.
6995 * mipsv4-nat.c (supply_gregset): Ditto.
6996 * mips-tdep.c: Ditto for comments.
6997 * mips-nat.c (fetch_inferior_registers): Ditto.
6998 (store_inferior_registers, fetch_core_registers): Ditto.
6999 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7000 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7001 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7002 (i386_do_pop_frame, i386_register_type): Ditto.
7003 * hppa-tdep.c (hppa_frame_chain): Ditto.
7004 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7005 (hppa_pop_frame, hppa_read_fp): Ditto.
7006 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7007 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7008 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7009 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7010 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7011 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7012 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7013 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7014 * blockframe.c: Ditto for comments.
7015 * arch-utils.h: Ditto for comments.
7016 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7017 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7018 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7019 * alpha-tdep.h: Ditto for comments.
7020 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7021 (alpha_cannot_store_register): Ditto.
7022 (alpha_push_dummy_frame): Ditto.
7023 * alpha-nat.c (supply_gregset): Ditto.
7025 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7026 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7027 * config/sparc/tm-sparc.h: Update comment.
7029 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7030 deprecated_read_fp instead of TARGET_READ_FP.
7031 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7032 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7033 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7034 deprecated_read_fp instead of read_fp.
7035 * s390-tdep.c (s390_push_arguments): Ditto.
7036 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7037 * frame.h: Ditto in comments.
7038 * frame.c (legacy_get_prev_frame): Ditto.
7039 * dummy-frame.c (dummy_frame_this_id): Ditto.
7040 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7042 2003-04-28 Andrew Cagney <cagney@redhat.com>
7044 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7045 * gdbarch.h, gdbarch.c: Re-generate.
7046 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7047 * vax-tdep.c (_initialize_vax_tdep): Update.
7048 * v850-tdep.c (_initialize_v850_tdep): Update.
7049 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7050 * s390-tdep.c (_initialize_s390_tdep): Update.
7051 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7052 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7053 * mips-tdep.c (_initialize_mips_tdep): Update.
7054 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7055 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7056 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7057 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7058 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7059 * frv-tdep.c (_initialize_frv_tdep): Update.
7060 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7061 (_initialize_cris_tdep): Update.
7062 * arch-utils.c (legacy_print_insn): Update.
7063 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7065 2003-04-26 Adam Fedor <fedor@gnu.org>
7067 * linespec.c (decode_objc): New function to decode ObjC calls
7068 (decode_line_1): Check for ObjC calls (using decode_objc)
7069 * Makefile (linespec.o): Update dependencies.
7071 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7073 * breakpoint.h (struct breakpoint_ops): New.
7074 (struct breakpoint): Add ops member.
7076 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7077 (mention): Use new breakpoint ops member.
7078 (set_raw_breakpoint): Initialize ops field to NULL.
7079 (print_exception_catchpoint, print_one_exception_catchpoint)
7080 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7081 (gnu_v3_exception_catchpoint_ops): New.
7082 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7084 2003-04-25 Adam Fedor <fedor@gnu.org>
7086 * Makefile.in (COMMON_OBS): Add objc-lang.o
7088 2003-04-25 Andrew Cagney <cagney@redhat.com>
7090 * d10v-tdep.c (print_insn): Delete function.
7091 (display_trace): Use TARGET_PRINT_INSN.
7092 (_initialize_d10v_tdep): Do not set tm_print_insn.
7093 (d10v_gdbarch_init): Set print_insn.
7095 2003-04-25 Andrew Cagney <cagney@redhat.com>
7097 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7098 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7099 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7100 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7101 (nr_dmap_regs, a0_regnum): ... new functions.
7102 (d10v_print_registers_info): Use a0_regnum, use register_size.
7103 (d10v_register_byte): Delete function.
7104 (d10v_register_raw_size): Delete function.
7105 (d10v_register_type): Use a0_regnum.
7106 (d10v_print_registers_info): Use a0_regnum.
7107 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7108 (d10v_gdbarch_init): Do not set register_byte or
7109 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7110 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7112 (trace_command): Use XCALLOC.
7113 (print_insn): Delete reference to tm_print_insn.
7114 (saved_regs_unwinder): Use store_unsigned_integer instead of
7116 * frame.h (FRAME_OBSTACK_CALLOC): Define
7118 2003-04-25 David Carlton <carlton@bactrian.org>
7120 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7122 2003-04-24 Adam Fedor <fedor@gnu.org>
7124 * objc-lang.c: Include "valprint.h"
7125 * Makefile.in (objc-lang.o): Update dependencies.
7127 2003-04-24 Adam Fedor <fedor@gnu.org>
7129 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7130 architecture dependant compilation and mark as unimplemented
7131 (until they get put in the gdbarch vector).
7133 2003-04-23 David Carlton <carlton@bactrian.org>
7135 * cp-support.c (cp_find_first_component): Accept 'operator' in
7138 2003-04-23 Andrew Cagney <cagney@redhat.com>
7140 * infcall.c (call_function_by_hand): Eliminate redundant
7141 indentation. Move "saved_async" and "old_cleanups" to where they
7144 2003-04-23 Andrew Cagney <cagney@redhat.com>
7146 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7147 and "buffer". Move the "name" code to where it is needed.
7149 2003-04-23 Andrew Cagney <cagney@redhat.com>
7151 * infcall.c (call_function_by_hand): Move variables "start_sp",
7152 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7153 code to ON_STACK switch branch.
7155 2003-04-23 Andrew Cagney <cagney@redhat.com>
7157 * infcall.c (call_function_by_hand): Make declaration of "i",
7158 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7161 2003-04-23 Andrew Cagney <cagney@redhat.com>
7163 * infcall.c (call_function_by_hand): Delete variable
7164 "n_method_args". Localize "param_type"'s declaration to the loop
7165 that it is used. Reinstate code assigning to said variable -
7166 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7167 Rationalize code using "param_type".
7169 2003-04-22 Andrew Cagney <cagney@redhat.com>
7171 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7172 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7173 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7174 to DEPRECATED_PUSH_RETURN_ADDRESS.
7176 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7178 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7179 on the DWARF2 register number prior to fetching a register.
7181 2003-04-22 J. Brobecker <brobecker@gnat.com>
7183 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7184 Update all the tests using SOFT_FLOAT considering the fact that
7185 this macro was always set to 0.
7186 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7187 considering the fact that this macro was always set to 0.
7188 * hppa-tdep.h (hppa_store_return_value): Likewise.
7189 (hppa_extract_return_value): Likewise.
7191 2003-04-22 J. Brobecker <brobecker@gnat.com>
7193 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7194 the hppa-pro target only.
7196 2003-04-21 J. Brobecker <brobecker@gnat.com>
7198 Ongoing multi-arch conversion effort for HP/UX:
7199 * config/pa/tm-hppa.h: Move all macro that are no longer
7200 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7201 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7203 2003-04-21 J. Brobecker <brobecker@gnat.com>
7205 * config/pa/tm-hppa.h: Obsolete a section that was only used
7208 2003-04-21 J. Brobecker <brobecker@gnat.com>
7210 Ongoing multi-arch conversion for HP/UX.
7211 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7212 if already defined (allows hppa64 to stay non-multiarched for now).
7213 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7215 2003-04-21 Andrew Cagney <cagney@redhat.com>
7217 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7219 2003-04-21 Andrew Cagney <cagney@redhat.com>
7221 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7222 "i386_num_mmx_regs".
7224 2003-04-21 Andrew Cagney <cagney@redhat.com>
7226 * infcall.c: New file.
7227 * infcall.h: New file.
7228 * valarith.c: Include "infcall.h".
7229 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7230 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7231 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7232 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7233 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7234 (SFILES): Add "infcall.c"
7235 (COMMON_OBS): Add "infcall.o".
7236 (infcall.o): Specify dependencies.
7237 * value.h (call_function_by_hand): Delete declaration.
7238 * inferior.h (run_stack_dummy): Delete declaration.
7239 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7240 (run_stack_dummy): Move to "infcall.c", merged into
7241 call_function_by_hand.
7242 * valops.c (call_function_by_hand): Moved to "infcall.c".
7243 (find_function_addr, value_arg_coerce): Ditto.
7244 (unwindonsignal_p, coerce_float_to_double): Ditto.
7245 (_initialize_valops): Move "set/show coerce-float-to-double", and
7246 "set/show unwindonsignal" commands to "infcall.c".
7247 * v850-tdep.c, target.h: Update comments.
7248 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7249 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7250 (sh64_init_extra_frame_info): Update comments.
7251 * mn10300-tdep.c: Update comments.
7252 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7253 * config/sparc/tm-sparc.h: Update comments.
7254 * breakpoint.h: Update comments.
7255 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7256 * arm-tdep.c: Update comment.
7258 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7260 * i386-tdep.c (i386_num_register_names): New variable.
7261 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7262 (MM0_REGNUM): Remove redundant parentheses in define.
7263 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7264 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7265 i386_mxcsr_regnum_p): Remove redundant parentheses.
7266 (i386_register_name): Use i386_num_register_names.
7268 * i386-tdep.c (i386_extract_return_value,
7269 i386_store_return_value): Correct check for availability of
7270 floating-point registers.
7272 * i386-tdep.c (i386_frame_num_args): Remove function.
7273 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7275 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7276 mmx_regnum_to_fp_regnum. Adjust all callers.
7278 * i386-tdep.c (i386_get_longjmp_target): Use
7279 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7280 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7283 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7285 * core-regset.c: Update comments to reflect reality. Re-order
7287 (fetch_core_registers): Use switch instead of if. Remove
7288 redundant prototype.
7290 2003-04-18 Jim Blandy <jimb@redhat.com>
7292 * s390-tdep.c (s390_frame_align): New function.
7293 (s390_gdbarch_init): Register it with the gdbarch object.
7295 2003-04-17 Richard Henderson <rth@redhat.com>
7297 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7299 2003-04-17 Michael Snyder <msnyder@redhat.com>
7300 Karen Bennet <bennet@redhat.com>
7302 Committed by Elena Zannoni <ezannoni@redhat.com>
7303 * gdb_gcore.sh: New script to create a core dump of a process.
7305 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7307 * values.c (value_being_returned): Don't fetch the return
7308 value if the return type is void.
7310 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7312 * thread-db.c: Reindented.
7314 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7316 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7317 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7344 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7346 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7347 the size of ``long double'' to 16, instead of 8.
7349 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7351 * i386-linux-nat.c: Add some whitespace to make things more
7353 (fetch_register, store_register, fetch_inferior_registers,
7354 store_inferior_registers): Get rid of assignment in if-statement.
7355 (store_register): Fix typo in error message.
7357 2003-04-16 Andrew Cagney <cagney@redhat.com>
7359 * utils.c (xmmalloc): Always allocate something, matches
7360 libiberty/xmalloc's semantics.
7361 (xmrealloc, xmcalloc): Ditto.
7363 2003-04-16 Andrew Cagney <cagney@redhat.com>
7365 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7367 (get_frame_type): Initialize unwind and type when needed.
7368 (get_frame_id, frame_register_unwind): Ditto.
7370 2003-04-16 Andrew Cagney <cagney@redhat.com>
7372 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7374 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7375 * sparcl-stub.c: Obsolete file.
7376 * config/sparc/tm-sparclet.h: Obsolete file.
7377 * sparclet-stub.c: Obsolete file.
7378 * sparclet-rom.c: Obsolete file.
7379 * sparcl-tdep.c: Obsolete file.
7380 * config/sparc/tm-sparclite.h: Obsolete file.
7381 * config/sparc/sparclite.mt: Obsolete file.
7382 * config/sparc/sparclet.mt: Obsolete file.
7383 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7384 sparc86x-*-* obsolete.
7386 2003-04-15 David Carlton <carlton@math.stanford.edu>
7388 * Makefile.in (SFILES): Add cp-namespace.c.
7389 (COMMON_OBS): Add cp-namespace.o.
7390 (block.o): Depend on gdb_obstack_h and cp_support_h.
7391 (buildsym.o): Depend on cp_support_h.
7392 (cp-namespace.o): New.
7393 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7394 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7395 (dwarf2read.o): Depend on cp_support_h.
7396 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7397 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7398 processing_current_namespace.
7399 (read_namespace): Update processing_current_namespace; check for
7400 anonymous namespaces.
7401 (dwarf2_name): New function.
7402 (dwarf2_extension): Ditto.
7403 * cp-support.h: Update copyright, contributors.
7404 Add inclusion guards.
7405 Add opaque declaration for structs obstack, block, symbol.
7406 (struct using_direct): New struct.
7407 Add declarations for cp_find_first_component,
7408 cp_entire_prefix_len, processing_has_namespace_info,
7409 processing_current_namespace, cp_is_anonymous,
7410 cp_add_using_directive, cp_initialize_namespace,
7411 cp_finalize_namespace, cp_set_block_scope,
7412 cp_scan_for_anonymous_namespaces.
7413 * cp-namespace.c: New file.
7414 * cp-support.c: Update copyright.
7415 Include ctype.h, gdb_assert.h, gdbcmd.h.
7416 New variable maint_cplus_cmd_list.
7417 (cp_find_first_component): New function.
7418 (cp_entire_prefix_len, maint_cplus_command)
7419 (first_component_command, _initialize_cp_support): Ditto.
7420 * buildsym.c: Include cp-support.h.
7421 New variable using_list.
7422 (add_symbol_to_list): Check for anonymous namespaces.
7423 (finish_block): Set block's scope.
7424 (start_symtab): Initialize C++ namespace support.
7425 (end_symtab): Finalize C++ namespace support.
7426 * block.h: Add opaque declarations for structs
7427 block_namespace_info, using_direct, and obstack.
7428 Add declarations for block_set_scope and block_set_using.
7429 (struct block): Add 'language_specific' member.
7430 (BLOCK_NAMESPACE): New macro.
7431 * block.c: Include gdb_obstack.h and cp-support.h.
7432 (struct block_namespace_info): New struct.
7433 (block_set_scope): New function.
7434 (block_set_using, block_initialize_namespace): Ditto.
7436 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7438 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7439 (locate_base): Return early if there aren't any link map offsets.
7440 (svr4_solib_create_inferior_hook): Warn if shared library support
7443 2003-04-14 David Carlton <carlton@math.stanford.edu>
7445 * symtab.c (symbol_set_names): Add prefix when storing Java names
7446 in hash table. Fix for PR java/1039.
7448 2003-04-14 David Carlton <carlton@math.stanford.edu>
7450 * symtab.c (symbol_set_names): Rename 'name' arg to
7451 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7452 * symtab.h: Change 'name' argument in declaration of
7453 symbol_set_names to 'linkage_name'.
7454 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7456 2003-04-14 Andrew Cagney <cagney@redhat.com>
7458 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7459 return the fully sign-extended register value.
7460 (get_frame_pointer): Ditto.
7461 (mips_pop_frame): Initialize "proc_desc" after checking for a
7464 2003-04-14 Andrew Cagney <cagney@redhat.com>
7466 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7467 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7468 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7469 (mips_push_register): Delete function.
7470 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7473 2003-04-14 Jim Blandy <jimb@redhat.com>
7475 * symmisc.c: #include "gdb_regex.h".
7476 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7478 * maint.c (maintenance_list_command): New function.
7479 (_initialize_maint_cmds): Register the above as commands.
7480 * symtab.h (maintenance_list_symtabs,
7481 maintenance_list_psymtabs): New declarations.
7482 * cli/cli-cmds.c (maintenancelistlist): New variable.
7483 (init_cmd_lists): Initialize it.
7484 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7485 * gdbcmd.h (maintenancelistlist): New declaration.
7486 * Makefile.in (symmisc.o): Update dependencies.
7488 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7490 * s390-nat.c: Include asm/types.h for addr_t.
7492 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7494 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7495 actually incoming type.
7497 2003-04-13 Andrew Cagney <cagney@redhat.com>
7499 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7500 get_next_frame and get_frame_saved_regs.
7502 2003-04-13 Andrew Cagney <cagney@redhat.com>
7504 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7505 of gdbarch_num_regs.
7507 2003-04-13 Andrew Cagney <cagney@redhat.com>
7509 * frame.h: Mention what replaced what in "struct frame_info".
7510 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7511 deprecated_update_frame_base_hack and
7512 deprecated_update_frame_pc_hack.
7513 * hppa-tdep.c: Ditto.
7515 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7517 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7518 to read_reg and update its comment. Remove regnum member.
7519 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7520 Don't call read_reg when setting in_reg. Call read_reg to get
7521 the frame base if it's in a register. Return the register number
7522 on the stack instead of in the context. Remove extra arguments
7524 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7525 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7526 the register number on the expression stack.
7527 (needs_frame_read_reg): Remove extra arguments.
7529 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7531 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7533 (execute_stack_op): All callers updated.
7534 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7535 * dwarf2loc.c (find_location_expression): New function.
7536 (dwarf_expr_frame_base): Call it.
7537 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7538 (dwarf2_tracepoint_var_ref): New function, broken out from
7539 locexpr_tracepoint_var_ref.
7540 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7542 (loclist_read_variable, loclist_read_needs_frame): New functions.
7543 (loclist_describe_location, loclist_tracepoint_var_ref): New
7545 (dwarf2_loclist_funcs): New struct location_funcs.
7546 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7547 (struct dwarf2_locexpr_baton): Add comments.
7548 (dwarf2_loclist_funcs): New extern.
7549 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7550 base_address and base_known.
7551 (dwarf_loc_buffer): New variable.
7552 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7553 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7554 (dwarf2_has_info): Initialize dwarf_loc_offset.
7555 (dwarf2_build_psymtabs): Read in .debug_loc.
7556 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7558 (psymtab_to_symtab_1): Likewise. Move base address calculation
7560 (dwarf2_get_pc_bounds): ... here. Use the base address from
7562 (dwarf2_symbol_mark_computed): Handle location lists.
7564 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7566 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7567 if the linkage name demangled successfully.
7569 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7571 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7572 disassmbly_flavour): Removed.
7574 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7576 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7578 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7580 2003-04-12 Andrew Cagney <cagney@redhat.com>
7582 * frame.h (struct frame_info): Move definition from here ...
7583 * frame.c (struct frame_info): ... to here.
7585 2003-04-12 Andrew Cagney <cagney@redhat.com>
7587 * gdbthread.h (save_infrun_state): Delete parameter
7589 (struct thread_info): Delete field "prev_func_start".
7590 (load_infrun_state): Ditto.
7591 * thread.c (load_infrun_state, save_infrun_state): Update.
7592 * infrun.c (prev_func_start): Delete variable.
7593 (context_switch, init_wait_for_inferior): Update.
7594 (stop_stepping, keep_going): Update.
7596 2003-04-12 Andrew Cagney <cagney@redhat.com>
7598 * gdbarch.sh: Add missing opaque declarations.
7599 * gdbarch.h: Regnerate.
7600 * symtab.h: Add missing opaque declarations.
7601 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7602 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7603 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7604 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7605 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7606 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7607 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7608 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7609 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7610 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7611 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7612 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7613 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7615 2003-04-11 Andrew Cagney <cagney@redhat.com>
7617 * frame.c (get_frame_id): Return this frame's "id".
7618 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7620 (legacy_saved_regs_this_id): Replace function body with
7622 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7623 FRAME_OBSTACK_ZALLOC.
7624 (create_new_frame): Mark the frame ID as valid.
7626 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7628 * Makefile.in (libbfd_h): Added missing setting.
7629 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7630 according to the selected ABI.
7632 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7634 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7636 2003-04-11 Andrew Cagney <cagney@redhat.com>
7638 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7639 SAVED_PC_AFTER_CALL.
7640 * gdbarch.h, gdbarch.c: Regenerate.
7641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7642 * x86-64-tdep.c (x86_64_init_abi): Update.
7643 * vax-tdep.c (vax_gdbarch_init): Update.
7644 * v850-tdep.c (v850_gdbarch_init): Update.
7645 * sparc-tdep.c (sparc_gdbarch_init): Update.
7646 * sh-tdep.c (sh_gdbarch_init): Update.
7647 * s390-tdep.c (s390_gdbarch_init): Update.
7648 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7649 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7651 * mips-tdep.c (mips_gdbarch_init): Update.
7652 * mcore-tdep.c (mcore_gdbarch_init): Update.
7653 * m68k-tdep.c (m68k_gdbarch_init): Update.
7654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7655 * ia64-tdep.c (ia64_gdbarch_init): Update.
7656 (ia64_saved_pc_after_call): Update declaration.
7657 * i386ly-tdep.c (i386lynx_init_abi): Update.
7658 * i386-tdep.c (i386_gdbarch_init): Update.
7659 * hppa-tdep.c (hppa_gdbarch_init): Update.
7660 * h8300-tdep.c (h8300_gdbarch_init): Update.
7661 * frv-tdep.c (frv_gdbarch_init): Update.
7662 * cris-tdep.c (cris_gdbarch_init): Update.
7663 * avr-tdep.c (avr_gdbarch_init): Update.
7664 * arm-tdep.c (arm_gdbarch_init): Update.
7665 * alpha-tdep.c (alpha_gdbarch_init): Update.
7666 * ns32knbsd-nat.c (frame_num_args): Update.
7667 * ns32k-tdep.c (umax_frame_num_args): Update.
7668 * mips-tdep.c (mips_init_frame_pc_first): Update.
7669 * infrun.c (step_over_function): Update.
7670 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7671 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7672 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7673 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7674 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7675 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7676 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7677 * arch-utils.c (init_frame_pc_default): Update.
7678 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7679 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7682 2003-04-11 Andrew Cagney <cagney@redhat.com>
7684 * i387-tdep.c: Update copyright.
7685 (i387_to_double): Delete function.
7686 (double_to_i387): Delete function.
7688 2003-04-10 Andrew Cagney <cagney@redhat.com>
7690 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7691 frame's function's address. Simplify.
7692 (d10v_frame_unwind_cache): Check that the frame's function is
7695 2003-04-10 Jim Blandy <jimb@redhat.com>
7697 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7698 call to set_gdbarch_deprecated_push_arguments.
7700 2003-04-10 Andrew Cagney <cagney@redhat.com>
7702 * frame.c (fprint_frame_id): New function.
7703 (fprint_frame_type, fprint_frame): New function.
7704 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7705 (create_sentinel_frame, get_frame_id): Ditto.
7706 (frame_id_p, frame_id_eq): Ditto.
7707 (frame_id_inner, create_new_frame): Ditto.
7708 (legacy_get_prev_frame, get_prev_frame): Ditto.
7709 (deprecated_update_frame_pc_hack): Ditto.
7710 (frame_register_unwind): Ditto.
7711 (deprecated_update_frame_base_hack): Ditto.
7713 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7715 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7716 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7717 frame_chain function.
7718 * Makefile.in: Add dependencies due to above change.
7720 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7722 * blockframe.c (legacy_frame_chain_valid): Move call to
7723 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7726 2003-04-09 Andrew Cagney <cagney@redhat.com>
7728 * frame.h (struct frame_id): Replace "pc" and "base" with
7729 "stack_addr" and "code_addr". Update comments.
7730 (frame_id_build): Update parameter names and comment.
7731 (struct frame_info): Replace "id_p" and "id" with "this_id".
7732 * dummy-frame.c (dummy_frame_this_id): Update.
7733 * breakpoint.c (print_one_breakpoint): Update.
7734 * frame.c (get_frame_id): Update.
7735 (get_frame_base, frame_id_build): Update.
7736 (create_sentinel_frame, legacy_get_prev_frame): Update.
7737 (deprecated_update_frame_base_hack): Update.
7738 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7739 (frame_id_inner): Ditto.
7741 2003-04-09 Andrew Cagney <cagney@redhat.com>
7743 * defs.h (gdb_print_host_address): Make "addr" parameter a
7745 * utils.c (gdb_print_host_address): Update.
7747 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7749 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7750 register number for R0 is 0.
7752 2003-04-09 J. Brobecker <brobecker@gnat.com>
7754 * frame.h (struct gdbarch): Add opaque structure definition
7755 to avoid a compilation warning on LynxOS 4.0.
7757 2003-04-09 Andrew Cagney <cagney@redhat.com>
7759 * frame.h (struct frame_info): Delete field "pc". Replace
7760 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7762 * frame.c (frame_pc_unwind): Update.
7763 (create_sentinel_frame): Do not set "pc".
7764 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7765 (get_frame_pc): Call frame_pc_unwind.
7766 (deprecated_update_frame_pc_hack): Update.
7767 (create_new_frame): Use "pc" not "->pc".
7769 2003-04-09 Andrew Cagney <cagney@redhat.com>
7771 * frame.c (get_frame_id): Eliminate code updating "frame".
7772 (legacy_get_prev_frame): Ditto.
7773 (get_frame_base): Return id.base directly.
7774 (deprecated_update_frame_base_hack): Update "id.base".
7775 * frame.h (struct frame_info): Delete field "frame".
7777 2003-04-09 Andrew Cagney <cagney@redhat.com>
7779 * NEWS: Mention that the "Sequent family" is obsolete.
7780 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7781 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7782 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7783 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7784 * config/i386/tm-ptx4.h: Obsolete file.
7785 * config/i386/tm-ptx.h: Obsolete file.
7786 * symm-tdep.c: Obsolete file.
7787 * config/i386/symmetry.mt: Obsolete file.
7788 * config/i386/tm-symmetry.h: Obsolete file.
7789 * symm-nat.c: Obsolete file.
7790 * config/i386/nm-symmetry.h: Obsolete file.
7791 * config/i386/xm-symmetry.h: Obsolete file.
7792 * config/i386/symmetry.mh: Obsolete file.
7793 * config/i386/nm-ptx4.h: Obsolete file.
7794 * config/i386/ptx4.mh: Obsolete file.
7795 * config/i386/ptx.mt: Obsolete file.
7796 * config/i386/ptx.mh: Obsolete file.
7797 * config/i386/xm-ptx4.h: Obsolete file.
7798 * config/i386/xm-ptx.h: Obsolete file.
7800 2003-04-09 Andrew Cagney <cagney@redhat.com>
7802 Obsolete mips*-*-mach3*.
7803 * NEWS: Mention that mips*-*-mach3* is obsolete.
7804 * m3-nat.c: Obsolete file.
7805 * config/nm-m3.h: Obsolete file.
7806 * config/mips/tm-mipsm3.h: Obsolete file.
7807 * config/mips/mipsm3.mt: Obsolete file.
7808 * config/mips/mipsm3.mh: Obsolete file.
7809 * config/mips/xm-mipsm3.h: Obsolete file.
7810 * mipsm3-nat.c: Obsolete file.
7811 * configure.host: Obsolete mips-dec-mach3*.
7812 * configure.tgt: Obsolete mips*-*-mach3*.
7814 2003-04-09 Andrew Cagney <cagney@redhat.com>
7816 * doublest.h: Update copyright.
7817 (deprecated_store_floating, deprecated_extract_floating): Rename
7818 store_floating and extract_floating. Update comments.
7819 * doublest.c: Update copyright.
7820 (extract_floating_by_length): Replace extract_floating.
7821 (store_floating_by_length): Replace store_floating.
7822 (deprecated_extract_floating): New function.
7823 (deprecated_store_floating): New function.
7824 (extract_typed_floating): Call extract_floating_by_length.
7825 (store_typed_floating): Call store_floating_by_length.
7826 * x86-64-tdep.c (x86_64_store_return_value): Update.
7827 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7828 (sh64_extract_return_value): Update.
7829 (sh_sh4_register_convert_to_virtual): Update.
7830 (sh_sh64_register_convert_to_virtual): Update.
7831 (sh_sh4_register_convert_to_raw): Update.
7832 (sh_sh64_register_convert_to_raw): Update.
7833 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7834 (rs6000_register_convert_to_raw): Update.
7835 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7836 (ia64_register_convert_to_raw): Update.
7837 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7838 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7839 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7840 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7841 (alpha_register_convert_to_raw): Update.
7843 2003-04-08 Andrew Cagney <cagney@redhat.com>
7845 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7846 * gdbarch.h, gdbarch.c: Re-generate.
7847 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7848 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7849 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7850 conditionally, use frame_pc_unwind as an alternative. Add
7852 * arch-utils.c (init_frame_pc_default): Only call
7853 SAVED_PC_AFTER_CALL when available.
7855 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7857 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7858 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7859 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7860 (start_remote): Ditto.
7861 (handle_inferior_event): Ditto.
7862 (save_inferior_status): Ditto.
7863 (restore_inferior_status): Ditto.
7864 * infcmd.c (attach_command): Ditto.
7865 * fork-child.c (startup_inferior): Ditto.
7866 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7867 * alpha-tdep.c (heuristic_proc_start): Ditto.
7868 * mips-tdep.c (heuristic_proc_start): Ditto.
7869 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7870 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7871 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7872 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7873 * remote-vx.c (vx_create_inferior): Ditto.
7875 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7877 * infrun.c (stop_soon_quietly): Make it an enum, to better
7878 override the default behavior of handle_inferior_event.
7879 (clear_proceed_status): Update uses of stop_soon_quietly to
7880 reflect that it is now an enum.
7881 (start_remote): Ditto.
7882 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7883 is set to handle the new GNU/Linux kernel behavior for
7884 attach/sigstop. Update uses of stop_soon_quietly.
7885 * inferior.h (enum stop_kind): New enum.
7886 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7887 Reset normal handle_inferior_event behavior, afterwards.
7888 * fork-child.c (startup_inferior): Update.
7889 * alpha-tdep.c (heuristic_proc_start): Update.
7890 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7891 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7892 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7893 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7894 * remote-vx.c (vx_create_inferior): Update.
7895 * mips-tdep.c (heuristic_proc_start): Update.
7897 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7899 * disasm.c (dump_insns): Move variables inside loop, or they will
7900 be freed more than once, causing wild memory corruptions.
7901 (gdb_disassembly): Look for the substring "-thread",
7902 instead of "-threads" in the target name, to make sure to find
7903 the 'multi-thread' target. Also, make sure we do the right thing
7904 with the "core" target.
7906 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7908 * mips-tdep.c (mips_print_fp_register): New function, created from
7909 do_fp_register_row(). Registers are now (also) printed as hex.
7910 Only one register is printed per row.
7911 (mips_print_register, do_fp_register_row): Print floating point
7912 registers with mips_print_fp_register().
7914 2003-04-06 Andrew Cagney <cagney@redhat.com>
7916 * valprint.h (inspect_it): Add extern declaration.
7917 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7918 (selectors_info, classes_info): Ditto.
7919 (find_objc_msgcall): Fix indentation.
7920 (objc_printstr): Delete extern declarations.
7922 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7924 2003-04-06 Andrew Cagney <cagney@redhat.com>
7926 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7928 * frame.c (legacy_saved_regs_this_id): Update.
7929 (legacy_get_prev_frame): Update.
7930 * xstormy16-tdep.c: Update comment.
7931 * sparc-tdep.c (sparc_frame_chain): Update comment.
7932 * blockframe.c (legacy_frame_chain_valid): Update.
7934 2003-04-06 Andrew Cagney <cagney@redhat.com>
7936 * valprint.c (val_print_type_code_int): Delete #ifdef
7937 PRINT_TYPELESS_INTEGER code.
7939 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7940 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7941 multi-arch definition.
7942 * gdbarch.h: Re-generate.
7944 2003-04-05 Andrew Cagney <cagney@redhat.com>
7946 Eliminate FRAME_FIND_SAVED_REGS.
7947 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7948 Change FSR parameter to a pointer.
7949 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7950 Assume FSR parameter is a pointer.
7951 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7953 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7954 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7955 saved_regs a pointer.
7956 (hppa_frame_saved_pc): Ditto.
7957 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7958 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7960 (restore_pc_queue): Make fsr a pointer.
7961 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7962 (hppa_frame_chain): Make saved_regs a pointer, call
7963 hppa_frame_init_saved_regs.
7964 * sparc-tdep.c: Include "gdb_assert.h".
7965 (sparc_frame_find_saved_regs): Replace internal_error with
7967 * remote-vxsparc.c (vx_read_register): Delete reference to
7968 FRAME_FIND_SAVED_REGS.
7969 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7970 * gdbarch.h: Regenerate.
7971 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7972 (deprecated_get_frame_saved_regs): Delete declaration.
7973 (struct frame_saved_regs): Delete definition.
7974 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7975 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7976 (hppa_frame_find_saved_regs): Delete declaration.
7977 (FRAME_FIND_SAVED_REGS): Delete macro.
7978 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7979 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7980 FRAME_FIND_SAVED_REGS in comment.
7982 2003-04-05 Andrew Cagney <cagney@redhat.com>
7984 * frame.c (frame_func_unwind, get_frame_func): New functions.
7985 * frame.h (get_frame_func, frame_func_unwind): Declare.
7986 (struct frame_info): Add field "prev_func" for caching the
7987 previous frame's function address.
7988 * arm-tdep.c (arm_frameless_function_invocation): Combine
7989 get_pc_function_start and get_frame_pc into get_frame_func.
7990 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7991 (sh64_nofp_frame_init_saved_regs): Ditto.
7992 * s390-tdep.c (s390_function_start): Ditto.
7993 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7994 (rs6000_frameless_function_invocation): Ditto.
7995 (rs6000_frame_saved_pc): Ditto.
7996 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7997 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7998 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7999 (i386_frame_init_saved_regs): Ditto.
8000 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8001 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8002 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8003 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8004 * blockframe.c (frameless_look_for_prologue): Ditto.
8006 2003-04-05 Andrew Cagney <cagney@redhat.com>
8008 * frame.c (legacy_get_prev_frame): Link prev to next at the
8009 function start. Update comments.
8011 2003-04-05 Andrew Cagney <cagney@redhat.com>
8013 * frame.c (get_frame_id): Update comment.
8014 (legacy_get_prev_frame): Update comment.
8015 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8016 * gdbarch.h: Regenerate.
8017 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8018 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8020 2003-04-05 Andrew Cagney <cagney@redhat.com>
8022 * stack.c (print_frame_info): Use get_frame_pc.
8024 2003-04-04 Andrew Cagney <cagney@redhat.com>
8026 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8027 the frame's type from the unwinder.
8028 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8029 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8030 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8031 (get_frame_base_address): Use get_frame_type.
8032 (get_frame_locals_address, get_frame_args_address): Ditto.
8033 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8034 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8035 (struct frame_info): Add comment explaining why the frame contains
8037 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8038 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8039 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8041 * frame-unwind.h: Include "frame.h".
8042 (struct frame_unwind): Add "type" field.
8043 * Makefile.in (frame_unwind_h): Add $(frame_h).
8045 2003-04-04 Andrew Cagney <cagney@redhat.com>
8047 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8048 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8049 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8051 (d10v_unwind_dummy_id): Use frame_id_build.
8052 * frame.c (find_frame_sal): Use get_frame_pc.
8053 (create_new_frame): Use deprecated_update_frame_pc_hack and
8054 deprecated_update_frame_base_hack.
8055 (create_sentinel_frame): Add comment about ->pc going away.
8056 (get_prev_frame): Add comment about ->pc going away.
8057 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8058 frame_id_build, deprecated_update_frame_pc_hack and
8059 deprecated_update_frame_base_hack.
8060 (select_frame): Use get_frame_pc.
8061 (legacy_saved_regs_this_id): Use frame_id_build.
8063 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8065 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8066 signed integer case.
8067 (classify_argument): Handle enumerations and references.
8069 2003-04-04 Andrew Cagney <cagney@redhat.com>
8071 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8074 2003-04-01 Adam Fedor <fedor@gnu.org>
8076 * gdb/objc-lang.c (selectors_info): Replace calls to
8077 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8078 SYMBOL_NATURAL_NAME.
8079 (classes_info, find_methods): Likewise.
8081 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8083 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8084 ``mach'' to the value determined by bfd_default_set_arch_mach().
8086 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8088 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8089 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8090 (mi-cmd-file.o): Update dependencies.
8092 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8094 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8095 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8097 2003-04-01 Adam Fedor <fedor@gnu.org>
8099 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8100 * language.h (struct language_defn): Add la_demangle.
8101 (language_demangle): Declare.
8102 * language.c (language_demangle): New function.
8103 (unk_lang_demangle): Likewise.
8104 (unknown_language_defn, auto_language_defn, local_language_defn):
8105 Add ukn_lang_demangle.
8106 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8107 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8108 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8109 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8110 * jv-lang.c (java_demangle): New function
8111 (java_language_defn): Use it for la_demangle element.
8112 * objc-lang.c (objc_demangle): Add options argument
8113 (objc_language_defn): Use objc_demangle for la_demangle element.
8114 * maint.c (maintenance_demangle): Replace switch with
8115 call to language_demangle.
8116 * utils.c (fprintf_symbol_filtered): Likewise.
8118 2003-04-01 Andrew Cagney <cagney@redhat.com>
8120 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8121 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8122 PRINT_TYPELESS_INTEGER.
8123 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8124 PUSH_RETURN_ADDRESS.
8126 2003-04-01 Andrew Cagney <cagney@redhat.com>
8128 * Makefile.in (d10v-tdep.o): Update dependencies.
8129 * d10v-tdep.c: Include "frame-base.h".
8130 (d10v_frame_unwind): Make constant.
8131 (d10v_frame_base_address): New function.
8132 (d10v_frame_base): New variable.
8133 (d10v_gdbarch_init): Set frame_base default.
8134 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8136 (d10v_frame_unwind_cache): Set and use "prev_sp".
8137 (d10v_frame_this_id): Use the previous frame's inner most stack
8138 address and this frame's func address for the frame ID. Use
8139 frame_id_build. Don't analyze beyond the current instruction.
8141 2003-04-01 Andrew Cagney <cagney@redhat.com>
8143 * frame.h (get_frame_locals_address, get_frame_args_address):
8144 Refer to the base address, instead of the address of the first
8147 2003-04-01 Andrew Cagney <cagney@redhat.com>
8149 Add frame debug info addresses:
8150 * frame-base.c: New file.
8151 * frame-base.h: New file.
8152 * frame.h (struct frame_base): Add opaque declaration.
8153 (get_frame_base): Update comment.
8154 (get_frame_base_address): Declare.
8155 (get_frame_locals_address): Declare.
8156 (get_frame_args_address): Declare.
8157 (struct frame_info): Add "base" and "base_cache". Update
8158 comments on the unwinder.
8159 * frame.c: Include "frame-base.h".
8160 (get_frame_locals_address): New function.
8161 (get_frame_base_address): New function.
8162 (get_frame_args_address): New function.
8163 * findvar.c (read_var_value): Use get_frame_locals_address and
8164 get_frame_args_address.
8165 * stack.c (frame_info): Use get_frame_locals_address and
8166 get_frame_args_address.
8167 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8168 moved to "frame-base.c".
8169 * printcmd.c (print_frame_nameless_args): Ditto.
8170 * symtab.h (address_class): Update comments.
8171 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8172 get_frame_base_address.
8173 * dwarf2expr.c (execute_stack_op): Ditto.
8174 * Makefile.in (frame_base_h): Define.
8175 (frame.o): Update dependencies.
8176 (frame-base.o): Add dependencies.
8177 (SFILES): Add frame-base.c.
8178 (COMMON_OBS): Add frame-base.o.
8180 2003-04-01 Andrew Cagney <cagney@redhat.com>
8182 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8183 CALL_DUMMY_LENGTH): Ditto.
8184 * gdbarch.c: Re-generate.
8185 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8186 (CALL_DUMMY_LENGTH): Delete macro.
8187 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8188 * arm-tdep.c (arm_gdbarch_init): Ditto.
8189 * avr-tdep.c (avr_gdbarch_init): Ditto.
8190 * cris-tdep.c (cris_gdbarch_init): Ditto.
8191 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8192 * frv-tdep.c (frv_gdbarch_init): Ditto.
8193 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8194 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8195 * i386-tdep.c (i386_gdbarch_init): Ditto.
8196 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8198 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8199 * mips-tdep.c (mips_gdbarch_init): Ditto.
8200 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8201 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8202 * s390-tdep.c (s390_gdbarch_init): Ditto.
8203 * sh-tdep.c (sh_gdbarch_init): Ditto.
8204 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8205 * v850-tdep.c (v850_gdbarch_init): Ditto.
8206 * vax-tdep.c (vax_gdbarch_init): Ditto.
8207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8209 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8211 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8213 2003-04-01 Andrew Cagney <cagney@redhat.com>
8215 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8216 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8217 * gdbarch.h, gdbarch.c: Re-generate.
8218 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8219 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8220 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8221 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8222 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8223 * infcmd.c (run_stack_dummy): Simplify assuming
8224 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8225 * infrun.c (handle_inferior_event): Ditto.
8226 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8227 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8228 * arm-tdep.c (arm_gdbarch_init): Ditto.
8229 * avr-tdep.c (avr_gdbarch_init): Ditto.
8230 * cris-tdep.c (cris_gdbarch_init): Ditto.
8231 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8232 * frv-tdep.c (frv_gdbarch_init): Ditto.
8233 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8234 * i386-tdep.c (i386_gdbarch_init): Ditto.
8235 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8237 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8238 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8239 * mips-tdep.c (mips_gdbarch_init): Ditto.
8240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8241 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8242 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8243 * s390-tdep.c (s390_gdbarch_init): Ditto.
8244 * sh-tdep.c (sh_gdbarch_init): Ditto.
8245 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8246 * v850-tdep.c (v850_gdbarch_init): Ditto.
8247 * vax-tdep.c (vax_gdbarch_init): Ditto.
8248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8250 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8252 * symfile.c (symfile_relocate_debug_section): Update call to
8253 bfd_simple_get_relocated_section_contents.
8255 2003-03-31 Andrew Cagney <cagney@redhat.com>
8257 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8258 * gdbarch.h, gdbarch.c: Regenerate.
8259 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8260 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8262 * frame.h (generic_fix_call_dummy): Delete declaration.
8263 * dummy-frame.h: Update comment.
8264 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8267 * sh-tdep.c (sh_gdbarch_init): Ditto.
8268 * s390-tdep.c (s390_gdbarch_init): Ditto.
8269 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8270 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8272 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8273 * i386-tdep.c (i386_gdbarch_init): Ditto.
8274 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8275 * frv-tdep.c (frv_gdbarch_init): Ditto.
8276 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8277 * cris-tdep.c (cris_gdbarch_init): Ditto.
8278 * avr-tdep.c (avr_gdbarch_init): Ditto.
8279 * arm-tdep.c (arm_gdbarch_init): Ditto.
8281 2003-03-31 J. Brobecker <brobecker@gnat.com>
8283 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8284 (INIT_FRAME_AP): Likewise.
8285 (EXTRA_FRAME_INFO): Likewise.
8287 2003-03-31 Andrew Cagney <cagney@redhat.com>
8289 * gdbarch.sh: Include "symfile.h".
8290 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8291 * gdbarch.h, gdbarch.c: Re-generate.
8292 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8294 call_dummy_address, the default is at entry_point_address.
8295 * v850-tdep.c (v850_gdbarch_init): Ditto.
8296 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8297 * sh-tdep.c (sh_gdbarch_init): Ditto.
8298 * s390-tdep.c (s390_gdbarch_init): Ditto.
8299 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8300 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8301 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8302 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8303 * i386-tdep.c (i386_gdbarch_init): Ditto.
8304 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8305 * frv-tdep.c (frv_gdbarch_init): Ditto.
8306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8307 * cris-tdep.c (cris_gdbarch_init): Ditto.
8308 * arm-tdep.c (arm_gdbarch_init): Ditto.
8310 2003-03-31 Andrew Cagney <cagney@redhat.com>
8312 * gdbarch.sh (CALL_DUMMY_P): Delete.
8313 * gdbarch.h, gdbarch.c: Re-generate.
8314 * inferior.h (CALL_DUMMY_P): Delete macro.
8315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8316 * vax-tdep.c (vax_gdbarch_init): Update.
8317 * v850-tdep.c (v850_gdbarch_init): Update.
8318 * sparc-tdep.c (sparc_gdbarch_init): Update.
8319 * sh-tdep.c (sh_gdbarch_init): Update.
8320 * s390-tdep.c (s390_gdbarch_init): Update.
8321 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8322 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8323 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8324 * mips-tdep.c (mips_gdbarch_init): Update.
8325 * mcore-tdep.c (mcore_gdbarch_init): Update.
8326 * m68k-tdep.c (m68k_gdbarch_init): Update.
8327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8328 * ia64-tdep.c (ia64_gdbarch_init): Update.
8329 * i386-tdep.c (i386_gdbarch_init): Update.
8330 * h8300-tdep.c (h8300_gdbarch_init): Update.
8331 * frv-tdep.c (frv_gdbarch_init): Update.
8332 * d10v-tdep.c (d10v_gdbarch_init): Update.
8333 * cris-tdep.c (cris_gdbarch_init): Update.
8334 * breakpoint.c (deprecated_frame_in_dummy): Update.
8335 * avr-tdep.c (avr_gdbarch_init): Update.
8336 * alpha-tdep.c (alpha_gdbarch_init): Update.
8337 * arm-tdep.c (arm_gdbarch_init): Update.
8338 * dummy-frame.c (dummy_frame_this_id): Update comments.
8339 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8340 * frame.c (legacy_get_prev_frame): Ditto.
8341 * valops.c (call_function_by_hand): Delete function.
8342 (hand_function_call): Rename to call_function_by_hand
8344 2003-03-30 Andrew Cagney <cagney@redhat.com>
8346 2002-11-10 Klee Dienes <kdienes@apple.com>
8347 * value.h (struct value): Update comment.
8349 2003-03-30 Andrew Cagney <cagney@redhat.com>
8351 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8353 (d10v_gdbarch_init): Do not set fp_regnum.
8355 * frame.c (get_frame_base): Force ID initialization.
8356 (get_prev_frame): Move computation of the frame ID from here ...
8357 (get_frame_id): ... to here.
8358 (legacy_get_prev_frame): Mark the frame ID as valid.
8359 * frame.h (struct frame_info): Add field "id_p".
8361 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8363 * i386-tdep.c (i386_store_struct_return): Removed.
8364 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8366 2003-03-30 Andrew Cagney <cagney@redhat.com>
8368 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8369 * gdbarch.h, gdbarch.c: Regenerate.
8370 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8372 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8373 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8374 * i386-tdep.c (i386_gdbarch_init): Ditto.
8375 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8376 * cris-tdep.c (cris_gdbarch_init): Ditto.
8377 * vax-tdep.c (vax_gdbarch_init): Ditto.
8378 * s390-tdep.c (s390_gdbarch_init): Ditto.
8379 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8380 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8381 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8382 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8383 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8384 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8385 * sparc-tdep.c (sparc_gdbarch_init): Update.
8386 * sh-tdep.c (sh_gdbarch_init): Update.
8387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8388 * mips-tdep.c (mips_gdbarch_init): Update.
8389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8390 * ia64-tdep.c (ia64_gdbarch_init): Update.
8391 * frv-tdep.c (frv_gdbarch_init): Update.
8392 * avr-tdep.c (avr_gdbarch_init): Update.
8393 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8394 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8395 instead of when push_dummy_call is not available.
8397 2003-03-30 Andrew Cagney <cagney@redhat.com>
8399 * infttrace.c: Include "gdbthread.h".
8400 (parent_attach_all): Fix function signature.
8401 (call_ptrace): Update call.
8402 * Makefile.in (infttrace.o): Update dependencies.
8404 2003-03-30 Andrew Cagney <cagney@redhat.com>
8406 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8407 PUSH_RETURN_ADDRESS.
8408 * gdbarch.h, gdbarch.c: Regenerate.
8409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8410 * x86-64-tdep.c (x86_64_init_abi): Update.
8411 * v850-tdep.c (v850_gdbarch_init): Update.
8412 * sparc-tdep.c (sparc_gdbarch_init): Update.
8413 * sh-tdep.c (sh_gdbarch_init): Update.
8414 * s390-tdep.c (s390_gdbarch_init): Update.
8415 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8416 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8417 * mips-tdep.c (mips_gdbarch_init): Update.
8418 * mcore-tdep.c (mcore_gdbarch_init): Update.
8419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8420 * ia64-tdep.c (ia64_gdbarch_init): Update.
8421 * i386-tdep.c (i386_gdbarch_init): Update.
8422 * h8300-tdep.c (h8300_gdbarch_init): Update.
8423 * frv-tdep.c (frv_gdbarch_init): Update.
8424 * cris-tdep.c (cris_gdbarch_init): Update.
8425 * avr-tdep.c (avr_gdbarch_init): Update.
8426 * arm-tdep.c (arm_gdbarch_init): Update.
8427 * valops.c (hand_function_call): Update.
8429 2003-03-29 Andrew Cagney <cagney@redhat.com>
8431 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8432 sizeof_call_dummy_words.
8433 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8435 * gdbarch.h: Regenerate.
8437 2003-03-29 Andrew Cagney <cagney@redhat.com>
8439 * infttrace.h: New file.
8440 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8441 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8442 (hpread_read_doc_function_type): Detect an initialized type1.
8443 (hpread_quick_traverse): Initialize mod_name_string.
8444 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8445 (som_solib_get_solib_by_pc): Declare.
8446 (so_lib_thread_start_addr): Declare.
8447 (no_shared_libraries): Declare.
8448 * somread.c (init_import_symbols): Make static. Add forward
8450 * config/pa/nm-hppah.h: Include "infttrace.h" for
8452 (hppa_insert_hw_watchpoint): Declare.
8453 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8454 * hppah-nat.c: Include "gdb_string.h".
8455 (parent_attach_all): Delete extern declaration, moved to
8457 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8459 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8460 * Makefile.in (infttrace_h): Define.
8461 (hpread.o): Update dependencies.
8462 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8463 * hppa-hpux-tdep.c: Include "gdb_string.h".
8464 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8465 * infrun.c (handle_inferior_event): Always initialize
8466 stepped_after_stopped_by_watchpoint. Add default and remove
8467 fallthrough in switch statement.
8468 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8470 (hppa_remove_hw_watchpoint): Ditto.
8472 2003-03-29 Andrew Cagney <cagney@redhat.com>
8474 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8477 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8479 * arm-tdep.c (arm_push_arguments): Delete.
8480 (struct stack_item): New type.
8481 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8482 (arm_store_struct_return): Delte.
8483 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8484 arm_push_arguments or arm_store_struct_return.
8486 2003-03-28 Andrew Cagney <cagney@redhat.com>
8488 * Makefile.in (d10v-tdep.o): Update dependencies.
8489 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8490 * d10v-tdep.c: Include "remote.h".
8491 (target_resume_hook): Delete extern declaration.
8492 (target_wait_loop_hook): Ditto.
8493 (tdisassemble_command): Eliminate assignment in "if" conditional.
8494 (d10v_ts2_register_sim_regno): Eliminate call to
8495 legacy_register_sim_regno.
8496 (d10v_ts3_register_sim_regno): Ditto.
8498 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8500 * thread.c: Reindented.
8502 * linux-proc.c: Ditto.
8504 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8506 * MAINTAINERS (write after approval): Add myself.
8508 2003-03-27 Theodore A. Roth <troth@openavr.org>
8510 * objc-exp.y: Add missing semi-colons.
8512 2003-03-27 Andrew Cagney <cagney@redhat.com>
8514 * regcache.c (write_sp): Delete function and references.
8515 * inferior.h (write_sp): Delete declaration.
8516 * valops.c (hand_function_call): Replace write_sp with
8518 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8519 (sparc_pop_frame): Ditto.
8521 2003-03-27 Andrew Cagney <cagney@redhat.com>
8523 * NEWS: Mention removal of support for hppa*-*-bsd* and
8524 hppa*-*-osf* natives, and hppa*-*-pro* target.
8525 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8526 * config/pa/xm-pa.h: Obsolete file.
8527 * config/pa/xm-hppab.h: Obsolete file.
8528 * config/pa/nm-hppab.h: Obsolete file.
8529 * config/pa/tm-hppab.h: Obsolete file.
8530 * config/pa/tm-hppao.h: Obsolete file.
8531 * config/pa/nm-hppao.h: Obsolete file.
8532 * config/pa/tm-pro.h: Obsolete file.
8533 * config/pa/hppaosf.mt: Obsolete file.
8534 * config/pa/hppaosf.mh: Obsolete file.
8535 * config/pa/hppapro.mt: Obsolete file.
8536 * config/pa/hppabsd.mt: Obsolete file.
8537 * config/pa/hppabsd.mh: Obsolete file.
8538 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8539 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8542 2003-03-27 Andrew Cagney <cagney@redhat.com>
8544 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8545 push_arguments. Don't set push_return_address or write_sp.
8546 (d10v_push_dummy_call): Replace d10v_push_arguments.
8547 (d10v_push_return_address, d10v_write_sp): Delete function,
8548 handled by push_dummy_call.
8550 2003-03-26 Andrew Cagney <cagney@redhat.com>
8552 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8553 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8554 regcache and dummy_addr parameters.
8555 * gdbarch.h, gdbarch.c: Re-generate.
8556 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8557 available; assume it will handle stack alignment and return
8558 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8559 legacy_push_arguments.
8560 (legacy_push_arguments): Rename default_push_arguments.
8561 * value.h (legacy_push_arguments): Rename default_push_arguments.
8562 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8563 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8564 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8565 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8566 * config/i386/tm-symmetry.h: Update.
8567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8568 * x86-64-tdep.c (x86_64_init_abi): Update.
8569 * v850-tdep.c (v850_gdbarch_init): Update.
8570 * sparc-tdep.c (sparc_gdbarch_init): Update.
8571 * sh-tdep.c (sh_gdbarch_init): Update.
8572 * s390-tdep.c (s390_gdbarch_init): Update.
8573 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8574 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8575 * mips-tdep.c (mips_gdbarch_init): Update.
8576 * mcore-tdep.c (mcore_gdbarch_init): Update.
8577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8578 * ia64-tdep.c (ia64_gdbarch_init): Update.
8579 * i386-tdep.c (i386_gdbarch_init): Update.
8580 * hppa-tdep.c (hppa_gdbarch_init): Update.
8581 * h8300-tdep.c (h8300_gdbarch_init): Update.
8582 * frv-tdep.c (frv_gdbarch_init): Update.
8583 * d10v-tdep.c (d10v_gdbarch_init): Update.
8584 * cris-tdep.c (cris_gdbarch_init): Update.
8585 * avr-tdep.c (avr_gdbarch_init): Update.
8586 * arm-tdep.c (arm_gdbarch_init): Update.
8587 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8588 * alpha-tdep.c (alpha_gdbarch_init): Update.
8590 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8592 * signals/signals.c (do_target_signal_to_host): Correct realtime
8595 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8597 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8598 (struct sal_chain, map_catch_names): Remove.
8599 (catch_exception_command_1): Don't call
8600 handle_gnu_4_16_catch_command.
8602 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8604 From Mark Dettinger <dettinge@de.ibm.com>:
8605 * dwarf2cfi.c (read_2u): Increment pointer by two.
8607 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8609 * signals/signals.c: Fix typos in last change.
8611 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8613 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8614 not already defined. Use __SIGRTMIN if available.
8615 (target_signal_from_host): Remove SIGRTMIN block.
8616 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8617 the signal is within the realtime range.
8619 2003-03-25 Adam Fedor <fedor@gnu.org>
8621 * Makefile.in (infrun.o): Add $(language_h)
8622 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8623 for language specific trampolines.
8624 * language.h (struct language_defn): Add skip_trampoline.
8625 (skip_language_trampoline): Declare.
8626 * language.c (unk_lang_trampoline, skip_language_trampoline):
8628 (unknown_language_defn, auto_language_defn, local_language_defn):
8629 Add ukn_lang_trampoline.
8630 * ada-lang.c (ada_language_defn): Add NULL for language
8631 specific skip_trampoline.
8632 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8633 scm-lang.c: Likewise.
8634 * objc-lang.c (objc_skip_trampoline): New function.
8635 (objc_language_defn): Add objc_skip_trampoline.
8637 2003-03-25 Andrew Cagney <cagney@redhat.com>
8639 * frame.c (get_prev_frame): Delay validating a frame's ID -
8640 non-NULL, didn't go backwards - until an attempt to unwind it to
8643 2003-03-25 Andrew Cagney <cagney@redhat.com>
8645 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8646 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8647 * gdbarch.h, gdbarch.c: Re-generate.
8648 * config/sparc/tm-sparc.h
8649 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8650 * sparc-tdep.c (sparc_gdbarch_init): Set
8651 deprecated_extra_stack_alignment_needed.
8652 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8653 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8654 extra_stack_alignment_needed.
8655 * v850-tdep.c (v850_gdbarch_init): Ditto.
8656 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8657 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8658 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8659 * cris-tdep.c (cris_gdbarch_init): Ditto.
8660 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8663 2003-03-25 Andrew Cagney <cagney@redhat.com>
8665 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8666 STORE_STRUCT_RETURN.
8667 * gdbarch.h, gdbarch.c: Regenerate.
8668 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8669 (d10v_push_arguments): Set the struct return register.
8670 (d10v_gdbarch_init): Update.
8671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8672 * x86-64-tdep.c (x86_64_init_abi): Update.
8673 * vax-tdep.c (vax_gdbarch_init): Update.
8674 * v850-tdep.c (v850_gdbarch_init): Update.
8675 * sparc-tdep.c (sparc_gdbarch_init): Update.
8676 * sh-tdep.c (sh_gdbarch_init): Update.
8677 * s390-tdep.c (s390_gdbarch_init): Update.
8678 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8679 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8680 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8681 * mips-tdep.c (mips_gdbarch_init): Update.
8682 * mcore-tdep.c (mcore_gdbarch_init): Update.
8683 * m68k-tdep.c (m68k_gdbarch_init): Update.
8684 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8685 * ia64-tdep.c (ia64_gdbarch_init): Update.
8686 * i386-tdep.c (i386_gdbarch_init): Update.
8687 * hppa-tdep.c (hppa_gdbarch_init): Update.
8688 * h8300-tdep.c (h8300_gdbarch_init): Update.
8689 * frv-tdep.c (frv_gdbarch_init): Update.
8690 * cris-tdep.c (cris_gdbarch_init): Update.
8691 * avr-tdep.c (avr_gdbarch_init): Update.
8692 * arm-tdep.c (arm_gdbarch_init): Update.
8693 * alpha-tdep.c (alpha_gdbarch_init): Update.
8695 2003-03-25 Andrew Cagney <cagney@redhat.com>
8697 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8698 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8699 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8700 * gdbarch.h, gdbarch.c: Regenerate.
8701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8702 call_dummy_stack_adjust_p.
8703 * vax-tdep.c (vax_gdbarch_init): Ditto.
8704 * v850-tdep.c (v850_gdbarch_init): Ditto.
8705 * sh-tdep.c (sh_gdbarch_init): Ditto.
8706 * s390-tdep.c (s390_gdbarch_init): Ditto.
8707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8708 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8709 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8710 * mips-tdep.c (mips_gdbarch_init): Ditto.
8711 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8712 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8714 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8715 * i386-tdep.c (i386_gdbarch_init): Ditto.
8716 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8717 * frv-tdep.c (frv_gdbarch_init): Ditto.
8718 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8719 * cris-tdep.c (cris_gdbarch_init): Ditto.
8720 * avr-tdep.c (avr_gdbarch_init): Ditto.
8721 * arm-tdep.c (arm_gdbarch_init): Ditto.
8722 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8723 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8724 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8725 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8726 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8727 call_dummy_stack_adjust_p.
8728 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8729 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8730 * sparc-tdep.c (sparc32_push_arguments): Update.
8731 * valops.c (hand_function_call): Update.
8733 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8736 set_gdbarch_char_signed.
8738 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8741 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8743 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8745 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8746 (_initialize_arm_tdep): Don't set tm_print_insn.
8748 2003-03-24 Adam Fedor <fedor@gnu.org>
8750 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8751 * objc-lang.h: Add multiple inclusion protection.
8752 (start_msglist, add_msglist, end_msglist): Additional declarations.
8754 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8756 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8757 value was renamed to ARM_FLOAT_SOFT_FPA.
8759 2003-03-23 Andrew Cagney <cagney@redhat.com>
8761 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8762 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8763 * gdbarch.h, gdbarch.c: Regenerate.
8764 * valops.c (hand_function_call): Update.
8765 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8766 * frame.c (legacy_saved_regs_this_id): Update.
8767 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8768 * dummy-frame.h: Update.
8769 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8770 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8771 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8772 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8773 * config/m68k/tm-sun3.h: Update.
8774 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8776 * x86-64-tdep.c (x86_64_init_abi): Update.
8777 * vax-tdep.c (vax_gdbarch_init): Update.
8778 * v850-tdep.c (v850_gdbarch_init): Update.
8779 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8780 * sh-tdep.c (sh_gdbarch_init): Update.
8781 * s390-tdep.c (s390_gdbarch_init): Update.
8782 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8783 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8784 (frame_get_saved_regs): Update.
8785 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8786 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8788 * mips-tdep.c (mips_gdbarch_init): Update.
8789 * mcore-tdep.c (mcore_gdbarch_init): Update.
8790 * m68k-tdep.c (m68k_gdbarch_init): Update.
8791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8792 * ia64-tdep.c (ia64_gdbarch_init): Update.
8793 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8794 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8795 (i386_interix_back_one_frame): Update.
8796 * hppa-tdep.c (hppa_gdbarch_init): Update.
8797 (hppa_init_extra_frame_info): Update.
8798 * h8300-tdep.c (h8300_gdbarch_init): Update.
8799 * frv-tdep.c (frv_gdbarch_init): Update.
8800 * cris-tdep.c (cris_gdbarch_init): Update.
8801 * avr-tdep.c (avr_gdbarch_init): Update.
8802 * arm-tdep.c (arm_gdbarch_init): Update.
8803 * alpha-tdep.c (alpha_gdbarch_init): Update.
8805 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8807 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8808 (arm_get_fp_model): Declare.
8809 * arm-tdep.c (fp_model_strings): New string array.
8810 (arm_fp_model, current_fp_model): New variables.
8811 (arm_get_fp_model): New function.
8812 (arm_set_fp): New function.
8813 (set_fp_model_sfunc): New function.
8814 (show_fp_model): New function.
8815 (_initialize_arm_tdep): Add new command to set/show the FPU.
8816 (arm_extract_return_value): Use arm_get_fp_model.
8817 (arm_store_return_value): Likewise.
8818 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8819 to initialize the floating-point data types.
8820 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8823 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8825 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8826 the current setting of each value.
8827 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8828 new_set and new_show. Use add_setshow_cmd_full and
8829 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8830 commands and add new version as subcommands of "set/show arm".
8832 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8834 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8835 (set_arm_command, show_arm_command): New functions.
8836 (_initialize_arm_tdep): Add them.
8837 (num_disassembly_options): Renamed from num_flavor_options.
8838 (valid_disassembly_styles): Renamed from valid_flavors.
8839 (disassembly_style): Renamed from disassembly_flavor.
8840 (set_disassembly_style_sfunc): Renamed from
8841 set_disassembly_flavor_sfunc.
8842 (set_disassembly_style): Renamed from set_disassembly_flavor.
8843 (arm_othernames): Updated.
8844 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8845 command. Add "set/show arm disassembly" commands. Deprecate
8846 "othernames" command.
8848 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8850 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8851 (arm-tdep.o): Depend on elf_arm_h.
8853 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8855 * Makefile.in (coff_internal_h): Define.
8856 (arm-tdep.o): Update dependencies.
8858 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8860 * arm-tdep.c (prologue_cache): Delete.
8861 (check_prologue_cache, save_prologue_cache): Delete.
8862 (arm_scan_prologue): Don't check or update the prologue_cache.
8863 (arm_gdb_arch_init): Don't initialize it.
8864 (_initialize_arm_tdep): Likewise.
8866 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8868 * MAINTAINERS (tui): Maintainer of tui code.
8870 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8872 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8873 (i386-cygwin-tdep.o): Add dependencies.
8874 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8875 * i386-cygwin-tdep.c: New file.
8876 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8877 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8879 2003-03-20 Andrew Cagney <cagney@redhat.com>
8881 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8882 (handle_inferior_event): Remove code calling
8883 DYNAMIC_TRAMPOLINE_NEXTPC.
8885 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8886 already has a full path.
8888 * main.c (gdb_main): Return 1.
8889 (captured_main): Call error to report an invalid interpreter.
8891 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8892 * alpha-osf1-tdep.c: Include "gdb_string.h".
8894 2003-03-19 J. Brobecker <brobecker@gnat.com>
8896 Continuing work to convert the hppa targets to multiarch partial.
8898 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8899 method, now that hppa_push_dummy_frame has a conformant prototype.
8900 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8901 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8902 for the switch to multiarch partial.
8904 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8906 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8907 when iss is issNull.
8909 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8911 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8912 NUM_REGS bounds check.
8914 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8916 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8917 * mips-tdep.c (gdb_assert.h): Include.
8918 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8919 (mips_register_name): Handle integer registers explicitly. Add
8921 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8922 (mips_lsi33k_reg_names): Don't list integer registers; they're
8923 handled by mips_register_name() now.
8924 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8925 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8926 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8927 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8928 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8930 2003-03-18 Andrew Cagney <cagney@redhat.com>
8932 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8934 * gdbtypes.h (print_scalar_formatted): Update declaration.
8935 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8937 2003-03-18 J. Brobecker <brobecker@gnat.com>
8939 * infrun.c (observer.h): Add #include.
8940 (normal_stop): Add call to observer_notify_normal_stop.
8941 * Makefile.in (infrun.o): Add dependency on observer.h.
8943 2003-03-18 J. Brobecker <brobecker@gnat.com>
8945 Continuing work to convert the hppa targets to multiarch partial.
8946 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8947 parameter. Reformat comment.
8948 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8949 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8950 to match new profile.
8952 2003-03-18 J. Brobecker <brobecker@gnat.com>
8954 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8955 appear to be working in any case.
8957 2003-03-18 J. Brobecker <brobecker@gnat.com>
8959 * observer.c (observer_test_first_observer): New static variable.
8960 (observer_test_second_observer): Likewise.
8961 (observer_test_third_observer): Likewise.
8962 (observer_test_first_notification_function): New static function.
8963 (observer_test_second_notification_function): Likewise.
8964 (observer_test_third_notification_function): Likewise.
8966 2003-03-17 J. Brobecker <brobecker@gnat.com>
8968 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8969 * somsolib.c (gdb_assert.h): Likewise.
8970 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8971 (somsolib.o): Likewise.
8973 2003-03-17 Andrew Cagney <cagney@redhat.com>
8975 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8976 BFD. Simplify setting of di.endian.
8978 2003-03-17 Andrew Cagney <cagney@redhat.com>
8980 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8981 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8983 From Elena Zannoni <ezannoni@redhat.com>
8984 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8985 vector and floating-point parameters.
8986 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8988 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8990 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8992 * MAINTAINERS: Remove my name from several maintainership roles.
8994 2003-03-17 Andrew Cagney <cagney@redhat.com>
8996 Fix frame off-by-one bug.
8997 * frame-unwind.h (frame_this_id_ftype): Replace
8998 frame_unwind_id_ftype.
8999 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9000 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9001 with "prev_register".
9002 * frame-unwind.c (frame_unwind_find_by_pc): Return
9003 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9005 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9006 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9007 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9008 (dummy_frame_unwind): Update.
9009 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9010 sentinel_frame_register_unwind.
9011 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9012 (sentinel_frame_unwinder): Update.
9013 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9014 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9015 * frame.c (create_sentinel_frame): Update. Initialize
9016 "prologue_cache" instead of "unwind_cache".
9017 (frame_register_unwind): Call this frame's prev_register with the
9018 next frame and this frame's prologue cache.
9019 (get_prev_frame): Simplify. Always call prev frame's this_id with
9020 this frame and prev frame's prologue cache. Document that this
9021 call is shifted one to the left when compared to the
9022 frame_register_unwind call.
9023 (legacy_saved_regs_prev_register): Replace
9024 frame_saved_regs_register_unwind.
9025 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9026 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9027 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9028 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9029 (d10v_frame_unwind): Update.
9030 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9031 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9032 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9033 "saved_regs" with "this_saved_regs".
9035 2003-03-16 Andrew Cagney <cagney@redhat.com>
9037 * frame.c (frame_pop): Don't call target_store_registers. Fix
9038 problem reported by Mark Kettenis.
9040 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9042 * i386-tdep.c (i386_register_type): Renamed from
9043 i386_register_virtual_type. Adjust function signature.
9044 (i386_gdbarch_init): Set register_type instead of
9045 deprecated_max_register_raw_size,
9046 deprecated_max_register_virtual_size and register_virtual_type.
9048 2003-03-14 Andrew Cagney <cagney@redhat.com>
9050 * frame.c (get_prev_frame): When a legacy frame, always call
9051 legacy_get_prev_frame. Simplify unwind code using assumption that
9052 the unwinder is new.
9053 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9054 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9055 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9057 2003-03-14 Andrew Cagney <cagney@redhat.com>
9059 * frame.c (get_saved_register): Delete function.
9060 * frame.h (get_saved_register): Delete declaration.
9061 * xstormy16-tdep.c: Update comment.
9062 * regcache.h: Update comments.
9063 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9064 get_saved_register and extract_address, use
9065 frame_read_unsigned_register.
9066 (sparc_frame_saved_pc): Ditto.
9067 (sparc_get_saved_register): Instead of get_saved_register, use
9069 (sparc_pop_frame): Ditto.
9070 * findvar.c: Update comments.
9071 (value_of_register): Call frame_register instead of
9073 (value_from_register): Ditto.
9074 * config/sparc/tm-sparc.h: Update comment.
9075 * breakpoint.c: Update comment.
9077 2003-03-14 Andrew Cagney <cagney@redhat.com>
9079 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9081 * gdbarch.h, gdbarch.c: Re-generate.
9082 * frame.h: Update comments.
9083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9084 * x86-64-tdep.c (x86_64_init_abi): Update.
9085 * sparc-tdep.c (sparc_gdbarch_init): Update.
9086 * sh-tdep.c (sh_gdbarch_init): Update.
9087 * mips-tdep.c (mips_gdbarch_init): Update.
9088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9089 * cris-tdep.c (cris_gdbarch_init): Update.
9090 * ia64-tdep.c (ia64_gdbarch_init): Update.
9091 * frame.c (frame_register): Update.
9092 (get_saved_register): Update.
9093 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9095 2003-03-13 Andrew Cagney <cagney@redhat.com>
9097 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9098 * gdbarch.h, gdbarch.c: Regenerate.
9099 * valops.c (hand_function_call): Update comment.
9100 * stack.c (return_command): Update comment.
9101 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9102 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9104 * x86-64-tdep.c (x86_64_init_abi): Update.
9105 * vax-tdep.c (vax_gdbarch_init): Update.
9106 * v850-tdep.c (v850_gdbarch_init): Update.
9107 * sparc-tdep.c (sparc_gdbarch_init): Update.
9108 * sh-tdep.c (sh_gdbarch_init): Update.
9109 * s390-tdep.c (s390_gdbarch_init): Update.
9110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9112 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9113 * mips-tdep.c (mips_gdbarch_init): Update.
9114 * mcore-tdep.c (mcore_gdbarch_init): Update.
9115 * m68k-tdep.c (m68k_gdbarch_init): Update.
9116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9117 * ia64-tdep.c (ia64_gdbarch_init): Update.
9118 * i386-tdep.c (i386_gdbarch_init): Update.
9119 * hppa-tdep.c (hppa_gdbarch_init): Update.
9120 * h8300-tdep.c (h8300_gdbarch_init): Update.
9121 * frv-tdep.c (frv_gdbarch_init): Update.
9122 * cris-tdep.c (cris_gdbarch_init): Update.
9123 * avr-tdep.c (avr_gdbarch_init): Update.
9124 * arm-tdep.c (arm_gdbarch_init): Update.
9125 * alpha-tdep.c (alpha_gdbarch_init): Update.
9127 2003-03-13 Andrew Cagney <cagney@redhat.com>
9129 * frame.c (legacy_frame_p): New function.
9130 (get_prev_frame): Use legacy_frame_p.
9131 * frame.h (legacy_frame_p): Declare.
9133 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9135 * MAINTAINERS (write after approval): Alphabetically
9138 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9140 * MAINTAINERS (write after approval): Add myself.
9142 2003-03-12 Andrew Cagney <cagney@redhat.com>
9144 * frame.c (get_prev_frame): Rename the frame parameter to
9146 (get_next_frame, legacy_get_prev_frame): Ditto.
9148 2003-03-12 Andrew Cagney <cagney@redhat.com>
9150 * frame.c (get_current_frame): Check target_has_registers before
9151 checking target_has_stack.
9152 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9153 instead of deprecated_selected_frame.
9154 * findvar.c (value_of_register): Pass "frame", not
9155 deprecated_selected_frame, to value_of_builtin_reg.
9157 2003-03-12 Andrew Cagney <cagney@redhat.com>
9159 * regcache.c (regcache_cooked_write_signed): New function.
9160 (regcache_cooked_write_unsigned): New function.
9161 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9162 (regcache_cooked_read_signed): Fix regnum in range assertion.
9163 * regcache.h (regcache_cooked_write_signed): Declare.
9164 (regcache_cooked_write_unsigned): Declare.
9166 2003-03-12 Andrew Cagney <cagney@redhat.com>
9168 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9169 * gdbarch.h, gdbarch.c: Re-generate.
9170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9171 * x86-64-tdep.h: Update.
9172 * x86-64-tdep.c (x86_64_init_abi): Update.
9173 * v850-tdep.c (v850_gdbarch_init): Update.
9174 * sparc-tdep.c (sparc_gdbarch_init): Update.
9175 * sh-tdep.c (sh_gdbarch_init): Update.
9176 * s390-tdep.c (s390_gdbarch_init): Update.
9177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9178 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9179 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9180 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9181 * mips-tdep.c (mips_gdbarch_init): Update.
9182 * mcore-tdep.c (mcore_gdbarch_init): Update.
9183 * m68k-tdep.c (m68k_gdbarch_init): Update.
9184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9185 * ia64-tdep.c (ia64_gdbarch_init): Update.
9186 * i386-tdep.c (i386_gdbarch_init): Update.
9187 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9188 * hppa-tdep.c (hppa_gdbarch_init): Update.
9189 * h8300-tdep.c (h8300_gdbarch_init): Update.
9190 * frv-tdep.c (frv_gdbarch_init): Update.
9191 * cris-tdep.c (cris_gdbarch_init): Update.
9192 * avr-tdep.c (avr_gdbarch_init): Update.
9193 * arm-tdep.c (arm_gdbarch_init): Update.
9194 * alpha-tdep.c (alpha_gdbarch_init): Update.
9195 * sh-tdep.c (sh_init_extra_frame_info): Update.
9196 (sh64_init_extra_frame_info): Update.
9197 * ns32knbsd-nat.c (frame_num_args): Update.
9198 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9199 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9200 (xstormy16_frame_chain_valid): Update.
9201 * vax-tdep.c (vax_saved_pc_after_call): Update.
9202 * v850-tdep.c (v850_frame_chain): Update.
9203 (v850_pop_frame): Update.
9204 (v850_init_extra_frame_info): Update.
9205 * sparc-tdep.c (setup_arbitrary_frame): Update.
9206 * ns32k-tdep.c (umax_frame_num_args): Update.
9207 * s390-tdep.c (s390_pop_frame_regular): Update.
9208 * mn10300-tdep.c (mn10300_frame_chain): Update.
9209 (mn10300_pop_frame_regular): Update.
9210 (mn10300_init_extra_frame_info): Update.
9211 * mips-tdep.c (mips_init_frame_pc_first): Update.
9212 (mips_frame_chain): Update.
9213 (mips_pop_frame): Update.
9214 * mcore-tdep.c (mcore_frame_chain): Update.
9215 (mcore_pop_frame): Update.
9216 (mcore_init_extra_frame_info): Update.
9217 * arch-utils.c (init_frame_pc_default): Update.
9218 * m68k-tdep.c (isi_frame_num_args): Update.
9219 (delta68_frame_num_args): Update.
9220 (news_frame_num_args): Update.
9221 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9222 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9223 (alpha_frame_chain): Update.
9224 (alpha_pop_frame): Update.
9225 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9226 (hppa_init_extra_frame_info): Update.
9227 (hppa_frame_chain): Update.
9228 (hppa_frame_chain_valid): Update.
9229 * cris-tdep.c (cris_init_extra_frame_info): Update.
9230 * avr-tdep.c (avr_init_extra_frame_info): Update.
9231 * arm-tdep.c (arm_frame_chain_valid): Update.
9232 (arm_init_extra_frame_info): Update.
9233 (arm_pop_frame): Update.
9234 * frame.c (frame_pc_unwind): Update.
9235 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9236 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9237 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9238 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9239 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9240 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9242 2003-03-12 Andrew Cagney <cagney@redhat.com>
9244 Eliminate the need for POP_FRAME.
9245 * frame.c (do_frame_unwind_register): New function.
9246 (frame_pop): When no POP_FRAME, pop the frame using register
9247 unwind and a scratch regcache.
9248 (frame_saved_regs_pop): Delete function.
9249 (trad_frame_unwinder): Update.
9250 * d10v-tdep.c (d10v_frame_pop): Delete function.
9251 (d10v_frame_unwind): Update.
9252 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9253 (sentinel_frame_unwinder): Update.
9254 * dummy-frame.c (dummy_frame_pop): Delete function.
9255 (dummy_frame_unwind): Update.
9256 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9257 (struct frame_unwind): Update.
9259 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9261 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9262 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9263 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9264 Do range checks on register number obtained from debugging info.
9265 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9266 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9267 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9269 (do_fp_register_row): Fix typo which caused double type to be
9270 used when attempting to unpack a float.
9272 2003-03-11 J. Brobecker <brobecker@gnat.com>
9274 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9276 2003-03-11 Andrew Cagney <cagney@redhat.com>
9278 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9279 frame. Problem found by Corinna Vinschen.
9281 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9283 * doublest.c (floatformat_from_length): Accept also
9284 the real size of 'long double' type.
9286 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9288 From Klee Dienes <kdienes@apple.com>:
9289 * breakpoint.c (bpstat_copy): Copy the command lines as well
9290 as the old value, to match what is freed in bpstat_clear.
9292 2003-03-10 David Carlton <carlton@math.stanford.edu>
9294 * minsyms.c (add_minsym_to_hash_table): Replace
9295 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9296 (compare_minimal_symbols, compact_minimal_symbols)
9297 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9298 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9299 of DEPRECATED_SYMBOL_MATCHES_NAME.
9300 (lookup_minimal_symbol_solib_trampoline): Ditto.
9302 2003-03-10 Andrew Cagney <cagney@redhat.com>
9304 * regcache.h (regcache_cooked_read_ftype): Define.
9305 (regcache_save, regcache_restore): Add a cooked_read parameter.
9306 * regcache.c (regcache_save, regcache_restore): Update.
9307 (do_cooked_read): New function.
9308 (regcache_cpy): Pass do_cooked_read to regcache_save and
9311 2003-03-10 Andrew Cagney <cagney@redhat.com>
9313 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9314 * gdbarch.h, gdbarch.c: Re-generate.
9315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9316 * x86-64-tdep.h: Update.
9317 * x86-64-tdep.c (x86_64_init_abi): Update.
9318 * v850-tdep.c (v850_gdbarch_init): Update.
9319 * sparc-tdep.c (sparc_gdbarch_init): Update.
9320 * sh-tdep.c (sh_gdbarch_init): Update.
9321 * s390-tdep.c (s390_gdbarch_init): Update.
9322 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9323 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9324 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9325 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9326 * mips-tdep.c (mips_gdbarch_init): Update.
9327 * mcore-tdep.c (mcore_gdbarch_init): Update.
9328 * m68k-tdep.c (m68k_gdbarch_init): Update.
9329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9330 * ia64-tdep.c (ia64_gdbarch_init): Update.
9331 * i386-tdep.c (i386_gdbarch_init): Update.
9332 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9333 * hppa-tdep.c (hppa_gdbarch_init): Update.
9334 * h8300-tdep.c (h8300_gdbarch_init): Update.
9335 * frv-tdep.c (frv_gdbarch_init): Update.
9336 * cris-tdep.c (cris_gdbarch_init): Update.
9337 * avr-tdep.c (avr_gdbarch_init): Update.
9338 * arm-tdep.c (arm_gdbarch_init): Update.
9339 * alpha-tdep.c (alpha_gdbarch_init): Update.
9340 * sh-tdep.c (sh_init_extra_frame_info): Update.
9341 (sh64_init_extra_frame_info): Update.
9342 * ns32knbsd-nat.c (frame_num_args): Update.
9343 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9344 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9345 (xstormy16_frame_chain_valid): Update.
9346 * vax-tdep.c (vax_saved_pc_after_call): Update.
9347 * v850-tdep.c (v850_frame_chain): Update.
9348 (v850_pop_frame): Update.
9349 (v850_init_extra_frame_info): Update.
9350 * sparc-tdep.c (setup_arbitrary_frame): Update.
9351 * ns32k-tdep.c (umax_frame_num_args): Update.
9352 * s390-tdep.c (s390_pop_frame_regular): Update.
9353 * mn10300-tdep.c (mn10300_frame_chain): Update.
9354 (mn10300_pop_frame_regular): Update.
9355 (mn10300_init_extra_frame_info): Update.
9356 * mips-tdep.c (mips_init_frame_pc_first): Update.
9357 (mips_frame_chain): Update.
9358 (mips_pop_frame): Update.
9359 * mcore-tdep.c (mcore_frame_chain): Update.
9360 (mcore_pop_frame): Update.
9361 (mcore_init_extra_frame_info): Update.
9362 * arch-utils.c (init_frame_pc_default): Update.
9363 * m68k-tdep.c (isi_frame_num_args): Update.
9364 (delta68_frame_num_args): Update.
9365 (news_frame_num_args): Update.
9366 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9367 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9368 (alpha_frame_chain): Update.
9369 (alpha_pop_frame): Update.
9370 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9371 (hppa_init_extra_frame_info): Update.
9372 (hppa_frame_chain): Update.
9373 (hppa_frame_chain_valid): Update.
9374 * cris-tdep.c (cris_init_extra_frame_info): Update.
9375 * avr-tdep.c (avr_init_extra_frame_info): Update.
9376 * arm-tdep.c (arm_frame_chain_valid): Update.
9377 (arm_init_extra_frame_info): Update.
9378 (arm_pop_frame): Update.
9379 * frame.c (frame_pc_unwind): Update.
9380 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9381 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9382 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9383 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9384 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9385 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9387 2003-03-10 Andrew Cagney <cagney@redhat.com>
9389 * gdbarch.sh (gdbarch_unwind_pc): New method.
9390 * gdbarch.h, gdbarch.c: Regenerate.
9391 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9392 but use read_pc and FRAME_SAVED_PC as fall backs.
9393 (frame_saved_regs_pc_unwind): Delete function.
9394 (trad_frame_unwinder): Update.
9395 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9396 (struct frame_unwind): Update.
9397 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9398 (dummy_frame_unwind): Update.
9399 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9400 (sentinel_frame_unwinder): Update.
9401 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9402 (d10v_frame_unwind): Update.
9403 (d10v_unwind_pc): New function.
9404 (d10v_gdbarch_init): Set unwind_pc.
9406 2003-03-10 Andrew Cagney <cagney@redhat.com>
9408 * gdbarch.h: Re-generate.
9410 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9412 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9415 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9417 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9419 2003-03-08 Andrew Cagney <cagney@redhat.com>
9421 * cli-out.c: Update copyright.
9422 (cli_out_data): Define typedef. Use instead of ui_out_data.
9424 2003-03-08 Andrew Cagney <cagney@redhat.com>
9426 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9429 2003-03-07 Andrew Cagney <cagney@redhat.com>
9431 * gdbarch.sh: Don't generate two macro definitions when an
9432 undefined macro taking no arguments.
9433 * gdbarch.h: Regenerate.
9435 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9437 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9438 (x86_64_unwind_dummy_id): New functions.
9439 (x86_64_init_abi): Register these two new functions.
9441 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9443 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9444 (x86_64_skip_prologue): Move prologue detection to
9446 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9448 2003-03-05 Andrew Cagney <cagney@redhat.com>
9450 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9451 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9452 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9453 to use unwind_dummy_id when a dummy frame.
9454 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9456 * gdbarch.h, gdbarch.c: Regneerate.
9458 2003-03-05 Andrew Cagney <cagney@redhat.com>
9460 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9461 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9462 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9465 2003-03-05 Andrew Cagney <cagney@redhat.com>
9467 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9468 (struct d10v_unwind_cache): Delete field "frameless". Replace
9469 "next_addr" with "sp_offset". Add "r11_offset".
9470 (d10v_frame_unwind_cache): Update.
9471 (prologue_find_regs): Update. When "mv r11, sp", save the
9472 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9473 RN was saved in r11_offset.
9475 2003-03-05 Andrew Cagney <cagney@redhat.com>
9477 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9478 cached PC value in the next frame.
9480 2003-03-05 Andrew Cagney <cagney@redhat.com>
9482 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9483 "id_unwind_cache" with "id".
9484 (frame_id_unwind): Delete declaration.
9485 * frame.c (frame_id_unwind): Delete function.
9486 (get_prev_frame): Call the frame id unwind method directly. Store
9487 the returned next frame's ID value in NEXT_FRAME. Note that there
9488 is a problem with the wrong unwind ID being called with the wrong
9491 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9493 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9495 2003-03-05 James Ingham <jingham@apple.com>
9496 Daniel Jacobowitz <drow@mvista.com>
9498 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9499 (auto_cp_abi): New variable.
9500 (current_cp_abi, num_cp_abis): Make static.
9501 (CP_ABI_MAX): Define.
9502 (cp_abis): Turn into an array.
9503 (value_virtual_fn_field): Fix formatting.
9504 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9506 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9507 (list_cp_abis, _initialize_cp_abi): New functions.
9508 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9509 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9510 switch_to_cp_abi. Update prototype for register_cp_abi.
9511 * Makefile.in (cp-abi.o): Update dependencies.
9512 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9513 instead of switch_to_cp_abi.
9514 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9516 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9518 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9520 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9522 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9523 * dwarf2loc.c: Include "regcache.h".
9524 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9526 * Makefile.in (dwarf2loc.o): Update dependencies.
9528 2003-03-04 Theodore A. Roth <troth@openavr.org>
9530 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9531 number of io registers reported by remote target is not a multiple of
9534 2003-03-04 David Carlton <carlton@math.stanford.edu>
9536 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9537 (lookup_symbol_aux_psymtabs): Update call to
9538 lookup_partial_symbol.
9539 (lookup_transparent_type, find_main_psymtab)
9540 (make_symbol_overload_list): Ditto.
9542 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9544 * MAINTAINERS (Write after approval): Update my email address.
9546 2003-03-03 Andrew Cagney <cagney@redhat.com>
9548 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9549 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9550 predicate. Replace MAX_REGISTER_RAW_SIZE.
9551 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9552 MAX_REGISTER_VIRTUAL_SIZE.
9553 * regcache.c (legacy_max_register_raw_size): New function.
9554 (legacy_max_register_virtual_size): New function.
9555 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9556 (MAX_REGISTER_RAW_SIZE): Define.
9557 (legacy_max_register_raw_size): Declare.
9558 (legacy_max_register_virtual_size): Declare.
9559 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9560 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9561 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9562 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9563 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9564 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9565 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9566 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9567 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9569 * vax-tdep.c (vax_gdbarch_init): Update.
9570 * v850-tdep.c (v850_gdbarch_init): Update.
9571 * sparc-tdep.c (sparc_gdbarch_init): Update.
9572 * sh-tdep.c (sh_gdbarch_init): Update.
9573 * s390-tdep.c (s390_gdbarch_init): Update.
9574 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9575 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9576 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9577 * mips-tdep.c (mips_gdbarch_init): Update.
9578 * mcore-tdep.c (mcore_gdbarch_init): Update.
9579 * m68k-tdep.c (m68k_gdbarch_init): Update.
9580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9581 * ia64-tdep.c (ia64_gdbarch_init): Update.
9582 * i386-tdep.c (i386_gdbarch_init): Update.
9583 * hppa-tdep.c (hppa_gdbarch_init): Update.
9584 * h8300-tdep.c (h8300_gdbarch_init): Update.
9585 * frv-tdep.c (frv_gdbarch_init): Update.
9586 * cris-tdep.c (cris_gdbarch_init): Update.
9587 * avr-tdep.c (avr_gdbarch_init): Update.
9588 * arm-tdep.c (arm_gdbarch_init): Update.
9589 * alpha-tdep.c (alpha_gdbarch_init): Update.
9590 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9591 max_register_raw_size or max_register_virtual_size.
9593 2003-03-03 David Carlton <carlton@math.stanford.edu>
9595 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9596 SYMBOL_MATCHES_NAME, add comment.
9597 (SYMBOL_MATCHES_NATURAL_NAME): New.
9598 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9599 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9600 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9601 * symtab.c (lookup_partial_symbol): Use
9602 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9604 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9605 SYMBOL_MATCHES_NAME.
9608 2003-03-03 David Carlton <carlton@math.stanford.edu>
9610 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9611 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9612 by regexp matching against SYMBOL_NATURAL_NAME.
9614 2003-03-03 David Carlton <carlton@math.stanford.edu>
9616 * linespec.c (find_method): Extract code into collect_methods.
9617 (collect_methods): New.
9619 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9621 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9624 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9625 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9627 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9629 * arch-utils.c (generic_register_byte): Fix to use the loop index
9630 and not regnum when summing the size of all registers up to regnum.
9632 2003-03-01 Andrew Cagney <cagney@redhat.com>
9634 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9635 FRAME_INIT_SAVED_REGS.
9636 * gdbarch.h, gdbarch.c: Regenerate.
9637 * stack.c (frame_info): Update.
9638 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9639 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9640 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9641 * ns32k-tdep.c (ns32k_pop_frame): Update.
9642 * mips-tdep.c (mips_pop_frame): Update.
9643 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9644 * ia64-tdep.c (ia64_frame_chain): Update.
9645 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9646 (ia64_frameless_function_invocation): Update.
9647 (ia64_init_extra_frame_info): Update.
9648 (ia64_pop_frame_regular): Update.
9649 * frame.h (struct frame_info): Update comment.
9650 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9651 * frame.c (frame_saved_regs_register_unwind): Update.
9652 (frame_saved_regs_register_unwind): Update.
9653 (deprecated_generic_get_saved_register): Update.
9654 * cris-tdep.c: Update comment.
9655 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9658 * x86-64-tdep.c (x86_64_init_abi): Update.
9659 * vax-tdep.c (vax_gdbarch_init): Update.
9660 * v850-tdep.c (v850_gdbarch_init): Update.
9661 * sparc-tdep.c (sparc_gdbarch_init): Update.
9662 * sh-tdep.c (sh_gdbarch_init): Update.
9663 * s390-tdep.c (s390_gdbarch_init): Update.
9664 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9665 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9667 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9668 * mips-tdep.c (mips_gdbarch_init): Update.
9669 * mcore-tdep.c (mcore_gdbarch_init): Update.
9670 * m68k-tdep.c (m68k_gdbarch_init): Update.
9671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9672 * ia64-tdep.c (ia64_gdbarch_init): Update.
9673 * i386-tdep.c (i386_gdbarch_init): Update.
9674 * frv-tdep.c (frv_gdbarch_init): Update.
9675 * avr-tdep.c (avr_gdbarch_init): Update.
9676 * arm-tdep.c (arm_gdbarch_init): Update.
9677 * alpha-tdep.c (alpha_gdbarch_init): Update.
9679 2003-03-01 Andrew Cagney <cagney@redhat.com>
9681 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9682 option enum and switch. When no windows, set the interpreter to
9685 2003-03-01 Andrew Cagney <cagney@redhat.com>
9687 * main.c (captured_main): Replace magic option characters with an
9690 2003-03-01 Andrew Cagney <cagney@redhat.com>
9692 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9693 INIT_EXTRA_FRAME_INFO.
9694 * gdbarch.h, gdbarch.c: Regenerate.
9695 * arm-tdep.c: Update comments.
9696 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9697 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9698 * frame.h, avr-tdep.c: Ditto.
9699 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9700 (create_new_frame, legacy_get_prev_frame): Ditto.
9701 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9702 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9704 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9705 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9706 * v850-tdep.c (v850_gdbarch_init): Ditto.
9707 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9708 * sh-tdep.c (sh_gdbarch_init): Ditto.
9709 * s390-tdep.c (s390_gdbarch_init): Ditto.
9710 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9711 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9712 * mips-tdep.c (mips_gdbarch_init): Ditto.
9713 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9715 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9716 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9717 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9718 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9719 * frv-tdep.c (frv_gdbarch_init): Ditto.
9720 * cris-tdep.c (cris_gdbarch_init): Ditto.
9721 * avr-tdep.c (avr_gdbarch_init): Ditto.
9722 * arm-tdep.c (arm_gdbarch_init): Ditto.
9723 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9724 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9726 2003-03-01 Andrew Cagney <cagney@redhat.com>
9728 * gdbarch.sh (register_type): New function with predicate.
9729 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9730 * gdbarch.h, gdbarch.c: Re-generate.
9731 * arch-utils.c (generic_register_byte): Use generic_register_size.
9732 (generic_register_size): When available, use
9733 gdbarch_register_type.
9734 * regcache.c (init_regcache_descr): When available, initialize the
9735 register type array using gdbarch_register_type. If the
9736 architecture supplies gdbarch_register_type, do not use the legacy
9738 * d10v-tdep.c (d10v_register_type): Replace
9739 d10v_register_virtual_type.
9740 (d10v_gdbarch_init): Set register_type instead of
9741 register_virtual_type.
9743 2003-03-01 Andrew Cagney <cagney@redhat.com>
9745 * Makefile.in (ax-gdb.o): Update dependencies.
9746 * ax-gdb.c: Include "regcache.h".
9747 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9748 * findvar.c (value_of_register): Ditto.
9749 * infcmd.c (default_print_registers_info): Ditto.
9751 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9753 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9754 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9756 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9758 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9761 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9763 * Makefile.in (dwarf2loc.o): Update dependencies.
9764 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9765 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9766 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9767 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9768 (locexpr_tracepoint_var_ref): New function.
9769 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9771 2003-02-28 Andrew Cagney <cagney@redhat.com>
9773 * regcache.c (register_size): New function.
9774 * regcache.h (register_size): Declare
9775 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9776 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9778 2003-02-28 David Carlton <carlton@math.stanford.edu>
9780 * linespec.c (decode_compound): Extract code into find_method.
9783 2003-02-28 J. Brobecker <brobecker@gnat.com>
9785 * Makefile.in: Add rules to build and link in observer.o.
9787 2003-02-27 J. Brobecker <brobecker@gnat.com>
9789 * observer.c: Minor comments edits.
9791 2003-02-27 J. Brobecker <brobecker@gnat.com>
9793 * observer.h, observer.c: New file.
9795 2003-02-27 Andrew Cagney <cagney@redhat.com>
9797 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9799 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9801 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9802 (M6812_OP_STS_EXT): Likewise.
9803 (m6811_prologue): Use the above to recognize prologue.
9804 (m6812_prologue): Likewise.
9806 2003-02-27 David Carlton <carlton@math.stanford.edu>
9808 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9810 (compare_psymbols): Ditto.
9811 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9813 2003-02-27 Michael Snyder <msnyder@redhat.com>
9815 * f-lang.c (build_fortran_types): New function.
9816 (_initialize_f_language): Gdbarch-register built-in fortran types.
9817 * doublest.c (extract_floating): Fix warning text.
9819 2003-02-27 Andrew Cagney <cagney@redhat.com>
9821 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9822 predicate. Replaces PUSH_DUMMY_FRAME.
9823 * gdbarch.h, gdbarch.c: Regnerate.
9824 * valops.c (hand_function_call): Update. Call
9825 generic_push_dummy_frame directly.
9826 * vax-tdep.c (vax_gdbarch_init): Update.
9827 * sparc-tdep.c (sparc_gdbarch_init): Update.
9828 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9829 * m68k-tdep.c (m68k_gdbarch_init): Update.
9830 * hppa-tdep.c (hppa_gdbarch_init): Update.
9831 * alpha-tdep.c (alpha_gdbarch_init): Update.
9832 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9833 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9834 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9836 push_dummy_frame to generic_push_dummy_frame.
9837 * v850-tdep.c (v850_gdbarch_init): Ditto.
9838 * sh-tdep.c (sh_gdbarch_init): Ditto.
9839 * s390-tdep.c (s390_gdbarch_init): Ditto.
9840 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9841 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9842 * mips-tdep.c (mips_gdbarch_init): Ditto.
9843 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9845 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9846 * i386-tdep.c (i386_gdbarch_init): Ditto.
9847 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9848 * frv-tdep.c (frv_gdbarch_init): Ditto.
9849 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9850 * cris-tdep.c (cris_gdbarch_init): Ditto.
9851 * avr-tdep.c (avr_gdbarch_init): Ditto.
9852 * arm-tdep.c (arm_gdbarch_init): Ditto.
9854 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9856 * mips-tdep.c (show_mips_abi): New function.
9857 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9858 command ``show mips abi''.
9860 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9862 From Elena Zannoni <ezannoni@redhat.com>
9863 * dbxread.c (process_one_symbol): Only record line 0 if one or
9864 more sline entries have been seen for the function.
9866 2003-02-26 Michael Chastain <mec@shout.net>
9868 * configure: Regenerate with autoconf 000227.
9870 2003-02-26 Michael Chastain <mec@shout.net>
9873 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9874 for old libc5/glibc.
9875 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9877 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9879 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9880 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9882 2003-02-26 Michael Chastain <mec@shout.net>
9884 * configure.in: New variable HAVE_UINTPTR_T.
9885 * configure, config.in: Regenerated.
9887 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9890 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9892 2003-02-25 Andrew Cagney <cagney@redhat.com>
9894 * frame.c (get_prev_frame): Add comment on check for
9895 inside_entry_func. Only check for inside_entry_file when not a
9896 dummy and not a sentinel. Check that the new frame is not inner
9899 2003-02-25 Andrew Cagney <cagney@redhat.com>
9901 * frame.c (frame_debug): New variable.
9902 (_initialize_frame): Add "set/show debug frame" command.
9903 (get_prev_frame): When frame_debug, print reason why unwind
9906 2003-02-25 Michael Chastain <mec@shout.net>
9908 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9909 to avoid uintptr_t definition problems.
9911 2003-02-25 David Carlton <carlton@math.stanford.edu>
9913 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9914 (SYMBOL_LINKAGE_NAME): Ditto.
9915 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9916 SYMBOL_LINKAGE_NAME.
9917 (struct general_symbol_info): Expand comment.
9918 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9919 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9920 (SYMBOL_MATCHES_REGEXP): Ditto.
9921 * symtab.c (symbol_natural_name): New function.
9922 * objfiles.h: Replace all uses of SYMBOL_NAME by
9923 DEPRECATED_SYMBOL_NAME.
9924 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9925 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9926 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9927 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9928 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9929 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9930 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9931 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9932 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9933 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9935 * ada-exp.y: Update copyright.
9936 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9937 * cp-valprint.c: Ditto.
9939 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9941 * infptrace.c (detach): Do not flag error if ptrace detach fails
9942 and errno is set to ESRCH.
9944 2003-02-24 Andrew Cagney <cagney@redhat.com>
9946 * infptrace.c (udot_info): Change type of udot_off to long. Use
9947 paddr when printing udot_off's value.
9949 2003-02-24 David Carlton <carlton@math.stanford.edu>
9951 * symtab.c (make_symbol_overload_list): Only read in partial
9952 symtabs containing a matching partial symbol.
9954 2003-02-24 David Carlton <carlton@math.stanford.edu>
9956 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9957 do the comparison, not strcmp.
9958 * symfile.c (compare_psymbols): Ditto.
9959 * defs.h: Declare strcmp_iw_ordered.
9960 * utils.c (strcmp_iw_ordered): New function.
9962 2003-02-24 Jim Blandy <jimb@redhat.com>
9964 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9965 support, shared libs): Remove my name from here, to better reflect
9968 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9970 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9971 (target_ops): Add to_have_continuable_watchpoint.
9972 * target.c (update_current_target): Add INHERIT line for
9973 to_have_continuable_watchpoint.
9974 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9975 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9976 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9977 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9979 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9981 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9984 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9986 * solib.c (solib_open): Call target defined search function after
9987 failing with solib-search-path.
9988 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9989 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9991 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9993 * MAINTAINERS: Add myself to Write After section.
9995 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9997 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9999 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10001 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10002 (m68hc11_add_reggroups): New function.
10003 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10004 (m68hc11_gdbarch_init): Install the reggroups.
10005 (_initialize_m68hc11_tdep): Initialize them.
10007 2003-02-21 James E Wilson <wilson@tuliptree.org>
10009 * MAINTAINERS: Update my email address.
10011 2003-02-21 David Carlton <carlton@math.stanford.edu>
10013 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10015 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10017 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10018 * symtab.h: Add opaque declarations of struct axs_value and
10020 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10021 (struct location_funcs): New type.
10022 (struct symbol): Add "loc" to aux_value.
10023 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10024 * dwarf2read.c: Include "dwarf2expr.h".
10025 (dwarf2_symbol_mark_computed): New function.
10026 (read_func_scope): Use it.
10027 (var_decode_location): New function.
10028 (new_symbol): Use it.
10029 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10031 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10032 (dwarf2expr_h, dwarf2loc_h): New variables.
10033 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10034 (dwarf2expr.o, dwarf2loc.o): New rules.
10035 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10036 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10038 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10039 * m2-exp.y (yylex): Likewise.
10040 * printcmd.c (address_info, print_frame_args): Likewise.
10041 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10042 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10043 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10044 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10045 * symtab.c (lookup_block_symbol): Likewise.
10047 2003-02-20 Adam Fedor <fedor@gnu.org>
10049 * symtab.h: Remove objc_specific struct
10050 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10051 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10052 Have language_objc use cplus_specific struct.
10054 2003-02-20 Tom Tromey <tromey@redhat.com>
10056 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10057 TYPE_NAME, when printing a String value. PR java/1075.
10059 2003-02-20 Adam Fedor <fedor@gnu.org>
10061 * objc-lang.h (find_methods): Remove declaration.
10062 * objc-lang.c (find_methods): Make static.
10064 2003-02-20 Christopher Faylor <cgf@redhat.com>
10066 * win32-nat.c (get_image_name): Check return value from
10068 (child_xfer_memory): Ditto.
10070 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10072 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10073 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10074 '${exec_prefix}' (in addition to the expansion thereof) as
10076 * configure: Rebuilt.
10078 2003-02-20 David Carlton <carlton@math.stanford.edu>
10080 * symtab.c (search_symbols): Revert the search_symbols part of my
10081 2002-12-23 patch. Add comment.
10083 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10085 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10086 * dbxread.c (elfstab_build_psymtabs): Don't call
10087 install_minimal_symbols.
10088 (stabsect_build_psymtabs): Likewise.
10089 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10091 * somread.c (som_symfile_read): Call install_minimal_symbols
10092 and do_cleanups earlier.
10093 * nlmread.c (nlm_symfile_read): Likewise.
10094 * mdebugread.c (elfmdebug_build_psymtabs): Call
10095 install_minimal_symbols and make appropriate cleanups.
10097 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10099 * solib.c (reload_shared_libraries): New function.
10100 (_initialize_solib): Add callbacks for ``set solib-search-path''
10101 and ``set solib-absolute-prefix''.
10103 2003-02-20 David Carlton <carlton@math.stanford.edu>
10105 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10107 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10108 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10109 * ada-typeprint.c (ada_typedef_print): Ditto.
10110 * ax-gdb.c (gen_var_ref): Ditto.
10111 * breakpoint.c (print_one_breakpoint): Ditto.
10112 * buildsym.c (finish_block): Ditto.
10113 * c-valprint.c (c_val_print): Ditto.
10114 * expprint.c (print_subexp): Ditto.
10115 * findvar.c (locate_var_value): Ditto.
10116 * infcmd.c (jump_command): Ditto.
10117 * linespec.c (decode_line_2, decode_compound): Ditto.
10118 * maint.c (maintenance_translate_address): Ditto.
10119 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10120 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10122 * p-valprint.c (pascal_val_print): Ditto.
10123 * stabsread.c (define_symbol): Ditto.
10124 * stack.c (print_frame, frame_info, print_block_frame_locals)
10125 (print_frame_arg_vars, return_command): Ditto.
10126 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10127 * symmisc.c (print_symbol): Ditto.
10128 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10129 (compare_search_syms, print_symbol_info, print_msymbol_info)
10130 (rbreak_command): Ditto.
10131 * tracepoint.c (tracepoints_info): Ditto.
10132 * typeprint.c (typedef_print): Ditto.
10133 * valops.c (value_of_variable, hand_function_call): Ditto.
10134 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10135 * ada-typeprint.c: Update Copyright.
10136 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10137 * tracepoint.c, cli/cli-cmds.c: Ditto.
10139 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10141 * frame.c (generic_unwind_get_saved_register): Make non-static.
10142 * frame.h (generic_unwind_get_saved_register): Declare.
10143 * mips-tdep.c (read_next_frame_reg): Fetch register from
10144 current regcache when frame is NULL.
10145 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10147 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10148 instead of frame_register_unwind().
10150 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10152 * remote-sim.c (gdbsim_insert_breakpoint)
10153 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10156 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10158 * remote.c (_initialize_remote): Add commands "set/show remote
10159 hardware-watchpoint-limit" and "set/show remote
10160 hardware-breakpoint-limit".
10161 (remote_hw_watchpoint_limit): Initialize to -1.
10162 (remote_hw_breakpoint_limit): Ditto.
10163 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10165 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10167 * coff-pe-read.c: New file - support reading of minimal symbols from a
10168 portable executable using the export table.
10169 * coff-pe-read.h: New file.
10170 * coffread.c: Include coff-pe-read.h.
10171 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10172 debugging symbols found.
10173 * Makefile.in (SFILES): Add coff-pe-read.o.
10174 (coff_pe_read_h): Define.
10175 (COMMON_OBS): Add coff-pe-read.o.
10176 (coffread.o): Add coff_pe_read_h dependency.
10177 (coff-pe-read.o): New target.
10179 2003-02-19 David Carlton <carlton@math.stanford.edu>
10181 * Makefile.in (SFILES): Add block.c.
10183 (COMMON_OBS): Add block.o.
10185 (x86-64-tdep.o): Add $(block_h).
10186 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10187 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10188 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10189 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10190 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10191 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10192 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10193 * value.h: Add opaque declaration for struct block.
10194 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10195 * ada-lang.h: Ditto.
10196 * x86-64-tdep.c: #include "block.h"
10197 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10198 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10199 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10200 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10201 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10202 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10203 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10204 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10205 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10206 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10207 * symtab.c (block_function): Ditto.
10208 (contained_in): Ditto.
10209 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10210 block.h. Add opaque declaration for struct block.
10211 * symtab.h: Move block_function and contained_in declarations to
10212 block.h. Add opaque declarations for struct block, struct
10214 (struct block): Move to block.h.
10215 (struct blockvector): Ditto.
10216 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10217 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10218 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10219 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10220 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10222 * block.c: New file.
10223 * block.h: New file.
10225 2003-02-19 Theodore A. Roth <troth@openavr.org>
10227 * avr-tdep.c (avr_extract_return_value): Remove function.
10228 (avr_store_return_value): Remove function.
10229 (avr_extract_struct_value_address): Remove function.
10230 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10232 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10234 * rs6000-tdep.c: Include "gdb_assert.h".
10235 (registers_e500): Add "acc" and "spefscr".
10236 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10237 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10238 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10240 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10242 2003-02-18 Keith Seitz <keiths@redhat.com>
10244 * Makefile.in: Add gdbtk-interps.c.
10246 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10248 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10249 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10251 2003-02-18 Andrew Cagney <cagney@redhat.com>
10253 * symtab.h (struct objfile): Add opaque declaration.
10255 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10257 From Jim Ingham <jingham@apple.com>:
10258 * dbxread.c (process_one_symbol): Use last_function_start rather
10259 than function_start_offset to find the real beginning of the
10260 current function. The latter is just the text section offset on
10261 some systems, the former is always the real function start.
10263 2003-02-17 Andrew Cagney <cagney@redhat.com>
10265 * configure.in: Revert ${target} != ${host}.
10267 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10269 * configure.in (Makefile): Use the test ${target} != ${host},
10270 instead of the absence of the "nm.h" file, to determine of the
10271 configuration non-native.
10272 * configure: Regenerate.
10274 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10276 From Brian Ford <ford@vss.fsi.com>
10278 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10279 conditionalize tui_active test.
10280 (lookup_cmd_1): Ditto.
10282 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10284 * configure.in: Add check for _etext.
10285 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10287 * config.in, configure: regenerated.
10289 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10291 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10293 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10295 * main.c (tui_version): Delete variable.
10296 (captured_main): When --tui, set interpreter_p to "tui" instead of
10297 enabling tui_version.
10298 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10300 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10301 * cli/cli-cmds.c (disassemble_command): Ditto.
10302 * defs.h (tui_version): Delete declaration.
10303 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10304 (tui-interp.o): Add rules.
10305 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10307 2003-02-14 Christopher Faylor <cgf@redhat.com>
10309 * win32-nat.c (register_loaded_dll): Correctly set address range for
10312 2003-02-12 Jason Molenda (jmolenda@apple.com)
10314 * symmisc.c (print_objfile_statistics): Include information about
10315 the number of psymtabs and symtabs in each object file.
10317 2003-02-13 Keith R Seitz <keiths@redhat.com>
10319 * main.h (struct captured_main_args): Add interpreter_p.
10320 * main.c (captured_main): Initialize interpreter_p from context.
10321 * gdb.c (main): Set interpreter_p argument.
10322 * Makefile.in (gdb.o): Add dependency for interps.h.
10324 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10326 * event-top.c (cli_command_loop): Delete declaration.
10327 (_initialize_event_loop): Delete function setting event_loop_hook.
10328 * event-top.h (cli_command_loop): Declare. Update copyright.
10329 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10330 * interps.c (current_interp_command_loop): When event_loop_p, call
10333 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10335 * interps.h (interp_command_loop_ftype): Change return type to
10338 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10340 * x86-64-tdep.c (x86_64_extract_return_value)
10341 (x86_64_store_return_value): Use regcache instead of regbuf.
10342 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10343 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10345 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10347 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10348 * aclocal.m4: Regenerate.
10349 * configure: Regenerate.
10351 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10352 TCL_LD_SEARCH_FLAGS.
10354 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10356 * dwarf2cfi.c: Reindented.
10358 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10360 * interps.c (clear_interpreter_hooks): Convert function definition
10363 2003-02-07 David Carlton <carlton@math.stanford.edu>
10365 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10367 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10369 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10370 (struct type): ...to here.
10371 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10373 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10374 (replace_type): Set length on all type variants for a given type.
10376 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10378 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10380 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10382 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10384 * Makefile.in (symm-nat.o): Update dependencies.
10385 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10386 (lynx-nat.o, ia64-linux-nat.): Ditto.
10387 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10388 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10389 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10391 * Makefile.in (inflow_h): Define.
10392 (procfs.o, inflow.o, procfs.o): Update dependencies.
10393 * inftarg.c (child_stop): Delete extern declaration of
10394 inferior_process_group. Include "inflow.h".
10395 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10396 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10397 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10398 (our_process_group, inferior_process_group): Extern declarations.
10400 * procfs.c: Include "gdb_assert.h".
10402 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10403 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10404 * jv-typeprint.c (java_type_print_base): Ditto.
10405 * typeprint.c (typedef_print): Eliminate STREQ.
10406 * cli/cli-script.c (define_command, define_command): Ditto.
10407 * main.c (captured_main): Ditto.
10408 * values.c (lookup_internalvar): Ditto.
10409 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10410 within `if' conditional.
10411 * linespec.c (decode_line_2): Ditto.
10412 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10413 (bfd_openw_with_cleanup): Ditto.
10415 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10417 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10418 legacy_extract_return_value and store_return_value to
10419 legacy_return_value.
10421 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10423 * win32-nat.c (get_relocated_section_addrs): New function. Find
10424 section load addresses for symbol handling in relocated DLLs.
10425 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10427 2003-02-05 Fred Fish <fnf@intrinsity.com>
10429 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10431 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10433 (angel_RDI_info): Ditto.
10434 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10436 (threads_continue_all_with_signals): Ditto.
10438 2003-02-05 Jim Ingham <jingham@apple.com>
10439 Keith Seitz <keiths@redhat.com>
10440 Elena Zannoni <ezannoni@redhat.com>
10441 Andrew Cagney <ac131313@redhat.com>
10443 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10444 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10445 (SUBDIR_MI_OBS): Add "mi-interp.o".
10446 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10447 (SFILES): Add "interps.c".
10448 (COMMON_OBS): Add "interps.o".
10449 (interps_h, mi_main_h): Define.
10450 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10451 (mi-main.o, main.o, event-top.o): Update dependencies.
10452 * cli/cli-interp.c: New file.
10453 * interps.h, interps.c: New files.
10454 * top.c: (gdb_init): Don't install the default interpreter, handed
10456 * main.c: Include "interps.h".
10457 (interpreter_p): Note that it should malloc'ed.
10458 (captured_command_loop): Call current_interp_command_loop.
10459 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10460 xfree and xstrdup when updating interpreter_p. Install the
10461 default interpreter. Add hack to stop mi1's copyright notice
10463 * event-top.h (gdb_setup_readline): Declare.
10464 (gdb_disable_readline): Declare.
10465 * event-top.c: Include "interps.h".
10466 (display_gdb_prompt): Call current_interp_display_prompt_p.
10467 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10468 gdb_stdlog, and gdb_stdtarg.
10469 (_initialize_event_loop): Don't call gdb_setup_readline.
10470 * cli-out.c (cli_out_set_stream): New function.
10471 * cli-out.h (cli_out_set_stream): Declare.
10473 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10475 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10476 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10477 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10478 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10479 config/i386/i386v42mp.mt: Removed.
10481 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10483 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10486 2003-02-05 Michael Chastain <mec@shout.net>
10488 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10489 2.12.1 and earlier versions.
10491 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10493 Remove orphaned hosts, targets and files.
10494 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10495 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10496 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10497 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10498 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10499 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10500 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10501 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10502 * config/sparc/tm-sp64sim.h: Delete.
10503 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10505 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10506 mips*-dec-mach3* targets.
10508 2003-02-04 Michael Chastain <mec@shout.net>
10510 * NEWS: Fix typo: sepcifying -> specifying.
10512 2003-02-04 Michael Chastain <mec@shout.net>
10514 * dwarfread.c: Add documentation on the state of dwarf-1,
10515 looking towards obsoletion.
10517 2003-02-03 Michael Chastain <mec@shout.net>
10519 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10520 gdb/testsuite/gdb.c++/pr-1023.exp.
10522 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10524 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10525 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10527 * utils.c (init_page_info): Delete reference to MPW in comments.
10528 * main.c (captured_main): Delete #ifdef MPW.
10530 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10532 * NEWS: Note that the m32r-*-elf* is obsolete.
10533 * monitor.c (monitor_expect): Obsolete reference to m32r.
10534 * configure.tgt: Mark m32r-*-elf* as obsolete.
10535 * MAINTAINERS: Mark m32k as obsolete.
10536 * m32r-rom.c: Obsolete file.
10537 * config/m32r/m32r.mt: Obsolete file.
10538 * config/m32r/tm-m32r.h: Obsolete file.
10539 * m32r-stub.c: Obsolete file.
10540 * m32r-tdep.c: Obsolete file.
10542 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10544 * NEWS: Mention that the z8k-zilog-none is obsolete.
10545 * MAINTAINERS: Mark z8k as obsolete.
10546 * configure.tgt: Obsolete the z8k-*-coff* target.
10547 * config/z8k/z8k.mt: Obsolete file.
10548 * config/z8k/tm-z8k.h: Obsolete file.
10549 * z8k-tdep.c: Obsolete file.
10551 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10553 * NEWS: Mention that the mn10200-elf is obsolete.
10554 * configure.tgt: Obsolete mn10200-*-* target.
10555 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10556 mention that the mn10200 is obsolete.
10557 * breakpoint.h: Ditto.
10558 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10559 * config/mn10200/mn10200.mt: Obsolete file.
10560 * config/mn10200/tm-mn10200.h: Obsolete file.
10561 * mn10200-tdep.c: Obsolete file.
10563 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10565 * MAINTAINERS: Mark h8500 as obsolete.
10566 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10567 * findvar.c (value_from_register): Ditto.
10568 * h8500-tdep.c: Mark file as obsolete.
10569 * config/h8500/h8500.mt: Ditto.
10570 * config/h8500/tm-h8500.h: Ditto.
10571 * NEWS: Mention that h8500 is obsolete.
10573 2003-02-04 David Carlton <carlton@math.stanford.edu>
10575 * objfiles.c (allocate_objfile): Always set name. Add comment at
10577 * jv-lang.c (get_dynamics_objfile): Add comment.
10579 2003-02-04 David Carlton <carlton@math.stanford.edu>
10581 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10582 * printcmd.c (build_address_symbolic): Replace uses of
10583 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10584 SYMBOL_NAME, and asm_demangle.
10587 2003-02-04 David Carlton <carlton@math.stanford.edu>
10589 * linespec.c (decode_compound): Extract code into
10591 (lookup_prefix_sym): New function.
10593 2003-02-04 David Carlton <carlton@math.stanford.edu>
10595 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10596 FLOAT_COERCION_BADNESS.
10597 * gdbtypes.c (rank_one_type): Replace all uses of
10598 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10600 2003-02-04 Jim Blandy <jimb@redhat.com>
10602 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10603 section, let dwarf_macinfo_section point to it, not
10606 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10608 Pointed out by Anton Blanchard <anton@samba.org>.
10609 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10610 (ppc_linux_at_sigtramp_return_path): Use it.
10612 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10614 * defs.h (streq): Add prototype.
10615 * utils.c (streq): New function.
10617 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10618 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10619 * mdebugread.c (new_symbol): Likewise.
10620 * stabsread.c (define_symbol): Likewise.
10621 * coffread.c (process_coff_symbol): Likewise.
10622 * dwarfread.c (new_symbol): Likewise.
10624 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10625 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10627 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10628 SYMBOL_INIT_DEMANGLED_NAME.
10629 * objfiles.c: Include "hashtab.h".
10630 (allocate_objfile): Call htab_set_functions_ex for the
10631 demangled_names_hash.
10632 (free_objfile): Call htab_delete for the demangled_names_hash.
10633 * objfiles.h (struct htab): Add declaration.
10634 (struct objfile): Add demangled_names_hash.
10635 * symfile.c: Include "hashtab.h".
10636 (reread_symbols): Call htab_delete for the demangled_names_hash.
10637 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10638 SYMBOL_NAME in the bcache.
10639 * symtab.c: Include "hashtab.h". Update comments.
10640 (create_demangled_names_hash, symbol_set_names): New functions.
10641 (symbol_find_demangled_name): New function, broken out from
10642 symbol_init_demangled_names.
10643 (symbol_init_demangled_names): Use it.
10644 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10645 (SYMBOL_SET_NAMES): New macro.
10646 (symbol_set_names): Add prototype.
10648 2003-02-03 Jim Blandy <jimb@redhat.com>
10650 Use a single, consistent representation for an empty minimal
10651 symbol table in an objfile.
10652 * objfiles.c (terminate_minimal_symbol_table): New function.
10653 (allocate_objfile): Call it.
10654 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10655 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10657 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10658 objfile has minimal symbols, compare minimal_symbol_count to zero,
10659 instead of comparing msymbols with NULL.
10660 * objfiles.c (have_minimal_symbols): Same.
10661 * solib-sunos.c (solib_add_common_symbols): Call
10662 terminate_minimal_symbol_table.
10663 * symfile.c (reread_symbols): Same.
10665 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10667 * s390-tdep.c (s390_address_class_type_flags)
10668 (s390_address_class_type_flags_to_name)
10669 (s390_address_class_name_to_type_flags): New functions.
10670 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10671 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10673 2003-02-03 Michael Snyder <msnyder@redhat.com>
10675 * arm-tdep.c: Fix spell-o in comment.
10677 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10679 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10680 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10681 error messages to contain BFD filename.
10683 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10685 Fix PR gdb/742 gdb/743 gdb/877
10686 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10687 (do_mixed_source_and_assembly): Use
10688 make_cleanup_ui_out_tuple_begin_end and
10689 make_cleanup_ui_out_tuple_begin_end.
10690 (do_mixed_source_and_assembly): Ditto.
10691 * thread.c (do_captured_list_thread_ids): Ditto.
10692 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10693 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10694 ui_out_tuple_end): Delete prototypes.
10695 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10696 ui_out_list_end, ui_out_tuple_end): Delete.
10698 From Kevin Buettner <kevinb@redhat.com>:
10699 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10700 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10701 (do_cleanup_table_end): New functions.
10702 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10703 Use cleanups to invoke_ui_out_tuple_end().
10704 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10705 * cli/cli-setshow.c (cmd_show_list): Use
10706 make_cleanup_ui_out_tuple_begin_end.
10708 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10710 * frame.c (frame_unwind_register): New function.
10711 (frame_unwind_unsigned_register): Use.
10712 (frame_unwind_signed_register): Use.
10713 (frame_read_register): New function.
10714 * frame.h (frame_unwind_register): Declare.
10715 (frame_read_register): Declare.
10717 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10718 and frame_unwind_register instead of read_memory, write_register
10719 and deprecated_write_register_bytes.
10721 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10723 * frame.h: Note that namelen can be negative.
10724 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10727 * NEWS: Mention that the d10v's `regs' command is deprecated.
10728 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10729 (d10v_print_registers_info): New function.
10730 (show_regs): Call d10v_print_registers_info.
10731 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10733 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10735 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10736 lost in the previous patch.
10738 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10740 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10741 * stack.c (print_frame_info_base): Output complete FRAME tuple
10742 for synthesized frames.
10744 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10746 * mips-nat.c (zerobuf): Delete.
10747 (fetch_inferior_registers): Alloc local zerobuf.
10748 (fetch_core_registers): Alloc local zerobuf.
10749 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10750 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10751 * thread-db.c (thread_db_store_registers): Ditto.
10752 * sh-tdep.c (sh_do_register): Ditto.
10753 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10754 * remote-sim.c (gdbsim_store_register): Ditto.
10755 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10756 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10757 * monitor.c (monitor_supply_register): Ditto.
10758 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10759 * mips-nat.c (fetch_inferior_registers): Ditto.
10760 * m68klinux-nat.c (fetch_register): Ditto.
10761 * lynx-nat.c (fetch_inferior_registers): Ditto.
10762 (fetch_inferior_registers): Ditto.
10763 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10764 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10765 (hpux_thread_store_registers): Ditto.
10766 * hppah-nat.c (fetch_register): Ditto.
10767 * hppab-nat.c (fetch_register): Ditto.
10768 * hppa-tdep.c (pa_register_look_aside): Ditto.
10769 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10770 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10772 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10774 * gdbarch.sh: Explictly specify all method levels. When a
10775 variable with an empty level, provide a non-multi-arch default.
10776 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10777 * gdbarch.h: Re-generate.
10778 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10779 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10781 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10783 * defs.h (host_pointer_to_address): Delete declaration.
10784 (address_to_host_pointer): Delete declaration.
10785 * utils.c (host_pointer_to_address): Delete function.
10786 (address_to_host_pointer): Delete function.
10787 * procfs.c (procfs_address_to_host_pointer): New function.
10788 * procfs.c (proc_set_watchpoint): Use.
10789 (procfs_can_use_hw_breakpoint): Update comments.
10790 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10791 (som_solib_add): Use.
10792 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10793 * hppa-tdep.c (unwind_command): Use.
10795 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10797 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10800 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10801 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10802 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10803 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10804 (define_symbol): Update.
10805 * symfile.c (generic_load): Remove references to nindy.
10806 * symtab.c: Remove references to nindy.
10808 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10810 * infcmd.c (print_float_info): Delete code conditional on
10812 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10813 * config/m68k/nm-apollo68b.h: Ditto.
10814 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10815 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10816 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10818 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10820 * config/i386/tm-i386os9k.h: Removed.
10822 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10823 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10824 they're identical to i[3456]86-*-sysv* now.
10825 * config/i386/i386v32.mh: Removed.
10826 * config/i386/xm-i386v32.h: Removed.
10827 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10829 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10831 * config/i386/i386dgux.mh: Removed.
10832 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10834 * configure.in: Fix typo.
10835 * configure: Regenerated.
10837 2003-01-31 David Carlton <carlton@math.stanford.edu>
10839 * dwarf2read.c (dwarf2_locate_sections): Set
10840 dwarf_ranges_section.
10842 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10844 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10845 * utils.c: Update comments documenting legitimate uses of PTR.
10847 * utils.c: Re-indent.
10849 * config/djgpp/fnchange.lst: Delete nindy files.
10850 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10851 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10852 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10853 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10854 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10855 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10856 * Makefile.in (init.c): Remove nindy references.
10857 (saber_gdb): Delete rule.
10858 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10859 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10861 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10862 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10863 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10864 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10865 nindy-share/stop.h.
10866 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10867 * saber.suppress: Delete file.
10869 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10871 * dbxread.c (stabs_data): New static variable.
10872 (fill_symbuf): Support an in-memory buffer for stabs data.
10873 (stabs_seek): New function.
10874 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10875 (read_ofile_symtab): Use stabs_seek.
10876 (elfstab_build_psymtabs): Take an asection* instead of
10877 an offset and size. Relocate the stabs data if necessary.
10878 Save the section* for dbx_psymtab_to_symtab.
10879 * dwarf2read.c: Add section variables for each debug section.
10880 (dwarf2_locate_sections): Fill them in.
10881 (dwarf2_read_section): Take an asection* argument.
10882 Relocate the section contents if necessary.
10883 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10884 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10885 it to dwarf2_read_section.
10886 (dwarf2_build_frame_info): Update callers.
10887 * elfread.c (elf_symfile_read): Update call to
10888 elfstab_build_psymtabs.
10889 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10890 (DBX_STAB_SECTION): New macro.
10891 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10892 * symfile.c (symfile_dummy_outputs): New function.
10893 (symfile_relocate_debug_section): New function.
10894 * symfile.h (symfile_relocate_debug_section): Add prototype.
10896 2003-01-31 Richard Henderson <rth@redhat.com>
10898 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10899 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10900 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10901 * alpha-tdep.c (alpha_register_name): Add "unique".
10902 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10903 (ALPHA_UNIQUE_REGNUM): New.
10904 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10906 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10908 * README: Remove reference to Ericsson 1800 monitor.
10909 * Makefile.in (remote-es.o): Delete rule.
10910 (ALLDEPFILES): Delete remote-es.c.
10911 * remote-es.c: Delete file.
10912 * config/m68k/es1800.mt: Delete file.
10913 * config/djgpp/fnchange.lst: Update.
10914 * configure.tgt: Delete m68*-ericsson-* target.
10916 2003-01-31 Adam Fedor <fedor@gnu.org>
10918 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10919 Remove duplicate/shadowing variable of same name.
10921 2003-01-30 Jim Blandy <jimb@redhat.com>
10923 * symfile.c (find_separate_debug_file): Assert that the objfile's
10924 directory name we compute ends with a slash, and then assume that
10925 that's so everywhere we use it.
10927 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10929 * valops.c (value_assign): Flush frame cache after stores to memory
10932 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10934 * Makefile.in (mon960-rom.o): Delete rule.
10935 * mon960-rom.c: Delete file.
10937 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10939 * d10v-tdep.c: Include "frame-unwind.h".
10940 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10942 (next_addr, uses_frame): Delete.
10943 (struct d10v_unwind_cache): Define.
10944 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10945 Use info instead of next_addr and uses_frame globals.
10946 (d10v_frame_init_saved_regs): Delete function.
10947 (d10v_init_extra_frame_info): Delete function.
10948 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10949 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10950 init_frame_pc or frame_saved_pc.
10951 (d10v_pop_frame): Delete function.
10952 (do_d10v_pop_frame): Delete function.
10953 (d10v_frame_chain): Delete function.
10954 (d10v_frame_chain_valid): Delete function.
10955 (d10v_frame_pc_unwind): New function.
10956 (d10v_frame_id_unwind): New function.
10957 (saved_regs_unwinder): New function.
10958 (d10v_frame_register_unwind): New function.
10959 (d10v_frame_pop): New function.
10960 (d10v_frame_unwind): New variable.
10961 (d10v_frame_p): New function.
10962 (d10v_frame_saved_pc): Delete function.
10963 * Makefile.in (d10v-tdep.o): Update dependencies.
10965 2003-01-30 J. Brobecker <brobecker@gnat.com>
10967 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10968 causing some regressions due to a change in the default value
10971 2003-01-29 Richard Henderson <rth@redhat.com>
10972 Elena Zannoni <ezannoni@redhat.com>
10973 Daniel Jacobowitz <drow@mvista.com>
10976 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10978 (RANGES_SECTION): New.
10979 (dwarf_ranges_buffer): New variable.
10980 (struct comp_unit_head): Add member "die".
10981 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10982 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10983 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10984 (dwarf2_locate_sections): Likewise.
10985 (dwarf2_build_psymtabs): Read .debug_ranges.
10986 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10987 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10988 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10989 Look for DW_AT_ranges and return the bounding box.
10991 2003-01-29 Brian Ford <ford@vss.fsi.com>
10993 * win32-nat.c (cygwin_pid): Removed as unused.
10994 (child_attach): Try fall back to Cygwin pid.
10996 2003-01-29 Jim Blandy <jimb@redhat.com>
10998 * objfiles.h (struct objfile): Doc fix.
11000 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11002 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11003 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11004 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11005 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11006 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11007 (FRAME_SAVED_PC): Change to a function with predicate.
11008 * gdbarch.h, gdbarch.c: Re-generate.
11010 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11012 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11014 * complaints.c (complain): Delete function.
11015 * complaints.h (struct deprecated_complaint): Delete definition.
11016 (complain): Delete declaration.
11018 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11020 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11023 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11025 * sentinel-frame.h, sentinel-frame.c: New files.
11026 * Makefile.in (frame.o): Update dependencies.
11027 (SFILES): Add sentinel-frame.c.
11028 (sentinel_frame_h): Define.
11029 (COMMON_OBS): Add sentinel-frame.o.
11030 (sentinel-frame.o): Specify dependencies.
11031 * frame.c: Include "sentinel-frame.h".
11032 (frame_register_unwind): Rewrite assuming that there is always a a
11034 (frame_register, generic_unwind_get_saved_register): Ditto.
11035 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11036 (create_sentinel_frame, unwind_to_current_frame): New functions.
11037 (get_current_frame): Rewrite using create_sentinel_frame and
11038 unwind_to_current_frame. When possible, always create a frame.
11039 (create_new_frame): Set next to the sentinel frame.
11040 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11041 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11042 ID cache when necessary.
11043 (frame_saved_regs_id_unwind): Use frame_relative_level.
11044 (deprecated_generic_get_saved_register): Use frame_relative_level,
11045 get_frame_saved_regs, get_frame_pc, get_frame_base and
11047 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11050 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11052 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11054 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11056 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11057 (maintenance_set_profile_cmd): Use error () instead of warning ().
11059 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11061 * configure.in: Check that -pg works if using --enable-profiling.
11062 Check for monstartup and _mcleanup regardless of --enable-profiling.
11063 * maint.c: Check for monstartup and _mcleanup before using them.
11064 * config.in: Regenerated.
11065 * configure: Regenerated.
11067 2003-01-24 Nick Clifton <nickc@redhat.com>
11069 * Add sh2e support:
11071 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11073 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11074 (sh2e_show_regs): New.
11075 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11076 * config/sh/tm-sh.h: Added sh2e to comments.
11078 2003-01-23 Jim Blandy <jimb@redhat.com>
11080 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11081 symbols found)" message here; we haven't checked for a separate
11082 debug info file yet, so we don't know yet.
11083 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11084 we've looked everywhere. Also, there's no need to print a special
11085 message when we're loading the separate debug info file: the one
11086 symbol_file_add prints is fine.
11088 2003-01-23 Alexander Larsson <alexl@redhat.com>
11089 Jim Blandy <jimb@redhat.com>
11091 Add support for executables whose debug info has been separated
11092 out into a separate file, leaving only a link behind.
11093 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11094 and separate_debug_objfile_backlink.
11095 (put_objfile_before): New declaration.
11096 * symfile.c: #include "filenames.h".
11097 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11098 debug info in a separate file, read that, too. Save the addrs
11099 argument, so we can use it again to read the separated debug info;
11100 syms_from_objfile modifies the table we pass it.
11101 (reread_symbols): After re-reading an objfile, call
11102 reread_separate_symbols to refresh its separate debug info
11103 objfile, if it has one.
11104 (reread_separate_symbols, find_separate_debug_file,
11105 get_debug_link_info, separate_debug_file_exists): New functions.
11106 (debug_file_directory): New global var.
11107 (_initialize_symfile): Initialize debug_file_directory, and
11108 provide the new `set debug-file-directory' command to let the user
11110 * objfiles.c (free_objfile): If this objfile has its debug info in
11111 a separate objfile, free that one too. If this is itself a
11112 separate debug info objfile, clear our parent's backlink.
11113 (put_objfile_before): New function.
11114 * utils.c (gnu_debuglink_crc32): New function.
11115 * defs.h (gnu_debuglink_crc32): New declaration.
11116 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11117 * configure.in: Handle --with-separate-debug-dir config option.
11118 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11119 * acconfig.h (DEBUGDIR): New macro.
11120 * configure, aclocal.m4, config.in: Regenerated.
11122 2003-01-22 Jim Blandy <jimb@redhat.com>
11124 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11125 like the old symbol_file_add, but taking new arguments: you can
11126 now pass in either a `struct section_addr_info' list to say where
11127 each section is loaded, or a `struct section_offsets' table. Pass
11128 these new arguments through to syms_from_objfile as appropriate.
11129 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11130 with the appropriate quiescent values for the new arguments.
11132 * symfile.c: #include "gdb_assert.h".
11133 (syms_from_objfile): Add the ability to pass in a section offset
11134 table directly, as an alternative to the section_addr_info table.
11135 Document arguments better.
11136 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11137 * symfile.h (syms_from_objfile): Update declaration.
11138 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11140 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11142 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11144 Original patch by Tom Tromey <tromey@cygnus.com> and
11145 Jason Molenda <jmolenda@apple.com>.
11146 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11147 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11148 * NEWS: Mention profiling.
11149 * configure.in (--enable-gdbtk): Fix typo.
11150 (--enable-profiling): New. Set PROFILE_CFLAGS.
11151 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11153 (profiling_state): New variable.
11154 (mcleanup_wrapper): New function.
11155 (_initialize_maint): Remove NOTYET, fix call to
11156 add_setshow_boolean_cmd for "maint set profile".
11157 * configure: Regenerated.
11159 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11161 * Makefile.in (install-gdbtk): Install PNG images too.
11163 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11165 * exec.c (text_start): Delete global variable.
11166 (exec_file_attach): Make text_start local to the function.
11167 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11168 * valops.c (hand_function_call): Delete code that handles
11169 BEFORE_TEXT_END and AFTER_TEXT_END.
11170 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11171 of CALL_DUMMY_LOCATION.
11172 * gdbarch.c: Regenerate.
11173 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11174 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11175 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11176 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11177 (text_end): Delete extern declaration.
11179 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11181 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11182 * blockframe.c (backtrace_below_main): Move to "frame.c".
11183 (frame_chain_valid): Delete check for backtrace_below_main.
11184 (_initialize_blockframe): Delete initialization, move ``set
11185 backtrace-below-main'' command to "frame.c".
11186 (do_flush_frames_sfunc): Delete function.
11187 * frame.c: Include "command.h" and "gdbcmd.h".
11188 (frame_type_from_pc): New function.
11189 (create_new_frame): Use frame_type_from_pc.
11190 (legacy_get_prev_frame): New function.
11191 (get_prev_frame): Rewrite. When an old style frame, call
11192 legacy_get_prev_frame. Otherwize, unwind the PC first.
11193 (_initialize_frame): Add ``set backtrace-below-main'' command.
11194 * Makefile.in (frame.o): Update dependencies.
11196 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11198 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11199 DEPRECATED_REGISTERS_INFO.
11201 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11203 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11204 Maintainers'. Update `Various Maintainers'.
11206 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11208 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11209 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11210 Suppress actual parameters when `-'.
11211 * gdbarch.h, gdbarch.c: Regenerate.
11213 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11215 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11216 code handling dummy frames.
11218 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11220 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11221 (struct frame_unwind): Add field pop.
11222 * frame.h (frame_pop): Declare.
11223 * frame.c (frame_saved_regs_pop): New function.
11224 (trad_frame_unwinder): Add frame_saved_regs_pop.
11225 (frame_pop): New function.
11226 * dummy-frame.c (dummy_frame_pop): New function.
11227 (discard_innermost_dummy): New function.
11228 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11229 (dummy_frame_unwind): Add dummy_frame_pop.
11230 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11231 * valops.c (hand_function_call): Ditto.
11232 * stack.c (return_command): Ditto.
11234 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11236 * cris-tdep.c: Fix function declaration indentation.
11237 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11238 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11239 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11240 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11241 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11242 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11244 2003-01-18 Michael Chastain <mec@shout.net>
11246 * README (Unpacking and Installation -- quick overview):
11247 Warn against ".../gdb-5.3/gdb/configure".
11249 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11251 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11252 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11253 (struct frame_unwind): Declare opaque.
11254 (dummy_frame_p): Declare function.
11255 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11256 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11257 * dummy-frame.c: Include "frame-unwind.h".
11258 (dummy_frame_p): New function.
11259 (dummy_frame_unwind): New variable.
11260 * frame.c: Include "frame-unwind.h".
11261 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11262 to use the new unwind field.
11263 (set_unwind_by_pc): Delete function.
11264 (create_new_frame, get_prev_frame): Set unwind field using
11265 frame_unwind_find_by_pc.
11266 (trad_frame_unwind, trad_frame_unwinder): New variables.
11267 * frame.h (trad_frame_unwind): Declare variable.
11268 (frame_id_unwind_ftype): Delete declaration.
11269 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11270 (struct frame_unwind): Declare opaque.
11271 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11272 register_unwind with a single unwind pointer.
11273 * frame-unwind.h, frame-unwind.c: New files.
11274 * Makefile.in (SFILES): Add frame-unwind.c.
11275 (frame_unwind_h): Define.
11276 (COMMON_OBS): Add frame-unwind.o.
11277 (frame-unwind.o): Specify dependencies.
11278 (frame.o, dummy-frame.o): Update dependencies.
11280 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11282 * ada-valprint.c: Eliminate PTR.
11283 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11284 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11285 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11286 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11287 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11288 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11289 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11291 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11293 * main.c (captured_main): Don't use PTR.
11294 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11295 * gdbtypes.c (lookup_primitive_typename): Ditto.
11296 (lookup_struct_elt_type): Ditto.
11297 * f-valprint.c (info_common_command): Ditto.
11298 (list_all_visible_commons): Ditto.
11299 * jv-typeprint.c (java_type_print_base): Ditto.
11301 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11302 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11303 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11304 i386-interix-nat.c and i386-interix-tdep.c. Rename
11305 m68klinux-nat.c and m68klinux-tdep.c. Rename
11306 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11307 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11308 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11309 * main.c (captured_main): Use xfree, not free.
11311 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11313 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11314 ID back using a parameter.
11315 * frame.c (frame_id_unwind): Update call.
11316 (frame_saved_regs_id_unwind): Update.
11317 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11318 * dummy-frame.h (struct frame_id): Add opaque declaration.
11319 (dummy_frame_id_unwind): Update declaration.
11321 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11323 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11325 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11327 * MAINTAINERS (Stephen P. Smith): Updated email address.
11329 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11332 * breakpoint.c (until_break_command): Add new argument. Use it to
11333 decide whether to stop only at the current frame or not.
11334 * breakpoint.h (until_break_command): Update prototype.
11335 * infcmd.c (until_command): Add new argument to until_break_command
11337 (advance_command): New function.
11338 (_initialize_infcmd): Update help string for 'until' command.
11339 Add new 'advance' command.
11341 2003-01-14 David Carlton <carlton@math.stanford.edu>
11343 * linespec.c (decode_line_1): Normalize comments.
11344 (set_flags): Ditto.
11345 (locate_first_half): Ditto.
11346 (decode_compound): Ditto.
11347 (symtab_from_filename): Ditto.
11348 (decode_all_digits): Ditto.
11349 (decode_dollar): Ditto.
11350 (find_methods): Ditto.
11351 (find_toplevel_char): Ditto.
11353 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11355 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11356 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11357 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11358 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11359 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11360 * language.c, language.h, m32r-tdep.c: Update copyright.
11361 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11362 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11363 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11364 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11365 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11366 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11368 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11370 * stabsread.h (process_later, resolve_cfront_continuation):
11372 Update copyright years.
11373 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11374 Update copyright year.
11375 * dbxread.c(struct cont_elem): Obsolete.
11376 (process_later, process_now): Obsolete functions.
11377 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11378 Update copyright year.
11379 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11380 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11381 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11382 (parse_partial_symbols): Obsolete cfront support.
11384 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11386 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11387 read_cfront_baseclasses, read_cfront_member_functions,
11388 resolve_cfront_continuation,read_cfront_static_fields,
11389 copy_cfront_struct_fields): Obsolete functions.
11390 (define_symbol, read_one_struct_field): Obsolete cfront support.
11391 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11392 Update Copyright year.
11394 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11396 * stack.c (print_frame_info, print_stack_frame_base_stub,
11397 print_stack_frame_base, show_and_print_stack_frame_stub,
11398 show_and_print_stack_frame, print_only_stack_frame_stub,
11399 print_only_stack_frame): Delete functions.
11400 (print_stack_frame_stub): Call print_frame_info instead of
11401 print_frame_info_base.
11402 (print_frame_info_base): Rename to print_frame_info.
11403 (backtrace_command_1): Call print_frame_info, instead of
11404 print_frame_info_base.
11405 (current_frame_command): Call print_stack_frame, instead of
11406 print_only_stack_frame.
11407 (frame_command): Call print_stack_frame, instead of
11408 show_and_print_stack_frame.
11409 (up_command): Ditto.
11410 (down_command): Ditto.
11411 * frame.h (print_only_stack_frame): Delete prototype.
11412 * infrun.c (normal_stop): Call print_stack_frame, instead of
11413 show_and_print_stack_frame.
11414 * thread.c (info_threads_command): Call print_stack_frame, instead
11415 of print_only_stack_frame.
11417 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11419 * README (Graphical interface to GDB): Update URL. Point at
11422 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11425 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11427 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11430 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11432 * thread-db.c (attach_thread): Prototype.
11433 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11434 thread information (ti), and valid flags (th_valid, ti_valid).
11435 (attach_thread): Move target_pid_to_str call to after the thread
11436 is added to GDB's list. Initialize the cache.
11437 (thread_get_info_callback, thread_db_map_id2thr)
11438 (thread_db_get_info): New functions.
11439 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11440 (thread_db_store_registers, thread_db_thread_alive)
11441 (thread_db_get_thread_local_address): Use them.
11442 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11443 of calling error() for threads in unknown state.
11445 (clear_lwpid_callback): New function.
11446 (thread_db_resume): Use it to clear the cache.
11448 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11450 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11451 (resume_callback): Remove dead code.
11453 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11455 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11457 * gdbarch.h, gdbarch.c: Regenerate.
11458 * stack.c (frame_info): Only initialize the saved registers when
11459 FRAME_INIT_SAVED_REGS_P.
11460 * frame.c (frame_saved_regs_register_unwind): Assert
11461 FRAME_INIT_SAVED_REGS_P.
11462 (deprecated_generic_get_saved_register): Ditto.
11464 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11466 * source.c (openp): Squelch warning about "filename".
11468 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11470 * source.c (openp): If the file does not exist don't necessarily
11473 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11476 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11477 (integer_types_same_name_p): New function.
11478 (rank_one_type): Use it.
11479 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11481 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11483 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11485 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11486 * configure.in: Add --with-sysroot.
11487 * configure: Regenerated.
11488 * main.c (gdb_sysroot): New variable.
11489 (captured_main): Initialize gdb_sysroot.
11490 * defs.h (gdb_sysroot): New extern declaration.
11491 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11493 2003-01-12 Michael Chastain <mec@shout.net>
11495 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11497 2003-01-12 Michael Chastain <mec@shout.net>
11499 * top.c (print_gdb_version): Bump copyright year to 2003.
11501 2003-01-12 David Carlton <carlton@bactrian.org>
11503 * linespec.c (symtab_from_filename): Rename variable 's' to
11506 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11508 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11510 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11512 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11514 * d10v-tdep.c: Include "gdb_assert.h".
11515 (d10v_store_return_value): Rewrite to match current interface.
11516 (d10v_extract_struct_value_address): Ditto.
11517 (d10v_extract_return_value): Ditto.
11518 (d10v_gdbarch_init): Set store_restore_value,
11519 extract_struct_value_address and extract_return_value.
11521 2003-01-12 J. Brobecker <brobecker@gnat.com>
11523 * hpread.c (set_namestring): New procedure replacing the
11524 SET_NAMESTRING macro.
11525 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11526 by calls to set_namestring.
11528 2003-01-11 J. Brobecker <brobecker@gnat.com>
11530 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11531 a compilation warning.
11532 (hpread_process_one_debug_symbol): Likewise.
11534 2003-01-10 David Carlton <carlton@math.stanford.edu>
11536 * linespec.c (decode_line_1): Rename variable 's' to
11538 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11539 (decode_dollar): Ditto.
11540 (decode_variable): Ditto.
11541 (symbol_found): Ditto.
11543 2003-01-09 Michael Chastain <mec@shout.net>
11545 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11547 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11549 * win32-nat.c (set_process_privilege): New function.
11550 (child_attach): Call set_process_privilege() to enable the
11551 SE_DEBUG_NAME user privilege if available in process token.
11553 2003-01-10 J. Brobecker <brobecker@gnat.com>
11555 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11556 compilation error in the previous revision.
11558 2003-01-09 David Carlton <carlton@math.stanford.edu>
11560 * linespec.c: Update copyright.
11562 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11564 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11565 than inferior_ptid.
11566 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11568 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11570 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11572 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11573 (frame_saved_regs_zalloc): Update.
11574 (frame_saved_regs_register_unwind): Update.
11575 (create_new_frame): Update.
11576 (get_prev_frame): Update.
11577 (frame_extra_info_zalloc): Update.
11578 (deprecated_get_frame_saved_regs): Update.
11579 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11580 * cris-tdep.c: Update comment.
11582 * somsolib.h: Fix function indentation.
11583 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11584 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11585 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11586 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11587 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11589 * infrun.c (follow_fork): Use ISO C definition.
11590 * expprint.c (print_subexp): Use xfree instead of free.
11591 * charset.c: Include "gdb_string.h" instead of <string.h>.
11592 (register_iconv_charsets): Use ISO C definition.
11593 (host_charset, target_charset): Ditto.
11594 * Makefile.in (charset.o): Update dependencies.
11595 (mi-cmd-env.o): Update dependencies.
11597 2003-01-08 Andrew Cagney <cagney@redhat.com>
11599 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11602 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11604 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11605 build directories. Save edited gdb output in Mbuild.log. If a
11606 build fails, remove any final GDB executable.
11608 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11610 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11611 replacing hex constants with function names and stripping leading
11612 file name directory prefixes.
11614 2003-01-08 Andrew Cagney <cagney@redhat.com>
11616 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11619 2003-01-08 David Carlton <carlton@math.stanford.edu>
11621 * linespec.c (decode_line_1): Move code into decode_variable.
11622 (decode_variable): New function.
11624 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11626 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11628 2003-01-08 Andrew Cagney <cagney@redhat.com>
11630 * cris-tdep.c (cris_frame_init_saved_regs): Use
11631 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11633 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11634 (sh64_nofp_frame_init_saved_regs): Ditto.
11635 (sh_fp_frame_init_saved_regs): Ditto.
11636 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11637 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11638 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11639 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11641 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11643 * minsyms.c (lookup_minimal_symbol): Update comment.
11644 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11645 (lookup_minimal_symbol_solib_trampoline): Likewise.
11647 2003-01-08 Andrew Cagney <cagney@redhat.com>
11649 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11650 frame_relative_level.
11652 * alpha-tdep.c: Use get_frame_extra_info.
11653 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11654 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11655 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11656 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11658 * alpha-tdep.c: Use get_next_frame.
11659 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11660 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11661 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11662 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11663 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11664 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11665 * xstormy16-tdep.c: Ditto.
11667 2003-01-07 Andrew Cagney <cagney@redhat.com>
11669 * alpha-tdep.c: Use get_frame_base.
11670 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11671 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11672 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11673 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11674 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11675 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11676 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11677 * config/sparc/tm-sparc.h: Ditto.
11679 2003-01-07 Andrew Cagney <cagney@redhat.com>
11681 * frame.c (deprecated_get_frame_context): New function.
11682 (deprecated_set_frame_context): New function.
11683 * frame.h (deprecated_get_frame_context): Declare.
11684 (deprecated_set_frame_context): Declare.
11685 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11686 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11688 2003-01-07 Andrew Cagney <cagney@redhat.com>
11690 * frame.c (deprecated_set_frame_next_hack): New function.
11691 (deprecated_set_frame_prev_hack): New function.
11692 * frame.h (deprecated_set_frame_next_hack): Declare.
11693 (deprecated_set_frame_prev_hack): Declare.
11694 * mcore-tdep.c (analyze_dummy_frame): Use
11695 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11696 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11698 2003-01-07 David Carlton <carlton@math.stanford.edu>
11700 * linespec.c (decode_line_1): Move code into decode_dollar.
11701 (decode_dollar): New function.
11703 2003-01-07 Andrew Cagney <cagney@redhat.com>
11705 * arm-tdep.c (arm_init_extra_frame_info): Use
11706 deprecated_update_frame_base_hack.
11707 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11708 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11709 (fix_frame_pointer): Ditto.
11710 (mn10300_analyze_prologue): Ditto.
11712 2003-01-07 Andrew Cagney <cagney@redhat.com>
11714 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11715 extra_info using frame_extra_info_zalloc.
11716 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11717 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11718 (sh64_init_extra_frame_info): Ditto.
11719 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11720 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11721 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11722 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11723 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11724 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11725 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11726 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11727 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11728 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11729 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11730 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11732 * mn10300-tdep.c (analyze_dummy_frame): Use
11733 deprecated_set_frame_extra_info_hack.
11734 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11736 2003-01-07 J. Brobecker <brobecker@gnat.com>
11738 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11739 class is not scText. These do not define "real" procedures.
11740 (parse_partial_symbols): Likewise.
11742 2003-01-06 Michael Snyder <msnyder@redhat.com>
11744 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11746 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11748 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11749 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11750 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11751 deprecated_frame_xmalloc_with_cleanup.
11752 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11753 deprecated_frame_xmalloc.
11754 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11755 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11757 2003-01-06 Andrew Cagney <cagney@redhat.com>
11759 * x86-64-linux-tdep.c: Include "osabi.h".
11760 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11762 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11764 2003-01-06 Andrew Cagney <cagney@redhat.com>
11766 * MAINTAINERS (Target Instruction Set Architectures): Update
11767 arm-elf. Can be built with -Werror, has been multiarched.
11769 * value.h (unpack_long): Make buffer parameter constant.
11770 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11771 * scm-lang.h (scm_parse): Ditto.
11772 * defs.h (extract_typed_address, extract_address): Ditto.
11773 (extract_long_unsigned_integer): Ditto.
11774 * inferior.h (unsigned_pointer_to_address): Ditto.
11775 (signed_pointer_to_address): Ditto.
11776 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11777 * gdbarch.h, gdbarch.c: Regenerate.
11778 * findvar.c (extract_long_unsigned_integer): Update.
11779 (extract_address): Update.
11780 (extract_typed_address): Update.
11781 (unsigned_pointer_to_address): Update.
11782 * values.c (unpack_long): Update.
11783 (unpack_double): Update.
11784 (unpack_pointer): Update.
11785 (unpack_field_as_long): Update.
11786 * d10v-tdep.c (d10v_pointer_to_address): Update.
11787 * avr-tdep.c (avr_pointer_to_address): Update.
11788 * scm-lang.c (scm_unpack): Update.
11789 * findvar.c (signed_pointer_to_address): Update.
11791 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11793 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11794 since it is in i386-tdep.c.
11796 2003-01-06 J. Brobecker <brobecker@gnat.com>
11798 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11799 failure introduced in the previous change.
11801 2003-01-05 Michael Chastain <mec@shout.net>
11803 * README: Remove references to deleted remote-*.c files:
11804 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11805 remote-nrom.c, remote-os9k.c, remote-udi.c.
11807 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11809 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11810 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11811 i386_get_longjmp_target.
11813 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11815 * arm-tdep.c (prologue_cache): Change to a pointer.
11816 (_initialize_arm_tdep): Allocate prologue_cache.
11817 (check_prologue_cache): Update.
11818 (save_prologue_cache): Update.
11819 (arm_gdbarch_init): Update.
11821 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11823 * stabsread.c (update_method_name_from_physname): Call complaint()
11826 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11828 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11829 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11830 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11832 * blockframe.c: Include "gdbcmd.h" and "command.h".
11833 (backtrace_below_main): New variable.
11834 (file_frame_chain_valid, func_frame_chain_valid)
11835 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11836 (generic_func_frame_chain_valid): Remove functions.
11837 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11838 (_initialize_blockframe): New function.
11839 * Makefile.in (blockframe.o): Update dependencies.
11840 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11841 comment. Call frame_chain_valid ().
11842 * frame.h: Remove old prototypes. Add prototype for
11843 frame_chain_valid and update comments to match.
11844 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11845 Remove old comment.
11846 * gdbarch.h: Regenerated.
11847 * gdbarch.c: Regenerated.
11849 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11850 set_gdbarch_frame_chain_valid.
11851 * avr-tdep.c (avr_gdbarch_init): Likewise.
11852 * cris-tdep.c (cris_gdbarch_init): Likewise.
11853 * frv-tdep.c (frv_gdbarch_init): Likewise.
11854 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11855 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11856 (i386_nw_init_abi): Likewise.
11857 (i386_gdbarch_init): Likewise.
11858 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11860 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11861 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11862 * mips-tdep.c (mips_gdbarch_init): Likewise.
11863 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11864 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11865 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11866 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11867 * s390-tdep.c (s390_gdbarch_init): Likewise.
11868 * sh-tdep.c (sh_gdbarch_init): Likewise.
11869 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11870 * v850-tdep.c (v850_gdbarch_init): Likewise.
11871 * vax-tdep.c (vax_gdbarch_init): Likewise.
11872 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11874 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11875 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11876 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11877 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11878 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11879 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11880 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11881 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11883 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11885 * Makefile.in (acconfig_h): Remove incorrect macro.
11886 (config_h): Define.
11887 (osabi.o): Update dependencies.
11888 * configure.tgt: Set gdb_osabi based on target triplet.
11889 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11890 * configure: Regenerated.
11891 * config.in: Regenerated.
11892 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11893 (GDB_OSABI_DEFAULT): Define if not already defined.
11894 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11895 (set_osabi_string): New variables.
11896 (gdbarch_register_osabi): Add new OS ABI to
11897 gdb_osabi_available_names.
11898 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11899 (set_osabi, show_osabi): New functions.
11900 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11902 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11904 * arch-utils.c (gdbarch_info_init): Set osabi to
11905 GDB_OSABI_UNINITIALIZED.
11906 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11907 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11908 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11909 * gdbarch.c: Regenerated.
11910 * gdbarch.h: Regenerated.
11911 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11913 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11914 * osabi.h (enum gdb_osabi): Move to defs.h.
11915 (gdbarch_init_osabi): Update prototype.
11916 * defs.h (enum gdb_osabi): Moved here.
11917 * Makefile.in: Update dependencies.
11919 * alpha-tdep.h: Don't include "osabi.h".
11920 (struct gdbarch_tdep): Remove osabi member.
11921 * alpha-tdep.c: Include "osabi.h".
11922 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11923 iterate over arches. Update call to gdbarch_init_osabi.
11924 (alpha_dump_tdep): Don't dump osabi.
11925 * alpha-linux-tdep.c: Include "osabi.h".
11926 * alpha-osf1-tdep.c: Include "osabi.h".
11927 * alphafbsd-tdep.c: Include "osabi.h".
11928 * alphanbsd-tdep.c: Include "osabi.h".
11930 * arm-tdep.h: Don't include "osabi.h".
11931 (struct gdbarch_tdep): Remove osabi member.
11932 * arm-tdep.c: Include "osabi.h".
11933 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11934 iterate over arches. Update call to gdbarch_init_osabi.
11935 (arm_dump_tdep): Don't dump osabi.
11936 * arm-linux-tdep.c: Include "osabi.h".
11937 * armnbsd-tdep.c: Include "osabi.h".
11939 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11940 Update call to gdbarch_init_osabi.
11942 * i386-tdep.h: Don't include "osabi.h".
11943 (struct gdbarch_tdep): Remove osabi member.
11944 * i386-tdep.c: Include "osabi.h".
11945 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11946 iterate over arches. Update call to gdbarch_init_osabi.
11947 (i386_dump_tdep): Don't dump osabi.
11948 * i386-linux-tdep.c: Include "osabi.h".
11949 * i386-sol2-tdep.c: Include "osabi.h".
11950 * i386bsd-tdep.c: Include "osabi.h".
11951 * i386gnu-tdep.c: Include "osabi.h".
11952 * i386ly-tdep.c: Include "osabi.h".
11953 * i386nbsd-tdep.c: Include "osabi.h".
11954 * i386obsd-tdep.c: Include "osabi.h".
11956 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11957 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11958 check osabi when iterating over arches. Update call to
11959 gdbarch_init_osabi.
11960 (mips_dump_tdep): Don't dump osabi.
11962 * ns32k-tdep.h: Don't include "osabi.h".
11963 (struct gdbarch_tdep): Remove.
11964 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11965 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11966 allocate tdep. Update call to gdbarch_init_osabi.
11967 (ns32k_dump_tdep): Remove.
11968 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11969 * ns32knbsd-tdep.c: Include "osabi.h".
11971 * ppc-tdep.h: Don't include "osabi.h".
11972 (struct gdbarch_tdep): Remove osabi member.
11973 * rs6000-tdep.c: Include "osabi.h".
11974 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11975 osabi when iterating over arches. Update call to
11976 gdbarch_init_osabi.
11977 (rs6000_dump_tdep): Don't dump osabi.
11978 * ppc-linux-tdep.c: Include "osabi.h".
11979 * ppcnbsd-tdep.c: Include "osabi.h".
11981 * sh-tdep.h: Don't include "osabi.h".
11982 (struct gdbarch_tdep): Remove osabi member.
11983 * sh-tdep.c: Include "osabi.h".
11984 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11985 iterate over arches. Update call to gdbarch_init_osabi.
11986 (sh_dump_tdep): Don't dump osabi.
11987 * shnbsd-tdep.c: Include "osabi.h".
11989 * sparc-tdep.c: Include "osabi.h".
11990 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11991 iterate over arches. Update call to gdbarch_init_osabi.
11992 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11995 * vax-tdep.h: Don't include "osabi.h".
11996 (struct gdbarch_tdep): Remove.
11997 * vax-tdep.c: Include "osabi.h".
11998 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11999 iterate over arches. Don't allocate tdep. Update call
12000 to gdbarch_init_osabi.
12001 (vax_dump_tdep): Remove.
12002 (_initialize_vax_tdep): Update call to gdbarch_register.
12004 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12006 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12008 (breakpoint_re_set_one): Don't fetch the value for a disabled
12011 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12013 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12014 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12015 (COERCE_FLOAT_TO_DOUBLE): Remove.
12016 * gdbarch.c: Regenerate.
12017 * gdbarch.h: Regenerate.
12018 * Makefile.in: Remove value_h from gdbarch_h.
12019 * valops.c (coerce_float_to_double): New variable.
12020 (default_coerce_float_to_double): Remove.
12021 (standard_coerce_float_to_double): Remove.
12022 (value_arg_coerce): Use coerce_float_to_double.
12023 (_initialize_valops): Add "set coerce-float-to-double".
12024 * value.h (default_coerce_float_to_double): Remove prototype.
12025 (standard_coerce_float_to_double): Remove prototype.
12027 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12029 * mdebugread.c (parse_symbol): Likewise.
12030 * stabsread.c (define_symbol): Mark all functions as prototyped.
12032 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12033 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12034 set_gdbarch_coerce_float_to_double.
12035 * arm-tdep.c (arm_gdbarch_init): Likewise.
12036 * frv-tdep.c (frv_gdbarch_init): Likewise.
12037 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12038 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12039 * mips-tdep.c (mips_gdbarch_init): Likewise.
12040 (mips_coerce_float_to_double): Remove.
12041 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12042 (rs6000_coerce_float_to_double): Remove.
12043 * s390-tdep.c (s390_gdbarch_init): Likewise.
12044 * sh-tdep.c (sh_gdbarch_init): Likewise.
12045 (sh_coerce_float_to_double): Remove.
12046 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12047 (sparc_coerce_float_to_double): Remove.
12048 * v850-tdep.c (v850_gdbarch_init): Likewise.
12049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12050 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12051 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12052 (hppa_coerce_float_to_double): Remove prototype.
12053 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12055 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12057 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12059 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12061 Suggested by Stewart Brown <sb24@avaya.com>:
12062 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12063 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12064 (c_type_print_varspec_suffix): Likewise.
12066 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12068 * configure.in: Don't set and AC_SUBST SUBDIRS.
12069 * configure: Regenerated.
12071 * configure.in: Remove code dealing with shared libraries.
12072 * Makefile.in: Remove HLDFLAGS and HLDENV.
12073 * configure: Regenerated.
12075 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12077 * frame.c (deprecated_frame_xmalloc): New function.
12078 (deprecated_set_frame_saved_regs_hack): New function.
12079 (deprecated_set_frame_extra_info_hack): New function.
12080 * frame.h (deprecated_frame_xmalloc): Declare.
12081 (deprecated_set_frame_saved_regs_hack): Declare.
12082 (deprecated_set_frame_extra_info_hack): Declare.
12084 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12086 * configure.in: Move code that provides the --enable-gdbtk option
12087 right after the code that handles the --enable-tui option, and
12088 polish it somewhat.
12089 * configure: Regenerated.
12091 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12092 AC_CHECK_FUNCS and remove the old check for pread64.
12093 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12094 * acconfig.h (_GNU_SOURCE): Add.
12095 (HAVE_PREAD64): Remove.
12096 * configure, aclocal.m4, config.in: Regenerated.
12098 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12100 * alpha-tdep.c: Use get_frame_saved_regs.
12101 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12102 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12103 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12104 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12105 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12107 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12109 * configure.in: Remove all use of the SUBDIRS variable; add
12110 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12111 code providing the --enable-multi-ice option, and move it right in
12112 front of the code that checks whether gdbserver is supported.
12114 * configure: Regenerated.
12115 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12118 2003-01-03 Andrew Cagney <cagney@redhat.com>
12120 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12121 * avr-tdep.c, cris-tdep.c: Ditto.
12122 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12123 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12125 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12127 * configure.in: Remove --enable-netrom option.
12128 * configure: Regenerated.
12130 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12132 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12133 declaration for `struct re_pattern_buffer' instead.
12134 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12136 2003-01-03 J. Brobecker <brobecker@gnat.com>
12138 * mdebugread.c (parse_symbol): Count until the stEnd matching
12139 the structure name.
12141 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12143 * configure.in: Remove --with-cpu option.
12144 subscripts. Remove evil changequotes here.
12145 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12146 * config.in, configure: Regenerated.
12148 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12149 * configure.in: Cleanup section that sources GDB and BFD configure
12150 subscripts. Remove evil changequotes here.
12151 * config.in, configure: Regenerated.
12153 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12155 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12156 frame accessor methods.
12157 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12158 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12159 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12160 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12161 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12162 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12163 * z8k-tdep.c: Ditto.
12165 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12167 * configure.in: Remove UI_OUT configuration code.
12168 * ada-lang.c: Update assuming UI_OUT is always true.
12169 * Makefile.in (UIOUT_CFLAGS): Remove.
12170 * configure: Regenerated.
12171 * TODO: Remove blurb about elimination of -DUI_OUT.
12173 * configure.in: Move code that provides the --enable-gdbcli,
12174 --enable-gdbmi options right before the code that handles the
12175 --enable-tui option. Polish a bit.
12176 * configure: Regenerated.
12178 * configure.in: Rewrite check for GNU regex and the
12179 --without-included regex option, and move it into the "Checks for
12180 library functions" section. This makes us use the system regex
12181 again by default on systems with version 2 of the GNU C library.
12182 This was apparently broken.
12183 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12184 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12185 * config.in, configure: Regenerated.
12187 * configure.in: Move code that provides the --enable-tui option
12188 before the "Checks for libraries" section. Polish the code
12189 somewhat and set need_curses to yes if we build the TUI. Rewrite
12190 code that looks for a library providing termcap functionality to
12191 match more closely what's done in the Readline library, and move
12192 it into to the "Checks for libraries" section.
12193 * configure: Regenerated.
12194 * Makefile.in (TERMCAP): Remove variable.
12195 * config/i386/go32.mh (TERMCAP): Remove variable.
12197 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12199 * MAINTAINERS: Mention gdb_mbuild.sh.
12200 * gdb_mbuild.sh: Rewrite.
12202 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12204 * configure.in: Fix typo in last change.
12205 * config.in, configure: Regenerated.
12207 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12209 * valarith.c (value_binop): Delete obsolete code and comments.
12210 * configure.host: Ditto.
12211 * buildsym.h (make_blockvector): Ditto.
12212 * buildsym.c (make_blockvector): Ditto.
12213 * defs.h (enum language): Ditto.
12214 (chill_demangle): Ditto.
12215 * elfread.c (elf_symtab_read): Ditto.
12216 * dwarfread.c (CHILL_PRODUCER): Ditto.
12217 (set_cu_language): Ditto.
12218 (handle_producer): Ditto.
12219 * expprint.c (print_subexp): Ditto.
12220 * gdbtypes.c (chill_varying_type): Ditto.
12221 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12222 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12223 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12224 (chill_varying_type): Ditto.
12225 * language.h (_LANG_chill): Ditto.
12226 * language.c (binop_result_type, integral_type): Ditto.
12227 (character_type, string_type, structured_type): Ditto.
12228 (lang_bool_type, binop_type_check): Ditto.
12229 * stabsread.h (os9k_stabs): Ditto.
12230 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12231 (define_symbol, read_type, read_struct_fields): Ditto.
12232 (read_array_type, read_enum_type, read_huge_number): Ditto.
12233 (read_range_type, start_stabs): Ditto.
12234 * symfile.c (init_filename_language_table): Ditto.
12235 (add_psymbol_with_dem_name_to_list): Ditto.
12236 * symtab.c (symbol_init_language_specific): Ditto.
12237 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12238 * symtab.h (struct general_symbol_info): Ditto.
12239 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12240 * typeprint.c (typedef_print): Ditto.
12241 * utils.c (fprintf_symbol_filtered): Ditto.
12242 * valops.c (value_cast, search_struct_field, value_slice): Delete
12244 (varying_to_slice): Delete function.
12245 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12246 (varying_to_slice): Delete declaration.
12247 * MAINTAINERS: Update.
12249 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12251 * configure.in: Reorganize "Checks for library functions section"
12252 a bit. Remove check for `btowc' and `isascii' functions.
12253 * configure: Regenerated.
12255 * acconfig.h (_MSE_INT_H): Remove.
12256 * configure.in: Create "Checks for header files" section, and move
12257 appropriate tests there. Don't check for objlist.h, wchar.h,
12258 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12259 misdetection fix. Also add "Checks for types", "Checks for
12260 compiler characteristics" and "Checks for library functions"
12262 * config.in, configure: Regenerated.
12264 * configure.in: Create "Checks for programs" section, and move
12265 appropriate tests there.
12267 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12269 * configure.in: Create "Checks for libraries" section, and move
12270 appropriate tests there. Cleanup check for wctype in libw. Use
12271 AC_SEARCH_LIBS to see whether we need libsocket.
12272 * configure: Regenerated.
12274 For older changes see ChangeLog-2002
12280 version-control: never