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