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