1 2010-09-06 Pedro Alves <pedro@codesourcery.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
4 * common/signals.c (ANY): Remove.
5 (SET): No longer use ANY.
7 2010-09-06 Yao Qi <yao@codesourcery.com>
9 * infrunc(resume): When inferior is waiting_for_vfork_done,
10 clear step and don't use displaced stepping.
12 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
14 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
17 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
19 Code cleanup - split print_stop_reason.
20 * infrun.c (enum inferior_stop_reason): Remove.
21 (print_stop_reason): Remove by splitting into ...
22 (print_exited_reason, print_signal_exited_reason)
23 (print_no_history_reason, print_signal_received_reason)
24 (print_end_stepping_range_reason): ... these new functions. Update
25 the preceding comment.
26 (handle_inferior_event): Change the calls to print_exited_reason,
27 print_signal_exited_reason, print_no_history_reason,
28 print_signal_received_reason, print_end_stepping_range_reason.
29 (handle_step_into_function, handle_step_into_function_backward):
30 Change the calls to print_end_stepping_range_reason.
32 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
34 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
35 * cli-out.c: Include vec.h.
36 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
37 variable stream, initialize it, use it.
38 (cli_redirect): New function comment. Replace the stream and
39 original_stream fields by the new streams field. Remove the
40 original_stream != NULL conditional, assert error on NULL instead.
41 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
42 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
43 original_stream fields by the new streams field.
44 (cli_out_set_stream): Replace the stream field by the new streams
46 * cli-out.h: Include vec.h.
47 (ui_filep): New typedef, call DEF_VEC_P for it.
48 (struct cli_ui_out_data): Replace the stream and original_stream
49 fields by the new streams field.
50 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
51 NULL first. Extend the comment.
52 (handle_redirections): Call ui_out_redirect with output.
53 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
54 calls outside of the TRY_CATCH block.
56 2010-09-03 Joel Brobecker <brobecker@adacore.com>
60 2010-09-02 Joel Brobecker <brobecker@adacore.com>
62 Back out the following change:
63 | 2010-06-29 Hui Zhu <teawater@gmail.com>
64 | * record.c (set_record_pic_cmdlist,
65 | show_record_pic_cmdlist): New variables.
66 | (set_record_pic_command,
67 | show_record_pic_command): New functions.
68 | (record_pic_function, record_pic_line, record_pic_enum,
69 | set_record_pic_type, record_pic_hide_nofunction,
70 | record_pic_hide_nosource, record_pic_hide_same): New variables.
71 | (record_pic_fputs): New function.
72 | (function_list, node_list, edge_list): New struct.
73 | (function_list, node_list, edge_list): New variables.
74 | (record_pic_cleanups, record_pic_node,
75 | record_pic_edge, cmd_record_pic): New functions.
76 | (_initialize_record): Add new commands for record pic.
78 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
80 * config.in, configure: Regenerated.
81 * configure.ac: Check for waitpid.
82 * ser-pipe.c (pipe_close): Wait for the program to exit.
84 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
86 * cli/cli-logging.c: Include gdb_assert.h.
87 (set_logging_overwrite): New function.
88 (logging_redirect): New comment.
89 (logging_no_redirect_file, set_logging_redirect)
90 (pop_output_files) <logging_no_redirect_file>: New.
91 (handle_redirections) <!logging_redirect>: New variable
92 no_redirect_file. Remove file autoclose for tee_file_new. No longer
93 discard cleanup for the close of former OUTPUT. Set
94 LOGGING_NO_REDIRECT_FILE.
95 (handle_redirections) <logging_redirect>: gdb_assert
96 LOGGING_NO_REDIRECT_FILE.
97 (show_logging_command) <logging_redirect handling>: Adjust messages
98 for SAVED_FILENAME not NULL.
99 (_initialize_cli_logging): Install set_logging_overwrite and
100 set_logging_redirect.
102 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
104 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
106 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
108 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
109 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
110 add $(GDB_WARN_CFLAGS_NO_FORMAT).
111 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
113 2010-09-02 Yao Qi <yao@codesourcery.com>
115 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
116 number from a WIFSIGNALED status.
118 2010-09-01 Tom Tromey <tromey@redhat.com>
120 * symtab.h (lookup_type_symbol): Declare.
121 * symtab.c (lookup_symbol_in_language_full): Rename from
122 lookup_symbol_in_language. Add 'for_type' argument.
123 (lookup_symbol_in_language): New function.
124 (lookup_type_symbol): Likewise.
125 (lookup_symbol_aux): Add 'for_type' argument.
126 (match_symbol_aux): New function.
127 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
128 (match_transparent_type): New function.
129 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
130 * symfile.h (struct quick_symbol_functions)
131 <pre_expand_symtabs_matching>: Remove.
132 <expand_one_symtab_matching>: New field.
133 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
134 (pre_expand_symtabs_matching_psymtabs): Remove.
135 (psym_functions): Update.
136 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
137 * dwarf2read.c (dw2_lookup_symbol): Update comment.
138 (dw2_pre_expand_symtabs_matching): Remove.
139 (dw2_expand_one_symtab_matching): New function.
140 (dwarf2_gdb_index_functions): Update.
142 2010-09-01 Joel Brobecker <brobecker@adacore.com>
144 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
146 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
148 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
149 as a feature reported by -list-target-features.
151 2010-09-01 Joel Brobecker <brobecker@adacore.com>
153 * features/Makefile (WHICH): Add rs6000/powerpc-32.
154 (powerpc-32.o, powerpc-32.c): New rules.
155 (clean): Also remove powerpc-32.c.
156 * regformats/rs6000/powerpc-32.dat: Generate.
158 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
160 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
162 * psymtab.h (psymbol_bcache_init): New function prototype.
163 (psymbol_bcache_free): New function prototype.
164 (psymbol_bcache_get_bcache): New function prototype.
165 * psymtab.c (psymbol_bcache_init): New function.
166 (psymbol_bcache_free): New function.
167 (psymbol_bcache_full): New function.
168 (psymbol_bcache_get_bcache): New function.
169 (add_psymbol_to_bcache): use psymbol_bcache_full.
170 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
172 * symmisc.c (print_symbol_bcache_statistics): Updated.
173 (print_objfile_statistics): Updated.
174 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
176 (free_objfile): Use psymbol_bcache_free.
178 2010-08-31 Tom Tromey <tromey@redhat.com>
181 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
182 Don't set TYPE_NAME on the type.
184 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
186 * infrun.c (set_exec_direction_func): Error out if target does not
187 support reverse execution.
189 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
191 Make linux_get_siginfo_type `type *' unique.
192 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
193 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
194 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
195 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
196 (_initialize_linux_tdep): New.
198 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
201 * defs.h (find_memory_region_ftype): New typedef.
202 (exec_set_find_memory_regions): Use it.
203 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
204 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
205 * gcore.c (objfile_find_memory_regions): Likewise.
206 * gnu-nat.c (gnu_find_memory_regions): Likewise.
207 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
208 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
209 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
210 find_memory_region_ftype.
211 (insert_dbx_link_bpt_in_region): Likewise.
212 (iterate_over_mappings): Likewise. Drop the comment part about the
214 (find_memory_regions_callback): Use find_memory_region_ftype.
215 (proc_find_memory_regions): Likewise.
216 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
217 find_memory_region_ftype.
218 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
219 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
221 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
223 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
224 'static partial_symbol psymbol'.
225 (psymbol_hash): New function.
226 (psymbol_compare): New function.
227 * bcache.c (hash_continue): New.
228 (hash): Use hash_continue.
229 * bcache.c: Add hash_function and compare_function
230 pointers to bcache struct.
231 (bcache_full): Use bcache->hash_function, and
232 bcache->compare_function.
233 (bcache_compare): New function.
234 (bcache_xmalloc): Take hash_function and
235 compare_function arguments and initialize the
238 * objfiles.c (allocate_objfile): Updated.
239 * symfile.c (reread_symbols): Updated.
240 * python/py-type.c (typy_richcompare): Updated.
242 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
243 Tom Tromey <tromey@redhat.com>
246 * python/py-value.c (valpy_get_dynamic_type): New function.
247 (value_object_getset): Add "dynamic_type".
248 (valpy_get_type): Fail on error.
250 2010-08-30 Yao Qi <yao@codesourcery.com>
252 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
253 (arm_linux_syscall_next_pc): New.
254 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
255 (arm_linux_init_abi): Initialize syscall_next_pc.
256 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
257 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
258 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
259 Declare arm_frame_is_thumb.
261 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
264 * breakpoint.c (bpstat_alloc): Remove unused prototype.
265 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
267 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
268 calls of bpstat_alloc. Remove explicit bs chain termination.
270 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
273 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
274 (my_waitpid): Likewise.
276 2010-08-27 Doug Evans <dje@google.com>
278 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
281 2010-08-27 Tom Tromey <tromey@redhat.com>
283 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
284 TYPE_FIELD_IGNORE_BITS.
286 2010-08-27 Doug Evans <dje@google.com>
288 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
289 the order they're defined in. munmap .debug_types buffer.
291 2010-08-26 Doug Evans <dje@google.com>
293 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
294 (dw2_forget_cached_source_info): Rename local cu to per_cu.
295 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
296 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
297 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
298 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
299 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
300 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
301 (write_psymtabs_to_index): Ditto.
303 2010-08-26 Pedro Alves <pedro@codesourcery.com>
305 * NEWS: Mention libthread_db debugging with core files.
307 2010-08-26 Doug Evans <dje@google.com>
309 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
310 forward decl. Pass pst->dirname to dwarf_decode_lines.
311 (psymtab_include_file_name): New function.
312 (dwarf_decode_lines): Call it. Update comments.
314 2010-08-25 Pedro Alves <pedro@codesourcery.com>
316 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
317 compilation unit being different from target die's.
319 2010-08-24 Doug Evans <dje@google.com>
322 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
323 debug_types_type_hash.
324 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
326 (lookup_die_type): Renamed from tag_type_to_tag. First look in
327 appropriate type_hash table. All callers updated.
328 (allocate_signatured_type_table): Renamed from
329 allocate_signatured_type_hash_table. All callers updated.
330 (create_signatured_type_table_from_index): Renamed from
331 create_signatured_type_hash_from_index. All callers updated.
332 (read_die_type): Add comment. Move actual reading to ...
333 (read_die_type_1): ... here. New function.
334 (follow_die_ref_or_sig): Tweak comment.
335 (set_die_type): Rewrite to use appropriate choice of
336 debug_info_type_hash or debug_types_type_hash.
337 (get_die_type_at_offset): New function.
338 (get_die_type): Call it.
340 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
342 * python/py-type.c (typy_richcompare): Initialize worklist.
344 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
345 Kazu Hirata <kazu@codesourcery.com>
346 Jonathan Larmour <jifl@eCosCentric.com>
348 * arm-tdep.c: Include features/arm-with-m.c.
349 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
351 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
352 Check is_m after force-mode.
353 (arm_gdbarch_init): Check the binary before the target description.
354 Add check for M profile attribute. If we have an M-profile device,
355 but no target register description, use arm-with-m. Recognize the
356 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
357 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
358 * arm-tdep.h (XPSR_T): Define.
359 (struct gdbarch_tdep): Add is_m member.
360 * features/arm-m-profile.xml, features/arm-with-m.c,
361 features/arm-with-m.xml: New files.
363 2010-08-23 Doug Evans <dje@google.com>
365 * dwarf2read.c (read_structure_type): Add comment.
366 (read_enumeration_type): Add comment.
367 (process_enumeration_scope): Move definition of some locals
369 (read_namespace_type): Add comment.
370 (set_die_type): Fix typo in comment.
372 2010-08-23 Tom Tromey <tromey@redhat.com>
375 * python/py-value.c: Include expression.h.
376 (valpy_do_cast): New function.
377 (valpy_cast): Use it.
378 (valpy_dynamic_cast): New function.
379 (valpy_reinterpret_cast): Likewise.
380 (value_object_methods): Add dynamic_cast, reinterpret_cast.
382 2010-08-23 Tom Tromey <tromey@redhat.com>
385 * python/py-value.c (valpy_nonzero): Don't throw error for other
388 2010-08-23 Tom Tromey <tromey@redhat.com>
391 * python/py-type.c: Include bcache.h, vec.h.
392 (struct type_equality_entry): New.
393 (compare_strings): New function.
394 (check_types_equal): Likewise.
395 (check_types_worklist): Likewise.
396 (typy_richcompare): Likewise.
397 (type_object_type): Set tp_richcompare field.
399 2010-08-23 Tom Tromey <tromey@redhat.com>
402 * python/py-type.c (typy_fields): Call check_typedef.
403 (typy_template_argument): Add TRY_CATCH.
405 2010-08-23 Tom Tromey <tromey@redhat.com>
408 * python/py-type.c (typy_array): New function.
409 (type_object_methods): Add "array".
411 2010-08-20 Pedro Alves <pedro@codesourcery.com>
413 * python/python.c: Include "serial.h".
414 (gdbpy_event_fds): Change type to `struct serial *' a array from
416 (gdbpy_run_events): Change parameters. Use serial_readchar in
418 (gdbpy_post_event): Use serial_write in place of write.
419 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
420 serial_async in place of add_file_handler.
422 2010-08-20 Pedro Alves <pedro@codesourcery.com>
424 * serial.h (gdb_pipe, serial_pipe): Declare.
425 * serial.c (serial_interface_lookup): Take a const char pointer.
426 (serial_fdopen): Rename to ...
427 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
428 Call the OPS' fdopen function if there is one.
429 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
431 (struct serial_ops) <fdopen>: New field.
433 * ser-mingw.c (free_pipe_state):
434 (free_pipe_state): Close output on non-pex pipes.
435 (pipe_windows_fdopen): New.
437 (_initialize_ser_windows): Register pipe_windows_fdopen.
438 * ser-go32.c (gdb_pipe): New.
439 * ser-pipe.c (pipe_close): Close file descriptor even if there's
444 2010-08-20 Keith Seitz <keiths@redhat.com>
447 * dwarf2read.c (struct delayed_method_info): New struct.
448 (struct dwarf2_cu): Add vector method_list.
449 (scan_partial_symbols): Count methods for union, class, structure,
451 (add_to_method_list): New function.
452 (free_delayed_list): New function.
453 (compute_delayed_physnames): New function.
454 (process_full_comp_unit): Make a cleanup for the CU's delayed
455 physname list, compute the delayed physnames, and free the
457 (dwarf2_add_member_fn): For C++ and Java, delay the computation
458 of the physname until after the CU is read.
460 * dwarf2read.c (read_structure_type): Check if the current
461 DIE's type was already completed after dwarf2_full_name
464 2010-08-19 Stan Shebs <stan@codesourcery.com>
466 * NEWS: Mention some additional changes.
468 2010-08-19 Tom Tromey <tromey@redhat.com>
470 * Makefile.in (install-python): Add DESTDIR.
472 2010-08-19 Doug Evans <dje@google.com>
475 * parser-defs.h (parse_float, parse_c_float): Declare.
476 * parse.c (parse_float, parse_c_float): New function.
477 * c-exp.y (parse_number): Call parse_c_float.
478 * objc-exp.y (parse_number): Ditto.
479 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
480 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
482 2010-08-19 Joel Brobecker <brobecker@adacore.com>
484 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
485 the arguments in the correct order.
486 * symtab.c (maybe_add_partial_symtab_filename): Declare
487 the arguments in the correct order.
489 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
491 * varobj.c (varobj_create): Replace variable old_fi with old_id,
492 initialize it by null_frame_id, wrap its usage by get_frame_id,
493 frame_id_p and frame_find_by_id.
495 2010-08-18 Tom Tromey <tromey@redhat.com>
498 * configure: Rebuild.
499 * configure.ac: Add install-python to CONFIG_INSTALL.
500 * Makefile.in (install-python): New.
502 2010-08-18 Doug Evans <dje@google.com>
504 * gdb_assert.h (gdb_assert_not_reached): New macro.
505 (gdb_assert_fail): Fix typo in comment.
506 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
508 * darwin-nat.c (darwin_check_new_threads): Ditto.
509 * dwarf2read.c (dwarf2_get_section_info): Ditto.
510 (munmap_section_buffer): Ditto.
511 * m32c-tdep.c (make_types): Ditto.
512 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
513 * macroexp.c (get_character_constant): Ditto.
514 (get_string_literal): Ditto.
515 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
516 (mep_pseudo_cr_index, mep_register_type): Ditto.
517 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
518 (mep_get_insn, mep_analyze_prologue): Ditto.
519 * objfiles.c (qsort_cmp): Ditto.
520 * prologue-value.c (pv_is_identical): Ditto.
521 * record.c (record_get_loc): Ditto.
522 * value.c (value_static_field): Ditto.
523 * xtensa-tdep.c (call0_track_op): Ditto.
525 2010-08-18 Tom Tromey <tromey@redhat.com>
528 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
529 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
530 name-copying lower. Document exception behavior.
531 * completer.c (expression_completer): Catch exceptions from
532 parse_field_expression.
534 2010-08-18 Pedro Alves <pedro@codesourcery.com>
538 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
539 workaround on core files.
540 (try_thread_db_load_1): Don't try enabling thread event reporting
542 (thread_db_load): Allow thread_db on core files.
543 (attach_thread): Don't check thread signals on core files, nor try
544 really attaching to the thread, nor enabling thread event event
546 (thread_db_detach): Don't try disabing thread event reporting or
547 removing thread event breakpoints when debugging a core file.
548 (find_new_threads_callback): Don't try enabling thread event
549 reporting on core files.
550 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
551 debugging a core file.
552 (thread_db_find_new_threads): Don't update thread
553 cores (processors) when debugging a core (dump).
555 2010-08-18 Pedro Alves <pedro@codesourcery.com>
559 * corelow.c (add_to_thread_list): Don't use
560 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
561 (get_core_register_section): Don't use
562 gdbarch_core_reg_section_encodes_pid.
564 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
565 * gdbarch.h, gdbarch.c: Regenerate.
566 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
567 gdbarch_core_reg_section_encodes_pid.
568 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
569 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
570 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
572 2010-08-18 Yao Qi <yao@codesourcery.com>
574 * MAINTAINERS : Add myself under Write After Approval.
576 2010-08-17 Tom Tromey <tromey@redhat.com>
578 * NEWS: Mention template parameter support.
580 2010-08-17 Pedro Alves <pedro@codesourcery.com>
584 * breakpoint.c (decref_bp_location): Assert the reference count is
587 2010-08-17 Pedro Alves <pedro@codesourcery.com>
591 * breakpoint.c (breakpoint_init_inferior): Decrement the
592 location's reference count instead of deleting right away.
593 (bpstat_free): Decrement the location's reference count. Make
595 (bpstat_copy): Increment the location's reference count.
596 (bpstat_find_breakpoint): Adjust.
597 (bpstat_num): Adjust.
598 (print_it_typical): Adjust. Use the breakpoint pointer in the
599 bpstat instead of the location's owner.
600 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
601 Adjust to record the location's owner in the bpstat.
602 (watchpoint_check): Use the breakpoint pointer in the bpstat
603 instead of the location's owner.
604 (bpstat_check_breakpoint_conditions): Don't handle
605 bp_watchpoint_scope here. Use the breakpoint pointer in the
606 bpstat instead of the location's owner.
607 (bpstat_stop_status): Defer inferior function calls to after
608 building the bpstat list. Handle bp_watchpoint_scope here. Use
609 the breakpoint pointer in the bpstat instead of the location's
611 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
612 the location's owner.
613 (free_bp_location): Don't walk bpstats clearing locations.
614 (incref_bp_location): New.
615 (decref_bp_location): New.
616 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
617 instead of the location's owner.
618 (update_global_location_list): Clear the location's owner, and
619 decrement the location's reference count instead of deleting it
621 (breakpoint_retire_moribund): Decrement the location's reference
622 count instead of deleting it right away.
623 (bpstat_remove_bp_location): Delete.
624 (bpstat_remove_breakpoint): New.
625 (bpstat_remove_bp_location_callback): Delete.
626 (bpstat_remove_breakpoint_callback): New.
627 (delete_breakpoint): Iterate over all threads' stop_bpstat's
628 clearing references to the breakpoint that is being deleted.
630 * breakpoint.h (struct bp_location) <refc>: New field.
631 <owner>: Update comments.
632 (bpstat_free): Delete declaration.
633 (struct bpstats): Change the type of the breakpoint_at field to
634 struct breakpoint point, from struct bp_location pointer. Add new
635 field bp_location_at.
637 2010-08-16 Tom Tromey <tromey@redhat.com>
641 2010-08-16 Tom Tromey <tromey@redhat.com>
643 * NEWS: Mention watch -location.
645 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
647 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
648 EXP_STRING_REPARSE to EXP_STRING.
649 (watch_command_1): Set also EXP_STRING_REPARSE.
650 (delete_breakpoint): Free also EXP_STRING_REPARSE.
651 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
652 Update comment for exp_string.
654 2010-08-16 Tom Tromey <tromey@redhat.com>
656 * value.c (release_value): Clear 'next' pointer.
657 * breakpoint.c (watch_command_1): Add 'just_location' argument.
658 (watch_command_wrapper): Update.
659 (watch_maybe_just_location): New function.
660 (watch_command): Update.
661 (rwatch_command_wrapper): Update.
662 (rwatch_command): Update.
663 (awatch_command_wrapper): Update.
664 (awatch_command): Update.
665 (check_for_argument): New function.
666 (_initialize_breakpoint): Update help text.
668 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
670 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
671 typedef'ed function types correctly.
673 2010-08-13 Tom Tromey <tromey@redhat.com>
675 * python/python-internal.h (gdbpy_get_hook_function): Don't
678 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
680 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
683 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
685 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
686 the format strings to be compatible with Python 2.4.
688 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
690 Easier and more stubborn MI memory read commands.
692 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
693 and data-write-memory-bytes.
694 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
695 (mi_cmd_data_write_memory_bytes): New.
696 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
697 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
699 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
700 * target.c (target_read_until_error): Remove.
701 (read_whatever_is_readable, free_memory_read_result_vector)
702 (read_memory_robust): New.
703 * target.h (target_read_until_error): Remove.
704 (struct memory_read_result, free_memory_read_result_vector)
705 (read_memory_robust): New.
707 2010-08-13 Hui Zhu <teawater@gmail.com>
709 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
710 (read_comp_unit): Initialize back_to.
712 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
713 Pedro Alves <pedro@codesourcery.com>
715 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
716 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
717 (struct partial_die_info) <has_template_arguments>: New field.
718 <num_attrs>: Change type to unsigned char.
719 <building_fullname>: New field.
720 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
721 allocate a CU if we don't have one already. Add a cleanup for the
723 (partial_die_full_name): Handle template arguments not in
725 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
726 (load_full_comp_unit): Only allocate a CU if we don't have one
728 (do_ui_file_peek_last): New.
729 (dwarf2_compute_name): Handle template parameters not in
731 (read_comp_unit): Read and free abbrevs if not read yet.
732 (load_partial_dies): Handle template arguments not in DW_AT_name.
733 (find_partial_die): If we have a CU, but no a partial dies yet,
735 (dwarf2_const_value_attr): New, abstracted out from
737 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
738 dwarf2_const_value_attr.
739 (determine_prefix): Detect and break loops created by RCVT's debug
741 (maybe_queue_comp_unit): Bail out early if reading partial
743 (follow_die_offset): Load full CU if we have no dies.
744 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
745 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
747 2010-08-11 Tom Tromey <tromey@redhat.com>
748 Phil Muldoon <pmuldoon@redhat.com>
750 * python/python.c (gdbpy_run_events): New function.
751 (gdbpy_post_event): Likewise.
752 (gdbpy_initialize_events): Likewise.
753 (_initialize_python): Call gdbpy_initialize_events.
755 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
757 * gdb/valarith.c (vector_binop): New function.
758 (scalar_binop): Likewise.
759 (value_binop): Call scalar_binop or vector_binop depending on the types.
760 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
761 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
763 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
765 2010-08-11 Brad Roberts <braddr@puremagic.com>
767 * d-lang.c (extract_identifiers): Handle multiple digits.
769 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
772 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
773 Rename to dummy_frame_unwind.
774 (dummy_frame_unwind): Remove.
775 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
776 * frame-unwind.c (frame_unwind_init): Use address of
777 dummy_frame_unwind and inline_frame_unwind.
778 * frame.c (create_sentinel_frame): Use address of
779 sentinel_frame_unwind.
780 * inline-frame.c (inline_frame_unwinder): Rename to
782 (inline_frame_unwind): Remove.
783 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
784 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
785 sentinel_frame_unwind.
786 (sentinel_frame_unwind): Remove.
787 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
790 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
793 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
794 and returned value. New comment from frame-unwind.h.
795 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
797 * frame.c (get_frame_id, frame_unwind_register_value)
798 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
799 (get_frame_type, frame_unwind_arch): Do not use the return value of
800 frame_unwind_find_by_frame.
802 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
803 Thiago Jung Bauermann <bauerman@br.ibm.com>
804 Tom Tromey <tromey@redhat.com>
806 * python/python.c (gdbpy_solib_address): New function.
807 (gdbpy_decode_line): Likewise.
809 2010-08-10 Tom Tromey <tromey@redhat.com>
811 Revert gdb-add-index addition:
812 * Makefile.in (install-only): Don't install gdb-add-index.
813 * gdb-add-index.sh: Remove.
815 2010-08-09 Kevin Buettner <kevinb@redhat.com>
817 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
818 `target_has_execution' check with `to_has_memory' check.
819 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
820 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
821 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
823 2010-08-09 Kevin Buettner <kevinb@redhat.com>
825 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
826 (resume_siggnal, resume_step): Move these static globals...
827 (struct sim_inferior_data): ...into this new struct.
828 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
830 (gdb_callback, callbacks_initialized): Move these globals to
831 a point earlier in the file.
832 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
833 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
834 (gdbsim_close_inferior, gdbsim_resume_inferior)
835 (gdbsim_stop_inferior): New functions.
836 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
838 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
839 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
840 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
841 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
842 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
843 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
844 new local variable `sim_data' in each of these functions. Use
845 `sim_data' to reference former globals `program_loaded',
846 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
848 (gdbsim_open): Remove local variable `argv'. Put results of call
849 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
850 make a cleanup for it. Free it though when a sim instance cannot
852 (gdbsim_close): Free sim_argv and null it out as appropriate.
853 Close sim instances in all inferiors.
854 (gdbsim_cntrl_c): Stop all inferiors.
856 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
858 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
860 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
861 function after symbol construction is complete.
862 Do the same for template symbol addition to template_symbols list.
864 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
866 * symtab.c (symbol_get_demangled_name): Remove assertion and
867 return NULL when language_specific.cplus_specific is not initialized.
868 * stabsread.c (define_symbol): Set the name before calling
869 cp_scan_for_anonymous_namespaces.
871 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
873 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
875 (symbol_init_language_specific): Renamed to symbol_set_language.
876 * symtab.c (symbol_init_language_specific): Removed redundant check
878 Renamed to symbol_set_language.
879 * stabsread.c (define_symbol): Updated.
880 (read_enum_type): Updated
881 * psymtab.c (add_psymbol_to_bcache): Updated.
882 * minsyms.c (install_minimal_symbols): Updated.
883 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
884 SYMBOL_LANGUAGE to set the language.
885 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
886 * mdebugread.c (new_symbol): Ditto.
887 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
888 * dwarf2read.c (new_symbol_full): Ditto.
889 * jv-lang.c (add_class_symbol): Ditto.
891 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
893 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
894 (make_cleanup_restore_page_info)
895 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
896 * gdbcmd.h (execute_command_to_string): New declaration.
897 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
898 (make_cleanup_restore_ui_file): Move to utils.c
899 (execute_gdb_command) <to_string>: Move ...
900 * top.c (execute_command_to_string): ... here. Call
901 set_batch_flag_and_make_cleanup_restore_page_info.
902 * utils.c (make_cleanup_restore_integer): New source file blank line.
903 (make_cleanup_restore_uinteger): New.
904 (struct restore_ui_file_closure, do_restore_ui_file)
905 (make_cleanup_restore_ui_file): Move here from python/python.c.
906 (init_page_info) <batch_flag>
907 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
908 (set_batch_flag_and_make_cleanup_restore_page_info): New.
910 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
912 * thread.c (add_thread_silent): Use null_ptid instead of
913 minus_one_ptid while getting rid of stale inferior_ptid.
915 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
917 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
918 Throughout, call read_encoded_value with ptr_size rather than addr_size.
919 (decode_frame_entry_1): Remove redundant setting of
920 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
921 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
922 on examined frame section. Add comment to explain why.
923 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
924 comment to explain usage.
925 * gdbarch.c: Regenerate.
926 * gdbarch.h: Regenerate.
928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
930 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
933 * varobj.c (varobj_create): Move variables fi, old_fi and block to
936 2010-08-05 Pedro Alves <pedro@codesourcery.com>
938 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
939 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
940 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
941 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
942 linux-tdep.o to gdb_target_obs.
944 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
946 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
949 2010-08-05 Hui Zhu <teawater@gmail.com>
951 * mips-linux-tdep.c(regset.h): New include.
952 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
953 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
954 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
955 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
956 mips_linux_regset_from_core_section): New functions.
957 (fetch_core_registers, regset_core_fns): Deleted.
958 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
959 Deleted regset_core_fns.
960 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
961 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
962 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
965 2010-08-04 Pedro Alves <pedro@codesourcery.com>
967 * s390-tdep.c: Include linux-tdep.h.
968 (s390_gdbarch_init): Call linux_init_abi.
970 2010-08-04 Pedro Alves <pedro@codesourcery.com>
972 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
973 instead of printing "Thread" here.
974 * linux-tdep.c: Include inferior.h.
975 (linux_core_pid_to_str): New.
976 (linux_init_abi): New.
977 * linux-tdep.h (linux_init_abi): Declare.
978 * alpha-linux-tdep.c: Include linux-tdep.h.
979 (alpha_linux_init_abi): Call linux_init_abi.
980 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
981 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
982 * frv-linux-tdep.c: Include linux-tdep.h
983 (frv_linux_init_abi): Call linux_init_abi.
984 * hppa-linux-tdep.c: Include linux-tdep.h
985 (hppa_linux_init_abi): Call linux_init_abi.
986 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
987 * ia64-linux-tdep.c: Include linux-tdep.h.
988 (ia64_linux_init_abi): Call linux_init_abi.
989 * m32r-linux-tdep.c: Include linux-tdep.h.
990 (m32r_linux_init_abi): Call linux_init_abi.
991 * m68klinux-tdep.c: Include linux-tdep.h.
992 (m68k_linux_init_abi): Call linux_init_abi.
993 * microblaze-linux-tdep.c: Include linux-tdep.h.
994 (microblaze_linux_init_abi): Call linux_init_abi.
995 * mips-linux-tdep.c: Include linux-tdep.h.
996 (mips_linux_init_abi): Call linux_init_abi.
997 * mn10300-linux-tdep.c: Include linux-tdep.h.
998 (am33_linux_init_osabi): Call linux_init_abi. Rename the
999 'gdbinfo' parameter to 'info'.
1000 * ppc-linux-tdep.c: Include linux-tdep.h.
1001 (ppc_linux_init_abi): Call linux_init_abi.
1002 * sh-linux-tdep.c: Include linux-tdep.h.
1003 (sh_linux_init_abi): Call linux_init_abi.
1004 * sparc-linux-tdep.c: Include linux-tdep.h.
1005 (sparc32_linux_init_abi): Call linux_init_abi.
1006 * sparc64-linux-tdep.c: Include linux-tdep.h.
1007 (sparc64_linux_init_abi): Call linux_init_abi.
1008 * xtensa-linux-tdep.c: Include linux-tdep.h.
1009 (xtensa_linux_init_abi): Call linux_init_abi.
1010 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1011 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1014 2010-08-03 Doug Evans <dje@google.com>
1016 * breakpoint.c (bpdisp_text): Constify bpdisps.
1017 * solib-svr4.c (solib_break_names): Constify.
1018 (bkpt_names, main_name_list): Constify.
1019 (match_main): Constify soname arg.
1020 (bfd_lookup_symbol): Remove unnecessary forward decl.
1021 Constify symname arg.
1022 (enable_break): Constify bkpt_namep.
1023 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1024 (symtab_symbol_info): Constify classnames.
1026 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1028 * NEWS: Document Python value inferior function calls.
1030 2010-08-02 Doug Evans <dje@google.com>
1032 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1034 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1036 * linux-thread-db.c (libthread_db_debug): New variable.
1037 (thread_db_find_new_threads_silently): Control verbosity with it.
1038 (try_thread_db_load_1, try_thread_db_load): Likewise.
1039 (find_new_threads_once): Likewise.
1040 (_initialize_thread_db): Set/show it.
1042 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1044 * common/signals.c (signals): Move the content to signals.def.
1045 Include it. Remove the INDENT comments.
1047 2010-07-30 Tom Tromey <tromey@redhat.com>
1049 * Makefile.in (install-only): Install gdb-add-index.
1050 * gdb-add-index.sh: New file.
1052 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1054 * MAINTAINERS: Add myself for write after approval privileges.
1056 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1058 * symfile.c (addr_section_name): New function.
1059 (addrs_section_compar): Use it.
1060 (addr_info_make_relative): Use it. Move variable sect_name into a more
1061 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1063 2010-07-30 Tom Tromey <tromey@redhat.com>
1065 * configure: Rebuild.
1066 * configure.ac: Add missing case for Python 2.7.
1068 2010-07-29 DJ Delorie <dj@redhat.com>
1070 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1073 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1075 * PROBLEMS: Remove mention of all problems.
1077 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1080 * configure.ac: Check for wresize.
1081 * configure, config.in: Regenerate.
1082 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1085 2010-07-28 Tom Tromey <tromey@redhat.com>
1088 * python/py-type.c (typy_legacy_template_argument): New function,
1089 extracted from typy_template_argument.
1090 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1093 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1095 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1097 2010-07-27 Tom Tromey <tromey@redhat.com>
1099 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1101 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1103 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1104 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1106 2010-07-28 Tom Tromey <tromey@redhat.com>
1108 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1110 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1112 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1113 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1115 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1117 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1118 down, just before the block that parse the breakpoint addr_string.
1120 2010-07-28 Tom Tromey <tromey@redhat.com>
1123 * symfile.c (reread_symbols): Clear template_symbols.
1124 * symtab.h (struct symbol) <is_cplus_template_function>: New
1126 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1127 (struct template_symbol): New.
1128 * symtab.c (lookup_symbol_aux_local): Use
1129 cp_lookup_symbol_imports_or_template.
1130 * objfiles.h (struct objfile) <template_symbols>: New field.
1131 * objfiles.c (relocate_one_symbol): New function.
1132 (objfile_relocate1): Use it. Relocate isolated symbols.
1133 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1134 template_arguments>: New fields.
1135 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1136 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1137 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1138 (lookup_typename): Update.
1139 * gdbtypes.c (lookup_typename): Constify "block" argument.
1140 * dwarf2read.c: Include vec.h.
1141 (symbolp): New typedef.
1142 (read_func_scope): Read template arguments. Allocate a
1143 template_symbol when needed.
1144 (read_structure_type): Read template arguments.
1145 (new_symbol_full): New function, from new_symbol. Handle
1146 DW_TAG_template_type_param and DW_TAG_template_value_param.
1147 (new_symbol): Rewrite as wrapper.
1148 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1149 * cp-namespace.c: Include language.h.
1150 (search_symbol_list): New function.
1151 (cp_lookup_symbol_imports_or_template): Likewise.
1153 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1155 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1156 the command window to the new size and position.
1158 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1160 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1163 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1165 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1166 after a detecting a resize.
1167 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1170 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1172 * configure.ac: Check for resize_term.
1173 * configure, config.in: Regenerate.
1175 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1177 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1179 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1181 * dwarf2read.c (read_string): Rename to ...
1182 (read_direct_string): ... this.
1183 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1184 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1186 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1188 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1189 (count_events_callback, select_event_lwp_callback)
1190 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1192 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1195 (_initialize_ia64_linux_nat): Install it.
1196 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1197 (linux_nat_set_status_is_event): New.
1198 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1199 cancel_breakpoints_callback, linux_nat_filter_event)
1200 (linux_nat_wait_1): Use linux_nat_status_is_event.
1201 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1203 2010-07-27 Tom Tromey <tromey@redhat.com>
1205 * NEWS: Mention labels, .gdb_index.
1207 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1209 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1210 "start,+length" form of arguments.
1211 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1212 since GDB 7.1"; and merge two separated paragraphs of disassemble
1213 description in "Changes in GDB 7.0".
1215 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1217 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1218 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1219 (fputs_maybe_filtered): Do not do filtering also on
1220 ! INPUT_FROM_TERMINAL_P.
1222 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1224 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1227 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1229 * python/py-value.c (valpy_call): New Function.
1231 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1233 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1234 types_list_elements variables.
1236 2010-07-26 Tom Tromey <tromey@redhat.com>
1238 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1239 TLS with DW_OP_const4u or DW_OP_const8u.
1241 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1243 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1244 VSX registers contents.
1246 2010-07-26 Jerome Guitton <guitton@adacore.com>
1248 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1249 its adress is null. Add comment to explain why.
1250 (new_symbol): Ditto.
1252 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1254 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1255 the host signal first.
1257 2010-07-23 Tom Tromey <tromey@redhat.com>
1259 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1260 type_comp_units>: New fields.
1261 (dw2_get_cu): New function.
1262 (create_cus_from_index): Remove unused argument.
1263 (create_signatured_type_hash_from_index): New function.
1264 (create_addrmap_from_index): Update.
1265 (dwarf2_read_index): Handle version 2.
1266 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1267 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1268 (dw2_print_stats, dw2_expand_all_symtabs)
1269 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1270 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1271 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1272 (allocate_signatured_type_hash_table): New function.
1273 (add_signatured_type_cu_to_list): Likewise.
1274 (create_debug_types_hash_table): Use them. Set type_comp_units.
1275 (read_signatured_type): Ensure section data is available.
1276 (add_address_entry): Don't record empty ranges.
1277 (struct signatured_type_index_data): New.
1278 (write_one_signatured_type): New function.
1279 (write_psymtabs_to_index): Write type CUs.
1280 (save_gdb_index_command): Update comment.
1281 (process_type_comp_unit): Move inititalization of
1283 (create_debug_types_hash_table): ... here.
1285 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1287 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1288 cleanup and generating of gdb script to it.
1289 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1290 and terminal size. Convert $tmpfile to a series of -ex-es.
1292 2010-07-23 Keith Seitz <keiths@redhat.com>
1294 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1295 hook for STATIC_BLOCK types, too.
1297 2010-07-23 Keith Seitz <keiths@redhat.com>
1299 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1300 and vector definition.
1302 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1304 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1306 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1308 * dwarf2read.c: Include completer.h.
1309 (save_gdb_index_command): Use matching usage command name.
1310 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1311 Set filename_completer for it.
1313 2010-07-22 Tom Tromey <tromey@redhat.com>
1315 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1316 type signature's per-CU data.
1318 2010-07-22 Pedro Alves <pedro@codesourcery.com>
1320 * NEWS: Mention target reported shared libraries support by
1323 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1328 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1329 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1330 and DW_TAG_volatile_type.
1331 (new_symbol): Likewise.
1333 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1335 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1336 function symbols before overload resolution.
1338 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1340 * breakpoint.c (bptype_string): New, abstracted out from
1341 print_one_breakpoint_location.
1342 (print_one_breakpoint_location): Adjust.
1343 (breakpoint_1): Adjust the type column width dynamically.
1345 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1347 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1348 a gdb_assert call, new comment.
1350 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1352 * linux-nat.c (linux_handle_extended_wait): Handle case when
1353 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1355 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1358 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1359 linux_nat_wait_1. Use always LP->STATUS afterwards.
1361 2010-07-20 Hui Zhu <teawater@gmail.com>
1363 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1364 (inf_ptrace_attach): Ditto.
1366 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1368 Make core files the process_stratum.
1369 * corefile.c (core_target): New variable.
1370 (core_file_command): Remove variable t, use core_target.
1371 * corelow.c (core_ops): Make it static.
1372 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1373 * defs.h (make_cleanup_unpush_target): New prototype.
1374 * gdbarch.h: Regenerate.
1375 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1376 * gdbcore.h (core_target): New declaration.
1377 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1378 variables ops_already_pushed and back_to. Use push_target,
1379 make_cleanup_unpush_target and discard_cleanups calls.
1380 * record.c (record_open): Replace core_stratum by a core_bfd check.
1381 * target.c (target_is_pushed): New function.
1382 (find_core_target): Remove.
1383 * target.h (enum strata) <core_stratum>: Remove.
1384 (target_is_pushed): New declaration.
1385 (find_core_target): Remove declaration.
1386 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1387 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1389 2010-07-19 Hui Zhu <teawater@gmail.com>
1391 * breakpoint.c (single_step_breakpoints_inserted): New
1393 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1394 * infrun.c (maybe_software_singlestep): Add check code.
1395 * record.c (record_resume): Add code for software single step.
1396 (record_wait): Ditto.
1398 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1400 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1401 a more inner block. Remove its unused declaration initializer.
1403 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1405 * NEWS: Mention support for the new ptrace interface and hardware
1406 accelerated watchpoint conditions on powerpc-linux.
1408 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1410 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1411 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1412 and host_address_to_string() and %s for pointers.
1413 (debug_to_remove_breakpoint): Likewise.
1414 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1415 (debug_to_can_accel_watchpoint_condition): Likewise.
1416 (debug_to_stopped_data_address): Likewise.
1417 (debug_to_watchpoint_addr_within_range): Likewise.
1418 (debug_to_insert_hw_breakpoint): Likewise.
1419 (debug_to_remove_hw_breakpoint): Likewise.
1420 (debug_to_insert_watchpoint): Likewise.
1421 (debug_to_remove_watchpoint): Likewise.
1423 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1425 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1427 (cplus_specific): New struct.
1428 * symtab.c (symbol_set_demangled_name): Updated.
1429 Use cplus_specific for cplus symbols.
1430 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1431 struct for cplus symbols.
1432 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1433 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1434 * symtab.c (symbol_init_cplus_specific): New function.
1436 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1438 * symtab.h (symbol_set_demangled_name): New function.
1439 (symbol_get_demangled_name): New function.
1440 * symtab.c (symbol_set_demangled_name): New function.
1441 (symbol_get_demangled_name): New function.
1442 (symbol_init_language_specific): Use demangled_name setter and getter.
1443 (symbol_set_names): Ditto.
1444 (symbol_natural_name): Ditto.
1445 (symbol_demangled_name): Ditto.
1446 * dwarf2read.c (new_symbol): Ditto.
1448 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1450 * symtab.h: Renamed cplus_specific to mangled_lang.
1451 * symtab.c (symbol_init_language_specific): Updated.
1452 (symbol_set_names): Updated.
1453 (symbol_natural_name): Updated.
1454 (symbol_demangled_name): Updated.
1455 * ada-lang.c (ada_decode_symbol): Updated.
1456 * dwarf2read.c (new_symbol): Updated.
1458 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1460 * valops.c (value_assign): Do not call to value_coerce_to_target.
1461 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1463 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1465 * MAINTAINERS: Add myself for write after approval privileges.
1467 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1469 * c-valprint.c (c_val_print): Add embedded_offset to address in
1470 call to val_print_array_elements.
1472 2010-07-13 Tom Tromey <tromey@redhat.com>
1474 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1476 2010-07-13 Tom Tromey <tromey@redhat.com>
1478 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1481 2010-07-13 Tom Tromey <tromey@redhat.com>
1483 * symfile.c (set_initial_language): Update.
1484 (deduce_language_from_filename): Argument type now const.
1485 * symtab.h (find_main_filename): Update.
1486 (deduce_language_from_filename): Update.
1487 * symtab.c (find_main_filename): Make result const.
1488 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1489 * psymtab.c (find_symbol_file_from_partial): Change return type.
1490 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1493 2010-07-13 Tom Tromey <tromey@redhat.com>
1495 * breakpoint.c (save_cmdlist): No longer static.
1496 * gdbcmd.h (save_cmdlist): Declare.
1497 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1498 OBJF_READNOW on objfile if readnow_symbol_files.
1499 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1500 (elf_sym_fns_gdb_index): New global.
1501 * dwarf2read.c: Include exceptions.h.
1503 (struct mapped_index): New.
1504 (dwarf2_per_cu_data_ptr): New typedef.
1505 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1507 (GDB_INDEX_SECTION): New define.
1508 (struct dwarf2_per_cu_quick_data): New.
1509 (struct dwarf2_per_cu_data) <objfile>: New field.
1512 (byte_swap): New function.
1513 (MAYBE_SWAP): New macro.
1514 (INDEX_SUFFIX): New macro.
1515 (dw2_do_instantiate_symtab): New function.
1516 (dw2_instantiate_symtab): Likewise.
1517 (create_cus_from_index): Likewise.
1518 (create_addrmap_from_index): Likewise.
1519 (mapped_index_string_hash): Likewise.
1520 (find_slot_in_mapped_hash): Likewise.
1521 (dwarf2_read_index): Likewise.
1522 (dw2_setup): Likewise.
1523 (dw2_require_line_header): Likewise.
1524 (dw2_require_full_path): Likewise.
1525 (dw2_find_last_source_symtab): Likewise.
1526 (dw2_forget_cached_source_info): Likewise.
1527 (dw2_lookup_symtab): Likewise.
1528 (dw2_lookup_symbol): Likewise.
1529 (dw2_do_expand_symtabs_matching): Likewise.
1530 (dw2_pre_expand_symtabs_matching): Likewise.
1531 (dw2_print_stats): Likewise.
1532 (dw2_dump): Likewise.
1533 (dw2_relocate): Likewise.
1534 (dw2_expand_symtabs_for_function): Likewise.
1535 (dw2_expand_all_symtabs): Likewise.
1536 (dw2_expand_symtabs_with_filename): Likewise.
1537 (dw2_find_symbol_file): Likewise.
1538 (dw2_map_ada_symtabs): Likewise.
1539 (dw2_expand_symtabs_matching): Likewise.
1540 (dw2_find_pc_sect_symtab): Likewise.
1541 (dw2_map_symbol_names): Likewise.
1542 (dw2_map_symbol_filenames): Likewise.
1543 (dw2_has_symbols): Likewise.
1544 (dwarf2_gdb_index_functions): New global.
1545 (dwarf2_initialize_objfile): New function.
1546 (process_psymtab_comp_unit): Update.
1547 (add_partial_subprogram): Likewise.
1548 (dwarf2_psymtab_to_symtab): Likewise.
1549 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1550 (process_full_comp_unit): Update.
1551 (find_file_and_directory): New function.
1552 (read_file_scope): Use find_file_and_directory.
1553 (dwarf2_per_cu_objfile): Update.
1554 (dwarf2_per_cu_addr_size): Update.
1555 (dwarf2_per_cu_offset_size): Update.
1556 (dwarf2_free_objfile): Free the index, if needed.
1557 (dwarf2_per_objfile_free): Unmap the index, if needed.
1558 (struct strtab_entry): New.
1559 (hash_strtab_entry): New function.
1560 (eq_strtab_entry): Likewise.
1561 (create_strtab): Likewise.
1562 (add_string): Likewise.
1563 (struct symtab_index_entry): New.
1564 (struct mapped_symtab): New.
1565 (hash_symtab_entry): New function.
1566 (eq_symtab_entry): Likewise.
1567 (delete_symtab_entry): Likewise.
1568 (create_index_table): Likewise.
1569 (create_mapped_symtab): Likewise.
1570 (cleanup_mapped_symtab): Likewise.
1571 (find_slot): Likewise.
1572 (hash_expand): Likewise.
1573 (add_index_entry): Likewise.
1574 (add_indices_to_cpool): Likewise.
1575 (write_hash_table): Likewise.
1576 (add_address_entry): Likewise.
1577 (write_psymbols): Likewise.
1578 (write_obstack): Likewise.
1579 (unlink_if_set): Likewise.
1580 (write_psymtabs_to_index): Likewise.
1581 (save_gdb_index_command): Likewise.
1582 (_initialize_dwarf2_read): Install "save gdb-index"
1584 (create_all_comp_units): Initialize 'objfile' field of CU.
1585 (dwarf2_locate_sections): Check for .gdb_index.
1586 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1587 * symfile.h (dwarf2_initialize_objfile): Declare.
1589 2010-07-13 Tom Tromey <tromey@redhat.com>
1591 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1592 (basic_lookup_transparent_type): Likewise.
1593 * symfile.h (struct quick_symbol_functions)
1594 <pre_expand_symtabs_matching>: New field.
1595 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1596 (psym_functions): Update.
1598 2010-07-13 Tom Tromey <tromey@redhat.com>
1600 PR breakpoints/8357:
1601 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1602 * linespec.c (decode_line_1): Update comment. Call decode_label.
1603 (decode_label): New function.
1604 (symbol_found): Handle LOC_LABEL.
1605 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1606 domain. Call add_symbol_to_list.
1608 2010-07-13 Tom Tromey <tromey@redhat.com>
1610 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1611 * dwarf2loc.c (find_location_expression): Use
1612 dwarf2_per_cu_text_offset.
1613 (dwarf2_evaluate_loc_desc): Likewise.
1614 (dwarf2_loc_desc_needs_frame): Likewise.
1615 (compile_dwarf_to_ax): Likewise.
1616 (loclist_describe_location): Likewise.
1617 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1618 (dwarf2_per_cu_objfile): Update comment.
1620 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1622 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1623 * p-lang.c (pascal_printstr): Likewise.
1625 2010-07-09 Tom Tromey <tromey@redhat.com>
1627 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1628 'hint' if it is NULL.
1630 2010-07-09 Hui Zhu <teawater@gmail.com>
1632 * source.c (print_source_lines_base): Add check for noprint.
1634 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1636 * python/python-config.py: Resync with Python 2.7 version of this
1639 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1641 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1643 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1645 * NEWS: Create a new section for the next release branch.
1646 Rename the section of the current branch, now that it has
1649 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1651 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1652 * version.in: Bump version to 7.2.50.20100707-cvs.
1654 2010-07-07 Tom Tromey <tromey@redhat.com>
1656 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1657 LOC_COMPUTED symbol.
1658 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1659 (dwarf2_loc_desc_needs_frame): Likewise.
1660 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1661 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1662 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1663 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1665 (struct dwarf2_frame_cache) <text_offset>: New field.
1666 (dwarf2_frame_cache): Set new field.
1667 (dwarf2_frame_prev_register): Update.
1668 (dwarf2_frame_sniffer): Update.
1669 (dwarf2_frame_base_sniffer): Update.
1670 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1672 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1673 Thiago Jung Bauermann <bauerman@br.ibm.com>
1675 Support for hw accelerated condition watchpoints in booke powerpc.
1677 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1678 and move to eval.c. Change callers.
1679 (insert_bp_location): Pass watchpoint condition in
1680 target_insert_watchpoint.
1681 (remove_breakpoint_1) Pass watchpoint condition in
1682 target_remove_watchpoint.
1683 (watchpoint_locations_match): Call
1684 target_can_accel_watchpoint_condition.
1685 * eval.c: Include wrapper.h.
1686 (fetch_subexp_value): Moved from breakpoint.c.
1687 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1689 (can_use_watchpoint_cond_accel): New function.
1690 (calculate_dvc): Likewise.
1691 (num_memory_accesses): Likewise.
1692 (check_condition): Likewise.
1693 (ppc_linux_can_accel_watchpoint_condition): Likewise
1694 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1695 check_condition and calculate_dvc.
1696 (ppc_linux_remove_watchpoint): Likewise.
1697 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1698 ppc_linux_can_accel_watchpoint_condition
1699 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1701 (debug_to_remove_watchpoint): Likewise.
1702 (debug_to_can_accel_watchpoint_condition): New function.
1703 (update_current_target): Set to_can_accel_watchpoint_condition.
1704 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1705 * target.h: Add opaque declaration for struct expression.
1706 (struct target_ops) <to_insert_watchpoint>,
1707 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1708 <to_can_accel_watchpoint_condition>: New member.
1709 condition. Update all callers and implementations.
1710 (target_can_accel_watchpoint_condition): New macro.
1711 * value.c (free_value_chain): New function.
1712 * value.h (fetch_subexp_value): New prototype.
1713 (free_value_chain): Likewise.
1715 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1717 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1718 from gdbarch_core_regset_sections also for .reg if present.
1720 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1721 section size for .reg.
1722 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1723 (ppc_linux_vmx_regset_sections): Likewise.
1724 (ppc_linux_fp_regset_sections): Likewise.
1725 (ppc64_linux_vsx_regset_sections): New variable.
1726 (ppc64_linux_vmx_regset_sections): Likewise.
1727 (ppc64_linux_fp_regset_sections): Likewise.
1728 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1729 for current word size.
1731 2010-07-06 Joel Brobecker <brobecker@adacore.com>
1733 * server.c (myresume): Make static.
1735 2010-07-06 Tom Tromey <tromey@redhat.com>
1737 * configure, config.in: Rebuild.
1738 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1739 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1741 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1743 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1746 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
1748 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1749 * gdbtypes.c (floatformats_ieee_half): New variable.
1750 * doublest.c (floatformat_from_length): Set format to
1751 gdbarch_half_format if length matches.
1752 * gdbarch.sh (half_bit): New architecture method.
1753 (half_format): Likewise.
1754 * gdbarch.h: Regenerate.
1755 * gdbarch.c: Likewise.
1757 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1758 Joel Brobecker <brobecker@adacore.com>
1760 Fix re-run of PIE executable, PR shlibs/11776.
1761 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1762 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1764 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1765 Joel Brobecker <brobecker@adacore.com>
1767 * auxv.c (memory_xfer_auxv): Update attach comment.
1768 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1769 svr4_relocate_main_executable.
1770 (svr4_solib_create_inferior_hook): Make the call to
1771 svr4_relocate_main_executable unconditional.
1773 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1774 Joel Brobecker <brobecker@adacore.com>
1776 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1778 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1779 Joel Brobecker <brobecker@adacore.com>
1781 Fix attaching to PIEs prelinked on the disk after the process was
1783 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1784 Verify it against bfd_get_arch_size. Try to match arbitrary
1785 displacement for the phdrs comparison.
1787 2010-07-02 Tom Tromey <tromey@redhat.com>
1790 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1791 value as optimized-out.
1793 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1794 Thiago Jung Bauermann <bauerman@br.ibm.com>
1796 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1797 represent?" question in comment. Change comment to a proper sentence.
1799 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
1801 * c-valprint.c (c_val_print): Fix printing of character vectors.
1803 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1805 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1806 create_breakpoint prototype.
1808 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1810 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1811 usefulness suggestion of multiple breakpoints at same location.
1813 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1815 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1817 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1819 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1820 (loclist_tracepoint_var_ref): Handle optimized out values.
1822 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1824 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1825 unnecessary space in string.
1826 * filesystem.c (_initialize_filesystem): Ditto.
1827 * frame.c (_initialize_frame): Ditto.
1828 * infcmd.c (step_once): Ditto.
1829 * infrun.c (_initialize_infrun): Ditto.
1830 * linux-nat.c (linux_child_follow_fork): Ditto.
1831 * maint.c (maintenance_deprecate): Ditto.
1832 * memattr.c (_initialize_mem): Ditto.
1833 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1834 * monitor.c (monitor_open): Ditto.
1835 * procfs.c (procfs_xfer_memory): Ditto.
1836 * reverse.c (bookmarks_info): Ditto.
1837 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1838 * stack.c (_initialize_stack): Ditto.
1839 * tracepoint.c (_initialize_tracepoint): Ditto.
1840 * xtensa-tdep.c (xtensa_supply_gregset,
1841 xtensa_regset_from_core_section): Ditto.
1843 2010-07-01 Tom Tromey <tromey@redhat.com>
1845 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1847 * value.c (value_entirely_optimized_out): Invert result. Update
1848 for new function name.
1850 2010-07-01 Pedro Alves <pedro@codesourcery.com>
1852 Static tracepoints support.
1854 * NEWS: Mention new support for static tracepoints.
1855 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1856 qXfer:statictrace:read.
1857 (New features in the GDB remote stub, GDBserver): Mention static
1858 tracepoints support using an UST based backend.
1859 (New commands): Mention "info static-tracepoint-markers" and
1861 * breakpoint.c (is_marker_spec): New.
1862 (is_tracepoint): Handle static tracepoints.
1863 (validate_commands_for_breakpoint): Static tracepoints can't do
1865 (static_tracepoints_here): New.
1866 (bpstat_what): Handle static tracepoints.
1867 (print_one_breakpoint_location, allocate_bp_location, mention):
1869 (create_breakpoint_sal): Ditto.
1870 (decode_static_tracepoint_spec): New.
1871 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1872 `type_wanted'. Adjust. Handle static tracepoint marker
1874 (break_command_1): Adjust.
1875 (update_static_tracepoint): New.
1876 (update_breakpoint_locations): Handle static tracepoints.
1877 (breakpoint_re_set_one): Handle static tracepoint marker
1879 (disable_command, enable_command): Handle static tracepoints.
1880 (trace_command, ftrace_command): Adjust.
1881 (strace_command): New.
1882 (create_tracepoint_from_upload): Adjust.
1883 (save_breakpoints): Handle static tracepoints.
1884 (_initialize_breakpoint): Install the "strace" command.
1885 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1886 (struct breakpoint): New fields static_trace_marker_id and
1887 static_trace_marker_id_idx.
1888 (breakpoints_here_p): Declare.
1889 (create_breakpoint): Adjust.
1890 (static_tracepoints_here): Declare.
1891 * remote.c (struct remote_state) <static_tracepoints>: New field.
1892 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1893 (remote_static_tracepoint_marker_at): New.
1894 (remote_static_tracepoint_markers_by_strid): New.
1895 (remote_static_tracepoint_feature): New.
1896 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1897 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1898 (remote_supports_static_tracepoints): New.
1899 (remote_download_tracepoint): Download static tracepoints.
1900 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1901 remote_static_tracepoint_markers_by_strid.
1902 (_initialize_remote): Install set|show remote static-tracepoints,
1903 and set|show remote read-sdata-object commands.
1904 * target.c (update_current_target): Inherit and default
1905 to_static_tracepoint_marker_at, and
1906 to_static_tracepoint_markers_by_strid.
1907 * target.h (static_tracepoint_marker): Forward declare.
1908 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1909 (static_tracepoint_marker_p): New typedef.
1910 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1911 (struct target_ops): New fields to_static_tracepoint_marker_at and
1912 to_static_tracepoint_markers_by_strid.
1913 (target_static_tracepoint_marker_at)
1914 (target_static_tracepoint_markers_by_strid): New.
1915 * tracepoint.c: Include source.h.
1916 (validate_actionline): Handle $_sdata.
1917 (struct collection_list): New field strace_data.
1918 (add_static_trace_data): New.
1919 (clear_collection_list): Clear strace_data.
1920 (stringify_collection_list): Account for a possible static trace
1922 (encode_actions_1): Encode an $_sdata collection.
1923 (parse_tracepoint_definition): Handle static tracepoints.
1924 (parse_static_tracepoint_marker_definition): New.
1925 (release_static_tracepoint_marker): New.
1926 (print_one_static_tracepoint_marker): New.
1927 (info_static_tracepoint_markers_command): New.
1928 (sdata_make_value): New.
1929 (_initialize_tracepoint): Create the $_sdata convenience variable.
1930 Add the "info static-tracepoint-markers" command.
1931 Mention $_sdata in the "collect" command's help output.
1932 * tracepoint.h (struct static_tracepoint_marker): New.
1933 (parse_static_tracepoint_marker_definition)
1934 (release_static_tracepoint_marker): Declare.
1935 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1936 * python/py-breakpoint.c (bppy_new): Adjust.
1938 2010-06-30 Joel Brobecker <brobecker@adacore.com>
1940 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1943 2010-06-29 Doug Evans <dje@google.com>
1946 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1947 DW_AT_external is present.
1951 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1952 create a symbol for the field and record the value.
1953 (new_symbol): Handle DW_TAG_member.
1954 * gdbtypes.c (field_is_static): Remove FIXME.
1955 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1956 only ignore LOC_CONST symbols that are enums.
1958 * dwarf2read.c: Remove trailing whitespace.
1960 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1961 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1962 (struct main_type, field loc): Delete dwarf_block.
1963 (FIELD_DWARF_BLOCK): Delete.
1964 (SET_FIELD_DWARF_BLOCK): Delete.
1965 (TYPE_FIELD_DWARF_BLOCK): Delete.
1966 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1969 2010-06-29 Hui Zhu <teawater@gmail.com>
1971 * record.c (set_record_pic_cmdlist,
1972 show_record_pic_cmdlist): New variables.
1973 (set_record_pic_command,
1974 show_record_pic_command): New functions.
1975 (record_pic_function, record_pic_line, record_pic_enum,
1976 set_record_pic_type, record_pic_hide_nofunction,
1977 record_pic_hide_nosource, record_pic_hide_same): New variables.
1978 (record_pic_fputs): New function.
1979 (function_list, node_list, edge_list): New struct.
1980 (function_list, node_list, edge_list): New variables.
1981 (record_pic_cleanups, record_pic_node,
1982 record_pic_edge, cmd_record_pic): New functions.
1983 (_initialize_record): Add new commands for record pic.
1985 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1987 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1988 ALLOCATE_CPLUS_STRUCT_TYPE.
1990 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
1991 Tom Tromey <tromey@redhat.com>
1992 Thiago Jung Bauermann <bauerman@br.ibm.com>
1994 * value.c (pack_unsigned_long): New function.
1995 (value_from_ulongest): New function.
1996 * value.h (value_from_ulongest): Declare.
1997 * python/python.c (_initialize_python): Call
1998 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1999 * python/python-internal.h: Define thread_object.
2000 (gdbpy_inferiors, gdbpy_selected_thread)
2001 (frame_info_to_frame_object, create_thread_object)
2002 (find_thread_object, find_inferior_object)
2003 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2004 (gdbpy_is_value_object, get_addr_from_python): Declare.
2005 * python/py-value.c (builtin_type_upylong): Define.
2006 (convert_value_from_python): Add logic for ulongest.
2007 (gdbpy_is_value_object): New function.
2008 * python/py-utils.c (get_addr_from_python): New function.
2009 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2010 (gdbpy_selected_frame): Use PyObject over frame_info.
2011 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2013 (SUBDIR_PYTHON_SRCS): Likewise.
2014 (py-inferior.o): New Rule.
2015 (py-infthread.o): New Rule.
2016 * python/py-inferior.c: New File.
2017 * python/py-infthread.c: New File.
2019 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2021 * c-typeprint.c (c_type_print_base): For no fields check include also
2022 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2023 * dwarf2read.c (struct typedef_field_list)
2024 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2025 (dwarf2_add_typedef): New.
2026 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2027 Copy also FI.TYPEDEF_FIELD_LIST.
2028 * gdbtypes.h (struct typedef_field)
2029 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2030 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2031 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2033 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2035 * cp-namespace.c (cp_lookup_nested_type): New variable
2036 concatenated_name. Turn the current return condition into a reverse
2037 one. Call also lookup_static_symbol_aux on the constructed qualified
2039 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2040 other files into a called ...
2041 (lookup_static_symbol_aux): ... new function here.
2042 * symtab.h (lookup_static_symbol_aux): New prototype.
2043 * valops.c (value_maybe_namespace_elt): Call also
2044 lookup_static_symbol_aux if we failed otherwise.
2046 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2048 Fix PR c++/11703 and PR gdb/1448.
2049 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2052 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2054 Fix modification of cplus_struct_default.
2055 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2056 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2057 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2059 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2061 * NEWS: Add entry announcing the python directory.
2063 2010-06-28 Tom Tromey <tromey@redhat.com>
2065 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2067 2010-06-28 Doug Evans <dje@google.com>
2069 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2070 All callers updated.
2072 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2074 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2075 obstack_begin after each obstack_free.
2077 2010-06-27 Doug Evans <dje@google.com>
2079 * value.c (value_static_field): Use `switch' instead of `if'.
2080 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2082 * valops.c (search_struct_field): Fix typo in error message.
2084 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2086 * dwarf2expr.c (execute_stack_op): Place preprocessor
2087 directives at the start of the source line.
2089 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2091 * defs.h (make_command_stats_cleanup): Declare.
2092 (set_display_time): Declare.
2093 (set_display_space): Declare.
2094 * event-top.c (command_handler): Use make_command_stats_cleanup.
2095 * main.c (display_time, display_space): Move definitions to utils.c.
2096 (captured_main): Use make_command_stats_cleanup to get start-up
2098 Use set_display_time and set_display_space for processing OPT_STATISTICS
2100 * maint.c (maintenance_time_display): Use set_display_time.
2101 (maintenance_space_display): Use set_display_space.
2102 * top.c (execute_command): Remove obsolete 'maint time' code.
2103 (command_loop): Use make_command_stats_cleanup.
2104 * utils.c (struct cmd_stats): Structure for storing initial time
2106 (display_time, display_space): Move definitions here from utils.c.
2107 (set_display_time): New function.
2108 (set_display_space): New function.
2109 (make_command_stats_cleanup): New function.
2110 (report_command_stats): New auxiliary function for
2111 make_command_stats_cleanup.
2113 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2115 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2116 hosts where CORE_ADDR is long long.
2118 2010-06-25 Tom Tromey <tromey@redhat.com>
2121 * python/python.c (execute_gdb_command): Add keywords. Accept
2122 "to_string" argument.
2123 (struct restore_ui_file_closure): New.
2124 (restore_ui_file): New function.
2125 (make_cleanup_restore_ui_file): Likewise.
2126 (GdbMethods) <execute>: Update.
2128 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2130 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2131 during inferior call stack frame setup.
2133 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2135 * solib-spu.c: Include "exception.h".
2136 (ocl_program_data_key): New variable.
2137 (append_ocl_sos): New function.
2138 (ocl_enable_break): Likewise.
2139 (spu_current_sos): Call append_ocl_sos.
2140 (spu_solib_loaded): Call ocl_enable_break.
2141 (_initialize_spu_solib): Register ocl_program_data_key.
2143 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2145 * cp-support.c (reset_directive_searched): New function.
2146 (make_symbol_overload_list_using): Prevent recursive calls.
2148 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2150 * printcmd.c (print_variable_and_value): Print error message on
2153 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2155 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2157 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2159 (dwarf_expr_push): Change input type to ULONGEST.
2160 (dwarf_expr_fetch): Change return type to ULONGEST.
2161 (dwarf_expr_fetch_address): Add prototype.
2162 (dwarf2_read_address): Remove prototype.
2163 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2164 Truncate stack values to ctx->addr_size bytes.
2165 (dwarf_expr_fetch): Change return value to ULONGEST.
2166 (dwarf_expr_fetch_address): New function.
2167 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2168 when appropriate. Update for struct dwarf_expr_piece changes.
2169 (dwarf2_read_address): Remove.
2170 (unsigned_address_type): Remove.
2171 (signed_address_type): Remove.
2172 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2173 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2174 values. Perform operations on ULONGEST instead of on GDB values,
2175 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2176 values and DW_OP_deref results as unsigned integers.
2177 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2179 (write_pieced_value): Likewise.
2180 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2181 dwarf_expr_fetch when appropriate.
2182 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2183 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2184 instead of dwarf_expr_fetch when appropriate.
2186 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2188 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2190 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2192 * python/python.c (_initialize_python): Add new "constant"
2193 PYTHONDIR in gdb module. Insert this path at the head of
2194 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2195 exec its __init__.py script if it exists in that directory.
2197 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2199 * rx-tdep.c (RX_ACC_REGNUM): Define.
2200 (RX_NUM_REGS): Redefine to 26.
2201 (rx_register_name): Add register "acc". Change order of several
2202 registers. Change name of "vct" register to "fintv" to match RX
2204 (rx_register_type): Add case for RX_ACC_REGNUM.
2206 2010-06-24 Tom Tromey <tromey@redhat.com>
2208 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2210 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2211 Tom Tromey <tromey@redhat.com>
2213 Fix GDB startup on readonly filesystem.
2214 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2216 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 Pedro Alves <pedro@codesourcery.com>
2220 * breakpoint.c (handle_jit_event): New function.
2221 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2222 jit, err, table and bs_class. New variables shlib_event, jit_event,
2223 this_action and bptype. Change bs_class assignments to this_action
2224 assignments. new unhandled bptype internal error. Move here
2225 shlib_event and jit_event handling from handle_inferior_event.
2226 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2227 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2228 BPSTAT_WHAT_CHECK_JIT.
2229 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2230 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2231 (handle_inferior_event): Reinitialize frame and gdbarch after
2232 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2233 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2234 gdbarch when frame gets reinitialized.
2236 2010-06-24 Hui Zhu <teawater@gmail.com>
2238 * printcmd.c (ui_printf): New function.
2239 (printf_command): Call ui_printf.
2240 (_initialize_printcmd): New command "eval".
2242 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2244 * infrun.c (handle_inferior_event): Handle presence of single-step
2245 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2246 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2247 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2248 * breakpoint.c (detach_single_step_breakpoints): New function.
2249 (detach_breakpoints): Call it.
2250 (cancel_single_step_breakpoints): New function.
2251 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2253 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2254 (spu_gdbarch_init): Install it.
2256 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2259 * configure: Regenerate.
2261 2010-06-22 Hui Zhu <teawater@gmail.com>
2263 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2264 (i386_process_record): Ditto.
2265 * record.c (record_memory_query): New variable.
2266 (_initialize_record): New command "set record memory-query".
2267 * record.h (record_memory_query): New extern.
2269 2010-06-21 Doug Evans <dje@google.com>
2271 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2272 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2273 (i386_syscall_p): Change type of lengthp to int.
2274 (i386_displaced_step_fixup): Handle kernels that run one past a
2276 * i386-linux-tdep.c (i386_linux_init_abi): Use
2277 i386_displaced_step_copy_insn instead of
2278 simple_displaced_step_copy_insn.
2280 2010-06-21 Tom Tromey <tromey@redhat.com>
2282 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2283 (dwarf_type_encoding_name): Likewise.
2285 2010-06-21 Tom Tromey <tromey@redhat.com>
2287 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2288 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2289 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2290 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2291 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2292 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2293 * dwarf2read.c (tag_type_to_type): Create a new error type on
2295 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2296 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2298 2010-06-21 Michael Snyder <msnyder@vmware.com>
2300 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2301 not add_abbrev_prefix_cmd, for "enable breakpoints".
2303 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2305 * dwarf2loc.c (find_location_expression): Add relocation offset
2306 to base-address-selection entry base addresses. Read addresses
2307 (and offsets) as signed/unsigned integers, depending on the
2308 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2309 (loclist_describe_location): Likewise.
2310 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2311 unsigned integer. Do not call dwarf2_read_address.
2312 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2314 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2316 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2317 value instead of hard-coded SPU_LS_SIZE.
2318 (spu_software_single_step): Likewise.
2319 * spu-tdep.h (SPU_LS_SIZE): Remove.
2321 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2323 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2324 limit on local store memory accesses.
2325 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2326 * spu-tdep.c (spu_lslr): Remove.
2327 (spu_pointer_to_address): Do not truncate addresses.
2328 (spu_integer_to_address): Likewise.
2329 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2330 * spu-tdep.h: Add comments.
2331 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2332 (SPU_OVERLAY_LMA): Define.
2334 2010-06-18 Stan Shebs <stan@codesourcery.com>
2336 * osdata.c (get_osdata): Warn separately if target does not report
2338 (info_osdata_command): Allow empty type, report error if target
2339 does not return available types of OS data.
2340 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2341 types if no annex supplied.
2343 * thread.c (thread_id_make_value): Make a value representing the
2345 (_initialize_thread): Create $_thread.
2347 2010-06-17 Joel Brobecker <brobecker@adacore.com>
2349 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2350 last local variable declaration. No real code change.
2352 2010-06-17 Tom Tromey <tromey@redhat.com>
2354 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2355 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2358 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2359 Jan Kratochvil <jan.kratochvil@redhat.com>
2361 * breakpoint.c: Include parser-defs.h.
2362 (watchpoint_exp_is_const): New function.
2363 (watch_command_1): Call watchpoint_exp_is_const to check
2364 if the expression is constant.
2366 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2368 * configure.ac: Check for RDYNAMIC also for cross builds.
2369 * configure: Regenerate.
2371 2010-06-15 Pedro Alves <pedro@codesourcery.com>
2373 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2374 (SFILES): Remove solib-null.c, add solib-target.c.
2375 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2376 (ALLDEPFILES): Remove solib-target.c.
2377 * solib-target.c (_initialize_solib_target): Set
2378 current_target_so_ops to solib_target_so_ops if not already set.
2379 * solib-null.c: Delete.
2381 2010-06-14 Pedro Alves <pedro@codesourcery.com>
2383 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2386 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2388 * cp-valprint.c (cp_print_static_field): Members of
2389 dont_print_stat_array_obstack are of type "struct type *".
2390 (_initialize_cp_valprint): Likewise.
2392 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2394 * frame.c (frame_register_unwind): Do not access contents
2395 of "optimized out" unwound register value.
2397 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 * ada-lang.h (ada_print_type): Make varstring const.
2400 * ada-typeprint.c (print_func_type): Make name const.
2401 (ada_print_type): Make varstring const.
2402 * c-lang.h (c_print_type): Make varstring const.
2403 * c-typeprint.c (c_print_type): Likewise.
2404 * f-lang.h (f_print_type): Likewise.
2405 * f-typeprint.c (f_print_type): Likewise.
2406 * jv-lang.h (java_print_type): Likewise.
2407 * jv-typeprint.c (java_print_type): Likewise.
2408 * language.c (unk_lang_print_type): Likewise.
2409 * language.h (struct language_defn) <la_print_type>: Likewise.
2410 * m2-lang.h (m2_print_type): Likewise.
2411 * m2-typeprint.c (m2_print_type): Likewise.
2412 * p-lang.h (pascal_print_type): Likewise.
2413 * p-typeprint.c (pascal_print_type): Likewise.
2415 2010-06-11 Stan Shebs <stan@codesourcery.com>
2417 Add per-operation permission flags.
2419 * target.h (struct target_ops): New method to_set_permissions.
2420 (target_set_permissions): New macro.
2421 (target_insert_breakpoint): Change macro to function.
2422 (target_remove_breakpoint): Ditto.
2423 (target_stop): Ditto.
2424 (may_write_registers): Declare.
2425 (may_write_memory): Declare.
2426 (may_insert_breakpoints): Declare.
2427 (may_insert_tracepoints): Declare.
2428 (may_insert_fast_tracepoints): Declare.
2429 (may_stop): Declare.
2430 * target.c (may_write_registers, may_write_registers_1): New globals.
2431 (may_write_memory, may_write_memory_1): New globals.
2432 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2433 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2434 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2436 (may_stop, may_stop_1): New global.
2437 (target_xfer_partial): Test for write permission.
2438 (target_store_registers): Ditto.
2439 (target_insert_breakpoint): New function.
2440 (target_remove_breakpoint): New function.
2441 (target_stop): New function.
2442 (_initialize_targets): Add new set/show variables.
2443 (set_write_memory_permission): New function.
2444 (update_target_permissions): New function.
2445 (set_target_permissions): New function.
2446 (update_current_target): Default to_set_permissions.
2447 (_initialize_targets): Use new globals and setter function.
2448 * tracepoint.c (start_tracing): Test for permission.
2449 * inferior.h (update_observer_mode): Declare.
2450 * infrun.c (non_stop_1): Define earlier.
2451 (observer_mode, observer_mode_1): New globals.
2452 (set_observer_mode, show_observer_mode): New functions.
2453 (update_observer_mode): New function.
2454 (_initialize_infrun): Define "set observer" command.
2455 * remote.c (PACKET_QAllow): New optional packet.
2456 (remote_protocol_features): Add QAllow.
2457 (remote_set_permissions): New function.
2458 (remote_start_remote): Call it.
2459 (init_remote_ops): Add it to target vector.
2460 (_initialize_remote): Add config command for QAllow.
2462 2010-06-11 Tom Tromey <tromey@redhat.com>
2464 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2465 DW_AT_vtable_elem_location even when GCC extension is seen.
2467 2010-06-11 Tom Tromey <tromey@redhat.com>
2469 PR gdb/9977, PR exp/11636:
2470 * value.h (value_offset): Update.
2471 (struct lval_funcs) <check_validity>: New field.
2472 <copy_closure>: Make argument const.
2473 (value_computed_closure): Update.
2474 (value_contents_for_printing): Declare.
2475 (value_bits_valid): Likewise.
2476 (val_print): Likewise.
2477 (set_value_component_location): Update.
2478 (value_entirely_optimized_out): Declare.
2479 * value.c (value_offset): Argument now const.
2480 (require_not_optimized_out): New function.
2481 (value_contents_for_printing): New function.
2482 (value_contents_all): Call require_not_optimized_out.
2483 (value_contents): Likewise.
2484 (value_bits_valid): New function.
2485 (value_computed_closure): Argument now const.
2486 (set_value_component_location): Make 'whole' argument const.
2487 (value_entirely_optimized_out): New function.
2488 (value_bitsize): Argument now 'const'.
2489 (value_bitpos): Likewise.
2490 (value_type): Likewise.
2491 * valprint.h (val_print_array_elements): Update.
2492 * valprint.c (val_print): Add 'val' argument. Use
2493 valprint_check_validity.
2494 (valprint_check_validity): New function.
2495 (value_check_printable): Use value_entirely_optimized_out.
2496 (common_val_print): Update.
2497 (value_print): Likewise.
2498 (val_print_array_elements): Add 'val' argument.
2499 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2500 value_bits_valid. Reinit frame cache for lval_computed.
2501 * sh64-tdep.c (sh64_do_register): Update.
2502 * scm-valprint.c (scm_val_print): Add 'val' argument.
2503 * scm-lang.h (scm_val_print): Update.
2504 * python/python.h (apply_val_pretty_printer): Update.
2505 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2506 argument. Call set_value_component_location.
2507 * printcmd.c (print_scalar_formatted): Update.
2508 * p-valprint.c (pascal_val_print): Add 'val' argument.
2509 (pascal_object_print_value_fields): Likewise.
2510 (pascal_object_print_value): Likewise.
2511 (pascal_object_print_static_field): Update.
2512 * p-lang.h (pascal_val_print): Update.
2513 (pascal_object_print_value_fields): Update.
2514 * mt-tdep.c (mt_registers_info): Update.
2515 * mi/mi-main.c (get_register): Update.
2516 (mi_cmd_data_evaluate_expression): Use common_val_print.
2517 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2518 (m2_print_unbounded_array): Likewise.
2519 (m2_val_print): Likewise.
2520 * m2-lang.h (m2_val_print): Update.
2521 * language.h (struct language_defn) <la_val_print>: Add 'val'
2523 (LA_VAL_PRINT): Likewise.
2524 * language.c (unk_lang_val_print): Add 'val' argument.
2525 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2526 (java_val_print): Likewise.
2527 * jv-lang.h (java_val_print): Add 'val' argument.
2528 * infcmd.c (default_print_registers_info): Update.
2529 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2530 (f77_print_array): Likewise.
2531 (f_val_print): Likewise.
2532 * f-lang.h (f_val_print): Add 'val' argument.
2533 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2535 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2536 set_value_optimized_out.
2537 (write_pieced_value): Use value_bitsize and value_bitpos.
2538 <default>: Don't exit loop.
2539 (check_pieced_value_validity): New function.
2540 (pieced_value_funcs): Reference check_pieced_value_validity,
2541 check_pieced_value_invalid.
2542 (copy_pieced_value_closure): Update.
2543 (check_pieced_value_bits): New function.
2544 (check_pieced_value_invalid): New function.
2545 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2546 (d_val_print): Likewise.
2547 * d-lang.h (d_val_print): Update.
2548 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2549 (cp_print_value_fields_rtti): Likewise.
2550 (cp_print_value): Likewise.
2551 (cp_print_static_field): Update.
2552 * c-valprint.c (c_val_print): Add 'val' argument.
2553 (c_value_print): Update.
2554 * c-lang.h (c_val_print): Update.
2555 (cp_print_value_fields): Likewise.
2556 (cp_print_value_fields_rtti): Likewise.
2557 * ada-valprint.c (struct ada_val_print_args): Remove.
2558 (val_print_packed_array_elements): Add 'val' argument.
2559 (ada_val_print): Likewise. Rewrite.
2560 (ada_val_print_stub): Remove.
2561 (ada_val_print_array): Add 'val' argument.
2562 (ada_val_print_1): Likewise.
2563 (print_variant_part): Likewise.
2564 (ada_value_print): Update.
2565 (print_record): Add 'val' argument.
2566 (print_field_values): Likewise.
2567 * ada-lang.h (ada_val_print): Update.
2569 2010-06-11 Tom Tromey <tromey@redhat.com>
2571 * vec.h (VEC_cleanup): New macro.
2572 (DEF_VEC_ALLOC_FUNC_I): Update.
2573 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2574 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2575 * dwarf2loc.c (struct axs_var_loc): Remove.
2576 (unimplemented): New function.
2577 (translate_register): Likewise.
2578 (access_memory): Likewise.
2579 (compile_dwarf_to_ax): Likewise.
2580 (dwarf2_tracepoint_var_loc): Remove.
2581 (dwarf2_tracepoint_var_access): Likewise.
2582 (dwarf2_tracepoint_var_ref): Likewise.
2583 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2584 (loclist_tracepoint_var_ref): Likewise.
2585 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2586 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2587 require_composition. No longer static.
2588 (execute_stack_op): Update.
2589 * ax-gdb.h (trace_kludge): Declare.
2591 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2593 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2594 (should_be_inserted): Return zero also on NULL OWNER.
2595 (breakpoint_program_space_exit): New OWNER comment.
2596 (insert_breakpoint_locations): Extend comment for OWNER.
2597 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2598 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2600 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2601 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2602 (bpstat_check_location): New assert on OWNER.
2603 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2604 and B initializations to the code block. New assert on them.
2605 (print_one_breakpoint_location): New OWNER comment.
2606 (watchpoint_locations_match): Assert on OWNER.
2607 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2608 initializations to the code block. New assert on OWNER.
2609 (set_breakpoint_location_function): New assert on OWNER.
2610 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2611 (bp_location_compare, update_global_location_list)
2612 (update_global_location_list): New OWNER comment.
2614 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2616 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2618 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2620 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2621 (lin_thread_get_thread_signals): Remove prototype.
2622 (GET_THREAD_SIGNALS): Remove.
2623 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2624 * linux-thread-db.c (check_thread_signals): Directly call
2625 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2627 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2629 * gregset.h (GDB_FPXREGSET_T): Remove.
2630 (gdb_fpxregset_t): Likewise.
2631 (supply_fpxregset): Remove prototype.
2632 (fill_fpxregset): Likewise.
2633 * i386-linux-nat.c (supply_fpxregset): Remove.
2634 (fill_fpxregset): Likewise.
2635 (fetch_fpxregs): Inline supply_fpxregset call.
2636 (store_fpxregs): Inline fill_fpxregset call.
2638 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2639 * config/i386/nm-linux.h: Remove file.
2641 2010-06-09 Michael Snyder <msnyder@vmware.com>
2643 * target.c (update_current_target): Fix spelling error in comment.
2644 (target_mourn_inferior): Fix spelling error in error message.
2646 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2648 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2649 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2651 2010-06-08 Michael Snyder <msnyder@vmware.com>
2653 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2655 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2657 * configure.ac <"${have_libpython}" != no>: New workaround of
2659 * configure: Regenerate.
2661 2010-06-08 Hui Zhu <teawater@gmail.com>
2663 * record.c (record_wait): Move signal out of replay code.
2665 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2668 * dwarf2-frame.c (no_dwarf_call): New function.
2669 (execute_stack_op): Set CTX->DWARF_CALL.
2670 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2671 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2672 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2673 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2674 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2675 (needs_frame_dwarf_call): New function.
2676 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2677 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2678 Update the comment. Move variables die, offset and error call to ...
2679 (follow_die_ref): ... a new function.
2680 (dwarf2_fetch_die_location_block): New function.
2681 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2683 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2685 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2686 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2687 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2688 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2690 (struct needs_frame_baton): New field per_cu.
2691 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2692 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2694 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2696 * cp-support.c (make_symbol_overload_list_namespace): Only search
2697 static and global blocks.
2698 (make_symbol_overload_list_block): New function.
2699 (make_symbol_overload_list): Separate namespace search from block
2701 (make_symbol_overload_list_qualified): Use
2702 make_symbol_overload_list_block.
2704 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2706 * value.h: Created oload_search_type enum.
2707 (find_overload_match): Use oload_search_type enum.
2708 * valops.c (find_overload_match): Support combined member and
2710 * eval.c (evaluate_subexp_standard): Calls to
2711 find_overload_match now use oload_search_type enum.
2712 (oload_method_static): Verify index is a proper value.
2713 * valarith.c (value_user_defined_cpp_op): Search for and handle
2714 both member and non-member operators.
2715 (value_user_defined_cpp_op): New function.
2716 (value_user_defined_op): New function.
2717 (value_x_unop): Use value_user_defined_op.
2718 (value_x_binop): Ditto.
2719 * cp-support.c (make_symbol_overload_list_using): Added block
2721 Add check for namespace aliases and imported declarations.
2723 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2725 * breakpoint.h (owner): Extend the comment.
2727 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2729 Clear stale specific bp_location from former whole breakpoint.
2730 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2732 (free_bp_location): ... here. Rename there the called function to
2733 bpstat_remove_bp_location_callback.
2734 (bpstat_remove_breakpoint_callback): Rename to ...
2735 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2736 to struct bp_location. Change the called function to
2737 bpstat_remove_bp_location. Create new declaration for the function.
2738 (bpstat_remove_breakpoint): Rename to ...
2739 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2740 code for the new parameter type.
2742 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2744 * README: Make version-agnostic.
2746 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2748 Fix duplicate types for single DIE.
2749 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2751 (read_array_type): Remove type initialization. Recheck get_die_type
2752 after initial die_type. Move set_die_type before set_descriptive_type.
2753 (read_set_type): New variable domain_type. Recheck get_die_type after
2754 initial die_type. Move attr initialization later.
2755 (read_tag_pointer_type, read_tag_reference_type): New variable
2756 target_type. Recheck get_die_type after initial die_type.
2757 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2758 die_type and die_containing_type.
2759 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2760 Recheck get_die_type after initial die_type.
2761 (read_subrange_type): Recheck get_die_type after initial die_type.
2762 Move set_die_type before set_descriptive_type.
2763 (set_die_type): Extend the function comment. Call complaint if DIE has
2764 some type already set.
2766 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2768 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2769 for current naming of thread groups (iN, not N).
2771 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2773 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2774 * parse.c (operator_length): Likewise.
2775 (operator_length_standard): Likewise.
2776 * parser-defs.h (operator_length): Likewise.
2777 (operator_length_standard): Likewise.
2778 (struct exp_descriptor <operator_length>): Likewise.
2780 2010-06-04 Doug Evans <dje@google.com>
2782 Add support for enabling/disabling individual pretty-printers.
2783 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2784 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2785 * python/python.c (gdbpy_enabled_cst): Define.
2786 (_initialize_python): Initialize gdbpy_enabled_cst.
2789 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2791 * breakpoint.c (update_global_location_list): Fix comment typo.
2793 2010-06-04 Hui Zhu <teawater@gmail.com>
2795 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2797 2010-06-03 Doug Evans <dje@google.com>
2799 * configure.ac: Don't fail if python is unusable when
2800 configured with --with-python=auto.
2801 * configure: Regenerate.
2803 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2805 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2807 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2809 * valprint.h (get_array_bounds): Change low and high parameter types
2811 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
2813 (val_print_array_elements): Adapt to change above.
2814 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2815 * p-valprint.c (pascal_val_print): Likewise.
2817 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2819 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2820 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2823 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2825 Support DW_TAG_module as separate namespaces.
2826 * dwarf2read.c (typename_concat): New parameter physname.
2827 (read_module_type): New function and declaration.
2828 (scan_partial_symbols): Scan also DW_TAG_module children.
2829 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2830 to typename_concat backward compatible physname value 0.
2831 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2832 backward compatible physname value 0.
2833 (add_partial_module, read_module): Remove FIXME comment.
2834 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2835 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2836 DIEs under DW_TAG_module.
2837 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2838 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2839 && physname and return there instead of just setting NAME. Extend
2840 the main block for language_fortran. Pass physname parameter to the
2841 typename_concat call.
2842 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2843 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2844 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2845 missing from SYMBOL_SET_NAMES in the language_fortran case.
2846 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2848 (read_type_die) <DW_TAG_module>: New.
2849 (MAX_SEP_LEN): Increase to 7.
2850 (typename_concat): New parameter physname. New variable lead. Support
2851 also language_fortran.
2852 * f-exp.y (yylex): Consider : also as a symbol name character class.
2853 * f-lang.c: Include cp-support.h.
2854 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2855 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2856 f_word_break_characters and f_make_symbol_completion_list.
2857 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2858 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2859 * symtab.c (symbol_init_language_specific): Support language_fortran.
2860 (symbol_find_demangled_name): New comment on language_fortran.
2861 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2862 for language_fortran.
2863 (lookup_symbol_aux_local): Check imports also for language_fortran.
2864 (default_make_symbol_completion_list): Rename to ...
2865 (default_make_symbol_completion_list_break_on): ... this name. New
2866 parameter break_on, use it.
2867 (default_make_symbol_completion_list): New stub.
2868 * symtab.h (default_make_symbol_completion_list_break_on): New
2871 2010-06-02 Joel Brobecker <brobecker@adacore.com>
2873 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2876 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2878 * dwarf2read.c (typename_concat): Add const to the variable sep.
2880 2010-06-02 Tom Tromey <tromey@redhat.com>
2882 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2883 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2884 type is const. Add 'def' argument. Add missing operators, remove
2886 (decode_locdesc): Update.
2887 (dwarf2_always_disassemble): New global.
2888 (show_dwarf2_always_disassemble): New function.
2889 (_initialize_dwarf2_read): Add always-disassemble.
2890 (dwarf2_per_cu_offset_size): New function.
2891 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2892 (piece_end_p): New function.
2893 (locexpr_describe_location_piece): Replace 'size' argument with
2894 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2895 some constants. Remove errors.
2896 (disassemble_dwarf_expression): New function.
2897 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2898 Add 'offset_size' argument.
2899 (loclist_describe_location): Change output formatting.
2900 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2902 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2904 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2905 anonymous type case.
2907 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2909 * dwarf2read.c (read_subrange_type): Handle missing base type
2910 according to Dwarf-2 specifications.
2912 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2914 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2916 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2917 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2918 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2919 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2920 UNOP_CHMAX, UNOP_CHMIN.
2921 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2922 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2923 UNOP_CHMIN>: Remove opcodes.
2925 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2927 * dwarf2read.c (read_func_scope): Do not complain for
2928 external function if bounds are not found.
2930 2010-06-01 Pedro Alves <pedro@codesourcery.com>
2932 * NEWS: Mention gdbserver fast tracepoints support.
2934 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2936 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2938 (windows_set_console_info): New function.
2939 (windows_create_inferior): Call windows_set_console_info
2940 if NEW_CONSOLE is true.
2941 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2942 (_initialize_loadable): Initialize GetConsoleFontSize and
2943 GetCurrentConsoleFont.
2945 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 * Makefile.in (RDYNAMIC): New.
2948 (SFILES): Add proc-service.list.
2949 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2950 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2951 * config/arm/linux.mh: Likewise.
2952 * config/i386/linux.mh: Likewise.
2953 * config/i386/linux64.mh: Likewise.
2954 * config/ia64/linux.mh: Likewise.
2955 * config/m32r/linux.mh: Likewise.
2956 * config/m68k/linux.mh: Likewise.
2957 * config/mips/linux.mh: Likewise.
2958 * config/pa/linux.mh: Likewise.
2959 * config/powerpc/linux.mh: Likewise.
2960 * config/powerpc/ppc64-linux.mh: Likewise.
2961 * config/s390/s390.mh: Likewise.
2962 * config/sparc/linux.mh: Likewise.
2963 * config/sparc/linux64.mh: Likewise.
2964 * config/xtensa/linux.mh: Likewise.
2965 * configure.ac: New RDYNAMIC on native host and GCC.
2966 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2967 * configure: Regenerate.
2968 * proc-service.list: New.
2970 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2972 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2975 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2977 * linux-nat.c (linux_nat_wait_1): Do not call
2978 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2979 TARGET_WAITKIND_SIGNALLED.
2981 2010-05-27 Joel Brobecker <brobecker@adacore.com>
2983 * ada-lang.c (ada_inferior_data): New struct.
2984 (ada_inferior_data): New static global.
2985 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2986 (ada_get_tsd_type): New functions.
2987 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2988 to look the tsd type up.
2989 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2990 event. Set ada_inferior_data.
2992 2010-05-27 Pedro Alves <pedro@codesourcery.com>
2994 * remote.c (unpack_varlen_hex): Remove forward declaration.
2995 (remote_console_output): Make static, and add forward declaration.
2996 * remote.h: Drop FIXME comment.
2997 (unpack_varlen_hex): Declare.
2998 (remote_console_output, remote_cisco_objfile_relocate)
2999 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3000 Delete declarations.
3001 * tracepoint.c: Include "remote.h".
3002 (unpack_varlen_hex): Delete declaration.
3004 2010-05-27 Tom Tromey <tromey@redhat.com>
3006 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3007 (allocate_piece_closure): Initialize refc.
3008 (copy_pieced_value_closure): Use refc.
3009 (free_pieced_value_closure): Likewise.
3011 2010-05-27 Tom Tromey <tromey@redhat.com>
3013 * arm-tdep.c (push_stack_item): 'contents' now const.
3014 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3015 value_contents_writeable. Introduce new temporary.
3017 2010-05-27 Tom Tromey <tromey@redhat.com>
3019 * findcmd.c (parse_find_args): Use value_contents, not
3022 2010-05-27 Tom Tromey <tromey@redhat.com>
3024 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3025 const. Use value_contents, not value_contents_writeable.
3027 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3029 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3030 by call to value_contents.
3032 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3034 * MAINTAINERS: Add myself for write after approval privileges.
3036 2010-05-26 Doug Evans <dje@google.com>
3038 Allow python to find its files if moved from original location.
3039 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3040 (GDB_AC_WITH_DIR): Call it.
3041 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3042 python installation directory.
3043 * config.in: Regenerate.
3044 * configure: Regenerate.
3045 * defs.h (python_libdir): Declare.
3046 * main.c (python_libdir): Define.
3047 (captured_main): Initialize python_libdir.
3048 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3049 call Py_SetProgramName to make sure python can find its libraries
3052 * configure.ac: Try to use python's distutils to fetch compilation
3054 * configure: Regenerate.
3055 * python/python-config.py: New file.
3057 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3059 * ser-tcp.c (net_open): Check error return from socket() call by its
3060 equality to -1 not by it being negative.
3061 (net_close): Likewise.
3063 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3065 * NEWS: Mention the `qRelocInsn' feature.
3066 * gdbarch.sh (relocate_instruction): New.
3067 * amd64-tdep.c (rip_relative_offset): New.
3068 (append_insns): New.
3069 (amd64_relocate_instruction): New.
3070 (amd64_init_abi): Install it.
3071 * i386-tdep.c (append_insns): New.
3072 (i386_relocate_instruction): New.
3073 (i386_gdbarch_init): Install it.
3074 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3075 * gdbarch.h, gdbarch.c: Regenerate.
3077 2010-05-26 Tom Tromey <tromey@redhat.com>
3079 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3080 (struct dwarf2_loclist_baton) <data>: Likewise.
3081 * dwarf2loc.c (find_location_expression): Constify return type.
3082 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3083 (dwarf2_loc_desc_needs_frame): Likewise.
3084 (loclist_read_variable): Constify.
3085 (loclist_describe_location): Likewise.
3086 (loclist_tracepoint_var_ref): Likewise.
3088 2010-05-25 Tom Tromey <tromey@redhat.com>
3090 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3091 (dwarf_expr_frame_base_1): Likewise.
3092 (read_pieced_value): Update.
3093 (needs_frame_frame_base): Constify.
3094 (dwarf2_tracepoint_var_loc): Likewise.
3095 (dwarf2_tracepoint_var_access): Likewise.
3096 (locexpr_describe_location_piece): Likewise.
3097 (locexpr_describe_location_1): Likewise.
3098 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3101 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3102 (dwarf_expr_eval, read_uleb128, read_sleb128)
3103 (dwarf2_read_address): Update.
3104 * dwarf2expr.c (dwarf_expr_eval): Constify.
3105 (read_uleb128): Likewise.
3106 (read_sleb128): Likewise.
3107 (dwarf2_read_address): Likewise.
3108 (require_composition): Likewise.
3109 (execute_stack_op): Likewise.
3110 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3112 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3114 (no_get_frame_base): Constify.
3115 (execute_stack_op): Likewise.
3116 (execute_cfa_program): Likewise.
3117 (read_encoded_value): Likewise.
3119 2010-05-25 Doug Evans <dje@google.com>
3121 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3123 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3124 * event-loop.c: ... here.
3125 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3126 `error' for clarity.
3127 (tui_getc): Pass correct value for `error' parameter to
3128 tui_readline_output.
3130 Add python gdb.GdbError and gdb.string_to_argv.
3131 * NEWS: Document them.
3132 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3133 the exception is gdb.GdbError. Print a second traceback if there's
3134 an error computing the error message.
3135 (gdbpy_string_to_argv): New function.
3136 * python/py-utils.c (gdbpy_obj_to_string): New function.
3137 (gdbpy_exception_to_string): New function.
3138 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3139 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3140 (gdbpy_gdberror_exc): Declare.
3141 * python/python.c (gdbpy_gdberror_exc): New global.
3142 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3144 (GdbMethods): Add string_to_argv.
3146 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3148 * windows-nat.c (display_selector): Call GetLastError to give better
3149 failure explanation.
3151 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3153 * config.in: Regenerate.
3155 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3158 * target.c (push_target): Return only void. Remove the return value
3160 * target.h (push_target): Return only void.
3162 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3164 Update gnulib from latest git.
3165 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3167 * gnulib/memcmp.c: Removed.
3168 * gnulib/memchr.valgrind: New.
3169 * gnulib/stddef.in.h: New.
3170 * gnulib/Makefile.am: Updated.
3171 * gnulib/memchr.c: Updated.
3172 * gnulib/memmem.c: Updated.
3173 * gnulib/stdint.in.h: Updated.
3174 * gnulib/str-two-way.h: Updated.
3175 * gnulib/string.in.h: Updated.
3176 * gnulib/wchar.in.h: Updated.
3178 * gnulib/extra/link-warning.h: Removed.
3179 * gnulib/extra/c++defs.h: New.
3180 * gnulib/extra/warn-on-use.h: New.
3181 * gnulib/extra/arg-nonnull.h: Updated.
3183 * gnulib/m4/extensions.m4: Updated.
3184 * gnulib/m4/gnulib-cache.m4: Updated.
3185 * gnulib/m4/gnulib-common.m4: Updated.
3186 * gnulib/m4/gnulib-comp.m4: Updated.
3187 * gnulib/m4/gnulib-tool.m4: Updated.
3188 * gnulib/m4/include_next.m4: Updated.
3189 * gnulib/m4/longlong.m4: Updated.
3190 * gnulib/m4/memchr.m4: Updated.
3191 * gnulib/m4/memmem.m4: Updated.
3192 * gnulib/m4/stdint.m4: Updated.
3193 * gnulib/m4/string_h.m4: Updated.
3194 * gnulib/m4/memcmp.m4: Removed.
3195 * gnulib/m4/onceonly_2_57.m4: Removed.
3196 * gnulib/m4/00gnulib.m4: New.
3197 * gnulib/m4/mmap-anon.m4: New.
3198 * gnulib/m4/multiarch.m4: New.
3199 * gnulib/m4/onceonly.m4: New.
3200 * gnulib/m4/stddef_h.m4: New.
3201 * gnulib/m4/warn-on-use.m4: New.
3202 * gnulib/m4/wchar.m4: Removed.
3203 * gnulib/m4/wchar_h.m4: New.
3204 * gnulib/m4/wchar_t.m4: New.
3205 * gnulib/m4/wint_t.m4: New.
3207 * aclocal.m4: Regenerate.
3208 * config.in: Likewise.
3209 * configure: Likewise.
3210 * gnulib/Makefile.in: Likewise.
3212 2010-05-21 Tom Tromey <tromey@redhat.com>
3214 * dwarf2loc.c (extract_bits_primitive): New function.
3215 (extract_bits): Likewise.
3216 (insert_bits): Likewise.
3217 (copy_bitwise): Likewise.
3218 (read_pieced_value): Do all operations in bits.
3219 (write_pieced_value): Likewise.
3220 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3221 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3222 Always use xrealloc to resize piece array.
3223 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3224 <DW_OP_piece>: Update.
3225 <DW_OP_bit_piece>: New case.
3227 2010-05-21 Tom Tromey <tromey@redhat.com>
3229 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3230 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3231 * dwarf2expr.h (enum dwarf_value_location)
3232 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3233 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3234 (add_piece): Handle empty piece.
3235 (execute_stack_op) <DW_OP_piece>: Handle
3236 DWARF_VALUE_OPTIMIZED_OUT.
3238 2010-05-21 Tom Tromey <tromey@redhat.com>
3240 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3241 evaluate_subexp, not evaluate_subexp_with_coercion.
3243 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3245 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3248 2010-05-21 Tom Tromey <tromey@redhat.com>
3250 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3252 (write_pieced_value): Likewise.
3254 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3256 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3257 and DW_TAG_volatile_type.
3258 (new_symbol): Likewise.
3260 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3262 * p-valprint.c (pascal_val_print): Call get_array_bounds
3263 to obtain the number of elements in an array.
3265 2010-05-19 Doug Evans <dje@google.com>
3267 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3269 * python.c (source_python_script): Add comment.
3270 (source_python_script_for_objfile): Remove unnecessary call to
3273 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3274 Sergio Durigan Junior <sergiodj@redhat.com>
3277 * parse.c (exp_iterate): Use operator_length wrapper function.
3279 2010-05-18 Michael Snyder <msnyder@vmware.com>
3281 * ada-lang.c: White space.
3282 * ada-typeprint.c: White space.
3283 * ada-valprint.c: White space.
3284 * addrmap.c: White space.
3285 * auxv.c: White space.
3286 * ax-gdb.c: White space.
3288 2010-05-18 Hui Zhu <teawater@gmail.com>
3290 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3292 (inferior_call_waitpid): Move make_cleanup out of check.
3293 Check the return of waitpid.
3294 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3296 2010-05-17 Michael Snyder <msnyder@vmware.com>
3298 * tui/tui.c: White space.
3299 * tui/tui-data.c: White space.
3300 * tui/tui-disasm.c: White space.
3301 * tui/tui-file.c: White space.
3302 * tui/tui-interp.c: White space.
3303 * tui/tui-main.c: White space.
3304 * tui/tui-out.c: White space.
3305 * tui/tui-regs.c: White space.
3306 * tui/tui-source.c: White space.
3307 * tui/tui-stack.c: White space.
3308 * tui/tui-win.c: White space.
3309 * tui/tui-winsource.c: White space.
3311 * procfs.c: White space.
3313 * python/py-auto-load.c: White space.
3314 * python/py-block.c: White space.
3315 * python/py-breakpoint.c: White space.
3316 * python/py-cmd.c: White space.
3317 * python/py-function.c: White space.
3318 * python/py-lazy-string.c: White space.
3319 * python/py-objfile.c: White space.
3320 * python/py-param.c: White space.
3321 * python/py-prettyprint.c: White space.
3322 * python/py-progspace.c: White space.
3323 * python/py-symtab.c: White space.
3324 * python/python.c: White space.
3325 * python/py-type.c: White space.
3326 * python/py-utils.c: White space.
3327 * python/py-value.c: White space.
3329 * mi/mi-cmd-break.c: White space.
3330 * mi/mi-cmd-env.c: White space.
3331 * mi/mi-cmds.c: White space.
3332 * mi/mi-cmd-stack.c: White space.
3333 * mi/mi-cmd-var.c: White space.
3334 * mi/mi-console.c: White space.
3335 * mi/mi-getopt.c: White space.
3336 * mi/mi-interp.c: White space.
3337 * mi/mi-main.c: White space.
3338 * mi/mi-out.c: White space.
3339 * mi/mi-parse.c: White space.
3341 * cli/cli-cmds.c: White space.
3342 * cli/cli-decode.c: White space.
3343 * cli/cli-dump.c: White space.
3344 * cli/cli-interp.c: White space.
3345 * cli/cli-logging.c: White space.
3346 * cli/cli-script.c: White space.
3347 * cli/cli-setshow.c: White space.
3349 * valarith.c: White space.
3350 * valops.c: White space.
3351 * valprint.c: White space.
3352 * value.c: White space.
3353 * varobj.c: White space.
3354 * xcoffread.c: White space.
3355 * xml-support.c: White space.
3356 * xml-tdesc.c: White space.
3358 2010-05-17 Andreas Schwab <schwab@redhat.com>
3361 * c-lang.c (c_printstr): Compute real length of NUL terminated
3364 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3366 * parse.c (parse_exp_in_context): When block is not NULL, use
3367 its associated language to parse the expression instead of
3368 the current_language.
3370 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3372 * jv-lang.c (java_lookup_class): Remove commented out code.
3373 (type_from_class): Likewise.
3374 (java_op_print_tab): Remove commented-out elements.
3376 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3378 * ada-lang.c (to_fixed_range_type): The the raw index type as
3379 argument instead of the raw type name. Remove orig_type parameter.
3380 Update calls throughout.
3381 (ada_fixup_array_indexes_type): New function.
3382 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3383 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3384 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3385 Remove name parameter.
3386 (print_array_type): Add call to ada_fixup_array_indexes_type.
3387 Update calls to print_range_type.
3388 (ada_print_type): Update calls to print_range_type.
3390 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3392 * dwarf2read.c (read_set_type): Set type length if
3393 DW_AT_byte_size attribute is present.
3395 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3397 * p-valprint.c (pascal_val_print): Handle set type if range limits
3398 are undefined but size is known.
3400 2010-05-17 Pedro Alves <pedro@codesourcery.com>
3402 * procfs.c: Reformat.
3404 2010-05-16 Michael Snyder <msnyder@vmware.com>
3406 * target.c: White space.
3407 * target-descriptions.c: White space.
3408 * target-memory.c: White space.
3409 * thread.c: White space.
3410 * top.c: White space.
3411 * tracepoint.c: White space.
3412 * trad-frame.c: White space.
3413 * tramp-frame.c: White space.
3414 * ui-file.c: White space.
3415 * ui-out.c: White space.
3416 * user-regs.c: White space.
3417 * utils.c: White space.
3419 * scm-exp.c: White space.
3420 * scm-lang.c: White space.
3421 * scm-valprint.c: White space.
3422 * sentinel-frame.c: White space.
3423 * ser-base.c: White space.
3424 * ser-go32.c: White space.
3425 * serial.c: White space.
3426 * ser-mingw.c: White space.
3427 * ser-pipe.c: White space.
3428 * ser-tcp.c: White space.
3429 * ser-unix.c: White space.
3430 * solib.c: White space.
3431 * solib-darwin.c: White space.
3432 * solib-frv.c: White space.
3433 * solib-irix.c: White space.
3434 * solib-osf.c: White space.
3435 * solib-pa64.c: White space.
3436 * solib-som.c: White space.
3437 * solib-spu.c: White space.
3438 * solib-svr4.c: White space.
3439 * solib-target.c: White space.
3440 * source.c: White space.
3441 * stabsread.c: White space.
3442 * stack.c: White space.
3443 * std-regs.c: White space.
3444 * symfile.c: White space.
3445 * symmisc.c: White space.
3446 * symtab.c: White space.
3448 2010-05-16 Michael Snyder <msnyder@vmware.com>
3450 * source.c (_initialize_source): Add "rev" as an abbreviation
3451 for the "reverse-search" command.
3453 2010-05-16 Michael Snyder <msnyder@vmware.com>
3455 * record.c: White space.
3456 * regcache.c: White space.
3457 * reggroups.c: White space.
3458 * remote-fileio.c: White space.
3459 * remote-m32r-sdi.c: White space.
3460 * remote-mips.c: White space.
3461 * remote-sim.c: White space.
3462 * remote.c: White space.
3463 (process_g_packet): Remove orphan braces.
3465 2010-05-15 Michael Snyder <msnyder@vmware.com>
3467 * parse.c: White space.
3468 * p-lang.c: White space.
3469 * posix-hdep.c: White space.
3470 * printcmd.c: White space.
3471 * progspace.c: White space.
3472 * prologue-value.c: White space.
3473 * psymtab.c: White space.
3474 * p-typeprint.c: White space.
3475 * p-valprint.c: White space.
3477 * objc-lang.c: White space.
3478 * objfiles.c: White space.
3479 * observer.c: White space.
3480 * osabi.c: White space.
3481 * osdata.c: White space.
3483 * m2-lang.c: White space.
3484 * m2-valprint.c: White space.
3485 * macrocmd.c: White space.
3486 * macroexp.c: White space.
3487 * macroscope.c: White space.
3488 * macrotab.c: White space.
3489 * main.c: White space.
3490 * maint.c: White space.
3491 * mdebugread.c: White space.
3492 * memattr.c: White space.
3493 * minsyms.c: White space.
3494 * monitor.c: White space.
3496 2010-05-14 Michael Snyder <msnyder@vmware.com>
3498 * jv-lang.c: White space.
3499 * jv-typeprint.c: White space.
3500 * jv-valprint.c: White space.
3501 * language.c: White space.
3502 * libunwind-frame.c: White space.
3503 * linespec.c: White space.
3504 * linux-nat.c: White space.
3505 * linux-record.c: White space.
3506 * linux-thread-db.c: White space.
3508 * infcall.c: White space.
3509 * inf-child.c: White space.
3510 * infcmd.c: White space.
3511 * inferior.c: White space.
3512 * inf-loop.c: White space.
3513 * inflow.c: White space.
3514 * inline-frame.c: White space.
3515 * interps.c: White space.
3517 * gcore.c: White space.
3518 * gdb.c: White space.
3519 * gdbtypes.c: White space.
3520 * gnu-nat.c: White space.
3521 * gnu-v2-abi.c: White space.
3522 * gnu-v3-abi.c: White space.
3524 * findcmd.c: White space.
3525 * findvar.c: White space.
3526 * fork-child.c: White space.
3527 * frame-base.c: White space.
3528 * frame.c: White space.
3529 * frame-unwind.c: White space.
3530 * f-valprint.c: White space.
3532 * elfread.c: White space.
3533 * environ.c: White space.
3534 * eval.c: White space.
3535 * event-loop.c: White space.
3536 * event-top.c: White space.
3537 * exceptions.c: White space.
3538 * exec.c: White space.
3539 * expprint.c: White space.
3541 * dbxread.c: White space.
3542 * dcache.c: White space.
3543 * disasm.c: White space.
3544 * doublest.c: White space.
3545 * dsrec.c: White space.
3546 * dummy-frame.c: White space.
3547 * dwarf2expr.c: White space.
3548 * dwarf2-frame.c: White space.
3549 * dwarf2loc.c: White space.
3550 * dwarf2read.c: White space.
3552 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3556 * python/py-value.c (valpy_hash): New function.
3557 (value_object_type): Register valpy_hash.
3559 2010-05-14 Hui Zhu <teawater@gmail.com>
3560 Michael Snyder <msnyder@vmware.com>
3562 * linux-fork.c (gdbthread.h): New include.
3563 (fork_info): Add parent_ptid.
3564 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3566 (delete_checkpoint_command): Call inferior_call_waitpid.
3567 (checkpoint_command): Set parent_ptid.
3569 2010-05-13 Michael Snyder <msnyder@vmware.com>
3571 * dictionary.c: Re-indent to GNU coding standard.
3573 * charset.c: White space.
3574 * c-lang.c: White space.
3575 * cli-out.c: White space.
3576 * coffread.c: White space.
3577 * complaints.c: White space.
3578 * completer.c: White space.
3579 * corefile.c: White space.
3580 * corelow.c: White space.
3581 * cp-abi.c: White space.
3582 * cp-namespace.c: White space.
3583 * cp-support.c: White space.
3584 * cp-valprint.c: White space.
3585 * c-typeprint.c: White space.
3586 * c-valprint.c: White space.
3587 * blockframe.c: White space.
3588 * breakpoint.c: White space.
3589 * buildsym.c: White space.
3590 * blockframe.c: White space.
3591 * bcache.c: White space.
3592 * gdbarch.sh: White space, add blank lines.
3593 * arch-utils.c: Ditto.
3594 * gdbarch.c: Regenerate.
3595 * frame.c: White space, add blank lines.
3596 * stack.c: White space, add blank lines.
3597 (initialize_stack): Remove long-dead code.
3599 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3602 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3603 (locexpr_read_variable, loclist_read_variable): Update the callers.
3605 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3608 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3609 Remove check of NULL returned by tag_type_to_type.
3610 (die_containing_type): Remove variable type. Remove type_die variable
3611 initialization. Remove check of NULL returned by tag_type_to_type.
3613 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3616 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3617 names of unnamed structures or unions.
3619 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3621 * procfs.c (proc_watchpoint_address): New function.
3622 (procfs_stopped_by_watchpoint): Remove useless check after
3623 find_procinfo_or_die call.
3624 (procfs_stopped_data_address): New function.
3625 (procfs_use_watchpoints): Register new watchpoint related function.
3627 2010-05-11 Tom Tromey <tromey@redhat.com>
3629 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3631 2010-05-10 Michael Snyder <msnyder@vmware.com>
3633 * utils.c: White space cleanup.
3635 2010-05-10 Tom Tromey <tromey@redhat.com>
3637 * eval.c (ptrmath_type_p): Add 'lang' argument.
3638 (evaluate_subexp_standard): Update.
3639 (evaluate_subexp_with_coercion): Update.
3640 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3642 2010-05-10 Michael Snyder <msnyder@vmware.com>
3644 * utils.c (do_fclose_cleanup) Restore local variable.
3646 2010-05-09 Doug Evans <dje@google.com>
3648 * record.c (init_record_core_ops): Rename record_core to record-core.
3650 2010-05-08 Joel Brobecker <brobecker@adacore.com>
3652 Implement task switching on pa-hpux.
3653 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3654 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3656 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3658 * valops.c (find_overload_match): Add missing i18n markup.
3660 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3662 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3664 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3666 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3667 list for the obconcat call.
3668 * mdebugread.c (parse_symbol): Likewise.
3669 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3671 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3672 New variable ap. Remove variables len and val.
3673 * symfile.h (obconcat): Likewise for the prototype.
3675 2010-05-07 Michael Snyder <msnyder@vmware.com>
3677 * python/python.c (execute_gdb_command): Remove unused variables.
3678 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
3679 * python/py-breakpoint.c (gdbpy_breakpoint_created):
3680 Remove unused variable.
3681 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3682 (cmdpy_completer): Remove unused variable.
3683 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3684 * python/py-function.c (fnpy_call): Remove unused variable.
3685 * python/py-objfile.c (objfile_to_objfile_object):
3686 Remove unused variable.
3687 * python/py-param.c (parmpy_init): Remove unused variable.
3688 * python/py-prettyprint.c (apply_varobj_pretty_printer):
3689 Remove unused variable.
3690 (gdbpy_default_visualizer): Remove unused variable.
3691 * python/py-progspace.c (pspace_to_pspace_object):
3692 Remove unused variable.
3693 * python/py-symtab.c (symtab_and_line_to_sal_object):
3694 Remove unused variable.
3695 * python/py-type.c (typy_template_argument):
3696 Remove unused variable.
3697 * python/py-value.c (valpy_string): Remove unused variable.
3698 (convert_value_from_python): Remove unused variables.
3700 2010-05-07 Michael Snyder <msnyder@vmware.com>
3702 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3703 and use it to compute variable 't1'.
3705 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3707 * ada-lang.c (assign_aggregate): Remove unused variable.
3709 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3712 * valops.c (find_overload_match): Handle fsym == NULL case.
3713 Add int no_adl argument.
3714 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3716 Add int no_adl argument.
3717 (find_oload_champ_namespace): Add int no_adl argument.
3718 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3720 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3721 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3722 Evaluate arguments and use them to perform ADL lookup.
3723 Pass no_adl argument to find_overload_match.
3724 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3725 * cp-support.h: Added prototype for
3726 make_symbol_overload_list_namespace.
3727 * cp-support.c (make_symbol_overload_list_namespace): New function.
3728 (make_symbol_overload_list_adl_namespace): New function.
3729 (make_symbol_overload_list_adl): New function.
3730 (make_symbol_overload_list_using): Moved code to add function to
3731 overload set to make_symbol_overload_list_namespace.
3732 * c-exp.y: create UNKNOWN_CPP_NAME token.
3733 Add parse rule for ADL functions.
3734 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3736 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3738 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3741 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3743 Implement task switching on solaris targets.
3744 * sol-thread.c (thread_db_find_thread_from_tid)
3745 (sol_get_ada_task_ptid): New functions.
3746 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3748 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3750 * remote.c (remote_query_supported_append): Use reconcat.
3751 (remote_query_supported): Install a cleanup. Use reconcat.
3753 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3755 * gdbarch.sh (qsupported): Delete.
3756 * gdbarch.h, gdbarch.c: Regenerate.
3757 * remote.c (remote_query_supported): Remove use of
3760 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3762 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3765 2010-05-06 Michael Snyder <msnyder@vmware.com>
3767 * xml-support.c (xinclude_start_include): Delete unused variable.
3768 (xml_process_xincludes): Delete unused variable.
3769 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3770 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3771 (tdesc_find_arch_register): Delete unused variable.
3772 (tdesc_use_registers): Delete unused variable.
3773 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3774 * inferior.c (print_inferior): Delete unused variable.
3775 * record.c (record_open_1): Delete unused variable.
3776 (record_restore): Delete unused variable.
3777 (cmd_record_save): Delete unused variable.
3778 * gcore.c (derive_heap_segment): Delete unused variable.
3779 (objfile_find_memory_regions): Use unused variable.
3780 * jit.c (jit_inferior_init): Delete unused variable.
3781 * progspace.c (clone_program_space): Delete unused variable.
3782 (pspace_empty_p): Delete unused variable.
3784 * frame-unwind.c (frame_unwind_find_by_frame):
3785 Delete unused variable.
3786 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3787 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3788 (method_name_from_physname): Delete unused variable.
3789 (cp_func_name): Delete unused variable.
3790 (cp_validate_operator): Delete unused variable.
3791 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
3792 Delete unused variable.
3793 * trad-frame.c (trad_frame_get_prev_register):
3794 Delete unused variable.
3795 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3797 * serial.c (serial_for_fd): Delete unused variable.
3798 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3799 * top.c (execute_command): Delete unused variable.
3800 (init_main): Delete unused variable.
3801 * utils.c (do_fclose_cleanup): Delete unused variable.
3802 (do_all_inferior_continuations): Delete unused variable.
3803 (initialize_utils): Delete unused variable.
3804 (internal_problem_mode): Delete unused global.
3805 * frame.c (get_prev_frame): Delete unused global.
3806 (get_frame_locals_address): Delete unused global.
3807 (get_frame_args_address): Delete unused global.
3809 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3810 (pascal_type_print_varspec_prefix): Delete unused variable.
3811 * f-typeprint.c (f_type_print_base): Delete unused variable.
3812 (f_type_print_varspec_suffix): Delete unused variable.
3813 * m2-typeprint.c (m2_print_type): Delete unused variable.
3814 (m2_long_set): Delete unused variable.
3815 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3816 * d-valprint.c (dynamic_array_type): Delete unused variable.
3817 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
3818 Delete unused variable.
3819 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3820 * m2-valprint.c (m2_val_print): Delete unused variable.
3822 * ui-out.c (ui_out_field_int): Delete unused variable.
3823 (ui_out_field_fmt_int): Delete unused variable.
3824 * varobj.c (varobj_list_children): Delete unused variable.
3825 (varobj_set_value): Delete unused variable.
3826 (install_new_value_visualizer): Delete unused variable.
3827 (varobj_set_visualizer): Delete unused variable.
3828 (varobj_update): Delete unused variable.
3829 (varobj_editable_p): Delete unused variable.
3830 (c_value_of_root): Delete unused variable.
3831 (cplus_describe_child): Delete unused variable.
3833 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3834 (decode_constrained_packed_array_type): Delete unused variable.
3835 (add_defn_to_vec): Delete unused variable.
3836 (symbol_completion_match): Delete unused variable.
3837 (value_tag_from_contents_and_address): Delete unused variable.
3838 (ada_evaluate_subexp): Delete unused variable.
3839 * c-lang.c (classify_type): Delete unused variable.
3840 * f-lang.c (f_printstr): Delete unused variable.
3841 * objc-lang.c (objc_printstr): Delete unused variable.
3842 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3843 * jv-lang.c (type_from_class): ifdef unused variable.
3844 (java_class_name_from_physname): Delete unused variable.
3845 * m2-lang.c (m2_printstr): Delete unused variable.
3847 * objfiles.c (objfile_relocate): Delete unused variable.
3848 * maint.c (_initialize_maint_cmds): Delete unused variable.
3849 * demangle.c (_initialize_demangler): Delete unused variable.
3850 * corefile.c (reopen_exec_file): Delete unused variable.
3851 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3852 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3854 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3855 * memattr.c (mem_delete): Delete unused variable.
3856 (invalidate_target_mem_regions): Delete unused variable.
3857 * mem-break.c (default_memory_insert_breakpoint):
3858 Delete unused variable.
3859 * target.c (target_get_osdata): Delete unused variable.
3860 * parse.c (length_of_subexp): Delete unused variable.
3861 (prefixify_subexp): Delete unused variable.
3862 (exp_iterate): Delete unused variable.
3863 * reverse.c (delete_bookmark_command): Delete unused variable.
3865 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3866 * macroexp.c (gather_arguments): Delete unused variable.
3867 (substitute_args): Delete unused variable.
3868 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3869 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3870 (_initialize_gdbarch): Delete unused variable.
3871 * gdbarch.c, gdbarch.h: Regenerate.
3872 * arch-utils.c (initialize_current_architecture):
3873 Delete unused variable.
3874 (_initialize_gdbarch_utils): Delete unused variable.
3875 * gdbtypes.c (make_cv_type): Delete unused variable.
3876 (make_type_with_address_space): Delete unused variable.
3878 * linespec.c (decode_compound): Delete unused variable.
3879 * dictionary.c (iterator_next_hashed): Delete unused variable.
3880 * infcall.c (call_function_by_hand): Delete unused variable.
3881 * infcmd.c (step_1): Delete unused variable.
3882 (registers_info): Delete unused variable.
3883 (attach_command): Delete unused variable.
3884 * infrun.c (follow_exec): Delete unused variable.
3885 (handle_step_into_function_backwards): Delete unused variable.
3886 (_initialize_infrun): Delete unused variable.
3887 * stack.c (parse_frame_specification_1): Delete unused variable.
3888 (frame_info): Delete unused variable.
3889 (backtrace_command_1): Delete unused variable.
3890 (catch_info): Delete unused variable.
3892 * eval.c (evaluate_subexp_standard): Delete unused variable.
3893 * valops.c (value_cast_pointers): Delete unused variable.
3894 (value_dynamic_cast): Delete unused variable.
3895 (value_array): Delete unused variable.
3896 (find_overload_match): Delete unused variable.
3897 * valarith.c (value_subscript): Delete unused variable.
3898 (value_binop): Delete unused variable.
3899 * valprint.c (_initialize_valprint): Delete unused variable.
3900 * printcmd.c (print_command_1): Delete unused variable.
3901 (address_info): Delete unused variable.
3902 (printf_command): Delete unused variable.
3904 * auxv.c (target_auxv_search): Delete unused variable.
3905 * blockframe.c (get_frame_block): Delete unused variable.
3906 * regcache.c (regcache_cpy): Delete unused variable.
3907 (regcache_cpy_no_passthrough): Delete unused variable.
3908 * charset.c (wchar_iterate): Delete unused variable.
3909 (find_charset_names): Delete unused variable.
3910 (_initialize_charset): Delete unused variable.
3911 * disasm.c (do_mixed_source_and_assembly):
3912 Delete unused variable.
3913 * source.c (set_default_source_symtab_and_line):
3914 Delete unused variable.
3915 (set_substitute_path_command): Delete unused variable.
3916 * value.c (preserve_values): Delete unused variable.
3917 (value_from_double): Delete unused variable.
3919 2010-05-05 Michael Snyder <msnyder@vmware.com>
3921 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3922 (find_last_source_symtab_from_partial): Delete unused variable.
3923 * symfile.c (place_section): Delete unused variable.
3924 (default_symfile_offsets): Delete unused variable.
3925 (get_debug_link_info): Delete unused variable.
3926 (find_separate_debug_file_by_debuglink): Delete unused variable.
3927 (add_symbol_file_command): Delete unused variable.
3928 (symfile_find_segment_sections): Delete unused variable.
3929 * symmisc.c (free_symtab): Delete unused variable.
3930 (dump_symtab_1): Delete unused variable.
3931 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3932 (find_pc_sect_symtab): Delete unused variable.
3933 (skip_prologue_using_lineinfo): Delete unused variable.
3934 (sources_info): Delete unused variable.
3935 (completion_list_add_name): Delete unused variable.
3936 (expand_line_sal): Delete unused variable.
3938 * breakpoint.c (validate_commands_for_breakpoint):
3939 Delete unused variables.
3940 (insert_catchpoint): Delete unused variable.
3941 (update_watchpoint): Delete unused variable.
3942 (insert_bp_location): Delete unused variable.
3943 (insert_breakpoint_locations): Delete unused variable.
3944 (remove_breakpoint_1): Delete unused variable.
3945 (software_breakpoint_inserted_here_p): Delete unused variable.
3946 (watchpoints_triggered): Delete unused variable.
3947 (bpstat_check_watchpoint): Delete unused variable.
3948 (bpstat_stop_status): Delete unused variable.
3949 (print_one_breakpoint_location): Delete unused variable.
3950 (allocate_bp_location): Delete unused variable.
3951 (create_breakpoint): Delete unused variable.
3952 (watch_command_1): Delete unused variable.
3953 (catch_exception_command_1): Delete unused variable.
3954 (catch_ada_exception_command): Delete unused variable.
3955 (delete_breakpoint): Delete unused variable.
3956 (breakpoint_re_set_one): Delete unused variable.
3957 (do_enable_breakpoint): Delete unused variable.
3959 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3961 * amd64-tdep.c: Include disasm.h.
3962 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3963 (amd64_insn_length): Moved to disasm.c and renamed.
3964 (fixup_riprel): Adjust.
3965 * disasm.c (do_ui_file_delete): New.
3966 (gdb_insn_length): New.
3967 (gdb_buffered_insn_length_fprintf)
3968 (gdb_buffered_insn_length_init_dis)
3969 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3971 * disasm.h (gdb_insn_length): Declare.
3972 (gdb_buffered_insn_length): Declare.
3974 2010-05-06 Pedro Alves <pedro@codesourcery.com>
3976 * remote.c (clear_threads_parsing_context): New.
3977 (remote_threads_info): Delete unused null_cleanup. Install a
3978 cleanup to clear the threads_parsing_context in case parsing
3981 2010-05-05 Michael Snyder <msnyder@vmware.com>
3983 * c-exp.y (parse_string_or_char): Delete unused variable.
3984 (c_lex): Delete unused variable.
3985 * cp-name-parser.y (cpname_lex): Delete unused variable.
3986 * ada-exp.y (find_primitive_type): Delete unused variable.
3987 (write_var_or_type): Delete unused variable.
3988 * jv-exp.y (java_parse): Delete unused variable.
3989 (push_expression_name): Delete unused variable.
3990 * p-exp.y (pascal_lex): Delete unused variable.
3992 2010-05-05 Pedro Alves <pedro@codesourcery.com>
3994 * remote.c (remote_threads_info): Really revert previous previous
3997 2010-05-05 Michael Snyder <msnyder@vmware.com>
3999 * elfread.c (elf_symtab_read): Delete unused variable.
4000 (find_separate_debug_file_by_buildid): Delete unused variables.
4001 (elf_symfile_read): Delete unused variable.
4003 * coffread.c (coff_symfile_read): Delete unused variables.
4005 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4006 (read_pe_exported_syms): Delete unused variable.
4008 * stabsread.c (define_symbol): Delete unused variable.
4010 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4011 (process_psymtab_comp_unit): Delete unused variable.
4012 (dwarf2_build_psymtabs_hard): Delete unused variable.
4013 (load_partial_comp_unit): Delete unused variable.
4014 (create_all_comp_units): Delete unused variable.
4015 (scan_partial_symbols): Delete unused variable.
4016 (add_partial_symbol): Delete unused variable.
4017 (add_partial_namespace): Delete unused variable.
4018 (add_partial_enumeration): Delete unused variable.
4019 (load_full_comp_unit): Delete unused variable.
4020 (process_full_comp_unit): Delete unused variable.
4021 (read_file_scope): Delete unused variable.
4022 (read_type_unit_scope): Delete unused variable.
4023 (process_structure_scope): Delete unused variable.
4024 (process_enumeration_scope): Delete unused variable.
4025 (read_tag_ptr_to_member_type): Delete unused variable.
4026 (read_typedef): Delete unused variable.
4027 (read_partial_die): Delete unused variable.
4028 (decode_locdesc): Delete unused variable.
4029 (zeroed_partial_die): Delete unused global variable.
4031 * tui/tui-interp.c (_initialize_tui_interp):
4032 Delete unused variable.
4033 * tui/tui-regs.c tui_display_registers_from):
4034 Delete unused variable.
4035 (tui_check_register_values): Delete unused variable.
4036 (tui_register_format): Delete unused variable.
4037 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4038 * tui/tui-windata.c (tui_display_data_from_line):
4039 Delete unused variables.
4040 (tui_vertical_data_scroll): Delete unused variables.
4042 2010-05-05 Michael Snyder <msnyder@vmware.com>
4044 * remote.c (remote_threads_info): Revert questionable part of
4045 the previous change.
4047 2010-05-05 Michael Snyder <msnyder@vmware.com>
4049 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4050 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4051 (mi_cmd_var_list_children): Delete unused variable.
4052 (varobj_update_one): Delete unused variable.
4053 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4054 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4055 Delete unused variable.
4056 (mi_cmd_stack_list_variables): Delete unused variable.
4057 (list_args_or_locals): Delete unused variable.
4058 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4059 Delete unused variables.
4060 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4061 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4062 Delete unused variable.
4063 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4064 (mi_cmd_interpreter_exec): Delete unused variable.
4065 (mi_on_normal_stop): Delete unused variable.
4066 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4067 (print_one_inferior): Delete unused variables.
4068 (mi_execute_command): Delete unused variable.
4069 (mi_cmd_execute): Delete unused variable.
4070 (timestamp): Delete unused variable.
4072 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4073 (restore_binary_file): Delete unused variable.
4074 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4075 * cli/cli-script.c (define_command): Delete unused variables.
4076 (recurse_read_control_structure): Delete unused variable.
4077 (script_from_file): Delete unused variable.
4078 * cli/cli-cmds.c (complete_command): Delete unused variable.
4079 (disassemble_command): Delete unused variable.
4081 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4082 * tracepoint.c (delete_trace_variable_command):
4083 Delete unused variables.
4084 (encode_actions_1): Delete unused variables.
4085 (start_tracing): Delete unused variable.
4086 (trace_status_mi): Delete unused variable.
4087 (tfind_1): Delete unused variable.
4088 (trace_find_pc_command): Delete unused variable.
4089 (trace_find_line_command): Delete unused variables.
4090 (trace_find_range_command): Delete unused variables.
4091 (trace_find_outside_command): Delete unused variables.
4092 (parse_tracepoint_definition): Delete unused variables.
4093 (tfile_fetch_registers): Delete unused variable.
4095 * dcache.c (dcache_init): Delete unused variable.
4096 (dcache_info): Delete unused variable.
4098 * remote.c (remote_threads_info): Delete unused variable.
4099 (process_stop_reply) :Delete unused variable.
4100 (remote_get_trace_status): Delete unused variables.
4102 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4103 (thread_from_lwp): Delete unused variable.
4104 (enable_thread_event_reporting): Delete unused variable.
4105 (check_for_thread_db): Delete unused variables.
4106 (thread_db_find_new_threads_2): Delete unused variable.
4108 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4109 (checkpoint_command): Delete unused variable.
4110 (linux_fork_context): Delete unused variables.
4112 * linux-nat.c (linux_parent_pid): Delete unused global variable.
4113 (linux_tracefork_child): Delete unused variable.
4114 (linux_child_follow_fork): Delete unused variable.
4115 (linux_nat_detach): Delete unused variable.
4116 (linux_handle_extended_wait): Delete unused variable.
4117 (linux_nat_has_pending_sigint): Delete unused variable.
4118 (linux_nat_find_memory_regions): Delete unused variable.
4119 (linux_nat_make_corefile_notes): Delete unused variables.
4120 (linux_nat_info_proc_cmd): Delete unused variable.
4121 (linux_proc_pending_signals): Delete unused variable.
4122 (linux_nat_stop_lwp): Delete unused variables.
4123 (_initialize_linux_nat): Delete unused variable.
4125 * ser-pipe.c (pipe_ops): Delete unused global variable.
4127 * linux-record.c (record_linux_system_call):
4128 Delete unused variables.
4130 * corelow.c (core_xfer_partial): Delete unused variables.
4132 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4133 (svr4_solib_create_inferior_hook): Add ifdef around
4134 conditionally-used variable declarations.
4136 * solib.c (solib_find): Delete unused variable.
4137 (free_so_symbols): Delete unused variable.
4138 (info_sharedlibrary_command): Delete unused variable.
4139 (reload_shared_libraries_1): Delete unused variable.
4140 (_initialize_solib): Delete unused variable.
4142 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4143 (i386_collect_xstateregset): Delete unused variable.
4144 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4146 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4147 Delete unused variable 'type'.
4149 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4151 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4152 ada-lang.c: Remove comment mentioning these macros.
4153 * m2-exp.y: Delete commented out code.
4155 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4157 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4159 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4161 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4163 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4164 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4166 (cleanup_kernel_helper_return): Likewise.
4167 * arm-tdep.c (copy_unmodified): Likewise.
4168 (copy_preload): Likewise.
4169 (copy_copro_load_store): Likewise.
4170 (cleanup_branch): Likewise.
4171 (copy_b_bl_blx): Likewise.
4172 (copy_bx_blx_reg): Likewise.
4173 (copy_alu_imm): Likewise.
4174 (copy_alu_reg): Likewise.
4175 (copy_alu_shifted_reg): Likewise.
4176 (cleanup_load): Likewise.
4177 (cleanup_store): Likewise.
4178 (cleanup_block_load_pc): Likewise.
4179 (cleanup_svc): Likewise.
4180 (copy_undef): Likewise.
4181 (copy_unpred): Likewise.
4182 * remote.c (register_remote_support_xml): Likewise.
4184 2010-05-05 Hui Zhu <teawater@gmail.com>
4186 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4188 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4190 * remote.c (register_remote_support_xml)
4191 (remote_query_supported_append, remote_query_supported): Add cast
4192 to NULL used as sentinel.
4193 * tracepoint.c (tvariables_info_1): Likewise.
4194 * utils.c (add_internal_problem_command): Likewise.
4196 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4198 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4199 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4200 registers gracefully.
4202 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4204 * exec.c (print_section_info): Display entry point without arch
4207 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4210 * printcmd.c (x_command): Only dereference once implicitly for
4213 2010-05-03 Doug Evans <dje@google.com>
4215 * event-loop.c (gdb_timer): Delete unused global.
4216 (create_timer): Update.
4218 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4220 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4221 CURRENT->DECLARATION case.
4222 * cp-support.h (struct using_direct): Provide extended comment.
4224 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4226 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4227 HPPABSD_SIZEOF_GREGS.
4228 (HPPAOBSD_SIZEOF_FPREGS): New define.
4229 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4230 (hppaobsd_supply_fpregset): New function.
4231 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4232 (hppaobsd_fpregset): New variable.
4233 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4234 (_initialize_hppabsd_tdep): Remove spurious blank line.
4236 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4239 * p-valprint.c (pascal_value_print): Always dereference a value with
4240 type code TYPE_CODE_REF.
4242 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4244 * remote.c (remote_notice_signals): New.
4245 (remote_start_remote): In non-stop mode, update the remote end on
4246 which signals it can silently pass.
4247 (init_remote_ops): Install remote_notice_signals.
4249 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4251 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4252 * command.h (error_no_arg): ... here. Remove NORETURN, change
4253 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4254 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4255 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4256 (internal_verror, internal_error, nomem): Remove NORETURN, change
4257 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4258 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4259 (throw_vfatal, throw_error): Remove NORETURN.
4260 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4261 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4262 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4263 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4264 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4265 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4267 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4268 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4270 * target.c (tcomplain): Likewise.
4271 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4273 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4274 (internal_error, perror_with_name, nomem): Remove NORETURN.
4275 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4278 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4280 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4281 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4282 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4283 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4284 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4285 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4286 * complaints.h (complaint, internal_complaint): Likewise.
4287 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4288 (ATTR_FORMAT): Remove.
4289 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4290 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4291 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4292 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4293 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4294 (internal_error, internal_vwarning, internal_warning, warning)
4295 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4296 * disasm.c (fprintf_disasm): Likewise.
4297 * exceptions.c (throw_it): Likewise.
4298 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4299 (throw_error): Likewise.
4300 * language.h (type_error, range_error): Likewise.
4301 * linespec.c (cplusplus_error): Likewise.
4302 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4303 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4304 * monitor.c (monitor_debug): Likewise.
4305 * parser-defs.h (parser_fprintf): Likewise.
4306 * serial.h (serial_printf): Likewise.
4307 * tui/tui-hooks.c (tui_query_hook): Likewise.
4308 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4309 (uo_message): Likewise.
4310 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4311 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4313 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4315 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4317 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4318 (cli_table_header, cli_begin, cli_end, cli_field_int)
4319 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4320 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4321 Delete forward declarations.
4322 (cli_ui_out_impl): Move below the callbacks.
4323 (_initialize_cli_out): Delete.
4325 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4327 * README: Use consistent `GDB' and `GDBserver' spellings.
4329 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4331 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4333 2010-05-01 Pedro Alves <pedro@codesourcery.com>
4335 * infrun.c (prepare_for_detach): In non-stop, context switch to
4336 the thread that got the event before handling the event.
4338 2010-04-30 Tom Tromey <tromey@redhat.com>
4340 * symtab.c (symbol_set_names): Fix typo.
4342 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4344 * python/py-param.c (parm_constants): Avoid ARI warning
4345 by adding ARI comment.
4346 (parmpy_init): Likewise.
4348 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4350 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4351 and created type for re-use.
4353 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4355 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4357 2010-04-29 Doug Evans <dje@google.com>
4359 * ser-base.h (reschedule): Delete prototype.
4360 * ser-base.c (reschedule): Make static.
4362 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4364 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4365 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
4366 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
4368 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
4371 2010-04-29 Pedro Alves <pedro@codesourcery.com>
4375 * regcache.c (registers_changed): Rename to ...
4376 (registers_changed_ptid): ... this, and only delete register cache
4377 entries matching the ptid filter argument.
4378 (registers_changed): Reimplement on top of registers_changed_ptid.
4379 * regcache.h (registers_changed_ptid): Declare.
4380 * target.c (target_resume): Flush register caches.
4382 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
4383 Tom Tromey <tromey@redhat.com>
4384 Thiago Jung Bauermann <bauerman@br.ibm.com>
4386 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4387 (SUBDIR_PYTHON_SRCS): Likewise.
4388 (py-parameter.o): New rule.
4389 * python/py-parameter.c: New file.
4390 * python/python-internal.h (gdbpy_initialize_parameter)
4391 (gdbpy_parameter, gdbpy_parameter_value)
4392 (gdbpy_parse_command_name): Declare.
4393 * python/py-cmd.c (parse_command_name): Rename to
4394 gdbpy_parse_command_name.
4395 (gdbpy_parse_command_name): Accept a starting list parameter and
4397 (cmdpy_init): Use gdbpy_parse_command_name.
4398 * python/python.c (parameter_to_python): Rename to
4399 gdbpy_parameter_to_python. Accept enum var_types and value.
4400 (gdbpy_parameter): Use gdbpy_parameter_value.
4401 (_initialize_python): Call gdbpy_initialize_parameters.
4403 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4405 * MAINTAINERS: Add myself for write after approval privileges.
4407 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4410 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4411 (COMMON_OBS): Add d-lang.o d-valprint.o.
4412 (HFILES_NO_SRCDIR): Add d-lang.h.
4413 * NEWS: Mention D language support.
4414 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4415 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4416 * d-lang.c: New file.
4417 * d-lang.h: New file.
4418 * d-valprint.c: New file.
4419 * defs.h (enum language): Add language_d.
4420 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4421 * language.c (binop_result_type, integral_type, character_type)
4422 (string_type, boolean_type, structured_type): Add language_d.
4423 * symfile.c (init_filename_language_table): Add language_d.
4424 * symtab.c: Include d-lang.h.
4425 (symbol_init_language_specific, symbol_find_demangled_name)
4426 (symbol_natural_name, lookup_symbol_in_language)
4427 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4429 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4431 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4433 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4435 * symfile.c (init_filename_language_table): Register .dg files
4438 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4440 * gdbtypes.h (struct main_type): Expand comment about target_type
4443 2010-04-27 Pedro Alves <pedro@codesourcery.com>
4444 Tristan Gingold <gingold@adacore.com>
4446 * symfile.c (reread_symbols): Also search for file in libraries.
4449 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4451 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4452 in terms of configuration.
4454 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4456 * objfiles.c: Include solist.h.
4457 (free_all_objfiles): New variable so. Check stale solist objfiles.
4458 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4459 and no_shared_libraries.
4461 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4464 * python/py-auto-load.c (source_section_scripts): Remove trailing
4465 new-line in i18n string.
4467 2010-04-26 Doug Evans <dje@google.com>
4469 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4471 2010-04-26 Tom Tromey <tromey@redhat.com>
4473 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4476 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4478 Removal of config/i386/nm-i386sol2.h native configuration file.
4479 * config/i386/nm-i386sol2.h: Remove file.
4480 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4481 * config/i386/sol2-64.mh: Idem.
4482 * config/djgpp/fnchange.lst: Remove reference to that file.
4483 * Makefile.in (HFILES_NO_SRCDIR): Idem.
4485 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4487 PR breakpoints/11531.
4488 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4489 macro definition and related comment.
4490 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4491 (resume): Remove code and comment related to this macro.
4493 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4495 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4498 2010-04-24 Pedro Alves <pedro@codesourcery.com>
4500 * defs.h: Adjust comment.
4501 * filesystem.h, filesystem.c: New files.
4502 * Makefile.in (SFILES): Add filesystem.c.
4503 (COMMON_OBS): Add filesystem.o.
4504 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4505 different target and host path flavours.
4506 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4507 has_dos_based_file_system on the gdbarch.
4508 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4509 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4510 * i386-tdep.c (i386_go32_init_abi): Ditto.
4511 * gdbarch.sh (has_dos_based_file_system): New.
4512 * gdbarch.h, gdbarch.c: Regenerate.
4513 * NEWS: Mention improved support for remote targets with DOS-based
4514 filesystems. Mention new `set/show target-file-system-kind'
4517 2010-04-23 Stan Shebs <stan@codesourcery.com>
4519 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4521 (struct agent_reqs): Remove.
4522 (ax_reg_mask): Declare.
4523 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4524 (free_agent_expr): Free reg_mask.
4525 (ax_print): Add scope and register mask info.
4526 (ax_reqs): Remove agent_reqs argument, use agent expression
4527 fields, and move part of register mask computation to...
4528 (ax_reg_mask): New function.
4529 * ax-gdb.c (gen_trace_static_fields): Call it.
4530 (gen_traced_pop): Ditto.
4531 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4532 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4533 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4534 (gen_eval_for_expr): Ditto, and require an rvalue.
4535 (agent_command): Call ax_reqs.
4536 (agent_eval_command): Ditto.
4537 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4538 (validate_action_line): Ditto.
4539 (collect_symbol): Ditto.
4540 (encode_actions_1): Ditto.
4542 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4543 Paul Pluzhnikov <ppluzhnikov@google.com>
4544 Jan Kratochvil <jan.kratochvil@redhat.com>
4546 Fix deadlock on looped list of loaded shared objects.
4547 * solib-svr4.c (LM_PREV): New function.
4548 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4549 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4550 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4551 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4553 2010-04-23 Doug Evans <dje@google.com>
4555 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4557 * configure: Regenerate.
4558 * main.c: #include "python/python.h".
4559 (captured_main): Defer loading auto-loaded scripts until after
4560 local_gdbinit has been sourced.
4561 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4562 (load_auto_scripts_for_objfile): New function.
4563 (auto_load_new_objfile): Call it.
4564 * python/python.h (gdbpy_global_auto_load): Declare.
4565 (load_auto_scripts_for_objfile): Declare.
4567 Add support for auto-loading scripts from .debug_gdb_scripts section.
4568 * NEWS: Add entry for .debug_gdb_scripts.
4569 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4570 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4571 (py-auto-load.o): New rule.
4572 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4573 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4574 * python/py-auto-load.c: New file.
4575 * python/python-internal.h: #include <stdio.h>.
4576 (set_python_list, show_python_list): Declare.
4577 (gdbpy_initialize_auto_load): Declare.
4578 (source_python_script_for_objfile): Declare.
4579 * python/python.c: Remove #include of observer.h.
4580 (gdbpy_auto_load): Moved to py-auto-load.c.
4581 (GDBPY_AUTO_FILENAME): Ditto.
4582 (gdbpy_new_objfile): Delete.
4583 (source_python_script_for_objfile): New function.
4584 (set_python_list, show_python_list): Make externally visible.
4585 (_initialize_python): Move "auto-load" command to py-auto-load.c
4586 and observer_attach_new_objfile to py-auto-load.c.
4588 2010-04-23 Jerome Guitton <guitton@adacore.com>
4590 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4591 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4592 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4594 (alpha_heuristic_analyze_probing_loop): New function.
4595 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4596 and handle cases when a stack probe loop is generated.
4597 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4598 (alpha_mdebug_max_frame_size_exceeded): New function.
4599 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4600 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4601 Return 0 when the maximum debuggable frame size has been exceeded.
4603 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4606 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4608 2010-04-20 Chris Moller <cmoller@redhat.com>
4612 * symtab.c (rbreak_command): Added code to include a filename
4613 specification in the rbreak argument.
4614 * NEWS: Added a brief description of filename-qualified rbreak.
4616 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4618 Fix crashes on dangling display expressions.
4619 * ada-lang.c (ada_operator_check): New function.
4620 (ada_exp_descriptor): Fill-in the field operator_check.
4621 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4622 * jv-lang.c (exp_descriptor_java): Likewise.
4623 * m2-lang.c (exp_descriptor_modula2): Likewise.
4624 * scm-lang.c (exp_descriptor_scm): Likewise.
4625 * parse.c (exp_descriptor_standard): Likewise.
4626 (operator_check_standard): New function.
4627 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4628 * parser-defs.h (struct exp_descriptor): New field operator_check.
4629 (operator_check_standard, exp_uses_objfile): New declarations.
4630 * printcmd.c: Remove the inclusion of solib.h.
4631 (display_uses_solib_p): Remove the function.
4632 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4633 and exp_uses_objfile instead of display_uses_solib_p.
4634 * solist.h (struct so_list) <objfile>: New comment.
4635 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4636 * symtab.h (lookup_objfile_from_block): New declaration.
4637 (struct general_symbol_info) <obj_section>: Extend the comment.
4639 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4640 Thiago Jung Bauermann <bauerman@br.ibm.com>
4642 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4643 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4644 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4645 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4646 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4647 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4648 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4649 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4650 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4651 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4652 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4653 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4654 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4655 Define, in case <ptrace.h> doesn't provide it.
4656 (booke_debug_info): New variable.
4657 (max_slots_number): Ditto.
4658 (hw_break_tuple): New struct.
4659 (thread_points): Ditto.
4660 (ppc_threads): New variable.
4661 (PPC_DEBUG_CURRENT_VERSION): New define.
4662 (have_ptrace_new_debug_booke): New function.
4663 (ppc_linux_check_watch_resources): Renamed to ...
4664 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4665 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4666 (booke_cmp_hw_point): New function.
4667 (booke_find_thread_points_by_tid): Ditto.
4668 (booke_insert_point): Ditto.
4669 (booke_remove_point): Ditto.
4670 (ppc_linux_insert_hw_breakpoint): Ditto.
4671 (ppc_linux_remove_hw_breakpoint): Ditto.
4672 (get_trigger_type): Ditto.
4673 (ppc_linux_insert_watchpoint): Handle BookE processors.
4674 (ppc_linux_remove_watchpoint): Ditto.
4675 (ppc_linux_new_thread): Ditto.
4676 (ppc_linux_thread_exit): New function..
4677 (ppc_linux_stopped_data_address): Handle BookE processors.
4678 (ppc_linux_watchpoint_addr_within_range): Ditto.
4679 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4680 to_remove_hw_breakpoint fields of the target operations struct.
4681 Add observe for the thread_exit event.
4683 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4685 * i386-linux-nat.c (regmap): Removed.
4686 (fetch_register): Replace regmap with
4687 i386_linux_gregset_reg_offset.
4688 (store_register): Likewise.
4689 (supply_gregset): Likewise.
4690 (fill_gregset): Likewise.
4692 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4695 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4697 2010-04-22 Chris Moller <cmoller@redhat.com>
4699 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4700 method of popping recursion-detection stack with a method based on
4701 obstack_object_size(). (Similar to the PR9167 patch below, but for
4702 the static array obstack rather than the static member obstack.)
4704 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4706 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4707 (_initialize_amd64_linux_nat): Replace
4708 amd64_linux_gregset64_reg_offset with
4709 amd64_linux_gregset_reg_offset.
4711 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4714 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4716 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4719 * stabsread.c (set_length_in_type_chain): New function.
4720 (read_struct_type): Call set_length_in_type_chain function.
4721 (read_enum_type): Idem.
4723 2010-04-21 Stan Shebs <stan@codesourcery.com>
4724 Nathan Sidwell <nathan@codesourcery.com>
4726 * tracepoint.c (trace_save): Open in binary mode.
4728 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4730 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4732 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
4733 builtin_char32 fields.
4734 * printcmd.c (decode_format): Set char size to '\0'
4735 for strings unless explicit size is given.
4736 (print_formatted): Correct calculation of NEXT_ADDRESS
4737 for 16 or 32 bit strings.
4738 (do_examine): Do not force byte size for strings.
4739 Use builtin_char16 and builtin_char32 types to display
4740 16 or 32 bit-wide strings.
4741 (x_command): Set LAST_SIZE to 'b' for string type.
4743 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4746 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4749 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4750 there is no .reg-xstate section.
4751 (i386_linux_core_read_description): Check XCR0 first.
4753 2010-04-21 Mike Frysinger <vapier@gentoo.org>
4755 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4758 2010-04-21 Chris Moller <cmoller@redhat.com>
4761 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4762 method of popping recursion-detection stack with a method based on
4763 obstack_object_size().
4765 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4768 * p-valprint.c (pascal_val_print): Fix default printing of integer
4771 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4773 Fix compilation warning on gcc-4.1.2.
4774 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4775 local variable`pc' to zero.
4777 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4779 Implement thread support with core files on alpha-tru64.
4780 * dec-thread.c (dec_thread_find_new_threads): New function,
4781 extracted from resync_thread_list.
4782 (resync_thread_list): Add OPS parameter. Replace extracted-out
4783 code by call to dec_thread_find_new_threads.
4784 (dec_thread_wait): Update call to resync_thread_list.
4785 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4787 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4789 * ada-lang.c (value_pointer): New function.
4790 (make_array_descriptor): Call value_pointer to convert addresses to
4793 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4795 * rs6000-aix-tdep.c: #include exceptions.h.
4796 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4797 while reading the memory at ADDR, then ADDR cannot be a function
4800 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4802 * ada-typeprint.c (ada_print_typedef): New function.
4803 * ada-lang.h (ada_print_typedef): Add declaration.
4804 * ada-lang.c (ada_language_defn): set la_print_typdef field
4805 to ada_print_typedef.
4807 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4809 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4811 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4813 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4814 (iterate_over_mappings): Adjust function profile. Add declaration.
4815 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4818 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4820 * procfs.c (solib_mappings_callback): Move function up to avoid
4823 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4825 * procfs.c (find_signalled_thread, find_stop_signal): Move
4826 these functions down to define them only when used.
4828 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4830 * valprint.c (common_val_print): Fix the value before extracting
4832 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4833 * ada-lang.h (ada_to_fixed_value): New function declaration.
4834 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4835 to avoid code duplication and fix a bug in the handling of
4836 fixed types contents.
4838 2010-04-20 Tom Tromey <tromey@redhat.com>
4840 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4841 (read_partial_die): Likewise.
4842 (dwarf_attr_name): Likewise.
4844 2010-04-20 Chris Moller <cmoller@redhat.com>
4848 * cp-valprint.c (global): Adding new static array recursion
4850 (cp_print_value_fields, cp_print_static_field): Added new static
4851 array recursion detection code.
4853 2010-04-20 Mark Kettenis <kettenis@gnu.org>
4855 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4856 general-purpose register set should be 68 instead of 144.
4857 (i386_linux_sse_regset_sections): Likewise.
4858 (i386_linux_avx_regset_sections): Likewise.
4860 2010-04-20 Stan Shebs <stan@codesourcery.com>
4861 Nathan Sidwell <nathan@codesourcery.com>
4863 * dwarf2loc.c (struct axs_var_loc): New struct.
4864 (dwarf2_tracepoint_var_loc): New function.
4865 (dwarf2_tracepoint_var_access): New function.
4866 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4868 (locexpr_describe_location_piece): New function.
4869 (locexpr_describe_location_1): New function.
4870 (locexpr_describe_location): Call it, update signature.
4871 (loclist_describe_location): Rewrite to loop over locations,
4873 * symtab.h (struct symbol_computed_ops): Add address to
4874 describe_location arguments, return void.
4875 * printcmd.c (address_info): Get context PC, pass to computed
4876 location description.
4877 * tracepoint.c (scope_info): Ditto.
4878 * ax-gdb.c (trace_kludge): Export.
4880 2010-04-20 Tom Tromey <tromey@redhat.com>
4882 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4883 (struct dwarf2_cie) <segment_size>: New field.
4884 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4885 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4887 (read_attribute_value): Handle DW_FORM_flag_present,
4888 DW_FORM_sec_offset, DW_FORM_exprloc.
4889 (dump_die_shallow): Likewise.
4890 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4891 (dwarf2_const_value): Handle DW_FORM_exprloc.
4892 (attr_form_is_block): Likewise.
4893 (struct line_header) <maximum_ops_per_instruction>: New field.
4894 (dwarf_decode_line_header): Set new field.
4895 (dwarf_decode_lines): Handle new field.
4897 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4899 * f-exp.y: Add new production to recognize the `logical*8' type.
4900 (LOGICAL_S8_KEYWORD): New token.
4901 * f-lang.c (enum f_primitive_types)
4902 <f_primitive_type_logical_s8>: New field.
4903 (f_language_arch_info): Handling `logical*8' type.
4904 (build_fortran_types): Building `logical*8' type.
4905 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4907 2010-04-19 Doug Evans <dje@google.com>
4909 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4910 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4911 (pipe_close): Ditto.
4913 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4915 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4917 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4919 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4920 type to void function.
4922 2010-04-19 Stan Shebs <stan@codesourcery.com>
4923 Vladimir Prus <vladimir@codesourcery.com>
4925 * tracepoint.c (tfind_1): Add missing newline, report exit from
4927 * target.c (update_current_target): Make default
4928 to_trace_find return -1.
4930 2010-04-19 Mike Frysinger <vapier@gentoo.org>
4932 * objc-lang.c (find_methods): Move symname check up.
4934 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4936 * ada-lang.c (print_recreate_exception)
4937 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4938 not "catch unhandled".
4940 2010-04-19 Pedro Alves <pedro@codesourcery.com>
4942 PR breakpoints/8554.
4944 Implement `save-breakpoints'.
4946 * breakpoint.c (save_cmdlist): New.
4947 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4949 (print_recreate_catch_fork): New.
4950 (catch_fork_breakpoint_ops): Install it.
4951 (print_recreate_catch_vfork): New.
4952 (catch_vfork_breakpoint_ops): Install it.
4953 (print_recreate_catch_syscall): New.
4954 (catch_syscall_breakpoint_ops): Install it.
4955 (print_recreate_catch_exec): New.
4956 (catch_exec_breakpoint_ops): Install it.
4957 (print_recreate_exception_catchpoint): New.
4958 (gnu_v3_exception_catchpoint_ops): Install it.
4959 (save_breakpoints): New, based on tracepoint_save_command, but
4960 handle all breakpoint types.
4961 (save_breakpoints_command): New.
4962 (tracepoint_save_command): Rename to...
4963 (save_tracepoints_command): ... this, and reimplement using
4965 (save_command): New.
4966 (_initialize_breakpoints): Install the "save" command prefix.
4967 Install the "save breakpoints" command. Make "save-tracepoints" a
4968 deprecated alias for "save tracepoints".
4969 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4970 * ada-lang.c (print_recreate_exception): New.
4971 (print_recreate_catch_exception): New.
4972 (catch_exception_breakpoint_ops): Install it.
4973 (print_recreate_catch_exception_unhandled): New.
4974 (catch_exception_unhandled_breakpoint_ops): Install it.
4975 (print_recreate_catch_assert): New.
4976 (catch_assert_breakpoint_ops): Install it.
4978 * NEWS: Mention the new `save breakpoints' command. Mention the
4979 new `save tracepoints' alias and that `save-tracepoints' is now
4982 2010-04-18 Pedro Alves <pedro@codesourcery.com>
4986 * tui/tui-out.c: Include cli-out.h.
4987 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4988 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4989 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4990 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4992 (struct ui_out_data): Rename to...
4993 (struct tui_ui_out_data): ... this. Remove `stream' and
4994 `suppress_output' fields, and inherit cli_ui_out_data.
4995 (tui_out_data): New typedef.
4996 (tui_ui_out_impl): Don't initialize fields staticaly.
4997 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4998 (tui_begin, tui_end): Delete.
4999 (tui_field_int): Adjust to delegate most work to the base type.
5000 (tui_field_skip): Delete.
5001 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5002 delegate most work to the base type.
5003 (tui_spaces): Delete.
5004 (tui_text): Adjust to delegate most work to the base type.
5005 (tui_message): Delete.
5006 (tui_wrap_hint): Delete.
5007 (tui_flush): Delete.
5008 (out_field_fmt): Delete.
5009 (field_separator): Delete.
5010 (tui_out_new): Adjust to initialize the base type.
5011 (_initialize_tui_out): Initialize tui_ui_out_impl.
5012 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5014 (cli_out_data): Adjust.
5015 (cli_ui_out_impl): Make extern.
5016 (cli_table_header, cli_field_int, cli_field_skip): Use
5017 uo_field_string instead of cli_field_string.
5018 (cli_redirect): Adjust to use cli_out_data.
5019 (cli_out_data_ctor): New.
5020 (cli_out_new): Use it.
5021 * cli-out.h (struct ui_file): Remove forward declaration.
5022 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5023 (cli_ui_out_impl): Declare.
5024 (cli_out_data_ctor): Declare.
5025 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5026 (uo_field_string): No longer static.
5027 (ui_out_data): Change return type to void pointer.
5028 (ui_out_new): Change `data' parameter type to void pointer.
5029 * ui-out.h (struct ui_out_data): Don't forward declare.
5030 (ui_out_data): Change return type to void pointer.
5031 (ui_out_new): Change `data' parameter type to void pointer.
5032 (uo_field_string): Declare.
5034 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5036 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5037 instead of always false.
5039 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5042 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5045 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5047 * breakpoint.c (watchpoints_triggered): Use
5048 is_hardware_watchpoint.
5049 (watchpoints_triggered): Ditto.
5050 (bpstat_check_location): Use is_watchpoint and
5051 is_hardware_watchpoint.
5052 (bpstat_check_watchpoint): Use is_watchpoint and
5053 is_hardware_watchpoint.
5054 (bpstat_stop_status): Fix comment.
5055 (user_settable_breakpoint): Use is_watchpoint.
5056 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5057 (disable_watchpoints_before_interactive_call_start): Use
5059 (enable_watchpoints_after_interactive_call_stop): Use
5061 (clear_command): Use is_watchpoint.
5062 (do_enable_breakpoint): Use is_watchpoint.
5064 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5066 * solib-frv.c (enable_break1_done): Delete.
5067 (enable_break2): Do not check enable_break1_done. Move the
5068 enable_break2_done setting and call to
5069 remove_solib_event_breakpoints() to the end. Return without
5070 warning when the contents of _dl_debug_addr are 0.
5071 (enable_break): Do not set enable_break1_done.
5072 (frv_clear_solib): Likewise.
5074 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5076 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5077 instead of an error if no PLT entry is found. Return a
5078 potentially useful result.
5079 (m32c_m16c_pointer_to_address): Add code to search for function
5080 address when no .plt entry is found.
5082 2010-04-16 Stan Shebs <stan@codesourcery.com>
5084 * tracepoint.c (trace_variable_command): Run a cleanup.
5086 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5088 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5090 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5092 Support for Windows OS Thread Information Block.
5093 * NEWS: Document new feature.
5094 * remote.c (PACKET_qGetTIBAddr): New enum element.
5095 (remote_get_tib_address): New function.
5096 (init_remote_ops): Set to_get_tib_address field
5097 to remote_get_tib_address.
5098 (_initialize_remote): Add add_packet_config_cmd
5099 for PACKET_qGetTIBAddr.
5100 * target.c (update_current_target): Set default value for
5101 new to_get_tib_address field.
5102 * target.h (target_ops): New field to_get_tib_address.
5103 (target_get_tib_address): New macro.
5104 * windows-nat.c (thread_info): Add thread_local_base field.
5105 (windows_add_thread): Add tlb argument of type 'void *'.
5106 (fake_create_process): Adapt windows_add_thread call.
5107 (get_windows_debug_event): Idem.
5108 (windows_get_tib_address): New function.
5109 (init_windows_ops): Set to_get_tib_address field
5110 to remote_get_tib_address.
5111 (_initialize_windows_nat): Replace info_w32_cmdlist
5112 initialization by a call to init_w32_command_list.
5113 (info_w32_command, info_w32_cmdlist): Removed from here...
5114 to windows-tdep.c file.
5115 * windows-tdep.h (info_w32_cmdlist): Declare.
5116 (init_w32_command_list): New external function
5118 * windows-tdep.c: Add several headers.
5119 (info_w32_cmdlist): to here, made global.
5120 (thread_information_32): New struct.
5121 (thread_information_64): New struct.
5122 (TIB_NAME): New char array.
5123 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5124 (maint_display_all_tib): New static variable.
5125 (windows_get_tlb_type): New function.
5126 (tlb_value_read, tlb_value_write): New functions.
5127 (tlb_value_funcs): New static struct.
5128 (tlb_make_value): New function.
5129 (display_one_tib): New function.
5130 (display_tib): New function.
5131 (show_maint_show_all_tib):New function.
5132 (info_w32_command): Moved from windows-nat.c.
5133 (init_w32_command_list): New function.
5134 (_initialize_windows_tdep): New function.
5135 New "maint set/show show-all-tib" command
5136 New "$_tlb" internal variable.
5138 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5140 * tui/tui-regs.c (tui_display_register): Add comment about
5142 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5144 2010-04-15 Stan Shebs <stan@codesourcery.com>
5146 * frame.c: Include tracepoint.h.
5147 (get_current_frame): Allow a trace frame to be an alternate source
5148 of stack frame data.
5149 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5152 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5154 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5156 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5158 2010-04-15 Doug Evans <dje@google.com>
5160 * NEWS: Add entry for python program space support.
5161 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5162 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5163 (py-progspace.o): New rule.
5164 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5166 (find_pretty_printer_from_progspace): New function.
5167 (find_pretty_printer_from_gdb): New function.
5168 (find_pretty_printer): Rewrite.
5169 * python/py-progspace.c: New file.
5170 * python/python-internal.h (program_space): Add forward decl.
5171 (pspace_to_pspace_object, pspy_get_printers): Declare.
5172 (gdbpy_initialize_pspace): Declare.
5173 * python/python.c: #include "progspace.h".
5174 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5175 (_initialize_python): Call gdbpy_initialize_pspace.
5176 (GdbMethods): Add current_progspace, progspaces.
5178 Add -s option to source command.
5179 * NEWS: Document new option.
5180 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5181 Delete from_tty and cleanupp args. Split filep arg into file and
5182 full_pathp. New arg search_path.
5183 (source_script_from_stream): New function.
5184 (source_script_with_search): New function.
5185 (source_script): Rewrite.
5186 (source_command): Parse "-s" option.
5187 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5188 * python/python.c (source_python_script): Make file arg a const char *.
5189 Don't call fclose, leave for caller.
5190 * python/python.h (source_python_script): Update.
5192 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5193 Pedro Alves <pedro@codesourcery.com>
5195 Avoid rereading shared libraries that haven't changed.
5197 * solib.c (free_so_symbols): New function, from ...
5198 (free_so): ... here. Call it.
5199 (solib_read_symbols): Don't warn here if symbols have already been
5201 (solib_add): Warn here instead, if a pattern was specified.
5202 (reload_shared_libraries_1): New.
5203 (reload_shared_libraries): Rewrite to not fetch the library list.
5205 2010-04-14 Doug Evans <dje@google.com>
5207 * source.c (openp): Strip DOS drive letter if present before
5208 concatenating string to search path.
5210 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5212 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5213 * objfiles.c (gdb_bfd_close_or_warn): New.
5214 * corelow.c: Include objfiles.h
5215 (core_close): Use gdb_bfd_close_or_warn.
5216 * elfread.c (build_id_verify): Ditto.
5217 * exec.c (exec_close, exec_close_1): Ditto.
5219 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5220 Pedro Alves <pedro@codesourcery.com>
5222 Group errors for many missing shared libraries.
5224 * solist.h (struct so_list): Remove from_tty.
5225 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5226 (solib_map_sections): Take so_list argument. Return 0 if we
5227 failed to open a BFD. Add target sections here.
5228 (symbol_add_stub): Delete.
5229 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5230 not from_tty copied from the so_list. Don't warn a second time
5231 for a missing library.
5232 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5233 add to the section table here. Print out a single warning for all
5235 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5238 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5240 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5241 error/warning messages. Capitalize and use complete sentences.
5242 (blpy_block_syms_iternext): Likewise.
5243 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5244 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5245 (frame_info_to_frame_object, frapy_read_var)
5246 (gdbpy_frame_stop_reason_string): Likewise.
5247 * python/py-lazy-string.c (stpy_convert_to_value)
5248 (gdbpy_create_lazy_string_object): Likewise.
5249 * python/py-objfile.c (objfpy_set_printers): Likewise.
5250 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5251 * python/python.c (parameter_to_python): Likewise.
5252 * python/py-type.c (typy_range, typy_target): Likewise.
5253 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5254 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5257 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5261 * python/py-prettyprint.c (pretty_print_one_value): Test for
5263 (print_string_repr): Test for Py_None. Set flags accordingly.
5264 Return value depending on return type.
5265 (print_children): Take a value indicating whether data was printed
5266 before this function was called. Alter output accordingly.
5267 (apply_val_pretty_printer): Capture return value from
5268 print_string_repr and pass to print_children.
5270 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5273 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5274 register note sections.
5275 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5277 (i386_linux_init_abi): Install list of supported register note
5278 sections that matches the target description.
5280 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5282 * remote.c (remote_get_noisy_reply): Don't error out on empty
5284 (remote_start_remote): Update and merge tracepoints and trace
5285 state variables as long as the target supports tracepoints.
5286 (remote_trace_init): Fix prototype.
5287 (remote_download_trace_state_variable): Validate reply.
5288 (remote_trace_set_readonly_regions): Fix prototype.
5289 (remote_trace_start): Fix prototype. Check for empty reply.
5290 (remote_get_trace_status): Small cleanup.
5291 (remote_trace_stop): Fix prototype. Check for empty reply.
5292 (remote_trace_find): Check for empty reply.
5293 (remote_save_trace_data): Validate reply.
5294 (remote_set_disconnected_tracing): Check for empty reply, and
5296 (remote_set_circular_trace_buffer): Ditto.
5298 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5300 Suppress unused value warning during compilation.
5301 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5303 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5305 2010-04-12 Stan Shebs <stan@codesourcery.com>
5307 * tracepoint.c (tfile_xfer_partial): Check read result.
5309 2010-04-12 Mike Frysinger <vapier@gentoo.org>
5311 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5312 * remote-sim.c (gdbsim_files_info): Likewise.
5314 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5316 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5317 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5319 (fetch_vfp_registers): New function to fetch VFP registers.
5320 (store_vfp_registers): New function to store VFP registers.
5321 (arm_linux_fetch_inferior_registers): Add support for VFP
5323 (arm_linux_store_inferior_registers): Likewise.
5324 (arm_linux_read_description): Likewise.
5325 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5328 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5330 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5332 (amd64_collect_xstateregset): Likewise.
5334 2010-04-09 Stan Shebs <stan@codesourcery.com>
5336 * tracepoint.c (trace_status_mi): Report frames created.
5338 * tracepoint.c (trace_dump_command): Include default-collect
5341 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5343 * symtab.c (find_function_start_sal): Never return SAL pointing
5344 before function start address, even if line info is missing.
5346 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5348 * NEWS: Mention tracepoints support.
5350 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5352 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5353 circular trace buffer statuses.
5355 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5357 * config/djgpp/fnchange.lst: Fix typo in translations for
5358 symbol-without-target_section.exp and symbol-without-target_section.c.
5360 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5362 * breakpoint.c (condition_command): Pass condition expression to
5363 set_breakpoint_condition stripped from breakpoint number.
5365 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5366 Thiago Jung Bauermann <bauerman@br.ibm.com>
5367 Tom Tromey <tromey@redhat.com>
5369 * breakpoint.c (condition_command): Simplify. Move condition
5371 (set_breakpoint_condition): ... here. New function.
5372 * breakpoint.h (set_breakpoint_condition): Declare.
5373 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5374 (SUBDIR_PYTHON_SRCS): Likewise.
5375 (py-breakpoint.o): New rule.
5376 * python/py-breakpoint.c: New file.
5377 * python/python-internal.h (gdbpy_breakpoints)
5378 (gdbpy_initialize_breakpoints): Declare.
5379 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5381 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5383 * regformats/regdat.sh: Include server.h. Don't include
5386 2010-04-08 Stan Shebs <stan@codesourcery.com>
5387 Pedro Alves <pedro@codesourcery.com>
5389 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5390 and circular_buffer.
5391 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5392 * tracepoint.c (trace_status_command): Display target's status for
5393 disconnected tracing and circular buffer.
5394 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5395 query for non-disconnected-tracing case, remove the stop_tracing
5397 (tfile_open): Clear disconnected and circular buffer status.
5398 (trace_save): Save disconnected and circular buffer status.
5399 (parse_trace_status): Parse disconnected and circular buffer status,
5400 also recognize disconnected as a stop reason.
5401 * remote.c (remote_set_disconnected_tracing): Only set
5402 QTDisconnected if the remote end supports disconnected tracing.
5403 Warn otherwise, if trying to enable disconnected tracing.
5404 * infcmd.c (detach_command): Update disconnect_tracing call.
5405 * cli/cli-cmds.c (quit_command): Ditto.
5407 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5409 * i387-tdep.c (i387_collect_xsave): Replace abort with
5412 2010-04-08 Stan Shebs <stan@codesourcery.com>
5414 * breakpoint.c (default_collect_info): New function.
5415 (breakpoints_info): Call it.
5416 (maintenance_info_breakpoints): Ditto.
5417 (tracepoints_info): Ditto.
5419 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5421 * i387-tdep.c (i387_collect_xsave): Re-indent.
5423 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5425 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5426 if HAVE_PTRACE_GETFPXREGS is defined.
5427 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5428 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5430 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5431 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5432 if .reg-xfp section doesn't exist.
5433 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5435 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5437 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5438 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5439 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5440 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5441 (i386_gdbarch_init): Update comments.
5442 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5444 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5446 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5448 * features/Makefile (i386/i386-mmx-expedite): New.
5449 (i386/i386-mmx-linux-expedite): Likewise.
5450 ($(outdir)/i386/i386-mmx.dat): Likewise.
5451 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5453 * features/i386/i386-mmx-linux.c: New.
5454 * features/i386/i386-mmx-linux.xml: Likewise.
5455 * features/i386/i386-mmx.c: Likewise.
5456 * features/i386/i386-mmx.xml: Likewise.
5457 * regformats/i386/i386-mmx-linux.dat: Likewise.
5458 * regformats/i386/i386-mmx.dat: Likewise.
5460 * features/Makefile (WHICH): Add i386/i386-mmx and
5461 i386/i386-mmx-linux.
5463 2010-04-08 Doug Evans <dje@google.com>
5465 * source.c (openp): Skip $cdir in PATH.
5467 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5470 * python/py-lazy-string.c (stpy_convert_to_value): Check for
5472 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5473 address and a zero length.
5475 2010-04-08 Hui Zhu <teawater@gmail.com>
5477 * i386-tdep.c (i386_process_record): Add support for insn
5480 2010-04-07 Doug Evans <dje@google.com>
5482 * python/python.c (source_python_script): Use ensure_python_env
5483 to prepare environment for script.
5485 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5487 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5488 <sys/uio.h> and "i386-xstate.h".
5489 (PTRACE_GETREGSET): New.
5490 (PTRACE_SETREGSET): Likewise.
5491 (have_ptrace_getregset): Likewise.
5492 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5494 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5496 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5497 (amd64_linux_store_inferior_registers): Likewise.
5498 (amd64_linux_read_description): Check and enable AVX target
5501 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5502 and "features/i386/amd64-avx-linux.c".
5503 (amd64_linux_regset_sections): New.
5504 (amd64_linux_core_read_description): Check and enable AVX
5506 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5507 set_gdbarch_core_regset_sections.
5508 (_initialize_amd64_linux_tdep): Call
5509 initialize_tdesc_amd64_avx_linux.
5511 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5512 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5513 (tdesc_amd64_avx_linux): New.
5514 (amd64_linux_update_xstateregset): Likewise.
5516 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5517 (amd64_ymm_names): New.
5518 (amd64_ymmh_names): Likewise.
5519 (amd64_register_name): Likewise.
5520 (amd64_supply_xstateregset): Likewise.
5521 (amd64_collect_xstateregset): Likewise.
5522 (amd64_supply_xsave): Likewise.
5523 (amd64_collect_xsave): Likewise.
5524 (AMD64_NUM_REGS): Removed.
5525 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5526 %xmmN if AVX is available.
5527 (amd64_pseudo_register_name): Support pseudo YMM registers.
5528 (amd64_regset_from_core_section): Support .reg-xstate section.
5529 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5530 and ymm0h_regnum. Call set_gdbarch_register_name.
5531 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5533 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5534 AMD64_YMM15H_REGNUM.
5535 (AMD64_NUM_REGS): New.
5536 (amd64_supply_xsave): Likewise.
5537 (amd64_collect_xsave): Likewise.
5538 (amd64_register_name): Removed.
5539 (amd64_register_type): Likewise.
5541 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5543 * i387-tdep.c: Include "i386-xstate.h".
5544 (XSAVE_XSTATE_BV_ADDR): New.
5545 (xsave_avxh_offset): Likewise.
5546 (XSAVE_AVXH_ADDR): Likewise.
5547 (i387_supply_xsave): Likewise.
5548 (i387_collect_xsave): Likewise.
5550 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5551 (I387_YMM0H_REGNUM): Likewise.
5552 (I387_YMMENDH_REGNUM): Likewise.
5553 (i387_supply_xsave): Likewise.
5554 (i387_collect_xsave): Likewise.
5556 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5558 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5559 <sys/uio.h> and "i386-xstate.h".
5560 (PTRACE_GETREGSET): New.
5561 (PTRACE_SETREGSET): Likewise.
5562 (fetch_xstateregs): Likewise.
5563 (store_xstateregs): Likewise.
5564 (GETXSTATEREGS_SUPPLIES): Likewise.
5565 (regmap): Include 8 upper YMM registers.
5566 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5568 (i386_linux_store_inferior_registers): Likewise.
5569 (i386_linux_read_description): Check and enable AVX target
5572 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5573 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5574 (i386_linux_regset_sections): Add ".reg-xstate".
5575 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5576 (i386_linux_core_read_xcr0): New.
5577 (i386_linux_core_read_description): Check and enable AVX target
5579 (i386_linux_init_abi): Set xsave_xcr0_offset.
5580 (_initialize_i386_linux_tdep): Call
5581 initialize_tdesc_i386_avx_linux.
5583 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5584 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5585 (i386_linux_core_read_xcr0): New.
5586 (tdesc_i386_avx_linux): Likewise.
5587 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5589 * i386-tdep.c: Include "i386-xstate.h" and
5590 "features/i386/i386-avx.c".
5591 (i386_ymm_names): New.
5592 (i386_ymmh_names): Likewise.
5593 (i386_ymmh_regnum_p): Likewise.
5594 (i386_ymm_regnum_p): Likewise.
5595 (i386_xmm_regnum_p): Likewise.
5596 (i386_register_name): Likewise.
5597 (i386_ymm_type): Likewise.
5598 (i386_supply_xstateregset): Likewise.
5599 (i386_collect_xstateregset): Likewise.
5600 (i386_sse_regnum_p): Removed.
5601 (i386_pseudo_register_name): Support pseudo YMM registers.
5602 (i386_pseudo_register_type): Likewise.
5603 (i386_pseudo_register_read): Likewise.
5604 (i386_pseudo_register_write): Likewise.
5605 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5606 %xmmN if AVX is available.
5607 (i386_regset_from_core_section): Support .reg-xstate section.
5608 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5609 (i386_process_record): Replace i386_sse_regnum_p with
5611 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5612 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5613 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5614 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5615 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5616 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5618 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5620 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5621 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5623 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5624 (I386_AVX_NUM_REGS): New.
5625 (i386_xmm_regnum_p): Likewise.
5626 (i386_ymm_regnum_p): Likewise.
5627 (i386_ymmh_regnum_p): Likewise.
5629 * common/i386-xstate.h: New.
5631 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5633 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5635 * features/Makefile (WHICH): Add i386/i386-avx,
5636 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5637 (i386/i386-avx-expedite): New.
5638 (i386/i386-avx-linux-expedite): Likewise.
5639 (i386/x86-64-avx-expedite):Likewise.
5640 (i386/x86-64-avx-linux-expedite): Likewise.
5641 ($(outdir)/i386/i386-avx.dat): New dependency.
5642 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5643 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5644 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5646 * features/i386/32bit-avx.xml: New.
5647 * features/i386/64bit-avx.xml: Likewise.
5648 * features/i386/i386-avx-linux.c: Likewise.
5649 * features/i386/i386-avx-linux.xml: Likewise.
5650 * features/i386/i386-avx.c: Likewise.
5651 * features/i386/i386-avx.xml: Likewise.
5652 * features/i386/x86-64-avx-linux.c: Likewise.
5653 * features/i386/x86-64-avx-linux.xml: Likewise.
5654 * features/i386/x86-64-avx.c: Likewise.
5655 * features/i386/x86-64-avx.xml: Likewise.
5656 * regformats/i386/i386-avx-linux.dat: Likewise.
5657 * regformats/i386/i386-avx.dat: Likewise.
5658 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5659 * regformats/i386/x86-64-avx.dat: Likewise.
5661 2010-04-07 Doug Evans <dje@google.com>
5663 * top.c (source_file_name): Make const char *.
5664 * top.h (source_file_name): Update.
5665 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5667 (script_from_file): Change `file' arg to const char *.
5668 * cli/cli-script.h (script_from_file): Update.
5670 2010-04-06 Doug Evans <dje@google.com>
5672 * cli/cli-cmds.c (source_command): Run cleanups.
5674 2010-04-06 Stan Shebs <stan@codesourcery.com>
5676 * defs.h (char_ptr): Move typedef here from...
5677 * ada-lang.c (char_ptr): Remove.
5678 * charset.c (char_ptr): Remove.
5679 * tracepoint.h (struct uploaded_string): Remove.
5680 (struct uploaded_tp): Use vectors for string arrays.
5681 * tracepoint.c (trace_save): Use vectors of actions.
5682 (parse_tracepoint_definition): Ditto.
5683 (get_uploaded_tp): Clear vectors.
5684 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5685 (next_cmd): Change to an int.
5686 (read_next_cmd): Use vector of command strings.
5688 2010-04-06 Doug Evans <dje@google.com>
5690 * top.h (source_script, cd_command): Delete.
5691 * main.c: #include "cli/cli-cmds.h"
5693 2010-04-06 Kevin Buettner <kevinb@redhat.com>
5695 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5696 type in bytes, not bits.
5698 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5700 * stabsread.c (define_symbol): Add support for char
5701 and string constants.
5703 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5705 Remove remaining "%ll" uses.
5706 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5708 * rs6000-nat.c (rs6000_ptrace64): Idem.
5709 * solib-pa64.c (pa64_current_sos): Idem.
5710 * solib-spu.c (spu_current_sos): Idem.
5711 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5713 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5715 * sh64-tdep.c (sh64_show_media_regs): Idem.
5717 2010-04-05 Stan Shebs <stan@codesourcery.com>
5719 * tracepoint.c: Include gdbcore.h.
5720 (tfile_xfer_partial): Return partial results, also try reading
5722 (tfile_has_all_memory): New function.
5723 (init_tfile_ops): Use it.
5725 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5728 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5729 the changes in data-directory.
5730 (init_sysinfo): Reload the syscall XML file if the data-directory
5733 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5736 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5738 2010-04-04 Stan Shebs <stan@codesourcery.com>
5739 Nathan Sidwell <nathan@codesourcery.com>
5741 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5742 breakpoints printed.
5743 (is_hardware_watchpoint): Make argument const.
5744 (is_watchpoint): Ditto.
5745 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5747 (breakpoints_info): Pass NULL to breakpoint_1.
5748 (maintenance_info_breakpoints): Ditto.
5749 (watchpoints_info): New function.
5750 (tracepoints_info): Use breakpoint_1 filter.
5751 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5752 (_initialize_breakpoint): Make "info watchpoints" its own command.
5753 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5754 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5756 2010-04-04 Stan Shebs <stan@codesourcery.com>
5758 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5760 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5762 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5763 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5765 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5767 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5768 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5770 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5772 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5775 2010-04-02 Hui Zhu <teawater@gmail.com>
5777 * i386-tdep.c (OT_DQUAD): New enum.
5778 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5779 SSE3, SSSE3 and SSE4.
5781 2010-04-02 Hui Zhu <teawater@gmail.com>
5783 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5786 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5788 * tracepoint.c (trace_dump_actions): New, factored out from
5789 trace_dump_command, and adjusted to recurse into while-stepping's
5791 (trace_dump_command): Use it.
5793 2010-04-02 Pedro Alves <pedro@codesourcery.com>
5795 * breakpoint.h (struct counted_command_line): Moved definition to
5796 breakpoint.c, and forward declare.
5797 (breakpoint_commands): Declare.
5798 * breakpoint.c (struct counted_command_line): Moved here.
5799 (breakpoint_commands): New.
5800 * tracepoint.c (encode_actions): Use breakpoint_commands.
5801 * remote.c (remote_download_tracepoint): Ditto.
5803 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5805 * remote.c (remote_parse_stop_reply): Use hex_string instead
5806 of phex_nz for error.
5808 2010-04-01 Stan Shebs <stan@codesourcery.com>
5809 Nathan Sidwell <nathan@codesourcery.com>
5811 * tracepoint.h (enum actionline_type): Remove.
5812 (validate_actionline): Change return to void.
5813 * tracepoint.c (report_agent_reqs_errors): New function.
5814 (validate_actionline): Call it, change return to void, report errors
5816 (collect_symbol): Call report_agent_reqs_errors.
5817 (encode_actions_1): Ditto.
5818 (encode_actions): Don't expect a result from validate_actionline.
5820 2010-04-01 Stan Shebs <stan@codesourcery.com>
5822 * tracepoint.c (trace_start_command): Confirm if trace is running.
5823 (trace_stop_command): Error if trace not running.
5825 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5827 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5828 (AMD64_NUM_LOWER_BYTE_REGS): New.
5829 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5830 (amd64_pseudo_register_write): Likewise.
5831 (amd64_init_abi): Set num_byte_regs to 20.
5833 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5835 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5836 (prev_breakpoint_count): New.
5837 (set_breakpoint_count): Adjust.
5838 (rbreak_start_breakpoint_count): New.
5839 (start_rbreak_breakpoints): Adjust.
5840 (end_rbreak_breakpoints): Adjust.
5841 (struct commands_info) <arg>: New field.
5842 (do_map_commands_command): Tweak output to include breakpoint spec
5844 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5845 ARG was empty on entry. Set INFO's arg.
5846 (create_breakpoint): Adjust.
5848 * NEWS: Clarify `commands' changes.
5850 2010-04-01 Pedro Alves <pedro@codesourcery.com>
5852 * tracepoint.c: Include stack.h.
5853 (struct add_local_symbols_data): New.
5854 (do_collect_symbol): New.
5855 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5856 iterate_over_block_local_vars.
5857 * stack.c (print_block_frame_locals): Rewrite as ...
5858 (iterate_over_block_locals): ... this. Take a callback function
5859 pointer and generic data pointer, and call that instead of
5860 print_variable_and_value.
5861 (struct print_variable_and_value_data): New.
5862 (do_print_variable_and_value): New.
5863 (iterate_over_block_local_vars): New, abstracted out from
5864 print_frame_local_vars.
5865 (print_frame_local_vars): Rewrite using
5866 iterate_over_block_local_vars.
5867 (iterate_over_block_arg_vars): New, abstracted out from
5868 print_frame_arg_vars.
5869 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5870 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5871 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5873 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
5875 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
5876 instructions. Use the PC+4 if the base of the TBB or TBH is the
5879 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5881 Fix crash on reading wrong function declaration DWARF.
5882 * dwarf2read.c (read_subroutine_type): New variable void_type.
5883 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5884 more close to their use.
5886 2010-03-31 Stan Shebs <stan@codesourcery.com>
5888 * breakpoint.c (tracepoint_save_command): Include variables,
5889 conditionals, tracepoint types, and default-collect.
5890 * tracepoint.c (save_trace_state_variables): New function.
5891 * tracepoint.h (save_trace_state_variables): Declare it.
5893 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5895 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
5897 2010-03-30 Keith Seitz <keiths@redhat.com>
5899 * c-typeprint.c (c_type_print_args): Don't print "void"
5900 for java, regardless of whether it is TYPE_PROTOTYPED.
5901 Use the passed-in language instead of current_language.
5902 (c_type_print_varspec_suffix): Use current_language instead
5903 of assuming language_c.
5904 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5905 any return type specifier from the physname.
5907 2010-03-30 Pedro Alves <pedro@codesourcery.com>
5909 * tui/tui-interp.c (tui_is_toplevel): New.
5911 (tui_allowed_p): New.
5912 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5914 * tui/tui.h (tui_allowed_p): Declare.
5916 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5918 * serial.h: Include winsock2.h before windows.h.
5920 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5922 * NEWS: Mention xmlRegisters= in qSupported packet.
5924 * i386-tdep.c: Include "remote.h".
5925 (_initialize_i386_tdep): Call register_remote_support_xml.
5927 * remote.c (remote_support_xml): New.
5928 (register_remote_support_xml): Likewise.
5929 (remote_query_supported_append): Likewise.
5930 (remote_query_supported): Support remote_support_xml.
5932 * remote.h (register_remote_support_xml): New.
5934 2010-03-29 Stan Shebs <stan@codesourcery.com>
5936 * tracepoint.c (trace_find_line_command): Remove dead code.
5938 * tracepoint.h (struct uploaded_string): New struct.
5939 (struct uploaded_tp): New fields for source strings.
5940 * breakpoint.c (this_utp, next_cmd): New globals.
5941 (read_uploaded_action): New function.
5942 (create_tracepoint_from_upload): Fill in more parts
5944 * tracepoint.c (encode_source_string): New function.
5945 (trace_save): Write out source strings, fix error checks.
5946 (parse_tracepoint_definition): Add source string parsing.
5947 * remote.c (PACKET_TracepointSource): New packet type.
5948 (remote_download_command_source): New function.
5949 (remote_download_tracepoint): Download source pieces also.
5950 (_initialize_remote): Add packet config command.
5952 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5955 * tracepoint.c (start_tracing): Check tracepoints before sending
5956 commands to target, don't start if all tracepoints disabled.
5958 2010-03-28 Pedro Alves <pedro@codesourcery.com>
5960 * cli/cli-script.c (process_next_line): Handle 'stepping'.
5962 2010-03-26 Stan Shebs <stan@codesourcery.com>
5964 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5966 2010-03-26 Tom Tromey <tromey@redhat.com>
5968 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5970 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5972 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5973 (skip_prologue_sal): Remove local definition.
5974 (resolve_sal_pc): Remove now unnecessary code.
5975 * linespec.c (minsym_found): Call skip_prologue_sal.
5976 * symtab.c (find_function_start_pc): Remove.
5977 (find_function_start_sal): Extract prologue skipping into ...
5978 (skip_prologue_sal): ... this new function. Handle code both
5979 with and without debug info. Respect SAL's explicit_pc and
5980 explicit_line flags. Inline old find_function_start_pc.
5981 * symtab.h (find_function_start_pc): Remove.
5982 (skip_prologue_sal): Add prototype.
5984 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5986 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5987 for DW_TAG_imported_module children.
5989 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5991 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5992 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5993 * completer.c (add_struct_fields): Fix inverted logic.
5995 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5997 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5999 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6001 * tracepoint.c (current_trace_status): Don't make sure error_desc
6003 (parse_trace_status): Release a previous error_desc string, and
6004 set it to NULL by default. If stop reason is tracepoint_error,
6005 make sure error_desc is not left NULL.
6007 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6009 * tracepoint.c (trace_save): Remove X from tracepoint error
6012 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6014 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6015 the terror description. Don't expect an X prefix.
6017 2010-03-25 Stan Shebs <stan@codesourcery.com>
6019 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6020 (struct trace_status): New field error_desc.
6021 * tracepoint.c (stop_reason_names): Add terror.
6022 (current_trace_status): Ensure non-NULL error description.
6023 (trace_status_command): Add error report.
6024 (trace_status_mi): Ditto.
6025 (trace_save): Add special case for error description.
6026 (parse_trace_status): Add case for errors.
6028 2010-03-25 Keith Seitz <keiths@redhat.com>
6030 * dwarf2read.c (read_subroutine_type): If the compilation unit
6031 language is Java, mark any formal parameter named "this" as
6032 artificial (GCC/43521).
6033 (dwarf2_name): Add special handling for Java constructors.
6035 2010-03-25 Tom Tromey <tromey@redhat.com>
6037 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6038 * infrun.c (handle_inferior_event): Change initialization of
6040 (handle_inferior_event): Change assignment to stop_stack_dummy.
6041 (normal_stop): Update use of stop_stack_dummy.
6042 (struct inferior_status) <stop_stack_dummy>: Change type.
6043 * inferior.h (stop_stack_dummy): Update.
6044 * infcmd.c (stop_stack_dummy): Change type.
6045 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6047 (call_function_by_hand): Call set_std_terminate_breakpoint.
6048 Rewrite std::terminate handling.
6049 * breakpoint.h (enum bptype) <bp_std_terminate,
6050 bp_std_terminate_master>: New.
6051 (enum stop_stack_kind): New.
6052 (struct bpstat_what) <call_dummy>: Change type.
6053 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6055 * breakpoint.c (create_std_terminate_master_breakpoint): New
6057 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6058 Call create_std_terminate_master_breakpoint.
6059 (print_it_typical): Handle new breakpoint kinds.
6060 (bpstat_stop_status): Handle bp_std_terminate_master.
6061 (bpstat_what): Correctly set call_dummy field. Handle
6062 bp_std_terminate_master and bp_std_terminate.
6063 (print_one_breakpoint_location): Update.
6064 (allocate_bp_location): Update.
6065 (set_std_terminate_breakpoint): New function.
6066 (delete_std_terminate_breakpoint): Likewise.
6067 (create_thread_event_breakpoint): Update.
6068 (delete_command): Update.
6069 (breakpoint_re_set_one): Update.
6070 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6072 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6074 * symfile.c (build_section_addr_info_from_bfd): New.
6075 (build_section_addr_info_from_objfile): Base it on
6076 build_section_addr_info_from_bfd.
6077 (addrs_section_compar, addrs_section_sort): New.
6078 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6079 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6080 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6082 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6084 * elfread.c (find_separate_debug_file_by_buildid):
6085 Remove unused local variable.
6087 2010-03-24 Tom Tromey <tromey@redhat.com>
6089 PR breakpoints/9352:
6090 * NEWS: Mention changes to `commands' and `rbreak'.
6091 * symtab.c (do_end_rbreak_breakpoints): New function.
6092 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6093 end_rbreak_breakpoints.
6094 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6095 (set_breakpoint_count): Likewise. Clear last_was_multi.
6096 (multi_start, multi_end, last_was_multi): New globals.
6097 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6099 (struct commands_info): New
6100 (do_map_commands_command): New function.
6101 (commands_command_1): New function.
6102 (commands_command): Use it.
6103 (commands_from_control_command): Likewise.
6104 (do_delete_breakpoint): New function.
6105 (delete_command): Use it.
6106 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6107 (do_map_disable_breakpoint): New function.
6108 (disable_command): Use it.
6109 (do_map_enable_breakpoint): New function.
6110 (enable_command): Use it.
6111 (enable_once_breakpoint): Add argument.
6112 (enable_once_command): Update.
6113 (enable_delete_breakpoint): Add argument.
6114 (enable_delete_command): Update.
6115 (break_command_really): Set last_was_multi when needed.
6116 (check_tracepoint_command): Fix formatting.
6117 (validate_commands_for_breakpoint): New function.
6118 (breakpoint_set_commands): Use it.
6119 (tracepoint_save_command): Update.
6120 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6123 2010-03-24 Tom Tromey <tromey@redhat.com>
6125 * breakpoint.h (struct counted_command_line): New struct.
6126 (struct breakpoint) <commands>: Change type.
6127 (struct bpstats) <commands>: Change type.
6128 <commands_left>: New field.
6129 * breakpoint.c (alloc_counted_command_line): New function.
6130 (incref_counted_command_line): Likewise.
6131 (decref_counted_command_line): Likewise.
6132 (do_cleanup_counted_command_line): Likewise.
6133 (make_cleanup_decref_counted_command_line): Likewise.
6134 (breakpoint_set_commands): Use decref_counted_command_line and
6135 alloc_counted_command_line.
6136 (commands_command): Don't error if breakpoint commands are
6138 (commands_from_control_command): Likewise.
6139 (bpstat_free): Update.
6140 (bpstat_copy): Likewise.
6141 (bpstat_clear_actions): Likewise.
6142 (bpstat_do_actions_1): Likewise.
6143 (bpstat_stop_status): Likewise.
6144 (print_one_breakpoint_location): Likewise.
6145 (delete_breakpoint): Likewise.
6146 (bpstat_alloc): Initialize new field.
6147 (tracepoint_save_command): Update.
6148 * tracepoint.c (encode_actions): Update.
6149 (trace_dump_command): Update.
6151 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6153 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6154 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6155 (read_structure_type): For RealView, set TYPE_STUB on structures with
6156 no byte size and no children.
6157 (read_subroutine_type): Mark functions as prototyped by default.
6158 * symtab.c (producer_is_realview): New function.
6159 * symtab.h (expand_line_sal): Fix declaration formatting.
6160 (producer_is_realview): Declare.
6162 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6164 * arm-tdep.c (skip_prologue_function): New function.
6165 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6166 (thumb_analyze_prologue): Document return value. Recognize more
6167 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6169 (arm_skip_prologue): Remove call dummy check. Check the prologue
6170 for non-GNU compilers.
6171 (arm_instruction_changes_pc): New function.
6172 (arm_analyze_prologue): New function, broken out from
6173 arm_scan_prologue. Recognize more ARM instructions and skippable
6174 calls. Update comments. Handle NULL cache. Return the address
6175 of the first unrecognized instruction. Do not skip past other
6176 instructions which change control flow. Add debug output.
6177 (arm_scan_prologue): Use arm_analyze_prologue.
6178 (ARM_PC_32): Delete.
6179 (shifted_reg_val): Simplify ARM_PC_32 check.
6181 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6183 * tracepoint.c (tvariables_info_1): Actually compute
6184 the number of rows in the result.
6186 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6188 * remote.c (crc32): Constify `buf' parameter.
6189 (remote_verify_memory): New, abstracted out from...
6190 (compare_sections_command): ... this. Remove hardcoded target
6192 (init_remote_ops): Install remote_verify_memory.
6193 * target.c (target_verify_memory): New.
6194 * target.h (struct target_ops) <to_verify_memory>: New field.
6195 (target_verify_memory): Declare.
6197 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6199 Implement -trace-save.
6201 * mi-cmds.h (mi_cmds_trace_save): Declare.
6202 * mi-cmds.c (mi_cmds): Register -trace-save.
6203 * mi/mi-main.c (mi_cmd_trace_save): New.
6204 * remote.c (remote_save_trace_data): Take const parameter.
6205 * target.h (struct target_ops::to_save_trace_data): Take
6207 * target.c (update_current_target): Adjust to the above.
6208 * tracepoint.c (trave_save): New, extracted from
6209 (trace_save_command): ...this.
6210 (tfile_trace_find): Remove message that is unnecessary now
6211 that 'tfind' reports found frame.
6212 * tracepoint.h (trace_save): Declare.
6214 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6216 Implement -trace-find.
6218 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6219 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6220 * mi/mi-main.c (mi_cmd_trace_find): New.
6221 * target.h (struct target_ops): Document to_trace_find.
6222 * tracepoint.h (tfind_1): Declare.
6223 * tracepoint.c (finish_tfind_command): Rename to...
6225 * remote.c (remote_trace_find): Return -1 if target say
6226 there's no frame. Improve error diagnostics.
6228 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6230 -trace-define-variable and -trace-list-variables.
6232 * tracepoint.c (create_trace_state_variable): Make
6233 private copy of name, as opposed to assuming the
6234 pointer lives forever.
6235 (tvariables_info_1): New.
6236 (tvariables_info): Use the above.
6237 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6239 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6240 and -trace-list-variables.
6241 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6242 (mi_cmd_trace_list_variables): New.
6243 * mi/mi-main.c (mi_cmd_trace_define_variable)
6244 (mi_cmd_trace_list_variables): New.
6246 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6248 Implement -break-passcount.
6250 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6251 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6252 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6254 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6256 -trace-start/-trace-end/-trace-status.
6258 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6260 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6261 (mi_cmd_trace_stop): Declare.
6262 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6263 (mi_cmd_trace_stop): New.
6264 * tracepoint.c (start_tracing): New, extracted from...
6265 (trace_start_command): ...this.
6266 (trace_status_mi): New.
6267 * tracepoint.h (struct trace_status): Document
6268 stopping_tracepoint.
6269 (start_tracing, stop_tracing, trace_status_mi): Declare.
6271 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6273 Implement creating tracepoints with -break-insert.
6275 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6276 to mean that tracepoint should be created.
6278 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6280 * breakpoint.c (check_no_tracepoint_commands): Use
6281 current spelling of 'teval'.
6283 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6285 Unify actions and commands
6287 * defs.h (read_command_lines, read_command_lines_1): New
6288 parameters validator and closure.
6289 * tracepoint.h (struct action_line): Remove.
6290 * breakpoint.h (struct breakpoint): Remove the 'actions'
6292 * defs.h (enum command_control_type): New value
6293 while_stepping_control.
6294 (struct command_line): Add comments.
6295 * breakpoint.c (breakoint_is_tracepoint): New.
6296 (breakpoint_set_commands): For tracepoints,
6297 verify the commands are permissible.
6298 (check_tracepoint_commands): New.
6299 (commands_command): Require that each new line is validated using
6300 check_tracepoint_command, if we set commands for a tracepoint.
6301 (create_tracepoint_from_upload): Likewise.
6302 (print_one_breakpoint_location): Remove the code to print
6303 actions specifically.
6304 (tracepoint_save_command): Relay to print_command_lines.
6305 * cli/cli-script.c (process_next_line): New parameters validator
6306 and closure. Handle 'while-stepping'. Call validator if not null.
6307 (read_command_lines, read_command_lines1): Likewise.
6308 (recurse_read_control_structure): New parameters validator and
6309 closure. Handle while_stepping_control.
6310 (print_command_lines): Handle while-stepping.
6311 (get_command_line, define_command, document_command): Adjust.
6312 * remote.c (remote_download_tracepoint): Adjust.
6313 * tracepoint.c (make_cleanup_free_actions, read_actions)
6314 (free_actions, do_free_actions_cleanup): Remove.
6315 (trace_actions_command): Use read_command_lines.
6316 (validate_actionline): Use error in one place.
6317 (encode_actions_1): New, extracted from...
6318 (encode_actions): ...this. Also use cleanups for exception
6320 (trace_dump_command): Adjust.
6321 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6324 2010-03-23 Mike Frysinger <vapier@gentoo.org>
6326 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6328 2010-03-22 Stan Shebs <stan@codesourcery.com>
6330 * value.c (value_static_field): Be lazy about the field's value.
6332 2010-03-22 Reid Kleckner <reid@kleckner.net>
6335 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6337 (disable_breakpoints_in_shlibs): Likewise.
6339 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6341 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6342 GCC 4.1 debug info generation (GCC PR c++/28460).
6343 (determine_prefix): Likewise.
6345 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6347 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6349 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6351 2010-03-19 Stan Shebs <stan@codesourcery.com>
6353 * ax-gdb.c (gen_fetch): Handle bool.
6354 (gen_usual_unary): Ditto.
6356 (gen_equal): New function.
6357 (gen_less): New function.
6358 (gen_expr_binop_rest): Call them, also return integer type from
6362 2010-03-19 Tom Tromey <tromey@redhat.com>
6364 * jv-lang.c (jv_dynamics_objfile_data_key)
6365 (jv_type_objfile_data_key): New globals.
6366 (class_symtab): Move earlier.
6367 (jv_per_objfile_free): New function.
6368 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6370 Remove ancient #if 1.
6371 (add_class_symbol): Remove redundant declaration.
6372 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6373 (java_link_class_type): Mark as static. Update.
6374 (jv_clear_object_type): New function.
6375 (set_java_object_type): Likewise.
6376 (get_java_object_type): Use set_java_object_type.
6377 (is_object_type): Likewise.
6378 (_initialize_java_language): Register new objfile keys.
6379 (get_java_class_symtab): Add 'gdbarch' parameter.
6380 (add_class_symtab_symbol): Update.
6381 (type_from_class): Update.
6383 2010-03-19 Stan Shebs <stan@codesourcery.com>
6385 * ax-general.c (ax_const_l): Fix a sizing bug.
6387 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6391 2010-03-18 Stan Shebs <stan@codesourcery.com>
6392 Pedro Alves <pedro@codesourcery.com>
6394 * target.h (struct target_ops): New method
6395 to_set_circular_trace_buffer.
6396 (target_set_circular_trace_buffer): New macro.
6397 * target.c (update_current_target): Add
6398 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6400 * remote.c (remote_set_circular_trace_buffer): New function.
6401 (init_remote_ops): Add it to vector.
6402 * tracepoint.h (struct trace_status): New field traceframes_created,
6403 change buffer_size and buffer_free to int.
6404 * tracepoint.c (circular_trace_buffer): New global.
6405 (start_tracing): Send values of disconnected tracing and circular
6406 trace buffer settings.
6407 (set_circular_trace_buffer): New function.
6408 (parse_trace_state): Handle total space and frames created.
6409 (trace_status_command): Display total space and total frames
6411 (trace_save): Write out new status values.
6412 (parse_trace_status): Set traceframe_count, traceframes_created,
6413 buffer_free and buffer_size to -1 by default.
6414 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6415 * NEWS: Mention the circular trace buffer option.
6417 2010-03-18 Tom Tromey <tromey@redhat.com>
6419 * infcmd.c (finish_command_continuation): Wrap print_return_value
6422 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6424 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6425 DIE has a name before creating the associated partial symbol.
6426 (read_func_scope): Emit a complaint if the subprogram does not
6427 have a name or when we can't extract the subprogram PC bounds.
6429 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6431 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6432 instead of selected frame architecture.
6434 2010-03-18 Pedro Alves <pedro@codesourcery.com>
6436 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6437 a valid selected thread, and that it is not running.
6438 (advance_command): Ditto.
6439 (finish_command): Ditto.
6441 2010-03-17 Stan Shebs <stan@codesourcery.com>
6443 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6445 * infcall.c: Include tracepoint.h.
6446 (call_function_by_hand): Disallow calls in tfind mode.
6447 * infcmd.c: Include tracepoint.h.
6448 (ensure_not_tfind_mode): New function.
6449 (continue_1): Call it.
6451 (jump_command): Ditto.
6452 (signal_command): Ditto.
6453 (advance_command): Ditto.
6454 (until_command): Ditto.
6455 (finish_command): Ditto.
6456 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6458 * ax-gdb.h (struct axs_value): New field optimized_out.
6459 (gen_trace_for_var): Add gdbarch argument.
6460 * ax-gdb.c (gen_trace_static_fields): New function.
6461 (gen_traced_pop): Call it, add gdbarch argument.
6462 (gen_trace_for_expr): Update call to it.
6463 (gen_trace_for_var): Ditto, and report optimized-out variables.
6464 (gen_struct_ref_recursive): Check for optimized-out value.
6465 (gen_struct_elt_for_reference): Ditto.
6466 (gen_static_field): Pass gdbarch instead of expression, assume
6467 optimization if field not found.
6468 (gen_var_ref): Set the optimized_out flag.
6469 (gen_expr): Error on optimized-out variable.
6470 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6471 expressions, skip optimized-out variables with computed locations.
6472 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6473 erroring out if location expression missing.
6474 (loclist_tracepoint_var_ref): Don't error out here.
6476 2010-03-17 Tom Tromey <tromey@redhat.com>
6478 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6479 DWARF data is available.
6481 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6483 * symfile.c (generic_load): Reset breakpoints after loading.
6485 2010-03-17 Tom Tromey <tromey@redhat.com>
6487 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6489 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6491 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6492 create_breakpoint call, adjust the parameters.
6494 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6495 Chandru <chandru@in.ibm.com>
6497 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6498 * valarith.c (value_subscripted_rvalue): Suppress error if
6499 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6501 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6503 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6505 2010-03-16 Joel Brobecker <brobecker@adacore.com>
6507 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6508 before doing the associated thread switch.
6510 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6512 * MAINTAINERS: Update my email address.
6514 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6516 Simplify MI breakpoint setting.
6518 * breakpoint.c (break_command_really): Make nonstatic and
6520 (create_breakpoint): ...this. Rename prior function by this name
6522 (create_breakpoint_sal): ...this.
6523 (create_breakpoints): Rename to...
6524 (create_breakpoints_sal): ...this.
6525 (set_breakpoint): Remove.
6526 * breakpoint.h: Adjust to above changes.
6527 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6529 2010-03-15 Stan Shebs <stan@codesourcery.com>
6531 * ax-gdb.c: Include cp-support.h.
6532 (find_field): Remove.
6533 (gen_primitive_field): New function.
6534 (gen_struct_ref_recursive): New function.
6535 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6537 (gen_static_field): New function.
6538 (gen_struct_elt_for_reference): New.
6539 (gen_namespace_elt): New.
6540 (gen_maybe_namespace_elt): New.
6541 (gen_aggregate_elt_ref): New.
6542 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6544 2010-03-15 Tom Tromey <tromey@redhat.com>
6546 * dwarf2read.c (die_needs_namespace): Also return 0 for
6549 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6552 * cp-support.h: Added char *declaration element to using_direct
6554 (cp_add_using): Added char *declaration argument.
6555 (cp_add_using_directive): Ditto.
6556 (cp_lookup_symbol_imports): made extern.
6557 * cp-namespace.c: Updated with the above changes.
6558 * dwarf2read.c (read_import_statement): Ditto.
6559 (read_namespace): Ditto.
6560 (read_import_statement): Support import declarations.
6561 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6563 Added support for 'declaration_only' search.
6564 (cp_lookup_symbol_namespace): Attempt to search for the name as
6565 is before consideration of imports.
6566 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6567 search at every block level search.
6568 Now takes language argument.
6569 (lookup_symbol_aux): Updated.
6571 2010-03-15 Tom Tromey <tromey@redhat.com>
6573 * c-exp.y (name_not_typename): Add 'operator' clause.
6575 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6577 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6578 * configure: Regenerate.
6580 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6582 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6583 and ".sdynbss". Update the comment.
6585 2010-03-15 Jie Zhang <jie@codesourcery.com>
6587 * MAINTAINERS: Update my email address.
6589 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6591 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6593 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6595 * charset.c [USE_WIN32API]: Include <windows.h>.
6596 (_initialize_charset): Correct type of w32_host_default_charset.
6598 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6600 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6602 2010-03-12 Tom Tromey <tromey@redhat.com>
6605 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6606 in a lexical block does not need a namespace.
6607 (new_symbol) <DW_TAG_variable>: Put extern variables on
6608 list_in_scope in all cases.
6610 2010-03-12 Stan Shebs <stan@codesourcery.com>
6612 * ax-gdb.c (gen_expr): Add shift expressions.
6613 (gen_expr_binop_rest): Ditto.
6615 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6617 * buildsym.c (finish_block): Reset using_directives pointer
6618 after block initialization.
6620 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6622 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6623 * i386-tdep.c (i386_word_names): Likewise.
6625 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6627 * target.c (memory_xfer_partial): Don't use the stack cache if
6628 inspecting trace frames.
6629 * tracepoint.c (finish_tfind_command): Invalidate the target
6632 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6634 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6635 for the PIC displacement, print also the displacement value.
6636 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6638 2010-03-10 Kevin Buettner <kevinb@redhat.com>
6640 * remote-mips.c (close_ports, mips_initialize_cleanups)
6641 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6642 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6643 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6644 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6645 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6646 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6647 comments describing each of these functions.
6648 (mips_enter_debug, mips_exit_debug, common_open)
6649 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6650 blank line after the comment describing the function.
6652 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6655 parameter displacementp. Update comment.
6656 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6657 element exists. Return if svr4_exec_displacement was not successful.
6660 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6661 Daniel Jacobowitz <dan@codesourcery.com>
6663 * solib-svr4.c (read_program_header): Support type == -1 to read
6664 all program headers.
6665 (read_program_headers_from_bfd): New function.
6666 (svr4_static_exec_displacement): Remove and move the comment ...
6667 (svr4_exec_displacement): ... here. Remove variable found. New
6668 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6669 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6670 targets using read_program_headers_from_bfd. Remove the call of
6671 svr4_static_exec_displacement.
6673 2010-03-10 Tom Tromey <tromey@redhat.com>
6675 * dwarf2read.c (struct pubnames_header): Remove.
6676 (_PUBNAMES_HEADER): Remove.
6677 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6678 (struct aranges_header): Remove.
6679 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6680 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6681 (PUBNAMES_SECTION): Remove.
6682 (ARANGES_SECTION): Remove.
6683 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6684 (dwarf2_build_psymtabs): Remove dead code.
6685 (dwarf2_build_psymtabs_easy): Remove.
6687 2010-03-10 Tom Tromey <tromey@redhat.com>
6689 * elfread.c (elf_symfile_read): Don't call
6690 dwarf2_build_frame_info.
6691 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6692 (struct dwarf2_per_objfile) <objfile>: New field.
6693 (dwarf2_has_info): Now idempotent. Set objfile field.
6694 (dwarf2_read_section): Check and set readin field. Call
6696 (dwarf2_build_psymtabs): Don't read all sections.
6697 (read_type_comp_unit_head): Read types section.
6698 (create_debug_types_hash_table): Likewise.
6699 (init_cu_die_reader): Add asserts.
6700 (process_type_comp_unit): Add assert.
6701 (dwarf2_build_psymtabs_hard): Read info section.
6702 (load_partial_comp_unit): Add assert.
6703 (create_all_comp_units): Read info section.
6704 (load_full_comp_unit): Likewise.
6705 (dwarf2_ranges_read): Read ranges section.
6706 (dwarf2_record_block_ranges): Add assert.
6707 (dwarf2_read_abbrevs): Read abbrev section.
6708 (read_indirect_string): Read str section.
6709 (dwarf_decode_line_header): Read line section.
6710 (read_signatured_type_at_offset): Read types section.
6711 (dwarf_decode_macros): Read macinfo section.
6712 (dwarf2_symbol_mark_computed): Read loc section.
6713 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6714 dwarf2_build_frame_info.
6715 (dwarf2_build_frame_info): Unconditionally set
6716 dwarf2_frame_objfile_data on the objfile.
6717 * configure.ac: Check for posix_madvise.
6718 * config.in, configure: Rebuild.
6720 2010-03-10 Tom Tromey <tromey@redhat.com>
6722 * xcoffread.c (xcoff_start_psymtab): Update.
6723 (xcoff_end_psymtab): Update.
6724 * psymtab.c (allocate_psymtab): Remove dead code.
6725 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6727 * mdebugread.c (parse_partial_symbols): Update.
6728 (new_psymtab): Likewise.
6729 * dwarf2read.c (process_psymtab_comp_unit): Update.
6730 (psymtab_to_symtab_1): Update.
6731 * dbxread.c (start_psymtab): Update.
6732 (end_psymtab): Likewise.
6734 2010-03-10 Tom Tromey <tromey@redhat.com>
6736 * xcoffread.c: Include psymtab.h.
6737 (xcoff_sym_fns): Update.
6738 * symtab.h (struct partial_symbol): Remove.
6739 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6740 (struct partial_symtab): Remove.
6741 (PSYMTAB_TO_SYMTAB): Remove.
6742 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6743 (find_pc_sect_psymtab): Remove.
6744 (find_pc_sect_symtab_via_partial): Declare.
6745 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6746 (find_main_psymtab): Remove.
6747 (find_main_filename): Declare.
6748 (fixup_psymbol_section): Remove.
6749 (fixup_section): Declare.
6750 * symtab.c: Include psymtab.h.
6751 (lookup_symtab): Use lookup_symtab method.
6752 (lookup_partial_symtab): Remove.
6753 (find_pc_sect_psymtab_closer): Remove.
6754 (find_pc_sect_psymtab): Remove.
6755 (find_pc_sect_symtab_via_partial): New function.
6756 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6757 (fixup_section): No longer static.
6758 (fixup_psymbol_section): Remove.
6759 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6760 (lookup_global_symbol_from_objfile): Likewise.
6761 (lookup_symbol_aux_psymtabs): Remove.
6762 (lookup_symbol_aux_quick): New function.
6763 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6764 (lookup_partial_symbol): Remove.
6765 (basic_lookup_transparent_type_quick): New function.
6766 (basic_lookup_transparent_type): Use it.
6767 (find_main_psymtab): Remove.
6768 (find_main_filename): New function.
6769 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6770 (find_line_symtab): Use expand_symtabs_with_filename method.
6771 (output_partial_symbol_filename): New function.
6772 (sources_info): Use map_partial_symbol_filenames.
6773 (struct search_symbols_data): New type.
6774 (search_symbols_file_matches): New function.
6775 (search_symbols_name_matches): Likewise.
6776 (search_symbols): Use expand_symtabs_matching method.
6777 (struct add_name_data): Rename from add_macro_name_data.
6778 (add_macro_name): Update.
6779 (add_partial_symbol_name): New function.
6780 (default_make_symbol_completion_list): Use
6781 map_partial_symbol_names.
6782 (struct add_partial_symbol_name): New type.
6783 (maybe_add_partial_symtab_filename): New function.
6784 (make_source_files_completion_list): Use
6785 map_partial_symbol_filenames.
6786 (expand_line_sal): Use expand_symtabs_with_filename method.
6787 * symmisc.c: Include psymtab.h.
6788 (print_objfile_statistics): Use print_stats method.
6789 (dump_objfile): Use dump method.
6790 (dump_psymtab, maintenance_print_psymbols)
6791 (maintenance_info_psymtabs, maintenance_check_symtabs)
6792 (extend_psymbol_list): Remove.
6793 * symfile.h (struct quick_symbol_functions): New struct.
6794 (struct sym_fns) <qf>: New field.
6795 (sort_pst_symbols): Remove.
6796 (increment_reading_symtab): Declare.
6797 * symfile.c: Include psymtab.h.
6798 (compare_psymbols, sort_pst_symbols): Remove.
6799 (psymtab_to_symtab): Remove.
6800 (increment_reading_symtab): New function.
6801 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6803 (set_initial_language): Use find_main_filename.
6804 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6805 (free_named_symtabs): Remove unused code.
6806 (start_psymtab_common, add_psymbol_to_bcache)
6807 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6809 * stack.c: Include psymtab.h, symfile.h.
6810 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6811 * source.h (psymtab_to_fullname): Don't declare.
6812 * source.c: Include psymtab.h.
6813 (select_source_symtab): Use find_last_source_symtab method.
6814 (forget_cached_source_info): Use forget_cached_source_info
6816 (find_and_open_source): No longer static.
6817 (psymtab_to_fullname): Remove.
6818 * somread.c: Include psymtab.h.
6819 (som_sym_fns): Update.
6820 * psympriv.h: New file.
6821 * psymtab.h: New file.
6822 * psymtab.c: New file.
6823 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6824 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6825 * objfiles.c: Include psymtab.h.
6826 (objfile_relocate1): Use relocate method.
6827 (objfile_has_partial_symbols): Use has_symbols method.
6828 * mipsread.c: Include psymtab.h.
6829 (ecoff_sym_fns): Update.
6830 * mi/mi-cmd-file.c: Include psymtab.h.
6831 (print_partial_file_name): New function.
6832 (mi_cmd_file_list_exec_source_files): Use
6833 map_partial_symbol_filenames.
6834 * mdebugread.c: Include psympriv.h.
6835 * machoread.c: Include psympriv.h.
6836 (macho_sym_fns): Update.
6837 * m2-exp.y (yylex): Use lookup_symtab.
6838 * elfread.c: Include psympriv.h.
6839 (elf_sym_fns): Update.
6840 * dwarf2read.c: Include psympriv.h.
6841 * dbxread.c: Include psympriv.h.
6842 (aout_sym_fns): Update.
6843 * cp-support.c: Include psymtab.h.
6844 (read_in_psymtabs): Remove.
6845 (make_symbol_overload_list_qualified): Use
6846 expand_symtabs_for_function method.
6847 * coffread.c: Include psympriv.h.
6848 (coff_sym_fns): Update.
6849 * blockframe.c: Include psymtab.h.
6850 (find_pc_partial_function): Use find_pc_sect_symtab method.
6851 * ada-lang.h (ada_update_initial_language): Update.
6852 * ada-lang.c: Include psymtab.h.
6853 (ada_update_initial_language): Remove 'main_pst' argument.
6854 (ada_lookup_partial_symbol): Remove.
6855 (struct ada_psym_data): New type.
6856 (ada_add_psyms): New function.
6857 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6858 (struct add_partial_datum): New type.
6859 (ada_add_partial_symbol_completions): New function.
6860 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6861 (ada_exception_support_info_sniffer): Update.
6862 * Makefile.in (SFILES): Add psymtab.c.
6863 (COMMON_OBS): Add psymtab.o.
6864 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6866 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6868 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6870 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6873 * cp-namespace.c (cp_add_using): Deleted.
6874 (cp_add_using_directive): Use obstack allocations.
6875 Merged the function cp_add_using into this one.
6876 Added 'struct obstack *' argument.
6877 (cp_scan_for_anonymous_namespaces): Updated.
6878 * cp-support.h: Updated.
6879 * dwarf2read.c (read_import_statement): Updated.
6880 (read_namespace): Updated.
6882 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6884 * windows-nat.c (cygwin_conv_path): Remove old macro.
6886 2010-03-10 Pedro Alves <pedro@codesourcery.com>
6888 * breakpoint.c (condition_command): Handle watchpoint conditions.
6889 (is_hardware_watchpoint): Add comment.
6890 (is_watchpoint): New.
6891 (update_watchpoint): Don't reparse the watchpoint's condition
6894 (watchpoint_check): Use it.
6895 (bpstat_check_watchpoint): Handle it.
6896 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6897 conditions in a frame where it makes sense.
6898 (watch_command_1): Store the innermost block of the condition
6900 (delete_breakpoint): Delete the watchpoint condition expression.
6901 * breakpoint.h (struct bp_location) <cond>: Update comment.
6902 (struct breakpoint): New field `cond_exp_valid_block'.
6904 2010-03-09 Joel Brobecker <brobecker@adacore.com>
6906 Adjust handling of Ada DIEs after dwarf2_physname patch.
6907 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6909 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6910 Pierre Muller <muller@ics.u-strasbg.fr>
6912 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6913 from/to posix/win32.
6914 (windows_make_so): Use non-Cygwin 1.7 specific function.
6915 (windows_create_inferior): Make sure that cygallargs points to
6916 original args in non Cygwin 1.7. case.
6918 2010-03-09 Michael Snyder <msnyder@vmware.com>
6920 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6921 after target_read_memory to get host byte order.
6922 (i386_process_record): Ditto.
6924 2010-03-09 Keith Seitz <keiths@redhat.com>
6926 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6927 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6928 print out const or volatile qualifiers, too.
6929 (c_type_print_args): Add parameters show_artificial and language.
6930 Skip artificial parameters when requested.
6931 Use the appropriate language printer.
6932 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6933 parameters and pass language_c.
6934 * dwarf2read.c (die_list): New file global.
6935 (struct partial_die_info): Update comments for name field.
6936 (pdi_needs_namespace): Renamed to ...
6937 (die_needs_namespace): ... this. Rewrite.
6938 (dwarf2_linkage_name): Remove.
6939 (add_partial_symbol): Do not predicate the call to
6940 partial_die_full_name based on pdi_needs_namespace.
6941 Remove call to cp_check_possible_namespace_symbols and associated
6943 (guess_structure_name): Do not inspect child subprogram DIEs.
6944 (dwarf2_fullname): Update comments.
6945 Use die_needs_namespace to assist in computing the name.
6946 (read_func_scope): Use dwarf2_name to get the DIE's name.
6947 Use dwarf2_physname to get the "linkage name" of the DIE.
6948 (dwarf2_add_member_field): Use dwarf2_physname instead of
6949 dwarf2_linkage_name.
6950 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6951 (determine_class): Remove.
6952 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6954 (new_symbol): Unconditionally call dwarf2_name.
6955 Compute the "linkage name" using dwarf2_physname.
6956 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6957 When determining to scan for anonymous C++ namespaces, ignore
6959 (dwarf2_physname): New function.
6960 (dwarf2_full_name): Move content to new function and call
6962 (dwarf2_compute_name): "New" function.
6963 (_initialize_dwarf2_read): Initialize die_list.
6964 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6966 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6967 without a demangled name.
6968 Print out type information for non-virtual methods.
6969 * linespec.c (decode_line_1): Force ANY string using "::" (or
6970 "." for java) to use decode_compound, and clean up any stray quoting.
6971 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6972 (decode_compound): Stop consuming at an open parenthesis.
6973 Keep template parameters.
6974 Keep any overload information.
6975 Keep keywords like "const".
6976 Remove paren_pointer.
6977 Move is_quoted check from set_flags to here.
6978 Remove #if 0 code from 2000. Ten years is long enough.
6979 (find_method): Before comparing symbol names, canonicalize the string
6981 If a specific overload is requested, find it. Otherwise throw an error.
6982 (find_method_overload_end): New function.
6983 (set_flags): Remove.
6984 (decode_compound): Assume that parentheses are matched.
6986 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6988 * linespec.c (decode_line_1): Keep important keywords like
6989 "const" and "volatile".
6990 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6991 * typeprint.h (c_type_print_args): Add declaration.
6992 * ui-file.c (do_ui_file_obsavestring): New function.
6993 (ui_file_obsavestring): New function.
6994 * ui-file.h (ui_file_obsavestring): Add declaration.
6995 * valops.c (find_overload_match): Resolve the object to
6997 If the object is a data member, search the object for the member
6998 and return with staticp set.
6999 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7000 Do not attempt to extract a function name from non-function types.
7001 If the extracted function name and the original name are the same,
7002 we don't have a C++ method.
7004 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7005 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7007 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7008 and arguments from symbol lookups.
7009 * ax-gdb.c (gen_expr): Likewise.
7010 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7011 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7012 lookup_possible_namespace_symbol): Likewise.
7013 * cp-support.c (read_in_psymtabs): Likewise.
7014 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7015 * language.h (la_lookup_symbol_nonlocal): Likewise.
7016 * scm-valprint.c (scm_inferior_print): Likewise.
7017 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7018 * solib-svr.c (elf_lookup_lib): Likewise.
7019 * solib.c (show_auto_solib_add): Likewise.
7020 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7021 * symmisc.c (maintenance_check_symtabs): Likewise.
7022 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7023 lookup_symbol_aux_local, lookup_symbol_aux_block,
7024 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7025 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7026 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7027 basic_lookup_transparent_type, find_main_psymtab,
7028 lookup_block_symbol): Likewise.
7029 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7030 lookup_symbol_global, lookup_symbol_aux_block,
7031 lookup_symbol_partial_symbol, lookup_block_symbol,
7032 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7034 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7036 * python/python-internal.h: Include symtab.h.
7038 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7039 Pierre Muller <muller@ics.u-strasbg.fr>
7041 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7042 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7045 2010-03-08 Tom Tromey <tromey@redhat.com>
7047 * breakpoint.c (breakpoint_1): Add "QUIT".
7049 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7050 Pedro Alves <pedro@codesourcery.com>
7052 * solib.c (solib_find): Replace extension if
7053 solib_symbols_extension is set in the target gdbarch.
7054 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7055 solib_symbols_extension to "sym".
7056 * gdbarch.sh (solib_symbols_extension): New variable.
7057 (pstring): New function.
7058 * gdbarch.h, gdbarch.c: Regenerate.
7060 2010-03-08 Tom Tromey <tromey@redhat.com>
7064 * utils.c: Include main.h.
7065 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7066 (defaulted_query): Use default answer if `batch_flag'.
7067 * main.h (batch_flag): Declare.
7068 * main.c (batch_flag): New global.
7069 (captured_main): Remove 'batch'. Update.
7071 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7073 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7076 * remote-mips.c (rockhopper_ops): New target_ops struct.
7077 (MON_ROCKHOPPER): New mips_monitor_type.
7078 (read_hex_value): New function.
7079 (mips_request): Send 8-byte values with a 'T' packet. Read the
7080 packet argument as a string and use read_hex_value to parse it.
7081 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7082 (rockhopper_open): New function.
7083 (mips_wait): Read the PC, FP and SP fields as strings. Use
7084 read_hex_value to parse them and mips_set_register to commit them.
7085 (mips_set_register): New function.
7086 (mips_fetch_registers): Do not cast register value to "unsigned"
7087 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7088 (mips_store_registers): Use a 'T' packet to set registers when
7089 using MON_ROCKHOPPER.
7090 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7091 and expect the total to be printed before the entry address.
7092 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7094 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7096 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7097 Change return value to int. Store value fetched in location
7098 addressed by `val'. Use function's return value as success
7099 or failure indicator. Adjust all callers.
7101 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7103 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7105 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7106 Hui Zhu <teawater@gmail.com>
7108 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7109 tmp_to_stopped_data_address.
7110 (record_open): Reset tmp_to_stopped_by_watchpoint and
7111 tmp_to_stopped_data_address.
7112 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7113 to_stopped_data_address.
7115 2010-03-08 Hui Zhu <teawater@gmail.com>
7117 * i386-tdep.c (i386_process_record): Initialize regnum.
7119 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7121 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7122 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7124 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7126 Memory error when reading wrong core file.
7127 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7128 errors while reading the inferior memory, and return zero if
7129 an exception was raised.
7131 2010-03-07 Michael Snyder <msnyder@vmware.com>
7133 * record.c (record_restore): Rename tmpu8 to rectype.
7135 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7136 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7138 (i386_record_push): Rename local tmpulongest to addr.
7140 (i386_process_record): Rename local tmpulongest to addr.
7142 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7145 Rename local variable tmpu8 to opcode8 and regnum.
7147 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7149 * remote.c (remote_get_ada_task_ptid): New function.
7150 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7152 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7154 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7155 block. Define helper macros to reduce ifdefs in code.
7156 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7157 size. Call unadorned GetModuleFileNameEx rather than
7158 GetModuleFileNameEx*.
7159 (windows_make_so): Use __PMAX to denote maximum buffer size and
7160 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7162 (get_image_name): Use __PMAX to denote maximum buffer size.
7163 (handle_load_dll): Likewise.
7164 (windows_pid_to_exec_file): Likewise.
7165 (windows_create_inferior): Add many accommodations for older Cygwin and
7167 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7168 __USEWIDE conditional.
7169 (bad_GetModuleFileNameExA): Likewise.
7170 (_initialize_loadable): Just use real function names without the dyn_
7171 part since they are defined earlier.
7173 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7174 Tom Tromey <tromey@redhat.com>
7176 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7177 (parse_escape): Likewise.
7178 * python/py-utils.c (unicode_to_target_string): Update.
7179 (unicode_to_target_python_string): Update.
7180 (target_string_to_unicode): Update.
7181 * printcmd.c (printf_command): Update.
7182 * p-exp.y (yylex): Update.
7183 * objc-exp.y (yylex): Update.
7184 * mi/mi-parse.c: Include charset.h.
7185 (mi_parse_escape): New function.
7186 (mi_parse_argv): Use it.
7187 * jv-exp.y (yylex): Update.
7188 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7190 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7191 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7192 * gdbarch.c: Rebuild.
7193 * gdbarch.h: Rebuild.
7194 * defs.h (parse_escape): Update.
7195 * cli/cli-setshow.c: Include arch-utils.h.
7196 (do_setshow_command): Update.
7197 * cli/cli-cmds.c (echo_command): Update.
7198 * charset.h (target_charset, target_wide_charset): Update.
7199 * charset.c: Include arch-utils.h.
7200 (target_charset_name): Default to "auto".
7201 (target_wide_charset_name): Likewise.
7202 (show_target_charset_name): Handle "auto".
7203 (show_target_wide_charset_name): Likewise.
7204 (be_le_arch): New global.
7205 (set_be_le_names): Add 'gdbarch' argument.
7206 (validate): Likewise. Don't call set_be_le_names.
7207 (set_charset_sfunc, set_host_charset_sfunc)
7208 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7210 (target_charset): Add 'gdbarch' argument.
7211 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7212 (auto_target_charset_name): New global.
7213 (default_auto_charset, default_auto_wide_charset): New functions.
7214 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7215 for target charsets. Copy result of nl_langinfo. Use GetACP if
7217 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7218 remove 'byte_order' argument. Update.
7219 (classify_type): Likewise.
7220 (c_emit_char): Update.
7221 (c_printchar): Update.
7222 (c_printstr): Update.
7223 (c_get_string): Update.
7224 (evaluate_subexp_c): Update.
7225 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7227 * python/python.c (gdbpy_target_charset): New function.
7228 (gdbpy_target_wide_charset): Likewise.
7229 (GdbMethods): Update.
7232 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7234 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7235 off high address bits.
7237 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7239 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7240 address as UnsignedLongLong, not LongLong.
7242 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7243 Pedro Alves <pedro@codesourcery.com>
7245 * remote-mips.c (gdbthread.h): Include.
7246 (remote_mips_ptid): Declare.
7247 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7248 (common_open): Set inferior_ptid, add it as an inferior, and
7249 as a thread too. Delete FIXME comment regarding start_remote().
7250 (mips_close): Invoke generic_mourn_inferior().
7251 (mips_kill): Make sure that target_mourn_inferior is invoked.
7252 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7253 it's now invoked from mips_close().
7254 (mips_load): Don't null out inferior_ptid. Don't call
7255 clear_symtab_users().
7256 (mips_thread_alive, mips_pid_to_str): New functions.
7257 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7258 to_thread_alive and to_pid_to_str operations.
7260 2010-03-04 Tom Tromey <tromey@redhat.com>
7262 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7263 in DWARF 3 and later.
7264 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7266 2010-03-04 Keith Seitz <keiths@redhat.com>
7268 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7269 If the filename portion of the linespec was quoted, recheck the
7270 remainder for additional quoting.
7271 (locate_first_half): Skip over completer chars, too.
7273 2010-03-04 Tom Tromey <tromey@redhat.com>
7275 * printcmd.c (printf_command): Pass dummy argument to
7278 2010-03-04 Doug Evans <dje@google.com>
7280 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7283 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7285 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7287 * breakpoint.c (update_watchpoint): Create a sentinel location if
7288 the software watchpoint isn't watching any memory.
7289 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7291 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7293 * utils.c (fputs_maybe_filtered): Check if there's already a top
7294 level interpreter before dereferencing it. If there isn't one,
7295 don't paginate either.
7297 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7299 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7300 the state right when single stepping.
7301 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7302 Get the next PC along with the instruction state.
7303 (thumb_get_next_pc): Remove.
7304 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7306 2010-03-04 Hui Zhu <teawater@gmail.com>
7308 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7310 2010-03-03 Pedro Alves <pedro@codesourcery.com>
7312 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7313 top level interpreter is MI.
7315 2010-03-03 Stan Shebs <stan@codesourcery.com>
7317 * remote.c (remote_download_tracepoint): Iterate over locations.
7318 * tracepoint.c (validate_actionline): Ditto.
7319 (encode_actions): Add location argument.
7320 (trace_dump_command): Check all locations to see if stepping
7323 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7324 Eli Zaretskii <eliz@gnu.org>
7326 * NEWS: Add X86 general purpose registers section.
7328 2010-03-03 Tom Tromey <tromey@redhat.com>
7331 * varobj.c (install_new_value): Handle case where new print_value
7334 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
7337 * printcmd.c (printf_command): Print end of format string using
7340 2010-03-02 Tom Tromey <tromey@redhat.com>
7342 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7343 * defs.h (read_command_lines_1): Add missing 'void'.
7344 * cli/cli-script.c (recurse_read_control_structure): Add missing
7346 (read_next_line): Likewise.
7347 (read_command_lines_1): Likewise.
7349 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7351 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7352 store backchain as part of prologue.
7354 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7356 * progspace.c (update_address_spaces): Update inferior address spaces
7359 2010-03-02 Doug Evans <dje@google.com>
7361 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7362 lowpc,highpc args to addrmap_set_empty.
7364 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7366 * amd64-tdep.c (amd64_byte_names): New.
7367 (amd64_word_names): Likewise.
7368 (amd64_dword_names): Likewise.
7369 (amd64_pseudo_register_name): Likewise.
7370 (amd64_pseudo_register_read): Likewise.
7371 (amd64_pseudo_register_write): Likewise.
7372 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7373 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7374 set_gdbarch_pseudo_register_write and
7375 set_tdesc_pseudo_register_name. Don't call
7376 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7378 * i386-tdep.c (i386_num_mmx_regs): Removed.
7379 (i386_num_pseudo_regs): Likewise.
7380 (i386_byte_names): New.
7381 (i386_word_names): Likewise.
7382 (i386_byte_regnum_p): Likewise.
7383 (i386_word_regnum_p): Likewise.
7384 (i386_mmx_regnum_p): Updated.
7385 (i386_pseudo_register_name): Make it global. Handle byte and
7386 word pseudo-registers.
7387 (i386_pseudo_register_read): Likewise.
7388 (i386_pseudo_register_write): Likewise.
7389 (i386_pseudo_register_type): Handle byte, word and dword
7391 (i386_register_reggroup_p): Don't include pseudo
7392 registers, except for MXX, in any register groups. Don't
7393 include pseudo byte, word, dword registers in general_reggroup.
7394 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7395 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7396 pseudo-registers after word pseudo-registers. Call
7397 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7399 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7400 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7402 (i386_byte_regnum_p): New.
7403 (i386_word_regnum_p): Likewise.
7404 (i386_dword_regnum_p): Likewise.
7405 (i386_pseudo_register_name): Likewise.
7406 (i386_pseudo_register_read): Likewise.
7407 (i386_pseudo_register_write): Likewise.
7409 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7411 * target-descriptions.c (tdesc_type): Remove
7412 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7413 (tdesc_predefined_types): Likewise.
7414 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7415 if flag name is empty.
7416 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7418 * features/i386/32bit-core.xml: Define i386_eflags.
7419 * features/i386/64bit-core.xml: Likewise.
7421 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7422 * features/i386/64bit-sse.xml: Likewise.
7424 * features/i386/amd64-linux.c: Regenerated.
7425 * features/i386/amd64.c: Likewise.
7426 * features/i386/i386-linux.c: Likewise.
7427 * features/i386/i386.c: Likewise.
7429 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7431 * gdbtypes.c (append_composite_type_field_raw): New.
7432 (append_composite_type_field_aligned): Use the new function.
7433 * gdbtypes.h (append_composite_type_field_raw): Declare.
7434 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7435 (struct tdesc_type_flag): New type.
7436 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7437 kind. Add size to u.u. Add u.f for flags.
7438 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7439 (tdesc_free_type): Likewise.
7440 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7441 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7442 (tdesc_add_bitfield, tdesc_add_flag): New.
7443 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7444 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7445 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7446 current_type. Add current_type_size and current_type_is_flags.
7447 (tdesc_start_union): Clear the new fields.
7448 (tdesc_start_struct, tdesc_start_flags): New.
7449 (tdesc_start_field): Handle struct fields, including bitfields.
7450 (field_attributes): Make type optional. Add start and end.
7451 (union_children): Rename to struct_union_children.
7452 (union_attributes): Rename to struct_union_attributes. Add optional
7454 (flags_attributes): New.
7455 (feature_children): Add struct and flags.
7456 * features/gdb-target.dtd: Add flags and struct to features.
7457 Make field type optional. Add field start and end.
7459 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7461 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7462 (amd64_linux_read_description): Likewise.
7463 (_initialize_amd64_linux_nat): Set to_read_description to
7464 amd64_linux_read_description.
7466 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7467 (amd64_linux_register_name): Removed.
7468 (amd64_linux_register_type): Likewise.
7469 (amd64_linux_core_read_description): New.
7470 (amd64_linux_init_abi): Set target description to
7471 tdesc_amd64_linux if needed. Support orig_rax in target
7472 description. Don't call set_gdbarch_register_name nor
7473 set_gdbarch_register_type. Call
7474 set_gdbarch_core_read_description.
7475 (_initialize_amd64_linux_tdep): Call
7476 initialize_tdesc_amd64_linux.
7478 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7480 * amd64-tdep.c: Include "features/i386/amd64.c".
7481 (amd64_register_names): Removed.
7482 (amd64_register_name): Likewise.
7483 (amd64_register_type): Likewise.
7484 (amd64_init_abi): Set num_core_regs and register_names. Set
7485 target description to tdesc_amd64 if needed. Don't call
7486 set_gdbarch_register_name nor set_gdbarch_register_type.
7487 (_initialize_amd64_tdep): New.
7489 * i386-linux-nat.c (i386_linux_read_description): New.
7490 (_initialize_i386_linux_nat): Set to_read_description to
7491 i386_linux_read_description.
7493 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7494 (i386_linux_register_name): Removed.
7495 (i386_linux_core_read_description): New.
7496 (i386_linux_read_description): Likewise.
7497 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7498 Set target description to tdesc_i386_linux if needed. Support
7499 orig_eax. Set register_reggroup_p. Call
7500 set_gdbarch_core_read_description.
7501 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7503 * i386-linux-tdep.h (tdesc_i386_linux): New.
7505 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7508 * i386-tdep.c: Include "features/i386/i386.c".
7509 (i386_register_names): Make it const.
7510 (i386_mmx_names): Likewise.
7511 (i386_num_register_names): Removed.
7512 (i386_register_name): Likewise.
7513 (i386_eflags_type): Likewise.
7514 (i386_mxcsr_type): Likewise.
7515 (i386_sse_type): Likewise.
7516 (i386_register_type): Likewise.
7517 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7518 (i386_pseudo_register_name): New.
7519 (i386_pseudo_register_type): Likewise.
7520 (i386_mmx_type): Make it static.
7521 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7522 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7523 call set_gdbarch_register_name nor set_gdbarch_register_type.
7524 Set register_reggroup_p. Set target description to tdesc_i386
7525 if needed. Call set_tdesc_pseudo_register_type,
7526 set_tdesc_pseudo_register_name and tdesc_use_registers.
7527 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7528 initialize_tdesc_x86_64.
7530 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7531 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7532 register_names, tdesc and register_reggroup_p.
7533 (I386_NUM_FREGS): Removed.
7534 (i386_eflags_type): Likewise.
7535 (i386_mxcsr_type): Likewise.
7536 (i386_mmx_type): Likewise.
7537 (i386_sse_type): Likewise.
7538 (i386_register_name): Likewise.
7539 (i386_regnum): Add I386_MXCSR_REGNUM.
7540 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7542 * i387-tdep.h (I387_NUM_REGS): New.
7544 * regformats/i386/i386-linux.dat: Generated.
7545 * regformats/i386/i386.dat: Likewise.
7546 * regformats/i386/amd64-linux.dat: Likewise.
7547 * regformats/i386/amd64.dat: Likewise.
7549 * regformats/reg-i386-linux.dat: Removed.
7550 * regformats/reg-i386.dat: Likewise.
7551 * regformats/reg-x86-64-linux.dat: Likewise.
7552 * regformats/reg-x86-64.dat: Likewise.
7554 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7556 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7557 cygwin_conv_path API rather than the deprecated
7558 cygwin_conv_to_full_posix_path.
7560 (GetModuleFileNameExA): Undefine for Cygwin.
7561 (GetModuleFileNameExW): Define for Cygwin.
7562 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7563 Call GetModuleFileNameExW and convert path to POSIX using
7565 (windows_make_so): Always define p. Drop unused variable m.
7566 Don't use Win32 functions to check file existance, rather use
7567 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7568 Use canonicalize_file_name to get full path.
7569 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7570 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7571 use correct target buffer size in call to WideCharToMultiByte.
7572 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7573 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7574 (windows_create_inferior): Convert all paths and arguments to wchar_t
7575 and use CreateProcessW on Cygwin.
7576 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7577 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7578 (bad_GetModuleFileNameExW): Define for Cygwin.
7579 (_initialize_loadable): Load GetModuleFileNameExW into
7580 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7582 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7585 * python/py-frame.c (frapy_read_var): Add block argument and logic
7586 to cope with user provided blocks.
7588 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7590 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7593 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7595 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7596 (COMMON_OBS): ... to here since it's used unconditionally.
7597 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7600 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7602 * mips-linux-tdep.c: Update struct sigframe comments.
7603 (SIGFRAME_CODE_OFFSET): Delete macro.
7604 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7606 (mips_linux_n32n64_sigframe_init): Same.
7608 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7610 * remote-mips.c (mips_load): Don't use pseudo-register when
7611 invalidating regcache.
7613 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7615 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7617 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7619 * NEWS: Add "New targets" section, and mention ARM Symbian
7622 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7624 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7625 add ADDR_SIZE member.
7626 (allocate_piece_closure): Update.
7627 (copy_pieced_value_closure): Likewise.
7628 (dwarf2_evaluate_loc_desc): Likewise.
7629 (read_pieced_value): Use DWARF address size instead of
7630 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7632 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
7633 Tom Tromey <tromey@redhat.com>
7635 * python/py-type.c (typy_lookup_typename): Add in block argument.
7636 If provided restrict lookup to specified blocks.
7637 (gdbpy_lookup_type): Likewise.
7638 (typy_lookup_type): Likewise.
7640 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7645 * arm-symbian-tdep.c: New.
7646 * configure.tgt (arm*-*-symbianelf*): New target.
7647 (*-*-symbianelf*): New OS.
7648 * osabi.c (gdb_osabi_names): Add Symbian.
7649 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7650 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7651 (ALLDEPFILES): Add arm-symbian-tdep.c.
7653 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7655 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7657 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7659 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7661 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
7662 Tom Tromey <tromey@redhat.com>
7663 Thiago Jung Bauermann <bauerman@br.ibm.com>
7665 * python/python.c (_initialize_python): Call
7666 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7667 gdbpy_initialize_blocks.
7668 * python/python-internal.h: Declare struct symbol, block and
7669 symtab_and_line. Declare block_object_type and
7671 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7672 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7673 (symbol_to_symbol_object, block_to_block_object)
7674 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7675 (gdbpy_initialize_blocks ): Declare.
7676 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7677 (frapy_select): Add methods.
7678 (frapy_read_var): Add symbol branch.
7679 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7681 (SUBDIR_PYTHON_SRCS): Likewise.
7682 (py-symbol.o): New rule.
7683 (py-symtab.o): Likewise.
7684 (py-block.o): Likewise.
7685 * python/py-symbol.c: New file.
7686 * python/py-symtab.c: Likewise.
7687 * python/py-block.c: Likewise.
7689 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7693 * inferior.h (prepare_for_detach): Declare.
7694 (struct inferior) <detaching>: New field.
7695 * infrun.c (prepare_for_detach): New.
7696 (handle_inferior_event) <random signal>: Don't stop if detaching.
7697 * target.c (target_detach): Call prepare_for_detach.
7699 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7701 Per-process displaced stepping queue.
7703 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7704 (displaced_step_gdbarch, displaced_step_closure,
7705 (displaced_step_original, displaced_step_copy): Move globals to
7707 (struct displaced_step_inferior_state): ... new structure.
7708 (displaced_step_inferior_states): New global.
7709 (get_displaced_stepping_state, add_displaced_stepping_state)
7710 (remove_displaced_stepping_state, infrun_inferior_exit): New
7712 (displaced_step_clear): Add displaced_step_inferior_state
7713 parameter, and adjust to handle it.
7714 (displaced_step_clear_cleanup): Parameter is now a
7715 displaced_step_inferior_state. Adjust.
7716 (displaced_step_prepare): Adjust.
7717 (displaced_step_fixup, displaced_step_fixup)
7718 (infrun_thread_ptid_changed, resume): Adjust.
7719 (init_wait_for_inferior): Don't call displaced_step_clear.
7720 (infrun_thread_stop_requested): Rewrite.
7721 (_initialize_infrun): Install infrun_inferior_exit as
7722 inferior_exit observer.
7724 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7726 * inferior.h (ptid_match): Declare.
7727 * infrun.c (ptid_match): New.
7728 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7729 (handle_notification): Add debug output.
7730 * linux-nat.c (ptid_match): Delete.
7732 2010-02-24 David S. Miller <davem@davemloft.net>
7734 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7735 * syscalls/sparc-linux.xml: New.
7736 * syscalls/sparc64-linux.xml: New.
7737 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7738 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7739 (sparc32_linux_get_syscall_number): New function.
7740 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7741 syscall number fetcher.
7742 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7743 (sparc64_linux_get_syscall_number): New function.
7744 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7745 syscall number fetcher.
7747 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7751 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7752 * inferior.c (add_inferior_silent): Notify inferior_added
7754 (delete_inferior_1): Notify inferior_removed observer.
7755 (exit_inferior_1): Pass inferior, not pid, to observer.
7756 (inferior_appeared): Likewise.
7757 (add_inferior_with_spaces): New.
7758 (add_inferior_command): Use the above.
7759 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7762 * inflow.c (inflow_inferior_exit): Likewise.
7763 * jit.c (jit_inferior_exit_hook): Likewise.
7765 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7767 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7768 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7769 (report_initial_inferior): New.
7770 (mi_inferior_removed): Register the above. Make sure
7771 inferior_added observer is called on the first inferior.
7772 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7773 inferior number, not pid.
7774 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7776 * mi/mi-main.c (current_context): New.
7777 (proceed_thread_callback): Use typed closure.
7778 Proceed everything if pid is 0. Most implementation split into
7779 (proceed_thread): ... this.
7780 (run_one_inferior): New.
7781 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7782 Adjust for multiexec behaviour.
7783 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7784 (mi_cmd_execute): Handle the 'thread-group' option here.
7785 Do some extra checks.
7786 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7788 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7790 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7792 Make -exec-run a proper MI commands.
7794 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7795 * mi/mi-cmds.c (mi_cmds): Adjust.
7796 * mi/mi-main.c (mi_cmd_exec_run): New.
7798 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7799 Stan Shebs <stan@codesourcery.com>
7801 * tracepoint.h (set_traceframe_number)
7802 (cleanup_restore_current_traceframe): Declare.
7803 * tracepoint.c (set_traceframe_number): New.
7804 (struct current_traceframe_cleanup): New.
7805 (do_restore_current_traceframe_cleanup)
7806 (restore_current_traceframe_cleanup_dtor)
7807 (make_cleanup_restore_current_traceframe): New.
7808 * infrun.c: Include tracepoint.h.
7809 (fetch_inferior_event): Switch out and in of tfind mode.
7811 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7813 * breakpoint.c (breakpoint_init_inferior): Also delete
7814 bp_shlib_event breakpoints.
7815 * solib-frv.c (enable_break): Remove call to
7816 remove_solib_event_breakpoints.
7817 * solib-svr4.c (enable_break): Ditto.
7818 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7819 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7820 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7821 * solib-spu.c (spu_enable_break): Ditto.
7823 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7825 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7827 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7829 * varobj.c (varobj_update): Avoid non-constants in initializers.
7831 2010-02-23 Tom Tromey <tromey@redhat.com>
7833 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7834 handle big-endian values.
7835 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7837 2010-02-22 Pedro Alves <pedro@codesourcery.com>
7842 * breakpoint.c (insert_bp_location): If inserting the read
7843 watchpoint failed, fallback to an access watchpoint.
7844 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7845 if the value changed, if not watching the same memory for writes.
7846 (watchpoint_locations_match): Add comment.
7847 (update_global_location_list): Copy the location's watchpoint type.
7848 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7849 handle read watchpoints here.
7850 (i386_insert_watchpoint): Read watchpoints aren't supported.
7851 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7853 * target.h (target_insert_watchpoint): Update description.
7855 2010-02-19 Tom Tromey <tromey@redhat.com>
7857 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7858 * m2-typeprint.c (m2_print_type): Update.
7859 * gdbtypes.c (recursive_dump_type): Update.
7860 (copy_type_recursive): Update.
7861 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7862 (c_type_print_base): Update.
7863 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7865 (struct cplus_struct_type) <ntemplate_args>: Remove.
7866 <struct template_arg>: Remove.
7867 <is_dynamic>: Move earlier.
7868 (TYPE_TEMPLATE_ARGS): Remove.
7869 (TYPE_NTEMPLATE_ARGS): Remove.
7870 (TYPE_TEMPLATE_ARG): Remove.
7872 2010-02-19 Tom Tromey <tromey@redhat.com>
7874 PR c++/8693, PR c++/9496:
7875 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7876 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7877 write_dollar_variable. Don't try to classify NAME tokens.
7878 (token_and_value): New type.
7879 (token_fifo, popping, name_obstack): New globals.
7880 (classify_name): New function.
7881 (classify_inner_name): Likewise.
7883 (VARIABLE): Now has type sval.
7884 (exp : VARIABLE): Call write_dollar_variable.
7885 (qualified_name): Use TYPENAME, not typebase. Add production for
7886 multiple "::" instances.
7887 (variable): Use name_not_typename.
7888 (qualified_type): Remove.
7891 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7893 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7894 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7895 found by bfd_get_section_by_name.
7896 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7898 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7900 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7901 7.0 section" into "Changes in 7.1".
7903 2010-02-19 Joel Brobecker <brobecker@adacore.com>
7905 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7906 * version.in: Bump version to 7.1.50.20100219-cvs.
7908 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7910 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7911 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7913 2010-02-17 Tom Tromey <tromey@redhat.com>
7915 * NEWS: Add Python API Improvements section.
7917 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7919 * NEWS: Correct typo.
7921 2010-02-17 Tom Tromey <tromey@redhat.com>
7923 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7925 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7927 * symfile.c (build_section_addr_info_from_objfile): Include sections
7928 only if they are SEC_ALLOC or SEC_LOAD.
7930 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7933 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7934 of ULONGEST for address size.
7936 2010-02-17 Tom Tromey <tromey@redhat.com>
7938 * NEWS: Add C++ improvements section.
7940 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7942 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7943 PyThreadState_Swap): Avoid "statement with no effect" warning.
7945 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7947 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7948 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7950 2010-02-17 Tristan Gingold <gingold@adacore.com>
7951 Petr Hluzin <petr.hluzin@gmail.com>
7953 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7954 gdb_assert. Fix info->size for SIG prologue.
7956 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7958 * infcmd.c (show_inferior_tty_command): Check for NULL.
7959 Correct output message.
7961 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7963 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7964 FUNCTION contains parentheses. Improve removal of a trailing
7967 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7969 * gcore.c (do_bfd_delete_cleanup): New function.
7970 (gcore_command): Use it. Discard the cleanup after success.
7971 (gcore_copy_callback): Delete dead code.
7973 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7975 * symfile.c (addr_info_make_relative): Always use
7976 find_lowest_section.
7978 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7980 * NEWS: Added entry for namespace fixes.
7982 2010-02-15 Tom Tromey <tromey@redhat.com>
7984 * dwarf2read.c (guess_structure_name): Allocate name on the
7987 2010-02-15 Tom Tromey <tromey@redhat.com>
7989 * c-typeprint.c (c_type_print_base): Reverse order of test.
7991 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7993 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7994 initialize it from ELF BFD. Extend the prelink condition by it.
7996 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7998 * defs.h (parse_pid_to_attach): New.
7999 * utils.c (parse_pid_to_attach): New.
8000 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8001 * gnu-nat.c (gnu_attach): Likewise.
8002 * nto-procfs.c (procfs_attach): Likewise.
8003 * procfs.c (procfs_attach): Likewise.
8004 * windows-nat.c (windows_attach): Likewise.
8005 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8006 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8007 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8010 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8012 * MAINTAINERS: Add myself for write after approval privileges.
8014 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8016 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8019 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8021 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8022 only if INFO_VERBOSE.
8024 2010-02-12 Tomas Holmberg <th@virtutech.com>
8026 * mi/mi-main.c: Added the --reverse flag to the following MI
8027 commands: exec-continue, exec-finish, exec-next, exec-step,
8028 exec-next-instruction, exec-step-instruction. This is to
8029 support reverse execution over the MI interface to gdb.
8031 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8033 * tracepoint.c (_initialize_tracepoint): Specify that the address
8034 range of `tfind outsize' is exclusive, and that the address range
8035 of `tfind range' is inclusive, in the commands' help strings.
8037 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8039 Spurious "dll not found" error messages on x64-windows.
8040 * windows-nat.c: Add include of complaints.h.
8041 (handle_unload_dll): Change dll-not-found error into a complaint.
8043 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8045 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8046 bp_tracepoint and bp_fast_tracepoint, not
8047 bp_loc_software_breakpoint.
8048 (update_global_location_list): Tracepoints are never duplicates of
8051 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8053 * breakpoint.c (break_command_really): Change return type to int.
8054 Return false if no breakpoint was created, true otherwise.
8055 (trace_command): Don't set the tracepoint count if no tracepoint
8057 (ftrace_command): Ditto.
8058 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8059 created in the breakpoints table.
8061 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8062 Ulrich Weigand <uweigand@de.ibm.com>
8064 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8066 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8068 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8069 the offset value isn't of integral type.
8071 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8073 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8076 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8078 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8079 non-subscriptable types.
8080 * valarith.c (binop_types_user_defined_p): New, abstracted out
8082 (binop_user_defined_p): ... this.
8083 * value.h (binop_types_user_defined_p): Declare.
8085 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8087 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8088 Merge uploaded TSVs before merging uploaded tracepoints.
8090 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8092 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8094 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8096 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8097 whitespace character after a dot in comment.
8098 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8100 (list_args_or_locals): For the 'all' (that is
8101 -stack-list-variables) case, always output list of tuples.
8102 Output 'arg' field if variable is argument.
8104 2010-02-10 Tom Tromey <tromey@redhat.com>
8106 * parser-defs.h (parser_debug): Declare.
8107 * parse.c (_initialize_parse): Install "debug parser" set/show
8109 (parser_debug): New global.
8110 (show_parserdebug): New function.
8111 * c-exp.y (c_parse): Set yydebug.
8113 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8115 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8116 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8117 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8119 (tdesc_find_type): New.
8120 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8121 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8123 * target-descriptions.h (tdesc_find_type): New.
8125 2010-02-10 Michael Snyder <msnyder@vmware.com>
8127 * gdb-gdb.py: Comment fix.
8129 2010-02-09 Tristan Gingold <gingold@adacore.com>
8131 * machoread.c (macho_symfile_relocate): New function.
8132 (macho_sym_fns): Use macho_symfile_relocate instead of
8133 default_symfile_relocate.
8134 (macho_oso_data): New type.
8135 (current_oso): New variable.
8136 (macho_add_oso_symfile): Do not compute section_addr_info, but
8137 instead set vma of sections.
8138 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8139 Set and clear current_oso.
8141 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8143 Wrong type description for tagged type parameter.
8144 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8145 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8146 reference to a tagged type.
8148 2010-02-09 Tristan Gingold <gingold@adacore.com>
8150 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8151 brothers of the parent.
8153 2010-02-08 Tom Tromey <tromey@redhat.com>
8157 * valops.c (search_struct_field): Make 'name' const.
8158 (search_struct_method): Likewise.
8159 (find_method_list): Make 'method' const.
8160 (value_struct_elt): Make 'name' and 'err' const.
8161 (value_find_oload_method_list): Make 'method' const.
8162 (find_overload_match): Make 'name' const.
8163 * eval.c (evaluate_subexp_standard): New locals function,
8165 <OP_FUNCALL>: Handle OP_SCOPE specially.
8167 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8169 * infrun.c (handle_inferior_event): Do not look up regcache
8170 for exited processes.
8172 2010-02-08 Chris Moller <moller@mollerware.com>
8175 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8176 warn if found, and assume length = 1.
8178 2010-02-08 Chris Moller <cmoller@redhat.com>
8181 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8182 (cp_print_static_field) Fix use of obstacks.
8184 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8186 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8187 resumed LWPs as resumed.
8188 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8189 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8190 of throwing an internal error. If an LWP of a process we're not
8191 waiting for reports a signal, don't force collecting a SIGSTOP,
8192 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8193 go through all LWPs cancelling breakpoints in non-stop mode.
8194 (resume_stopped_resumed_lwps): New.
8195 (linux_nat_wait): Use it.
8197 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8199 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8200 i386/amd64 and i386/amd64-linux.
8201 (i386/i386-expedite): New.
8202 (i386/i386-linux-expedite): Likewise.
8203 (i386/amd64-expedite):Likewise.
8204 (i386/amd64-linux-expedite): Likewise.
8205 ($(outdir)/i386/i386-linux.dat): Likewise.
8206 ($(outdir)/i386/amd64.dat): Likewise.
8207 ($(outdir)/i386/amd64-linux.dat): Likewise.
8209 * features/i386/32bit-core.xml: New.
8210 * features/i386/32bit-linux.xml: Likewise.
8211 * features/i386/32bit-sse.xml: Likewise.
8212 * features/i386/64bit-core.xml: Likewise.
8213 * features/i386/64bit-linux.xml: Likewise.
8214 * features/i386/64bit-sse.xml: Likewise.
8215 * features/i386/i386-linux.xml: Likewise.
8216 * features/i386/i386.xml: Likewise.
8217 * features/i386/amd64-linux.xml: Likewise.
8218 * features/i386/amd64.xml: Likewise.
8219 * features/i386/i386-linux.c: Likewise.
8220 * features/i386/i386.c: Likewise.
8221 * features/i386/amd64-linux.c: Likewise.
8222 * features/i386/amd64.c: Likewise.
8224 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8227 * cp-support.h: Added char* alias element to using_direct data
8229 (cp_add_using): Added char* alias argument.
8230 (cp_add_using_directive): Ditto.
8231 * cp-namespace.c: Updated with the above changes.
8232 (cp_lookup_symbol_imports): Check for aliases.
8233 * dwarf2read.c (read_import_statement): Figure out local alias
8234 for the import and pass it on to cp_add_using.
8235 (read_namespace): Pass alias argument to cp_add_using.
8237 2010-02-05 Hui Zhu <teawater@gmail.com>
8239 * defs.h (gdb_bfd_errmsg): New extern.
8240 * exec.c (exec_file_attach): Change bfd_errmsg to
8242 * utils.c (AMBIGUOUS_MESS1): New macro.
8243 (AMBIGUOUS_MESS2): New macro.
8244 (gdb_bfd_errmsg): New function.
8246 2010-02-04 Doug Evans <dje@google.com>
8248 * solib-svr4.c (enable_break): Add comment.
8250 2010-02-04 Anthony Green <green@moxielogic.com>
8252 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8255 2010-02-04 Tom Tromey <tromey@redhat.com>
8257 * valops.c (search_struct_field): Account for
8258 value_embedded_offset. Fix check for virtual base past the end of
8259 the object. Use value_copy when making a slice of the value.
8261 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8264 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8265 only if gdb_stdout is a tty.
8267 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8269 * target-descriptions.c: Include "osabi.h".
8270 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8273 2010-02-04 Tristan Gingold <gingold@adacore.com>
8275 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8276 (macho_symtab_read): Adjust calls to macho_add_oso.
8277 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8278 (macho_symfile_read): Adjust call to macho_oso_symfile.
8279 (macho_new_init): Move this function after declarations.
8280 (macho_symfile_init): Ditto.
8281 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8282 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8284 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8286 Include MI command in remotelog.
8288 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8290 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8292 * remote.c (remote_state): Remove gdbarch.
8293 (init_remote_state): Don't set gdbarch.
8294 (remote_query_supported): Pass target_gdbarch instead of
8295 rs->gdbarch to gdbarch_qsupported.
8297 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8299 * gdbarch.sh: Add qsupported.
8301 * gdbarch.c: Regenerated.
8302 * gdbarch.h: Likewise.
8304 * remote.c (remote_state): Add gdbarch.
8305 (init_remote_state): Set gdbarch.
8306 (remote_query_supported): Support gdbarch_qsupported.
8308 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8310 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8311 __FreeBSD_kernel_version.
8313 2010-02-03 Tristan Gingold <gingold@adacore.com>
8315 * symfile.h (struct sym_fns): Add sym_relocate field.
8316 (default_symfile_relocate): New prototype.
8317 (symfile_relocate_debug_section): First argument is now an objfile.
8318 * symfile.c (default_symfile_relocate): Rename from
8319 symfile_relocate_debug_section, first argument is now an objfile.
8320 (symfile_relocate_debug_section): New function.
8321 * coffread.c (coff_sym_fns): Set sym_relocate field.
8322 * somread.c (som_sym_fns): Ditto.
8323 * mipsread.c (ecoff_sym_fns): Ditto.
8324 * machoread.c (macho_sym_fns): Ditto.
8325 * elfread.c (elf_sym_fns): Ditto.
8326 * dwarf2read.c (dwarf2_read_section): Ditto.
8327 * xcoffread.c (xcoff_sym_fns): Ditto.
8328 * dbxread.c (aout_sym_fns): Ditto.
8329 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8330 (elfstab_build_psymtabs): Ditto.
8332 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8334 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8336 2010-02-02 Tom Tromey <tromey@redhat.com>
8338 * valops.c (value_cast_structs): Try downcasting using the RTTI
8341 2010-02-02 Tom Tromey <tromey@redhat.com>
8343 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8344 (gnuv2_baseclass_offset): Now static.
8345 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8346 * gnu-v2-abi.h: Remove.
8348 2010-02-02 Tom Tromey <tromey@redhat.com>
8350 * m2-typeprint.c (m2_record_fields): Don't use
8352 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8353 (struct main_type) <flag_declared_class>: New field.
8354 (struct cplus_struct_type) <declared_type>: Remove.
8355 <ntemplate_args>: Move earlier.
8356 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8357 (DECLARED_TYPE_TEMPLATE): Remove.
8358 (TYPE_DECLARED_TYPE): Remove.
8359 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8360 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8361 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8364 2010-02-02 Tom Tromey <tromey@redhat.com>
8366 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8367 * valops.c (search_struct_field): Compute nbases after calling
8369 (check_field): Call CHECK_TYPEDEF.
8370 * cp-valprint.c (cp_print_value): Pass correct address to
8371 baseclass_offset. Fix check for virtual base past the end of the
8372 object. Don't offset address passed to cp_print_value_fields or
8373 apply_val_pretty_printer.
8374 (cp_print_value_fields): Fix call to val_print.
8375 (cp_print_value_fields_rtti): New function.
8376 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8377 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8379 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8381 * language.h (struct language_defn) <la_val_print>: Document.
8382 * c-lang.h (cp_print_value_fields_rtti): Declare.
8384 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8387 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8388 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8389 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8391 2010-02-01 Michael Matz <matz@suse.de>
8392 Daniel Jacobowitz <dan@codesourcery.com>
8394 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
8395 functions use a frame pointer.
8397 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8399 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8400 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8401 * config/djgpp/fnchange.lst: Add translations for
8402 symbol-without-target_section.exp and symbol-without-target_section.c.
8404 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8406 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8407 (remote_breakpoint_for_pc): Correct invalid_p check.
8408 * gdbarch.c: Regenerated.
8410 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8412 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8414 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8415 (extend_buffer_earlier): New function.
8416 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8417 (arm_adjust_breakpoint_address): New function.
8418 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8420 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8422 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8423 (arm_linux_thumb2_le_breakpoint): New constants.
8424 (arm_linux_init_abi): Set thumb2_breakpoint and
8425 thumb2_breakpoint_size.
8426 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8427 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8428 Implement support for single stepping through IT blocks if
8429 a 32-bit Thumb breakpoint instruction is available.
8430 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8431 is available, use it when needed.
8432 (arm_remote_breakpoint_from_pc): New function.
8433 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8434 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8435 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8437 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8439 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8440 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8441 * gdbarch.c, gdbarch.h: Regenerated.
8442 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8443 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8444 gdbarch_remote_breakpoint_from_pc.
8446 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8448 * infrun.c (prepare_to_proceed): Handle other signals which might
8450 (handle_inferior_event): Move the check for unusual breakpoint
8453 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8455 amd64 - function returning record with field straddling 2 registers.
8456 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8457 a record of length <= 16 in which a field straddles the two
8460 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8462 Implement return values on amd64-windows.
8463 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8464 (amd64_windows_return_value): New function.
8465 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8466 amd64_windows_return_value.
8468 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8470 amd64-windows: 32 bytes allocated on stack by caller for integer
8471 parameter registers.
8472 * i386-tdep.h (struct gdbarch_tdep): Add new field
8473 integer_param_regs_saved_in_caller_frame.
8474 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8475 tdep->integer_param_regs_saved_in_caller_frame to 1.
8476 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8477 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8479 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8481 amd64-windows: memory args passed by pointer during function calls.
8482 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8483 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8484 where tdep->memory_args_by_pointer is non-zero.
8485 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8486 tdep->memory_args_by_pointer to 1.
8488 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8490 amd64-windows: Integer parameters in function calls.
8491 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8493 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8494 call_dummy_integer_regs, and classify.
8495 * amd64-tdep.h (amd64_classify): Add declaration.
8496 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8497 (amd64_reg_class): Delete, moved to i386-tdep.h.
8498 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8499 Replace call to amd64_classify by call to tdep->classify.
8500 (amd64_push_arguments): Get the list of registers to use for
8501 passing integer parameters from the gdbarch tdep structure,
8502 rather than using a hardcoded one. Replace calls to amd64_classify
8503 by calls to tdep->classify.
8504 (amd64_push_dummy_call): Get the register number used for
8505 the "hidden" argument from tdep->call_dummy_integer_regs.
8506 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8507 and tdep->call_dummy_integer_regs. Set tdep->classify.
8508 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8509 (amd64_windows_dummy_call_integer_regs): New static global.
8510 (amd64_windows_classify): New function.
8511 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8512 tdep->call_dummy_integer_regs and tdep->classify.
8514 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8516 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8517 for the new regcache. All callers updated.
8518 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8519 (get_thread_arch_regcache): Do not set aspace here.
8520 * regcache.h (regcache_xmalloc): Update declaration.
8522 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8523 regcache_xmalloc updated.
8525 2010-01-28 Joel Brobecker <brobecker@adacore.com>
8527 Another -Wunused-function error in procfs.c (sparc-solaris)
8528 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8529 Only define if SYS_syssgi is defined.
8530 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8531 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8532 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8535 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8537 * windows-nat.c (windows_initialization_done): New variable.
8538 (get_windows_debug_event): Issue error when process dies before
8539 completely initializing.
8540 (do_initial_windows_stuff): Set flag to indicate when we are done with
8541 the initial steps of attaching to the child.
8543 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8545 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8547 2010-01-27 Doug Evans <dje@google.com>
8549 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8551 * breakpoint.c (bpstat_stop_status): Delete useless code.
8553 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8555 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8556 objfile via SYMBOL_SYMTAB.
8558 2010-01-26 Tom Tromey <tromey@redhat.com>
8561 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8562 coerce_array on result.
8564 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8566 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8567 search_parent argument.
8568 (cp_add_using): Initialize 'searched' field.
8569 (reset_directive_searched): New function.
8570 * cp-support.h: Add 'searched' field to using_direct struct.
8571 (cp_lookup_symbol_imports): Ditto.
8572 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8573 Perform recursive search.
8574 Implement non parent search.
8575 * valops.c (value_maybe_namespace_elt): Updated.
8577 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8580 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8581 scopes which contain using directives even if they contain no
8583 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8584 la_lookup_symbol_nonlocal.
8585 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8586 cp_lookup_symbol_namespace.
8587 (cp_lookup_symbol_namespace): Perform an import lookup at every
8589 (cp_lookup_symbol_imports): New function.
8590 (cp_lookup_symbol_in_namespace): New function.
8592 2010-01-25 Tom Tromey <tromey@redhat.com>
8595 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8598 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8600 * configure.ac: Only use host_os part when disabling TUI on osf.
8601 Use test to check variables, prefix strings with x.
8602 * configure: Regenerate.
8604 * solib-osf.c (osf_current_sos): Initialize tail.
8606 2010-01-25 gingold <gingold@adacore.com>
8608 * windows-nat.c (windows_continue): Use %x to print thread id.
8609 (get_windows_debug_event): Ditto.
8611 2010-01-22 Tom Tromey <tromey@redhat.com>
8614 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8615 type and arguments. Use smash_to_methodptr_type.
8616 (read_structure_type): Call quirk_gcc_member_function_pointer
8618 * gdbtypes.h (smash_to_methodptr_type): Declare.
8619 * gdbtypes.c (smash_to_methodptr_type): New function.
8620 (lookup_methodptr_type): Use it.
8622 2010-01-21 Tom Tromey <tromey@redhat.com>
8625 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8626 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8627 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8628 (glibc_skip_solib_resolver): Use
8629 lookup_minimal_symbol_and_objfile.
8631 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
8633 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8636 2010-01-20 Tom Tromey <tromey@redhat.com>
8639 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8640 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8641 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8642 dwarf_stack_values, not CORE_ADDRs.
8643 (execute_stack_op): Change DW_OP_div and comparison operators to
8644 use signed operands.
8646 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8648 Per-inferior args and tty and environment.
8650 * infcmd.c (inferior_args): Rename to ...
8651 (inferior_args_scratch): ... this.
8652 (inferior_io_terminal): Rename to ...
8653 (inferior_io_terminal_scratch): ... this.
8654 (inferior_argc, inferior_argv): Remove.
8655 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8656 inside current_inferior().
8657 (set_inferior_tty_command, show_inferior_tty_command): New.
8658 (get_inferior_args, set_inferior_args): Store inside
8660 (notice_args_set): Likewise and rename to...
8661 (set_args_command): ... this.
8662 (set_inferior_args_vector): Likewise.
8663 (notice_args_read): Rename to...
8664 (show_args_command): ...new.
8665 (tty_command): Remove.
8666 (run_command_1): Don't free old args, as they are freed by
8667 set_inferior_arg now.
8668 (run_no_args_command): Likewise.
8669 (inferior_environ): Remove.
8670 (run_command_1): Use environment of the current inferior.
8671 (environment_info, set_environment_command)
8672 (unset_environment_command, path_info, path_command): Likewise.
8673 (_initialize_infcmd): Adjust for function and variable renames.
8674 Do not init inferior_environ.
8675 * inferior.h (set_inferior_arg): Adjust prototype.
8676 (struct inferior): New fields args, argc, argv, terminal, environment.
8677 (inferior_environ): Remove declaration.
8678 * inferior.c (free_inferior): Free new fields.
8679 (add_inferior_silent): Initialize 'environment' field.
8680 * main.c (captured_main): Set arguments only after the initial
8681 inferior has been created. Set set_inferior_io_terminal,
8683 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8685 (_initialize_mi_cmd_env): Adjust for disappearance of global
8687 * solib.c (solib_find): Use environment of the current inferior.
8689 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8691 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8693 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8695 2010-01-20 Joel Brobecker <brobecker@adacore.com>
8697 Get rid of ada-lang.c:function_name_from_pc.
8698 * ada-lang.c: Add "stack.h" #include.
8699 (function_name_from_pc): Delete.
8700 (is_known_support_routine): Replace call to function_name_from_pc
8701 by call to find_frame_funname.
8702 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8704 2010-01-19 Tom Tromey <tromey@redhat.com>
8707 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8710 2010-01-19 Tom Tromey <tromey@redhat.com>
8712 * top.c (stop_sig, float_handler, do_nothing): Remove.
8714 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8716 * breakpoint.c (watchpoint_check): Check the call
8717 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8719 * config/djgpp/fnchange.lst: Add translations for
8720 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8721 watchpoint-cond-gone-stripped.c.
8723 2010-01-19 Tom Tromey <tromey@redhat.com>
8726 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8727 into parent scope, and enumerator into grandparent scope.
8729 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8731 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8733 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8735 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8736 i[34567]86-*-solaris2.1[0-9]*.
8737 * configure.tgt: Likewise.
8739 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8741 * NEWS: Document the source command enhancement allowing it
8742 to load Python scripts. Document the "set/show script-extension"
8745 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8747 Add -Wunused-function to compile flags.
8748 * configure.ac: Add -Wunused-function to build_warnings.
8749 * configure: Regenerate.
8751 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8753 "delete" ada-lex.c:input function, not used.
8754 * ada-lex.l: #define YY_NO_INPUT.
8756 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8758 Delete free_named_symtabs and associated cleanup.
8759 * symfile.h (free_named_symtabs): Delete declaration.
8760 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8761 (cashier_psymtab): Comment function out.
8763 (free_named_symtabs): Delete.
8764 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8765 * dbxread.c (end_psymtab): Likewise.
8766 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8767 * exec.c (exec_close_1): Ditto.
8768 * xcoffread.c (xcoff_end_psymtab): Likewise.
8770 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8772 * stack.c (print_block_frame_labels): Comment function out.
8774 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8776 Delete unused or undefined functions.
8777 * breakpoint.c (ep_parse_optional_filename): Delete.
8778 * dcache.c (dcache_write_line): Remove declaration.
8779 * infrun.c (build_infrun): Remove declaration.
8780 * tracepoint.c (tracepoint_save_command): Remove declaration.
8781 * linux-nat.c (init_lwp_list): Delete. No longer used.
8782 * event-loop.c (check_async_signal_handlers): Delete declaration.
8783 * infrun.c (init_execution_control_state): Delete.
8784 (proceed): Update comment to avoid mentioning
8785 init_execution_control_state.
8786 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8787 * ada-lang.c (ada_to_static_fixed_value): Delete.
8788 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8789 * cp-namespace.c (cp_copy_usings): Delete.
8790 * xml-syscall.c (xml_number_of_syscalls): Delete.
8791 * progspace.c (find_program_space_by_num): Delete.
8792 * inflow.c (handle_sigio): Delete declaration.
8793 * hppa-tdep.c (hppa_alignof): Delete.
8794 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8795 (mipsnbsd_core_osabi_sniffer): Delete.
8797 2010-01-18 Tom Tromey <tromey@redhat.com>
8800 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8801 (CONST_CAST): New tokens.
8802 (exp): Add new productions.
8803 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8805 (is_cast_operator): New function.
8806 (yylex): Handle cast operators specially.
8807 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8808 UNOP_REINTERPRET_CAST>: New cases.
8809 * expprint.c (print_subexp_standard): Likewise.
8810 (op_name_standard): Likewise.
8811 (dump_subexp_body_standard): Likewise.
8812 * parse.c (operator_length_standard): Likewise.
8813 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8814 UNOP_REINTERPRET_CAST.
8815 * gdbtypes.c (class_types_same_p): New function.
8816 (is_ancestor): Use it.
8817 (is_public_ancestor): New function.
8818 (is_unique_ancestor_worker): Likewise.
8819 (is_unique_ancestor): Likewise.
8820 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8821 (is_unique_ancestor): Declare.
8822 * valops.c (value_reinterpret_cast): New function.
8823 (dynamic_cast_check_1): Likewise.
8824 (dynamic_cast_check_2): Likewise.
8825 (value_dynamic_cast): Likewise.
8826 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8828 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8830 Fix build failure when building without Python support.
8831 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8834 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8836 Use XVS field type instead of doing a parallel lookup.
8837 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8838 if it is a reference type instead of doing a type lookup using
8841 2010-01-18 Joel Brobecker <brobecker@adacore.com>
8843 Trust PAD types instead of using PAD___XVS.
8844 * ada-lang.c (trust_pad_over_xvs): New static variable.
8845 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8846 parallel XVS type, follow the XVS type instead of the PAD type.
8847 (unwrap_value): Make sure that there is no parallel XVE type
8848 before returning the value as is.
8849 (set_ada_list, show_ada_list): New static variables.
8850 (set_ada_command, show_ada_command): New functions.
8851 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8852 Add new "set/show ada trust-PAD-over-XVS" setting.
8854 2010-01-18 Tom Tromey <tromey@redhat.com>
8855 Thiago Jung Bauermann <bauerman@br.ibm.com>
8857 Allow "source" to load python scripts.
8858 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8859 * python/python.c (source_python_script): New function.
8860 * python/python.h (source_python_script): Add declaration.
8861 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8862 (script_ext_off, script_ext_soft, script_ext_strict)
8863 (script_ext_enums, script_ext_mode): New static constants.
8864 (show_script_ext_mode, find_and_open_script): New functions.
8865 (source_script): Enhance to handle Python scripts.
8866 (init_cli_cmds): Add set/show script-extension commands.
8868 2010-01-16 Stan Shebs <stan@codesourcery.com>
8870 * tracepoint.h (struct trace_status): Use unsigned long long
8872 * tracepoint.c (trace_status_command): Fix printf directive.
8873 (trace_save_command): Check fwrite returns, fix printf directive.
8874 (trace_filename): New global.
8875 (tfile_open): Set it, check read returns.
8876 (tfile_close): Free trace_filename.
8877 (tfile_get_traceframe_address): Check read returns.
8878 (tfile_trace_find): Ditto.
8879 (tfile_fetch_registers): Ditto.
8880 (tfile_xfer_partial): Ditto.
8881 (tfile_get_trace_state_variable_value): Ditto.
8883 2010-01-15 Stan Shebs <stan@codesourcery.com>
8885 Add trace file support.
8886 * tracepoint.h (enum trace_stop_reason): New enum.
8887 (struct trace_status): New struct.
8888 (parse_trace_status): Declare.
8889 (struct uploaded_tp): Move here from remote.c,
8890 add fields for actions.
8891 (struct uploaded_tsv): New struct.
8892 * tracepoint.c (tfile_ops): New target vector.
8893 (trace_fd): New global.
8894 (tfile_open): New function.
8895 (tfile_close): New function.
8896 (tfile_files_info): New function.
8897 (tfile_get_trace_status): New function.
8898 (tfile_get_traceframe_address): New function.
8899 (tfile_trace_find): New function.
8900 (tfile_fetch_registers): New function.
8901 (tfile_xfer_partial): New function.
8902 (tfile_get_trace_state_variable_value): New function.
8903 (init_tfile_ops): New function.
8904 (_initialize_tracepoint): Call it, add tfile target.
8905 (trace_status): New global.
8906 (current_trace_status): New function.
8907 (trace_running_p): Remove, change all users to get from
8908 current_trace_status()->running.
8909 (get_trace_status): Remove.
8910 (trace_status_command): Call target_get_trace_status directly,
8911 report more detail including tracing stop reasons.
8912 (trace_find_command): Always allow tfind on a file.
8913 (trace_find_pc_command): Ditto.
8914 (trace_find_tracepoint_command): Ditto.
8915 (trace_find_line_command): Ditto.
8916 (trace_find_range_command): Ditto.
8917 (trace_find_outside_command): Ditto.
8918 (trace_frames_offset, cur_offset): Declare as off_t.
8919 (trace_regblock_size): Rename from reg_size, update users.
8920 (parse_trace_status): New function.
8921 (tfile_interp_line): New function.
8922 (disconnect_or_stop_tracing): Ensure current trace
8923 status before asking what to do.
8924 (stop_reason_names): New global.
8925 (trace_save_command): New command.
8926 (get_uploaded_tp): Move here from remote.c.
8927 (find_matching_tracepoint): Ditto.
8928 (merge_uploaded_tracepoints): New function.
8929 (parse_trace_status): Use stop_reason_names.
8930 (_initialize_tracepoint): Define tsave command.
8931 * target.h (target_ops): New fields to_save_trace_data,
8932 to_upload_tracepoints, to_upload_trace_state_variables,
8933 to_get_raw_trace_data, change to_get_trace_status
8934 to take a pointer to a status struct.
8935 (target_save_trace_data): New macro.
8936 (target_upload_tracepoints): New macro.
8937 (target_upload_trace_state_variables): New macro.
8938 (target_get_raw_trace_data): New macro.
8939 * target.c (update_current_target): Add new methods, change
8940 signature of to_get_trace_status.
8941 * remote.c (hex2bin): Make globally visible.
8943 (remote_download_trace_state_variable): Download name also.
8944 (remote_get_trace_status): Update parameter, use
8946 (remote_save_trace_data): New function.
8947 (remote_upload_tracepoints): New function.
8948 (remote_upload_trace_state_variables): New function.
8949 (remote_get_raw_trace_data): New function.
8950 (remote_start_remote): Use them.
8951 (_initialize_remote_ops): Add operations.
8952 * ax-gdb.c: Include breakpoint.h.
8953 * breakpoint.c (create_tracepoint_from_upload): Use
8954 break_command_really, return tracepoint, warn about unimplemented
8956 * NEWS: Mention trace file addition.
8958 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8960 Fix compilation warning on gcc-3.4.
8961 * exec.c (print_section_info): Move the `displacement' variable
8962 initialization to its declaration.
8964 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8966 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8969 2010-01-15 Eric Botcazou <botcazou@adacore.com>
8971 "info tasks" broken by typedefs in ATCB type definitions.
8972 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8973 ada_check_typedef before retrieving the length of the type for
8976 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8978 Do not use name-based lookup for unconstrained packed arrays.
8979 * ada-lang.c (find_parallel_type_by_descriptive_type):
8980 Limit the fallback to name-based lookups to the case where
8981 the type is a constrained packed array.
8983 2010-01-15 Joel Brobecker <brobecker@adacore.com>
8985 Enhance gdb-gdb.py to handle main_type.type_specific.
8986 * gdb-gdb.py: Print the type-specific part of struct main_type.
8988 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8990 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8991 * configure: Regenerate.
8992 * config.in: Regenerate.
8993 * utils.c: Include sys/resource.h.
8994 (dump_core, can_dump_core): New.
8995 (internal_vproblem): Update the comment. Check can_dump_core while
8996 setting dump_core_p. Replace two abort calls by dump_core calls.
8998 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8999 Eli Zaretskii <eliz@gnu.org>
9001 * NEWS: Document the PIE support.
9003 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9005 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9006 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9008 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9010 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9011 Replace exec_entry_point call by bfd_get_start_address.
9013 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9015 Support Valgrind attachments broken by the PIE support.
9016 * auxv.c: Include gdbcore.h.
9017 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9018 parameters ops, object and annex. Remove their assertions.
9019 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9020 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9021 (memory_xfer_auxv): ... here.
9022 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9024 * procfs.c (procfs_xfer_partial): Likewise.
9025 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9026 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9027 (svr4_solib_create_inferior_hook): Conditionalize the
9028 svr4_relocate_main_executable call.
9030 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9032 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9033 target_section. Find SECT in current_target_sections, gdb_assert it.
9034 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9036 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9037 of separate debug info file.
9039 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9041 Support PIEs with no symfile_objfile.
9042 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9043 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9045 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9049 (svr4_static_exec_displacement): ... a new function.
9050 (svr4_exec_displacement): New function.
9051 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9052 new_offsets using alloca now. Remove variable old_chain and changed.
9053 Call objfile_relocate unconditionally now.
9055 2010-01-14 Doug Evans <dje@google.com>
9057 * gdbtypes.c (arch_flags_type): Fix comment.
9058 * gdbtypes.h (arch_composite_type): Fix comment.
9060 2009-01-14 Tristan Gingold <gingold@adacore.com>
9062 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9063 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9064 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9065 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9066 macho_add_oso_symfile.
9067 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9069 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9071 Tru64: Dead threads are never deleted.
9072 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9073 (dec_thread_count_gdb_threads): Fix counter increment.
9074 (dec_thread_add_gdb_thread): Fix *listp increment.
9075 (resync_thread_list): Fix bug in deletion of dead threads that
9076 caused all threads to be deleted, instead of just the dead ones.
9078 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9082 * python/python-internal.h: Add lazy_string_object_type
9084 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9085 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9086 * python/py-value.c (valpy_lazy_string): New function.
9087 (convert_value_from_python): Add lazy string conversion.
9088 * python/py-prettyprint.c (pretty_print_one_value): Check if
9089 return is also a lazy string.
9090 (print_string_repr): Add lazy string printing branch.
9091 (print_children): Likewise.
9092 * python/py-lazy-string.c: New file. Implement lazy strings.
9093 * python/python.c (_initialize_python): Call
9094 gdbpy_initialize_lazy_string.
9095 * varobj.c (value_get_print_value): Add lazy string printing
9096 branch. Account for encoding.
9097 * c-lang.c (c_printstr): Account for new encoding argument. If
9098 encoding is NULL, find encoding suited for type, otherwise use
9100 * language.h (language_defn): Add encoding argument.
9101 (LA_PRINT_STRING): Likewise.
9102 * language.c (unk_lang_printstr): Update to reflect new encoding
9103 argument to language_defn.
9104 * ada-lang.h (ada_printstr): Likewise.
9105 * c-lang.h (c_printstr): Likewise.
9106 * p-lang.h (pascal_printstr);
9107 * f-lang.c (f_printstr): Likewise.
9108 * m2-lang.c (m2_printstr): Likewise.
9109 * objc-lang.c (objc_printstr): Likewise.
9110 * p-lang.c (pascal_printstr): Likewise.
9111 * scm-lang.c (scm_printstr): Likewise.
9112 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9114 * ada-valprint.c (ada_printstr): Likewise.
9115 * f-valprint.c (f_val_print): Likewise
9116 * m2-valprint.c (m2_val_print): Likewise.
9117 * p-valprint.c (pascal_val_print): Likewise.
9118 * expprint.c (print_subexp_standard): Likewise.
9119 * valprint.c (val_print_string): Likewise.
9120 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9121 (SUBDIR_PYTHON_SRCS): Likewise.
9122 (py-lazy-string.o): New rule.
9124 2010-01-13 Doug Evans <dje@google.com>
9126 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9127 uninitialized" warning from gcc on local `tree'.
9129 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9131 Implement core awareness.
9133 * bcache.c (compare_ints): Remove
9134 (print_percentage): Use compare_positive_ints.
9135 * defs.h (compare_positive_ints): Declare.
9136 * linux-nat.h (struct lin_lwp): New field core.
9137 (linux_nat_core_of_thread_1): Declare.
9138 * linux-nat.c (add_lwp): Init the 'core' field.
9139 (linux_nat_wait_1): Record the core.
9140 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9141 (linux_nat_add_target): Register the above.
9142 * linux-thread-db.c (update_thread_core): New.
9143 (thread_db_find_new_threads): Update core information for
9145 * remote.c (struct private_thread_info): New.
9146 (free_private_thread_info, demand_private_info): New.
9147 (PACKET_qXfer_threads, use_osdata_threads): New.
9148 (struct thread_item, threads_parsing_context
9149 (start_thread, end_thread, thread_attributes)
9150 (thread_children, threads_children, threads_elements): New.
9151 (remote_threads_info): Try qXfer:threads before anything
9153 (remote_protocol_packets): Register qXfer:threads.
9154 (remote_open_1): Init use_osdata_threads.
9155 (struct stop_reply): New field 'core'.
9156 (remote_parse_stop_reply): Parse core number.
9157 (process_stop_reply): Record core number.
9158 (remote_xfer_partial): Handle qXfer:threads.
9159 (remote_core_of_thread): New.
9160 (init_remote_ops): Register remote_core_of_thread.
9161 (_initialize_remote): Register qXfer:read.
9162 * target.c (target_core_of_thread): New
9163 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9164 (struct target_ops): New field to_core_of_threads.
9165 (target_core_of_thread): Declare.
9166 * gdbthread.h (struct thread_info): New field private_dtor.
9167 * thread.c (print_thread_info): Report the core.
9168 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9169 * utils.c (compare_positive_ints): New.
9170 * features/threads.dtd: New.
9171 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9172 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9173 (do_nothing, free_vector_of_osdata_items)
9174 (splay_tree_int_comparator, free_splay_tree): New.
9175 (print_one_inferior_data): Implemented printing of selected
9176 inferiors. Collect and print cores.
9177 (output_cores): New.
9178 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9179 thread groups together with --available.
9181 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9183 * configure: Regenerate (for _STRUCTURED_PROC).
9185 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9187 Delete dead function.
9188 * ada-lang.c (extract_string): Delete. No longer used.
9190 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9192 Fix -Wunused warning in dec-thread.c.
9193 * dec-thread.c (dec_thread_count_gdb_threads)
9194 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9196 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9198 * ada-valprint.c (ada_print_floating): Remove trailing space.
9200 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9202 Add support for DW_AT_GNAT_descriptive_type.
9203 * gdbtypes.h (enum type_specific_kind): New enum.
9204 (struct main_type) [type_specific_field]: New component.
9205 [type_specific]: Add new component "gnat_stuff".
9206 (struct gnat_aux_type): New type.
9207 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9208 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9209 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9210 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9211 (TYPE_SPECIFIC_FIELD): New macros.
9212 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9213 type does not hold any cplus-specific data.
9214 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9215 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9216 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9217 cplus-specific data.
9218 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9219 Set new component TYPE_SPECIFIC_FIELD (type).
9220 (gnat_aux_default): New constant.
9221 (allocate_gnat_aux_type): New function.
9222 (init_type): Add initialization the type-specific stuff for
9223 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9224 (print_gnat_stuff): New function.
9225 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9226 specific data. Adjust code that prints the contents of the
9227 type-specific union using the TYPE_SPECIFIC_FIELD value.
9228 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9229 the type cplus stuff for Ada types.
9230 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9231 Error out if these routines are called with an Ada type.
9232 (read_structure_type, read_array_type, read_subrange_type):
9233 Add call to set_descriptive_type.
9234 (set_die_type): Initialize the gnat-specific data if necessary.
9235 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9237 * ada-lang.c (decode_constrained_packed_array_type): Use
9238 decode_constrained_packed_array_type instead of doing a standard
9239 lookup to locate a parallel type.
9240 (find_parallel_type_by_descriptive_type): New function.
9241 (ada_find_parallel_type_with_name): New function.
9242 (ada_find_parallel_type): Reimplement using
9243 ada_find_parallel_type_with_name.
9244 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9245 to check if type has a cplus stuff.
9246 * linespec.c (total_number_of_methods): Likewise.
9247 * mdebugread.c (new_type): Likewise.
9249 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9251 * NEWS: Document the 0b binary number prefix parsing.
9253 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9255 * objfiles.c (objfile_relocate1): Change the return type to int.
9256 Describe the new return value. Return non-zero if data changed.
9257 (objfile_relocate): New variable changed. Set it. Call
9258 breakpoint_re_set depending on CHANGED.
9260 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9262 Implement binary numbers parsing.
9263 * c-exp.y (parse_number): New case 'b' and 'B'.
9265 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9266 Tristan Gingold <gingold@adacore.com>
9268 * solib.c (info_sharedlibrary_command): Replace
9269 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9270 objfile_has_symbols.
9272 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9274 * NEWS: Document the improvements made to the mips-irix port.
9276 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9278 Fix the documentation of valprint.c:value_print.
9279 * valprint.c (value_print): Update the function description to
9280 mention that the syntax of the output follows the current_language,
9283 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9285 Fix displacement of separate debug info files.
9286 * objfiles.c (objfile_relocate): Rename to ...
9287 (objfile_relocate1): ... here and make it static. Extend the comment.
9288 (objfile_relocate): New function.
9289 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9290 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9291 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9292 allocated using alloca.
9293 * symfile.c (copy_section_addr_info): Remove.
9294 (build_section_addr_info_from_objfile): Make it global. New variables
9295 addr_bit and mask, use them.
9296 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9297 (copy_section_addr_info): Remove.
9299 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9301 Signal unwinder for mips-irix N32.
9302 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9304 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9305 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
9306 (SIGCONTEXT_LO_OFF): New macros.
9307 (mips_irix_n32_tramp_frame_init): New function.
9308 (mips_irix_n32_tramp_frame): New static constant.
9309 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9311 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9313 Breakpoint in shared library does not work on mips-irix.
9314 * procfs.c: #include "observer.h".
9315 (procfs_inferior_created): New function, moving here the code
9316 which unsets the syssgi syscall-exit notifications.
9317 (procfs_create_inferior): Remove the code which unsets the syssgi
9318 syscall-exit notifications. It is too early to do this here.
9319 (_initialize_procfs): Attach the procfs_inferior_created observer.
9321 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9323 Wrong return convention for arrays (mips-irix).
9324 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9325 128 bits or smaller are returned the same way as structs
9326 and unions of the the same size.
9328 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9330 Cannot set the PC on mips-irix.
9331 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9332 register number, no the cooked one.
9334 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9336 Error while loading core file on mips-irix.
9337 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9338 if debugging from a core file.
9340 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9342 GDB hangs when attaching to process on mips-irix.
9343 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9344 attaching to a process.
9346 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9348 Use the correct breakpoint instruction on mips-irix.
9349 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9350 containing the correct breakpoint instruction to use on mips-irix.
9351 Use it when the osabi is GDB_OSABI_IRIX.
9353 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9355 -Wunused warning in procfs.c (mips-irix only).
9356 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9357 throughout instead of using praddset and prdelset respectively.
9359 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9361 GDB crash while stepping into function.
9362 * infrun.c (handle_inferior_event): Refetch the current frame
9363 after handling what.main_action, in case that pointer became
9366 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9368 Fix build failure of solaris-hosted cross debuggers.
9369 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9371 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
9373 Fix build failure on sparc-solaris.
9374 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9376 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9378 Move some symfile code into subroutines.
9379 * symfile.h (relative_addr_info_to_section_offsets)
9380 (addr_info_make_relative): New prototypes.
9381 * symfile.c (default_symfile_offsets): Move a part to ...
9382 (relative_addr_info_to_section_offsets): ... this new function.
9383 (default_symfile_offsets): Call it.
9384 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9386 (addr_info_make_relative): ... this new function.
9388 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9390 Add from_tty to solib_create_inferior_hook.
9391 * infcmd.c (post_create_inferior): Move solib_add after
9392 solib_create_inferior_hook. Pass from_tty to
9393 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9394 0 from_tty and comment why.
9395 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9396 * linux-nat.c (linux_child_follow_fork): Likewise.
9397 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9398 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9400 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9401 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9402 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9403 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9404 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9405 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9406 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9407 Pass it to svr4_so_ops.solib_create_inferior_hook.
9408 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9410 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9412 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9414 * solib-target.c (solib_target_solib_create_inferior_hook): New
9416 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9417 it to ops->solib_create_inferior_hook.
9418 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9419 Move solib_add after solib_create_inferior_hook, call it now with
9420 from_tty as 0. New comment there.
9421 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9422 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9425 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9428 * infrun.c (handle_inferior_event): Use get_thread_regcache
9429 with events ptid, not get_current_regcache.
9431 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9433 GDB crash with empty executable name (MinGW).
9434 * source.c (openp): Add assert that parameter string is not NULL.
9435 if parameter string is an empty string, then return with a failure
9438 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9440 Get rid of support for VAX Floats.
9441 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9442 (ada_vax_float_print_function): Delete.
9443 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9444 (ada_vax_float_print_function): Delete.
9445 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9446 (ada_print_type): Remove support for VAX floats.
9447 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9449 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9451 * stabsread.c (read_args): Handle zero arguments.
9453 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9455 Cannot find in-tree libiconv.a after reconfigure.
9456 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9457 that we can use, then cache the path to this archive.
9458 * configure: Regenerate.
9460 2010-01-07 Stan Shebs <stan@codesourcery.com>
9462 Make tracepoint operations go through target vector.
9463 * target.h (enum trace_find_type): New enum.
9464 (struct target_ops): New fields to_trace_init,
9465 to_download_tracepoint, to_download_trace_state_variable,
9466 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9467 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9468 to_set_disconnected_tracing.
9469 (target_trace_init): New macro.
9470 (target_download_tracepoint): New macro.
9471 (target_download_trace_state_variable): New macro.
9472 (target_trace_start): New macro.
9473 (target_trace_set_readonly_regions): New macro.
9474 (target_get_trace_status): New macro.
9475 (target_trace_stop): New macro.
9476 (target_trace_find): New macro.
9477 (target_get_trace_state_variable_value): New macro.
9478 (target_set_disconnected_tracing): New macro.
9479 * target.c (update_current_target): Inherit and set defaults for
9480 tracepoint operations.
9481 * tracepoint.c (default_collect): Make globally visible.
9482 (target_is_remote): Remove, along with all calls.
9483 (tvariables_info): Call target_get_trace_state_variable_value.
9484 (remote_set_transparent_ranges): Remove.
9485 (trace_start_command): Call target_trace_init,
9486 target_download_tracepoint, etc.
9487 (download_tracepoint): Remove.
9488 (trace_stop_command): Simplify.
9489 (stop_tracing): Call target_trace_stop.
9490 (get_trace_status): Call target_get_trace_status.
9491 (trace_status_command): Add case for targets that cannot trace.
9492 (finish_tfind_command): Change to take numerical arguments, call
9494 (trace_find_command): Update call to finish_tfind_command.
9495 (trace_find_pc_command): Ditto.
9496 (trace_find_tracepoint_command): Ditto.
9497 (trace_find_line_command): Ditto.
9498 (trace_find_range_command): Ditto.
9499 (trace_find_outside_command): Ditto.
9500 (set_disconnected_tracing_value): Call
9501 target_set_disconnected_tracing.
9502 * remote.c: Add protocol encoding bits from tracepoint.c.
9503 (trace_error): Move from tracepoint.c.
9504 (remote_get_noisy_reply): Ditto.
9505 (free_actions_list_cleanup_wrapper): Ditto.
9506 (free_actions_list): Ditto.
9507 (remote_trace_init): New function.
9508 (remote_download_tracepoint): New function.
9509 (remote_download_trace_state_variable): New function.
9510 (remote_trace_set_readonly_regions): New function.
9511 (remote_trace_start): New function.
9512 (remote_get_trace_status): New function.
9513 (remote_trace_stop): New function.
9514 (remote_trace_find): New function.
9515 (remote_download_trace_state_variable): New function.
9516 (remote_set_disconnected_tracing): New function.
9517 (init_remote_ops): Add tracepoint operations.
9519 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9521 2010-01-07 Tristan Gingold <gingold@adacore.com>
9523 * symfile.c (build_section_addr_info_from_objfile): New function.
9524 (symbol_file_add_separate): Don't use offsets from objfile but
9527 2010-01-06 Stan Shebs <stan@codesourcery.com>
9529 Support disconnected tracing.
9530 * infcmd.c (detach_command): Ask whether to stop tracing.
9531 * cli/cli-cmds.c (quit_command): Ditto.
9532 * breakpoint.h (struct breakpoint): New field number_on_target.
9533 * breakpoint.c (create_tracepoint_from_upload): New function.
9534 (get_tracepoint_by_number_on_target): New function.
9535 * remote.c (struct remote): New field disconnected_tracing.
9536 (remote_disconnected_tracing_feature): New function.
9537 (remote_protocol_features): Add DisconnectedTracing.
9538 (struct uploaded_tp): New struct.
9539 (uploaded_tps): New global.
9540 (get_uploaded_tp): New function.
9541 (find_matching_tracepoint): New function.
9542 (remote_get_tracing_state): New function.
9543 (remote_start_remote): Call it.
9544 * tracepoint.c (disconnected_tracing): New global.
9545 (trace_start_command): Initialize number_on_target.
9546 (stop_tracing): New function, split out from...
9547 (trace_stop_command): Call stop_tracing.
9548 (get_trace_status): New function, split out from...
9549 (trace_status_command): Call get_trace_status, add info on
9550 disconnection behavior.
9551 (disconnect_or_stop_tracing): New function.
9552 (finish_tfind_command): Translate from number on target.
9553 (trace_find_tracepoint_command): Translate to number on target.
9554 (send_disconnected_tracing_value): New function.
9555 (set_disconnected_tracing): New function.
9556 (_initialize_tracepoint): Add disconnected-tracing variable.
9557 * NEWS: Mention disconnected tracing.
9559 2010-01-06 Tristan Gingold <gingold@adacore.com>
9561 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9562 parameter to main_objfile. Iterate on all separate debug objfiles.
9563 * symfile.h (symbol_file_add_separate)
9564 (find_separate_debug_file_by_debuglink): Remove parameter names.
9565 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9566 (reread_symbols): Use free_objfile_separate_debug.
9567 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9569 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9570 (free_objfile_separate_debug): New prototypes.
9571 * objfiles.c (objfile_separate_debug_iterate): New function.
9572 (add_separate_debug_objfile, free_objfile_separate_debug): New
9574 (free_objfile): Use free_objfile_separate_debug. Adjust for
9575 multiple separate debug objfile.
9576 (objfile_has_symbols): Adjust comment. Iterate on all separate
9578 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9580 (lookup_minimal_symbol_text): Ditto.
9581 (lookup_minimal_symbol_by_pc_name): Ditto.
9582 (lookup_minimal_symbol_solib_trampoline): Ditto.
9583 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9586 2010-01-05 Stan Shebs <stan@codesourcery.com>
9588 Add fast tracepoints.
9589 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9590 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9591 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9592 * breakpoint.c (tracepoint_type): New function.
9593 (ALL_TRACEPOINTS): Use it.
9594 (should_be_inserted): Ditto.
9595 (bpstat_check_location): Ditto.
9596 (print_one_breakpoint_location): Ditto.
9597 (user_settable_breakpoint): Ditto.
9598 (set_breakpoint_location_function): Ditto.
9599 (disable_breakpoints_in_shlibs): Ditto.
9600 (delete_trace_command): Ditto.
9601 (print_it_typical): Add bp_fast_tracepoint case.
9602 (bpstat_what): Ditto.
9603 (print_one_breakpoint_location): Ditto.
9604 (allocate_bp_location): Ditto.
9606 (breakpoint_re_set_one): Ditto.
9607 (disable_command): Ditto.
9608 (enable_command): Ditto.
9609 (check_fast_tracepoint_sals): New function.
9610 (break_command_really): Call it.
9611 (ftrace_command): New function.
9612 (_initialize_breakpoint): Add ftrace command.
9613 * gdbarch.sh (fast_tracepoint_valid_at): New.
9614 * gdbarch.h, gdbarch.c: Regenerate.
9615 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9616 (i386_gdbarch_init): Use it.
9617 * remote.c (struct remote_state): New field fast_tracepoints.
9618 (PACKET_FastTracepoints): New packet config type.
9619 (remote_fast_tracepoint_feature): New function.
9620 (remote_protocol_features): Add FastTracepoints.
9621 (remote_supports_fast_tracepoints): New function.
9622 (_initialize_remote): Add FastTracepoints.
9623 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9624 * NEWS: Mention fast tracepoints.
9626 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9628 * gdb-gdb.py: New file.
9630 2010-01-05 Michael Snyder <msnyder@vmware.com>
9632 * infrun.c (handle_inferior_event): Fix typo in comment.
9634 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9636 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9638 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9640 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
9642 (s390-linux32-expedite): Define.
9643 (s390-linux64-expedite): Define.
9644 (s390x-linux64-expedite): Define.
9645 * features/s390-acr.xml: New file.
9646 * features/s390-fpr.xml: New file.
9647 * features/s390-core32.xml: New file.
9648 * features/s390-core64.xml: New file.
9649 * features/s390x-core64.xml: New file.
9650 * features/s390-linux32.xml: New file.
9651 * features/s390-linux64.xml: New file.
9652 * features/s390x-linux64.xml: New file.
9653 * features/s390-linux32.c: New generated file.
9654 * features/s390-linux64.c: New generated file.
9655 * features/s390x-linux64.c: New generated file.
9657 * regformats/s390-linux32.dat: New generated file.
9658 * regformats/s390-linux64.dat: New generated file.
9659 * regformats/s390x-linux64.dat: New generated file.
9660 * regformats/reg-s390.dat: Remove.
9661 * regformats/reg-s390x.dat: Remove.
9663 * s390-nat.c: Include "auxv.h" and <elf.h>.
9664 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9665 (s390_target_wordsize): New function.
9666 (s390_auxv_parse): Likewise.
9667 (s390_get_hwcap): Likewise.
9668 (s390_read_description): Likewise.
9669 (_initialize_s390_nat): Install s390_auxv_parse and
9670 s390_read_description.
9672 * s390-tdep.c: Include "features/s390-linux32.c",
9673 "features/s390-linux64.c", and "features/s390x-linux64.c".
9674 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9675 (s390_register_call_saved): New function.
9676 (s390_register_name): Remove.
9677 (s390_register_type): Remove.
9678 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9679 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9680 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9681 (s390_pseudo_register_name): New function.
9682 (s390_pseudo_register_type): New function.
9683 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9684 Handle full GPR pesudos and varying pseudo register numbers.
9685 (s390_pseudo_register_write): Likewise
9686 (s390x_pseudo_register_read): Remove.
9687 (s390x_pseudo_register_write): Likewise.
9688 (s390_register_group): Remove.
9689 (s390_pseudo_register_group): New function.
9690 (s390_regmap_gregset): Add GPR upper halves.
9691 (s390x_regmap_gregset): Likewise.
9692 (s390_regmap_fpregset): Likewise.
9693 (s390_regmap_upper): New global variable.
9694 (s390_upper_regset): New global variable.
9695 (s390_upper_regset_sections): New global variable.
9696 (s390_regset_from_core_section): Handle GPR upper halves.
9697 (s390_core_read_description): New function.
9698 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9699 register information. Handle varying pseudo register numbers.
9700 (s390_backchain_frame_unwind_cache): Likewise.
9701 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9702 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9703 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9704 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9705 Handle varying pseudo register numbers.
9706 (s390_unwind_pc): Handle varying pseudo register numbers.
9707 (s390_dwarf2_prev_register): New function.
9708 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9709 register information. Handle varying pseudo register numbers.
9710 Install s390_dwarf2_prev_register to unwind full GPRs.
9711 (s390_gdbarch_init): Handle target descriptions. Assign varying
9712 pseudo register numbers. Install s390_adjust_frame_regnum.
9713 (_initialize_s390_tdep): Initialize target descriptions.
9715 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9716 (S390_NUM_REGS): Redefine to include upper half registers.
9717 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9718 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9719 (tdesc_s390_linux32): Add declaration.
9720 (tdesc_s390_linux64): Likewise.
9721 (tdesc_s390x_linux64): Likewise.
9723 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9725 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9726 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9727 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9728 (ppc_linux_vmx_regset_sections): Likewise.
9729 (ppc_linux_fp_regset_sections): Likewise.
9731 * corelow.c (get_core_register_section): Constify arguments.
9732 (get_core_registers): Use gdbarch_core_regset_sections instead
9733 of hard-coded platform-specific register section names.
9735 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9737 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
9738 a register, assume the least-significant part is used.
9739 (write_pieced_value): Likewise.
9741 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9743 * printcmd.c: Include "arch-utils.h".
9744 (do_one_display): Re-parse expression if current architecture changed.
9746 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9747 Joel Brobecker <brobecker@adacore.com>
9749 * gdbtypes.c (check_typedef): New comment on type length.
9750 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9751 comment on type length.
9752 (value_primitive_field): Keep the original TYPE value, new comment.
9754 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9756 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9757 p_start. Change != comparisons to > and < comparisons.
9759 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9761 * cli/cli-script.c (process_next_line): Check P2 overrun.
9763 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9765 Update the copyright hearder to add year 2010 for most GDB files.
9767 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9769 Fix build failure in inf-ptrace.c.
9770 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9772 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9774 * top.c (print_gdb_version): Update copyright year.
9776 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
9778 Fix break *FUN'address thread NUM.
9779 * ada-lex.l (task): Expand rule to also match the thread keyword.
9781 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9783 Fix break *FUN'address task NUM.
9784 * ada-lex.l (task): New rule.
9785 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9786 been built before using it.
9788 For older changes see ChangeLog-2009.
9794 version-control: never