Cannot set the PC on mips-irix.
[binutils-gdb.git] / gdb / ChangeLog
1 2010-01-09 Joel Brobecker <brobecker@adacore.com>
2
3 Cannot set the PC on mips-irix.
4 * irix5-nat.c (fill_gregset): Check regno against the raw PC
5 register number, no the cooked one.
6
7 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8
9 Error while loading core file on mips-irix.
10 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11 if debugging from a core file.
12
13 2010-01-09 Joel Brobecker <brobecker@adacore.com>
14
15 GDB hangs when attaching to process on mips-irix.
16 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
17 attaching to a process.
18
19 2010-01-09 Joel Brobecker <brobecker@adacore.com>
20
21 Use the correct breakpoint instruction on mips-irix.
22 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
23 containing the correct breakpoint instruction to use on mips-irix.
24 Use it when the osabi is GDB_OSABI_IRIX.
25
26 2010-01-09 Joel Brobecker <brobecker@adacore.com>
27
28 -Wunused warning in procfs.c (mips-irix only).
29 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
30 throughout instead of using praddset and prdelset respectively.
31
32 2010-01-09 Joel Brobecker <brobecker@adacore.com>
33
34 GDB crash while stepping into function.
35 * infrun.c (handle_inferior_event): Refetch the current frame
36 after handling what.main_action, in case that pointer became
37 dangling.
38
39 2010-01-09 Joel Brobecker <brobecker@adacore.com>
40
41 Fix build failure of solaris-hosted cross debuggers.
42 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
43
44 2010-01-09 Joel Brobecker <brobecker@adacore.com>
45
46 Fix build failure on sparc-solaris.
47 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
48
49 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
50
51 Move some symfile code into subroutines.
52 * symfile.h (relative_addr_info_to_section_offsets)
53 (addr_info_make_relative): New prototypes.
54 * symfile.c (default_symfile_offsets): Move a part to ...
55 (relative_addr_info_to_section_offsets): ... this new function.
56 (default_symfile_offsets): Call it.
57 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
58 this part to ...
59 (addr_info_make_relative): ... this new function.
60
61 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 Add from_tty to solib_create_inferior_hook.
64 * infcmd.c (post_create_inferior): Move solib_add after
65 solib_create_inferior_hook. Pass from_tty to
66 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
67 0 from_tty and comment why.
68 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
69 * linux-nat.c (linux_child_follow_fork): Likewise.
70 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
71 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
72 from_tty.
73 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
74 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
75 * solib-null.c (null_solib_create_inferior_hook): Likewise.
76 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
77 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
78 * solib-som.c (som_solib_create_inferior_hook): Likewise.
79 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
80 Pass it to svr4_so_ops.solib_create_inferior_hook.
81 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
82 from_tty.
83 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
84 solib_add.
85 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
86 enable_break.
87 * solib-target.c (solib_target_solib_create_inferior_hook): New
88 parameter from_tty.
89 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
90 it to ops->solib_create_inferior_hook.
91 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
92 Move solib_add after solib_create_inferior_hook, call it now with
93 from_tty as 0. New comment there.
94 * solib.h (solib_create_inferior_hook): New parameter from_tty.
95 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
96 Likewise.
97
98 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
99
100 Fix multiexec race.
101 * infrun.c (handle_inferior_event): Use get_thread_regcache
102 with events ptid, not get_current_regcache.
103
104 2009-01-08 Joel Brobecker <brobecker@adacore.com>
105
106 GDB crash with empty executable name (MinGW).
107 * source.c (openp): Add assert that parameter string is not NULL.
108 if parameter string is an empty string, then return with a failure
109 immediately.
110
111 2009-01-08 Joel Brobecker <brobecker@adacore.com>
112
113 Get rid of support for VAX Floats.
114 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
115 (ada_vax_float_print_function): Delete.
116 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
117 (ada_vax_float_print_function): Delete.
118 * ada-typeprint.c (print_vax_floating_point_type): Delete.
119 (ada_print_type): Remove support for VAX floats.
120 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
121
122 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
123
124 * stabsread.c (read_args): Handle zero arguments.
125
126 2009-01-08 Joel Brobecker <brobecker@adacore.com>
127
128 Cannot find in-tree libiconv.a after reconfigure.
129 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
130 that we can use, then cache the path to this archive.
131 * configure: Regenerate.
132
133 2010-01-07 Stan Shebs <stan@codesourcery.com>
134
135 Make tracepoint operations go through target vector.
136 * target.h (enum trace_find_type): New enum.
137 (struct target_ops): New fields to_trace_init,
138 to_download_tracepoint, to_download_trace_state_variable,
139 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
140 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
141 to_set_disconnected_tracing.
142 (target_trace_init): New macro.
143 (target_download_tracepoint): New macro.
144 (target_download_trace_state_variable): New macro.
145 (target_trace_start): New macro.
146 (target_trace_set_readonly_regions): New macro.
147 (target_get_trace_status): New macro.
148 (target_trace_stop): New macro.
149 (target_trace_find): New macro.
150 (target_get_trace_state_variable_value): New macro.
151 (target_set_disconnected_tracing): New macro.
152 * target.c (update_current_target): Inherit and set defaults for
153 tracepoint operations.
154 * tracepoint.c (default_collect): Make globally visible.
155 (target_is_remote): Remove, along with all calls.
156 (tvariables_info): Call target_get_trace_state_variable_value.
157 (remote_set_transparent_ranges): Remove.
158 (trace_start_command): Call target_trace_init,
159 target_download_tracepoint, etc.
160 (download_tracepoint): Remove.
161 (trace_stop_command): Simplify.
162 (stop_tracing): Call target_trace_stop.
163 (get_trace_status): Call target_get_trace_status.
164 (trace_status_command): Add case for targets that cannot trace.
165 (finish_tfind_command): Change to take numerical arguments, call
166 target_trace_find.
167 (trace_find_command): Update call to finish_tfind_command.
168 (trace_find_pc_command): Ditto.
169 (trace_find_tracepoint_command): Ditto.
170 (trace_find_line_command): Ditto.
171 (trace_find_range_command): Ditto.
172 (trace_find_outside_command): Ditto.
173 (set_disconnected_tracing_value): Call
174 target_set_disconnected_tracing.
175 * remote.c: Add protocol encoding bits from tracepoint.c.
176 (trace_error): Move from tracepoint.c.
177 (remote_get_noisy_reply): Ditto.
178 (free_actions_list_cleanup_wrapper): Ditto.
179 (free_actions_list): Ditto.
180 (remote_trace_init): New function.
181 (remote_download_tracepoint): New function.
182 (remote_download_trace_state_variable): New function.
183 (remote_trace_set_readonly_regions): New function.
184 (remote_trace_start): New function.
185 (remote_get_trace_status): New function.
186 (remote_trace_stop): New function.
187 (remote_trace_find): New function.
188 (remote_download_trace_state_variable): New function.
189 (remote_set_disconnected_tracing): New function.
190 (init_remote_ops): Add tracepoint operations.
191
192 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
193
194 2010-01-07 Tristan Gingold <gingold@adacore.com>
195
196 * symfile.c (build_section_addr_info_from_objfile): New function.
197 (symbol_file_add_separate): Don't use offsets from objfile but
198 built an addr info.
199
200 2010-01-06 Stan Shebs <stan@codesourcery.com>
201
202 Support disconnected tracing.
203 * infcmd.c (detach_command): Ask whether to stop tracing.
204 * cli/cli-cmds.c (quit_command): Ditto.
205 * breakpoint.h (struct breakpoint): New field number_on_target.
206 * breakpoint.c (create_tracepoint_from_upload): New function.
207 (get_tracepoint_by_number_on_target): New function.
208 * remote.c (struct remote): New field disconnected_tracing.
209 (remote_disconnected_tracing_feature): New function.
210 (remote_protocol_features): Add DisconnectedTracing.
211 (struct uploaded_tp): New struct.
212 (uploaded_tps): New global.
213 (get_uploaded_tp): New function.
214 (find_matching_tracepoint): New function.
215 (remote_get_tracing_state): New function.
216 (remote_start_remote): Call it.
217 * tracepoint.c (disconnected_tracing): New global.
218 (trace_start_command): Initialize number_on_target.
219 (stop_tracing): New function, split out from...
220 (trace_stop_command): Call stop_tracing.
221 (get_trace_status): New function, split out from...
222 (trace_status_command): Call get_trace_status, add info on
223 disconnection behavior.
224 (disconnect_or_stop_tracing): New function.
225 (finish_tfind_command): Translate from number on target.
226 (trace_find_tracepoint_command): Translate to number on target.
227 (send_disconnected_tracing_value): New function.
228 (set_disconnected_tracing): New function.
229 (_initialize_tracepoint): Add disconnected-tracing variable.
230 * NEWS: Mention disconnected tracing.
231
232 2010-01-06 Tristan Gingold <gingold@adacore.com>
233
234 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
235 parameter to main_objfile. Iterate on all separate debug objfiles.
236 * symfile.h (symbol_file_add_separate)
237 (find_separate_debug_file_by_debuglink): Remove parameter names.
238 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
239 (reread_symbols): Use free_objfile_separate_debug.
240 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
241 Adjust comment.
242 (objfile_separate_debug_iterate, add_separate_debug_objfile)
243 (free_objfile_separate_debug): New prototypes.
244 * objfiles.c (objfile_separate_debug_iterate): New function.
245 (add_separate_debug_objfile, free_objfile_separate_debug): New
246 functions.
247 (free_objfile): Use free_objfile_separate_debug. Adjust for
248 multiple separate debug objfile.
249 (objfile_has_symbols): Adjust comment. Iterate on all separate
250 debug objfiles.
251 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
252 debug objfile.
253 (lookup_minimal_symbol_text): Ditto.
254 (lookup_minimal_symbol_by_pc_name): Ditto.
255 (lookup_minimal_symbol_solib_trampoline): Ditto.
256 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
257 debug objfiles.
258
259 2010-01-05 Stan Shebs <stan@codesourcery.com>
260
261 Add fast tracepoints.
262 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
263 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
264 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
265 * breakpoint.c (tracepoint_type): New function.
266 (ALL_TRACEPOINTS): Use it.
267 (should_be_inserted): Ditto.
268 (bpstat_check_location): Ditto.
269 (print_one_breakpoint_location): Ditto.
270 (user_settable_breakpoint): Ditto.
271 (set_breakpoint_location_function): Ditto.
272 (disable_breakpoints_in_shlibs): Ditto.
273 (delete_trace_command): Ditto.
274 (print_it_typical): Add bp_fast_tracepoint case.
275 (bpstat_what): Ditto.
276 (print_one_breakpoint_location): Ditto.
277 (allocate_bp_location): Ditto.
278 (mention): Ditto.
279 (breakpoint_re_set_one): Ditto.
280 (disable_command): Ditto.
281 (enable_command): Ditto.
282 (check_fast_tracepoint_sals): New function.
283 (break_command_really): Call it.
284 (ftrace_command): New function.
285 (_initialize_breakpoint): Add ftrace command.
286 * gdbarch.sh (fast_tracepoint_valid_at): New.
287 * gdbarch.h, gdbarch.c: Regenerate.
288 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
289 (i386_gdbarch_init): Use it.
290 * remote.c (struct remote_state): New field fast_tracepoints.
291 (PACKET_FastTracepoints): New packet config type.
292 (remote_fast_tracepoint_feature): New function.
293 (remote_protocol_features): Add FastTracepoints.
294 (remote_supports_fast_tracepoints): New function.
295 (_initialize_remote): Add FastTracepoints.
296 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
297 * NEWS: Mention fast tracepoints.
298
299 2010-01-06 Joel Brobecker <brobecker@adacore.com>
300
301 * gdb-gdb.py: New file.
302
303 2010-01-05 Michael Snyder <msnyder@vmware.com>
304
305 * infrun.c (handle_inferior_event): Fix typo in comment.
306
307 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
308
309 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
310
311 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
312
313 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
314 and s390x-linux64.
315 (s390-linux32-expedite): Define.
316 (s390-linux64-expedite): Define.
317 (s390x-linux64-expedite): Define.
318 * features/s390-acr.xml: New file.
319 * features/s390-fpr.xml: New file.
320 * features/s390-core32.xml: New file.
321 * features/s390-core64.xml: New file.
322 * features/s390x-core64.xml: New file.
323 * features/s390-linux32.xml: New file.
324 * features/s390-linux64.xml: New file.
325 * features/s390x-linux64.xml: New file.
326 * features/s390-linux32.c: New generated file.
327 * features/s390-linux64.c: New generated file.
328 * features/s390x-linux64.c: New generated file.
329
330 * regformats/s390-linux32.dat: New generated file.
331 * regformats/s390-linux64.dat: New generated file.
332 * regformats/s390x-linux64.dat: New generated file.
333 * regformats/reg-s390.dat: Remove.
334 * regformats/reg-s390x.dat: Remove.
335
336 * s390-nat.c: Include "auxv.h" and <elf.h>.
337 (HWCAP_S390_HIGH_GPRS): Define if undefined.
338 (s390_target_wordsize): New function.
339 (s390_auxv_parse): Likewise.
340 (s390_get_hwcap): Likewise.
341 (s390_read_description): Likewise.
342 (_initialize_s390_nat): Install s390_auxv_parse and
343 s390_read_description.
344
345 * s390-tdep.c: Include "features/s390-linux32.c",
346 "features/s390-linux64.c", and "features/s390x-linux64.c".
347 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
348 (s390_register_call_saved): New function.
349 (s390_register_name): Remove.
350 (s390_register_type): Remove.
351 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
352 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
353 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
354 (s390_pseudo_register_name): New function.
355 (s390_pseudo_register_type): New function.
356 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
357 Handle full GPR pesudos and varying pseudo register numbers.
358 (s390_pseudo_register_write): Likewise
359 (s390x_pseudo_register_read): Remove.
360 (s390x_pseudo_register_write): Likewise.
361 (s390_register_group): Remove.
362 (s390_pseudo_register_group): New function.
363 (s390_regmap_gregset): Add GPR upper halves.
364 (s390x_regmap_gregset): Likewise.
365 (s390_regmap_fpregset): Likewise.
366 (s390_regmap_upper): New global variable.
367 (s390_upper_regset): New global variable.
368 (s390_upper_regset_sections): New global variable.
369 (s390_regset_from_core_section): Handle GPR upper halves.
370 (s390_core_read_description): New function.
371 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
372 register information. Handle varying pseudo register numbers.
373 (s390_backchain_frame_unwind_cache): Likewise.
374 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
375 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
376 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
377 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
378 Handle varying pseudo register numbers.
379 (s390_unwind_pc): Handle varying pseudo register numbers.
380 (s390_dwarf2_prev_register): New function.
381 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
382 register information. Handle varying pseudo register numbers.
383 Install s390_dwarf2_prev_register to unwind full GPRs.
384 (s390_gdbarch_init): Handle target descriptions. Assign varying
385 pseudo register numbers. Install s390_adjust_frame_regnum.
386 (_initialize_s390_tdep): Initialize target descriptions.
387
388 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
389 (S390_NUM_REGS): Redefine to include upper half registers.
390 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
391 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
392 (tdesc_s390_linux32): Add declaration.
393 (tdesc_s390_linux64): Likewise.
394 (tdesc_s390x_linux64): Likewise.
395
396 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
397
398 * regset.h (struct core_regset_section): Add HUMAN_NAME.
399 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
400 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
401 (ppc_linux_vmx_regset_sections): Likewise.
402 (ppc_linux_fp_regset_sections): Likewise.
403
404 * corelow.c (get_core_register_section): Constify arguments.
405 (get_core_registers): Use gdbarch_core_regset_sections instead
406 of hard-coded platform-specific register section names.
407
408 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
409
410 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
411 a register, assume the least-significant part is used.
412 (write_pieced_value): Likewise.
413
414 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
415
416 * printcmd.c: Include "arch-utils.h".
417 (do_one_display): Re-parse expression if current architecture changed.
418
419 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
420 Joel Brobecker <brobecker@adacore.com>
421
422 * gdbtypes.c (check_typedef): New comment on type length.
423 * value.c (allocate_value_lazy): Remove the unused atype variable. New
424 comment on type length.
425 (value_primitive_field): Keep the original TYPE value, new comment.
426
427 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
430 p_start. Change != comparisons to > and < comparisons.
431
432 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
433
434 * cli/cli-script.c (process_next_line): Check P2 overrun.
435
436 2009-01-01 Joel Brobecker <brobecker@adacore.com>
437
438 Update the copyright hearder to add year 2010 for most GDB files.
439
440 2009-01-01 Joel Brobecker <brobecker@adacore.com>
441
442 Fix build failure in inf-ptrace.c.
443 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
444
445 2010-01-01 Joel Brobecker <brobecker@adacore.com>
446
447 * top.c (print_gdb_version): Update copyright year.
448
449 2010-01-01 Joel Brobecker <brobecker@adacore.com>
450
451 Fix break *FUN'address thread NUM.
452 * ada-lex.l (task): Expand rule to also match the thread keyword.
453
454 2010-01-01 Joel Brobecker <brobecker@adacore.com>
455
456 Fix break *FUN'address task NUM.
457 * ada-lex.l (task): New rule.
458 * ada-lang.c (valid_task_id): Make sure the Ada task list has
459 been built before using it.
460
461 For older changes see ChangeLog-2009.
462 \f
463 Local Variables:
464 mode: change-log
465 left-margin: 8
466 fill-column: 74
467 version-control: never
468 coding: utf-8
469 End: