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