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