* symfile.c (add_psymbol_with_dem_name_to_list): Remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
4 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5
6 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7
8 * NEWS: Mention removal of HP aCC support.
9
10 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
11
12 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
13 first entry for static executables.
14 (breakpoint_addr): Delete unused variable.
15 (elf_locate_base): Search for _r_debug in static executables.
16 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
17 also.
18
19 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
20
21 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
22 (bpstat_what, print_one_breakpoint, allocate_bp_location)
23 (mention): Remove bp_through_sigtramp support.
24 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
25
26 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
27
28 * breakpoint.c (bpstat_what): Give step-resume higher priority than
29 shlib events.
30
31 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
32
33 * infrun.c: Doc fixes.
34 (handle_inferior_event): Clarify debug message.
35 (insert_step_resume_breakpoint_at_sal): Print a debug message.
36
37 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
38
39 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
40
41 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
42
43 * config/m68k/tm-monitor.h: Delete file.
44 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
45 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
46 call moved to ...
47 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
48 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
49
50 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
51
52 * gdbarch.sh (software_single_step): Change the return type
53 from void to int and reformatted some comments to <= 80
54 columns.
55 * gdbarch.c, gdbarch.h: Regenerated.
56 * alpha-tdep.c (alpha_software_single_step): Likewise.
57 * alpha-tdep.h (alpha_software_single_step): Likewise.
58 * arm-tdep.c (arm_software_single_step): Likewise.
59 * cris-tdep.c (cris_software_single_step): Likewise.
60 * mips-tdep.c (mips_software_single_step): Likewise.
61 * mips-tdep.h (mips_software_single_step): Likewise.
62 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
63 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
64 * sparc-tdep.c (sparc_software_single_step): Likewise.
65 * sparc-tdep.h (sparc_software_single_step): Likewise.
66 * spu-tdep.c (spu_software_single_step): Likewise.
67 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
68 and act accordingly.
69
70 2007-04-11 Steve Ellcey <sje@cup.hp.com>
71
72 * configure.ac (build_warnings): Add -Wno-char-subscripts.
73 * configure: Regenerate.
74 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
75
76 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
77
78 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
79
80 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
81
82 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
83 macros.
84 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
85 distinct on the TYPE_STUB_SUPPORTED debug targets.
86 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
87
88 2007-04-11 Joel Brobecker <brobecker@adacore.com>
89
90 * sparc-tdep.c (X_RS2): New macro.
91 (sparc_skip_stack_check): New function.
92 (sparc_analyze_prologue): Adjust PC past stack probing
93 sequence if necessary.
94
95 2007-04-10 Andreas Schwab <schwab@suse.de>
96
97 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
98 register.
99
100 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
101
102 * breakpoint.c (gdb_breakpoint_query): Really return an
103 enum gdb_rc.
104 (gdb_breakpoint): Likewise.
105 * thread.c (gdb_list_thread_ids): Likewise.
106 (gdb_thread_select): Likewise.
107 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
108 (mi_cmd_thread_list_ids): Remove bogus initialization.
109
110 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
111
112 * Makefile.in (SFILES): Remove hpacc-abi.c.
113 (COMMON_OBS): Remove hpacc-abi.o.
114 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
115 (hpacc-abi.o, hpread.o): Delete rules.
116 * somread.c: Delete extern declarations from hpread.c.
117 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
118 (som_symfile_finish): Do not call hpread_symfile_finish.
119 (som_symfile_init): Do not call hpread_symfile_init.
120 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
121 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
122 * hpacc-abi.c, hpread.c: Deleted.
123
124 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
125
126 * solib-svr4.c (enable_break): Simplify return value.
127 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
128
129 2007-04-10 Andreas Schwab <schwab@suse.de>
130
131 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
132 l_ld_size, l_next_size, l_prev_size, l_name_size.
133
134 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
135 to extract addresses from link map.
136 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
137 (LM_NEXT): Likewise.
138 (LM_NAME): Likewise.
139 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
140 (elf_locate_base): Likewise.
141 (open_symbol_file_object): Likewise.
142 (svr4_fetch_objfile_link_map): Likewise.
143 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
144 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
145 l_ld_size.
146 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
147 (svr4_lp64_fetch_link_map_offsets): Likewise.
148
149 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
150 removed members. Set l_ld_offset to -1 if not present.
151
152 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
153
154 Pass stderr of program run with "target remote |"
155 via gdb_stderr.
156 * serial.c (serial_open): Set error_fd to -1.
157 * serial.h (struct serial): New field error_fd.
158 (struct serial_opts): New field avail.
159 * ser-pipe.c (pipe_open): Create another pair
160 of sockets. Pass stderr to gdb.
161 * ser-mingw.c (pipe_windows_open): Pass
162 PEX_STDERR_TO_PIPE to pex_run. Initialize
163 sd->error_fd.
164 (pipe_avail): New.
165 (_initialize_ser_windows): Hook pipe_avail.
166 * ser-base.c (generic_readchar): Check if there's
167 anything in stderr channel and route that to gdb_stderr.
168
169 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
170
171 * dbxread.c (read_ofile_symtab): Move current_objfile
172 clearing to after end_stabs.
173
174 2007-04-01 Andreas Schwab <schwab@suse.de>
175
176 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
177 gdbarch instead of current_gdbarch.
178
179 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
180
181 * varobj.c (varobj_create): Keep varobj value
182 NULL when evaluating the type.
183
184 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
185
186 * NEWS: Mention new Windows CE support.
187
188 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
189
190 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
191 the obsoletion stanza.
192 * NEWS: Mention deleted targets.
193
194 * config/sh/tm-wince.h: Remove.
195 * config/sh/wince.mt: Remove.
196 * config/mips/tm-wince.h: Remove.
197 * config/mips/wince.mt: Remove.
198
199 * wince.c: Remove.
200 * wince-stub.c: Remove.
201 * wince-stub.h: Remove.
202 * Makefile.in (wince.o): Remove rule.
203 (wince-stub.o): Likewise.
204
205 * mips-tdep.c (mips_next_pc): Make static.
206 * mips-tdep.h (mips_next_pc): Remove declaration.
207 * arm-tdep.c (arm_pc_is_thumb): Make static.
208 (thumb_get_next_pc): Likewise.
209 (arm_get_next_pc): Likewise.
210 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
211 (arm_pc_is_thumb): Likewise.
212 (thumb_get_next_pc): Likewise.
213 (arm_get_next_pc): Likewise.
214
215 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
216
217 * MAINTAINERS: Remove d10v entry.
218 * Makefile.in (SFILES): Remove dwarfread.c.
219 (COMMON_OBS): Remove dwarfread.o.
220 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
221 (remote-est.o, rom68k-rom.o): Delete.
222 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
223 target est, target rom68k, and DWARF 1.
224 * configure.tgt: Mark d10v as removed.
225 * dwarf2read.c: Doc update.
226 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
227 and lnsize.
228 (elf_locate_sections): Do not set them.
229 (elf_symfile_read): Do not call dwarf_build_psymtabs.
230 * symfile.h (dwarf_build_psymtabs): Delete prototype.
231 * config/m68k/monitor.mt (TDEPFILES): Prune.
232 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
233 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
234
235 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
236
237 * doublest.c (convert_floatformat_to_doublest): Use
238 floatformat_classify.
239 (floatformat_is_nan): Rename to...
240 (floatformat_classify): ...this. Return more information.
241 * doublest.h (enum float_kind): New.
242 (floatformat_is_nan): Replace prototype...
243 (floatformat_classify): ...with this one.
244 * valprint.c (print_floating): Use floatformat_classify. Handle
245 infinity.
246
247 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
248
249 * README: Mention ISO C library requirement.
250
251 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
252
253 * Makefile.in (SFILES): Remove nlmread.c.
254 (COMMON_OBS): Remove nlmread.o.
255 (nlmread.o): Delete rule.
256 * README: Delete reference to remote-st.c.
257 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
258 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
259 GDB_OSABI_LYNXOS.
260 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
261 (_initialize_i386_tdep): Do not reference them.
262 * nlmread.c: Delete file.
263 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
264 * target.c: Doc update.
265 * thread.c: Delete commented include.
266 * config/alpha/tm-alpha.h: Doc update.
267
268 2007-03-30 Chris Dearman <chris@mips.com>
269
270 * utils.c (string_to_core_addr): Comment typo.
271
272 2007-03-30 Chris Dearman <chris@mips.com>
273
274 * mips-tdep.c: Comment typo.
275
276 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
277
278 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
279 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
280 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
281 * config/powerpc/nm-ppc64-linux.h: Remove file.
282 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
283 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
284 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
285 * infptrace.c (call_ptrace): Likewise.
286 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
287 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
288 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
289 (store_register): Likewise.
290
291 2007-03-29 Joel Brobecker <brobecker@adacore.com>
292
293 * Makefile.in (varobj.o): Add missing dependency.
294
295 2007-03-29 Michael Snyder <msnyder@access-company.com>
296
297 * MAINTAINERS: Update my email address.
298
299 2007-03-29 Joel Brobecker <brobecker@adacore.com>
300
301 Add support for exception handling with multiple versions of
302 the Ada runtime:
303 * ada-lang.c: Update general comments on how Ada exception catchpoints
304 are implemented.
305 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
306 (__gnat_raise_nodefer_with_msg): Delete.
307 (ada_unhandled_exception_name_addr_ftype): New type.
308 (exception_support_info): New type.
309 (ada_unhandled_exception_name_addr): Add forward declaration.
310 (ada_unhandled_exception_name_addr_from_raise): Likewise.
311 (default_exception_support_info): New constant.
312 (exception_support_info_fallback): Likewise.
313 (exception_info): New global variable.
314 (ada_exception_support_info_sniffer): New function.
315 (ada_executable_changed_observer): Likewise.
316 (ada_unhandled_exception_name_addr_from_raise): Renamed from
317 ada_unhandled_exception_name_addr.
318 (ada_unhandled_exception_name_addr): Reimplement to match the
319 latest Ada runtime implementation.
320 (error_breakpoint_runtime_sym_not_found): Delete.
321 (ada_exception_sym_name): Get the exception sym name from
322 exception_info rather than hardcoding it.
323 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
324 Update error handling.
325 * Makefile.in (ada-lang.o): Add dependency on observer.h.
326
327 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
328
329 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
330 (remote-st.o, uw-thread.o): Delete.
331 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
332 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
333 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
334 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
335 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
336 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
337 rs6000-*-lynxos* to an obsoletion stanza.
338 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
339 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
340 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
341 i[34567]86-*-netware*.
342 * NEWS: Mention deleted targets.
343
344 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
345 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
346 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
347 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
348 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
349 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
350 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
351 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
352 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
353 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
354 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
355 config/rs6000/tm-rs6000ly.h: Delete files.
356
357 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
358
359 * defs.h (deprecated_registers_changed_hook): Delete declaration.
360 * interps.c (clear_interpreter_hooks): Do not clear
361 deprecated_registers_changed_hook.
362 * regcache.c (registers_changed): Do not call it.
363 * top.c (deprecated_registers_changed_hook): Do not define it.
364 * mi/mi-interp.c (mi_command_loop): Do not clear it.
365 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
366 (tui_remove_hooks): Do not remove it.
367 (tui_selected_frame_level_changed_hook): Check for negative level.
368 Use get_selected_frame.
369 (tui_registers_changed_hook): Deleted.
370
371 2007-03-29 Joel Brobecker <brobecker@adacore.com>
372
373 * stabsread.c (add_undefined_type): Add extra parameter.
374 Now handles nameless types separately.
375 (struct nat): New type.
376 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
377 New static variables.
378 (read_type): Update calls to add_undefined_type.
379 (add_undefined_type_noname): New function.
380 (add_undefined_type_1): Renames from add_undefined_type.
381 (cleanup_undefined_types_noname): New function.
382 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
383 (cleanup_undefined_types): New handles nameless types separately.
384 (_initialize_stabsread): Initialize our new static constants.
385
386 2007-03-29 Denis Pilat <denis.pilat@st.com>
387
388 * configure.ac: Test for signal.h.
389 * configure, config.in: Regenerate.
390
391 2007-03-29 Denis Pilat <denis.pilat@st.com>
392
393 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
394 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
395
396 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
397
398 * arm-wince-tdep.c: New.
399 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
400 (MT_CFLAGS): Delete.
401 (TM_CLIBS): Delete.
402 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
403 solib-legacy.o, solib-svr4.o, and remove wince.o.
404 * configure.tgt (arm*-*-mingw32ce*): Add.
405 * signals/signals.c [HAVE_SIGNAL_H]: Check.
406 (do_target_signal_to_host): Silence 'not used' warning.
407 * config/arm/tm-wince.h: Remove.
408
409 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
410
411 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
412 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
413
414 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
415 * config/ia64/tm-linux.h: Remove file.
416 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
417 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
418 legacy_pc_in_sigtramp.
419 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
420 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
421 Remove func_name argument.
422 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
423
424 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
425 * target.c (update_current_target): Add to_have_steppable_watchpoint.
426 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
427 (HAVE_STEPPABLE_WATCHPOINT): Define.
428
429 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
430 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
431 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
432 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
433 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
434 target_insert_watchpoint, target_remove_watchpoint): Remove.
435 (FETCH_INFERIOR_REGISTERS): Define.
436 * ia64-linux-nat.c (ia64_register_addr): Make static.
437 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
438 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
439 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
440 (ia64_linux_stopped_data_address): Make static. Add target_ops.
441 (ia64_linux_stopped_by_watchpoint): Make static.
442 (ia64_linux_can_use_hw_breakpoint): New function.
443 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
444 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
445 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
446
447 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
448
449 * linespec.c: Include language.h.
450 (find_methods): Add language parameter. Call
451 lookup_symbol_in_language. Pass language down.
452 (add_matching_methods): Likewise. Call
453 lookup_symbol_in_language.
454 (add_constructors): Likewise.
455 (find_method): Pass sym_class to collect_methods.
456 (collect_methods): Add sym_class parameter. Pass language
457 down.
458 * symtab.c (lookup_symbol): Rename to ...
459 (lookup_symbol_in_language): ... this. Add language
460 parameter. Use passed language instead of current_language.
461 (lookup_symbol): New as wrapper around
462 lookup_symbol_in_language.
463 (lookup_symbol_aux): Add language parameter. Use passed
464 language instead of current_language.
465 (search_symbols): Indent.
466 * symtab.h (enum language): Forward declare.
467 (lookup_symbol_in_language): Declare.
468 (lookup_symbol): Update description.
469 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
470 * ada-lang.c (restore_language): Remove.
471 (lookup_symbol_in_language): Remove.
472
473 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
474
475 * breakpoint.c (bpstat_num): Add int *num parameter.
476 * breakpoint.h (bpstat_num): Likewise.
477 * infcmd.c (continue_command): Adjust to new bpstat_num
478 interface.
479 (program_info): Likewise.
480
481 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
482
483 * config/sh/tm-sh.h: Remove file.
484 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
485 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
486 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
487 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
488
489 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
490
491 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
492 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
493 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
494 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
495 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
496 sequence if target_shortname is "remote".
497
498 2007-03-27 Anton Blanchard <anton@samba.org>
499
500 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
501 instead of wordsize when looking for the LR in a stack frame.
502
503 2007-03-27 Andreas Schwab <schwab@suse.de>
504 Daniel Jacobowitz <dan@codesourcery.com>
505
506 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
507 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
508 argument. Update all callers.
509 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
510 (dwarf2_frame_set_eh_frame_regnum): Rename to...
511 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
512 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
513 (dwarf2_frame_set_adjust_regnum): ...this.
514 (dwarf2_frame_eh_frame_regnum): Delete prototype.
515 * rs6000-tdep.c: Include "dwarf2-frame.h".
516 (rs6000_adjust_frame_regnum): Define.
517 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
518 Register rs6000_adjust_frame_regnum.
519
520 * Makefile.in (rs6000-tdep.o): Update dependencies.
521
522 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
523
524 * Makefile.in: Add support for a "pdf" target.
525
526 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
527
528 * amd64-tdep.c (amd64_init_frame_cache): New function.
529 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
530
531 2007-03-26 Nigel Stephens <nigel@mips.com>
532 Maciej W. Rozycki <macro@mips.com>
533
534 * ui-out.c (ui_out_field_core_addr): Truncate address to
535 TARGET_ADDR_BIT size before printing.
536
537 2007-03-22 Nigel Stephens <nigel@mips.com>
538 Maciej W. Rozycki <macro@mips.com>
539
540 * remote-mips.c (mips_xfer_memory): Update prototype.
541
542 2007-03-22 Joel Brobecker <brobecker@adacore.com>
543
544 * symfile.h: #include "symtab.h"
545
546 2007-03-22 Denis Pilat <denis.pilat@st.com>
547
548 * utils.c (pagination_on_command, pagination_off_command):
549 Remove useless prototypes.
550
551 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
552
553 Fix PR pascal/2232.
554 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
555 instead of TYPE_NAME for object base class name.
556
557
558 2007-03-19 Kevin Buettner <kevinb@redhat.com>
559
560 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
561 Specify frame type in calls to frame_func_unwind().
562
563 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
564
565 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
566 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
567 (refine_prologue_limit): Delete.
568 (skip_prologue): Don't call it. Use extract_unsigned_integer.
569 Assume lim_pc is set. Correct check for incomplete prologues.
570 Do not skip clobbers of the frame pointer.
571 * symtab.c (skip_prologue_using_sal): Fail if there is only one
572 sal.
573
574 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
575
576 * frame.c (frame_pop): Check to see whether there's a frame to
577 which we can pop first.
578
579 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
580
581 * MAINTAINERS (Write After Approval): Add myself.
582
583 2007-03-09 Markus Deuling <deuling@de.ibm.com>
584
585 * infrun.c (breakpoints_failed): Remove unnecessary variable.
586 (handle_inferior_event): Remove unnecessary braces.
587 * breakpoint.c (bpstat_what): Remove wrong comment.
588
589 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
590
591 * spu-tdep.c (spu_in_function_epilogue_p): New function.
592 (spu_gdbarch_init): Install it.
593
594 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
595
596 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
597 object types, not 0.
598
599 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
600
601 * spu-tdep.c (spu_frame_align): New function.
602 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
603
604 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
605
606 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
607 (spu_software_single_step): Likewise.
608 (spu_read_pc, spu_write_pc): New functions.
609 (spu_gdbarch_init): Install them.
610
611 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
612
613 * cli/cli-dump.c (struct callback_data): load_offset needs to
614 have signed long type.
615
616 2007-03-07 Joel Brobecker <brobecker@adacore.com>
617
618 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
619 Revert the previous change that had some unexpected side-effects
620 on mips32.
621 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
622 function to get the address of the calling instruction.
623
624 2007-03-07 Denis Pilat <denis.pilat@st.com>
625
626 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
627 get_selected_frame by deprecated_safe_get_selected_frame.
628
629 2007-03-02 Mark Kettenis <kettenis@gnu.org>
630
631 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
632 "gdb_string.h". Don't include "nbsd-tdep.h".
633 (SIZEOF_STRUCT_REG): Remove.
634 (SHNBSD_SIZEOF_GREGS): New.
635 (shnbsd_supply_gregset, shnbsd_collect_gregset)
636 (shnbsd_regset_from_core_section): New functions.
637 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
638 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
639 shnbsd_supply_gregset, shnbsd_collect_gregset.
640 (shnbsd_gregset): New variable.
641 (shnbsd_init_abi): Set regset_from_core_section.
642 (GDB_OSABI_NETBSD_CORE): New define.
643 (shnbsd_core_osabi_sniffer): New function.
644 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
645 * Makefile.in (shnbsd-tdep.o): Update dependencies.
646 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
647 nbsd-tdep.o.
648 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
649
650 2007-02-28 Joel Brobecker <brobecker@adacore.com>
651
652 * gdbtypes.c (replace_type): Fix typo that caused us to not update
653 length of the types referenced by the new type CV ring.
654
655 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
656
657 * frame.c (frame_pop, frame_observer_target_changed): Call
658 reinit_frame_cache.
659 (flush_cached_frames): Rename to reinit_frame_cache and delete
660 old implementation.
661 * frame.h (flush_cached_frames): Delete prototype and update comment.
662
663 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
664 reinit_frame_cache instead of flush_cached_frames. Do not call
665 select_frame after reinit_frame_cache.
666 * corelow.c (core_open): Likewise.
667 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
668 * infrun.c (prepare_to_proceed, context_switch)
669 (handle_inferior_event): Likewise.
670 * linux-fork.c (fork_load_infrun_state): Likewise.
671 * ocd.c (ocd_start_remote): Likewise.
672 * remote-e7000.c (e7000_start_remote): Likewise.
673 * remote-mips.c (device): Likewise.
674 * thread.c (switch_to_thread): Likewise.
675 * tracepoint.c (finish_tfind_command): Likewise.
676 * gdbarch.c: Regenerated.
677
678 2007-02-28 Jerome Guitton <guitton@adacore.com>
679 Joel Brobecker <brobecker@adacore.com>
680
681 * gdbtypes.c (check_typedef): Do not replace stub type if
682 the resolved type is not defined in the same objfile.
683
684 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
685
686 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
687
688 2007-02-28 Joel Brobecker <brobecker@adacore.com>
689
690 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
691 symbol for Ada units when the symbol is defined using 't' rather
692 than 'Tt' as symbol descriptor.
693
694 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
695
696 * config/mips/tm-nbsd.h: Delete file.
697 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
698 * config/sh/tm-nbsd.h: Delete file.
699 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
700
701 2007-02-28 Joel Brobecker <brobecker@adacore.com>
702
703 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
704 unused WRONG_PARAM value since it was recently deleted.
705
706 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
707
708 * varobj.c (varobj_update): Free temporary vectors.
709
710 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
711
712 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
713 * config/powerpc/tm-linux.h: Delete file.
714 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
715 (PROCESS_LINENUMBER_HOOK): Do not undefine.
716 (TEXT_SEGMENT_BASE): Do not redefine.
717 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
718 from config/rs6000/tm-rs6000.h.
719 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
720 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
721 (TEXT_SEGMENT_BASE): Remove.
722 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
723 (rs6000_in_solib_return_trampoline): Remove.
724 (SKIP_TRAMPOLINE_CODE): Remove.
725 (rs6000_skip_trampoline_code): Remove.
726 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
727 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
728 (FP0_REGNUM): Remove.
729 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
730 (rs6000_set_host_arch_hook): Remove.
731 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
732 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
733 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
734 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
735 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
736 * rs6000-nat.c: Include "rs6000-tdep.h".
737 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
738 (set_host_arch): Rename to ...
739 (rs6000_create_inferior): ... this. Make public.
740 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
741 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
742 (rs6000_create_inferior): Remove.
743 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
744 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
745 set_gdbarch_in_solib_return_trampoline, and
746 set_gdbarch_skip_trampoline_code.
747 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
748 from config/rs6000/tm-rs6000.h.
749
750 2007-02-27 Joel Brobecker <brobecker@adacore.com>
751
752 * buildsym.c (record_producer): Do nothing if no producer is provided.
753
754 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
755
756 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
757 to check changelist is non-NULL. Call error if the frontend tries
758 to update a non-root variable.
759
760 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
761
762 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
763
764 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
765 (dwarf2_frame_sniffer): Update.
766 (dwarf2_signal_frame_this_id): New function.
767 (dwarf2_signal_frame_unwind): Use it.
768 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
769 * frame.c (frame_func_unwind): Add this_type argument.
770 (get_frame_func): Update.
771 (frame_unwind_address_in_block): Add this_type argument and check it.
772 Fix a typo.
773 (get_frame_address_in_block): Update.
774 * frame.h (enum frame_type): Move higher in the file.
775 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
776 argument.
777
778 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
779 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
780 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
781 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
782 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
783 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
784 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
785 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
786 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
787 frame_func_unwind and frame_unwind_address_in_block to specify
788 the frame type. Use frame_unwind_address_in_block instead of
789 frame_pc_unwind in sniffers.
790
791 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
792
793 * frame.c (deprecated_selected_frame): Rename to...
794 (selected_frame): ...this. Make static.
795 (get_selected_frame, select_frame): Update.
796 * frame.h (deprected_select_frame): Delete.
797 (deprecated_safe_get_selected_frame): Update comments.
798
799 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
800 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
801 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
802 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
803 tui/tui.c: Replace references to deprecated_selected_frame.
804
805 2007-02-27 Fred Fish <fnf@specifix.com>
806
807 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
808 directly decrement the stack pointer, accumulate their operand into
809 the stack offset, and mark the function as not being frameless.
810
811 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
812
813 * arch-utils.c (selected_byte_order): New.
814 * arch-utils.h (selected_byte_order): New prototype.
815 * remote-sim.c (gdbsim_open): Use selected_byte_order.
816
817 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
818
819 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
820 (default_symfile_offsets): Check VMA here. Update section VMAs.
821
822 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
823
824 * remote.c (init_remote_state): Add special handling for placeholder
825 registers.
826
827 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
828
829 * Makefile.in (XMLFILES): Include $(TDEP_XML).
830 (filenames_h): New variable.
831 (clean): Clean up xml-builtin.c and stamp-xml.
832 (arm-linux-nat.o): Update.
833 * config/arm/linux.mh (TDEP_XML): Define.
834 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
835 (arm_linux_has_wmmx_registers): New.
836 (GET_THREAD_ID): Fix typo.
837 (IWMMXT_REGS_SIZE): Define.
838 (fetch_wmmx_regs, store_wmmx_regs): New.
839 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
840 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
841 (super_xfer_partial, arm_linux_xfer_partial): New.
842 (_initialize_arm_linux_nat): Use them.
843 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
844 (xml_builtin_xfer_partial): New function.
845 * xml-support.h (xml_builtin_xfer_partial): New prototype.
846 * NEWS: Update mention of iWMMXt support.
847
848 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
849
850 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
851 if there are no FPA registers.
852 (arm_dwarf_reg_to_regnum): New function.
853 (arm_register_type, arm_register_name): Return minimal values for
854 unsupported registers.
855 (arm_register_sim_regno): Handle iWMMXt registers.
856 (arm_gdbarch_init): Record missing FPA registers if indicated by
857 a target description. Recognize iWMMXt registers. Only register
858 "info float" for FPA. Use ARM_NUM_REGS. Register
859 arm_dwarf_reg_to_regnum.
860 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
861 constants.
862 (struct gdbarch_tdep): Add have_fpa_registers.
863 * features/xscale-iwmmxt.xml: Update capitalization.
864 * regformats/arm-with-iwmmxt.dat: Regenerated.
865
866 2007-02-24 Kevin Buettner <kevinb@redhat.com>
867
868 * NEWS (New targets): Add entry for the Toshiba Media Processor.
869
870 2007-02-23 Kevin Buettner <kevinb@redhat.com>
871
872 * MAINTAINERS (mep): New target.
873
874 2007-02-23 Kevin Buettner <kevinb@redhat.com>
875
876 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
877 Richard Sandiford:
878 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
879 (mep-tdep.o): New rule.
880 * configure.tgt (mep-*-*): New target.
881 * mep-tdep.c: New file.
882 * config/mep/mep.mt: New file.
883
884 2007-02-22 Markus Deuling <deuling@de.ibm.com>
885
886 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
887 BREAKPOINT_HIT and STOP_UNKNOWN.
888
889 2007-02-22 Markus Deuling <deuling@de.ibm.com>
890
891 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
892
893 2007-02-20 Joel Brobecker <brobecker@adacore.com>
894
895 * gdb_expat.h (XMLCALL): Define if not already defined.
896
897 2007-02-20 Andreas Schwab <schwab@suse.de>
898
899 * Makefile.in (symfile.o): Update dependencies.
900
901 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
902
903 * MAINTAINERS: Disable -Werror for cris simulator. Build
904 sparc64-solaris2.10 instead of the broken sparc-elf.
905 * solib-frv.c: Include "solib.h".
906 * Makefile.in (solib-frv.o): Update.
907 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
908 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
909 (xtensa_frame_this_id, xtensa_frame_prev_register)
910 (xtensa_push_dummy_call): Use %p.
911
912 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
913
914 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
915 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
916 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
917 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
918 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
919 (sparc-linux-tdep.o): Update.
920
921 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
922
923 * xtensa-tdep.h (xtensa_reg_mask_t): New.
924 (xtensa_mask_t): Change mask field to be a separate array.
925 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
926 (xtensa_pseudo_register_write, xtensa_unwind_pc)
927 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
928 (xtensa_breakpoint_from_pc): Remove implicit type casting.
929 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
930 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
931 (mask14, mask15): Rename to
932 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
933 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
934 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
935 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
936 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
937 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
938 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
939 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
940 (xtensa_submask14, xtensa_submask15): New.
941 (rmap): Follow strict aliasing rules doing static initialization.
942
943 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
944
945 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
946 handling from here...
947 (tdesc_register_type): ...to here.
948 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
949 * features/arm-core.xml: Use code_ptr and data_ptr.
950
951 2007-02-13 Denis Pilat <denis.pilat@st.com>
952
953 * varobj.h (enum varobj_update_error): New enum.
954 * varobj.c (struct varobj_root): Add is_valid member.
955 (varobj_get_type): Check for invalid varobj.
956 (varobj_get_attributes): Likewise.
957 (variable_editable):Likewise.
958 (varobj_update): Likewise. Use varobj_update_error.
959 (new_root_variable): Set root varobj as valid by default.
960 (varobj_invalidate): New function.
961 * symfile.c (clear_symtab_users): Use varobj_invalidate.
962 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
963 Use varobj_update_error.
964
965 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
966
967 Fix PR pascal/2223.
968 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
969 Pascal language marker.
970 * dwarf2read.c (set_cu_language): Likewise.
971
972 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
973
974 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
975 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
976 instead of target_terminal_init since inferior_ptid isn't set yet.
977
978 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
979
980 * MAINTAINERS (Write After Approval): Add myself.
981
982 2007-02-09 Fred Fish <fnf@specifix.com>
983
984 Based on work by Apple Computer, Inc.
985 * event-top.c (async_request_quit): Call quit() whenever either
986 quit_flag is set or immediate_quit is set.
987
988 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
989
990 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
991 type to a pointer to const struct block.
992 (ada_lookup_symbol_list): Don't cast away constness when calling
993 remove_out_of_scope_renamings.
994
995 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
996
997 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
998 address of 'filename'; it is always non null.
999
1000 2007-02-09 Joel Brobecker <brobecker@adacore.com>
1001
1002 * exec.c (add_to_section_table): Do not discard empty sections.
1003
1004 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1005
1006 * features/Makefile, features/arm-with-iwmmxt.xml,
1007 features/gdbserver-regs.xsl, features/number-regs.xsl,
1008 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1009 * regformats/arm-with-iwmmxt.dat: Generate.
1010 * NEWS: Mention iWMMXt.
1011
1012 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1013
1014 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1015 (xml-tdesc.o): Update.
1016 * xml-support.c: Add a comment.
1017 (gdb_xml_enums_boolean): New variable.
1018 (gdb_xml_parse_attr_enum): Use strcasecmp.
1019 * xml-support.h (gdb_xml_enums_boolean): Declare.
1020 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1021 next_regnum, and current_union.
1022 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1023 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1024 (field_attributes, union_children, reg_attributes, union_attributes)
1025 (vector_attributes, feature_attributes, feature_children): New.
1026 (target_children): Make static. Add <feature>.
1027 (tdesc_elements): Make static.
1028 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1029 (struct tdesc_feature, tdesc_feature_p): New types.
1030 (struct target_desc): Add features member.
1031 (struct tdesc_arch_data, tdesc_data): New.
1032 (target_find_description): Clarify error message. Warn about
1033 ignored register descriptions.
1034 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1035 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1036 (tdesc_data_cleanup, tdesc_numbered_register)
1037 (tdesc_numbered_register_choices, tdesc_find_register)
1038 (tdesc_register_name, tdesc_register_type)
1039 (tdesc_remote_register_number, tdesc_register_reggroup_p)
1040 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1041 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1042 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1043 (tdesc_create_feature, tdesc_record_type): New.
1044 (free_target_description): Free features.
1045 (_initialize_target_descriptions): Initialize tdesc_data.
1046 * arch-utils.c (default_remote_register_number): New.
1047 * arch-utils.h (default_remote_register_number): New prototype.
1048 * target-descriptions.h (set_tdesc_pseudo_register_name)
1049 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1050 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1051 (tdesc_numbered_register, tdesc_numbered_register_choices)
1052 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1053 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1054 (tdesc_create_reg): Declare.
1055 * gdbarch.sh (remote_register_number): New entry.
1056 * gdbarch.c, gdbarch.h: Regenerate.
1057 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1058 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1059
1060 * arm-tdep.c (arm_register_aliases): New.
1061 (arm_register_name_strings): Rename to...
1062 (arm_register_names): ...this. Make const. Delete the old version.
1063 (current_option, arm_register_byte): Delete.
1064 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
1065 (value_of_arm_user_reg): New.
1066 (arm_gdbarch_init): Verify any described registers. Call
1067 tdesc_use_registers. Don't use arm_register_byte. Create aliases
1068 for standard register names.
1069 (_initialize_arm_tdep): Do not adjust arm_register_names.
1070 * user-regs.c (struct user_reg): Add baton member.
1071 (append_user_reg, user_reg_add_builtin, user_regs_init)
1072 (user_reg_add, value_of_user_reg): Use a baton for user
1073 register functions.
1074 * std-regs.c: Update.
1075 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1076 (user_reg_add): Add baton argument.
1077 * NEWS: Mention target description register support.
1078 * features/arm-core.xml, features/arm-fpa.xml: New.
1079 * eval.c (evaluate_subexp_standard): Allow ptype $register
1080 when the program is not running.
1081
1082 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
1083
1084 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
1085
1086 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
1087
1088 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1089 info->disassembler_options to "any".
1090
1091 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1092
1093 * varobj.c (install_new_value): Only call value_get_print_value
1094 if changeable.
1095
1096 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1097
1098 Reported by timeless@gmail.com:
1099 * gdb/target.c (target_flash_erase): Do not return void value.
1100 (target_flash_done): Likewise.
1101 * gdb/cli/cli-cmds.c (source_command): Likewise.
1102
1103 2007-02-08 Fred Fish <fnf@specifix.com>
1104
1105 Based on work by Apple Computer, Inc.
1106 * event-top.c (handle_sigint): Set quit_flag.
1107 (async_request_quit): Don't set quit_flag. Avoid calling quit()
1108 if quit_flag has already been reset.
1109
1110 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1111
1112 * ser-mingw.c (pipe_windows_close): Move variable initialization back
1113 up.
1114
1115 2007-02-08 Fred Fish <fnf@specifix.com>
1116
1117 * defs.h (request_quit): Remove declaration.
1118 * utils.c (request_quit): Remove definition.
1119
1120 2007-02-08 Joel Brobecker <brobecker@gnat.com>
1121 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 Daniel Jacobowitz <dan@codesourcery.com>
1123
1124 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1125 (skip_prologue): Allow bl->blrl used by PIC code.
1126
1127 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1128 Daniel Jacobowitz <dan@codesourcery.com>
1129
1130 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1131 initialize tmp_obstack.
1132 * p-valprint.c (pascal_object_print_value_fields)
1133 (pascal_object_print_value): Likewise.
1134
1135 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
1136
1137 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1138
1139 2007-02-08 Mark Kettenis <kettenis@gnu.org>
1140
1141 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1142 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1143
1144 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1145
1146 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1147 (xml_cache): New.
1148 (tdesc_parse_xml): Cache expanded descriptions.
1149
1150 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1151
1152 * Makefile.in (XMLFILES): New.
1153 (COMMON_OBS): Add xml-builtin.o.
1154 (xml-builtin.c, stamp-xml): New rules.
1155 (xml-tdesc.o): Update.
1156 * features/feature_to_c.sh: New file.
1157 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1158 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1159 (gdb_xml_start_element): Initialize scope after possibly reallocating
1160 scopes. Move cleanup later. Handle the XInclude description
1161 specially.
1162 (gdb_xml_end_element): Only parse the body if there is a current element.
1163 Call XML_DefaultCurrent if there is no element.
1164 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1165 (struct xinclude_parsing_data, xinclude_start_include)
1166 (xinclude_end_include, xml_xinclude_default)
1167 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1168 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1169 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1170 * xml-support.h (xml_fetch_another, xml_process_xincludes)
1171 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1172 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
1173 XInclude directives. Use the compiled in DTD.
1174 (fetch_xml_from_file): Add baton argument. Treat it as a containing
1175 directory name. Do not warn here.
1176 (file_read_description_xml): Update call. Warn here instead. Pass
1177 a dirname as baton.
1178 (fetch_available_features_from_target): New.
1179 (target_read_description_xml): Use it.
1180 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
1181 to handle XInclude.
1182 * features/xinclude.dtd: New file.
1183
1184 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1185
1186 * linux-thread-db.c (check_for_thread_db): Return early if we have
1187 no libthread_db support.
1188
1189 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
1190
1191 * mi/mi-parse.h: Include <sys/time.h>.
1192
1193 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
1194
1195 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1196 instead of print_variable_value to print values.
1197
1198 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1199
1200 * mi/mi-main.c: Numerous formatting changes.
1201 (mi_cmd_data_write_register_values): Replace clause inadvertantly
1202 removed in my previous change.
1203
1204 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1205
1206 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1207 Use 1000000L instead of 1000000.
1208
1209 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
1210
1211 Based on work by Apple Computer, Inc.
1212
1213 * configure.ac: Test for sys/resource.h and getrusage.
1214 * configure, config.in: Regenerate.
1215
1216 * mi/mi-main.c: Include <sys/resource.h> if present.
1217 (rusage): Declare if HAVE_GETRUSAGE.
1218 (current_command_ts, do_timings): New static variables.
1219 (timestamp, print_diff_now, print_diff, timeval_diff):
1220 New static timing functions.
1221 (mi_cmd_enable_timings): New function for new MI command.
1222 (captured_mi_execute_command, mi_execute_async_cli_command):
1223 Call timing functions.
1224
1225 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1226 -enable-timings.
1227
1228 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1229
1230 * mi/mi-parse.h: (mi_timestamp): New structure.
1231 (mi_parse): Add mi_timestamp* member.
1232
1233 2007-02-02 Denis Pilat <denis.pilat@st.com>
1234
1235 * thread.c (make_cleanup_restore_current_thread): New function.
1236 (info_threads_command): Use of make_cleanup_restore_current_thread
1237 to restore the current thread and the selected frame.
1238 (restore_selected_frame): New function.
1239 (struct current_thread_cleanup): Add frame_id field.
1240 (do_restore_current_thread_cleanup): Add restoring of the selected
1241 frame.
1242 (make_cleanup_restore_current_thread): Likewise.
1243 (thread_apply_all_command): backup the selected frame while
1244 entering the function and restore it at exit.
1245 (thread_apply_command): Likewise.
1246
1247 2007-02-02 Denis Pilat <denis.pilat@st.com>
1248
1249 * MAINTAINERS (Write After Approval): Add myself to the list.
1250
1251 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1252
1253 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1254 (m32r_store_register): Ditto.
1255
1256 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
1257
1258 * ser-mingw.c (pipe_windows_open)
1259 (pipe_windows_read, pipe_windows_write): Declare
1260 variables at the top of the function.
1261
1262 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1263
1264 * doublest.c (floatformat_from_length): Use the right element from
1265 gdbarch floatformats.
1266 (floatformat_from_type, extract_typed_floating)
1267 (store_typed_floating): Likewise.
1268 * doublest.h: Remove declarations for undefined floatformat arrays.
1269 * gdbarch.sh (float_format, double_format, long_double_format): Change
1270 to pairs.
1271 (pformat): Update for pairs.
1272 * gdbarch.c, gdbarch.h: Regenerated.
1273 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1274 (floatformats_ieee_double_littlebyte_bigword)
1275 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1276 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1277 (floatformats_vax_d): New variables.
1278 (builtin_type_ieee_single, builtin_type_ieee_double)
1279 (builtin_type_arm_ext, builtin_type_ia64_spill)
1280 (builtin_type_ia64_quad): Replace arrays with individual types.
1281 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1282 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1283 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1284 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1285 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1286 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1287 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1288 unused and endian-specific types.
1289 (recursive_dump_type): Update for floatformat pairs.
1290 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
1291 (build_gdbtypes): Use build_flt.
1292 (_initialize_gdbtypes): Update set of initialized types.
1293 * gdbtypes.h: Update declarations to match gdbtypes.c.
1294 (struct main_type): Store a pointer to two floatformats.
1295 * arch-utils.c (default_float_format, default_double_format): Delete.
1296 * arch-utils.h (default_float_format, default_double_format): Delete.
1297
1298 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1299 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1300 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1301 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1302 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1303
1304 2007-01-29 Joel Brobecker <brobecker@adacore.com>
1305
1306 * target.c (maintenance_print_target_stack): New function.
1307 (initialize_targets): Add new "maintenance print target-stack"
1308 command.
1309
1310 2007-01-28 Mark Kettenis <kettenis@gnu.org>
1311
1312 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1313
1314 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
1315
1316 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1317 (struct dwarf2_loclist_baton): Likewise.
1318
1319 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1320
1321 * cli/cli-script.c: Include breakpoint.h.
1322 (build_command_line): Require arguments only for if and while
1323 commands.
1324 (get_command_line, execute_user_command, execute_control_command):
1325 Fix wording of warning messages.
1326 (print_command_lines): Print breakpoint commands.
1327 (execute_control_command): Call commands_from_control_command to
1328 handle the `commands' command inside a body of a flow-control
1329 command.
1330 (read_next_line): Recognize the `commands' command and build a
1331 command line structure for it.
1332 (recurse_read_control_structure, read_command_lines): Handle
1333 `commands' similarly to `if' and `while'.
1334
1335 * breakpoint.c (get_number_trailer): Document the special meaning
1336 of NULL as the first argument PP.
1337 (commands_from_control_command): New function.
1338
1339 * breakpoint.h (commands_from_control_command): Add prototype.
1340
1341 * defs.h (commands_control): New enumerated value for enum
1342 command_control_type.
1343
1344 2007-01-26 Joel Brobecker <brobecker@adacore.com>
1345
1346 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1347 (ada_exception_sal): Update accordingly.
1348
1349 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1352 * NEWS: Describe CHAR array vs. string identifcation rules.
1353
1354 2007-01-25 Paul Brook <paul@codesourcery.com>
1355
1356 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1357
1358 2007-01-24 Jim Blandy <jimb@codesourcery.com>
1359
1360 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1361 expression is empty, bother to return the 'optimized out' value we
1362 construct. (Thanks to Carl Burch.)
1363
1364 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1365
1366 * varobj.c (c_value_of_root, c_value_of_child)
1367 (cplus_describe_child): Don't call release_value.
1368
1369 2007-01-24 Thiemo Seufer <ths@mips.com>
1370
1371 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1372 initialization.
1373
1374 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1375
1376 Refactor getting children name, value and type access
1377 for varobjs in C++.
1378 * varobj.c (get_type_deref): Remove.
1379 (adjust_value_for_child_access): New.
1380 (c_number_of_children): Use the above.
1381 (c_describe_child): Likewise.
1382 (enum accessibility): New.
1383 (match_accessibility): New function.
1384 (cplus_describe_child): New function.
1385 (cplus_name_of_child, cplus_value_of_child)
1386 (cplus_type_of_child): Reimplement in terms
1387 of cplus_describe_child.
1388 (cplus_number_of_children): Use
1389 adjust_value_for_child_access.
1390
1391 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
1392
1393 Fix computation of the 'editable' attribute and
1394 value changeability for for references.
1395 * varobj.c (get_value_type): New function.
1396 (c_variable_editable): Use get_value_type.
1397 (varobj_value_is_changeable): Likewise.
1398
1399 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1400
1401 * source.c (find_and_open_source): Try rewriting the source
1402 path inside filename if dirname is NULL.
1403
1404 2007-01-24 Joel Brobecker <brobecker@adacore.com>
1405
1406 * dwarf2read.c (add_partial_symbol): Create an extra partial
1407 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1408 (new_symbol): Likewise for symbols.
1409
1410 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
1411
1412 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1413
1414 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
1415
1416 * value.c (value_primitive_field): Copy the full 'location'
1417 contents, instead of assuming that copying ADDRESS will
1418 bring over everything in the union. Remove obsolete comment.
1419
1420 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
1421
1422 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1423 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1424 (m32c_m16c_pointer_to_address): Separate code from declarations.
1425
1426 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
1427
1428 * target.c (update_current_target): Correct typo.
1429
1430 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
1431
1432 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1433 declaration.
1434
1435 2007-01-11 Andrew Cagney <cagney@redhat.com>
1436 Daniel Jacobowitz <dan@codesourcery.com>
1437 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 * dwarf2-frame.c (execute_cfa_program): New support of
1440 `DW_CFA_GNU_negative_offset_extended'.
1441
1442 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1443
1444 * NEWS: Mention flash support for "load" and new remote packets.
1445
1446 2007-01-21 Markus Deuling <deuling@de.ibm.com>
1447
1448 * breakpoint.c (delete_command): Skip redundant loop iterations.
1449
1450 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1451
1452 * gdbarch.sh (register_type): Update comment.
1453 * gdbarch.h: Regenerated.
1454 * arch-utils.c (generic_register_size): Call register_type.
1455 * ia64-tdep.c (ia64_extract_return_value): Likewise.
1456 * m32c-tdep.c (check_for_saved): Likewise.
1457 * mips-tdep.c (mips_print_register, print_gp_register_row)
1458 (mips_print_registers_info): Likewise.
1459 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1460 Likewise.
1461 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1462 (sh64_do_register, sh64_print_register)
1463 (sh64_media_print_registers_info): Likewise.
1464 * tui/tui-regs.c (tui_register_format): Likewise.
1465
1466 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1467
1468 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1469
1470 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
1471 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
1472 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
1473 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1474 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
1475 (make_symbol_completion_list): Likewise.
1476
1477 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1478 Daniel Jacobowitz <dan@codesourcery.com>
1479
1480 * buildsym.c (end_symtab): Use preallocated symtab if available.
1481 Fill in SYMBOL_SYMTAB.
1482 * buildsym.h (struct subfile): Add symtab member.
1483 * dwarf2read.c (struct dwarf2_cu): Add line_header.
1484 (struct file_entry): Add symtab.
1485 (free_cu_line_header): New function.
1486 (read_file_scope): Use it. Save line_header in the cu. Process
1487 lines before DIEs.
1488 (add_file_name): Initialize new symtab member.
1489 (dwarf_decode_lines): Create symtabs for included files.
1490 (new_symbol): Set SYMBOL_SYMTAB.
1491 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
1492 (search_symbols): Likewise.
1493 * symtab.h (struct symbol): Add symtab member.
1494 (SYMBOL_SYMTAB): Define.
1495
1496 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1497
1498 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
1499
1500 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1501
1502 * arch-utils.c (show_endian): Correct reversed condition.
1503
1504 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1505
1506 * MAINTAINERS (Write After Approval): Add myself.
1507
1508 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
1509 Vladimir Prus <vladimir@codesourcery.com>
1510
1511 Fix 'selected frame' varobjs.
1512 * varobj.c (struct varobj): Remove the error field.
1513 (varobj_set_value): Don't check var->error.
1514 (install_new_value): Don't set var->error.
1515 (varobj_update): Always pass the new value
1516 of the root via install_new_value.
1517 (create_child): Don't set error field.
1518 (new_variable): Likewise.
1519 (c_value_of_root): Always reevaluate the value
1520 of selected frame varobjs in the selected frame.
1521 Don't call reinit_frame_cache.
1522
1523 2007-01-15 Joel Brobecker <brobecker@adacore.com>
1524
1525 * source.c (_initialize_source): Improve the help text of
1526 the substitute-path commands.
1527
1528 2007-01-14 Mark Kettenis <kettenis@gnu.org>
1529
1530 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
1531 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
1532 (frv_skip_prologue): Remove prototypes.
1533 (frv_adjust_breakpoint_address): Renamed from
1534 frv_gdbarch_adjust_breakpoint_address.
1535 (frv_gdbarch_init): Adjust.
1536
1537 2007-01-13 Mark Kettenis <kettenis@gnu.org>
1538
1539 * gdbarch.sh (deprecated_extract_return_value)
1540 (deprecated_store_return_value): Remove.
1541 (extract_return_value, store_return_value): Remove default values.
1542 * gdbarch.c, gdbarch.h: Regenerate.
1543 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
1544 (legacy_store_return_value): Remove.
1545 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
1546 Remove.
1547
1548 * mi/mi-main.c: Remove obsolete comment.
1549
1550 * regcache.c, regcache.h (deprecated_register_bytes)
1551 (deprecated_read_register_bytes)
1552 (deprecated_write_register_bytes): Remove.
1553
1554 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
1555 Don't forget to move destination pointer.
1556
1557 2007-01-01 Mark Kettenis <kettenis@gnu.org>
1558
1559 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
1560
1561 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
1562
1563 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
1564 past entry function with recent newlib.
1565
1566 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
1567
1568 * gdb.texinfo (GDB/MI Variable Objects): Improve the
1569 introduction. Specify -var-update more exactly.
1570
1571 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
1572
1573 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
1574
1575 2007-01-10 Jim Blandy <jimb@codesourcery.com>
1576
1577 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
1578 the Global Maintainers' invitation to be a global maintainer.
1579
1580 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
1581
1582 * infrun.c (singlestep_pc): New variable.
1583 (resume): Set singlestep_pc.
1584 (context_switch): Add a debugging message. Flush the frame cache.
1585 (handle_inferior_event): Add debugging messages. Handle thread
1586 hops when a software single step has completed. Let context_switch
1587 handle flushing the frame cache.
1588
1589 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1590
1591 * NEWS: Mention target descriptions, "set tdesc filename",
1592 "unset tdesc filename", "show tdesc filename", and
1593 qXfer:features:read.
1594 * arch-utils.c (choose_architecture_for_target): New function.
1595 (gdbarch_info_fill): Call it.
1596 * target-descriptions.c (struct property): Make members non-const.
1597 (struct target_desc): Add arch member.
1598 (target_description_filename): New variable.
1599 (target_find_description): Try via XML first.
1600 (tdesc_architecture): New.
1601 (free_target_description, make_cleanup_free_target_description): New.
1602 (set_tdesc_property): Call xstrdup.
1603 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1604 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1605 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1606 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1607 * target-descriptions.h (tdesc_architecture)
1608 (make_cleanup_free_target_description, set_tdesc_architecture): New
1609 prototypes.
1610 * Makefile.in (SFILES): Add xml-tdesc.c.
1611 (COMMON_OBS): Add xml-tdesc.o.
1612 (target-descriptions.o): Update.
1613 (xml-tdesc.o): New rule.
1614 * xml-tdesc.c, xml-tdesc.h: New files.
1615 * remote.c (PACKET_qXfer_features): New enum.
1616 (remote_protocol_features): Add qXfer:features:read.
1617 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1618 (_initialize_remote): Register qXfer:features:read.
1619 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1620 * features/gdb-target.dtd: New file.
1621
1622 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1623
1624 * copyright.sh: Clarify error.
1625
1626 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1627
1628 * symtab.c (matching_bfd_sections): Fix VMA matching for
1629 prelinked objects.
1630
1631 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1632
1633 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1634 nested symbols.
1635
1636 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1637
1638 Updated copyright notices for most files.
1639
1640 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1641
1642 * copyright.sh (prunes): Add step-line.inp and step-line.c.
1643
1644 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1645
1646 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1647 exec_prefix.
1648 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1649 '${prefix}'.
1650 * configure, config.in: Regenerate.
1651 * defs.h (debug_file_directory): Declare.
1652 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
1653 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
1654 relocate it if DEBUGDIR_RELOCATABLE.
1655 * symfile.c (debug_file_directory): Make non-static.
1656 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1657 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1658 (_initialize_symfile): Don't initialize debug_file_directory here.
1659
1660 2007-01-09 Jim Blandy <jimb@codesourcery.com>
1661
1662 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1663 statements.
1664
1665 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1666
1667 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1668 frame_unwind_register to recurse.
1669 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1670 (alpha_heuristic_frame_prev_register): Likewise.
1671 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1672 * m32c-tdep.c (m32c_prev_register): Likewise.
1673 * frame.c (frame_register_unwind_location): Remove FIXME.
1674
1675 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1676 Eli Zaretskii <eliz@gnu.org>
1677
1678 * copyright.sh: New file.
1679
1680 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1681
1682 * configure.ac: Check for XML_StopParser.
1683 * xml-support.c (gdb_xml_body_text): Check for an error.
1684 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1685 (gdb_xml_end_element_wrapper): Likewise.
1686 * config.in, configure: Regenerated.
1687
1688 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1689
1690 * varobj.c (install_new_value): Always update print_value.
1691 (value_get_print_value): Immediately return NULL for missing
1692 values.
1693
1694 2007-01-08 Jim Blandy <jimb@codesourcery.com>
1695
1696 * configure.ac: Tighten pattern for extracting value of
1697 DEPRECATED_TM_FILE from the target makefile fragment.
1698 * configure: Regenerated.
1699
1700 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1701
1702 * linux-nat.c (struct simple_pid_list): Add status.
1703 (add_to_pid_list): Record the PID's status.
1704 (linux_record_stopped_pid): Likewise. Make static.
1705 (pull_pid_from_list): Return the saved status.
1706 (linux_nat_handle_extended): Deleted.
1707 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
1708 Make static. Handle non-SIGSTOP for a new thread's first signal.
1709 (flush_callback): Handle unexpected pending signals.
1710 (linux_nat_wait): Update calls to changed functions.
1711 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
1712 Remove prototypes for newly static functions.
1713
1714 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1715
1716 * gdbarch.sh (value_from_register): New gdbarch function.
1717 * gdbarch.c, gdbarch.h: Regenerate.
1718 * findvar.c (default_value_from_register): New function.
1719 (value_from_register): Use gdbarch_value_from_register.
1720 * value.h (default_value_from_register): Declare.
1721 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
1722 spu_value_to_register): Remove.
1723 (spu_value_from_register): New function.
1724 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1725 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1726 Call set_gdbarch_value_from_register.
1727 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
1728 s390_value_to_register): Remove.
1729 (s390_value_from_register): New function.
1730 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1731 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1732 Call set_gdbarch_value_from_register.
1733
1734 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1735
1736 * NEWS: Add "set sysroot" and "show sysroot".
1737 * solib.c (solib_absolute_prefix): Delete. Replace
1738 all uses with gdb_sysroot.
1739 (_initialize_solib): Add "set sysroot" and "show sysroot".
1740 Make "solib-absolute-prefix" an alias to it.
1741
1742 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1743
1744 * frame.c (get_frame_register_bytes): New function.
1745 (put_frame_register_bytes): Likewise.
1746 * frame.h (get_frame_register_bytes): Declare.
1747 (put_frame_register_bytes): Likewise.
1748 * findvar.c (value_from_register): Always construct lval_register
1749 values. Use get_frame_register_bytes.
1750 * valops.c (value_assign): Use get_frame_register_bytes and
1751 put_frame_register_bytes.
1752
1753 2007-01-08 Jim Blandy <jimb@codesourcery.com>
1754
1755 * MAINTAINERS: Update Stan Shebs' email address.
1756
1757 2007-01-07 Joel Brobecker <brobecker@adacore.com>
1758
1759 * ada-lang.c (is_known_support_routine): Improve the implementation.
1760
1761 2007-01-06 Joel Brobecker <brobecker@adacore.com>
1762
1763 * ada-lang.c: Add include of source.h.
1764 (is_known_support_routine): Improve the check verifying that the file
1765 associated to this frame exists.
1766 * Makefile.in (ada-lang.o): Add dependency on source.h.
1767
1768 2007-01-07 Jim Blandy <jimb@codesourcery.com>
1769
1770 * ax-general.c (ax_const_l): Select proper opcode for the given
1771 value.
1772
1773 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
1774
1775 * varobj.c (c_value_of_root): Don't select frame if variable
1776 object is out of scope.
1777
1778 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
1779
1780 * varobj.c (struct varobj): New member print_value.
1781 (install_new_value): Compare last printed value with current one
1782 instead of contents.
1783 (new_variable): Initialize var->print_value to NULL.
1784 (free_variable): Free var->print_value.
1785 (value_get_print_value): New function derived from
1786 c_value_of_variable.
1787 (c_value_of_variable): Use value_get_print_value.
1788
1789 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1790
1791 * i386-tdep.c (i386_analyze_stack_align): Add comment.
1792
1793 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1794
1795 * NEWS: Add entries for new catch commands.
1796
1797 2007-01-05 Joel Brobecker <brobecker@adacore.com>
1798
1799 * dwarf2read.c (partial_die_info): Add field has_byte_size.
1800 (add_partial_symbol): Correct identification of external references.
1801 (process_structure_scope): Likewise.
1802 (read_partial_die): Handle DW_AT_byte_size attribute.
1803
1804 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
1805
1806 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1807
1808 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
1809
1810 * varobj.c (get_type_deref): Fix variable objects for references to
1811 pointers.
1812
1813 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1814
1815 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
1816 with no symbols.
1817
1818 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1819
1820 * memory-map.c (struct_memory_map_parsing_data): Remove most
1821 members. Make property_name an array.
1822 (free_memory_map_parsing_data, memory_map_start_element)
1823 (memory_map_end_element, memory_map_character_data): Delete.
1824 (memory_map_start_memory, memory_map_end_memory)
1825 (memory_map_start_property, memory_map_end_property): New functions.
1826 (property_attributes, memory_children, memory_type_enum)
1827 (memory_attributes, memory_map_children, memory_map_elements): New.
1828 (parse_memory_map): Rewrite.
1829 * xml-support.c (debug_xml): New.
1830 (xml_get_required_attribute, xml_get_integer_attribute)
1831 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1832 Delete.
1833 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1834 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1835 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1836 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1837 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1838 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1839 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1840 New.
1841 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1842 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1843 (enum gdb_xml_element_flag, struct gdb_xml_element)
1844 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1845 (struct gdb_xml_enum): New.
1846 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1847 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1848 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1849 (xml_get_required_attribute, xml_get_integer_attribute)
1850 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1851 * Makefile.in (xml_support_h, xml-support.o): Update.
1852
1853 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1854
1855 * Makefile.in (eval.o): Update dependencies.
1856 * eval.c: Include "ui-out.h" and "exceptions.h".
1857 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1858 Use value_zero if an error occurs when avoiding side effects.
1859 * varobj.c (c_value_of_root): Initialize new_val.
1860
1861 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1862
1863 * varobj.c (varobj_list_children): Stop if the number of children is
1864 unknown.
1865 (c_number_of_children):
1866
1867 2007-01-04 Mark Kettenis <kettenis@gnu.org>
1868
1869 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1870 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1871 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1872 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1873 sizeof, instead of hardcoded constants.
1874
1875 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1876
1877 * CONTRIBUTE: Use sourceware.org.
1878
1879 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1880
1881 * buildsym.c (start_subfile): Handle producer.
1882 (record_producer): New function.
1883 * buildsym.h (struct subfile): Include producer.
1884 (record_producer): New prototype.
1885 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1886 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1887 armcc_cfa_offsets_reversed.
1888 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1889 (dwarf2_frame_find_quirks): New function.
1890 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
1891 (decode_frame_entry_1): Record the CIE version. Record the
1892 augmentation. Skip armcc augmentations.
1893 * dwarf2read.c (read_file_scope): Save the producer.
1894 * symtab.h (struct symtab): Rename unused version member to
1895 producer.
1896
1897 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1898
1899 * configure.ac (build_warnings): Use -Wall and
1900 -Wdeclaration-after-statement.
1901 * configure: Regenerated.
1902
1903 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1904
1905 Simplify access to variours properties of child
1906 variable objects in C.
1907 * varobj.c (value_struct_element_index): New function.
1908 (c_describe_child): New function.
1909 (c_name_of_child, c_value_of_child)
1910 (c_type_of_child): Rewrite to use c_describe_child.
1911
1912 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1913
1914 gdb/
1915 * varobj.c: Include "vec.h".
1916 (varobj_p): New typedef, declare vector of those.
1917 (struct varobj): Use vector for the 'children' member.
1918 (child_exists): Remove.
1919 (save_child_in_parent): Remove.
1920 (remove_child_from_parent): Remove.
1921 (struct varobj_child): Remove.
1922 (struct vstack): Remove.
1923 (vpush, vpop): Remove.
1924 (varobj_list_children): Adjust to work work vector.
1925 (varobj_update): Likewise. Use vectors for
1926 working stack and result.
1927 (delete_variable_1): Likewise.
1928 * Makefile.in (varobj.o): Update dependencies.
1929
1930 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1931
1932 Port from Apple's version.
1933 gdb/
1934 * varobj.c (type_changeable): Rename to...
1935 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1936 (is_root_p): New function. Use it everywhere.
1937
1938 2007-01-04 Jim Blandy <jimb@codesourcery.com>
1939
1940 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1941 then plain 'fixup'.
1942
1943 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1944
1945 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1946
1947 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1948
1949 * hpread.c (hpread_type_lookup): Fix compilation failure.
1950
1951 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
1952
1953 * NEWS: New port to S+core.
1954 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1955 Add myself.
1956
1957 * Makefile.in: Add dependencies for S+core files.
1958 * configure.tgt (score*, score-*-*): Add S+core target.
1959 * config/score/embed.mt: New file.
1960 * score-tdep.c: New file.
1961 * score-tdep.h: New file.
1962
1963 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1964
1965 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1966 the appropriate type rather than a bogus void type.
1967
1968 2007-01-04 Joel Brobecker <brobecker@adacore.com>
1969
1970 * ada-lang.h (ada_find_printable_frame): Remove.
1971 (ada_exception_catchpoint_p, ada_decode_exception_location)
1972 (ada_decode_assert_location): Add declaration.
1973 * ada-lang.c: Add include of annotate.h and valprint.h.
1974 (exception_catchpoint_kind): New enum.
1975 (function_name_from_pc, is_known_support_routine)
1976 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1977 (ada_exception_name_addr_1, ada_exception_name_addr)
1978 (print_it_exception, print_one_exception, print_mention_exception)
1979 (print_it_catch_exception, print_one_catch_exception)
1980 (print_mention_catch_exception, catch_exception_breakpoint_ops)
1981 (print_it_catch_exception_unhandled)
1982 (print_one_catch_exception_unhandled)
1983 (print_mention_catch_exception_unhandled, print_it_catch_assert)
1984 (print_one_catch_assert, print_mention_catch_assert)
1985 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1986 (ada_get_next_arg, catch_ada_exception_command_split)
1987 (ada_exception_sym_name, ada_exception_sym_name)
1988 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1989 (ada_parse_catchpoint_condition, ada_exception_sal)
1990 (ada_decode_exception_location)
1991 (ada_decode_assert_location): New function.
1992 (catch_exception_unhandled_breakpoint_ops): New global variable.
1993 (catch_assert_breakpoint_ops): New global variable.
1994 * breakpoint.c: Add include of ada-lang.h.
1995 (print_one_breakpoint): Do not print the condition for Ada
1996 exception catchpoints.
1997 (create_ada_exception_breakpoint): New function.
1998 (catch_ada_exception_command, catch_assert_command): New function.
1999 (catch_command_1): Add support for the new "catch exception" and
2000 "catch assert" commands.
2001 (_initialize_breakpoint): Add help description for the new catch
2002 commands.
2003 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2004 valprint.h.
2005 (breakpoint.o): Add dependency on ada-lang.h.
2006
2007 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
2008
2009 * coffread.c (cs_to_section): If bfd_section is found, always
2010 return its section index.
2011 (coff_symtab_read): Determine the minimal_symbol_type using the
2012 bfd_section flags.
2013
2014 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2015 Daniel Jacobowitz <dan@codesourcery.com>
2016
2017 * Makefile.in (top.o): Update.
2018 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2019 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2020 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2021 New.
2022 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2023
2024 2007-01-03 Mark Kettenis <kettenis@gnu.org>
2025
2026 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2027 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2028
2029 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2030
2031 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2032 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2033 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2034 greater than or equal to zero.
2035 * m2-typeprint.c (m2_array): Likewise.
2036 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2037 * gdbtypes.c (copy_type_recursive): Correct == typo.
2038 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2039 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2040 greater than zero.
2041 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2042 (default_macro_scope): Remove unused variable.
2043 * prologue-value.h (pv_area_find_reg): Don't name an argument
2044 "register".
2045 * remote-fileio.c (remote_fio_func_map): Add missing braces.
2046 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2047 type.
2048 (cleanup_sigint_signal_handler): Remove casts.
2049 * valprint.c (val_print): Use a volatile local for the modified
2050 argument.
2051 * varobj.c (languages): Remove extra array dimension.
2052 (varobj_create): Correct access to languages array.
2053 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2054 missing braces.
2055 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2056 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2057 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2058 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2059 (mi_cmd_data_write_memory): Likewise.
2060 * signals/signals.c (target_signal_to_string): Cast to int before
2061 comparing.
2062 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2063 Update all callers.
2064
2065 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
2066
2067 * NEWS: Mention pointer to member improvements.
2068 * Makefile.in (gnu-v3-abi.o): Delete special rule.
2069 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2070 * ada-valprint.c (ada_print_scalar): Update for new type codes.
2071 * c-typeprint.c (c_print_type): Update for new type codes.
2072 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2073 (c_type_print_base): Likewise.
2074 (c_type_print_args): Rewrite.
2075 * c-valprint.c (c_val_print): Update for new type codes. Remove
2076 support for references to members. Treat methods like functions.
2077 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2078 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2079 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2080 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2081 (struct cp_abi_ops): Add corresponding members.
2082 * cp-valprint.c (cp_print_class_method): Delete.
2083 (cp_find_class_member): New function.
2084 (cp_print_class_member): Use it. Simplify support for bogus
2085 member pointers.
2086 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2087 lookup_methodptr_type.
2088 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2089 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2090 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
2091 pointer support.
2092 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
2093 references returned by user defined operators.
2094 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2095 (f_type_print_varspec_suffix): Remove support for member pointers.
2096 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2097 and adjusted.
2098 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2099 (lookup_methodptr_type): New.
2100 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2101 (recursive_dump_type): Update for new types.
2102 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2103 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2104 (lookup_memberptr_type, lookup_methodptr_type)
2105 (smash_to_memberptr_type): New prototypes.
2106 (smash_to_method_type): Formatting fix.
2107 (lookup_member_type, smash_to_member_type): Delete prototypes.
2108 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2109 Do not rely on debug information for the vptr or the method's
2110 enclosing type. Handle function descriptors for IA64.
2111 (gnuv3_virtual_fn_field): Rewrite using the new functions.
2112 (gnuv3_find_method_in, gnuv3_print_method_ptr)
2113 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2114 (gnuv3_method_ptr_to_value): New.
2115 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2116 * hpread.c (hpread_type_lookup): Update for new types.
2117 * infcall.c (value_arg_coerce): Likewise.
2118 * m2-typeprint.c (m2_print_type): Remove explicit support
2119 for member pointers.
2120 * m2-valprint.c (m2_val_print): Likewise.
2121 * p-typeprint.c (pascal_type_print_varspec_prefix)
2122 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2123 * p-valprint.c (pascal_val_print): Likewise.
2124 (pascal_object_print_class_method, pascal_object_print_class_member):
2125 Delete.
2126 * p-lang.h (pascal_object_print_class_method)
2127 (pascal_object_print_class_member): Delete prototypes.
2128 * stabsread.c (read_type): Update for new types.
2129 * typeprint.c (print_type_scalar): Likewise.
2130 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2131 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2132 argument. Construct a pointer to member if the address of a
2133 function or data member is requested.
2134 (value_cast_pointers): Don't modify the input value.
2135 (value_cast): Adjust pointer to member handling for new types.
2136 Allow null pointer to member constants. Don't modify the input
2137 value.
2138 (value_ind): Remove pointer to member check. Handle function
2139 descriptors for function pointers.
2140 (value_struct_elt, value_find_oload_method_list, check_field):
2141 Remove pointer to member checks.
2142 * value.c (unpack_long): Allow pointers to data members.
2143 (value_from_longest): Allow member pointers.
2144 * value.h (value_aggregate_elt): Add want_address.
2145 * varobj.c (c_variable_editable): Remove check for members.
2146 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2147 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2148 in virtual tables.
2149 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2150 * c-lang.h (cp_print_class_method): Delete prototype.
2151 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2152 * mips-tdep.c (mips_gdbarch_init): Likewise.
2153 * gdbarch.c, gdbarch.h: Regenerated.
2154
2155 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2156
2157 * rs6000-tdep.c (rs6000_use_struct_convention)
2158 (rs6000_extract_return_value, rs6000_store_return_value)
2159 (rs6000_extract_struct_value_address): Remove.
2160 (rs6000_return_value): New function.
2161 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2162 store_return_value, deprecated_extract_struct_value_address and
2163 deprecated_use_struct_convention. Use rs6000_return_value
2164 instead.
2165
2166 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
2167
2168 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2169 -display-disable, -display-enable, -display-insert and
2170 -display-list.
2171
2172 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2173
2174 * breakpoint.c (remove_breakpoint): Remove dead code.
2175
2176 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
2177
2178 * varobj.c: Include block.h.
2179 (c_value_of_root): Check scope within nested statements.
2180
2181 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2182
2183 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2184 regcache_cooked_write_signed instead of
2185 deprecated_write_register_bytes.
2186
2187 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2188
2189 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2190
2191 2007-01-01 Joel Brobecker <brobecker@adacore.com>
2192
2193 Followed the Start of New Year Procedure:
2194 * ChangeLog-2006: New file, containing all the entries for 2006.
2195 * ChangeLog: Removed all 2006 entries, and changed the reference
2196 to the previous ChangeLog to point to ChangeLog 2006.
2197 * top.c (print_gdb_version): Update copyright year.
2198
2199 2007-01-01 Mark Kettenis <kettenis@gnu.org>
2200
2201 * Makefile.in (remote-sds.o): Remove.
2202 * remote-sds.c: Delete.
2203
2204 For older changes see ChangeLog-2006.
2205 \f
2206 Local Variables:
2207 mode: change-log
2208 left-margin: 8
2209 fill-column: 74
2210 version-control: never
2211 End:
This page took 0.071877 seconds and 5 git commands to generate.