gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * printcmd.c (display_uses_solib_p): Remove variable section. Access
4 objfile via SYMBOL_SYMTAB.
5
6 2010-01-26 Tom Tromey <tromey@redhat.com>
7
8 PR exp/7643:
9 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10 coerce_array on result.
11
12 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
13
14 * cp-namespace.c (cp_lookup_symbol_namespace): Added
15 search_parent argument.
16 (cp_add_using): Initialize 'searched' field.
17 (reset_directive_searched): New function.
18 * cp-support.h: Add 'searched' field to using_direct struct.
19 (cp_lookup_symbol_imports): Ditto.
20 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
21 Perform recursive search.
22 Implement non parent search.
23 * valops.c (value_maybe_namespace_elt): Updated.
24
25 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
26
27 PR gdb/10929:
28 * dwarf2read.c (read_lexical_block_scope): Create blocks for
29 scopes which contain using directives even if they contain no
30 declarations.
31 * symtab.c (lookup_symbol_aux): Pass lowest level block to
32 la_lookup_symbol_nonlocal.
33 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
34 cp_lookup_symbol_namespace.
35 (cp_lookup_symbol_namespace): Perform an import lookup at every
36 block level.
37 (cp_lookup_symbol_imports): New function.
38 (cp_lookup_symbol_in_namespace): New function.
39
40 2010-01-25 Tom Tromey <tromey@redhat.com>
41
42 PR gdb/11049:
43 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
44 result.
45
46 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
47
48 * configure.ac: Only use host_os part when disabling TUI on osf.
49 Use test to check variables, prefix strings with x.
50 * configure: Regenerate.
51
52 * solib-osf.c (osf_current_sos): Initialize tail.
53
54 2010-01-25 gingold <gingold@adacore.com>
55
56 * windows-nat.c (windows_continue): Use %x to print thread id.
57 (get_windows_debug_event): Ditto.
58
59 2010-01-22 Tom Tromey <tromey@redhat.com>
60
61 PR symtab/11199:
62 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
63 type and arguments. Use smash_to_methodptr_type.
64 (read_structure_type): Call quirk_gcc_member_function_pointer
65 later.
66 * gdbtypes.h (smash_to_methodptr_type): Declare.
67 * gdbtypes.c (smash_to_methodptr_type): New function.
68 (lookup_methodptr_type): Use it.
69
70 2010-01-21 Tom Tromey <tromey@redhat.com>
71
72 PR symtab/11198:
73 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
74 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
75 * glibc-tdep.c (find_minsym_and_objfile): Remove.
76 (glibc_skip_solib_resolver): Use
77 lookup_minimal_symbol_and_objfile.
78
79 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
80
81 * inflow.c (check_syscall): Guard by #if clause for GO32 and
82 WIN32 targets.
83
84 2010-01-20 Tom Tromey <tromey@redhat.com>
85
86 PR backtrace/10770:
87 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
88 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
89 * dwarf2expr.c (new_dwarf_expr_context): Allocate
90 dwarf_stack_values, not CORE_ADDRs.
91 (execute_stack_op): Change DW_OP_div and comparison operators to
92 use signed operands.
93
94 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
95
96 Per-inferior args and tty and environment.
97
98 * infcmd.c (inferior_args): Rename to ...
99 (inferior_args_scratch): ... this.
100 (inferior_io_terminal): Rename to ...
101 (inferior_io_terminal_scratch): ... this.
102 (inferior_argc, inferior_argv): Remove.
103 (set_inferior_io_terminal, get_inferior_io_terminal): Store
104 inside current_inferior().
105 (set_inferior_tty_command, show_inferior_tty_command): New.
106 (get_inferior_args, set_inferior_args): Store inside
107 current_inferior().
108 (notice_args_set): Likewise and rename to...
109 (set_args_command): ... this.
110 (set_inferior_args_vector): Likewise.
111 (notice_args_read): Rename to...
112 (show_args_command): ...new.
113 (tty_command): Remove.
114 (run_command_1): Don't free old args, as they are freed by
115 set_inferior_arg now.
116 (run_no_args_command): Likewise.
117 (inferior_environ): Remove.
118 (run_command_1): Use environment of the current inferior.
119 (environment_info, set_environment_command)
120 (unset_environment_command, path_info, path_command): Likewise.
121 (_initialize_infcmd): Adjust for function and variable renames.
122 Do not init inferior_environ.
123 * inferior.h (set_inferior_arg): Adjust prototype.
124 (struct inferior): New fields args, argc, argv, terminal, environment.
125 (inferior_environ): Remove declaration.
126 * inferior.c (free_inferior): Free new fields.
127 (add_inferior_silent): Initialize 'environment' field.
128 * main.c (captured_main): Set arguments only after the initial
129 inferior has been created. Set set_inferior_io_terminal,
130 not tty_command.
131 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
132 inferior.
133 (_initialize_mi_cmd_env): Adjust for disappearance of global
134 inferior_environ.
135 * solib.c (solib_find): Use environment of the current inferior.
136
137 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
138
139 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
140 HAVE_PYTHON.
141 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
142
143 2010-01-20 Joel Brobecker <brobecker@adacore.com>
144
145 Get rid of ada-lang.c:function_name_from_pc.
146 * ada-lang.c: Add "stack.h" #include.
147 (function_name_from_pc): Delete.
148 (is_known_support_routine): Replace call to function_name_from_pc
149 by call to find_frame_funname.
150 (ada_unhandled_exception_name_addr_from_raise): Likewise.
151
152 2010-01-19 Tom Tromey <tromey@redhat.com>
153
154 PR c++/11026:
155 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
156 objfile obstack.
157
158 2010-01-19 Tom Tromey <tromey@redhat.com>
159
160 * top.c (stop_sig, float_handler, do_nothing): Remove.
161
162 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
163
164 * breakpoint.c (watchpoint_check): Check the call
165 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
166 Extend the comment.
167 * config/djgpp/fnchange.lst: Add translations for
168 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
169 watchpoint-cond-gone-stripped.c.
170
171 2010-01-19 Tom Tromey <tromey@redhat.com>
172
173 PR c++/8000:
174 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
175 into parent scope, and enumerator into grandparent scope.
176
177 2010-01-19 Joel Brobecker <brobecker@adacore.com>
178
179 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
180
181 2010-01-19 Joel Brobecker <brobecker@adacore.com>
182
183 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
184 i[34567]86-*-solaris2.1[0-9]*.
185 * configure.tgt: Likewise.
186
187 2010-01-19 Joel Brobecker <brobecker@adacore.com>
188
189 * NEWS: Document the source command enhancement allowing it
190 to load Python scripts. Document the "set/show script-extension"
191 commands.
192
193 2010-01-19 Joel Brobecker <brobecker@adacore.com>
194
195 Add -Wunused-function to compile flags.
196 * configure.ac: Add -Wunused-function to build_warnings.
197 * configure: Regenerate.
198
199 2010-01-19 Joel Brobecker <brobecker@adacore.com>
200
201 "delete" ada-lex.c:input function, not used.
202 * ada-lex.l: #define YY_NO_INPUT.
203
204 2010-01-19 Joel Brobecker <brobecker@adacore.com>
205
206 Delete free_named_symtabs and associated cleanup.
207 * symfile.h (free_named_symtabs): Delete declaration.
208 * symfile.c: Remove some commented out code (clear_symtab_users_once).
209 (cashier_psymtab): Comment function out.
210 Delete declaration.
211 (free_named_symtabs): Delete.
212 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
213 * dbxread.c (end_psymtab): Likewise.
214 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
215 * exec.c (exec_close_1): Ditto.
216 * xcoffread.c (xcoff_end_psymtab): Likewise.
217
218 2010-01-19 Joel Brobecker <brobecker@adacore.com>
219
220 * stack.c (print_block_frame_labels): Comment function out.
221
222 2010-01-19 Joel Brobecker <brobecker@adacore.com>
223
224 Delete unused or undefined functions.
225 * breakpoint.c (ep_parse_optional_filename): Delete.
226 * dcache.c (dcache_write_line): Remove declaration.
227 * infrun.c (build_infrun): Remove declaration.
228 * tracepoint.c (tracepoint_save_command): Remove declaration.
229 * linux-nat.c (init_lwp_list): Delete. No longer used.
230 * event-loop.c (check_async_signal_handlers): Delete declaration.
231 * infrun.c (init_execution_control_state): Delete.
232 (proceed): Update comment to avoid mentioning
233 init_execution_control_state.
234 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
235 * ada-lang.c (ada_to_static_fixed_value): Delete.
236 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
237 * cp-namespace.c (cp_copy_usings): Delete.
238 * xml-syscall.c (xml_number_of_syscalls): Delete.
239 * progspace.c (find_program_space_by_num): Delete.
240 * inflow.c (handle_sigio): Delete declaration.
241 * hppa-tdep.c (hppa_alignof): Delete.
242 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
243 (mipsnbsd_core_osabi_sniffer): Delete.
244
245 2010-01-18 Tom Tromey <tromey@redhat.com>
246
247 PR c++/9680:
248 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
249 (CONST_CAST): New tokens.
250 (exp): Add new productions.
251 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
252 reinterpret_cast.
253 (is_cast_operator): New function.
254 (yylex): Handle cast operators specially.
255 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
256 UNOP_REINTERPRET_CAST>: New cases.
257 * expprint.c (print_subexp_standard): Likewise.
258 (op_name_standard): Likewise.
259 (dump_subexp_body_standard): Likewise.
260 * parse.c (operator_length_standard): Likewise.
261 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
262 UNOP_REINTERPRET_CAST.
263 * gdbtypes.c (class_types_same_p): New function.
264 (is_ancestor): Use it.
265 (is_public_ancestor): New function.
266 (is_unique_ancestor_worker): Likewise.
267 (is_unique_ancestor): Likewise.
268 * gdbtypes.h (class_types_same_p, is_public_ancestor)
269 (is_unique_ancestor): Declare.
270 * valops.c (value_reinterpret_cast): New function.
271 (dynamic_cast_check_1): Likewise.
272 (dynamic_cast_check_2): Likewise.
273 (value_dynamic_cast): Likewise.
274 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
275
276 2010-01-18 Joel Brobecker <brobecker@adacore.com>
277
278 Fix build failure when building without Python support.
279 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
280 is not defined.
281
282 2010-01-18 Joel Brobecker <brobecker@adacore.com>
283
284 Use XVS field type instead of doing a parallel lookup.
285 * ada-lang.c (ada_get_base_type): Follow the XVS field type
286 if it is a reference type instead of doing a type lookup using
287 the XVS field name.
288
289 2010-01-18 Joel Brobecker <brobecker@adacore.com>
290
291 Trust PAD types instead of using PAD___XVS.
292 * ada-lang.c (trust_pad_over_xvs): New static variable.
293 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
294 parallel XVS type, follow the XVS type instead of the PAD type.
295 (unwrap_value): Make sure that there is no parallel XVE type
296 before returning the value as is.
297 (set_ada_list, show_ada_list): New static variables.
298 (set_ada_command, show_ada_command): New functions.
299 (_initialize_ada_language): Add new "set/show ada" prefix commands.
300 Add new "set/show ada trust-PAD-over-XVS" setting.
301
302 2010-01-18 Tom Tromey <tromey@redhat.com>
303 Thiago Jung Bauermann <bauerman@br.ibm.com>
304
305 Allow "source" to load python scripts.
306 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
307 * python/python.c (source_python_script): New function.
308 * python/python.h (source_python_script): Add declaration.
309 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
310 (script_ext_off, script_ext_soft, script_ext_strict)
311 (script_ext_enums, script_ext_mode): New static constants.
312 (show_script_ext_mode, find_and_open_script): New functions.
313 (source_script): Enhance to handle Python scripts.
314 (init_cli_cmds): Add set/show script-extension commands.
315
316 2010-01-16 Stan Shebs <stan@codesourcery.com>
317
318 * tracepoint.h (struct trace_status): Use unsigned long long
319 instead of size_t.
320 * tracepoint.c (trace_status_command): Fix printf directive.
321 (trace_save_command): Check fwrite returns, fix printf directive.
322 (trace_filename): New global.
323 (tfile_open): Set it, check read returns.
324 (tfile_close): Free trace_filename.
325 (tfile_get_traceframe_address): Check read returns.
326 (tfile_trace_find): Ditto.
327 (tfile_fetch_registers): Ditto.
328 (tfile_xfer_partial): Ditto.
329 (tfile_get_trace_state_variable_value): Ditto.
330
331 2010-01-15 Stan Shebs <stan@codesourcery.com>
332
333 Add trace file support.
334 * tracepoint.h (enum trace_stop_reason): New enum.
335 (struct trace_status): New struct.
336 (parse_trace_status): Declare.
337 (struct uploaded_tp): Move here from remote.c,
338 add fields for actions.
339 (struct uploaded_tsv): New struct.
340 * tracepoint.c (tfile_ops): New target vector.
341 (trace_fd): New global.
342 (tfile_open): New function.
343 (tfile_close): New function.
344 (tfile_files_info): New function.
345 (tfile_get_trace_status): New function.
346 (tfile_get_traceframe_address): New function.
347 (tfile_trace_find): New function.
348 (tfile_fetch_registers): New function.
349 (tfile_xfer_partial): New function.
350 (tfile_get_trace_state_variable_value): New function.
351 (init_tfile_ops): New function.
352 (_initialize_tracepoint): Call it, add tfile target.
353 (trace_status): New global.
354 (current_trace_status): New function.
355 (trace_running_p): Remove, change all users to get from
356 current_trace_status()->running.
357 (get_trace_status): Remove.
358 (trace_status_command): Call target_get_trace_status directly,
359 report more detail including tracing stop reasons.
360 (trace_find_command): Always allow tfind on a file.
361 (trace_find_pc_command): Ditto.
362 (trace_find_tracepoint_command): Ditto.
363 (trace_find_line_command): Ditto.
364 (trace_find_range_command): Ditto.
365 (trace_find_outside_command): Ditto.
366 (trace_frames_offset, cur_offset): Declare as off_t.
367 (trace_regblock_size): Rename from reg_size, update users.
368 (parse_trace_status): New function.
369 (tfile_interp_line): New function.
370 (disconnect_or_stop_tracing): Ensure current trace
371 status before asking what to do.
372 (stop_reason_names): New global.
373 (trace_save_command): New command.
374 (get_uploaded_tp): Move here from remote.c.
375 (find_matching_tracepoint): Ditto.
376 (merge_uploaded_tracepoints): New function.
377 (parse_trace_status): Use stop_reason_names.
378 (_initialize_tracepoint): Define tsave command.
379 * target.h (target_ops): New fields to_save_trace_data,
380 to_upload_tracepoints, to_upload_trace_state_variables,
381 to_get_raw_trace_data, change to_get_trace_status
382 to take a pointer to a status struct.
383 (target_save_trace_data): New macro.
384 (target_upload_tracepoints): New macro.
385 (target_upload_trace_state_variables): New macro.
386 (target_get_raw_trace_data): New macro.
387 * target.c (update_current_target): Add new methods, change
388 signature of to_get_trace_status.
389 * remote.c (hex2bin): Make globally visible.
390 (bin2hex): Ditto.
391 (remote_download_trace_state_variable): Download name also.
392 (remote_get_trace_status): Update parameter, use
393 parse_trace_status.
394 (remote_save_trace_data): New function.
395 (remote_upload_tracepoints): New function.
396 (remote_upload_trace_state_variables): New function.
397 (remote_get_raw_trace_data): New function.
398 (remote_start_remote): Use them.
399 (_initialize_remote_ops): Add operations.
400 * ax-gdb.c: Include breakpoint.h.
401 * breakpoint.c (create_tracepoint_from_upload): Use
402 break_command_really, return tracepoint, warn about unimplemented
403 parts.
404 * NEWS: Mention trace file addition.
405
406 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
407
408 Fix compilation warning on gcc-3.4.
409 * exec.c (print_section_info): Move the `displacement' variable
410 initialization to its declaration.
411
412 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
415 comparison.
416
417 2010-01-15 Eric Botcazou <botcazou@adacore.com>
418
419 "info tasks" broken by typedefs in ATCB type definitions.
420 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
421 ada_check_typedef before retrieving the length of the type for
422 regular fields.
423
424 2010-01-15 Joel Brobecker <brobecker@adacore.com>
425
426 Do not use name-based lookup for unconstrained packed arrays.
427 * ada-lang.c (find_parallel_type_by_descriptive_type):
428 Limit the fallback to name-based lookups to the case where
429 the type is a constrained packed array.
430
431 2010-01-15 Joel Brobecker <brobecker@adacore.com>
432
433 Enhance gdb-gdb.py to handle main_type.type_specific.
434 * gdb-gdb.py: Print the type-specific part of struct main_type.
435
436 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
437
438 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
439 * configure: Regenerate.
440 * config.in: Regenerate.
441 * utils.c: Include sys/resource.h.
442 (dump_core, can_dump_core): New.
443 (internal_vproblem): Update the comment. Check can_dump_core while
444 setting dump_core_p. Replace two abort calls by dump_core calls.
445
446 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
447 Eli Zaretskii <eliz@gnu.org>
448
449 * NEWS: Document the PIE support.
450
451 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
452
453 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
454 (check_is_pie_binary, _initialize_linux_tdep): Remove.
455
456 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
457
458 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
459 Replace exec_entry_point call by bfd_get_start_address.
460
461 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 Support Valgrind attachments broken by the PIE support.
464 * auxv.c: Include gdbcore.h.
465 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
466 parameters ops, object and annex. Remove their assertions.
467 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
468 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
469 (memory_xfer_auxv): ... here.
470 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
471 memory_xfer_auxv.
472 * procfs.c (procfs_xfer_partial): Likewise.
473 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
474 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
475 (svr4_solib_create_inferior_hook): Conditionalize the
476 svr4_relocate_main_executable call.
477
478 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
479
480 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
481 target_section. Find SECT in current_target_sections, gdb_assert it.
482 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
483 New variable abfd.
484 * symtab.c (lookup_objfile_from_block): Return the binary file instead
485 of separate debug info file.
486
487 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
488
489 Support PIEs with no symfile_objfile.
490 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
491 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
492
493 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
494
495 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
496 code part to ...
497 (svr4_static_exec_displacement): ... a new function.
498 (svr4_exec_displacement): New function.
499 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
500 new_offsets using alloca now. Remove variable old_chain and changed.
501 Call objfile_relocate unconditionally now.
502
503 2010-01-14 Doug Evans <dje@google.com>
504
505 * gdbtypes.c (arch_flags_type): Fix comment.
506 * gdbtypes.h (arch_composite_type): Fix comment.
507
508 2009-01-14 Tristan Gingold <gingold@adacore.com>
509
510 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
511 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
512 to symbol_file_add_from_bfd. Add OSO as separate objfile.
513 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
514 macho_add_oso_symfile.
515 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
516
517 2010-01-14 Joel Brobecker <brobecker@adacore.com>
518
519 Tru64: Dead threads are never deleted.
520 * dec-thread.c (dec_thread_ptid_is_alive): New function.
521 (dec_thread_count_gdb_threads): Fix counter increment.
522 (dec_thread_add_gdb_thread): Fix *listp increment.
523 (resync_thread_list): Fix bug in deletion of dead threads that
524 caused all threads to be deleted, instead of just the dead ones.
525
526 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
527
528 PR python/10705
529
530 * python/python-internal.h: Add lazy_string_object_type
531 definition.
532 (create_lazy_string_object, gdbpy_initialize_lazy_string)
533 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
534 * python/py-value.c (valpy_lazy_string): New function.
535 (convert_value_from_python): Add lazy string conversion.
536 * python/py-prettyprint.c (pretty_print_one_value): Check if
537 return is also a lazy string.
538 (print_string_repr): Add lazy string printing branch.
539 (print_children): Likewise.
540 * python/py-lazy-string.c: New file. Implement lazy strings.
541 * python/python.c (_initialize_python): Call
542 gdbpy_initialize_lazy_string.
543 * varobj.c (value_get_print_value): Add lazy string printing
544 branch. Account for encoding.
545 * c-lang.c (c_printstr): Account for new encoding argument. If
546 encoding is NULL, find encoding suited for type, otherwise use
547 user encoding.
548 * language.h (language_defn): Add encoding argument.
549 (LA_PRINT_STRING): Likewise.
550 * language.c (unk_lang_printstr): Update to reflect new encoding
551 argument to language_defn.
552 * ada-lang.h (ada_printstr): Likewise.
553 * c-lang.h (c_printstr): Likewise.
554 * p-lang.h (pascal_printstr);
555 * f-lang.c (f_printstr): Likewise.
556 * m2-lang.c (m2_printstr): Likewise.
557 * objc-lang.c (objc_printstr): Likewise.
558 * p-lang.c (pascal_printstr): Likewise.
559 * scm-lang.c (scm_printstr): Likewise.
560 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
561 encoding argument.
562 * ada-valprint.c (ada_printstr): Likewise.
563 * f-valprint.c (f_val_print): Likewise
564 * m2-valprint.c (m2_val_print): Likewise.
565 * p-valprint.c (pascal_val_print): Likewise.
566 * expprint.c (print_subexp_standard): Likewise.
567 * valprint.c (val_print_string): Likewise.
568 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
569 (SUBDIR_PYTHON_SRCS): Likewise.
570 (py-lazy-string.o): New rule.
571
572 2010-01-13 Doug Evans <dje@google.com>
573
574 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
575 uninitialized" warning from gcc on local `tree'.
576
577 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
578
579 Implement core awareness.
580
581 * bcache.c (compare_ints): Remove
582 (print_percentage): Use compare_positive_ints.
583 * defs.h (compare_positive_ints): Declare.
584 * linux-nat.h (struct lin_lwp): New field core.
585 (linux_nat_core_of_thread_1): Declare.
586 * linux-nat.c (add_lwp): Init the 'core' field.
587 (linux_nat_wait_1): Record the core.
588 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
589 (linux_nat_add_target): Register the above.
590 * linux-thread-db.c (update_thread_core): New.
591 (thread_db_find_new_threads): Update core information for
592 every thread.
593 * remote.c (struct private_thread_info): New.
594 (free_private_thread_info, demand_private_info): New.
595 (PACKET_qXfer_threads, use_osdata_threads): New.
596 (struct thread_item, threads_parsing_context
597 (start_thread, end_thread, thread_attributes)
598 (thread_children, threads_children, threads_elements): New.
599 (remote_threads_info): Try qXfer:threads before anything
600 else.
601 (remote_protocol_packets): Register qXfer:threads.
602 (remote_open_1): Init use_osdata_threads.
603 (struct stop_reply): New field 'core'.
604 (remote_parse_stop_reply): Parse core number.
605 (process_stop_reply): Record core number.
606 (remote_xfer_partial): Handle qXfer:threads.
607 (remote_core_of_thread): New.
608 (init_remote_ops): Register remote_core_of_thread.
609 (_initialize_remote): Register qXfer:read.
610 * target.c (target_core_of_thread): New
611 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
612 (struct target_ops): New field to_core_of_threads.
613 (target_core_of_thread): Declare.
614 * gdbthread.h (struct thread_info): New field private_dtor.
615 * thread.c (print_thread_info): Report the core.
616 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
617 * utils.c (compare_positive_ints): New.
618 * features/threads.dtd: New.
619 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
620 * mi/mi-main.c (struct collect_cores_data, collect_cores)
621 (do_nothing, free_vector_of_osdata_items)
622 (splay_tree_int_comparator, free_splay_tree): New.
623 (print_one_inferior_data): Implemented printing of selected
624 inferiors. Collect and print cores.
625 (output_cores): New.
626 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
627 thread groups together with --available.
628
629 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
630
631 * configure: Regenerate (for _STRUCTURED_PROC).
632
633 2010-01-12 Joel Brobecker <brobecker@adacore.com>
634
635 Delete dead function.
636 * ada-lang.c (extract_string): Delete. No longer used.
637
638 2010-01-12 Joel Brobecker <brobecker@adacore.com>
639
640 Fix -Wunused warning in dec-thread.c.
641 * dec-thread.c (dec_thread_count_gdb_threads)
642 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
643
644 2010-01-12 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-valprint.c (ada_print_floating): Remove trailing space.
647
648 2010-01-12 Joel Brobecker <brobecker@adacore.com>
649
650 Add support for DW_AT_GNAT_descriptive_type.
651 * gdbtypes.h (enum type_specific_kind): New enum.
652 (struct main_type) [type_specific_field]: New component.
653 [type_specific]: Add new component "gnat_stuff".
654 (struct gnat_aux_type): New type.
655 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
656 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
657 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
658 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
659 (TYPE_SPECIFIC_FIELD): New macros.
660 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
661 type does not hold any cplus-specific data.
662 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
663 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
664 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
665 cplus-specific data.
666 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
667 Set new component TYPE_SPECIFIC_FIELD (type).
668 (gnat_aux_default): New constant.
669 (allocate_gnat_aux_type): New function.
670 (init_type): Add initialization the type-specific stuff for
671 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
672 (print_gnat_stuff): New function.
673 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
674 specific data. Adjust code that prints the contents of the
675 type-specific union using the TYPE_SPECIFIC_FIELD value.
676 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
677 the type cplus stuff for Ada types.
678 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
679 Error out if these routines are called with an Ada type.
680 (read_structure_type, read_array_type, read_subrange_type):
681 Add call to set_descriptive_type.
682 (set_die_type): Initialize the gnat-specific data if necessary.
683 (need_gnat_info, die_descriptive_type, set_descriptive_type):
684 New functions.
685 * ada-lang.c (decode_constrained_packed_array_type): Use
686 decode_constrained_packed_array_type instead of doing a standard
687 lookup to locate a parallel type.
688 (find_parallel_type_by_descriptive_type): New function.
689 (ada_find_parallel_type_with_name): New function.
690 (ada_find_parallel_type): Reimplement using
691 ada_find_parallel_type_with_name.
692 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
693 to check if type has a cplus stuff.
694 * linespec.c (total_number_of_methods): Likewise.
695 * mdebugread.c (new_type): Likewise.
696
697 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
698
699 * NEWS: Document the 0b binary number prefix parsing.
700
701 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
702
703 * objfiles.c (objfile_relocate1): Change the return type to int.
704 Describe the new return value. Return non-zero if data changed.
705 (objfile_relocate): New variable changed. Set it. Call
706 breakpoint_re_set depending on CHANGED.
707
708 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
709
710 Implement binary numbers parsing.
711 * c-exp.y (parse_number): New case 'b' and 'B'.
712
713 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
714 Tristan Gingold <gingold@adacore.com>
715
716 * solib.c (info_sharedlibrary_command): Replace
717 objfile_has_partial_symbols and objfile_has_full_symbols calls by
718 objfile_has_symbols.
719
720 2010-01-10 Joel Brobecker <brobecker@adacore.com>
721
722 * NEWS: Document the improvements made to the mips-irix port.
723
724 2010-01-09 Joel Brobecker <brobecker@adacore.com>
725
726 Fix the documentation of valprint.c:value_print.
727 * valprint.c (value_print): Update the function description to
728 mention that the syntax of the output follows the current_language,
729 not necessarily C.
730
731 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
732
733 Fix displacement of separate debug info files.
734 * objfiles.c (objfile_relocate): Rename to ...
735 (objfile_relocate1): ... here and make it static. Extend the comment.
736 (objfile_relocate): New function.
737 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
738 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
739 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
740 allocated using alloca.
741 * symfile.c (copy_section_addr_info): Remove.
742 (build_section_addr_info_from_objfile): Make it global. New variables
743 addr_bit and mask, use them.
744 * symfile.h (build_section_addr_info_from_objfile): New prototype.
745 (copy_section_addr_info): Remove.
746
747 2010-01-09 Joel Brobecker <brobecker@adacore.com>
748
749 Signal unwinder for mips-irix N32.
750 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
751 tramp-frame.h.
752 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
753 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
754 (SIGCONTEXT_LO_OFF): New macros.
755 (mips_irix_n32_tramp_frame_init): New function.
756 (mips_irix_n32_tramp_frame): New static constant.
757 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
758
759 2010-01-09 Joel Brobecker <brobecker@adacore.com>
760
761 Breakpoint in shared library does not work on mips-irix.
762 * procfs.c: #include "observer.h".
763 (procfs_inferior_created): New function, moving here the code
764 which unsets the syssgi syscall-exit notifications.
765 (procfs_create_inferior): Remove the code which unsets the syssgi
766 syscall-exit notifications. It is too early to do this here.
767 (_initialize_procfs): Attach the procfs_inferior_created observer.
768
769 2010-01-09 Joel Brobecker <brobecker@adacore.com>
770
771 Wrong return convention for arrays (mips-irix).
772 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
773 128 bits or smaller are returned the same way as structs
774 and unions of the the same size.
775
776 2010-01-09 Joel Brobecker <brobecker@adacore.com>
777
778 Cannot set the PC on mips-irix.
779 * irix5-nat.c (fill_gregset): Check regno against the raw PC
780 register number, no the cooked one.
781
782 2010-01-09 Joel Brobecker <brobecker@adacore.com>
783
784 Error while loading core file on mips-irix.
785 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
786 if debugging from a core file.
787
788 2010-01-09 Joel Brobecker <brobecker@adacore.com>
789
790 GDB hangs when attaching to process on mips-irix.
791 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
792 attaching to a process.
793
794 2010-01-09 Joel Brobecker <brobecker@adacore.com>
795
796 Use the correct breakpoint instruction on mips-irix.
797 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
798 containing the correct breakpoint instruction to use on mips-irix.
799 Use it when the osabi is GDB_OSABI_IRIX.
800
801 2010-01-09 Joel Brobecker <brobecker@adacore.com>
802
803 -Wunused warning in procfs.c (mips-irix only).
804 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
805 throughout instead of using praddset and prdelset respectively.
806
807 2010-01-09 Joel Brobecker <brobecker@adacore.com>
808
809 GDB crash while stepping into function.
810 * infrun.c (handle_inferior_event): Refetch the current frame
811 after handling what.main_action, in case that pointer became
812 dangling.
813
814 2010-01-09 Joel Brobecker <brobecker@adacore.com>
815
816 Fix build failure of solaris-hosted cross debuggers.
817 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
818
819 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
820
821 Fix build failure on sparc-solaris.
822 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
823
824 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 Move some symfile code into subroutines.
827 * symfile.h (relative_addr_info_to_section_offsets)
828 (addr_info_make_relative): New prototypes.
829 * symfile.c (default_symfile_offsets): Move a part to ...
830 (relative_addr_info_to_section_offsets): ... this new function.
831 (default_symfile_offsets): Call it.
832 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
833 this part to ...
834 (addr_info_make_relative): ... this new function.
835
836 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
837
838 Add from_tty to solib_create_inferior_hook.
839 * infcmd.c (post_create_inferior): Move solib_add after
840 solib_create_inferior_hook. Pass from_tty to
841 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
842 0 from_tty and comment why.
843 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
844 * linux-nat.c (linux_child_follow_fork): Likewise.
845 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
846 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
847 from_tty.
848 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
849 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
850 * solib-null.c (null_solib_create_inferior_hook): Likewise.
851 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
852 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
853 * solib-som.c (som_solib_create_inferior_hook): Likewise.
854 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
855 Pass it to svr4_so_ops.solib_create_inferior_hook.
856 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
857 from_tty.
858 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
859 solib_add.
860 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
861 enable_break.
862 * solib-target.c (solib_target_solib_create_inferior_hook): New
863 parameter from_tty.
864 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
865 it to ops->solib_create_inferior_hook.
866 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
867 Move solib_add after solib_create_inferior_hook, call it now with
868 from_tty as 0. New comment there.
869 * solib.h (solib_create_inferior_hook): New parameter from_tty.
870 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
871 Likewise.
872
873 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
874
875 Fix multiexec race.
876 * infrun.c (handle_inferior_event): Use get_thread_regcache
877 with events ptid, not get_current_regcache.
878
879 2009-01-08 Joel Brobecker <brobecker@adacore.com>
880
881 GDB crash with empty executable name (MinGW).
882 * source.c (openp): Add assert that parameter string is not NULL.
883 if parameter string is an empty string, then return with a failure
884 immediately.
885
886 2009-01-08 Joel Brobecker <brobecker@adacore.com>
887
888 Get rid of support for VAX Floats.
889 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
890 (ada_vax_float_print_function): Delete.
891 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
892 (ada_vax_float_print_function): Delete.
893 * ada-typeprint.c (print_vax_floating_point_type): Delete.
894 (ada_print_type): Remove support for VAX floats.
895 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
896
897 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 * stabsread.c (read_args): Handle zero arguments.
900
901 2009-01-08 Joel Brobecker <brobecker@adacore.com>
902
903 Cannot find in-tree libiconv.a after reconfigure.
904 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
905 that we can use, then cache the path to this archive.
906 * configure: Regenerate.
907
908 2010-01-07 Stan Shebs <stan@codesourcery.com>
909
910 Make tracepoint operations go through target vector.
911 * target.h (enum trace_find_type): New enum.
912 (struct target_ops): New fields to_trace_init,
913 to_download_tracepoint, to_download_trace_state_variable,
914 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
915 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
916 to_set_disconnected_tracing.
917 (target_trace_init): New macro.
918 (target_download_tracepoint): New macro.
919 (target_download_trace_state_variable): New macro.
920 (target_trace_start): New macro.
921 (target_trace_set_readonly_regions): New macro.
922 (target_get_trace_status): New macro.
923 (target_trace_stop): New macro.
924 (target_trace_find): New macro.
925 (target_get_trace_state_variable_value): New macro.
926 (target_set_disconnected_tracing): New macro.
927 * target.c (update_current_target): Inherit and set defaults for
928 tracepoint operations.
929 * tracepoint.c (default_collect): Make globally visible.
930 (target_is_remote): Remove, along with all calls.
931 (tvariables_info): Call target_get_trace_state_variable_value.
932 (remote_set_transparent_ranges): Remove.
933 (trace_start_command): Call target_trace_init,
934 target_download_tracepoint, etc.
935 (download_tracepoint): Remove.
936 (trace_stop_command): Simplify.
937 (stop_tracing): Call target_trace_stop.
938 (get_trace_status): Call target_get_trace_status.
939 (trace_status_command): Add case for targets that cannot trace.
940 (finish_tfind_command): Change to take numerical arguments, call
941 target_trace_find.
942 (trace_find_command): Update call to finish_tfind_command.
943 (trace_find_pc_command): Ditto.
944 (trace_find_tracepoint_command): Ditto.
945 (trace_find_line_command): Ditto.
946 (trace_find_range_command): Ditto.
947 (trace_find_outside_command): Ditto.
948 (set_disconnected_tracing_value): Call
949 target_set_disconnected_tracing.
950 * remote.c: Add protocol encoding bits from tracepoint.c.
951 (trace_error): Move from tracepoint.c.
952 (remote_get_noisy_reply): Ditto.
953 (free_actions_list_cleanup_wrapper): Ditto.
954 (free_actions_list): Ditto.
955 (remote_trace_init): New function.
956 (remote_download_tracepoint): New function.
957 (remote_download_trace_state_variable): New function.
958 (remote_trace_set_readonly_regions): New function.
959 (remote_trace_start): New function.
960 (remote_get_trace_status): New function.
961 (remote_trace_stop): New function.
962 (remote_trace_find): New function.
963 (remote_download_trace_state_variable): New function.
964 (remote_set_disconnected_tracing): New function.
965 (init_remote_ops): Add tracepoint operations.
966
967 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
968
969 2010-01-07 Tristan Gingold <gingold@adacore.com>
970
971 * symfile.c (build_section_addr_info_from_objfile): New function.
972 (symbol_file_add_separate): Don't use offsets from objfile but
973 built an addr info.
974
975 2010-01-06 Stan Shebs <stan@codesourcery.com>
976
977 Support disconnected tracing.
978 * infcmd.c (detach_command): Ask whether to stop tracing.
979 * cli/cli-cmds.c (quit_command): Ditto.
980 * breakpoint.h (struct breakpoint): New field number_on_target.
981 * breakpoint.c (create_tracepoint_from_upload): New function.
982 (get_tracepoint_by_number_on_target): New function.
983 * remote.c (struct remote): New field disconnected_tracing.
984 (remote_disconnected_tracing_feature): New function.
985 (remote_protocol_features): Add DisconnectedTracing.
986 (struct uploaded_tp): New struct.
987 (uploaded_tps): New global.
988 (get_uploaded_tp): New function.
989 (find_matching_tracepoint): New function.
990 (remote_get_tracing_state): New function.
991 (remote_start_remote): Call it.
992 * tracepoint.c (disconnected_tracing): New global.
993 (trace_start_command): Initialize number_on_target.
994 (stop_tracing): New function, split out from...
995 (trace_stop_command): Call stop_tracing.
996 (get_trace_status): New function, split out from...
997 (trace_status_command): Call get_trace_status, add info on
998 disconnection behavior.
999 (disconnect_or_stop_tracing): New function.
1000 (finish_tfind_command): Translate from number on target.
1001 (trace_find_tracepoint_command): Translate to number on target.
1002 (send_disconnected_tracing_value): New function.
1003 (set_disconnected_tracing): New function.
1004 (_initialize_tracepoint): Add disconnected-tracing variable.
1005 * NEWS: Mention disconnected tracing.
1006
1007 2010-01-06 Tristan Gingold <gingold@adacore.com>
1008
1009 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1010 parameter to main_objfile. Iterate on all separate debug objfiles.
1011 * symfile.h (symbol_file_add_separate)
1012 (find_separate_debug_file_by_debuglink): Remove parameter names.
1013 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1014 (reread_symbols): Use free_objfile_separate_debug.
1015 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1016 Adjust comment.
1017 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1018 (free_objfile_separate_debug): New prototypes.
1019 * objfiles.c (objfile_separate_debug_iterate): New function.
1020 (add_separate_debug_objfile, free_objfile_separate_debug): New
1021 functions.
1022 (free_objfile): Use free_objfile_separate_debug. Adjust for
1023 multiple separate debug objfile.
1024 (objfile_has_symbols): Adjust comment. Iterate on all separate
1025 debug objfiles.
1026 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1027 debug objfile.
1028 (lookup_minimal_symbol_text): Ditto.
1029 (lookup_minimal_symbol_by_pc_name): Ditto.
1030 (lookup_minimal_symbol_solib_trampoline): Ditto.
1031 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1032 debug objfiles.
1033
1034 2010-01-05 Stan Shebs <stan@codesourcery.com>
1035
1036 Add fast tracepoints.
1037 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1038 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1039 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1040 * breakpoint.c (tracepoint_type): New function.
1041 (ALL_TRACEPOINTS): Use it.
1042 (should_be_inserted): Ditto.
1043 (bpstat_check_location): Ditto.
1044 (print_one_breakpoint_location): Ditto.
1045 (user_settable_breakpoint): Ditto.
1046 (set_breakpoint_location_function): Ditto.
1047 (disable_breakpoints_in_shlibs): Ditto.
1048 (delete_trace_command): Ditto.
1049 (print_it_typical): Add bp_fast_tracepoint case.
1050 (bpstat_what): Ditto.
1051 (print_one_breakpoint_location): Ditto.
1052 (allocate_bp_location): Ditto.
1053 (mention): Ditto.
1054 (breakpoint_re_set_one): Ditto.
1055 (disable_command): Ditto.
1056 (enable_command): Ditto.
1057 (check_fast_tracepoint_sals): New function.
1058 (break_command_really): Call it.
1059 (ftrace_command): New function.
1060 (_initialize_breakpoint): Add ftrace command.
1061 * gdbarch.sh (fast_tracepoint_valid_at): New.
1062 * gdbarch.h, gdbarch.c: Regenerate.
1063 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1064 (i386_gdbarch_init): Use it.
1065 * remote.c (struct remote_state): New field fast_tracepoints.
1066 (PACKET_FastTracepoints): New packet config type.
1067 (remote_fast_tracepoint_feature): New function.
1068 (remote_protocol_features): Add FastTracepoints.
1069 (remote_supports_fast_tracepoints): New function.
1070 (_initialize_remote): Add FastTracepoints.
1071 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1072 * NEWS: Mention fast tracepoints.
1073
1074 2010-01-06 Joel Brobecker <brobecker@adacore.com>
1075
1076 * gdb-gdb.py: New file.
1077
1078 2010-01-05 Michael Snyder <msnyder@vmware.com>
1079
1080 * infrun.c (handle_inferior_event): Fix typo in comment.
1081
1082 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1083
1084 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1085
1086 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1087
1088 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1089 and s390x-linux64.
1090 (s390-linux32-expedite): Define.
1091 (s390-linux64-expedite): Define.
1092 (s390x-linux64-expedite): Define.
1093 * features/s390-acr.xml: New file.
1094 * features/s390-fpr.xml: New file.
1095 * features/s390-core32.xml: New file.
1096 * features/s390-core64.xml: New file.
1097 * features/s390x-core64.xml: New file.
1098 * features/s390-linux32.xml: New file.
1099 * features/s390-linux64.xml: New file.
1100 * features/s390x-linux64.xml: New file.
1101 * features/s390-linux32.c: New generated file.
1102 * features/s390-linux64.c: New generated file.
1103 * features/s390x-linux64.c: New generated file.
1104
1105 * regformats/s390-linux32.dat: New generated file.
1106 * regformats/s390-linux64.dat: New generated file.
1107 * regformats/s390x-linux64.dat: New generated file.
1108 * regformats/reg-s390.dat: Remove.
1109 * regformats/reg-s390x.dat: Remove.
1110
1111 * s390-nat.c: Include "auxv.h" and <elf.h>.
1112 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1113 (s390_target_wordsize): New function.
1114 (s390_auxv_parse): Likewise.
1115 (s390_get_hwcap): Likewise.
1116 (s390_read_description): Likewise.
1117 (_initialize_s390_nat): Install s390_auxv_parse and
1118 s390_read_description.
1119
1120 * s390-tdep.c: Include "features/s390-linux32.c",
1121 "features/s390-linux64.c", and "features/s390x-linux64.c".
1122 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1123 (s390_register_call_saved): New function.
1124 (s390_register_name): Remove.
1125 (s390_register_type): Remove.
1126 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1127 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1128 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1129 (s390_pseudo_register_name): New function.
1130 (s390_pseudo_register_type): New function.
1131 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1132 Handle full GPR pesudos and varying pseudo register numbers.
1133 (s390_pseudo_register_write): Likewise
1134 (s390x_pseudo_register_read): Remove.
1135 (s390x_pseudo_register_write): Likewise.
1136 (s390_register_group): Remove.
1137 (s390_pseudo_register_group): New function.
1138 (s390_regmap_gregset): Add GPR upper halves.
1139 (s390x_regmap_gregset): Likewise.
1140 (s390_regmap_fpregset): Likewise.
1141 (s390_regmap_upper): New global variable.
1142 (s390_upper_regset): New global variable.
1143 (s390_upper_regset_sections): New global variable.
1144 (s390_regset_from_core_section): Handle GPR upper halves.
1145 (s390_core_read_description): New function.
1146 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1147 register information. Handle varying pseudo register numbers.
1148 (s390_backchain_frame_unwind_cache): Likewise.
1149 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1150 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1151 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1152 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1153 Handle varying pseudo register numbers.
1154 (s390_unwind_pc): Handle varying pseudo register numbers.
1155 (s390_dwarf2_prev_register): New function.
1156 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1157 register information. Handle varying pseudo register numbers.
1158 Install s390_dwarf2_prev_register to unwind full GPRs.
1159 (s390_gdbarch_init): Handle target descriptions. Assign varying
1160 pseudo register numbers. Install s390_adjust_frame_regnum.
1161 (_initialize_s390_tdep): Initialize target descriptions.
1162
1163 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1164 (S390_NUM_REGS): Redefine to include upper half registers.
1165 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1166 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1167 (tdesc_s390_linux32): Add declaration.
1168 (tdesc_s390_linux64): Likewise.
1169 (tdesc_s390x_linux64): Likewise.
1170
1171 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1172
1173 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1174 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1175 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1176 (ppc_linux_vmx_regset_sections): Likewise.
1177 (ppc_linux_fp_regset_sections): Likewise.
1178
1179 * corelow.c (get_core_register_section): Constify arguments.
1180 (get_core_registers): Use gdbarch_core_regset_sections instead
1181 of hard-coded platform-specific register section names.
1182
1183 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1184
1185 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
1186 a register, assume the least-significant part is used.
1187 (write_pieced_value): Likewise.
1188
1189 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1190
1191 * printcmd.c: Include "arch-utils.h".
1192 (do_one_display): Re-parse expression if current architecture changed.
1193
1194 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1195 Joel Brobecker <brobecker@adacore.com>
1196
1197 * gdbtypes.c (check_typedef): New comment on type length.
1198 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1199 comment on type length.
1200 (value_primitive_field): Keep the original TYPE value, new comment.
1201
1202 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1203
1204 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1205 p_start. Change != comparisons to > and < comparisons.
1206
1207 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 * cli/cli-script.c (process_next_line): Check P2 overrun.
1210
1211 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1212
1213 Update the copyright hearder to add year 2010 for most GDB files.
1214
1215 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1216
1217 Fix build failure in inf-ptrace.c.
1218 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1219
1220 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1221
1222 * top.c (print_gdb_version): Update copyright year.
1223
1224 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1225
1226 Fix break *FUN'address thread NUM.
1227 * ada-lex.l (task): Expand rule to also match the thread keyword.
1228
1229 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1230
1231 Fix break *FUN'address task NUM.
1232 * ada-lex.l (task): New rule.
1233 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1234 been built before using it.
1235
1236 For older changes see ChangeLog-2009.
1237 \f
1238 Local Variables:
1239 mode: change-log
1240 left-margin: 8
1241 fill-column: 74
1242 version-control: never
1243 coding: utf-8
1244 End:
This page took 0.058441 seconds and 5 git commands to generate.