*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9dea8ca2
UW
12007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
4 object types, not 0.
5
7b3dc0b7
UW
62007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
7
8 * spu-tdep.c (spu_frame_align): New function.
9 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
10
118dfbaf
UW
112007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
12
13 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
14 (spu_software_single_step): Likewise.
15 (spu_read_pc, spu_write_pc): New functions.
16 (spu_gdbarch_init): Install them.
17
29e4017d
UW
182007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
19
20 * cli/cli-dump.c (struct callback_data): load_offset needs to
21 have signed long type.
22
6de5b849
JB
232007-03-07 Joel Brobecker <brobecker@adacore.com>
24
25 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
26 Revert the previous change that had some unexpected side-effects
27 on mips32.
28 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
29 function to get the address of the calling instruction.
30
7490ba4f
DP
312007-03-07 Denis Pilat <denis.pilat@st.com>
32
33 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
34 get_selected_frame by deprecated_safe_get_selected_frame.
35
861fb77c
MK
362007-03-02 Mark Kettenis <kettenis@gnu.org>
37
38 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
39 "gdb_string.h". Don't include "nbsd-tdep.h".
40 (SIZEOF_STRUCT_REG): Remove.
41 (SHNBSD_SIZEOF_GREGS): New.
42 (shnbsd_supply_gregset, shnbsd_collect_gregset)
43 (shnbsd_regset_from_core_section): New functions.
44 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
45 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
46 shnbsd_supply_gregset, shnbsd_collect_gregset.
47 (shnbsd_gregset): New variable.
48 (shnbsd_init_abi): Set regset_from_core_section.
49 (GDB_OSABI_NETBSD_CORE): New define.
50 (shnbsd_core_osabi_sniffer): New function.
51 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
52 * Makefile.in (shnbsd-tdep.o): Update dependencies.
53 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
54 nbsd-tdep.o.
55 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
56
787cbe14
JB
572007-02-28 Joel Brobecker <brobecker@adacore.com>
58
59 * gdbtypes.c (replace_type): Fix typo that caused us to not update
60 length of the types referenced by the new type CV ring.
61
35f196d9
DJ
622007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
63
64 * frame.c (frame_pop, frame_observer_target_changed): Call
65 reinit_frame_cache.
66 (flush_cached_frames): Rename to reinit_frame_cache and delete
67 old implementation.
68 * frame.h (flush_cached_frames): Delete prototype and update comment.
69
70 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
71 reinit_frame_cache instead of flush_cached_frames. Do not call
72 select_frame after reinit_frame_cache.
73 * corelow.c (core_open): Likewise.
74 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
75 * infrun.c (prepare_to_proceed, context_switch)
76 (handle_inferior_event): Likewise.
77 * linux-fork.c (fork_load_infrun_state): Likewise.
78 * ocd.c (ocd_start_remote): Likewise.
79 * remote-e7000.c (e7000_start_remote): Likewise.
80 * remote-mips.c (device): Likewise.
81 * thread.c (switch_to_thread): Likewise.
82 * tracepoint.c (finish_tfind_command): Likewise.
83 * gdbarch.c: Regenerated.
84
c26f2453
JB
852007-02-28 Jerome Guitton <guitton@adacore.com>
86 Joel Brobecker <brobecker@adacore.com>
87
88 * gdbtypes.c (check_typedef): Do not replace stub type if
89 the resolved type is not defined in the same objfile.
90
7d900f1a
DJ
912007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
92
93 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
94
76038652 952007-02-28 Joel Brobecker <brobecker@adacore.com>
52eea4ce
JB
96
97 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
98 symbol for Ada units when the symbol is defined using 't' rather
99 than 'Tt' as symbol descriptor.
100
1344afe0
UW
1012007-02-28 Vladimir Prus <vladimir@codesourcery.com>
102
103 * config/mips/tm-nbsd.h: Delete file.
104 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
105 * config/sh/tm-nbsd.h: Delete file.
106 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
107
f8d225db
JB
1082007-02-28 Joel Brobecker <brobecker@adacore.com>
109
110 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
111 unused WRONG_PARAM value since it was recently deleted.
112
1bbfb19a
NR
1132007-02-28 Vladimir Prus <vladimir@codesourcery.com>
114
115 * varobj.c (varobj_update): Free temporary vectors.
116
6f7f3f0d
UW
1172007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
118
119 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
120 * config/powerpc/tm-linux.h: Delete file.
121 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
122 (PROCESS_LINENUMBER_HOOK): Do not undefine.
123 (TEXT_SEGMENT_BASE): Do not redefine.
124 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
125 from config/rs6000/tm-rs6000.h.
126 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
127 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
128 (TEXT_SEGMENT_BASE): Remove.
129 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
130 (rs6000_in_solib_return_trampoline): Remove.
131 (SKIP_TRAMPOLINE_CODE): Remove.
132 (rs6000_skip_trampoline_code): Remove.
133 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
134 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
135 (FP0_REGNUM): Remove.
136 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
137 (rs6000_set_host_arch_hook): Remove.
138 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
139 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
140 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
141 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
142 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
143 * rs6000-nat.c: Include "rs6000-tdep.h".
144 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
145 (set_host_arch): Rename to ...
146 (rs6000_create_inferior): ... this. Make public.
147 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
148 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
149 (rs6000_create_inferior): Remove.
150 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
151 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
152 set_gdbarch_in_solib_return_trampoline, and
153 set_gdbarch_skip_trampoline_code.
154 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
155 from config/rs6000/tm-rs6000.h.
156
63050a44 1572007-02-27 Joel Brobecker <brobecker@adacore.com>
05279ca0
JB
158
159 * buildsym.c (record_producer): Do nothing if no producer is provided.
160
63050a44 1612007-02-27 Nick Roberts <nickrob@snap.net.nz>
e0b75a46
NR
162
163 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
164 to check changelist is non-NULL. Call error if the frontend tries
165 to update a non-root variable.
166
167 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
168
93d42b30
DJ
1692007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
170
171 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
172 (dwarf2_frame_sniffer): Update.
173 (dwarf2_signal_frame_this_id): New function.
174 (dwarf2_signal_frame_unwind): Use it.
175 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
176 * frame.c (frame_func_unwind): Add this_type argument.
177 (get_frame_func): Update.
178 (frame_unwind_address_in_block): Add this_type argument and check it.
179 Fix a typo.
180 (get_frame_address_in_block): Update.
181 * frame.h (enum frame_type): Move higher in the file.
182 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
183 argument.
184
185 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
186 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
187 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
188 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
189 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
190 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
191 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
192 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
193 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
194 frame_func_unwind and frame_unwind_address_in_block to specify
195 the frame type. Use frame_unwind_address_in_block instead of
196 frame_pc_unwind in sniffers.
197
206415a3
DJ
1982007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
199
200 * frame.c (deprecated_selected_frame): Rename to...
201 (selected_frame): ...this. Make static.
202 (get_selected_frame, select_frame): Update.
203 * frame.h (deprected_select_frame): Delete.
204 (deprecated_safe_get_selected_frame): Update comments.
205
206 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
207 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
208 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
209 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
210 tui/tui.c: Replace references to deprecated_selected_frame.
211
7313566f
FF
2122007-02-27 Fred Fish <fnf@specifix.com>
213
214 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
215 directly decrement the stack pointer, accumulate their operand into
216 the stack offset, and mark the function as not being frameless.
217
b6d373df
DJ
2182007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
219
220 * arch-utils.c (selected_byte_order): New.
221 * arch-utils.h (selected_byte_order): New prototype.
222 * remote-sim.c (gdbsim_open): Use selected_byte_order.
223
2711e456
DJ
2242007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
225
226 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
227 (default_symfile_offsets): Check VMA here. Update section VMAs.
228
baef701f
DJ
2292007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
230
231 * remote.c (init_remote_state): Add special handling for placeholder
232 registers.
233
05a4558a
DJ
2342007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
235
236 * Makefile.in (XMLFILES): Include $(TDEP_XML).
237 (filenames_h): New variable.
238 (clean): Clean up xml-builtin.c and stamp-xml.
239 (arm-linux-nat.o): Update.
240 * config/arm/linux.mh (TDEP_XML): Define.
241 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
242 (arm_linux_has_wmmx_registers): New.
243 (GET_THREAD_ID): Fix typo.
244 (IWMMXT_REGS_SIZE): Define.
245 (fetch_wmmx_regs, store_wmmx_regs): New.
246 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
247 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
248 (super_xfer_partial, arm_linux_xfer_partial): New.
249 (_initialize_arm_linux_nat): Use them.
250 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
251 (xml_builtin_xfer_partial): New function.
252 * xml-support.h (xml_builtin_xfer_partial): New prototype.
253 * NEWS: Update mention of iWMMXt support.
254
ff6f572f
DJ
2552007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
256
257 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
258 if there are no FPA registers.
259 (arm_dwarf_reg_to_regnum): New function.
260 (arm_register_type, arm_register_name): Return minimal values for
261 unsupported registers.
262 (arm_register_sim_regno): Handle iWMMXt registers.
263 (arm_gdbarch_init): Record missing FPA registers if indicated by
264 a target description. Recognize iWMMXt registers. Only register
265 "info float" for FPA. Use ARM_NUM_REGS. Register
266 arm_dwarf_reg_to_regnum.
267 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
268 constants.
269 (struct gdbarch_tdep): Add have_fpa_registers.
270 * features/xscale-iwmmxt.xml: Update capitalization.
271 * regformats/arm-with-iwmmxt.dat: Regenerated.
272
c077150c
KB
2732007-02-24 Kevin Buettner <kevinb@redhat.com>
274
275 * NEWS (New targets): Add entry for the Toshiba Media Processor.
276
01c996c1
KB
2772007-02-23 Kevin Buettner <kevinb@redhat.com>
278
279 * MAINTAINERS (mep): New target.
280
aeb43123
KB
2812007-02-23 Kevin Buettner <kevinb@redhat.com>
282
283 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
284 Richard Sandiford:
285 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
286 (mep-tdep.o): New rule.
287 * configure.tgt (mep-*-*): New target.
288 * mep-tdep.c: New file.
289 * config/mep/mep.mt: New file.
290
115d86cf
UW
2912007-02-22 Markus Deuling <deuling@de.ibm.com>
292
293 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
294 BREAKPOINT_HIT and STOP_UNKNOWN.
295
fef862e5
UW
2962007-02-22 Markus Deuling <deuling@de.ibm.com>
297
298 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
299
9a7d5afb
JB
3002007-02-20 Joel Brobecker <brobecker@adacore.com>
301
302 * gdb_expat.h (XMLCALL): Define if not already defined.
303
81de920d
AS
3042007-02-20 Andreas Schwab <schwab@suse.de>
305
306 * Makefile.in (symfile.o): Update dependencies.
307
cb5c8c39
DJ
3082007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
309
310 * MAINTAINERS: Disable -Werror for cris simulator. Build
311 sparc64-solaris2.10 instead of the broken sparc-elf.
312 * solib-frv.c: Include "solib.h".
313 * Makefile.in (solib-frv.o): Update.
314 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
315 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
316 (xtensa_frame_this_id, xtensa_frame_prev_register)
317 (xtensa_push_dummy_call): Use %p.
318
e6bb342a
DJ
3192007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
320
321 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
322 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
323 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
324 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
325 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
326 (sparc-linux-tdep.o): Update.
327
ff7a4c00
MG
3282007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
329
330 * xtensa-tdep.h (xtensa_reg_mask_t): New.
331 (xtensa_mask_t): Change mask field to be a separate array.
332 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
333 (xtensa_pseudo_register_write, xtensa_unwind_pc)
334 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
335 (xtensa_breakpoint_from_pc): Remove implicit type casting.
336 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
337 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
338 (mask14, mask15): Rename to
339 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
340 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
341 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
342 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
343 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
344 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
345 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
346 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
347 (xtensa_submask14, xtensa_submask15): New.
348 (rmap): Follow strict aliasing rules doing static initialization.
349
d9cc5895
DJ
3502007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
351
352 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
353 handling from here...
354 (tdesc_register_type): ...to here.
355 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
356 * features/arm-core.xml: Use code_ptr and data_ptr.
357
8756216b
DP
3582007-02-13 Denis Pilat <denis.pilat@st.com>
359
360 * varobj.h (enum varobj_update_error): New enum.
361 * varobj.c (struct varobj_root): Add is_valid member.
362 (varobj_get_type): Check for invalid varobj.
363 (varobj_get_attributes): Likewise.
364 (variable_editable):Likewise.
365 (varobj_update): Likewise. Use varobj_update_error.
366 (new_root_variable): Set root varobj as valid by default.
367 (varobj_invalidate): New function.
368 * symfile.c (clear_symtab_users): Use varobj_invalidate.
369 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
370 Use varobj_update_error.
371
fe8e67fd
PM
3722007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
373
374 Fix PR pascal/2223.
375 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
376 Pascal language marker.
377 * dwarf2read.c (set_cu_language): Likewise.
378
c44537cf
CV
3792007-02-12 Corinna Vinschen <vinschen@redhat.com>
380
381 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
382 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
383 instead of target_terminal_init since inferior_ptid isn't set yet.
384
20dad8ea
PA
3852007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
386
387 * MAINTAINERS (Write After Approval): Add myself.
388
4ac94eda
FF
3892007-02-09 Fred Fish <fnf@specifix.com>
390
391 Based on work by Apple Computer, Inc.
392 * event-top.c (async_request_quit): Call quit() whenever either
393 quit_flag is set or immediate_quit is set.
394
b260b6c1
GDR
3952007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
396
397 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
398 type to a pointer to const struct block.
399 (ada_lookup_symbol_list): Don't cast away constness when calling
400 remove_out_of_scope_renamings.
401
4022007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
403
404 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
405 address of 'filename'; it is always non null.
406
0f5d55d8
JB
4072007-02-09 Joel Brobecker <brobecker@adacore.com>
408
409 * exec.c (add_to_section_table): Do not discard empty sections.
410
fb1e4ffc
DJ
4112007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
412
413 * features/Makefile, features/arm-with-iwmmxt.xml,
414 features/gdbserver-regs.xsl, features/number-regs.xsl,
415 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
416 * regformats/arm-with-iwmmxt.dat: Generate.
417 * NEWS: Mention iWMMXt.
418
123dc839
DJ
4192007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
420
421 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
422 (xml-tdesc.o): Update.
423 * xml-support.c: Add a comment.
424 (gdb_xml_enums_boolean): New variable.
425 (gdb_xml_parse_attr_enum): Use strcasecmp.
426 * xml-support.h (gdb_xml_enums_boolean): Declare.
427 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
428 next_regnum, and current_union.
429 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
430 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
431 (field_attributes, union_children, reg_attributes, union_attributes)
432 (vector_attributes, feature_attributes, feature_children): New.
433 (target_children): Make static. Add <feature>.
434 (tdesc_elements): Make static.
435 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
436 (struct tdesc_feature, tdesc_feature_p): New types.
437 (struct target_desc): Add features member.
438 (struct tdesc_arch_data, tdesc_data): New.
439 (target_find_description): Clarify error message. Warn about
440 ignored register descriptions.
441 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
442 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
443 (tdesc_data_cleanup, tdesc_numbered_register)
444 (tdesc_numbered_register_choices, tdesc_find_register)
445 (tdesc_register_name, tdesc_register_type)
446 (tdesc_remote_register_number, tdesc_register_reggroup_p)
447 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
448 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
449 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
450 (tdesc_create_feature, tdesc_record_type): New.
451 (free_target_description): Free features.
452 (_initialize_target_descriptions): Initialize tdesc_data.
453 * arch-utils.c (default_remote_register_number): New.
454 * arch-utils.h (default_remote_register_number): New prototype.
455 * target-descriptions.h (set_tdesc_pseudo_register_name)
456 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
457 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
458 (tdesc_numbered_register, tdesc_numbered_register_choices)
459 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
460 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
461 (tdesc_create_reg): Declare.
462 * gdbarch.sh (remote_register_number): New entry.
463 * gdbarch.c, gdbarch.h: Regenerate.
464 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
465 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
466
467 * arm-tdep.c (arm_register_aliases): New.
468 (arm_register_name_strings): Rename to...
469 (arm_register_names): ...this. Make const. Delete the old version.
470 (current_option, arm_register_byte): Delete.
471 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
472 (value_of_arm_user_reg): New.
473 (arm_gdbarch_init): Verify any described registers. Call
474 tdesc_use_registers. Don't use arm_register_byte. Create aliases
475 for standard register names.
476 (_initialize_arm_tdep): Do not adjust arm_register_names.
477 * user-regs.c (struct user_reg): Add baton member.
478 (append_user_reg, user_reg_add_builtin, user_regs_init)
479 (user_reg_add, value_of_user_reg): Use a baton for user
480 register functions.
481 * std-regs.c: Update.
482 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
483 (user_reg_add): Add baton argument.
484 * NEWS: Mention target description register support.
485 * features/arm-core.xml, features/arm-fpa.xml: New.
486 * eval.c (evaluate_subexp_standard): Allow ptype $register
487 when the program is not running.
488
87604222
NR
4892007-02-09 Nick Roberts <nickrob@snap.net.nz>
490
491 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
492
ee4f0f76
DJ
4932007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
494
495 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
496 info->disassembler_options to "any".
497
7af9851d
DJ
4982007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
499
500 * varobj.c (install_new_value): Only call value_get_print_value
501 if changeable.
502
8944021f
DJ
5032007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
504
505 Reported by timeless@gmail.com:
506 * gdb/target.c (target_flash_erase): Do not return void value.
507 (target_flash_done): Likewise.
508 * gdb/cli/cli-cmds.c (source_command): Likewise.
509
5102007-02-08 Fred Fish <fnf@specifix.com>
5f960e00 511
4ac94eda 512 Based on work by Apple Computer, Inc.
5f960e00
FF
513 * event-top.c (handle_sigint): Set quit_flag.
514 (async_request_quit): Don't set quit_flag. Avoid calling quit()
515 if quit_flag has already been reset.
516
4998c1df
DJ
5172007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
518
519 * ser-mingw.c (pipe_windows_close): Move variable initialization back
520 up.
521
79da184e
FF
5222007-02-08 Fred Fish <fnf@specifix.com>
523
524 * defs.h (request_quit): Remove declaration.
525 * utils.c (request_quit): Remove definition.
526
3c77c82a
DJ
5272007-02-08 Joel Brobecker <brobecker@gnat.com>
528 Jan Kratochvil <jan.kratochvil@redhat.com>
529 Daniel Jacobowitz <dan@codesourcery.com>
530
531 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
532 (skip_prologue): Allow bl->blrl used by PIC code.
533
c1b6e682
DJ
5342007-02-08 Mark Kettenis <kettenis@gnu.org>
535 Daniel Jacobowitz <dan@codesourcery.com>
536
537 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
538 initialize tmp_obstack.
539 * p-valprint.c (pascal_object_print_value_fields)
540 (pascal_object_print_value): Likewise.
541
fe5dedf4
DJ
5422007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
543
544 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
545
3e461478
MK
5462007-02-08 Mark Kettenis <kettenis@gnu.org>
547
548 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
549 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
550
fc6e0168
DJ
5512007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
552
553 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
554 (xml_cache): New.
555 (tdesc_parse_xml): Cache expanded descriptions.
556
108546a0
DJ
5572007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
558
559 * Makefile.in (XMLFILES): New.
560 (COMMON_OBS): Add xml-builtin.o.
561 (xml-builtin.c, stamp-xml): New rules.
562 (xml-tdesc.o): Update.
563 * features/feature_to_c.sh: New file.
564 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
565 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
566 (gdb_xml_start_element): Initialize scope after possibly reallocating
567 scopes. Move cleanup later. Handle the XInclude description
568 specially.
569 (gdb_xml_end_element): Only parse the body if there is a current element.
570 Call XML_DefaultCurrent if there is no element.
571 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
572 (struct xinclude_parsing_data, xinclude_start_include)
573 (xinclude_end_include, xml_xinclude_default)
574 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
575 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
576 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
577 * xml-support.h (xml_fetch_another, xml_process_xincludes)
578 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
579 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
580 XInclude directives. Use the compiled in DTD.
581 (fetch_xml_from_file): Add baton argument. Treat it as a containing
582 directory name. Do not warn here.
583 (file_read_description_xml): Update call. Warn here instead. Pass
584 a dirname as baton.
585 (fetch_available_features_from_target): New.
586 (target_read_description_xml): Use it.
587 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
588 to handle XInclude.
589 * features/xinclude.dtd: New file.
590
b5057acd
DJ
5912007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
592
593 * linux-thread-db.c (check_for_thread_db): Return early if we have
594 no libthread_db support.
595
6a089cf2
DJ
5962007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
597
598 * mi/mi-parse.h: Include <sys/time.h>.
599
9fbcbb40
NR
6002007-02-05 Nick Roberts <nickrob@snap.net.nz>
601
602 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
603 instead of print_variable_value to print values.
604
b3d2152a
NR
6052007-02-03 Nick Roberts <nickrob@snap.net.nz>
606
607 * mi/mi-main.c: Numerous formatting changes.
608 (mi_cmd_data_write_register_values): Replace clause inadvertantly
609 removed in my previous change.
610
79f0a97a
NR
6112007-02-03 Eli Zaretskii <eliz@gnu.org>
612
613 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
614 Use 1000000L instead of 1000000.
615
95a98c01 6162007-02-03 Nick Roberts <nickrob@snap.net.nz>
cd375699
NR
617
618 Based on work by Apple Computer, Inc.
619
620 * configure.ac: Test for sys/resource.h and getrusage.
621 * configure, config.in: Regenerate.
622
623 * mi/mi-main.c: Include <sys/resource.h> if present.
624 (rusage): Declare if HAVE_GETRUSAGE.
625 (current_command_ts, do_timings): New static variables.
626 (timestamp, print_diff_now, print_diff, timeval_diff):
627 New static timing functions.
628 (mi_cmd_enable_timings): New function for new MI command.
629 (captured_mi_execute_command, mi_execute_async_cli_command):
630 Call timing functions.
631
632 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
633 -enable-timings.
634
635 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
636
637 * mi/mi-parse.h: (mi_timestamp): New structure.
638 (mi_parse): Add mi_timestamp* member.
639
99b3d574
DP
6402007-02-02 Denis Pilat <denis.pilat@st.com>
641
642 * thread.c (make_cleanup_restore_current_thread): New function.
643 (info_threads_command): Use of make_cleanup_restore_current_thread
644 to restore the current thread and the selected frame.
645 (restore_selected_frame): New function.
646 (struct current_thread_cleanup): Add frame_id field.
647 (do_restore_current_thread_cleanup): Add restoring of the selected
648 frame.
649 (make_cleanup_restore_current_thread): Likewise.
650 (thread_apply_all_command): backup the selected frame while
651 entering the function and restore it at exit.
652 (thread_apply_command): Likewise.
653
d3c598de
DP
6542007-02-02 Denis Pilat <denis.pilat@st.com>
655
656 * MAINTAINERS (Write After Approval): Add myself to the list.
657
b69733ab 6582007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3e41d55f
KI
659
660 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
661 (m32r_store_register): Ditto.
662
b69733ab 6632007-01-30 Vladimir Prus <vladimir@codesourcery.com>
ef7723eb
VP
664
665 * ser-mingw.c (pipe_windows_open)
666 (pipe_windows_read, pipe_windows_write): Declare
667 variables at the top of the function.
668
8da61cc4
DJ
6692007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
670
671 * doublest.c (floatformat_from_length): Use the right element from
672 gdbarch floatformats.
673 (floatformat_from_type, extract_typed_floating)
674 (store_typed_floating): Likewise.
675 * doublest.h: Remove declarations for undefined floatformat arrays.
676 * gdbarch.sh (float_format, double_format, long_double_format): Change
677 to pairs.
678 (pformat): Update for pairs.
679 * gdbarch.c, gdbarch.h: Regenerated.
680 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
681 (floatformats_ieee_double_littlebyte_bigword)
682 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
683 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
684 (floatformats_vax_d): New variables.
685 (builtin_type_ieee_single, builtin_type_ieee_double)
686 (builtin_type_arm_ext, builtin_type_ia64_spill)
687 (builtin_type_ia64_quad): Replace arrays with individual types.
688 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
689 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
690 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
691 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
692 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
693 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
694 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
695 unused and endian-specific types.
696 (recursive_dump_type): Update for floatformat pairs.
697 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
698 (build_gdbtypes): Use build_flt.
699 (_initialize_gdbtypes): Update set of initialized types.
700 * gdbtypes.h: Update declarations to match gdbtypes.c.
701 (struct main_type): Store a pointer to two floatformats.
702 * arch-utils.c (default_float_format, default_double_format): Delete.
703 * arch-utils.h (default_float_format, default_double_format): Delete.
704
705 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
706 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
707 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
708 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
709 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
710
87680a14
JB
7112007-01-29 Joel Brobecker <brobecker@adacore.com>
712
713 * target.c (maintenance_print_target_stack): New function.
714 (initialize_targets): Add new "maintenance print target-stack"
715 command.
716
1c3d648d
MK
7172007-01-28 Mark Kettenis <kettenis@gnu.org>
718
719 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
720
607269ae
DJ
7212007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
722
723 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
724 (struct dwarf2_loclist_baton): Likewise.
725
40c03ae8
EZ
7262007-01-27 Eli Zaretskii <eliz@gnu.org>
727
728 * cli/cli-script.c: Include breakpoint.h.
729 (build_command_line): Require arguments only for if and while
730 commands.
731 (get_command_line, execute_user_command, execute_control_command):
732 Fix wording of warning messages.
733 (print_command_lines): Print breakpoint commands.
734 (execute_control_command): Call commands_from_control_command to
735 handle the `commands' command inside a body of a flow-control
736 command.
737 (read_next_line): Recognize the `commands' command and build a
738 command line structure for it.
739 (recurse_read_control_structure, read_command_lines): Handle
740 `commands' similarly to `if' and `while'.
741
742 * breakpoint.c (get_number_trailer): Document the special meaning
743 of NULL as the first argument PP.
744 (commands_from_control_command): New function.
745
746 * breakpoint.h (commands_from_control_command): Add prototype.
747
748 * defs.h (commands_control): New enumerated value for enum
749 command_control_type.
750
4b9eee8c
JB
7512007-01-26 Joel Brobecker <brobecker@adacore.com>
752
753 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
754 (ada_exception_sal): Update accordingly.
755
e1f48ead
JK
7562007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
759 * NEWS: Describe CHAR array vs. string identifcation rules.
760
e150acc7
PB
7612007-01-25 Paul Brook <paul@codesourcery.com>
762
763 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
764
10fb19b6
JB
7652007-01-24 Jim Blandy <jimb@codesourcery.com>
766
767 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
768 expression is empty, bother to return the 'optimized out' value we
769 construct. (Thanks to Carl Burch.)
770
85d93f1d
VP
7712007-01-24 Vladimir Prus <vladimir@codesourcery.com>
772
773 * varobj.c (c_value_of_root, c_value_of_child)
774 (cplus_describe_child): Don't call release_value.
775
fcbd8a5c
TS
7762007-01-24 Thiemo Seufer <ths@mips.com>
777
778 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
779 initialization.
780
2024f65a
VP
7812007-01-24 Vladimir Prus <vladimir@codesourcery.com>
782
783 Refactor getting children name, value and type access
784 for varobjs in C++.
785 * varobj.c (get_type_deref): Remove.
786 (adjust_value_for_child_access): New.
787 (c_number_of_children): Use the above.
788 (c_describe_child): Likewise.
789 (enum accessibility): New.
790 (match_accessibility): New function.
791 (cplus_describe_child): New function.
792 (cplus_name_of_child, cplus_value_of_child)
793 (cplus_type_of_child): Reimplement in terms
794 of cplus_describe_child.
795 (cplus_number_of_children): Use
796 adjust_value_for_child_access.
797
6e2a9270
VP
7982007-01-24 Vladimir Prus <vladimir@codesourcery.com>
799
800 Fix computation of the 'editable' attribute and
801 value changeability for for references.
802 * varobj.c (get_value_type): New function.
803 (c_variable_editable): Use get_value_type.
804 (varobj_value_is_changeable): Likewise.
805
56163ce1
JB
8062007-01-24 Joel Brobecker <brobecker@adacore.com>
807
808 * source.c (find_and_open_source): Try rewriting the source
809 path inside filename if dirname is NULL.
810
8c6860bb
JB
8112007-01-24 Joel Brobecker <brobecker@adacore.com>
812
813 * dwarf2read.c (add_partial_symbol): Create an extra partial
814 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
815 (new_symbol): Likewise for symbols.
816
6db6d2ca
NR
8172007-01-24 Nick Roberts <nickrob@snap.net.nz>
818
819 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
820
7d85ee02
VP
8212007-01-23 Vladimir Prus <vladimir@codesourcery.com>
822
823 * value.c (value_primitive_field): Copy the full 'location'
824 contents, instead of assuming that copying ADDRESS will
825 bring over everything in the union. Remove obsolete comment.
826
f79b9530
DJ
8272007-01-23 Masaki Muranaka <monaka@monami-software.com>
828
829 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
830 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
831 (m32c_m16c_pointer_to_address): Separate code from declarations.
832
08d8bcd7
DJ
8332007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
834
835 * target.c (update_current_target): Correct typo.
836
57fdbbbe
CV
8372007-01-22 Masaki Muranaka <monaka@monami-software.com>
838
839 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
840 declaration.
841
58894217
JK
8422007-01-11 Andrew Cagney <cagney@redhat.com>
843 Daniel Jacobowitz <dan@codesourcery.com>
844 Jan Kratochvil <jan.kratochvil@redhat.com>
845
846 * dwarf2-frame.c (execute_cfa_program): New support of
847 `DW_CFA_GNU_negative_offset_extended'.
848
9ebce043
DJ
8492007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
850
851 * NEWS: Mention flash support for "load" and new remote packets.
852
973d738b
DJ
8532007-01-21 Markus Deuling <deuling@de.ibm.com>
854
855 * breakpoint.c (delete_command): Skip redundant loop iterations.
856
7b9ee6a8
DJ
8572007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
858
859 * gdbarch.sh (register_type): Update comment.
860 * gdbarch.h: Regenerated.
861 * arch-utils.c (generic_register_size): Call register_type.
862 * ia64-tdep.c (ia64_extract_return_value): Likewise.
863 * m32c-tdep.c (check_for_saved): Likewise.
864 * mips-tdep.c (mips_print_register, print_gp_register_row)
865 (mips_print_registers_info): Likewise.
866 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
867 Likewise.
868 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
869 (sh64_do_register, sh64_print_register)
870 (sh64_media_print_registers_info): Likewise.
871 * tui/tui-regs.c (tui_register_format): Likewise.
872
11309657
DJ
8732007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
874
875 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
876
877 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
878 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
879 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
880 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
881 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
882 (make_symbol_completion_list): Likewise.
883
cb1df416
DJ
8842007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
885 Daniel Jacobowitz <dan@codesourcery.com>
886
887 * buildsym.c (end_symtab): Use preallocated symtab if available.
888 Fill in SYMBOL_SYMTAB.
889 * buildsym.h (struct subfile): Add symtab member.
890 * dwarf2read.c (struct dwarf2_cu): Add line_header.
891 (struct file_entry): Add symtab.
892 (free_cu_line_header): New function.
893 (read_file_scope): Use it. Save line_header in the cu. Process
894 lines before DIEs.
895 (add_file_name): Initialize new symtab member.
896 (dwarf_decode_lines): Create symtabs for included files.
897 (new_symbol): Set SYMBOL_SYMTAB.
898 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
899 (search_symbols): Likewise.
900 * symtab.h (struct symbol): Add symtab member.
901 (SYMBOL_SYMTAB): Define.
902
727da900
DJ
9032007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
904
905 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
906
7b6b9e83
DJ
9072007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
908
909 * arch-utils.c (show_endian): Correct reversed condition.
910
e767400c
JK
9112007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
912
913 * MAINTAINERS (Write After Approval): Add myself.
914
b20d8971
VP
9152007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
916 Vladimir Prus <vladimir@codesourcery.com>
917
918 Fix 'selected frame' varobjs.
919 * varobj.c (struct varobj): Remove the error field.
920 (varobj_set_value): Don't check var->error.
921 (install_new_value): Don't set var->error.
922 (varobj_update): Always pass the new value
923 of the root via install_new_value.
924 (create_child): Don't set error field.
925 (new_variable): Likewise.
926 (c_value_of_root): Always reevaluate the value
927 of selected frame varobjs in the selected frame.
928 Don't call reinit_frame_cache.
929
7ef2b397
JB
9302007-01-15 Joel Brobecker <brobecker@adacore.com>
931
932 * source.c (_initialize_source): Improve the help text of
933 the substitute-path commands.
934
1208538e
MK
9352007-01-14 Mark Kettenis <kettenis@gnu.org>
936
937 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
938 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
939 (frv_skip_prologue): Remove prototypes.
940 (frv_adjust_breakpoint_address): Renamed from
941 frv_gdbarch_adjust_breakpoint_address.
942 (frv_gdbarch_init): Adjust.
943
765f065a
MK
9442007-01-13 Mark Kettenis <kettenis@gnu.org>
945
5e66aab2
MK
946 * gdbarch.sh (deprecated_extract_return_value)
947 (deprecated_store_return_value): Remove.
948 (extract_return_value, store_return_value): Remove default values.
949 * gdbarch.c, gdbarch.h: Regenerate.
950 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
951 (legacy_store_return_value): Remove.
952 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
953 Remove.
954
56178203
MK
955 * mi/mi-main.c: Remove obsolete comment.
956
23303b2e
MK
957 * regcache.c, regcache.h (deprecated_register_bytes)
958 (deprecated_read_register_bytes)
959 (deprecated_write_register_bytes): Remove.
960
765f065a
MK
961 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
962 Don't forget to move destination pointer.
963
610acfff
MK
9642007-01-01 Mark Kettenis <kettenis@gnu.org>
965
966 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
967
12102450
UW
9682007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
969
970 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
971 past entry function with recent newlib.
972
c8b2f53c
VP
9732007-01-11 Vladimir Prus <vladimir@codesourcery.com>
974
975 * gdb.texinfo (GDB/MI Variable Objects): Improve the
976 introduction. Specify -var-update more exactly.
977
d57df5e4
DJ
9782007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
979
980 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
981
03f597d5
JB
9822007-01-10 Jim Blandy <jimb@codesourcery.com>
983
984 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
985 the Global Maintainers' invitation to be a global maintainer.
986
fd48f117
DJ
9872007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
988
989 * infrun.c (singlestep_pc): New variable.
990 (resume): Set singlestep_pc.
991 (context_switch): Add a debugging message. Flush the frame cache.
992 (handle_inferior_event): Add debugging messages. Handle thread
993 hops when a software single step has completed. Let context_switch
994 handle flushing the frame cache.
995
23181151
DJ
9962007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
997
998 * NEWS: Mention target descriptions, "set tdesc filename",
999 "unset tdesc filename", "show tdesc filename", and
1000 qXfer:features:read.
1001 * arch-utils.c (choose_architecture_for_target): New function.
1002 (gdbarch_info_fill): Call it.
1003 * target-descriptions.c (struct property): Make members non-const.
1004 (struct target_desc): Add arch member.
1005 (target_description_filename): New variable.
1006 (target_find_description): Try via XML first.
1007 (tdesc_architecture): New.
1008 (free_target_description, make_cleanup_free_target_description): New.
1009 (set_tdesc_property): Call xstrdup.
1010 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1011 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1012 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1013 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1014 * target-descriptions.h (tdesc_architecture)
1015 (make_cleanup_free_target_description, set_tdesc_architecture): New
1016 prototypes.
1017 * Makefile.in (SFILES): Add xml-tdesc.c.
1018 (COMMON_OBS): Add xml-tdesc.o.
1019 (target-descriptions.o): Update.
1020 (xml-tdesc.o): New rule.
1021 * xml-tdesc.c, xml-tdesc.h: New files.
1022 * remote.c (PACKET_qXfer_features): New enum.
1023 (remote_protocol_features): Add qXfer:features:read.
1024 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1025 (_initialize_remote): Register qXfer:features:read.
1026 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1027 * features/gdb-target.dtd: New file.
1028
3e9cb5f4
DJ
10292007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1030
1031 * copyright.sh: Clarify error.
1032
818f79f6
DJ
10332007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1034
1035 * symtab.c (matching_bfd_sections): Fix VMA matching for
1036 prelinked objects.
1037
f7a6bb70
DJ
10382007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1039
1040 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1041 nested symbols.
1042
20ac0504
DJ
10432007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1044
1045 Updated copyright notices for most files.
1046
85bb0718
DJ
10472007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1048
1049 * copyright.sh (prunes): Add step-line.inp and step-line.c.
1050
aa28a74e
DJ
10512007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1052
1053 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1054 exec_prefix.
1055 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1056 '${prefix}'.
1057 * configure, config.in: Regenerate.
1058 * defs.h (debug_file_directory): Declare.
1059 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
1060 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
1061 relocate it if DEBUGDIR_RELOCATABLE.
1062 * symfile.c (debug_file_directory): Make non-static.
1063 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1064 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1065 (_initialize_symfile): Don't initialize debug_file_directory here.
1066
1cfd2c3e
JB
10672007-01-09 Jim Blandy <jimb@codesourcery.com>
1068
1069 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1070 statements.
1071
5efde112
DJ
10722007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1073
1074 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1075 frame_unwind_register to recurse.
1076 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1077 (alpha_heuristic_frame_prev_register): Likewise.
1078 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1079 * m32c-tdep.c (m32c_prev_register): Likewise.
1080 * frame.c (frame_register_unwind_location): Remove FIXME.
1081
4de1f557
DJ
10822007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1083 Eli Zaretskii <eliz@gnu.org>
1084
1085 * copyright.sh: New file.
1086
ca4ca11e
DJ
10872007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
1088
1089 * configure.ac: Check for XML_StopParser.
1090 * xml-support.c (gdb_xml_body_text): Check for an error.
1091 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1092 (gdb_xml_end_element_wrapper): Likewise.
1093 * config.in, configure: Regenerated.
1094
57e66780
DJ
10952007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1096
1097 * varobj.c (install_new_value): Always update print_value.
1098 (value_get_print_value): Immediately return NULL for missing
1099 values.
1100
b523a1fd
JB
11012007-01-08 Jim Blandy <jimb@codesourcery.com>
1102
1103 * configure.ac: Tighten pattern for extracting value of
1104 DEPRECATED_TM_FILE from the target makefile fragment.
1105 * configure: Regenerated.
1106
3d799a95
DJ
11072007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1108
1109 * linux-nat.c (struct simple_pid_list): Add status.
1110 (add_to_pid_list): Record the PID's status.
1111 (linux_record_stopped_pid): Likewise. Make static.
1112 (pull_pid_from_list): Return the saved status.
1113 (linux_nat_handle_extended): Deleted.
1114 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
1115 Make static. Handle non-SIGSTOP for a new thread's first signal.
1116 (flush_callback): Handle unexpected pending signals.
1117 (linux_nat_wait): Update calls to changed functions.
1118 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
1119 Remove prototypes for newly static functions.
1120
9acbedc0
UW
11212007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1122
1123 * gdbarch.sh (value_from_register): New gdbarch function.
1124 * gdbarch.c, gdbarch.h: Regenerate.
1125 * findvar.c (default_value_from_register): New function.
1126 (value_from_register): Use gdbarch_value_from_register.
1127 * value.h (default_value_from_register): Declare.
1128 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
1129 spu_value_to_register): Remove.
1130 (spu_value_from_register): New function.
1131 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1132 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1133 Call set_gdbarch_value_from_register.
1134 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
1135 s390_value_to_register): Remove.
1136 (s390_value_from_register): New function.
1137 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1138 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1139 Call set_gdbarch_value_from_register.
1140
f822c95b
DJ
11412007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
1142
1143 * NEWS: Add "set sysroot" and "show sysroot".
1144 * solib.c (solib_absolute_prefix): Delete. Replace
1145 all uses with gdb_sysroot.
1146 (_initialize_solib): Add "set sysroot" and "show sysroot".
1147 Make "solib-absolute-prefix" an alias to it.
1148
00fa51f6
UW
11492007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
1150
1151 * frame.c (get_frame_register_bytes): New function.
1152 (put_frame_register_bytes): Likewise.
1153 * frame.h (get_frame_register_bytes): Declare.
1154 (put_frame_register_bytes): Likewise.
1155 * findvar.c (value_from_register): Always construct lval_register
1156 values. Use get_frame_register_bytes.
1157 * valops.c (value_assign): Use get_frame_register_bytes and
1158 put_frame_register_bytes.
1159
a95c9d06
JB
11602007-01-08 Jim Blandy <jimb@codesourcery.com>
1161
1162 * MAINTAINERS: Update Stan Shebs' email address.
1163
4ed6b5be
JB
11642007-01-07 Joel Brobecker <brobecker@adacore.com>
1165
1166 * ada-lang.c (is_known_support_routine): Improve the implementation.
1167
9bbc9174
JB
11682007-01-06 Joel Brobecker <brobecker@adacore.com>
1169
1170 * ada-lang.c: Add include of source.h.
1171 (is_known_support_routine): Improve the check verifying that the file
1172 associated to this frame exists.
1173 * Makefile.in (ada-lang.o): Add dependency on source.h.
1174
44a81774
JB
11752007-01-07 Jim Blandy <jimb@codesourcery.com>
1176
1177 * ax-general.c (ax_const_l): Select proper opcode for the given
1178 value.
1179
6fe1a487
NR
11802007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1181
1182 * varobj.c (c_value_of_root): Don't select frame if variable
1183 object is out of scope.
1184
3fa6deb5
NR
11852007-01-06 Nick Roberts <nickrob@snap.net.nz>
1186
1187 * varobj.c (struct varobj): New member print_value.
1188 (install_new_value): Compare last printed value with current one
1189 instead of contents.
1190 (new_variable): Initialize var->print_value to NULL.
1191 (free_variable): Free var->print_value.
1192 (value_get_print_value): New function derived from
1193 c_value_of_variable.
1194 (c_value_of_variable): Use value_get_print_value.
1195
92a56b20
JB
11962007-01-05 Joel Brobecker <brobecker@adacore.com>
1197
1198 * i386-tdep.c (i386_analyze_stack_align): Add comment.
1199
0e420bd8
JB
12002007-01-05 Joel Brobecker <brobecker@adacore.com>
1201
1202 * NEWS: Add entries for new catch commands.
1203
b69733ab 12042007-01-05 Joel Brobecker <brobecker@adacore.com>
fa4028e9
JB
1205
1206 * dwarf2read.c (partial_die_info): Add field has_byte_size.
1207 (add_partial_symbol): Correct identification of external references.
1208 (process_structure_scope): Likewise.
1209 (read_partial_die): Handle DW_AT_byte_size attribute.
1210
12112007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
d097fa3e
DJ
1212
1213 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1214
8e38af42
NR
12152007-01-05 Nick Roberts <nickrob@snap.net.nz>
1216
1217 * varobj.c (get_type_deref): Fix variable objects for references to
1218 pointers.
1219
d1c79ecd
DJ
12202007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1221
1222 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
1223 with no symbols.
1224
e776119f
DJ
12252007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1226
1227 * memory-map.c (struct_memory_map_parsing_data): Remove most
1228 members. Make property_name an array.
1229 (free_memory_map_parsing_data, memory_map_start_element)
1230 (memory_map_end_element, memory_map_character_data): Delete.
1231 (memory_map_start_memory, memory_map_end_memory)
1232 (memory_map_start_property, memory_map_end_property): New functions.
1233 (property_attributes, memory_children, memory_type_enum)
1234 (memory_attributes, memory_map_children, memory_map_elements): New.
1235 (parse_memory_map): Rewrite.
1236 * xml-support.c (debug_xml): New.
1237 (xml_get_required_attribute, xml_get_integer_attribute)
1238 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1239 Delete.
1240 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1241 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1242 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1243 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1244 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1245 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1246 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1247 New.
1248 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1249 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1250 (enum gdb_xml_element_flag, struct gdb_xml_element)
1251 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1252 (struct gdb_xml_enum): New.
1253 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1254 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1255 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1256 (xml_get_required_attribute, xml_get_integer_attribute)
1257 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1258 * Makefile.in (xml_support_h, xml-support.o): Update.
1259
5e572bb4
DJ
12602007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1261
1262 * Makefile.in (eval.o): Update dependencies.
1263 * eval.c: Include "ui-out.h" and "exceptions.h".
1264 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1265 Use value_zero if an error occurs when avoiding side effects.
1266 * varobj.c (c_value_of_root): Initialize new_val.
1267
74a44383
DJ
12682007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1269
1270 * varobj.c (varobj_list_children): Stop if the number of children is
1271 unknown.
1272 (c_number_of_children):
1273
e8d2d628
MK
12742007-01-04 Mark Kettenis <kettenis@gnu.org>
1275
1276 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1277 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1278 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1279 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1280 sizeof, instead of hardcoded constants.
1281
c941839d
DJ
12822007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1283
1284 * CONTRIBUTE: Use sourceware.org.
1285
303b6f5d 12862007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
2d0720d9 1287
303b6f5d
DJ
1288 * buildsym.c (start_subfile): Handle producer.
1289 (record_producer): New function.
1290 * buildsym.h (struct subfile): Include producer.
1291 (record_producer): New prototype.
1292 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1293 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1294 armcc_cfa_offsets_reversed.
1295 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1296 (dwarf2_frame_find_quirks): New function.
1297 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
1298 (decode_frame_entry_1): Record the CIE version. Record the
1299 augmentation. Skip armcc augmentations.
1300 * dwarf2read.c (read_file_scope): Save the producer.
1301 * symtab.h (struct symtab): Rename unused version member to
1302 producer.
2d0720d9 1303
aa79a185
DJ
13042007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
1305
1306 * configure.ac (build_warnings): Use -Wall and
1307 -Wdeclaration-after-statement.
1308 * configure: Regenerated.
1309
bbec2603
VP
13102007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1311
1312 Simplify access to variours properties of child
1313 variable objects in C.
1314 * varobj.c (value_struct_element_index): New function.
1315 (c_describe_child): New function.
1316 (c_name_of_child, c_value_of_child)
1317 (c_type_of_child): Rewrite to use c_describe_child.
1318
28335dcc
VP
13192007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1320
1321 gdb/
1322 * varobj.c: Include "vec.h".
1323 (varobj_p): New typedef, declare vector of those.
1324 (struct varobj): Use vector for the 'children' member.
1325 (child_exists): Remove.
1326 (save_child_in_parent): Remove.
1327 (remove_child_from_parent): Remove.
1328 (struct varobj_child): Remove.
1329 (struct vstack): Remove.
1330 (vpush, vpop): Remove.
1331 (varobj_list_children): Adjust to work work vector.
1332 (varobj_update): Likewise. Use vectors for
1333 working stack and result.
1334 (delete_variable_1): Likewise.
1335 * Makefile.in (varobj.o): Update dependencies.
1336
b2c2bd75
VP
13372007-01-04 Vladimir Prus <vladimir@codesourcery.com>
1338
1339 Port from Apple's version.
1340 gdb/
1341 * varobj.c (type_changeable): Rename to...
1342 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1343 (is_root_p): New function. Use it everywhere.
1344
bdfb3870
JB
13452007-01-04 Jim Blandy <jimb@codesourcery.com>
1346
1347 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1348 then plain 'fixup'.
1349
5d15052e
JB
13502007-01-04 Joel Brobecker <brobecker@adacore.com>
1351
1352 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1353
53103997
JB
13542007-01-04 Joel Brobecker <brobecker@adacore.com>
1355
1356 * hpread.c (hpread_type_lookup): Fix compilation failure.
1357
27fd2f50
Q
13582007-01-04 Qinwei <qinwei@sunnorth.com.cn>
1359
1360 * NEWS: New port to S+core.
1361 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1362 Add myself.
1363
1364 * Makefile.in: Add dependencies for S+core files.
1365 * configure.tgt (score*, score-*-*): Add S+core target.
1366 * config/score/embed.mt: New file.
1367 * score-tdep.c: New file.
1368 * score-tdep.h: New file.
1369
a6cfbe68
JB
13702007-01-04 Joel Brobecker <brobecker@adacore.com>
1371
1372 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1373 the appropriate type rather than a bogus void type.
1374
67cf15b7 13752007-01-04 Joel Brobecker <brobecker@adacore.com>
f7f9143b
JB
1376
1377 * ada-lang.h (ada_find_printable_frame): Remove.
1378 (ada_exception_catchpoint_p, ada_decode_exception_location)
1379 (ada_decode_assert_location): Add declaration.
1380 * ada-lang.c: Add include of annotate.h and valprint.h.
1381 (exception_catchpoint_kind): New enum.
1382 (function_name_from_pc, is_known_support_routine)
1383 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1384 (ada_exception_name_addr_1, ada_exception_name_addr)
1385 (print_it_exception, print_one_exception, print_mention_exception)
1386 (print_it_catch_exception, print_one_catch_exception)
1387 (print_mention_catch_exception, catch_exception_breakpoint_ops)
1388 (print_it_catch_exception_unhandled)
1389 (print_one_catch_exception_unhandled)
1390 (print_mention_catch_exception_unhandled, print_it_catch_assert)
1391 (print_one_catch_assert, print_mention_catch_assert)
1392 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1393 (ada_get_next_arg, catch_ada_exception_command_split)
1394 (ada_exception_sym_name, ada_exception_sym_name)
1395 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1396 (ada_parse_catchpoint_condition, ada_exception_sal)
1397 (ada_decode_exception_location)
1398 (ada_decode_assert_location): New function.
1399 (catch_exception_unhandled_breakpoint_ops): New global variable.
1400 (catch_assert_breakpoint_ops): New global variable.
1401 * breakpoint.c: Add include of ada-lang.h.
1402 (print_one_breakpoint): Do not print the condition for Ada
1403 exception catchpoints.
1404 (create_ada_exception_breakpoint): New function.
1405 (catch_ada_exception_command, catch_assert_command): New function.
1406 (catch_command_1): Add support for the new "catch exception" and
1407 "catch assert" commands.
1408 (_initialize_breakpoint): Add help description for the new catch
1409 commands.
1410 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
1411 valprint.h.
1412 (breakpoint.o): Add dependency on ada-lang.h.
1413
05cfdb42
DJ
14142007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
1415
1416 * coffread.c (cs_to_section): If bfd_section is found, always
1417 return its section index.
1418 (coff_symtab_read): Determine the minimal_symbol_type using the
1419 bfd_section flags.
1420
2e03ee74
DJ
14212007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 Daniel Jacobowitz <dan@codesourcery.com>
1423
1424 * Makefile.in (top.o): Update.
1425 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1426 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1427 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1428 New.
1429 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1430
1c63d086
MK
14312007-01-03 Mark Kettenis <kettenis@gnu.org>
1432
1433 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1434 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1435
d5d6fca5
DJ
14362007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1437
1438 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1439 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1440 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1441 greater than or equal to zero.
1442 * m2-typeprint.c (m2_array): Likewise.
1443 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1444 * gdbtypes.c (copy_type_recursive): Correct == typo.
1445 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1446 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1447 greater than zero.
1448 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1449 (default_macro_scope): Remove unused variable.
1450 * prologue-value.h (pv_area_find_reg): Don't name an argument
1451 "register".
1452 * remote-fileio.c (remote_fio_func_map): Add missing braces.
1453 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1454 type.
1455 (cleanup_sigint_signal_handler): Remove casts.
1456 * valprint.c (val_print): Use a volatile local for the modified
1457 argument.
1458 * varobj.c (languages): Remove extra array dimension.
1459 (varobj_create): Correct access to languages array.
1460 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1461 missing braces.
1462 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1463 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1464 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1465 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1466 (mi_cmd_data_write_memory): Likewise.
1467 * signals/signals.c (target_signal_to_string): Cast to int before
1468 comparing.
1469 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1470 Update all callers.
1471
0d5de010
DJ
14722007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
1473
1474 * NEWS: Mention pointer to member improvements.
1475 * Makefile.in (gnu-v3-abi.o): Delete special rule.
1476 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
1477 * ada-valprint.c (ada_print_scalar): Update for new type codes.
1478 * c-typeprint.c (c_print_type): Update for new type codes.
1479 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
1480 (c_type_print_base): Likewise.
1481 (c_type_print_args): Rewrite.
1482 * c-valprint.c (c_val_print): Update for new type codes. Remove
1483 support for references to members. Treat methods like functions.
1484 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
1485 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
1486 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
1487 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
1488 (struct cp_abi_ops): Add corresponding members.
1489 * cp-valprint.c (cp_print_class_method): Delete.
1490 (cp_find_class_member): New function.
1491 (cp_print_class_member): Use it. Simplify support for bogus
1492 member pointers.
1493 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
1494 lookup_methodptr_type.
1495 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
1496 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
1497 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
1498 pointer support.
1499 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
1500 references returned by user defined operators.
1501 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
1502 (f_type_print_varspec_suffix): Remove support for member pointers.
1503 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
1504 and adjusted.
1505 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
1506 (lookup_methodptr_type): New.
1507 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
1508 (recursive_dump_type): Update for new types.
1509 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
1510 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
1511 (lookup_memberptr_type, lookup_methodptr_type)
1512 (smash_to_memberptr_type): New prototypes.
1513 (smash_to_method_type): Formatting fix.
1514 (lookup_member_type, smash_to_member_type): Delete prototypes.
1515 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
1516 Do not rely on debug information for the vptr or the method's
1517 enclosing type. Handle function descriptors for IA64.
1518 (gnuv3_virtual_fn_field): Rewrite using the new functions.
1519 (gnuv3_find_method_in, gnuv3_print_method_ptr)
1520 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
1521 (gnuv3_method_ptr_to_value): New.
1522 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
1523 * hpread.c (hpread_type_lookup): Update for new types.
1524 * infcall.c (value_arg_coerce): Likewise.
1525 * m2-typeprint.c (m2_print_type): Remove explicit support
1526 for member pointers.
1527 * m2-valprint.c (m2_val_print): Likewise.
1528 * p-typeprint.c (pascal_type_print_varspec_prefix)
1529 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
1530 * p-valprint.c (pascal_val_print): Likewise.
1531 (pascal_object_print_class_method, pascal_object_print_class_member):
1532 Delete.
1533 * p-lang.h (pascal_object_print_class_method)
1534 (pascal_object_print_class_member): Delete prototypes.
1535 * stabsread.c (read_type): Update for new types.
1536 * typeprint.c (print_type_scalar): Likewise.
1537 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
1538 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
1539 argument. Construct a pointer to member if the address of a
1540 function or data member is requested.
1541 (value_cast_pointers): Don't modify the input value.
1542 (value_cast): Adjust pointer to member handling for new types.
1543 Allow null pointer to member constants. Don't modify the input
1544 value.
1545 (value_ind): Remove pointer to member check. Handle function
1546 descriptors for function pointers.
1547 (value_struct_elt, value_find_oload_method_list, check_field):
1548 Remove pointer to member checks.
1549 * value.c (unpack_long): Allow pointers to data members.
1550 (value_from_longest): Allow member pointers.
1551 * value.h (value_aggregate_elt): Add want_address.
1552 * varobj.c (c_variable_editable): Remove check for members.
1553 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
1554 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
1555 in virtual tables.
1556 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
1557 * c-lang.h (cp_print_class_method): Delete prototype.
1558 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
1559 * mips-tdep.c (mips_gdbarch_init): Likewise.
1560 * gdbarch.c, gdbarch.h: Regenerated.
1561
d217aaed
MK
15622007-01-01 Mark Kettenis <kettenis@gnu.org>
1563
1564 * rs6000-tdep.c (rs6000_use_struct_convention)
1565 (rs6000_extract_return_value, rs6000_store_return_value)
1566 (rs6000_extract_struct_value_address): Remove.
1567 (rs6000_return_value): New function.
1568 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
1569 store_return_value, deprecated_extract_struct_value_address and
1570 deprecated_use_struct_convention. Use rs6000_return_value
1571 instead.
1572
02296b29
NR
15732007-01-02 Nick Roberts <nickrob@snap.net.nz>
1574
1575 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
1576 -display-disable, -display-enable, -display-insert and
1577 -display-list.
1578
b69733ab 15792007-01-01 Joel Brobecker <brobecker@adacore.com>
ce186b30
JB
1580
1581 * breakpoint.c (remove_breakpoint): Remove dead code.
1582
15832007-01-01 Nick Roberts <nickrob@snap.net.nz>
ab9245ed
NR
1584
1585 * varobj.c: Include block.h.
1586 (c_value_of_root): Check scope within nested statements.
1587
9f3a1602
MK
15882007-01-01 Mark Kettenis <kettenis@gnu.org>
1589
1590 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
1591 regcache_cooked_write_signed instead of
1592 deprecated_write_register_bytes.
1593
12349ccd
JB
15942007-01-01 Joel Brobecker <brobecker@adacore.com>
1595
1596 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
1597
8c48ebcf
JB
15982007-01-01 Joel Brobecker <brobecker@adacore.com>
1599
1600 Followed the Start of New Year Procedure:
1601 * ChangeLog-2006: New file, containing all the entries for 2006.
1602 * ChangeLog: Removed all 2006 entries, and changed the reference
1603 to the previous ChangeLog to point to ChangeLog 2006.
1604 * top.c (print_gdb_version): Update copyright year.
1605
154927ff
MK
16062007-01-01 Mark Kettenis <kettenis@gnu.org>
1607
1608 * Makefile.in (remote-sds.o): Remove.
1609 * remote-sds.c: Delete.
1610
8c48ebcf 1611For older changes see ChangeLog-2006.
c906108c
SS
1612\f
1613Local Variables:
1614mode: change-log
1615left-margin: 8
1616fill-column: 74
1617version-control: never
1618End:
This page took 0.999824 seconds and 4 git commands to generate.