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