Based on a patch from Daniel Berlin (dberlin@dberlin.org).
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
2
3 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
4 * symtab.h: Add opaque declarations of struct axs_value and
5 struct agent_expr.
6 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7 (struct location_funcs): New type.
8 (struct symbol): Add "loc" to aux_value.
9 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10 * dwarf2read.c: Include "dwarf2expr.h".
11 (dwarf2_symbol_mark_computed): New function.
12 (read_func_scope): Use it.
13 (var_decode_location): New function.
14 (new_symbol): Use it.
15 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
16
17 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
18 (dwarf2expr_h, dwarf2loc_h): New variables.
19 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
20 (dwarf2expr.o, dwarf2loc.o): New rules.
21 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
22 * buildsym.c (finish_block): Handle LOC_COMPUTED and
23 LOC_COMPUTED_ARG.
24 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
25 * m2-exp.y (yylex): Likewise.
26 * printcmd.c (address_info, print_frame_args): Likewise.
27 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
28 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
29 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
30 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
31 * symtab.c (lookup_block_symbol): Likewise.
32
33 2003-02-20 Adam Fedor <fedor@gnu.org>
34
35 * symtab.h: Remove objc_specific struct
36 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
37 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
38 Have language_objc use cplus_specific struct.
39
40 2003-02-20 Tom Tromey <tromey@redhat.com>
41
42 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
43 TYPE_NAME, when printing a String value. PR java/1075.
44
45 2003-02-20 Adam Fedor <fedor@gnu.org>
46
47 * objc-lang.h (find_methods): Remove declaration.
48 * objc-lang.c (find_methods): Make static.
49
50 2003-02-20 Christopher Faylor <cgf@redhat.com>
51
52 * win32-nat.c (get_image_name): Check return value from
53 ReadProcessMemory.
54 (child_xfer_memory): Ditto.
55
56 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
57
58 * configure.in (TARGET_SYSTEM_ROOT): Set default to
59 ${exec_prefix}/${target_alias}/sys-root. Match explicit
60 '${exec_prefix}' (in addition to the expansion thereof) as
61 relocatable.
62 * configure: Rebuilt.
63
64 2003-02-20 David Carlton <carlton@math.stanford.edu>
65
66 * symtab.c (search_symbols): Revert the search_symbols part of my
67 2002-12-23 patch. Add comment.
68
69 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
70
71 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
72 * dbxread.c (elfstab_build_psymtabs): Don't call
73 install_minimal_symbols.
74 (stabsect_build_psymtabs): Likewise.
75 * elfread.c (elf_symfile_read): Call install_minimal_symbols
76 earlier.
77 * somread.c (som_symfile_read): Call install_minimal_symbols
78 and do_cleanups earlier.
79 * nlmread.c (nlm_symfile_read): Likewise.
80 * mdebugread.c (elfmdebug_build_psymtabs): Call
81 install_minimal_symbols and make appropriate cleanups.
82
83 2003-02-20 Kevin Buettner <kevinb@redhat.com>
84
85 * solib.c (reload_shared_libraries): New function.
86 (_initialize_solib): Add callbacks for ``set solib-search-path''
87 and ``set solib-absolute-prefix''.
88
89 2003-02-20 David Carlton <carlton@math.stanford.edu>
90
91 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
92 expand comment.
93 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
94 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
95 * ada-typeprint.c (ada_typedef_print): Ditto.
96 * ax-gdb.c (gen_var_ref): Ditto.
97 * breakpoint.c (print_one_breakpoint): Ditto.
98 * buildsym.c (finish_block): Ditto.
99 * c-valprint.c (c_val_print): Ditto.
100 * expprint.c (print_subexp): Ditto.
101 * findvar.c (locate_var_value): Ditto.
102 * infcmd.c (jump_command): Ditto.
103 * linespec.c (decode_line_2, decode_compound): Ditto.
104 * maint.c (maintenance_translate_address): Ditto.
105 * objc-lang.c (compare_selectors, compare_classes): Ditto.
106 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
107 Ditto.
108 * p-valprint.c (pascal_val_print): Ditto.
109 * stabsread.c (define_symbol): Ditto.
110 * stack.c (print_frame, frame_info, print_block_frame_locals)
111 (print_frame_arg_vars, return_command): Ditto.
112 * symfile.c (compare_symbols, compare_psymbols): Ditto.
113 * symmisc.c (print_symbol): Ditto.
114 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
115 (compare_search_syms, print_symbol_info, print_msymbol_info)
116 (rbreak_command): Ditto.
117 * tracepoint.c (tracepoints_info): Ditto.
118 * typeprint.c (typedef_print): Ditto.
119 * valops.c (value_of_variable, hand_function_call): Ditto.
120 * cli/cli-cmds.c (edit_command, list_command): Ditto.
121 * ada-typeprint.c: Update Copyright.
122 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
123 * tracepoint.c, cli/cli-cmds.c: Ditto.
124
125 2003-02-20 Kevin Buettner <kevinb@redhat.com>
126
127 * frame.c (generic_unwind_get_saved_register): Make non-static.
128 * frame.h (generic_unwind_get_saved_register): Declare.
129 * mips-tdep.c (read_next_frame_reg): Fetch register from
130 current regcache when frame is NULL.
131 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
132 that must be NULL.
133 (mips_get_saved_register): Call generic_unwind_get_saved_register()
134 instead of frame_register_unwind().
135
136 2003-02-20 Andrew Cagney <ac131313@redhat.com>
137
138 * remote-sim.c (gdbsim_insert_breakpoint)
139 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
140 code.
141
142 2003-02-20 Andrew Cagney <ac131313@redhat.com>
143
144 * remote.c (_initialize_remote): Add commands "set/show remote
145 hardware-watchpoint-limit" and "set/show remote
146 hardware-breakpoint-limit".
147 (remote_hw_watchpoint_limit): Initialize to -1.
148 (remote_hw_breakpoint_limit): Ditto.
149 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
150
151 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
152
153 * coff-pe-read.c: New file - support reading of minimal symbols from a
154 portable executable using the export table.
155 * coff-pe-read.h: New file.
156 * coffread.c: Include coff-pe-read.h.
157 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
158 debugging symbols found.
159 * Makefile.in (SFILES): Add coff-pe-read.o.
160 (coff_pe_read_h): Define.
161 (COMMON_OBS): Add coff-pe-read.o.
162 (coffread.o): Add coff_pe_read_h dependency.
163 (coff-pe-read.o): New target.
164
165 2003-02-19 David Carlton <carlton@math.stanford.edu>
166
167 * Makefile.in (SFILES): Add block.c.
168 (block_h): New.
169 (COMMON_OBS): Add block.o.
170 (block.o): New.
171 (x86-64-tdep.o): Add $(block_h).
172 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
173 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
174 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
175 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
176 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
177 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
178 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
179 * value.h: Add opaque declaration for struct block.
180 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
181 * ada-lang.h: Ditto.
182 * x86-64-tdep.c: #include "block.h"
183 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
184 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
185 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
186 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
187 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
188 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
189 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
190 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
191 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
192 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
193 * symtab.c (block_function): Ditto.
194 (contained_in): Ditto.
195 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
196 block.h. Add opaque declaration for struct block.
197 * symtab.h: Move block_function and contained_in declarations to
198 block.h. Add opaque declarations for struct block, struct
199 blockvector.
200 (struct block): Move to block.h.
201 (struct blockvector): Ditto.
202 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
203 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
204 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
205 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
206 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
207 Ditto.
208 * block.c: New file.
209 * block.h: New file.
210
211 2003-02-19 Theodore A. Roth <troth@openavr.org>
212
213 * avr-tdep.c (avr_extract_return_value): Remove function.
214 (avr_store_return_value): Remove function.
215 (avr_extract_struct_value_address): Remove function.
216 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
217
218 2003-02-19 Andrew Cagney <ac131313@redhat.com>
219
220 * rs6000-tdep.c: Include "gdb_assert.h".
221 (registers_e500): Add "acc" and "spefscr".
222 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
223 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
224 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
225 really is "r0".
226 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
227
228 2003-02-18 Keith Seitz <keiths@redhat.com>
229
230 * Makefile.in: Add gdbtk-interps.c.
231
232 2003-02-18 Kevin Buettner <kevinb@redhat.com>
233
234 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
235 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
236
237 2003-02-18 Andrew Cagney <cagney@redhat.com>
238
239 * symtab.h (struct objfile): Add opaque declaration.
240
241 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
242
243 From Jim Ingham <jingham@apple.com>:
244 * dbxread.c (process_one_symbol): Use last_function_start rather
245 than function_start_offset to find the real beginning of the
246 current function. The latter is just the text section offset on
247 some systems, the former is always the real function start.
248
249 2003-02-17 Andrew Cagney <cagney@redhat.com>
250
251 * configure.in: Revert ${target} != ${host}.
252
253 2003-02-17 Andrew Cagney <ac131313@redhat.com>
254
255 * configure.in (Makefile): Use the test ${target} != ${host},
256 instead of the absence of the "nm.h" file, to determine of the
257 configuration non-native.
258 * configure: Regenerate.
259
260 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
261
262 From Brian Ford <ford@vss.fsi.com>
263
264 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
265 conditionalize tui_active test.
266 (lookup_cmd_1): Ditto.
267
268 2003-02-14 Mark Kettenis <kettenis@gnu.org>
269
270 * configure.in: Add check for _etext.
271 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
272 available.
273 * config.in, configure: regenerated.
274
275 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
276
277 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
278
279 2003-02-14 Andrew Cagney <ac131313@redhat.com>
280
281 * main.c (tui_version): Delete variable.
282 (captured_main): When --tui, set interpreter_p to "tui" instead of
283 enabling tui_version.
284 * printcmd.c (display_command) [TUI]: Test tui_active instead of
285 tui_version.
286 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
287 * cli/cli-cmds.c (disassemble_command): Ditto.
288 * defs.h (tui_version): Delete declaration.
289 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
290 (tui-interp.o): Add rules.
291 (SUBDIR_TUI_OBS): Add "tui-interp.o".
292
293 2003-02-14 Christopher Faylor <cgf@redhat.com>
294
295 * win32-nat.c (register_loaded_dll): Correctly set address range for
296 just-loaded dll.
297
298 2003-02-12 Jason Molenda (jmolenda@apple.com)
299
300 * symmisc.c (print_objfile_statistics): Include information about
301 the number of psymtabs and symtabs in each object file.
302
303 2003-02-13 Keith R Seitz <keiths@redhat.com>
304
305 * main.h (struct captured_main_args): Add interpreter_p.
306 * main.c (captured_main): Initialize interpreter_p from context.
307 * gdb.c (main): Set interpreter_p argument.
308 * Makefile.in (gdb.o): Add dependency for interps.h.
309
310 2003-02-12 Andrew Cagney <ac131313@redhat.com>
311
312 * event-top.c (cli_command_loop): Delete declaration.
313 (_initialize_event_loop): Delete function setting event_loop_hook.
314 * event-top.h (cli_command_loop): Declare. Update copyright.
315 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
316 * interps.c (current_interp_command_loop): When event_loop_p, call
317 cli_command_loop.
318
319 2003-02-12 Andrew Cagney <ac131313@redhat.com>
320
321 * interps.h (interp_command_loop_ftype): Change return type to
322 void.
323
324 2003-02-12 Michal Ludvig <mludvig@suse.cz>
325
326 * x86-64-tdep.c (x86_64_extract_return_value)
327 (x86_64_store_return_value): Use regcache instead of regbuf.
328 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
329 * x86-64-linux-nat.c (fill_gregset): Use regcache.
330
331 2003-02-11 Andrew Cagney <ac131313@redhat.com>
332
333 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
334 * aclocal.m4: Regenerate.
335 * configure: Regenerate.
336
337 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
338 TCL_LD_SEARCH_FLAGS.
339
340 2003-02-10 Michal Ludvig <mludvig@suse.cz>
341
342 * dwarf2cfi.c: Reindented.
343
344 2003-02-09 Andrew Cagney <ac131313@redhat.com>
345
346 * interps.c (clear_interpreter_hooks): Convert function definition
347 to ISO C.
348
349 2003-02-07 David Carlton <carlton@math.stanford.edu>
350
351 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
352
353 2003-02-07 Kevin Buettner <kevinb@redhat.com>
354
355 * gdbtypes.h (struct main_type): Move ``length'' field from here...
356 (struct type): ...to here.
357 (TYPE_LENGTH): Adjust to reflect different location of ``length''
358 field.
359 * gdbtypes.c (make_qualified_type): Set length on newly created type.
360 (replace_type): Set length on all type variants for a given type.
361
362 2003-02-07 Andrew Cagney <ac131313@redhat.com>
363
364 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
365 <sys/stat.h>.
366 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
367
368 2003-02-06 Andrew Cagney <ac131313@redhat.com>
369
370 * Makefile.in (symm-nat.o): Update dependencies.
371 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
372 (lynx-nat.o, ia64-linux-nat.): Ditto.
373 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
374 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
375 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
376
377 * Makefile.in (inflow_h): Define.
378 (procfs.o, inflow.o, procfs.o): Update dependencies.
379 * inftarg.c (child_stop): Delete extern declaration of
380 inferior_process_group. Include "inflow.h".
381 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
382 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
383 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
384 (our_process_group, inferior_process_group): Extern declarations.
385
386 * procfs.c: Include "gdb_assert.h".
387
388 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
389 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
390 * jv-typeprint.c (java_type_print_base): Ditto.
391 * typeprint.c (typedef_print): Eliminate STREQ.
392 * cli/cli-script.c (define_command, define_command): Ditto.
393 * main.c (captured_main): Ditto.
394 * values.c (lookup_internalvar): Ditto.
395 * utils.c (safe_strerror, parse_escape): Eliminate assignment
396 within `if' conditional.
397 * linespec.c (decode_line_2): Ditto.
398 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
399 (bfd_openw_with_cleanup): Ditto.
400
401 2003-02-07 Mark Kettenis <kettenis@gnu.org>
402
403 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
404 legacy_extract_return_value and store_return_value to
405 legacy_return_value.
406
407 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
408
409 * win32-nat.c (get_relocated_section_addrs): New function. Find
410 section load addresses for symbol handling in relocated DLLs.
411 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
412
413 2003-02-05 Fred Fish <fnf@intrinsity.com>
414
415 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
416 '=' and '!='.
417 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
418 with '&' and '=='.
419 (angel_RDI_info): Ditto.
420 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
421 with '&' and '!='.
422 (threads_continue_all_with_signals): Ditto.
423
424 2003-02-05 Jim Ingham <jingham@apple.com>
425 Keith Seitz <keiths@redhat.com>
426 Elena Zannoni <ezannoni@redhat.com>
427 Andrew Cagney <ac131313@redhat.com>
428
429 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
430 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
431 (SUBDIR_MI_OBS): Add "mi-interp.o".
432 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
433 (SFILES): Add "interps.c".
434 (COMMON_OBS): Add "interps.o".
435 (interps_h, mi_main_h): Define.
436 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
437 (mi-main.o, main.o, event-top.o): Update dependencies.
438 * cli/cli-interp.c: New file.
439 * interps.h, interps.c: New files.
440 * top.c: (gdb_init): Don't install the default interpreter, handed
441 by captured_main.
442 * main.c: Include "interps.h".
443 (interpreter_p): Note that it should malloc'ed.
444 (captured_command_loop): Call current_interp_command_loop.
445 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
446 xfree and xstrdup when updating interpreter_p. Install the
447 default interpreter. Add hack to stop mi1's copyright notice
448 being encoded.
449 * event-top.h (gdb_setup_readline): Declare.
450 (gdb_disable_readline): Declare.
451 * event-top.c: Include "interps.h".
452 (display_gdb_prompt): Call current_interp_display_prompt_p.
453 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
454 gdb_stdlog, and gdb_stdtarg.
455 (_initialize_event_loop): Don't call gdb_setup_readline.
456 * cli-out.c (cli_out_set_stream): New function.
457 * cli-out.h (cli_out_set_stream): Declare.
458
459 2003-02-06 Mark Kettenis <kettenis@gnu.org>
460
461 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
462 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
463 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
464 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
465 config/i386/i386v42mp.mt: Removed.
466
467 2003-02-05 Mark Kettenis <kettenis@gnu.org>
468
469 * configure.tgt (*-*-solaris*): Set gdb_osabi to
470 GDB_OSABI_SOLARIS.
471
472 2003-02-05 Michael Chastain <mec@shout.net>
473
474 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
475 2.12.1 and earlier versions.
476
477 2003-02-05 Andrew Cagney <ac131313@redhat.com>
478
479 Remove orphaned hosts, targets and files.
480 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
481 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
482 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
483 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
484 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
485 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
486 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
487 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
488 * config/sparc/tm-sp64sim.h: Delete.
489 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
490 hosts.
491 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
492 mips*-dec-mach3* targets.
493
494 2003-02-04 Michael Chastain <mec@shout.net>
495
496 * NEWS: Fix typo: sepcifying -> specifying.
497
498 2003-02-04 Michael Chastain <mec@shout.net>
499
500 * dwarfread.c: Add documentation on the state of dwarf-1,
501 looking towards obsoletion.
502
503 2003-02-03 Michael Chastain <mec@shout.net>
504
505 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
506 gdb/testsuite/gdb.c++/pr-1023.exp.
507
508 2003-02-04 Andrew Cagney <ac131313@redhat.com>
509
510 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
511 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
512
513 * utils.c (init_page_info): Delete reference to MPW in comments.
514 * main.c (captured_main): Delete #ifdef MPW.
515
516 2003-02-04 Andrew Cagney <ac131313@redhat.com>
517
518 * NEWS: Note that the m32r-*-elf* is obsolete.
519 * monitor.c (monitor_expect): Obsolete reference to m32r.
520 * configure.tgt: Mark m32r-*-elf* as obsolete.
521 * MAINTAINERS: Mark m32k as obsolete.
522 * m32r-rom.c: Obsolete file.
523 * config/m32r/m32r.mt: Obsolete file.
524 * config/m32r/tm-m32r.h: Obsolete file.
525 * m32r-stub.c: Obsolete file.
526 * m32r-tdep.c: Obsolete file.
527
528 2003-02-04 Andrew Cagney <ac131313@redhat.com>
529
530 * NEWS: Mention that the z8k-zilog-none is obsolete.
531 * MAINTAINERS: Mark z8k as obsolete.
532 * configure.tgt: Obsolete the z8k-*-coff* target.
533 * config/z8k/z8k.mt: Obsolete file.
534 * config/z8k/tm-z8k.h: Obsolete file.
535 * z8k-tdep.c: Obsolete file.
536
537 2003-02-04 Andrew Cagney <ac131313@redhat.com>
538
539 * NEWS: Mention that the mn10200-elf is obsolete.
540 * configure.tgt: Obsolete mn10200-*-* target.
541 * breakpoint.c (update_breakpoints_after_exec): Update comment to
542 mention that the mn10200 is obsolete.
543 * breakpoint.h: Ditto.
544 * MAINTAINERS: Mark the mn10200-elf as obsolete.
545 * config/mn10200/mn10200.mt: Obsolete file.
546 * config/mn10200/tm-mn10200.h: Obsolete file.
547 * mn10200-tdep.c: Obsolete file.
548
549 2003-02-04 Andrew Cagney <ac131313@redhat.com>
550
551 * MAINTAINERS: Mark h8500 as obsolete.
552 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
553 * findvar.c (value_from_register): Ditto.
554 * h8500-tdep.c: Mark file as obsolete.
555 * config/h8500/h8500.mt: Ditto.
556 * config/h8500/tm-h8500.h: Ditto.
557 * NEWS: Mention that h8500 is obsolete.
558
559 2003-02-04 David Carlton <carlton@math.stanford.edu>
560
561 * objfiles.c (allocate_objfile): Always set name. Add comment at
562 start of function.
563 * jv-lang.c (get_dynamics_objfile): Add comment.
564
565 2003-02-04 David Carlton <carlton@math.stanford.edu>
566
567 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
568 * printcmd.c (build_address_symbolic): Replace uses of
569 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
570 SYMBOL_NAME, and asm_demangle.
571 Update copyright.
572
573 2003-02-04 David Carlton <carlton@math.stanford.edu>
574
575 * linespec.c (decode_compound): Extract code into
576 lookup_prefix_sym.
577 (lookup_prefix_sym): New function.
578
579 2003-02-04 David Carlton <carlton@math.stanford.edu>
580
581 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
582 FLOAT_COERCION_BADNESS.
583 * gdbtypes.c (rank_one_type): Replace all uses of
584 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
585
586 2003-02-04 Jim Blandy <jimb@redhat.com>
587
588 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
589 section, let dwarf_macinfo_section point to it, not
590 dwarf_loc_section.
591
592 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
593
594 Pointed out by Anton Blanchard <anton@samba.org>.
595 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
596 (ppc_linux_at_sigtramp_return_path): Use it.
597
598 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
599
600 * defs.h (streq): Add prototype.
601 * utils.c (streq): New function.
602
603 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
604 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
605 * mdebugread.c (new_symbol): Likewise.
606 * stabsread.c (define_symbol): Likewise.
607 * coffread.c (process_coff_symbol): Likewise.
608 * dwarfread.c (new_symbol): Likewise.
609
610 * minsyms.c (prim_record_minimal_symbol_and_info): Use
611 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
612 here.
613 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
614 SYMBOL_INIT_DEMANGLED_NAME.
615 * objfiles.c: Include "hashtab.h".
616 (allocate_objfile): Call htab_set_functions_ex for the
617 demangled_names_hash.
618 (free_objfile): Call htab_delete for the demangled_names_hash.
619 * objfiles.h (struct htab): Add declaration.
620 (struct objfile): Add demangled_names_hash.
621 * symfile.c: Include "hashtab.h".
622 (reread_symbols): Call htab_delete for the demangled_names_hash.
623 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
624 SYMBOL_NAME in the bcache.
625 * symtab.c: Include "hashtab.h". Update comments.
626 (create_demangled_names_hash, symbol_set_names): New functions.
627 (symbol_find_demangled_name): New function, broken out from
628 symbol_init_demangled_names.
629 (symbol_init_demangled_names): Use it.
630 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
631 (SYMBOL_SET_NAMES): New macro.
632 (symbol_set_names): Add prototype.
633
634 2003-02-03 Jim Blandy <jimb@redhat.com>
635
636 Use a single, consistent representation for an empty minimal
637 symbol table in an objfile.
638 * objfiles.c (terminate_minimal_symbol_table): New function.
639 (allocate_objfile): Call it.
640 * objfiles.h (terminate_minimal_symbol_table): New declaration.
641 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
642 non-NULL.
643 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
644 objfile has minimal symbols, compare minimal_symbol_count to zero,
645 instead of comparing msymbols with NULL.
646 * objfiles.c (have_minimal_symbols): Same.
647 * solib-sunos.c (solib_add_common_symbols): Call
648 terminate_minimal_symbol_table.
649 * symfile.c (reread_symbols): Same.
650
651 2003-02-03 Kevin Buettner <kevinb@redhat.com>
652
653 * s390-tdep.c (s390_address_class_type_flags)
654 (s390_address_class_type_flags_to_name)
655 (s390_address_class_name_to_type_flags): New functions.
656 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
657 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
658
659 2003-02-03 Michael Snyder <msnyder@redhat.com>
660
661 * arm-tdep.c: Fix spell-o in comment.
662
663 2003-02-03 Michal Ludvig <mludvig@suse.cz>
664
665 * dwarf2cfi.c (pointer_encoding): Added new parameter.
666 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
667 error messages to contain BFD filename.
668
669 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
670
671 Fix PR gdb/742 gdb/743 gdb/877
672 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
673 (do_mixed_source_and_assembly): Use
674 make_cleanup_ui_out_tuple_begin_end and
675 make_cleanup_ui_out_tuple_begin_end.
676 (do_mixed_source_and_assembly): Ditto.
677 * thread.c (do_captured_list_thread_ids): Ditto.
678 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
679 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
680 ui_out_tuple_end): Delete prototypes.
681 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
682 ui_out_list_end, ui_out_tuple_end): Delete.
683
684 From Kevin Buettner <kevinb@redhat.com>:
685 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
686 * ui-out.c (make_cleanup_ui_out_table_begin_end)
687 (do_cleanup_table_end): New functions.
688 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
689 Use cleanups to invoke_ui_out_tuple_end().
690 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
691 * cli/cli-setshow.c (cmd_show_list): Use
692 make_cleanup_ui_out_tuple_begin_end.
693
694 2003-02-02 Andrew Cagney <ac131313@redhat.com>
695
696 * frame.c (frame_unwind_register): New function.
697 (frame_unwind_unsigned_register): Use.
698 (frame_unwind_signed_register): Use.
699 (frame_read_register): New function.
700 * frame.h (frame_unwind_register): Declare.
701 (frame_read_register): Declare.
702
703 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
704 and frame_unwind_register instead of read_memory, write_register
705 and deprecated_write_register_bytes.
706
707 2003-02-02 Andrew Cagney <ac131313@redhat.com>
708
709 * frame.h: Note that namelen can be negative.
710 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
711 NAME's length.
712
713 * NEWS: Mention that the d10v's `regs' command is deprecated.
714 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
715 (d10v_print_registers_info): New function.
716 (show_regs): Call d10v_print_registers_info.
717 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
718
719 2003-02-02 Mark Kettenis <kettenis@gnu.org>
720
721 * stack.c (print_frame_info): Restore call to annotate_frame_begin
722 lost in the previous patch.
723
724 2003-02-01 Andrew Cagney <ac131313@redhat.com>
725
726 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
727 * stack.c (print_frame_info_base): Output complete FRAME tuple
728 for synthesized frames.
729
730 2003-02-02 Andrew Cagney <ac131313@redhat.com>
731
732 * mips-nat.c (zerobuf): Delete.
733 (fetch_inferior_registers): Alloc local zerobuf.
734 (fetch_core_registers): Alloc local zerobuf.
735 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
736 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
737 * thread-db.c (thread_db_store_registers): Ditto.
738 * sh-tdep.c (sh_do_register): Ditto.
739 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
740 * remote-sim.c (gdbsim_store_register): Ditto.
741 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
742 * remote-e7000.c (fetch_regs_from_dump): Ditto.
743 * monitor.c (monitor_supply_register): Ditto.
744 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
745 * mips-nat.c (fetch_inferior_registers): Ditto.
746 * m68klinux-nat.c (fetch_register): Ditto.
747 * lynx-nat.c (fetch_inferior_registers): Ditto.
748 (fetch_inferior_registers): Ditto.
749 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
750 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
751 (hpux_thread_store_registers): Ditto.
752 * hppah-nat.c (fetch_register): Ditto.
753 * hppab-nat.c (fetch_register): Ditto.
754 * hppa-tdep.c (pa_register_look_aside): Ditto.
755 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
756 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
757
758 2003-02-01 Andrew Cagney <ac131313@redhat.com>
759
760 * gdbarch.sh: Explictly specify all method levels. When a
761 variable with an empty level, provide a non-multi-arch default.
762 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
763 * gdbarch.h: Re-generate.
764 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
765 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
766
767 2003-02-01 Andrew Cagney <ac131313@redhat.com>
768
769 * defs.h (host_pointer_to_address): Delete declaration.
770 (address_to_host_pointer): Delete declaration.
771 * utils.c (host_pointer_to_address): Delete function.
772 (address_to_host_pointer): Delete function.
773 * procfs.c (procfs_address_to_host_pointer): New function.
774 * procfs.c (proc_set_watchpoint): Use.
775 (procfs_can_use_hw_breakpoint): Update comments.
776 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
777 (som_solib_add): Use.
778 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
779 * hppa-tdep.c (unwind_command): Use.
780
781 2003-02-01 Andrew Cagney <ac131313@redhat.com>
782
783 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
784 strlen d_name.
785
786 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
787 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
788 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
789 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
790 (define_symbol): Update.
791 * symfile.c (generic_load): Remove references to nindy.
792 * symtab.c: Remove references to nindy.
793
794 2003-02-01 Andrew Cagney <ac131313@redhat.com>
795
796 * infcmd.c (print_float_info): Delete code conditional on
797 FLOAT_INFO.
798 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
799 * config/m68k/nm-apollo68b.h: Ditto.
800 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
801 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
802 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
803
804 2003-02-01 Mark Kettenis <kettenis@gnu.org>
805
806 * config/i386/tm-i386os9k.h: Removed.
807
808 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
809 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
810 they're identical to i[3456]86-*-sysv* now.
811 * config/i386/i386v32.mh: Removed.
812 * config/i386/xm-i386v32.h: Removed.
813 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
814
815 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
816
817 * config/i386/i386dgux.mh: Removed.
818 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
819
820 * configure.in: Fix typo.
821 * configure: Regenerated.
822
823 2003-01-31 David Carlton <carlton@math.stanford.edu>
824
825 * dwarf2read.c (dwarf2_locate_sections): Set
826 dwarf_ranges_section.
827
828 2003-01-31 Andrew Cagney <ac131313@redhat.com>
829
830 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
831 * utils.c: Update comments documenting legitimate uses of PTR.
832
833 * utils.c: Re-indent.
834
835 * config/djgpp/fnchange.lst: Delete nindy files.
836 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
837 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
838 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
839 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
840 * nindy-share/README, nindy-share/Onindy.c: Delete files.
841 * nindy-tdep.c, nindy-share/Makefile: Delete files.
842 * Makefile.in (init.c): Remove nindy references.
843 (saber_gdb): Delete rule.
844 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
845 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
846 and a68v-nat.c.
847 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
848 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
849 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
850 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
851 nindy-share/stop.h.
852 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
853 * saber.suppress: Delete file.
854
855 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
856
857 * dbxread.c (stabs_data): New static variable.
858 (fill_symbuf): Support an in-memory buffer for stabs data.
859 (stabs_seek): New function.
860 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
861 (read_ofile_symtab): Use stabs_seek.
862 (elfstab_build_psymtabs): Take an asection* instead of
863 an offset and size. Relocate the stabs data if necessary.
864 Save the section* for dbx_psymtab_to_symtab.
865 * dwarf2read.c: Add section variables for each debug section.
866 (dwarf2_locate_sections): Fill them in.
867 (dwarf2_read_section): Take an asection* argument.
868 Relocate the section contents if necessary.
869 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
870 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
871 it to dwarf2_read_section.
872 (dwarf2_build_frame_info): Update callers.
873 * elfread.c (elf_symfile_read): Update call to
874 elfstab_build_psymtabs.
875 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
876 (DBX_STAB_SECTION): New macro.
877 * stabsread.h (elfstab_build_psymtabs): Update prototype.
878 * symfile.c (symfile_dummy_outputs): New function.
879 (symfile_relocate_debug_section): New function.
880 * symfile.h (symfile_relocate_debug_section): Add prototype.
881
882 2003-01-31 Richard Henderson <rth@redhat.com>
883
884 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
885 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
886 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
887 * alpha-tdep.c (alpha_register_name): Add "unique".
888 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
889 (ALPHA_UNIQUE_REGNUM): New.
890 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
891
892 2003-01-31 Andrew Cagney <ac131313@redhat.com>
893
894 * README: Remove reference to Ericsson 1800 monitor.
895 * Makefile.in (remote-es.o): Delete rule.
896 (ALLDEPFILES): Delete remote-es.c.
897 * remote-es.c: Delete file.
898 * config/m68k/es1800.mt: Delete file.
899 * config/djgpp/fnchange.lst: Update.
900 * configure.tgt: Delete m68*-ericsson-* target.
901
902 2003-01-31 Adam Fedor <fedor@gnu.org>
903
904 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
905 Remove duplicate/shadowing variable of same name.
906
907 2003-01-30 Jim Blandy <jimb@redhat.com>
908
909 * symfile.c (find_separate_debug_file): Assert that the objfile's
910 directory name we compute ends with a slash, and then assume that
911 that's so everywhere we use it.
912
913 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
914
915 * valops.c (value_assign): Flush frame cache after stores to memory
916 also.
917
918 2003-01-30 Andrew Cagney <ac131313@redhat.com>
919
920 * Makefile.in (mon960-rom.o): Delete rule.
921 * mon960-rom.c: Delete file.
922
923 2003-01-30 Andrew Cagney <ac131313@redhat.com>
924
925 * d10v-tdep.c: Include "frame-unwind.h".
926 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
927 list.
928 (next_addr, uses_frame): Delete.
929 (struct d10v_unwind_cache): Define.
930 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
931 Use info instead of next_addr and uses_frame globals.
932 (d10v_frame_init_saved_regs): Delete function.
933 (d10v_init_extra_frame_info): Delete function.
934 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
935 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
936 init_frame_pc or frame_saved_pc.
937 (d10v_pop_frame): Delete function.
938 (do_d10v_pop_frame): Delete function.
939 (d10v_frame_chain): Delete function.
940 (d10v_frame_chain_valid): Delete function.
941 (d10v_frame_pc_unwind): New function.
942 (d10v_frame_id_unwind): New function.
943 (saved_regs_unwinder): New function.
944 (d10v_frame_register_unwind): New function.
945 (d10v_frame_pop): New function.
946 (d10v_frame_unwind): New variable.
947 (d10v_frame_p): New function.
948 (d10v_frame_saved_pc): Delete function.
949 * Makefile.in (d10v-tdep.o): Update dependencies.
950
951 2003-01-30 J. Brobecker <brobecker@gnat.com>
952
953 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
954 causing some regressions due to a change in the default value
955 for this macro.
956
957 2003-01-29 Richard Henderson <rth@redhat.com>
958 Elena Zannoni <ezannoni@redhat.com>
959 Daniel Jacobowitz <drow@mvista.com>
960
961 Fix PR gdb/961.
962 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
963 variables.
964 (RANGES_SECTION): New.
965 (dwarf_ranges_buffer): New variable.
966 (struct comp_unit_head): Add member "die".
967 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
968 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
969 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
970 (dwarf2_locate_sections): Likewise.
971 (dwarf2_build_psymtabs): Read .debug_ranges.
972 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
973 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
974 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
975 Look for DW_AT_ranges and return the bounding box.
976
977 2003-01-29 Brian Ford <ford@vss.fsi.com>
978
979 * win32-nat.c (cygwin_pid): Removed as unused.
980 (child_attach): Try fall back to Cygwin pid.
981
982 2003-01-29 Jim Blandy <jimb@redhat.com>
983
984 * objfiles.h (struct objfile): Doc fix.
985
986 2003-01-29 Andrew Cagney <ac131313@redhat.com>
987
988 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
989 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
990 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
991 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
992 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
993 (FRAME_SAVED_PC): Change to a function with predicate.
994 * gdbarch.h, gdbarch.c: Re-generate.
995
996 2003-01-28 Andrew Cagney <ac131313@redhat.com>
997
998 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
999
1000 * complaints.c (complain): Delete function.
1001 * complaints.h (struct deprecated_complaint): Delete definition.
1002 (complain): Delete declaration.
1003
1004 2003-01-28 Kevin Buettner <kevinb@redhat.com>
1005
1006 * mips-tdep.c (mips_init_extra_frame_info): Return early for
1007 dummy frames.
1008
1009 2003-01-27 Andrew Cagney <ac131313@redhat.com>
1010
1011 * sentinel-frame.h, sentinel-frame.c: New files.
1012 * Makefile.in (frame.o): Update dependencies.
1013 (SFILES): Add sentinel-frame.c.
1014 (sentinel_frame_h): Define.
1015 (COMMON_OBS): Add sentinel-frame.o.
1016 (sentinel-frame.o): Specify dependencies.
1017 * frame.c: Include "sentinel-frame.h".
1018 (frame_register_unwind): Rewrite assuming that there is always a a
1019 ->next frame.
1020 (frame_register, generic_unwind_get_saved_register): Ditto.
1021 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
1022 (create_sentinel_frame, unwind_to_current_frame): New functions.
1023 (get_current_frame): Rewrite using create_sentinel_frame and
1024 unwind_to_current_frame. When possible, always create a frame.
1025 (create_new_frame): Set next to the sentinel frame.
1026 (get_next_frame): Rewrite. Don't go below the level 0 frame.
1027 (deprecated_update_frame_pc_hack): Update the next frame's PC and
1028 ID cache when necessary.
1029 (frame_saved_regs_id_unwind): Use frame_relative_level.
1030 (deprecated_generic_get_saved_register): Use frame_relative_level,
1031 get_frame_saved_regs, get_frame_pc, get_frame_base and
1032 get_next_frame.
1033 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
1034 frame_register.
1035
1036 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1037
1038 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
1039
1040 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1041
1042 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
1043 (maintenance_set_profile_cmd): Use error () instead of warning ().
1044
1045 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
1046
1047 * configure.in: Check that -pg works if using --enable-profiling.
1048 Check for monstartup and _mcleanup regardless of --enable-profiling.
1049 * maint.c: Check for monstartup and _mcleanup before using them.
1050 * config.in: Regenerated.
1051 * configure: Regenerated.
1052
1053 2003-01-24 Nick Clifton <nickc@redhat.com>
1054
1055 * Add sh2e support:
1056
1057 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
1058
1059 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
1060 (sh2e_show_regs): New.
1061 (sh_gdbarch_init): Handle bfd_mach_sh2e.
1062 * config/sh/tm-sh.h: Added sh2e to comments.
1063
1064 2003-01-23 Jim Blandy <jimb@redhat.com>
1065
1066 * symfile.c (syms_from_objfile): Don't print the "(no debugging
1067 symbols found)" message here; we haven't checked for a separate
1068 debug info file yet, so we don't know yet.
1069 (symbol_file_add_with_addrs_or_offsets): Print it here, after
1070 we've looked everywhere. Also, there's no need to print a special
1071 message when we're loading the separate debug info file: the one
1072 symbol_file_add prints is fine.
1073
1074 2003-01-23 Alexander Larsson <alexl@redhat.com>
1075 Jim Blandy <jimb@redhat.com>
1076
1077 Add support for executables whose debug info has been separated
1078 out into a separate file, leaving only a link behind.
1079 * objfiles.h (struct objfile): New fields: separate_debug_objfile
1080 and separate_debug_objfile_backlink.
1081 (put_objfile_before): New declaration.
1082 * symfile.c: #include "filenames.h".
1083 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
1084 debug info in a separate file, read that, too. Save the addrs
1085 argument, so we can use it again to read the separated debug info;
1086 syms_from_objfile modifies the table we pass it.
1087 (reread_symbols): After re-reading an objfile, call
1088 reread_separate_symbols to refresh its separate debug info
1089 objfile, if it has one.
1090 (reread_separate_symbols, find_separate_debug_file,
1091 get_debug_link_info, separate_debug_file_exists): New functions.
1092 (debug_file_directory): New global var.
1093 (_initialize_symfile): Initialize debug_file_directory, and
1094 provide the new `set debug-file-directory' command to let the user
1095 change it.
1096 * objfiles.c (free_objfile): If this objfile has its debug info in
1097 a separate objfile, free that one too. If this is itself a
1098 separate debug info objfile, clear our parent's backlink.
1099 (put_objfile_before): New function.
1100 * utils.c (gnu_debuglink_crc32): New function.
1101 * defs.h (gnu_debuglink_crc32): New declaration.
1102 * Makefile.in (symfile.o): Note dependency on "filenames.h".
1103 * configure.in: Handle --with-separate-debug-dir config option.
1104 * acinclude.m4 (AC_DEFINE_DIR): New macro.
1105 * acconfig.h (DEBUGDIR): New macro.
1106 * configure, aclocal.m4, config.in: Regenerated.
1107
1108 2003-01-22 Jim Blandy <jimb@redhat.com>
1109
1110 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
1111 like the old symbol_file_add, but taking new arguments: you can
1112 now pass in either a `struct section_addr_info' list to say where
1113 each section is loaded, or a `struct section_offsets' table. Pass
1114 these new arguments through to syms_from_objfile as appropriate.
1115 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
1116 with the appropriate quiescent values for the new arguments.
1117
1118 * symfile.c: #include "gdb_assert.h".
1119 (syms_from_objfile): Add the ability to pass in a section offset
1120 table directly, as an alternative to the section_addr_info table.
1121 Document arguments better.
1122 (symbol_file_add): Pass extra arguments to syms_from_objfile.
1123 * symfile.h (syms_from_objfile): Update declaration.
1124 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
1125 syms_from_objfile.
1126 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
1127
1128 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
1129
1130 Original patch by Tom Tromey <tromey@cygnus.com> and
1131 Jason Molenda <jmolenda@apple.com>.
1132 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
1133 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
1134 * NEWS: Mention profiling.
1135 * configure.in (--enable-gdbtk): Fix typo.
1136 (--enable-profiling): New. Set PROFILE_CFLAGS.
1137 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
1138 Fill in function.
1139 (profiling_state): New variable.
1140 (mcleanup_wrapper): New function.
1141 (_initialize_maint): Remove NOTYET, fix call to
1142 add_setshow_boolean_cmd for "maint set profile".
1143 * configure: Regenerated.
1144
1145 2003-01-21 Martin M. Hunt <hunt@redhat.com>
1146
1147 * Makefile.in (install-gdbtk): Install PNG images too.
1148
1149 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1150
1151 * exec.c (text_start): Delete global variable.
1152 (exec_file_attach): Make text_start local to the function.
1153 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
1154 * valops.c (hand_function_call): Delete code that handles
1155 BEFORE_TEXT_END and AFTER_TEXT_END.
1156 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
1157 of CALL_DUMMY_LOCATION.
1158 * gdbarch.c: Regenerate.
1159 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
1160 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
1161 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1162 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
1163 (text_end): Delete extern declaration.
1164
1165 2003-01-21 Andrew Cagney <ac131313@redhat.com>
1166
1167 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
1168 * blockframe.c (backtrace_below_main): Move to "frame.c".
1169 (frame_chain_valid): Delete check for backtrace_below_main.
1170 (_initialize_blockframe): Delete initialization, move ``set
1171 backtrace-below-main'' command to "frame.c".
1172 (do_flush_frames_sfunc): Delete function.
1173 * frame.c: Include "command.h" and "gdbcmd.h".
1174 (frame_type_from_pc): New function.
1175 (create_new_frame): Use frame_type_from_pc.
1176 (legacy_get_prev_frame): New function.
1177 (get_prev_frame): Rewrite. When an old style frame, call
1178 legacy_get_prev_frame. Otherwize, unwind the PC first.
1179 (_initialize_frame): Add ``set backtrace-below-main'' command.
1180 * Makefile.in (frame.o): Update dependencies.
1181
1182 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1183
1184 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
1185 DEPRECATED_REGISTERS_INFO.
1186
1187 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1188
1189 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
1190 Maintainers'. Update `Various Maintainers'.
1191
1192 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1193
1194 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
1195 * gdbarch.sh (POP_FRAME): Change to function with predicate.
1196 Suppress actual parameters when `-'.
1197 * gdbarch.h, gdbarch.c: Regenerate.
1198
1199 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1200
1201 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
1202 code handling dummy frames.
1203
1204 2003-01-19 Andrew Cagney <ac131313@redhat.com>
1205
1206 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
1207 (struct frame_unwind): Add field pop.
1208 * frame.h (frame_pop): Declare.
1209 * frame.c (frame_saved_regs_pop): New function.
1210 (trad_frame_unwinder): Add frame_saved_regs_pop.
1211 (frame_pop): New function.
1212 * dummy-frame.c (dummy_frame_pop): New function.
1213 (discard_innermost_dummy): New function.
1214 (generic_pop_dummy_frame): Use discard_innermost_dummy.
1215 (dummy_frame_unwind): Add dummy_frame_pop.
1216 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
1217 * valops.c (hand_function_call): Ditto.
1218 * stack.c (return_command): Ditto.
1219
1220 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1221
1222 * cris-tdep.c: Fix function declaration indentation.
1223 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
1224 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
1225 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
1226 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
1227 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
1228 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
1229
1230 2003-01-18 Michael Chastain <mec@shout.net>
1231
1232 * README (Unpacking and Installation -- quick overview):
1233 Warn against ".../gdb-5.3/gdb/configure".
1234
1235 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1236
1237 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
1238 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1239 (struct frame_unwind): Declare opaque.
1240 (dummy_frame_p): Declare function.
1241 * dummy-frame.c (dummy_frame_id_unwind): Make static.
1242 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
1243 * dummy-frame.c: Include "frame-unwind.h".
1244 (dummy_frame_p): New function.
1245 (dummy_frame_unwind): New variable.
1246 * frame.c: Include "frame-unwind.h".
1247 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
1248 to use the new unwind field.
1249 (set_unwind_by_pc): Delete function.
1250 (create_new_frame, get_prev_frame): Set unwind field using
1251 frame_unwind_find_by_pc.
1252 (trad_frame_unwind, trad_frame_unwinder): New variables.
1253 * frame.h (trad_frame_unwind): Declare variable.
1254 (frame_id_unwind_ftype): Delete declaration.
1255 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
1256 (struct frame_unwind): Declare opaque.
1257 (struct frame_info): Replace the fields id_unwind, pc_unwind and
1258 register_unwind with a single unwind pointer.
1259 * frame-unwind.h, frame-unwind.c: New files.
1260 * Makefile.in (SFILES): Add frame-unwind.c.
1261 (frame_unwind_h): Define.
1262 (COMMON_OBS): Add frame-unwind.o.
1263 (frame-unwind.o): Specify dependencies.
1264 (frame.o, dummy-frame.o): Update dependencies.
1265
1266 2003-01-18 Andrew Cagney <ac131313@redhat.com>
1267
1268 * ada-valprint.c: Eliminate PTR.
1269 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
1270 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
1271 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
1272 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
1273 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
1274 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
1275 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
1276
1277 2003-01-17 Andrew Cagney <ac131313@redhat.com>
1278
1279 * main.c (captured_main): Don't use PTR.
1280 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
1281 * gdbtypes.c (lookup_primitive_typename): Ditto.
1282 (lookup_struct_elt_type): Ditto.
1283 * f-valprint.c (info_common_command): Ditto.
1284 (list_all_visible_commons): Ditto.
1285 * jv-typeprint.c (java_type_print_base): Ditto.
1286
1287 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
1288 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
1289 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
1290 i386-interix-nat.c and i386-interix-tdep.c. Rename
1291 m68klinux-nat.c and m68klinux-tdep.c. Rename
1292 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
1293 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
1294 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
1295 * main.c (captured_main): Use xfree, not free.
1296
1297 2003-01-16 Andrew Cagney <ac131313@redhat.com>
1298
1299 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
1300 ID back using a parameter.
1301 * frame.c (frame_id_unwind): Update call.
1302 (frame_saved_regs_id_unwind): Update.
1303 * dummy-frame.c (dummy_frame_id_unwind): Update function.
1304 * dummy-frame.h (struct frame_id): Add opaque declaration.
1305 (dummy_frame_id_unwind): Update declaration.
1306
1307 2003-01-15 Andrew Cagney <ac131313@redhat.com>
1308
1309 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
1310
1311 2003-01-15 Stephen P. Smith <ischis2@cox.net>
1312
1313 * MAINTAINERS (Stephen P. Smith): Updated email address.
1314
1315 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
1316
1317 Fix PR gdb/898
1318 * breakpoint.c (until_break_command): Add new argument. Use it to
1319 decide whether to stop only at the current frame or not.
1320 * breakpoint.h (until_break_command): Update prototype.
1321 * infcmd.c (until_command): Add new argument to until_break_command
1322 call.
1323 (advance_command): New function.
1324 (_initialize_infcmd): Update help string for 'until' command.
1325 Add new 'advance' command.
1326
1327 2003-01-14 David Carlton <carlton@math.stanford.edu>
1328
1329 * linespec.c (decode_line_1): Normalize comments.
1330 (set_flags): Ditto.
1331 (locate_first_half): Ditto.
1332 (decode_compound): Ditto.
1333 (symtab_from_filename): Ditto.
1334 (decode_all_digits): Ditto.
1335 (decode_dollar): Ditto.
1336 (find_methods): Ditto.
1337 (find_toplevel_char): Ditto.
1338
1339 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1340
1341 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
1342 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
1343 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
1344 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
1345 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
1346 * language.c, language.h, m32r-tdep.c: Update copyright.
1347 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
1348 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
1349 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
1350 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
1351 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
1352 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
1353
1354 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1355
1356 * stabsread.h (process_later, resolve_cfront_continuation):
1357 Obsolete.
1358 Update copyright years.
1359 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
1360 Update copyright year.
1361 * dbxread.c(struct cont_elem): Obsolete.
1362 (process_later, process_now): Obsolete functions.
1363 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
1364 Update copyright year.
1365 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
1366 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
1367 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
1368 (parse_partial_symbols): Obsolete cfront support.
1369 * stabsread.c
1370 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
1371 macros.
1372 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
1373 read_cfront_baseclasses, read_cfront_member_functions,
1374 resolve_cfront_continuation,read_cfront_static_fields,
1375 copy_cfront_struct_fields): Obsolete functions.
1376 (define_symbol, read_one_struct_field): Obsolete cfront support.
1377 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
1378 Update Copyright year.
1379
1380 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
1381
1382 * stack.c (print_frame_info, print_stack_frame_base_stub,
1383 print_stack_frame_base, show_and_print_stack_frame_stub,
1384 show_and_print_stack_frame, print_only_stack_frame_stub,
1385 print_only_stack_frame): Delete functions.
1386 (print_stack_frame_stub): Call print_frame_info instead of
1387 print_frame_info_base.
1388 (print_frame_info_base): Rename to print_frame_info.
1389 (backtrace_command_1): Call print_frame_info, instead of
1390 print_frame_info_base.
1391 (current_frame_command): Call print_stack_frame, instead of
1392 print_only_stack_frame.
1393 (frame_command): Call print_stack_frame, instead of
1394 show_and_print_stack_frame.
1395 (up_command): Ditto.
1396 (down_command): Ditto.
1397 * frame.h (print_only_stack_frame): Delete prototype.
1398 * infrun.c (normal_stop): Call print_stack_frame, instead of
1399 show_and_print_stack_frame.
1400 * thread.c (info_threads_command): Call print_stack_frame, instead
1401 of print_only_stack_frame.
1402
1403 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1404
1405 * README (Graphical interface to GDB): Update URL. Point at
1406 gdb/links/.
1407
1408 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
1409 version match.
1410
1411 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1412
1413 * symtab.c (find_pc_sect_line): Don't consider end-of-function
1414 lines.
1415
1416 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1417
1418 * thread-db.c (attach_thread): Prototype.
1419 (struct private_thread_info): Remove lwpid. Add thread handle (th),
1420 thread information (ti), and valid flags (th_valid, ti_valid).
1421 (attach_thread): Move target_pid_to_str call to after the thread
1422 is added to GDB's list. Initialize the cache.
1423 (thread_get_info_callback, thread_db_map_id2thr)
1424 (thread_db_get_info): New functions.
1425 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
1426 (thread_db_store_registers, thread_db_thread_alive)
1427 (thread_db_get_thread_local_address): Use them.
1428 (thread_db_pid_to_str): Likewise. Return "Missing" instead
1429 of calling error() for threads in unknown state.
1430
1431 (clear_lwpid_callback): New function.
1432 (thread_db_resume): Use it to clear the cache.
1433
1434 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1435
1436 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
1437 (resume_callback): Remove dead code.
1438
1439 2003-01-13 Andrew Cagney <ac131313@redhat.com>
1440
1441 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
1442 predicate.
1443 * gdbarch.h, gdbarch.c: Regenerate.
1444 * stack.c (frame_info): Only initialize the saved registers when
1445 FRAME_INIT_SAVED_REGS_P.
1446 * frame.c (frame_saved_regs_register_unwind): Assert
1447 FRAME_INIT_SAVED_REGS_P.
1448 (deprecated_generic_get_saved_register): Ditto.
1449
1450 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1451
1452 * source.c (openp): Squelch warning about "filename".
1453
1454 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1455
1456 * source.c (openp): If the file does not exist don't necessarily
1457 search the path.
1458
1459 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1460
1461 Fix PR gdb/872.
1462 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
1463 (integer_types_same_name_p): New function.
1464 (rank_one_type): Use it.
1465 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
1466
1467 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
1468
1469 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
1470 variables.
1471 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
1472 * configure.in: Add --with-sysroot.
1473 * configure: Regenerated.
1474 * main.c (gdb_sysroot): New variable.
1475 (captured_main): Initialize gdb_sysroot.
1476 * defs.h (gdb_sysroot): New extern declaration.
1477 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
1478
1479 2003-01-12 Michael Chastain <mec@shout.net>
1480
1481 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
1482
1483 2003-01-12 Michael Chastain <mec@shout.net>
1484
1485 * top.c (print_gdb_version): Bump copyright year to 2003.
1486
1487 2003-01-12 David Carlton <carlton@bactrian.org>
1488
1489 * linespec.c (symtab_from_filename): Rename variable 's' to
1490 'file_symtab'.
1491
1492 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1493
1494 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
1495 dummy frame.
1496 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
1497
1498 2003-01-12 Andrew Cagney <ac131313@redhat.com>
1499
1500 * d10v-tdep.c: Include "gdb_assert.h".
1501 (d10v_store_return_value): Rewrite to match current interface.
1502 (d10v_extract_struct_value_address): Ditto.
1503 (d10v_extract_return_value): Ditto.
1504 (d10v_gdbarch_init): Set store_restore_value,
1505 extract_struct_value_address and extract_return_value.
1506
1507 2003-01-12 J. Brobecker <brobecker@gnat.com>
1508
1509 * hpread.c (set_namestring): New procedure replacing the
1510 SET_NAMESTRING macro.
1511 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
1512 by calls to set_namestring.
1513
1514 2003-01-11 J. Brobecker <brobecker@gnat.com>
1515
1516 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
1517 a compilation warning.
1518 (hpread_process_one_debug_symbol): Likewise.
1519
1520 2003-01-10 David Carlton <carlton@math.stanford.edu>
1521
1522 * linespec.c (decode_line_1): Rename variable 's' to
1523 'file_symtab'.
1524 (decode_all_digits): Rename argument 's' to 'file_symtab'.
1525 (decode_dollar): Ditto.
1526 (decode_variable): Ditto.
1527 (symbol_found): Ditto.
1528
1529 2003-01-09 Michael Chastain <mec@shout.net>
1530
1531 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
1532
1533 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
1534
1535 * win32-nat.c (set_process_privilege): New function.
1536 (child_attach): Call set_process_privilege() to enable the
1537 SE_DEBUG_NAME user privilege if available in process token.
1538
1539 2003-01-10 J. Brobecker <brobecker@gnat.com>
1540
1541 * hpread.c (hpread_process_one_debug_symbol): Fix a small
1542 compilation error in the previous revision.
1543
1544 2003-01-09 David Carlton <carlton@math.stanford.edu>
1545
1546 * linespec.c: Update copyright.
1547
1548 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
1549
1550 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
1551 than inferior_ptid.
1552 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
1553
1554 2003-01-09 Andrew Cagney <ac131313@redhat.com>
1555
1556 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
1557 Update comments.
1558 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
1559 (frame_saved_regs_zalloc): Update.
1560 (frame_saved_regs_register_unwind): Update.
1561 (create_new_frame): Update.
1562 (get_prev_frame): Update.
1563 (frame_extra_info_zalloc): Update.
1564 (deprecated_get_frame_saved_regs): Update.
1565 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
1566 * cris-tdep.c: Update comment.
1567
1568 * somsolib.h: Fix function indentation.
1569 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
1570 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
1571 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
1572 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
1573 * somsolib.c, inftarg.c: Remove assignment in if conditional.
1574
1575 * infrun.c (follow_fork): Use ISO C definition.
1576 * expprint.c (print_subexp): Use xfree instead of free.
1577 * charset.c: Include "gdb_string.h" instead of <string.h>.
1578 (register_iconv_charsets): Use ISO C definition.
1579 (host_charset, target_charset): Ditto.
1580 * Makefile.in (charset.o): Update dependencies.
1581 (mi-cmd-env.o): Update dependencies.
1582
1583 2003-01-08 Andrew Cagney <cagney@redhat.com>
1584
1585 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
1586 get_frame_base.
1587
1588 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1589
1590 * gdb_mbuild.sh: Add --keep option. When specified, keep the
1591 build directories. Save edited gdb output in Mbuild.log. If a
1592 build fails, remove any final GDB executable.
1593
1594 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1595
1596 * gdb_mbuild.sh: Edit the output of `maint print architecture'
1597 replacing hex constants with function names and stripping leading
1598 file name directory prefixes.
1599
1600 2003-01-08 Andrew Cagney <cagney@redhat.com>
1601
1602 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
1603 get_frame_base.
1604
1605 2003-01-08 David Carlton <carlton@math.stanford.edu>
1606
1607 * linespec.c (decode_line_1): Move code into decode_variable.
1608 (decode_variable): New function.
1609
1610 2003-01-08 Andrew Cagney <ac131313@redhat.com>
1611
1612 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
1613
1614 2003-01-08 Andrew Cagney <cagney@redhat.com>
1615
1616 * cris-tdep.c (cris_frame_init_saved_regs): Use
1617 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
1618 saved_regs buffer.
1619 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1620 (sh64_nofp_frame_init_saved_regs): Ditto.
1621 (sh_fp_frame_init_saved_regs): Ditto.
1622 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
1623 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1624 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1625 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1626
1627 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * minsyms.c (lookup_minimal_symbol): Update comment.
1630 (lookup_minimal_symbol_text): Update comment. Use the hash table.
1631 (lookup_minimal_symbol_solib_trampoline): Likewise.
1632
1633 2003-01-08 Andrew Cagney <cagney@redhat.com>
1634
1635 * d10v-tdep.c (d10v_init_extra_frame_info): Use
1636 frame_relative_level.
1637
1638 * alpha-tdep.c: Use get_frame_extra_info.
1639 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1640 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
1641 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1642 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
1643
1644 * alpha-tdep.c: Use get_next_frame.
1645 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1646 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
1647 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
1648 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
1649 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
1650 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
1651 * xstormy16-tdep.c: Ditto.
1652
1653 2003-01-07 Andrew Cagney <cagney@redhat.com>
1654
1655 * alpha-tdep.c: Use get_frame_base.
1656 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
1657 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
1658 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
1659 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
1660 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
1661 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
1662 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
1663 * config/sparc/tm-sparc.h: Ditto.
1664
1665 2003-01-07 Andrew Cagney <cagney@redhat.com>
1666
1667 * frame.c (deprecated_get_frame_context): New function.
1668 (deprecated_set_frame_context): New function.
1669 * frame.h (deprecated_get_frame_context): Declare.
1670 (deprecated_set_frame_context): Declare.
1671 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
1672 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
1673
1674 2003-01-07 Andrew Cagney <cagney@redhat.com>
1675
1676 * frame.c (deprecated_set_frame_next_hack): New function.
1677 (deprecated_set_frame_prev_hack): New function.
1678 * frame.h (deprecated_set_frame_next_hack): Declare.
1679 (deprecated_set_frame_prev_hack): Declare.
1680 * mcore-tdep.c (analyze_dummy_frame): Use
1681 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
1682 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1683
1684 2003-01-07 David Carlton <carlton@math.stanford.edu>
1685
1686 * linespec.c (decode_line_1): Move code into decode_dollar.
1687 (decode_dollar): New function.
1688
1689 2003-01-07 Andrew Cagney <cagney@redhat.com>
1690
1691 * arm-tdep.c (arm_init_extra_frame_info): Use
1692 deprecated_update_frame_base_hack.
1693 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
1694 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
1695 (fix_frame_pointer): Ditto.
1696 (mn10300_analyze_prologue): Ditto.
1697
1698 2003-01-07 Andrew Cagney <cagney@redhat.com>
1699
1700 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
1701 extra_info using frame_extra_info_zalloc.
1702 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1703 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
1704 (sh64_init_extra_frame_info): Ditto.
1705 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
1706 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
1707 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
1708 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
1709 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
1710 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
1711 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
1712 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
1713 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
1714 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
1715 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1716 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
1717
1718 * mn10300-tdep.c (analyze_dummy_frame): Use
1719 deprecated_set_frame_extra_info_hack.
1720 * mcore-tdep.c (analyze_dummy_frame): Ditto.
1721
1722 2003-01-07 J. Brobecker <brobecker@gnat.com>
1723
1724 * mdebugread.c (parse_symbol): Skip stProc entries which storage
1725 class is not scText. These do not define "real" procedures.
1726 (parse_partial_symbols): Likewise.
1727
1728 2003-01-06 Michael Snyder <msnyder@redhat.com>
1729
1730 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
1731
1732 2003-01-06 Andrew Cagney <ac131313@redhat.com>
1733
1734 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
1735 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
1736 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
1737 deprecated_frame_xmalloc_with_cleanup.
1738 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
1739 deprecated_frame_xmalloc.
1740 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
1741 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
1742
1743 2003-01-06 Andrew Cagney <cagney@redhat.com>
1744
1745 * x86-64-linux-tdep.c: Include "osabi.h".
1746 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
1747
1748 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
1749
1750 2003-01-06 Andrew Cagney <cagney@redhat.com>
1751
1752 * MAINTAINERS (Target Instruction Set Architectures): Update
1753 arm-elf. Can be built with -Werror, has been multiarched.
1754
1755 * value.h (unpack_long): Make buffer parameter constant.
1756 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
1757 * scm-lang.h (scm_parse): Ditto.
1758 * defs.h (extract_typed_address, extract_address): Ditto.
1759 (extract_long_unsigned_integer): Ditto.
1760 * inferior.h (unsigned_pointer_to_address): Ditto.
1761 (signed_pointer_to_address): Ditto.
1762 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
1763 * gdbarch.h, gdbarch.c: Regenerate.
1764 * findvar.c (extract_long_unsigned_integer): Update.
1765 (extract_address): Update.
1766 (extract_typed_address): Update.
1767 (unsigned_pointer_to_address): Update.
1768 * values.c (unpack_long): Update.
1769 (unpack_double): Update.
1770 (unpack_pointer): Update.
1771 (unpack_field_as_long): Update.
1772 * d10v-tdep.c (d10v_pointer_to_address): Update.
1773 * avr-tdep.c (avr_pointer_to_address): Update.
1774 * scm-lang.c (scm_unpack): Update.
1775 * findvar.c (signed_pointer_to_address): Update.
1776
1777 2003-01-06 Michal Ludvig <mludvig@suse.cz>
1778
1779 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
1780 since it is in i386-tdep.c.
1781
1782 2003-01-06 J. Brobecker <brobecker@gnat.com>
1783
1784 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
1785 failure introduced in the previous change.
1786
1787 2003-01-05 Michael Chastain <mec@shout.net>
1788
1789 * README: Remove references to deleted remote-*.c files:
1790 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
1791 remote-nrom.c, remote-os9k.c, remote-udi.c.
1792
1793 2003-01-05 Mark Kettenis <kettenis@gnu.org>
1794
1795 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
1796 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
1797 i386_get_longjmp_target.
1798
1799 2003-01-05 Andrew Cagney <ac131313@redhat.com>
1800
1801 * arm-tdep.c (prologue_cache): Change to a pointer.
1802 (_initialize_arm_tdep): Allocate prologue_cache.
1803 (check_prologue_cache): Update.
1804 (save_prologue_cache): Update.
1805 (arm_gdbarch_init): Update.
1806
1807 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1808
1809 * stabsread.c (update_method_name_from_physname): Call complaint()
1810 instead of error.
1811
1812 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1813
1814 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
1815 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
1816 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
1817
1818 * blockframe.c: Include "gdbcmd.h" and "command.h".
1819 (backtrace_below_main): New variable.
1820 (file_frame_chain_valid, func_frame_chain_valid)
1821 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
1822 (generic_func_frame_chain_valid): Remove functions.
1823 (frame_chain_valid, do_flush_frames_sfunc): New functions.
1824 (_initialize_blockframe): New function.
1825 * Makefile.in (blockframe.o): Update dependencies.
1826 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
1827 comment. Call frame_chain_valid ().
1828 * frame.h: Remove old prototypes. Add prototype for
1829 frame_chain_valid and update comments to match.
1830 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
1831 Remove old comment.
1832 * gdbarch.h: Regenerated.
1833 * gdbarch.c: Regenerated.
1834
1835 * alpha-tdep.c (alpha_gdbarch_init): Don't call
1836 set_gdbarch_frame_chain_valid.
1837 * avr-tdep.c (avr_gdbarch_init): Likewise.
1838 * cris-tdep.c (cris_gdbarch_init): Likewise.
1839 * frv-tdep.c (frv_gdbarch_init): Likewise.
1840 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1841 * i386-tdep.c (i386_svr4_init_abi): Likewise.
1842 (i386_nw_init_abi): Likewise.
1843 (i386_gdbarch_init): Likewise.
1844 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1846 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1847 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1848 * mips-tdep.c (mips_gdbarch_init): Likewise.
1849 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1850 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
1851 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1852 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1853 * s390-tdep.c (s390_gdbarch_init): Likewise.
1854 * sh-tdep.c (sh_gdbarch_init): Likewise.
1855 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1856 * v850-tdep.c (v850_gdbarch_init): Likewise.
1857 * vax-tdep.c (vax_gdbarch_init): Likewise.
1858 * x86-64-tdep.c (x86_64_init_abi): Likewise.
1859
1860 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
1861 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
1862 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
1863 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
1864 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
1865 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
1866 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
1867 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
1868
1869 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1870
1871 * Makefile.in (acconfig_h): Remove incorrect macro.
1872 (config_h): Define.
1873 (osabi.o): Update dependencies.
1874 * configure.tgt: Set gdb_osabi based on target triplet.
1875 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
1876 * configure: Regenerated.
1877 * config.in: Regenerated.
1878 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
1879 (GDB_OSABI_DEFAULT): Define if not already defined.
1880 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
1881 (set_osabi_string): New variables.
1882 (gdbarch_register_osabi): Add new OS ABI to
1883 gdb_osabi_available_names.
1884 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
1885 (set_osabi, show_osabi): New functions.
1886 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
1887
1888 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1889
1890 * arch-utils.c (gdbarch_info_init): Set osabi to
1891 GDB_OSABI_UNINITIALIZED.
1892 * gdbarch.sh: Add osabi to struct gdbarch and to struct
1893 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
1894 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
1895 * gdbarch.c: Regenerated.
1896 * gdbarch.h: Regenerated.
1897 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
1898 there's no BFD.
1899 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
1900 * osabi.h (enum gdb_osabi): Move to defs.h.
1901 (gdbarch_init_osabi): Update prototype.
1902 * defs.h (enum gdb_osabi): Moved here.
1903 * Makefile.in: Update dependencies.
1904
1905 * alpha-tdep.h: Don't include "osabi.h".
1906 (struct gdbarch_tdep): Remove osabi member.
1907 * alpha-tdep.c: Include "osabi.h".
1908 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1909 iterate over arches. Update call to gdbarch_init_osabi.
1910 (alpha_dump_tdep): Don't dump osabi.
1911 * alpha-linux-tdep.c: Include "osabi.h".
1912 * alpha-osf1-tdep.c: Include "osabi.h".
1913 * alphafbsd-tdep.c: Include "osabi.h".
1914 * alphanbsd-tdep.c: Include "osabi.h".
1915
1916 * arm-tdep.h: Don't include "osabi.h".
1917 (struct gdbarch_tdep): Remove osabi member.
1918 * arm-tdep.c: Include "osabi.h".
1919 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1920 iterate over arches. Update call to gdbarch_init_osabi.
1921 (arm_dump_tdep): Don't dump osabi.
1922 * arm-linux-tdep.c: Include "osabi.h".
1923 * armnbsd-tdep.c: Include "osabi.h".
1924
1925 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
1926 Update call to gdbarch_init_osabi.
1927
1928 * i386-tdep.h: Don't include "osabi.h".
1929 (struct gdbarch_tdep): Remove osabi member.
1930 * i386-tdep.c: Include "osabi.h".
1931 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1932 iterate over arches. Update call to gdbarch_init_osabi.
1933 (i386_dump_tdep): Don't dump osabi.
1934 * i386-linux-tdep.c: Include "osabi.h".
1935 * i386-sol2-tdep.c: Include "osabi.h".
1936 * i386bsd-tdep.c: Include "osabi.h".
1937 * i386gnu-tdep.c: Include "osabi.h".
1938 * i386ly-tdep.c: Include "osabi.h".
1939 * i386nbsd-tdep.c: Include "osabi.h".
1940 * i386obsd-tdep.c: Include "osabi.h".
1941
1942 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
1943 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1944 check osabi when iterating over arches. Update call to
1945 gdbarch_init_osabi.
1946 (mips_dump_tdep): Don't dump osabi.
1947
1948 * ns32k-tdep.h: Don't include "osabi.h".
1949 (struct gdbarch_tdep): Remove.
1950 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
1951 gdbarch_lookup_osabi. Don't iterate over arches. Don't
1952 allocate tdep. Update call to gdbarch_init_osabi.
1953 (ns32k_dump_tdep): Remove.
1954 (_initialize_ns32k_tdep): Update call to gdbarch_register.
1955 * ns32knbsd-tdep.c: Include "osabi.h".
1956
1957 * ppc-tdep.h: Don't include "osabi.h".
1958 (struct gdbarch_tdep): Remove osabi member.
1959 * rs6000-tdep.c: Include "osabi.h".
1960 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
1961 osabi when iterating over arches. Update call to
1962 gdbarch_init_osabi.
1963 (rs6000_dump_tdep): Don't dump osabi.
1964 * ppc-linux-tdep.c: Include "osabi.h".
1965 * ppcnbsd-tdep.c: Include "osabi.h".
1966
1967 * sh-tdep.h: Don't include "osabi.h".
1968 (struct gdbarch_tdep): Remove osabi member.
1969 * sh-tdep.c: Include "osabi.h".
1970 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1971 iterate over arches. Update call to gdbarch_init_osabi.
1972 (sh_dump_tdep): Don't dump osabi.
1973 * shnbsd-tdep.c: Include "osabi.h".
1974
1975 * sparc-tdep.c: Include "osabi.h".
1976 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1977 iterate over arches. Update call to gdbarch_init_osabi.
1978 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
1979 tdep structure.
1980
1981 * vax-tdep.h: Don't include "osabi.h".
1982 (struct gdbarch_tdep): Remove.
1983 * vax-tdep.c: Include "osabi.h".
1984 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
1985 iterate over arches. Don't allocate tdep. Update call
1986 to gdbarch_init_osabi.
1987 (vax_dump_tdep): Remove.
1988 (_initialize_vax_tdep): Update call to gdbarch_register.
1989
1990 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1991
1992 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
1993 entirely.
1994 (breakpoint_re_set_one): Don't fetch the value for a disabled
1995 watchpoint.
1996
1997 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
1998
1999 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
2000 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
2001 (COERCE_FLOAT_TO_DOUBLE): Remove.
2002 * gdbarch.c: Regenerate.
2003 * gdbarch.h: Regenerate.
2004 * Makefile.in: Remove value_h from gdbarch_h.
2005 * valops.c (coerce_float_to_double): New variable.
2006 (default_coerce_float_to_double): Remove.
2007 (standard_coerce_float_to_double): Remove.
2008 (value_arg_coerce): Use coerce_float_to_double.
2009 (_initialize_valops): Add "set coerce-float-to-double".
2010 * value.h (default_coerce_float_to_double): Remove prototype.
2011 (standard_coerce_float_to_double): Remove prototype.
2012
2013 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
2014 prototyped.
2015 * mdebugread.c (parse_symbol): Likewise.
2016 * stabsread.c (define_symbol): Mark all functions as prototyped.
2017
2018 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
2019 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
2020 set_gdbarch_coerce_float_to_double.
2021 * arm-tdep.c (arm_gdbarch_init): Likewise.
2022 * frv-tdep.c (frv_gdbarch_init): Likewise.
2023 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
2024 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2025 * mips-tdep.c (mips_gdbarch_init): Likewise.
2026 (mips_coerce_float_to_double): Remove.
2027 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2028 (rs6000_coerce_float_to_double): Remove.
2029 * s390-tdep.c (s390_gdbarch_init): Likewise.
2030 * sh-tdep.c (sh_gdbarch_init): Likewise.
2031 (sh_coerce_float_to_double): Remove.
2032 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2033 (sparc_coerce_float_to_double): Remove.
2034 * v850-tdep.c (v850_gdbarch_init): Likewise.
2035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2036 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2037 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
2038 (hppa_coerce_float_to_double): Remove prototype.
2039 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2040
2041 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2042
2043 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
2044
2045 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2046
2047 Suggested by Stewart Brown <sb24@avaya.com>:
2048 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
2049 in recursive calls. Handle TYPE_CODE_TYPEDEF.
2050 (c_type_print_varspec_suffix): Likewise.
2051
2052 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2053
2054 * configure.in: Don't set and AC_SUBST SUBDIRS.
2055 * configure: Regenerated.
2056
2057 * configure.in: Remove code dealing with shared libraries.
2058 * Makefile.in: Remove HLDFLAGS and HLDENV.
2059 * configure: Regenerated.
2060
2061 2003-01-04 Andrew Cagney <ac131313@redhat.com>
2062
2063 * frame.c (deprecated_frame_xmalloc): New function.
2064 (deprecated_set_frame_saved_regs_hack): New function.
2065 (deprecated_set_frame_extra_info_hack): New function.
2066 * frame.h (deprecated_frame_xmalloc): Declare.
2067 (deprecated_set_frame_saved_regs_hack): Declare.
2068 (deprecated_set_frame_extra_info_hack): Declare.
2069
2070 2003-01-04 Mark Kettenis <kettenis@gnu.org>
2071
2072 * configure.in: Move code that provides the --enable-gdbtk option
2073 right after the code that handles the --enable-tui option, and
2074 polish it somewhat.
2075 * configure: Regenerated.
2076
2077 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
2078 AC_CHECK_FUNCS and remove the old check for pread64.
2079 * acinclude.m4 (AC_GNU_SOURCE): New macro.
2080 * acconfig.h (_GNU_SOURCE): Add.
2081 (HAVE_PREAD64): Remove.
2082 * configure, aclocal.m4, config.in: Regenerated.
2083
2084 2003-01-03 Andrew Cagney <ac131313@redhat.com>
2085
2086 * alpha-tdep.c: Use get_frame_saved_regs.
2087 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2088 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2089 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
2090 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
2091 * vax-tdep.c, xstormy16-tdep.c: Ditto.
2092
2093 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2094
2095 * configure.in: Remove all use of the SUBDIRS variable; add
2096 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
2097 code providing the --enable-multi-ice option, and move it right in
2098 front of the code that checks whether gdbserver is supported.
2099 Polish that too.
2100 * configure: Regenerated.
2101 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
2102 @SUBDIRS@.
2103
2104 2003-01-03 Andrew Cagney <cagney@redhat.com>
2105
2106 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
2107 * avr-tdep.c, cris-tdep.c: Ditto.
2108 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2109 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2110
2111 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2112
2113 * configure.in: Remove --enable-netrom option.
2114 * configure: Regenerated.
2115
2116 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2117
2118 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
2119 declaration for `struct re_pattern_buffer' instead.
2120 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
2121
2122 2003-01-03 J. Brobecker <brobecker@gnat.com>
2123
2124 * mdebugread.c (parse_symbol): Count until the stEnd matching
2125 the structure name.
2126
2127 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2128
2129 * configure.in: Remove --with-cpu option.
2130 subscripts. Remove evil changequotes here.
2131 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
2132 * config.in, configure: Regenerated.
2133
2134 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
2135 * configure.in: Cleanup section that sources GDB and BFD configure
2136 subscripts. Remove evil changequotes here.
2137 * config.in, configure: Regenerated.
2138
2139 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2140
2141 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
2142 frame accessor methods.
2143 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2144 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2145 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2146 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
2147 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
2148 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2149 * z8k-tdep.c: Ditto.
2150
2151 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2152
2153 * configure.in: Remove UI_OUT configuration code.
2154 * ada-lang.c: Update assuming UI_OUT is always true.
2155 * Makefile.in (UIOUT_CFLAGS): Remove.
2156 * configure: Regenerated.
2157 * TODO: Remove blurb about elimination of -DUI_OUT.
2158
2159 * configure.in: Move code that provides the --enable-gdbcli,
2160 --enable-gdbmi options right before the code that handles the
2161 --enable-tui option. Polish a bit.
2162 * configure: Regenerated.
2163
2164 * configure.in: Rewrite check for GNU regex and the
2165 --without-included regex option, and move it into the "Checks for
2166 library functions" section. This makes us use the system regex
2167 again by default on systems with version 2 of the GNU C library.
2168 This was apparently broken.
2169 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
2170 * acconfig.h (USE_INCLUDED_REGEX): Remove.
2171 * config.in, configure: Regenerated.
2172
2173 * configure.in: Move code that provides the --enable-tui option
2174 before the "Checks for libraries" section. Polish the code
2175 somewhat and set need_curses to yes if we build the TUI. Rewrite
2176 code that looks for a library providing termcap functionality to
2177 match more closely what's done in the Readline library, and move
2178 it into to the "Checks for libraries" section.
2179 * configure: Regenerated.
2180 * Makefile.in (TERMCAP): Remove variable.
2181 * config/i386/go32.mh (TERMCAP): Remove variable.
2182
2183 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2184
2185 * MAINTAINERS: Mention gdb_mbuild.sh.
2186 * gdb_mbuild.sh: Rewrite.
2187
2188 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2189
2190 * configure.in: Fix typo in last change.
2191 * config.in, configure: Regenerated.
2192
2193 2003-01-02 Andrew Cagney <ac131313@redhat.com>
2194
2195 * valarith.c (value_binop): Delete obsolete code and comments.
2196 * configure.host: Ditto.
2197 * buildsym.h (make_blockvector): Ditto.
2198 * buildsym.c (make_blockvector): Ditto.
2199 * defs.h (enum language): Ditto.
2200 (chill_demangle): Ditto.
2201 * elfread.c (elf_symtab_read): Ditto.
2202 * dwarfread.c (CHILL_PRODUCER): Ditto.
2203 (set_cu_language): Ditto.
2204 (handle_producer): Ditto.
2205 * expprint.c (print_subexp): Ditto.
2206 * gdbtypes.c (chill_varying_type): Ditto.
2207 * gdbtypes.h (builtin_type_chill_bool): Ditto.
2208 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
2209 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
2210 (chill_varying_type): Ditto.
2211 * language.h (_LANG_chill): Ditto.
2212 * language.c (binop_result_type, integral_type): Ditto.
2213 (character_type, string_type, structured_type): Ditto.
2214 (lang_bool_type, binop_type_check): Ditto.
2215 * stabsread.h (os9k_stabs): Ditto.
2216 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
2217 (define_symbol, read_type, read_struct_fields): Ditto.
2218 (read_array_type, read_enum_type, read_huge_number): Ditto.
2219 (read_range_type, start_stabs): Ditto.
2220 * symfile.c (init_filename_language_table): Ditto.
2221 (add_psymbol_with_dem_name_to_list): Ditto.
2222 * symtab.c (symbol_init_language_specific): Ditto.
2223 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
2224 * symtab.h (struct general_symbol_info): Ditto.
2225 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2226 * typeprint.c (typedef_print): Ditto.
2227 * utils.c (fprintf_symbol_filtered): Ditto.
2228 * valops.c (value_cast, search_struct_field, value_slice): Delete
2229 obsolete code.
2230 (varying_to_slice): Delete function.
2231 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
2232 (varying_to_slice): Delete declaration.
2233 * MAINTAINERS: Update.
2234
2235 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2236
2237 * configure.in: Reorganize "Checks for library functions section"
2238 a bit. Remove check for `btowc' and `isascii' functions.
2239 * configure: Regenerated.
2240
2241 * acconfig.h (_MSE_INT_H): Remove.
2242 * configure.in: Create "Checks for header files" section, and move
2243 appropriate tests there. Don't check for objlist.h, wchar.h,
2244 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
2245 misdetection fix. Also add "Checks for types", "Checks for
2246 compiler characteristics" and "Checks for library functions"
2247 sections.
2248 * config.in, configure: Regenerated.
2249
2250 * configure.in: Create "Checks for programs" section, and move
2251 appropriate tests there.
2252
2253 2003-01-01 Mark Kettenis <kettenis@gnu.org>
2254
2255 * configure.in: Create "Checks for libraries" section, and move
2256 appropriate tests there. Cleanup check for wctype in libw. Use
2257 AC_SEARCH_LIBS to see whether we need libsocket.
2258 * configure: Regenerated.
2259
2260 For older changes see ChangeLog-2002
2261 \f
2262 Local Variables:
2263 mode: change-log
2264 left-margin: 8
2265 fill-column: 74
2266 version-control: never
2267 End:
This page took 0.074819 seconds and 5 git commands to generate.