* dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2dc7f7b3
TT
12010-04-20 Tom Tromey <tromey@redhat.com>
2
3 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4 (struct dwarf2_cie) <segment_size>: New field.
5 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
7 DW_FORM_exprloc.
8 (read_attribute_value): Handle DW_FORM_flag_present,
9 DW_FORM_sec_offset, DW_FORM_exprloc.
10 (dump_die_shallow): Likewise.
11 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
12 (dwarf2_const_value): Handle DW_FORM_exprloc.
13 (attr_form_is_block): Likewise.
14 (struct line_header) <maximum_ops_per_instruction>: New field.
15 (dwarf_decode_line_header): Set new field.
16 (dwarf_decode_lines): Handle new field.
17
ce4b0682
SDJ
182010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
19
20 * f-exp.y: Add new production to recognize the `logical*8' type.
21 (LOGICAL_S8_KEYWORD): New token.
22 * f-lang.c (enum f_primitive_types)
23 <f_primitive_type_logical_s8>: New field.
24 (f_language_arch_info): Handling `logical*8' type.
25 (build_fortran_types): Building `logical*8' type.
26 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
27
ff9f22f1
DE
282010-04-19 Doug Evans <dje@google.com>
29
30 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
31 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
32 (pipe_close): Ditto.
33
437125bd
PM
342010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
35
36 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
37
e8e6c82e
PM
382010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
39
40 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
41 type to void function.
42
4136fdd2
SS
432010-04-19 Stan Shebs <stan@codesourcery.com>
44 Vladimir Prus <vladimir@codesourcery.com>
45
46 * tracepoint.c (tfind_1): Add missing newline, report exit from
47 tfind mode as such.
48 * target.c (update_current_target): Make default
49 to_trace_find return -1.
50
0c4b2e63
MF
512010-04-19 Mike Frysinger <vapier@gentoo.org>
52
53 * objc-lang.c (find_methods): Move symname check up.
54
78076abc
PA
552010-04-19 Pedro Alves <pedro@codesourcery.com>
56
57 * ada-lang.c (print_recreate_exception)
58 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
59 not "catch unhandled".
60
6149aea9
PA
612010-04-19 Pedro Alves <pedro@codesourcery.com>
62
63 PR breakpoints/8554.
64
65 Implement `save-breakpoints'.
66
67 * breakpoint.c (save_cmdlist): New.
68 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
69 to save_cmdlist.
70 (print_recreate_catch_fork): New.
71 (catch_fork_breakpoint_ops): Install it.
72 (print_recreate_catch_vfork): New.
73 (catch_vfork_breakpoint_ops): Install it.
74 (print_recreate_catch_syscall): New.
75 (catch_syscall_breakpoint_ops): Install it.
76 (print_recreate_catch_exec): New.
77 (catch_exec_breakpoint_ops): Install it.
78 (print_recreate_exception_catchpoint): New.
79 (gnu_v3_exception_catchpoint_ops): Install it.
80 (save_breakpoints): New, based on tracepoint_save_command, but
81 handle all breakpoint types.
82 (save_breakpoints_command): New.
83 (tracepoint_save_command): Rename to...
84 (save_tracepoints_command): ... this, and reimplement using
85 save_breakpoints.
86 (save_command): New.
87 (_initialize_breakpoints): Install the "save" command prefix.
88 Install the "save breakpoints" command. Make "save-tracepoints" a
89 deprecated alias for "save tracepoints".
90 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
91 * ada-lang.c (print_recreate_exception): New.
92 (print_recreate_catch_exception): New.
93 (catch_exception_breakpoint_ops): Install it.
94 (print_recreate_catch_exception_unhandled): New.
95 (catch_exception_unhandled_breakpoint_ops): Install it.
96 (print_recreate_catch_assert): New.
97 (catch_assert_breakpoint_ops): Install it.
98
99 * NEWS: Mention the new `save breakpoints' command. Mention the
100 new `save tracepoints' alias and that `save-tracepoints' is now
101 deprecated.
102
0a8fce9a
PA
1032010-04-18 Pedro Alves <pedro@codesourcery.com>
104
105 PR tui/9217
106
107 * tui/tui-out.c: Include cli-out.h.
108 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
109 (tui_begin, tui_end, tui_field_int, tui_field_skip)
110 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
111 (tui_message, tui_wrap_hint, tui_flush): Delete forward
112 declarations.
113 (struct ui_out_data): Rename to...
114 (struct tui_ui_out_data): ... this. Remove `stream' and
115 `suppress_output' fields, and inherit cli_ui_out_data.
116 (tui_out_data): New typedef.
117 (tui_ui_out_impl): Don't initialize fields staticaly.
118 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
119 (tui_begin, tui_end): Delete.
120 (tui_field_int): Adjust to delegate most work to the base type.
121 (tui_field_skip): Delete.
122 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
123 delegate most work to the base type.
124 (tui_spaces): Delete.
125 (tui_text): Adjust to delegate most work to the base type.
126 (tui_message): Delete.
127 (tui_wrap_hint): Delete.
128 (tui_flush): Delete.
129 (out_field_fmt): Delete.
130 (field_separator): Delete.
131 (tui_out_new): Adjust to initialize the base type.
132 (_initialize_tui_out): Initialize tui_ui_out_impl.
133 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
134 cli_ui_out_data.
135 (cli_out_data): Adjust.
136 (cli_ui_out_impl): Make extern.
137 (cli_table_header, cli_field_int, cli_field_skip): Use
138 uo_field_string instead of cli_field_string.
139 (cli_redirect): Adjust to use cli_out_data.
140 (cli_out_data_ctor): New.
141 (cli_out_new): Use it.
142 * cli-out.h (struct ui_file): Remove forward declaration.
143 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
144 (cli_ui_out_impl): Declare.
145 (cli_out_data_ctor): Declare.
146 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
147 (uo_field_string): No longer static.
148 (ui_out_data): Change return type to void pointer.
149 (ui_out_new): Change `data' parameter type to void pointer.
150 * ui-out.h (struct ui_out_data): Don't forward declare.
151 (ui_out_data): Change return type to void pointer.
152 (ui_out_new): Change `data' parameter type to void pointer.
153 (uo_field_string): Declare.
154
172240dd
PA
1552010-04-17 Pedro Alves <pedro@codesourcery.com>
156
157 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
158 instead of always false.
159
ed41462c
L
1602010-04-17 H.J. Lu <hongjiu.lu@intel.com>
161
162 PR corefiles/11511
163 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
164 orig_rax.
165
cc60f2e3
PA
1662010-04-17 Pedro Alves <pedro@codesourcery.com>
167
168 * breakpoint.c (watchpoints_triggered): Use
169 is_hardware_watchpoint.
170 (watchpoints_triggered): Ditto.
171 (bpstat_check_location): Use is_watchpoint and
172 is_hardware_watchpoint.
173 (bpstat_check_watchpoint): Use is_watchpoint and
174 is_hardware_watchpoint.
175 (bpstat_stop_status): Fix comment.
176 (user_settable_breakpoint): Use is_watchpoint.
177 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
178 (disable_watchpoints_before_interactive_call_start): Use
179 is_watchpoint.
180 (enable_watchpoints_after_interactive_call_stop): Use
181 is_watchpoint.
182 (clear_command): Use is_watchpoint.
183 (do_enable_breakpoint): Use is_watchpoint.
184
cb7db0f2
MF
1852010-04-16 Mike Frysinger <vapier@gentoo.org>
186
187 * solib-frv.c (enable_break1_done): Delete.
188 (enable_break2): Do not check enable_break1_done. Move the
189 enable_break2_done setting and call to
190 remove_solib_event_breakpoints() to the end. Return without
191 warning when the contents of _dl_debug_addr are 0.
192 (enable_break): Do not set enable_break1_done.
193 (frv_clear_solib): Likewise.
194
d77b48cf
KB
1952010-04-16 Kevin Buettner <kevinb@redhat.com>
196
197 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
198 instead of an error if no PLT entry is found. Return a
199 potentially useful result.
200 (m32c_m16c_pointer_to_address): Add code to search for function
201 address when no .plt entry is found.
202
f90824dc
SS
2032010-04-16 Stan Shebs <stan@codesourcery.com>
204
205 * tracepoint.c (trace_variable_command): Run a cleanup.
206
9b79b476
PM
2072010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
208
209 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
210
711e434b
PM
2112010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
212
213 Support for Windows OS Thread Information Block.
214 * NEWS: Document new feature.
215 * remote.c (PACKET_qGetTIBAddr): New enum element.
216 (remote_get_tib_address): New function.
217 (init_remote_ops): Set to_get_tib_address field
218 to remote_get_tib_address.
219 (_initialize_remote): Add add_packet_config_cmd
220 for PACKET_qGetTIBAddr.
221 * target.c (update_current_target): Set default value for
222 new to_get_tib_address field.
223 * target.h (target_ops): New field to_get_tib_address.
224 (target_get_tib_address): New macro.
225 * windows-nat.c (thread_info): Add thread_local_base field.
226 (windows_add_thread): Add tlb argument of type 'void *'.
227 (fake_create_process): Adapt windows_add_thread call.
228 (get_windows_debug_event): Idem.
229 (windows_get_tib_address): New function.
230 (init_windows_ops): Set to_get_tib_address field
231 to remote_get_tib_address.
232 (_initialize_windows_nat): Replace info_w32_cmdlist
233 initialization by a call to init_w32_command_list.
234 (info_w32_command, info_w32_cmdlist): Removed from here...
235 to windows-tdep.c file.
236 * windows-tdep.h (info_w32_cmdlist): Declare.
237 (init_w32_command_list): New external function
238 declaration.
239 * windows-tdep.c: Add several headers.
240 (info_w32_cmdlist): to here, made global.
241 (thread_information_32): New struct.
242 (thread_information_64): New struct.
243 (TIB_NAME): New char array.
244 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
245 (maint_display_all_tib): New static variable.
246 (windows_get_tlb_type): New function.
247 (tlb_value_read, tlb_value_write): New functions.
248 (tlb_value_funcs): New static struct.
249 (tlb_make_value): New function.
250 (display_one_tib): New function.
251 (display_tib): New function.
252 (show_maint_show_all_tib):New function.
253 (info_w32_command): Moved from windows-nat.c.
254 (init_w32_command_list): New function.
255 (_initialize_windows_tdep): New function.
256 New "maint set/show show-all-tib" command
257 New "$_tlb" internal variable.
258
cae3f17b
JB
2592010-04-16 Joel Brobecker <brobecker@adacore.com>
260
261 * tui/tui-regs.c (tui_display_register): Add comment about
262 a couple of casts.
263 * tui/tui-stack.c (tui_show_locator_content): Ditto.
264
2ce6d6bf
SS
2652010-04-15 Stan Shebs <stan@codesourcery.com>
266
267 * frame.c: Include tracepoint.h.
268 (get_current_frame): Allow a trace frame to be an alternate source
269 of stack frame data.
270 * tracepoint.c (tfind_1): Don't try to get current stack frame if
271 it won't succeed.
272
7e559477
PA
2732010-04-15 Pedro Alves <pedro@codesourcery.com>
274
275 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
276 flags.
277 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
278
3f7b2faa
DE
2792010-04-15 Doug Evans <dje@google.com>
280
fa33c3cd
DE
281 * NEWS: Add entry for python program space support.
282 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
283 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
284 (py-progspace.o): New rule.
285 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
286 function.
287 (find_pretty_printer_from_progspace): New function.
288 (find_pretty_printer_from_gdb): New function.
289 (find_pretty_printer): Rewrite.
290 * python/py-progspace.c: New file.
291 * python/python-internal.h (program_space): Add forward decl.
292 (pspace_to_pspace_object, pspy_get_printers): Declare.
293 (gdbpy_initialize_pspace): Declare.
294 * python/python.c: #include "progspace.h".
295 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
296 (_initialize_python): Call gdbpy_initialize_pspace.
297 (GdbMethods): Add current_progspace, progspaces.
298
3f7b2faa
DE
299 Add -s option to source command.
300 * NEWS: Document new option.
301 * cli/cli-cmds.c (find_and_open_script): Add function comment.
302 Delete from_tty and cleanupp args. Split filep arg into file and
303 full_pathp. New arg search_path.
304 (source_script_from_stream): New function.
305 (source_script_with_search): New function.
306 (source_script): Rewrite.
307 (source_command): Parse "-s" option.
308 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
309 * python/python.c (source_python_script): Make file arg a const char *.
310 Don't call fclose, leave for caller.
311 * python/python.h (source_python_script): Update.
312
a86988f2
PA
3132010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
314 Pedro Alves <pedro@codesourcery.com>
315
316 Avoid rereading shared libraries that haven't changed.
317
318 * solib.c (free_so_symbols): New function, from ...
319 (free_so): ... here. Call it.
320 (solib_read_symbols): Don't warn here if symbols have already been
321 loaded.
322 (solib_add): Warn here instead, if a pattern was specified.
323 (reload_shared_libraries_1): New.
324 (reload_shared_libraries): Rewrite to not fetch the library list.
325
e6d9b9c2
DE
3262010-04-14 Doug Evans <dje@google.com>
327
589390d6 328 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
329 concatenating string to search path.
330
516ba659
PA
3312010-04-14 Pedro Alves <pedro@codesourcery.com>
332
333 * objfiles.h (gdb_bfd_close_or_warn): Declare.
334 * objfiles.c (gdb_bfd_close_or_warn): New.
335 * corelow.c: Include objfiles.h
336 (core_close): Use gdb_bfd_close_or_warn.
337 * elfread.c (build_id_verify): Ditto.
338 * exec.c (exec_close, exec_close_1): Ditto.
339
048d532d
PA
3402010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
341 Pedro Alves <pedro@codesourcery.com>
342
343 Group errors for many missing shared libraries.
344
345 * solist.h (struct so_list): Remove from_tty.
346 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
347 (solib_map_sections): Take so_list argument. Return 0 if we
348 failed to open a BFD. Add target sections here.
349 (symbol_add_stub): Delete.
350 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
351 not from_tty copied from the so_list. Don't warn a second time
352 for a missing library.
353 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
354 add to the section table here. Print out a single warning for all
355 missing libraries.
356 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
357 flags.
358
044c0f87
PM
3592010-04-14 Phil Muldoon <pmuldoon@redhat.com>
360
361 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
362 error/warning messages. Capitalize and use complete sentences.
363 (blpy_block_syms_iternext): Likewise.
364 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
365 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
366 (frame_info_to_frame_object, frapy_read_var)
367 (gdbpy_frame_stop_reason_string): Likewise.
368 * python/py-lazy-string.c (stpy_convert_to_value)
369 (gdbpy_create_lazy_string_object): Likewise.
370 * python/py-objfile.c (objfpy_set_printers): Likewise.
371 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
372 * python/python.c (parameter_to_python): Likewise.
373 * python/py-type.c (typy_range, typy_target): Likewise.
374 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
375 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
376
377
79f283fe
PM
3782010-04-14 Phil Muldoon <pmuldoon@redhat.com>
379
380 PR python/11381
381
382 * python/py-prettyprint.c (pretty_print_one_value): Test for
383 Py_None.
384 (print_string_repr): Test for Py_None. Set flags accordingly.
385 Return value depending on return type.
386 (print_children): Take a value indicating whether data was printed
387 before this function was called. Alter output accordingly.
388 (apply_val_pretty_printer): Capture return value from
389 print_string_repr and pass to print_children.
390
4ac5d44e
MK
3912010-04-13 Mark Kettenis <kettenis@gnu.org>
392
e1caee70 393 PR corefiles/11481
4ac5d44e
MK
394 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
395 register note sections.
396 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
397 New variables.
398 (i386_linux_init_abi): Install list of supported register note
399 sections that matches the target description.
400
ad91cd99
PA
4012010-04-13 Pedro Alves <pedro@codesourcery.com>
402
403 * remote.c (remote_get_noisy_reply): Don't error out on empty
404 replies.
405 (remote_start_remote): Update and merge tracepoints and trace
406 state variables as long as the target supports tracepoints.
407 (remote_trace_init): Fix prototype.
408 (remote_download_trace_state_variable): Validate reply.
409 (remote_trace_set_readonly_regions): Fix prototype.
410 (remote_trace_start): Fix prototype. Check for empty reply.
411 (remote_get_trace_status): Small cleanup.
412 (remote_trace_stop): Fix prototype. Check for empty reply.
413 (remote_trace_find): Check for empty reply.
414 (remote_save_trace_data): Validate reply.
415 (remote_set_disconnected_tracing): Check for empty reply, and
416 validate reply.
417 (remote_set_circular_trace_buffer): Ditto.
418
ae3bccd4
PM
4192010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
420
421 Suppress unused value warning during compilation.
422 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
423 calls to void.
424 * tui/tui-stack.c (tui_show_locator_content): Likewise.
425
523136f2
SS
4262010-04-12 Stan Shebs <stan@codesourcery.com>
427
428 * tracepoint.c (tfile_xfer_partial): Check read result.
429
0d18d720
MF
4302010-04-12 Mike Frysinger <vapier@gentoo.org>
431
432 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
433 * remote-sim.c (gdbsim_files_info): Likewise.
434
3b273a55
RE
4352010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
436
437 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
438 * arm-linux-nat.c (arm_linux_vfp_register_count): New
439 variable.
440 (fetch_vfp_registers): New function to fetch VFP registers.
441 (store_vfp_registers): New function to store VFP registers.
442 (arm_linux_fetch_inferior_registers): Add support for VFP
443 registers.
444 (arm_linux_store_inferior_registers): Likewise.
445 (arm_linux_read_description): Likewise.
446 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
447 until we need it.
448
778c7095
L
4492010-04-11 H.J. Lu <hongjiu.lu@intel.com>
450
451 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
452 tdep.
453 (amd64_collect_xstateregset): Likewise.
454
2114d44c
SS
4552010-04-09 Stan Shebs <stan@codesourcery.com>
456
87290684
SS
457 * tracepoint.c (trace_status_mi): Report frames created.
458
2114d44c
SS
459 * tracepoint.c (trace_dump_command): Include default-collect
460 expressions.
461
86da934b
UW
4622010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
463
464 * symtab.c (find_function_start_sal): Never return SAL pointing
465 before function start address, even if line info is missing.
466
2d6e647a 4672010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
468
469 * NEWS: Mention tracepoints support.
470
a97153c7
PA
4712010-04-09 Pedro Alves <pedro@codesourcery.com>
472
473 * tracepoint.c (trace_status_mi): Report disconnected tracing and
474 circular trace buffer statuses.
475
7a66d603
JK
4762010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
477
478 * config/djgpp/fnchange.lst: Fix typo in translations for
479 symbol-without-target_section.exp and symbol-without-target_section.c.
480
2566ad2d
PA
4812010-04-09 Pedro Alves <pedro@codesourcery.com>
482
483 * breakpoint.c (condition_command): Pass condition expression to
484 set_breakpoint_condition stripped from breakpoint number.
485
adc36818
PM
4862010-04-09 Phil Muldoon <pmuldoon@redhat.com>
487 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 488 Tom Tromey <tromey@redhat.com>
adc36818
PM
489
490 * breakpoint.c (condition_command): Simplify. Move condition
491 setting code to ...
492 (set_breakpoint_condition): ... here. New function.
493 * breakpoint.h (set_breakpoint_condition): Declare.
494 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
495 (SUBDIR_PYTHON_SRCS): Likewise.
496 (py-breakpoint.o): New rule.
497 * python/py-breakpoint.c: New file.
498 * python/python-internal.h (gdbpy_breakpoints)
499 (gdbpy_initialize_breakpoints): Declare.
500 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
501
219f2f23
PA
5022010-04-09 Pedro Alves <pedro@codesourcery.com>
503
504 * regformats/regdat.sh: Include server.h. Don't include
505 regcache.h.
506
33da3f1c
SS
5072010-04-08 Stan Shebs <stan@codesourcery.com>
508 Pedro Alves <pedro@codesourcery.com>
509
510 * tracepoint.h (struct trace_status): New fields disconnected_tracing
511 and circular_buffer.
512 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
513 * tracepoint.c (trace_status_command): Display target's status for
514 disconnected tracing and circular buffer.
515 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
516 query for non-disconnected-tracing case, remove the stop_tracing
517 call.
518 (tfile_open): Clear disconnected and circular buffer status.
519 (trace_save): Save disconnected and circular buffer status.
520 (parse_trace_status): Parse disconnected and circular buffer status,
521 also recognize disconnected as a stop reason.
522 * remote.c (remote_set_disconnected_tracing): Only set
523 QTDisconnected if the remote end supports disconnected tracing.
524 Warn otherwise, if trying to enable disconnected tracing.
525 * infcmd.c (detach_command): Update disconnect_tracing call.
526 * cli/cli-cmds.c (quit_command): Ditto.
527
4e4d8374
L
5282010-04-08 H.J. Lu <hongjiu.lu@intel.com>
529
530 * i387-tdep.c (i387_collect_xsave): Replace abort with
531 internal_error.
532
ad443146
SS
5332010-04-08 Stan Shebs <stan@codesourcery.com>
534
535 * breakpoint.c (default_collect_info): New function.
536 (breakpoints_info): Call it.
537 (maintenance_info_breakpoints): Ditto.
538 (tracepoints_info): Ditto.
539
40936b0d
L
5402010-04-08 H.J. Lu <hongjiu.lu@intel.com>
541
542 * i387-tdep.c (i387_collect_xsave): Re-indent.
543
3a13a53b
L
5442010-04-08 H.J. Lu <hongjiu.lu@intel.com>
545
546 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
547 if HAVE_PTRACE_GETFPXREGS is defined.
548 (i386_linux_read_description): Set have_ptrace_getfpxregs and
549 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
550
551 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
552 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
553 if .reg-xfp section doesn't exist.
554 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
555
556 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
557
558 * i386-tdep.c: Include "features/i386/i386-mmx.c".
559 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
560 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
561 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
562 (i386_gdbarch_init): Update comments.
563 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
564
565 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
566
567 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
568
569 * features/Makefile (i386/i386-mmx-expedite): New.
570 (i386/i386-mmx-linux-expedite): Likewise.
571 ($(outdir)/i386/i386-mmx.dat): Likewise.
572 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
573
574 * features/i386/i386-mmx-linux.c: New.
575 * features/i386/i386-mmx-linux.xml: Likewise.
576 * features/i386/i386-mmx.c: Likewise.
577 * features/i386/i386-mmx.xml: Likewise.
578 * regformats/i386/i386-mmx-linux.dat: Likewise.
579 * regformats/i386/i386-mmx.dat: Likewise.
580
581 * features/Makefile (WHICH): Add i386/i386-mmx and
582 i386/i386-mmx-linux.
583
08001717
DE
5842010-04-08 Doug Evans <dje@google.com>
585
586 * source.c (openp): Skip $cdir in PATH.
587
fff5cc64
PM
5882010-04-08 Phil Muldoon <pmuldoon@redhat.com>
589
590 PR python/11417
fff5cc64 591 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
592 a NULL address.
593 (gdbpy_create_lazy_string_object): Allow strings with a NULL
594 address and a zero length.
fff5cc64 595
f8c4f480
HZ
5962010-04-08 Hui Zhu <teawater@gmail.com>
597
598 * i386-tdep.c (i386_process_record): Add support for insn
599 rdtsc.
600
eb5cda86
DE
6012010-04-07 Doug Evans <dje@google.com>
602
603 * python/python.c (source_python_script): Use ensure_python_env
604 to prepare environment for script.
605
a055a187
L
6062010-04-07 H.J. Lu <hongjiu.lu@intel.com>
607
608 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
609 <sys/uio.h> and "i386-xstate.h".
610 (PTRACE_GETREGSET): New.
611 (PTRACE_SETREGSET): Likewise.
612 (have_ptrace_getregset): Likewise.
613 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
614 registers.
615 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
616 registers.
617 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
618 (amd64_linux_store_inferior_registers): Likewise.
619 (amd64_linux_read_description): Check and enable AVX target
620 descriptions.
621
622 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
623 and "features/i386/amd64-avx-linux.c".
624 (amd64_linux_regset_sections): New.
625 (amd64_linux_core_read_description): Check and enable AVX
626 target description.
627 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
628 set_gdbarch_core_regset_sections.
629 (_initialize_amd64_linux_tdep): Call
630 initialize_tdesc_amd64_avx_linux.
631
632 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
633 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
634 (tdesc_amd64_avx_linux): New.
635 (amd64_linux_update_xstateregset): Likewise.
636
637 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
638 (amd64_ymm_names): New.
639 (amd64_ymmh_names): Likewise.
640 (amd64_register_name): Likewise.
641 (amd64_supply_xstateregset): Likewise.
642 (amd64_collect_xstateregset): Likewise.
643 (amd64_supply_xsave): Likewise.
644 (amd64_collect_xsave): Likewise.
645 (AMD64_NUM_REGS): Removed.
646 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
647 %xmmN if AVX is available.
648 (amd64_pseudo_register_name): Support pseudo YMM registers.
649 (amd64_regset_from_core_section): Support .reg-xstate section.
650 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
651 and ymm0h_regnum. Call set_gdbarch_register_name.
652 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
653
654 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
655 AMD64_YMM15H_REGNUM.
656 (AMD64_NUM_REGS): New.
657 (amd64_supply_xsave): Likewise.
658 (amd64_collect_xsave): Likewise.
659 (amd64_register_name): Removed.
660 (amd64_register_type): Likewise.
661
31aeac78
L
6622010-04-07 H.J. Lu <hongjiu.lu@intel.com>
663
664 * i387-tdep.c: Include "i386-xstate.h".
665 (XSAVE_XSTATE_BV_ADDR): New.
666 (xsave_avxh_offset): Likewise.
667 (XSAVE_AVXH_ADDR): Likewise.
668 (i387_supply_xsave): Likewise.
669 (i387_collect_xsave): Likewise.
670
671 * i387-tdep.h (I387_NUM_YMM_REGS): New.
672 (I387_YMM0H_REGNUM): Likewise.
673 (I387_YMMENDH_REGNUM): Likewise.
674 (i387_supply_xsave): Likewise.
675 (i387_collect_xsave): Likewise.
676
c131fcee
L
6772010-04-07 H.J. Lu <hongjiu.lu@intel.com>
678
679 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
680 <sys/uio.h> and "i386-xstate.h".
681 (PTRACE_GETREGSET): New.
682 (PTRACE_SETREGSET): Likewise.
683 (fetch_xstateregs): Likewise.
684 (store_xstateregs): Likewise.
685 (GETXSTATEREGS_SUPPLIES): Likewise.
686 (regmap): Include 8 upper YMM registers.
687 (i386_linux_fetch_inferior_registers): Support XSAVE extended
688 state.
689 (i386_linux_store_inferior_registers): Likewise.
690 (i386_linux_read_description): Check and enable AVX target
691 descriptions.
692
693 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
694 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
695 (i386_linux_regset_sections): Add ".reg-xstate".
696 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
697 (i386_linux_core_read_xcr0): New.
698 (i386_linux_core_read_description): Check and enable AVX target
699 description.
700 (i386_linux_init_abi): Set xsave_xcr0_offset.
701 (_initialize_i386_linux_tdep): Call
702 initialize_tdesc_i386_avx_linux.
703
704 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
705 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
706 (i386_linux_core_read_xcr0): New.
707 (tdesc_i386_avx_linux): Likewise.
708 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
709
710 * i386-tdep.c: Include "i386-xstate.h" and
711 "features/i386/i386-avx.c".
712 (i386_ymm_names): New.
713 (i386_ymmh_names): Likewise.
714 (i386_ymmh_regnum_p): Likewise.
715 (i386_ymm_regnum_p): Likewise.
716 (i386_xmm_regnum_p): Likewise.
717 (i386_register_name): Likewise.
718 (i386_ymm_type): Likewise.
719 (i386_supply_xstateregset): Likewise.
720 (i386_collect_xstateregset): Likewise.
721 (i386_sse_regnum_p): Removed.
722 (i386_pseudo_register_name): Support pseudo YMM registers.
723 (i386_pseudo_register_type): Likewise.
724 (i386_pseudo_register_read): Likewise.
725 (i386_pseudo_register_write): Likewise.
726 (i386_dbx_reg_to_regnum): Return %ymmN register number for
727 %xmmN if AVX is available.
728 (i386_regset_from_core_section): Support .reg-xstate section.
729 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
730 (i386_process_record): Replace i386_sse_regnum_p with
731 i386_xmm_regnum_p.
732 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
733 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 734 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
735 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
736 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
737 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
738 Set ymm0_regnum.
739 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
740
741 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
742 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
743 i386_ymm_type.
744 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
745 (I386_AVX_NUM_REGS): New.
746 (i386_xmm_regnum_p): Likewise.
747 (i386_ymm_regnum_p): Likewise.
748 (i386_ymmh_regnum_p): Likewise.
749
750 * common/i386-xstate.h: New.
751
98adf0f3
L
7522010-04-07 H.J. Lu <hongjiu.lu@intel.com>
753
754 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
755
756 * features/Makefile (WHICH): Add i386/i386-avx,
757 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
758 (i386/i386-avx-expedite): New.
759 (i386/i386-avx-linux-expedite): Likewise.
760 (i386/x86-64-avx-expedite):Likewise.
761 (i386/x86-64-avx-linux-expedite): Likewise.
762 ($(outdir)/i386/i386-avx.dat): New dependency.
763 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
764 ($(outdir)/i386/x86-avx-64.dat): Likewise.
765 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
766
767 * features/i386/32bit-avx.xml: New.
768 * features/i386/64bit-avx.xml: Likewise.
769 * features/i386/i386-avx-linux.c: Likewise.
770 * features/i386/i386-avx-linux.xml: Likewise.
771 * features/i386/i386-avx.c: Likewise.
772 * features/i386/i386-avx.xml: Likewise.
773 * features/i386/x86-64-avx-linux.c: Likewise.
774 * features/i386/x86-64-avx-linux.xml: Likewise.
775 * features/i386/x86-64-avx.c: Likewise.
776 * features/i386/x86-64-avx.xml: Likewise.
777 * regformats/i386/i386-avx-linux.dat: Likewise.
778 * regformats/i386/i386-avx.dat: Likewise.
779 * regformats/i386/x86-64-avx-linux.dat: Likewise.
780 * regformats/i386/x86-64-avx.dat: Likewise.
781
05159abe
DE
7822010-04-07 Doug Evans <dje@google.com>
783
784 * top.c (source_file_name): Make const char *.
785 * top.h (source_file_name): Update.
786 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
787 const char *.
788 (script_from_file): Change `file' arg to const char *.
789 * cli/cli-script.h (script_from_file): Update.
790
96e39866
DE
7912010-04-06 Doug Evans <dje@google.com>
792
793 * cli/cli-cmds.c (source_command): Run cleanups.
794
3149d8c1
SS
7952010-04-06 Stan Shebs <stan@codesourcery.com>
796
797 * defs.h (char_ptr): Move typedef here from...
798 * ada-lang.c (char_ptr): Remove.
799 * charset.c (char_ptr): Remove.
800 * tracepoint.h (struct uploaded_string): Remove.
801 (struct uploaded_tp): Use vectors for string arrays.
802 * tracepoint.c (trace_save): Use vectors of actions.
803 (parse_tracepoint_definition): Ditto.
804 (get_uploaded_tp): Clear vectors.
805 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
806 (next_cmd): Change to an int.
807 (read_next_cmd): Use vector of command strings.
808
4cc23ede
DE
8092010-04-06 Doug Evans <dje@google.com>
810
811 * top.h (source_script, cd_command): Delete.
812 * main.c: #include "cli/cli-cmds.h"
813
bd333fb7
KB
8142010-04-06 Kevin Buettner <kevinb@redhat.com>
815
816 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
817 type in bytes, not bits.
818
ec8a089a
PM
8192010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
820
821 * stabsread.c (define_symbol): Add support for char
822 and string constants.
823
2244ba2e
PM
8242010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
825
826 Remove remaining "%ll" uses.
827 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
828 hex_string call.
829 * rs6000-nat.c (rs6000_ptrace64): Idem.
830 * solib-pa64.c (pa64_current_sos): Idem.
831 * solib-spu.c (spu_current_sos): Idem.
832 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
833 plongest call.
834 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
835 phex (VAR, 8) call.
836 * sh64-tdep.c (sh64_show_media_regs): Idem.
837
fce3c1f0
SS
8382010-04-05 Stan Shebs <stan@codesourcery.com>
839
840 * tracepoint.c: Include gdbcore.h.
841 (tfile_xfer_partial): Return partial results, also try reading
842 from executable.
843 (tfile_has_all_memory): New function.
844 (init_tfile_ops): Use it.
845
626ea16d
SDJ
8462010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
847
848 PR gdb/10736:
849 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
850 the changes in data-directory.
851 (init_sysinfo): Reload the syscall XML file if the data-directory
852 has changed.
853
1f7ccab2
JK
8542010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
855
856 Code cleanup.
857 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
858
d77f58be
SS
8592010-04-04 Stan Shebs <stan@codesourcery.com>
860 Nathan Sidwell <nathan@codesourcery.com>
861
862 * breakpoint.c (breakpoint_1): Add filter argument, return number of
863 breakpoints printed.
864 (is_hardware_watchpoint): Make argument const.
865 (is_watchpoint): Ditto.
866 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
867 use it everywhere.
868 (breakpoints_info): Pass NULL to breakpoint_1.
869 (maintenance_info_breakpoints): Ditto.
870 (watchpoints_info): New function.
871 (tracepoints_info): Use breakpoint_1 filter.
872 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
873 (_initialize_breakpoint): Make "info watchpoints" its own command.
874 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
875 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
876
af54718e
SS
8772010-04-04 Stan Shebs <stan@codesourcery.com>
878
879 * tracepoint.c (tfile_fetch_registers): Add fallback case.
880
74d1f91e
JK
8812010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
882
883 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
884 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
885
91d91ceb
JK
8862010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
887
888 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
889 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
890
60531b24
JK
8912010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
892
893 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
894 code form.
895
a3c4230a
HZ
8962010-04-02 Hui Zhu <teawater@gmail.com>
897
898 * i386-tdep.c (OT_DQUAD): New enum.
899 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
900 SSE3, SSSE3 and SSE4.
901
b15758fe
HZ
9022010-04-02 Hui Zhu <teawater@gmail.com>
903
904 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
905 "*addr = 0".
906
afd02f27
PA
9072010-04-02 Pedro Alves <pedro@codesourcery.com>
908
909 * tracepoint.c (trace_dump_actions): New, factored out from
910 trace_dump_command, and adjusted to recurse into while-stepping's
911 action list.
912 (trace_dump_command): Use it.
913
5cea2a26
PA
9142010-04-02 Pedro Alves <pedro@codesourcery.com>
915
916 * breakpoint.h (struct counted_command_line): Moved definition to
917 breakpoint.c, and forward declare.
918 (breakpoint_commands): Declare.
919 * breakpoint.c (struct counted_command_line): Moved here.
920 (breakpoint_commands): New.
921 * tracepoint.c (encode_actions): Use breakpoint_commands.
922 * remote.c (remote_download_tracepoint): Ditto.
923
7c47795c
L
9242010-04-01 H.J. Lu <hongjiu.lu@intel.com>
925
926 * remote.c (remote_parse_stop_reply): Use hex_string instead
927 of phex_nz for error.
928
fff87407
SS
9292010-04-01 Stan Shebs <stan@codesourcery.com>
930 Nathan Sidwell <nathan@codesourcery.com>
931
932 * tracepoint.h (enum actionline_type): Remove.
933 (validate_actionline): Change return to void.
934 * tracepoint.c (report_agent_reqs_errors): New function.
935 (validate_actionline): Call it, change return to void, report errors
936 more consistently.
937 (collect_symbol): Call report_agent_reqs_errors.
938 (encode_actions_1): Ditto.
939 (encode_actions): Don't expect a result from validate_actionline.
940
615bcdef
SS
9412010-04-01 Stan Shebs <stan@codesourcery.com>
942
943 * tracepoint.c (trace_start_command): Confirm if trace is running.
944 (trace_stop_command): Error if trace not running.
945
fe01d668
L
9462010-04-01 H.J. Lu <hongjiu.lu@intel.com>
947
948 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
949 (AMD64_NUM_LOWER_BYTE_REGS): New.
950 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
951 (amd64_pseudo_register_write): Likewise.
952 (amd64_init_abi): Set num_byte_regs to 20.
953
86b17b60
PA
9542010-04-01 Pedro Alves <pedro@codesourcery.com>
955
956 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
957 (prev_breakpoint_count): New.
958 (set_breakpoint_count): Adjust.
959 (rbreak_start_breakpoint_count): New.
960 (start_rbreak_breakpoints): Adjust.
961 (end_rbreak_breakpoints): Adjust.
962 (struct commands_info) <arg>: New field.
963 (do_map_commands_command): Tweak output to include breakpoint spec
964 range.
965 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
966 ARG was empty on entry. Set INFO's arg.
967 (create_breakpoint): Adjust.
968
969 * NEWS: Clarify `commands' changes.
970
2c58c0a9
PA
9712010-04-01 Pedro Alves <pedro@codesourcery.com>
972
973 * tracepoint.c: Include stack.h.
974 (struct add_local_symbols_data): New.
975 (do_collect_symbol): New.
976 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
977 iterate_over_block_local_vars.
978 * stack.c (print_block_frame_locals): Rewrite as ...
979 (iterate_over_block_locals): ... this. Take a callback function
980 pointer and generic data pointer, and call that instead of
981 print_variable_and_value.
982 (struct print_variable_and_value_data): New.
983 (do_print_variable_and_value): New.
984 (iterate_over_block_local_vars): New, abstracted out from
985 print_frame_local_vars.
986 (print_frame_local_vars): Rewrite using
987 iterate_over_block_local_vars.
988 (iterate_over_block_arg_vars): New, abstracted out from
989 print_frame_arg_vars.
990 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
991 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
992 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
993
d476da0e
RE
9942010-03-31 Richard Earnshaw <rearnsha@arm.com>
995
996 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 997 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
998 PC register.
999
8072405b
JK
10002010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1001
1002 Fix crash on reading wrong function declaration DWARF.
1003 * dwarf2read.c (read_subroutine_type): New variable void_type.
1004 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
1005 more close to their use.
1006
8bf6485c
SS
10072010-03-31 Stan Shebs <stan@codesourcery.com>
1008
1009 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 1010 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
1011 * tracepoint.c (save_trace_state_variables): New function.
1012 * tracepoint.h (save_trace_state_variables): Declare it.
1013
2ae2a0b7
PM
10142010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
1015
1a161f72 1016 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 1017
86ffb506
KS
10182010-03-30 Keith Seitz <keiths@redhat.com>
1019
1020 * c-typeprint.c (c_type_print_args): Don't print "void"
1021 for java, regardless of whether it is TYPE_PROTOTYPED.
1022 Use the passed-in language instead of current_language.
1023 (c_type_print_varspec_suffix): Use current_language instead
1024 of assuming language_c.
1025 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
1026 any return type specifier from the physname.
1027
956c2c8b
PA
10282010-03-30 Pedro Alves <pedro@codesourcery.com>
1029
1030 * tui/tui-interp.c (tui_is_toplevel): New.
1031 (tui_init): Set it.
1032 (tui_allowed_p): New.
1033 * tui/tui.c (tui_enable): Check if the TUI is allowed before
1034 enabling it.
1035 * tui/tui.h (tui_allowed_p): Declare.
1036
98e5a990
TT
10372010-03-30 Ozkan Sezer <sezeroz@gmail.com>
1038
1039 * serial.h: Include winsock2.h before windows.h.
1040
c8d5aac9
L
10412010-03-30 H.J. Lu <hongjiu.lu@intel.com>
1042
1043 * NEWS: Mention xmlRegisters= in qSupported packet.
1044
1045 * i386-tdep.c: Include "remote.h".
1046 (_initialize_i386_tdep): Call register_remote_support_xml.
1047
1048 * remote.c (remote_support_xml): New.
1049 (register_remote_support_xml): Likewise.
1050 (remote_query_supported_append): Likewise.
1051 (remote_query_supported): Support remote_support_xml.
1052
1053 * remote.h (register_remote_support_xml): New.
1054
76a2b958
SS
10552010-03-29 Stan Shebs <stan@codesourcery.com>
1056
42e08e69
SS
1057 * tracepoint.c (trace_find_line_command): Remove dead code.
1058
409873ef
SS
1059 * tracepoint.h (struct uploaded_string): New struct.
1060 (struct uploaded_tp): New fields for source strings.
1061 * breakpoint.c (this_utp, next_cmd): New globals.
1062 (read_uploaded_action): New function.
1063 (create_tracepoint_from_upload): Fill in more parts
1064 of a tracepoint.
1065 * tracepoint.c (encode_source_string): New function.
1066 (trace_save): Write out source strings, fix error checks.
1067 (parse_tracepoint_definition): Add source string parsing.
1068 * remote.c (PACKET_TracepointSource): New packet type.
1069 (remote_download_command_source): New function.
1070 (remote_download_tracepoint): Download source pieces also.
1071 (_initialize_remote): Add packet config command.
1072
a0405854
SS
1073 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
1074 expression handler.
1075
76a2b958
SS
1076 * tracepoint.c (start_tracing): Check tracepoints before sending
1077 commands to target, don't start if all tracepoints disabled.
1078
d350db38
PA
10792010-03-28 Pedro Alves <pedro@codesourcery.com>
1080
12f2d601 1081 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 1082
8b9b7ef8
SS
10832010-03-26 Stan Shebs <stan@codesourcery.com>
1084
1085 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
1086
9766ced4
SS
10872010-03-26 Tom Tromey <tromey@redhat.com>
1088
1089 * breakpoint.c (commands_command_1): Duplicate 'arg'.
1090
059acae7
UW
10912010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1092
1093 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
1094 (skip_prologue_sal): Remove local definition.
1095 (resolve_sal_pc): Remove now unnecessary code.
1096 * linespec.c (minsym_found): Call skip_prologue_sal.
1097 * symtab.c (find_function_start_pc): Remove.
1098 (find_function_start_sal): Extract prologue skipping into ...
1099 (skip_prologue_sal): ... this new function. Handle code both
1100 with and without debug info. Respect SAL's explicit_pc and
1101 explicit_line flags. Inline old find_function_start_pc.
1102 * symtab.h (find_function_start_pc): Remove.
1103 (skip_prologue_sal): Add prototype.
1104
4a811a97
UW
11052010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1106
1107 * dwarf2read.c (read_func_scope): Also scan specification DIEs
1108 for DW_TAG_imported_module children.
1109
907af001
UW
11102010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1111
1112 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
1113 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
1114 * completer.c (add_struct_fields): Fix inverted logic.
1115
dde2d684
UW
11162010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1117
1118 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
1119
a609a0c8
PA
11202010-03-26 Pedro Alves <pedro@codesourcery.com>
1121
1122 * tracepoint.c (current_trace_status): Don't make sure error_desc
1123 is non-NULL here.
1124 (parse_trace_status): Release a previous error_desc string, and
1125 set it to NULL by default. If stop reason is tracepoint_error,
1126 make sure error_desc is not left NULL.
1127
610197fd
PA
11282010-03-26 Pedro Alves <pedro@codesourcery.com>
1129
1130 * tracepoint.c (trace_save): Remove X from tracepoint error
1131 description.
1132
99b5e152
PA
11332010-03-26 Pedro Alves <pedro@codesourcery.com>
1134
1135 * tracepoint.c (parse_trace_status): Don't allow plain strings in
1136 the terror description. Don't expect an X prefix.
1137
6c28cbf2
SS
11382010-03-25 Stan Shebs <stan@codesourcery.com>
1139
1140 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
1141 (struct trace_status): New field error_desc.
1142 * tracepoint.c (stop_reason_names): Add terror.
1143 (current_trace_status): Ensure non-NULL error description.
1144 (trace_status_command): Add error report.
1145 (trace_status_mi): Ditto.
1146 (trace_save): Add special case for error description.
1147 (parse_trace_status): Add case for errors.
1148
418835cc
KS
11492010-03-25 Keith Seitz <keiths@redhat.com>
1150
1151 * dwarf2read.c (read_subroutine_type): If the compilation unit
1152 language is Java, mark any formal parameter named "this" as
1153 artificial (GCC/43521).
1154 (dwarf2_name): Add special handling for Java constructors.
1155
aa7d318d
TT
11562010-03-25 Tom Tromey <tromey@redhat.com>
1157
1158 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
1159 * infrun.c (handle_inferior_event): Change initialization of
1160 stop_stack_dummy.
1161 (handle_inferior_event): Change assignment to stop_stack_dummy.
1162 (normal_stop): Update use of stop_stack_dummy.
1163 (struct inferior_status) <stop_stack_dummy>: Change type.
1164 * inferior.h (stop_stack_dummy): Update.
1165 * infcmd.c (stop_stack_dummy): Change type.
1166 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
1167 function.
1168 (call_function_by_hand): Call set_std_terminate_breakpoint.
1169 Rewrite std::terminate handling.
1170 * breakpoint.h (enum bptype) <bp_std_terminate,
1171 bp_std_terminate_master>: New.
1172 (enum stop_stack_kind): New.
1173 (struct bpstat_what) <call_dummy>: Change type.
1174 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
1175 Declare.
1176 * breakpoint.c (create_std_terminate_master_breakpoint): New
1177 function.
1178 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
1179 Call create_std_terminate_master_breakpoint.
1180 (print_it_typical): Handle new breakpoint kinds.
1181 (bpstat_stop_status): Handle bp_std_terminate_master.
1182 (bpstat_what): Correctly set call_dummy field. Handle
1183 bp_std_terminate_master and bp_std_terminate.
1184 (print_one_breakpoint_location): Update.
1185 (allocate_bp_location): Update.
1186 (set_std_terminate_breakpoint): New function.
1187 (delete_std_terminate_breakpoint): Likewise.
1188 (create_thread_event_breakpoint): Update.
1189 (delete_command): Update.
1190 (breakpoint_re_set_one): Update.
1191 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
1192
82ccf5a5
JK
11932010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1194
1195 * symfile.c (build_section_addr_info_from_bfd): New.
1196 (build_section_addr_info_from_objfile): Base it on
1197 build_section_addr_info_from_bfd.
1198 (addrs_section_compar, addrs_section_sort): New.
1199 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
1200 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
1201 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
1202
737c4c52
MS
12032010-03-24 Michael Snyder <msnyder@localhost.localdomain>
1204
8d95cc3b 1205 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
1206 Remove unused local variable.
1207
95a42b64
TT
12082010-03-24 Tom Tromey <tromey@redhat.com>
1209
1210 PR breakpoints/9352:
1211 * NEWS: Mention changes to `commands' and `rbreak'.
1212 * symtab.c (do_end_rbreak_breakpoints): New function.
1213 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
1214 end_rbreak_breakpoints.
1215 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
1216 (set_breakpoint_count): Likewise. Clear last_was_multi.
1217 (multi_start, multi_end, last_was_multi): New globals.
1218 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
1219 functions.
1220 (struct commands_info): New
1221 (do_map_commands_command): New function.
1222 (commands_command_1): New function.
1223 (commands_command): Use it.
1224 (commands_from_control_command): Likewise.
1225 (do_delete_breakpoint): New function.
1226 (delete_command): Use it.
1227 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
1228 (do_map_disable_breakpoint): New function.
1229 (disable_command): Use it.
1230 (do_map_enable_breakpoint): New function.
1231 (enable_command): Use it.
1232 (enable_once_breakpoint): Add argument.
1233 (enable_once_command): Update.
1234 (enable_delete_breakpoint): Add argument.
1235 (enable_delete_command): Update.
1236 (break_command_really): Set last_was_multi when needed.
1237 (check_tracepoint_command): Fix formatting.
1238 (validate_commands_for_breakpoint): New function.
1239 (breakpoint_set_commands): Use it.
1240 (tracepoint_save_command): Update.
1241 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
1242 Declare.
1243
9add0f1b
TT
12442010-03-24 Tom Tromey <tromey@redhat.com>
1245
1246 * breakpoint.h (struct counted_command_line): New struct.
1247 (struct breakpoint) <commands>: Change type.
1248 (struct bpstats) <commands>: Change type.
1249 <commands_left>: New field.
1250 * breakpoint.c (alloc_counted_command_line): New function.
1251 (incref_counted_command_line): Likewise.
1252 (decref_counted_command_line): Likewise.
1253 (do_cleanup_counted_command_line): Likewise.
1254 (make_cleanup_decref_counted_command_line): Likewise.
1255 (breakpoint_set_commands): Use decref_counted_command_line and
1256 alloc_counted_command_line.
1257 (commands_command): Don't error if breakpoint commands are
1258 executing.
1259 (commands_from_control_command): Likewise.
1260 (bpstat_free): Update.
1261 (bpstat_copy): Likewise.
1262 (bpstat_clear_actions): Likewise.
1263 (bpstat_do_actions_1): Likewise.
1264 (bpstat_stop_status): Likewise.
1265 (print_one_breakpoint_location): Likewise.
1266 (delete_breakpoint): Likewise.
1267 (bpstat_alloc): Initialize new field.
1268 (tracepoint_save_command): Update.
1269 * tracepoint.c (encode_actions): Update.
1270 (trace_dump_command): Update.
1271
a6c727b2
DJ
12722010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1273
1274 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1275 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1276 (read_structure_type): For RealView, set TYPE_STUB on structures with
1277 no byte size and no children.
1278 (read_subroutine_type): Mark functions as prototyped by default.
1279 * symtab.c (producer_is_realview): New function.
1280 * symtab.h (expand_line_sal): Fix declaration formatting.
1281 (producer_is_realview): Declare.
1282
0d39a070
DJ
12832010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1284
1285 * arm-tdep.c (skip_prologue_function): New function.
1286 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1287 (thumb_analyze_prologue): Document return value. Recognize more
1288 Thumb instructions, skippable calls, and some Thumb-2 instructions.
1289 Add debug output.
1290 (arm_skip_prologue): Remove call dummy check. Check the prologue
1291 for non-GNU compilers.
1292 (arm_instruction_changes_pc): New function.
1293 (arm_analyze_prologue): New function, broken out from
1294 arm_scan_prologue. Recognize more ARM instructions and skippable
1295 calls. Update comments. Handle NULL cache. Return the address
1296 of the first unrecognized instruction. Do not skip past other
1297 instructions which change control flow. Add debug output.
1298 (arm_scan_prologue): Use arm_analyze_prologue.
1299 (ARM_PC_32): Delete.
1300 (shifted_reg_val): Simplify ARM_PC_32 check.
1301
4baf5cf4
VP
13022010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1303
1304 * tracepoint.c (tvariables_info_1): Actually compute
1305 the number of rows in the result.
1306
4a5e7a5b
PA
13072010-03-24 Pedro Alves <pedro@codesourcery.com>
1308
1309 * remote.c (crc32): Constify `buf' parameter.
1310 (remote_verify_memory): New, abstracted out from...
1311 (compare_sections_command): ... this. Remove hardcoded target
1312 checks.
1313 (init_remote_ops): Install remote_verify_memory.
1314 * target.c (target_verify_memory): New.
1315 * target.h (struct target_ops) <to_verify_memory>: New field.
1316 (target_verify_memory): Declare.
1317
011aacb0
VP
13182010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1319
1320 Implement -trace-save.
1321
1322 * mi-cmds.h (mi_cmds_trace_save): Declare.
1323 * mi-cmds.c (mi_cmds): Register -trace-save.
1324 * mi/mi-main.c (mi_cmd_trace_save): New.
1325 * remote.c (remote_save_trace_data): Take const parameter.
1326 * target.h (struct target_ops::to_save_trace_data): Take
1327 const parameter.
1328 * target.c (update_current_target): Adjust to the above.
1329 * tracepoint.c (trave_save): New, extracted from
1330 (trace_save_command): ...this.
1331 (tfile_trace_find): Remove message that is unnecessary now
1332 that 'tfind' reports found frame.
1333 * tracepoint.h (trace_save): Declare.
1334
f197e0f1
VP
13352010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1336
1337 Implement -trace-find.
1338
1339 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1340 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1341 * mi/mi-main.c (mi_cmd_trace_find): New.
1342 * target.h (struct target_ops): Document to_trace_find.
1343 * tracepoint.h (tfind_1): Declare.
1344 * tracepoint.c (finish_tfind_command): Rename to...
1345 (tfind_1): ...this.
1346 * remote.c (remote_trace_find): Return -1 if target say
1347 there's no frame. Improve error diagnostics.
1348
40e1c229
VP
13492010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1350
1351 -trace-define-variable and -trace-list-variables.
1352
1353 * tracepoint.c (create_trace_state_variable): Make
1354 private copy of name, as opposed to assuming the
1355 pointer lives forever.
1356 (tvariables_info_1): New.
1357 (tvariables_info): Use the above.
1358 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1359 Declare.
1360 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1361 and -trace-list-variables.
1362 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1363 (mi_cmd_trace_list_variables): New.
1364 * mi/mi-main.c (mi_cmd_trace_define_variable)
1365 (mi_cmd_trace_list_variables): New.
1366
9b4c786c
VP
13672010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1368
1369 Implement -break-passcount.
1370
1371 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1372 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1373 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1374
f224b49d
VP
13752010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1376
1377 -trace-start/-trace-end/-trace-status.
1378
1379 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1380 and -trace-stop.
1381 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1382 (mi_cmd_trace_stop): Declare.
1383 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1384 (mi_cmd_trace_stop): New.
1385 * tracepoint.c (start_tracing): New, extracted from...
1386 (trace_start_command): ...this.
1387 (trace_status_mi): New.
1388 * tracepoint.h (struct trace_status): Document
1389 stopping_tracepoint.
1390 (start_tracing, stop_tracing, trace_status_mi): Declare.
1391
6534d786
VP
13922010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1393
1394 Implement creating tracepoints with -break-insert.
1395
1396 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1397 to mean that tracepoint should be created.
1398
51661e93
VP
13992010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1400
1401 * breakpoint.c (check_no_tracepoint_commands): Use
1402 current spelling of 'teval'.
1403
a7bdde9e
VP
14042010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1405
1406 Unify actions and commands
1407
1408 * defs.h (read_command_lines, read_command_lines_1): New
1409 parameters validator and closure.
1410 * tracepoint.h (struct action_line): Remove.
1411 * breakpoint.h (struct breakpoint): Remove the 'actions'
1412 field.
1413 * defs.h (enum command_control_type): New value
1414 while_stepping_control.
1415 (struct command_line): Add comments.
1416 * breakpoint.c (breakoint_is_tracepoint): New.
1417 (breakpoint_set_commands): For tracepoints,
1418 verify the commands are permissible.
1419 (check_tracepoint_commands): New.
1420 (commands_command): Require that each new line is validated using
1421 check_tracepoint_command, if we set commands for a tracepoint.
1422 (create_tracepoint_from_upload): Likewise.
1423 (print_one_breakpoint_location): Remove the code to print
1424 actions specifically.
1425 (tracepoint_save_command): Relay to print_command_lines.
1426 * cli/cli-script.c (process_next_line): New parameters validator
1427 and closure. Handle 'while-stepping'. Call validator if not null.
1428 (read_command_lines, read_command_lines1): Likewise.
1429 (recurse_read_control_structure): New parameters validator and
1430 closure. Handle while_stepping_control.
1431 (print_command_lines): Handle while-stepping.
1432 (get_command_line, define_command, document_command): Adjust.
1433 * remote.c (remote_download_tracepoint): Adjust.
1434 * tracepoint.c (make_cleanup_free_actions, read_actions)
1435 (free_actions, do_free_actions_cleanup): Remove.
1436 (trace_actions_command): Use read_command_lines.
1437 (validate_actionline): Use error in one place.
1438 (encode_actions_1): New, extracted from...
1439 (encode_actions): ...this. Also use cleanups for exception
1440 safety.
1441 (trace_dump_command): Adjust.
1442 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1443 it's tracepoint.
1444
64e3cf3d
MF
14452010-03-23 Mike Frysinger <vapier@gentoo.org>
1446
1447 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1448
52e9fde8
SS
14492010-03-22 Stan Shebs <stan@codesourcery.com>
1450
1451 * value.c (value_static_field): Be lazy about the field's value.
1452
508ccb1f
TT
14532010-03-22 Reid Kleckner <reid@kleckner.net>
1454
1455 PR gdb/11094
1456 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1457 bp_jit_event.
1458 (disable_breakpoints_in_shlibs): Likewise.
1459
acebe513
UW
14602010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1461
1462 * dwarf2read.c (partial_die_parent_scope): Work around buggy
1463 GCC 4.1 debug info generation (GCC PR c++/28460).
1464 (determine_prefix): Likewise.
1465
957b8b5a
DJ
14662010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
1467
1468 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1469 get_current_arch.
1470 * tui/tui-layout.c (extract_display_start_addr): Likewise.
1471
3b11a015
SS
14722010-03-19 Stan Shebs <stan@codesourcery.com>
1473
1474 * ax-gdb.c (gen_fetch): Handle bool.
1475 (gen_usual_unary): Ditto.
1476 (gen_cast): Ditto.
1477 (gen_equal): New function.
1478 (gen_less): New function.
1479 (gen_expr_binop_rest): Call them, also return integer type from
1480 logical operations.
1481 (gen_expr): Ditto.
1482
20781792
TT
14832010-03-19 Tom Tromey <tromey@redhat.com>
1484
1485 * jv-lang.c (jv_dynamics_objfile_data_key)
1486 (jv_type_objfile_data_key): New globals.
1487 (class_symtab): Move earlier.
1488 (jv_per_objfile_free): New function.
1489 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
1490 parameter.
1491 Remove ancient #if 1.
1492 (add_class_symbol): Remove redundant declaration.
1493 (java_lookup_class): Use alloc_type, not alloc_type_arch.
1494 (java_link_class_type): Mark as static. Update.
1495 (jv_clear_object_type): New function.
1496 (set_java_object_type): Likewise.
1497 (get_java_object_type): Use set_java_object_type.
1498 (is_object_type): Likewise.
1499 (_initialize_java_language): Register new objfile keys.
1500 (get_java_class_symtab): Add 'gdbarch' parameter.
1501 (add_class_symtab_symbol): Update.
1502 (type_from_class): Update.
1503
cf3e25ca
SS
15042010-03-19 Stan Shebs <stan@codesourcery.com>
1505
8d95cc3b 1506 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 1507
f1ae44c9 15082010-03-18 Joel Brobecker <brobecker@adacore.com>
1509
1510 GDB 7.1 released.
1511
4daf5ac0
SS
15122010-03-18 Stan Shebs <stan@codesourcery.com>
1513 Pedro Alves <pedro@codesourcery.com>
1514
1515 * target.h (struct target_ops): New method
1516 to_set_circular_trace_buffer.
1517 (target_set_circular_trace_buffer): New macro.
1518 * target.c (update_current_target): Add
1519 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1520 default behavior.
1521 * remote.c (remote_set_circular_trace_buffer): New function.
1522 (init_remote_ops): Add it to vector.
1523 * tracepoint.h (struct trace_status): New field traceframes_created,
1524 change buffer_size and buffer_free to int.
1525 * tracepoint.c (circular_trace_buffer): New global.
1526 (start_tracing): Send values of disconnected tracing and circular
1527 trace buffer settings.
1528 (set_circular_trace_buffer): New function.
1529 (parse_trace_state): Handle total space and frames created.
1530 (trace_status_command): Display total space and total frames
1531 created.
1532 (trace_save): Write out new status values.
1533 (parse_trace_status): Set traceframe_count, traceframes_created,
1534 buffer_free and buffer_size to -1 by default.
1535 (_initialize_tracepoint): New setshow for circular-trace-buffer.
1536 * NEWS: Mention the circular trace buffer option.
1537
40c549d6
TT
15382010-03-18 Tom Tromey <tromey@redhat.com>
1539
1540 * infcmd.c (finish_command_continuation): Wrap print_return_value
1541 in TRY_CATCH.
1542
e8d05480
JB
15432010-03-18 Joel Brobecker <brobecker@adacore.com>
1544
1545 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1546 DIE has a name before creating the associated partial symbol.
1547 (read_func_scope): Emit a complaint if the subprogram does not
1548 have a name or when we can't extract the subprogram PC bounds.
1549
441b986a
UW
15502010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1551
1552 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1553 instead of selected frame architecture.
1554
4247603b
PA
15552010-03-18 Pedro Alves <pedro@codesourcery.com>
1556
1557 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
1558 a valid selected thread, and that it is not running.
1559 (advance_command): Ditto.
1560 (finish_command): Ditto.
1561
400c6af0
SS
15622010-03-17 Stan Shebs <stan@codesourcery.com>
1563
3a96536b
SS
1564 * ax-gdb.c (require_rvalue): Disallow non-scalars.
1565
573cda03
SS
1566 * infcall.c: Include tracepoint.h.
1567 (call_function_by_hand): Disallow calls in tfind mode.
1568 * infcmd.c: Include tracepoint.h.
1569 (ensure_not_tfind_mode): New function.
1570 (continue_1): Call it.
1571 (step_1) Ditto.
1572 (jump_command): Ditto.
1573 (signal_command): Ditto.
1574 (advance_command): Ditto.
1575 (until_command): Ditto.
1576 (finish_command): Ditto.
1577 * tracepoint.h (disconnect_or_stop_tracing): Declare.
1578
400c6af0
SS
1579 * ax-gdb.h (struct axs_value): New field optimized_out.
1580 (gen_trace_for_var): Add gdbarch argument.
1581 * ax-gdb.c (gen_trace_static_fields): New function.
1582 (gen_traced_pop): Call it, add gdbarch argument.
1583 (gen_trace_for_expr): Update call to it.
1584 (gen_trace_for_var): Ditto, and report optimized-out variables.
1585 (gen_struct_ref_recursive): Check for optimized-out value.
1586 (gen_struct_elt_for_reference): Ditto.
1587 (gen_static_field): Pass gdbarch instead of expression, assume
1588 optimization if field not found.
1589 (gen_var_ref): Set the optimized_out flag.
1590 (gen_expr): Error on optimized-out variable.
1591 * tracepoint.c (collect_symbol): Handle struct-valued vars as
1592 expressions, skip optimized-out variables with computed locations.
1593 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1594 erroring out if location expression missing.
1595 (loclist_tracepoint_var_ref): Don't error out here.
1596
a3b2a86b
TT
15972010-03-17 Tom Tromey <tromey@redhat.com>
1598
1599 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1600 DWARF data is available.
1601
38963c97
DJ
16022010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1603
1604 * symfile.c (generic_load): Reset breakpoints after loading.
1605
ddabfc73
TT
16062010-03-17 Tom Tromey <tromey@redhat.com>
1607
1608 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
1609
d8c09fb5
JK
16102010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1611
1612 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
1613 create_breakpoint call, adjust the parameters.
1614
bbb0eef6
JK
16152010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1616 Chandru <chandru@in.ibm.com>
1617
1618 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
1619 * valarith.c (value_subscripted_rvalue): Suppress error if
1620 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1621
46956e39
HZ
16222010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
1623
1624 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
1625
b8d088ac
JB
16262010-03-16 Joel Brobecker <brobecker@adacore.com>
1627
1628 * ada-tasks.c (task_command_1): Check that the task ptid is valid
1629 before doing the associated thread switch.
1630
322be962
DJ
16312010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1632
1633 * MAINTAINERS: Update my email address.
1634
8cdf0e15
VP
16352010-03-16 Vladimir Prus <vladimir@codesourcery.com>
1636
1637 Simplify MI breakpoint setting.
1638
1639 * breakpoint.c (break_command_really): Make nonstatic and
1640 rename to...
1641 (create_breakpoint): ...this. Rename prior function by this name
1642 to...
1643 (create_breakpoint_sal): ...this.
1644 (create_breakpoints): Rename to...
1645 (create_breakpoints_sal): ...this.
1646 (set_breakpoint): Remove.
1647 * breakpoint.h: Adjust to above changes.
1648 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
1649
b6e7192f
SS
16502010-03-15 Stan Shebs <stan@codesourcery.com>
1651
1652 * ax-gdb.c: Include cp-support.h.
1653 (find_field): Remove.
1654 (gen_primitive_field): New function.
1655 (gen_struct_ref_recursive): New function.
1656 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
1657 of find_field.
1658 (gen_static_field): New function.
1659 (gen_struct_elt_for_reference): New.
1660 (gen_namespace_elt): New.
1661 (gen_maybe_namespace_elt): New.
1662 (gen_aggregate_elt_ref): New.
1663 (gen_expr): Add OP_SCOPE, display opcode name in error message.
1664
1054b214
TT
16652010-03-15 Tom Tromey <tromey@redhat.com>
1666
1667 * dwarf2read.c (die_needs_namespace): Also return 0 for
1668 DW_TAG_subprogram.
1669
13387711
SW
16702010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
1671
1672 PR c++/7936:
1673 * cp-support.h: Added char *declaration element to using_direct
1674 data struct.
1675 (cp_add_using): Added char *declaration argument.
1676 (cp_add_using_directive): Ditto.
1677 (cp_lookup_symbol_imports): made extern.
1678 * cp-namespace.c: Updated with the above changes.
1679 * dwarf2read.c (read_import_statement): Ditto.
1680 (read_namespace): Ditto.
1681 (read_import_statement): Support import declarations.
1682 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
1683 declarations.
1684 Added support for 'declaration_only' search.
1685 (cp_lookup_symbol_namespace): Attempt to search for the name as
1686 is before consideration of imports.
1687 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
1688 search at every block level search.
1689 Now takes language argument.
1690 (lookup_symbol_aux): Updated.
1691
6e31430b
TT
16922010-03-15 Tom Tromey <tromey@redhat.com>
1693
1694 * c-exp.y (name_not_typename): Add 'operator' clause.
1695
4dea3bb7 16962010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
1697
1698 * configure.ac: Exit if ${gdb_target_obs}" is not set.
1699 * configure: Regenerate.
1700
4d9743af
JK
17012010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1702
1703 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
1704 and ".sdynbss". Update the comment.
1705
f75150fe
JZ
17062010-03-15 Jie Zhang <jie@codesourcery.com>
1707
1708 * MAINTAINERS: Update my email address.
1709
3c13bc11
DJ
17102010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1711
1712 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
1713
43484f03
DJ
17142010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1715
1716 * charset.c [USE_WIN32API]: Include <windows.h>.
1717 (_initialize_charset): Correct type of w32_host_default_charset.
1718
5f25d77d
PA
17192010-03-14 Pedro Alves <pedro@codesourcery.com>
1720
1721 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
1722
1c809c68
TT
17232010-03-12 Tom Tromey <tromey@redhat.com>
1724
1725 PR c++/9708:
1726 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
1727 in a lexical block does not need a namespace.
1728 (new_symbol) <DW_TAG_variable>: Put extern variables on
1729 list_in_scope in all cases.
1730
948103cf
SS
17312010-03-12 Stan Shebs <stan@codesourcery.com>
1732
1733 * ax-gdb.c (gen_expr): Add shift expressions.
1734 (gen_expr_binop_rest): Ditto.
1735
00ae8fef
SW
17362010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
1737
1738 * buildsym.c (finish_block): Reset using_directives pointer
1739 after block initialization.
1740
9cad29ac
L
17412010-03-12 H.J. Lu <hongjiu.lu@intel.com>
1742
1743 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
1744 * i386-tdep.c (i386_word_names): Likewise.
1745
2f4d8875
PA
17462010-03-12 Pedro Alves <pedro@codesourcery.com>
1747
1748 * target.c (memory_xfer_partial): Don't use the stack cache if
1749 inspecting trace frames.
1750 * tracepoint.c (finish_tfind_command): Invalidate the target
1751 dcache.
1752
ccf26247
JK
17532010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1754
1755 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
1756 for the PIC displacement, print also the displacement value.
1757 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
1758
477c84a7
KB
17592010-03-10 Kevin Buettner <kevinb@redhat.com>
1760
1761 * remote-mips.c (close_ports, mips_initialize_cleanups)
1762 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
1763 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
1764 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
1765 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
1766 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
1767 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
1768 comments describing each of these functions.
1769 (mips_enter_debug, mips_exit_debug, common_open)
1770 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
1771 blank line after the comment describing the function.
1772
01c30d6e
JK
17732010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 * solib-svr4.c (svr4_exec_displacement): Return now success, new
1776 parameter displacementp. Update comment.
1777 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
1778 element exists. Return if svr4_exec_displacement was not successful.
1779 Update comment.
1780
09919ac2
JK
17812010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1782 Daniel Jacobowitz <dan@codesourcery.com>
1783
1784 * solib-svr4.c (read_program_header): Support type == -1 to read
1785 all program headers.
1786 (read_program_headers_from_bfd): New function.
1787 (svr4_static_exec_displacement): Remove and move the comment ...
1788 (svr4_exec_displacement): ... here. Remove variable found. New
1789 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
1790 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
1791 targets using read_program_headers_from_bfd. Remove the call of
1792 svr4_static_exec_displacement.
1793
d146bf1e
TT
17942010-03-10 Tom Tromey <tromey@redhat.com>
1795
1796 * dwarf2read.c (struct pubnames_header): Remove.
1797 (_PUBNAMES_HEADER): Remove.
1798 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
1799 (struct aranges_header): Remove.
1800 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
1801 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
1802 (PUBNAMES_SECTION): Remove.
1803 (ARANGES_SECTION): Remove.
1804 (dwarf2_locate_sections): Don't handle pubnames or aranges.
1805 (dwarf2_build_psymtabs): Remove dead code.
1806 (dwarf2_build_psymtabs_easy): Remove.
1807
be391dca
TT
18082010-03-10 Tom Tromey <tromey@redhat.com>
1809
1810 * elfread.c (elf_symfile_read): Don't call
1811 dwarf2_build_frame_info.
1812 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
1813 (struct dwarf2_per_objfile) <objfile>: New field.
1814 (dwarf2_has_info): Now idempotent. Set objfile field.
1815 (dwarf2_read_section): Check and set readin field. Call
1816 posix_madvise.
1817 (dwarf2_build_psymtabs): Don't read all sections.
1818 (read_type_comp_unit_head): Read types section.
1819 (create_debug_types_hash_table): Likewise.
1820 (init_cu_die_reader): Add asserts.
1821 (process_type_comp_unit): Add assert.
1822 (dwarf2_build_psymtabs_hard): Read info section.
1823 (load_partial_comp_unit): Add assert.
1824 (create_all_comp_units): Read info section.
1825 (load_full_comp_unit): Likewise.
1826 (dwarf2_ranges_read): Read ranges section.
1827 (dwarf2_record_block_ranges): Add assert.
1828 (dwarf2_read_abbrevs): Read abbrev section.
1829 (read_indirect_string): Read str section.
1830 (dwarf_decode_line_header): Read line section.
1831 (read_signatured_type_at_offset): Read types section.
1832 (dwarf_decode_macros): Read macinfo section.
1833 (dwarf2_symbol_mark_computed): Read loc section.
1834 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
1835 dwarf2_build_frame_info.
1836 (dwarf2_build_frame_info): Unconditionally set
1837 dwarf2_frame_objfile_data on the objfile.
1838 * configure.ac: Check for posix_madvise.
1839 * config.in, configure: Rebuild.
1840
ccefe4c4
TT
18412010-03-10 Tom Tromey <tromey@redhat.com>
1842
e38df1d0
TT
1843 * xcoffread.c (xcoff_start_psymtab): Update.
1844 (xcoff_end_psymtab): Update.
1845 * psymtab.c (allocate_psymtab): Remove dead code.
1846 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
1847 void*.
1848 * mdebugread.c (parse_partial_symbols): Update.
1849 (new_psymtab): Likewise.
1850 * dwarf2read.c (process_psymtab_comp_unit): Update.
1851 (psymtab_to_symtab_1): Update.
1852 * dbxread.c (start_psymtab): Update.
1853 (end_psymtab): Likewise.
1854
be391dca 18552010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 1856
ccefe4c4
TT
1857 * xcoffread.c: Include psymtab.h.
1858 (xcoff_sym_fns): Update.
1859 * symtab.h (struct partial_symbol): Remove.
1860 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
1861 (struct partial_symtab): Remove.
1862 (PSYMTAB_TO_SYMTAB): Remove.
1863 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
1864 (find_pc_sect_psymtab): Remove.
1865 (find_pc_sect_symtab_via_partial): Declare.
1866 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
1867 (find_main_psymtab): Remove.
1868 (find_main_filename): Declare.
1869 (fixup_psymbol_section): Remove.
1870 (fixup_section): Declare.
1871 * symtab.c: Include psymtab.h.
1872 (lookup_symtab): Use lookup_symtab method.
1873 (lookup_partial_symtab): Remove.
1874 (find_pc_sect_psymtab_closer): Remove.
1875 (find_pc_sect_psymtab): Remove.
1876 (find_pc_sect_symtab_via_partial): New function.
1877 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
1878 (fixup_section): No longer static.
1879 (fixup_psymbol_section): Remove.
1880 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
1881 (lookup_global_symbol_from_objfile): Likewise.
1882 (lookup_symbol_aux_psymtabs): Remove.
1883 (lookup_symbol_aux_quick): New function.
1884 (lookup_symbol_global): Use lookup_symbol_aux_quick.
1885 (lookup_partial_symbol): Remove.
1886 (basic_lookup_transparent_type_quick): New function.
1887 (basic_lookup_transparent_type): Use it.
1888 (find_main_psymtab): Remove.
1889 (find_main_filename): New function.
1890 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
1891 (find_line_symtab): Use expand_symtabs_with_filename method.
1892 (output_partial_symbol_filename): New function.
1893 (sources_info): Use map_partial_symbol_filenames.
1894 (struct search_symbols_data): New type.
1895 (search_symbols_file_matches): New function.
1896 (search_symbols_name_matches): Likewise.
1897 (search_symbols): Use expand_symtabs_matching method.
1898 (struct add_name_data): Rename from add_macro_name_data.
1899 (add_macro_name): Update.
1900 (add_partial_symbol_name): New function.
1901 (default_make_symbol_completion_list): Use
1902 map_partial_symbol_names.
1903 (struct add_partial_symbol_name): New type.
1904 (maybe_add_partial_symtab_filename): New function.
1905 (make_source_files_completion_list): Use
1906 map_partial_symbol_filenames.
1907 (expand_line_sal): Use expand_symtabs_with_filename method.
1908 * symmisc.c: Include psymtab.h.
1909 (print_objfile_statistics): Use print_stats method.
1910 (dump_objfile): Use dump method.
1911 (dump_psymtab, maintenance_print_psymbols)
1912 (maintenance_info_psymtabs, maintenance_check_symtabs)
1913 (extend_psymbol_list): Remove.
1914 * symfile.h (struct quick_symbol_functions): New struct.
1915 (struct sym_fns) <qf>: New field.
1916 (sort_pst_symbols): Remove.
1917 (increment_reading_symtab): Declare.
1918 * symfile.c: Include psymtab.h.
1919 (compare_psymbols, sort_pst_symbols): Remove.
1920 (psymtab_to_symtab): Remove.
1921 (increment_reading_symtab): New function.
1922 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
1923 method.
1924 (set_initial_language): Use find_main_filename.
1925 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
1926 (free_named_symtabs): Remove unused code.
1927 (start_psymtab_common, add_psymbol_to_bcache)
1928 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
1929 Remove.
1930 * stack.c: Include psymtab.h, symfile.h.
1931 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
1932 * source.h (psymtab_to_fullname): Don't declare.
1933 * source.c: Include psymtab.h.
1934 (select_source_symtab): Use find_last_source_symtab method.
1935 (forget_cached_source_info): Use forget_cached_source_info
1936 method.
1937 (find_and_open_source): No longer static.
1938 (psymtab_to_fullname): Remove.
1939 * somread.c: Include psymtab.h.
1940 (som_sym_fns): Update.
1941 * psympriv.h: New file.
1942 * psymtab.h: New file.
1943 * psymtab.c: New file.
1944 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
1945 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
1946 * objfiles.c: Include psymtab.h.
1947 (objfile_relocate1): Use relocate method.
1948 (objfile_has_partial_symbols): Use has_symbols method.
1949 * mipsread.c: Include psymtab.h.
1950 (ecoff_sym_fns): Update.
1951 * mi/mi-cmd-file.c: Include psymtab.h.
1952 (print_partial_file_name): New function.
1953 (mi_cmd_file_list_exec_source_files): Use
1954 map_partial_symbol_filenames.
1955 * mdebugread.c: Include psympriv.h.
1956 * machoread.c: Include psympriv.h.
1957 (macho_sym_fns): Update.
1958 * m2-exp.y (yylex): Use lookup_symtab.
1959 * elfread.c: Include psympriv.h.
1960 (elf_sym_fns): Update.
1961 * dwarf2read.c: Include psympriv.h.
1962 * dbxread.c: Include psympriv.h.
1963 (aout_sym_fns): Update.
1964 * cp-support.c: Include psymtab.h.
1965 (read_in_psymtabs): Remove.
1966 (make_symbol_overload_list_qualified): Use
1967 expand_symtabs_for_function method.
1968 * coffread.c: Include psympriv.h.
1969 (coff_sym_fns): Update.
1970 * blockframe.c: Include psymtab.h.
1971 (find_pc_partial_function): Use find_pc_sect_symtab method.
1972 * ada-lang.h (ada_update_initial_language): Update.
1973 * ada-lang.c: Include psymtab.h.
1974 (ada_update_initial_language): Remove 'main_pst' argument.
1975 (ada_lookup_partial_symbol): Remove.
1976 (struct ada_psym_data): New type.
1977 (ada_add_psyms): New function.
1978 (ada_add_non_local_symbols): Use map_ada_symtabs method.
1979 (struct add_partial_datum): New type.
1980 (ada_add_partial_symbol_completions): New function.
1981 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
1982 (ada_exception_support_info_sniffer): Update.
1983 * Makefile.in (SFILES): Add psymtab.c.
1984 (COMMON_OBS): Add psymtab.o.
1985 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
1986
7d8500b7
PM
19872010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
1988
1989 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
1990
c0cc3a76
SW
19912010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
1992
1993 PR C++/11236:
1994 * cp-namespace.c (cp_add_using): Deleted.
1995 (cp_add_using_directive): Use obstack allocations.
1996 Merged the function cp_add_using into this one.
1997 Added 'struct obstack *' argument.
1998 (cp_scan_for_anonymous_namespaces): Updated.
1999 * cp-support.h: Updated.
2000 * dwarf2read.c (read_import_statement): Updated.
2001 (read_namespace): Updated.
2002
452fa064
CF
20032010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2004
2005 * windows-nat.c (cygwin_conv_path): Remove old macro.
2006
60e1c644
PA
20072010-03-10 Pedro Alves <pedro@codesourcery.com>
2008
2009 * breakpoint.c (condition_command): Handle watchpoint conditions.
2010 (is_hardware_watchpoint): Add comment.
2011 (is_watchpoint): New.
2012 (update_watchpoint): Don't reparse the watchpoint's condition
2013 unless necessary.
2014 (WP_IGNORE): New.
2015 (watchpoint_check): Use it.
2016 (bpstat_check_watchpoint): Handle it.
2017 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
2018 conditions in a frame where it makes sense.
2019 (watch_command_1): Store the innermost block of the condition
2020 expression.
2021 (delete_breakpoint): Delete the watchpoint condition expression.
2022 * breakpoint.h (struct bp_location) <cond>: Update comment.
2023 (struct breakpoint): New field `cond_exp_valid_block'.
2024
af6b7be1
JB
20252010-03-09 Joel Brobecker <brobecker@adacore.com>
2026
2027 Adjust handling of Ada DIEs after dwarf2_physname patch.
2028 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
2029
60c5c021
CF
20302010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
2031 Pierre Muller <muller@ics.u-strasbg.fr>
2032
2033 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
2034 from/to posix/win32.
2035 (windows_make_so): Use non-Cygwin 1.7 specific function.
2036 (windows_create_inferior): Make sure that cygallargs points to
2037 original args in non Cygwin 1.7. case.
2038
60a1502a
MS
20392010-03-09 Michael Snyder <msnyder@vmware.com>
2040
2041 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
2042 after target_read_memory to get host byte order.
2043 (i386_process_record): Ditto.
2044
94af9270
KS
20452010-03-09 Keith Seitz <keiths@redhat.com>
2046
2047 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
2048 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
2049 print out const or volatile qualifiers, too.
2050 (c_type_print_args): Add parameters show_artificial and language.
2051 Skip artificial parameters when requested.
2052 Use the appropriate language printer.
2053 (c_type_print_varspec): Tell c_type_print_args to skip artificial
2054 parameters and pass language_c.
2055 * dwarf2read.c (die_list): New file global.
2056 (struct partial_die_info): Update comments for name field.
2057 (pdi_needs_namespace): Renamed to ...
2058 (die_needs_namespace): ... this. Rewrite.
2059 (dwarf2_linkage_name): Remove.
2060 (add_partial_symbol): Do not predicate the call to
2061 partial_die_full_name based on pdi_needs_namespace.
2062 Remove call to cp_check_possible_namespace_symbols and associated
2063 outdated comments.
2064 (guess_structure_name): Do not inspect child subprogram DIEs.
2065 (dwarf2_fullname): Update comments.
2066 Use die_needs_namespace to assist in computing the name.
2067 (read_func_scope): Use dwarf2_name to get the DIE's name.
2068 Use dwarf2_physname to get the "linkage name" of the DIE.
2069 (dwarf2_add_member_field): Use dwarf2_physname instead of
2070 dwarf2_linkage_name.
2071 (read_structure_type): For structs and classes, set TYPE_NAME, too.
2072 (determine_class): Remove.
2073 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
2074 except Ada.
2075 (new_symbol): Unconditionally call dwarf2_name.
2076 Compute the "linkage name" using dwarf2_physname.
2077 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
2078 When determining to scan for anonymous C++ namespaces, ignore
2079 the linkage name.
2080 (dwarf2_physname): New function.
2081 (dwarf2_full_name): Move content to new function and call
2082 that.
2083 (dwarf2_compute_name): "New" function.
2084 (_initialize_dwarf2_read): Initialize die_list.
2085 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
2086 physname.
2087 (gnu_v3_print_method_ptr): Use the physname for virtual methods
2088 without a demangled name.
2089 Print out type information for non-virtual methods.
c8d5aac9 2090 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 2091 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
2092 If we found a file symtab, re-evaluate whether the remainder is_quoted.
2093 (decode_compound): Stop consuming at an open parenthesis.
2094 Keep template parameters.
2095 Keep any overload information.
2096 Keep keywords like "const".
2097 Remove paren_pointer.
2098 Move is_quoted check from set_flags to here.
2099 Remove #if 0 code from 2000. Ten years is long enough.
2100 (find_method): Before comparing symbol names, canonicalize the string
2101 from the user.
2102 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
2103 (find_method_overload_end): New function.
2104 (set_flags): Remove.
c8d5aac9
L
2105 (decode_compound): Assume that parentheses are matched.
2106 It's a lot easier.
94af9270
KS
2107 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
2108 to cplus_demangle.
2109 * linespec.c (decode_line_1): Keep important keywords like
2110 "const" and "volatile".
2111 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
2112 * typeprint.h (c_type_print_args): Add declaration.
2113 * ui-file.c (do_ui_file_obsavestring): New function.
2114 (ui_file_obsavestring): New function.
2115 * ui-file.h (ui_file_obsavestring): Add declaration.
2116 * valops.c (find_overload_match): Resolve the object to
2117 a non-pointer type.
2118 If the object is a data member, search the object for the member
2119 and return with staticp set.
2120 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
2121 Do not attempt to extract a function name from non-function types.
2122 If the extracted function name and the original name are the same,
2123 we don't have a C++ method.
2124
8d95cc3b
PA
2125 From Jan Kratochvil <jan.kratochvil@redhat.com>:
2126 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
2127
2128 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
2129 and arguments from symbol lookups.
2130 * ax-gdb.c (gen_expr): Likewise.
2131 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
2132 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
2133 lookup_possible_namespace_symbol): Likewise.
2134 * cp-support.c (read_in_psymtabs): Likewise.
2135 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
2136 * language.h (la_lookup_symbol_nonlocal): Likewise.
2137 * scm-valprint.c (scm_inferior_print): Likewise.
2138 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
2139 * solib-svr.c (elf_lookup_lib): Likewise.
2140 * solib.c (show_auto_solib_add): Likewise.
2141 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
2142 * symmisc.c (maintenance_check_symtabs): Likewise.
2143 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
2144 lookup_symbol_aux_local, lookup_symbol_aux_block,
2145 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
2146 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
2147 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
2148 basic_lookup_transparent_type, find_main_psymtab,
2149 lookup_block_symbol): Likewise.
2150 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
2151 lookup_symbol_global, lookup_symbol_aux_block,
2152 lookup_symbol_partial_symbol, lookup_block_symbol,
2153 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
2154
9cb74f47
PM
21552010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
2156
2157 * python/python-internal.h: Include symtab.h.
2158
af6b7be1
JB
21592010-03-09 Joel Brobecker <brobecker@adacore.com>
2160 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
2161
2162 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
2163 * p-valprint.c (pascal_val_print): Remove undeed block and fix
2164 indentation.
2165
bad56014
TT
21662010-03-08 Tom Tromey <tromey@redhat.com>
2167
2168 * breakpoint.c (breakpoint_1): Add "QUIT".
2169
08105857
PA
21702010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2171 Pedro Alves <pedro@codesourcery.com>
2172
2173 * solib.c (solib_find): Replace extension if
2174 solib_symbols_extension is set in the target gdbarch.
2175 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2176 solib_symbols_extension to "sym".
2177 * gdbarch.sh (solib_symbols_extension): New variable.
2178 (pstring): New function.
2179 * gdbarch.h, gdbarch.c: Regenerate.
2180
7c953934
TT
21812010-03-08 Tom Tromey <tromey@redhat.com>
2182
2183 PR cli/9591:
2184 * NEWS: Update.
2185 * utils.c: Include main.h.
2186 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
2187 (defaulted_query): Use default answer if `batch_flag'.
2188 * main.h (batch_flag): Declare.
2189 * main.c (batch_flag): New global.
2190 (captured_main): Remove 'batch'. Update.
2191
bbd2783e
KB
21922010-03-08 Kevin Buettner <kevinb@redhat.com>
2193
2194 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
2195 and Kevin Buettner:
2196
2197 * remote-mips.c (rockhopper_ops): New target_ops struct.
2198 (MON_ROCKHOPPER): New mips_monitor_type.
2199 (read_hex_value): New function.
2200 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 2201 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
2202 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
2203 (rockhopper_open): New function.
2204 (mips_wait): Read the PC, FP and SP fields as strings. Use
2205 read_hex_value to parse them and mips_set_register to commit them.
2206 (mips_set_register): New function.
2207 (mips_fetch_registers): Do not cast register value to "unsigned"
2208 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
2209 (mips_store_registers): Use a 'T' packet to set registers when
2210 using MON_ROCKHOPPER.
2211 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
2212 and expect the total to be printed before the entry address.
2213 (_initialize_remote_mips): Initialize and add rockhopper_ops.
2214
566f3d17
KB
22152010-03-08 Kevin Buettner <kevinb@redhat.com>
2216
2217 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
2218 Change return value to int. Store value fetched in location
2219 addressed by `val'. Use function's return value as success
2220 or failure indicator. Adjust all callers.
2221
9c8ee2ab 22222010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
2223
2224 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
2225
7155de5a
HZ
22262010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2227 Hui Zhu <teawater@gmail.com>
2228
2229 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
2230 tmp_to_stopped_data_address.
2231 (record_open): Reset tmp_to_stopped_by_watchpoint and
2232 tmp_to_stopped_data_address.
2233 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
2234 to_stopped_data_address.
2235
580879fc
HZ
22362010-03-08 Hui Zhu <teawater@gmail.com>
2237
2238 * i386-tdep.c (i386_process_record): Initialize regnum.
2239
b0fcb67f
JK
22402010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2241
2242 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
2243 Do not warn on ".gnu.liblist" and ".gnu.conflict".
2244
08597104
JB
22452010-03-08 Joel Brobecker <brobecker@adacore.com>
2246
2247 Memory error when reading wrong core file.
2248 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
2249 errors while reading the inferior memory, and return zero if
2250 an exception was raised.
2251
425b824a
MS
22522010-03-07 Michael Snyder <msnyder@vmware.com>
2253
ec6dbf37
MS
2254 * record.c (record_restore): Rename tmpu8 to rectype.
2255
648d0c8b
MS
2256 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
2257 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
2258
2259 (i386_record_push): Rename local tmpulongest to addr.
2260
2261 (i386_process_record): Rename local tmpulongest to addr.
2262
2263 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
2264 addr64.
955db0c0
MS
2265
2266 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 2267
10760264
JB
22682010-03-07 Joel Brobecker <brobecker@adacore.com>
2269
2270 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 2271 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 2272
b3c613f2
CF
22732010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
2274
2275 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2276 block. Define helper macros to reduce ifdefs in code.
2277 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2278 size. Call unadorned GetModuleFileNameEx rather than
2279 GetModuleFileNameEx*.
2280 (windows_make_so): Use __PMAX to denote maximum buffer size and
2281 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
2282 appropriate.
2283 (get_image_name): Use __PMAX to denote maximum buffer size.
2284 (handle_load_dll): Likewise.
2285 (windows_pid_to_exec_file): Likewise.
2286 (windows_create_inferior): Add many accommodations for older Cygwin and
2287 non-Cygwin.
2288 (bad_GetModuleFileNameExW): Control inclusion of this function based on
2289 __USEWIDE conditional.
2290 (bad_GetModuleFileNameExA): Likewise.
2291 (_initialize_loadable): Just use real function names without the dyn_
2292 part since they are defined earlier.
2293
f870a310
TT
22942010-03-05 Corinna Vinschen <vinschen@redhat.com>
2295 Tom Tromey <tromey@redhat.com>
2296
2297 * utils.c (host_char_to_target): Add 'gdbarch' argument.
2298 (parse_escape): Likewise.
2299 * python/py-utils.c (unicode_to_target_string): Update.
2300 (unicode_to_target_python_string): Update.
2301 (target_string_to_unicode): Update.
2302 * printcmd.c (printf_command): Update.
2303 * p-exp.y (yylex): Update.
2304 * objc-exp.y (yylex): Update.
2305 * mi/mi-parse.c: Include charset.h.
2306 (mi_parse_escape): New function.
2307 (mi_parse_argv): Use it.
2308 * jv-exp.y (yylex): Update.
2309 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2310 function.
2311 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2312 * gdbarch.sh (auto_charset, auto_wide_charset): New.
2313 * gdbarch.c: Rebuild.
2314 * gdbarch.h: Rebuild.
2315 * defs.h (parse_escape): Update.
2316 * cli/cli-setshow.c: Include arch-utils.h.
2317 (do_setshow_command): Update.
2318 * cli/cli-cmds.c (echo_command): Update.
2319 * charset.h (target_charset, target_wide_charset): Update.
2320 * charset.c: Include arch-utils.h.
2321 (target_charset_name): Default to "auto".
2322 (target_wide_charset_name): Likewise.
2323 (show_target_charset_name): Handle "auto".
2324 (show_target_wide_charset_name): Likewise.
2325 (be_le_arch): New global.
2326 (set_be_le_names): Add 'gdbarch' argument.
2327 (validate): Likewise. Don't call set_be_le_names.
2328 (set_charset_sfunc, set_host_charset_sfunc)
2329 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2330 Update.
2331 (target_charset): Add 'gdbarch' argument.
2332 (target_wide_charset): Likewise. Remove 'byte_order' argument.
2333 (auto_target_charset_name): New global.
2334 (default_auto_charset, default_auto_wide_charset): New functions.
2335 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
2336 for target charsets. Copy result of nl_langinfo. Use GetACP if
2337 USE_WIN32API.
2338 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2339 remove 'byte_order' argument. Update.
2340 (classify_type): Likewise.
2341 (c_emit_char): Update.
2342 (c_printchar): Update.
2343 (c_printstr): Update.
2344 (c_get_string): Update.
2345 (evaluate_subexp_c): Update.
2346 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2347 Declare.
2348 * python/python.c (gdbpy_target_charset): New function.
2349 (gdbpy_target_wide_charset): Likewise.
2350 (GdbMethods): Update.
2351 * NEWS: Update.
2352
4e7386b0
UW
23532010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2354
2355 * symfile.c (build_section_addr_info_from_objfile): Do not mask
2356 off high address bits.
2357
aab48ede
UW
23582010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2359
2360 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2361 address as UnsignedLongLong, not LongLong.
2362
8eeafb51 23632010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 2364 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
2365
2366 * remote-mips.c (gdbthread.h): Include.
2367 (remote_mips_ptid): Declare.
2368 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2369 (common_open): Set inferior_ptid, add it as an inferior, and
2370 as a thread too. Delete FIXME comment regarding start_remote().
2371 (mips_close): Invoke generic_mourn_inferior().
2372 (mips_kill): Make sure that target_mourn_inferior is invoked.
2373 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2374 it's now invoked from mips_close().
2375 (mips_load): Don't null out inferior_ptid. Don't call
2376 clear_symtab_users().
2377 (mips_thread_alive, mips_pid_to_str): New functions.
2378 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
2379 to_thread_alive and to_pid_to_str operations.
2380
ae411497
TT
23812010-03-04 Tom Tromey <tromey@redhat.com>
2382
2383 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2384 in DWARF 3 and later.
2385 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2386
0e0b460e
KS
23872010-03-04 Keith Seitz <keiths@redhat.com>
2388
2389 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2390 If the filename portion of the linespec was quoted, recheck the
2391 remainder for additional quoting.
2392 (locate_first_half): Skip over completer chars, too.
2393
1b93ff13
TT
23942010-03-04 Tom Tromey <tromey@redhat.com>
2395
2396 * printcmd.c (printf_command): Pass dummy argument to
2397 printf_filtered.
2398
fc36e839
DE
23992010-03-04 Doug Evans <dje@google.com>
2400
111f853c
DE
2401 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2402 unwound_fp.
2403
fc36e839
DE
2404 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2405
c7437ca6
PA
24062010-03-04 Pedro Alves <pedro@codesourcery.com>
2407
2408 * breakpoint.c (update_watchpoint): Create a sentinel location if
2409 the software watchpoint isn't watching any memory.
2410 (breakpoint_address_bits): Skip dummy software watchpoint locations.
2411
58dadb1b
PA
24122010-03-04 Pedro Alves <pedro@codesourcery.com>
2413
2414 * utils.c (fputs_maybe_filtered): Check if there's already a top
2415 level interpreter before dereferencing it. If there isn't one,
2416 don't paginate either.
2417
50e98be4
DJ
24182010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2419
2420 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2421 the state right when single stepping.
2422 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2423 Get the next PC along with the instruction state.
2424 (thumb_get_next_pc): Remove.
2425 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2426
2e3ceee9
HZ
24272010-03-04 Hui Zhu <teawater@gmail.com>
2428
2429 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2430
390a8aca
PA
24312010-03-03 Pedro Alves <pedro@codesourcery.com>
2432
2433 * utils.c (fputs_maybe_filtered): Always disable pagination if the
2434 top level interpreter is MI.
2435
9355b391
SS
24362010-03-03 Stan Shebs <stan@codesourcery.com>
2437
2438 * remote.c (remote_download_tracepoint): Iterate over locations.
2439 * tracepoint.c (validate_actionline): Ditto.
2440 (encode_actions): Add location argument.
2441 (trace_dump_command): Check all locations to see if stepping
2442 frame.
390a8aca 2443
8685c86f
L
24442010-03-03 H.J. Lu <hongjiu.lu@intel.com>
2445 Eli Zaretskii <eliz@gnu.org>
2446
2447 * NEWS: Add X86 general purpose registers section.
2448
e8f781e2
TT
24492010-03-03 Tom Tromey <tromey@redhat.com>
2450
2451 PR mi/11098:
2452 * varobj.c (install_new_value): Handle case where new print_value
2453 is NULL.
2454
a0e0ef55
TT
24552010-03-03 Dainis Jonitis <jonitis@gmail.com>
2456
2457 PR gdb/11345:
2458 * printcmd.c (printf_command): Print end of format string using
2459 printf_filtered.
2460
a58d7472
TT
24612010-03-02 Tom Tromey <tromey@redhat.com>
2462
2463 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2464 * defs.h (read_command_lines_1): Add missing 'void'.
2465 * cli/cli-script.c (recurse_read_control_structure): Add missing
2466 'void'.
2467 (read_next_line): Likewise.
2468 (read_command_lines_1): Likewise.
2469
ce50d78b
UW
24702010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2471
2472 * spu-tdep.c (spu_analyze_prologue): Track instruction to
2473 store backchain as part of prologue.
2474
7e9af34a
DJ
24752010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2476
2477 * progspace.c (update_address_spaces): Update inferior address spaces
2478 also.
2479
01637564
DE
24802010-03-02 Doug Evans <dje@google.com>
2481
2482 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2483 lowpc,highpc args to addrmap_set_empty.
2484
1ba53b71
L
24852010-03-02 H.J. Lu <hongjiu.lu@intel.com>
2486
2487 * amd64-tdep.c (amd64_byte_names): New.
2488 (amd64_word_names): Likewise.
2489 (amd64_dword_names): Likewise.
2490 (amd64_pseudo_register_name): Likewise.
2491 (amd64_pseudo_register_read): Likewise.
2492 (amd64_pseudo_register_write): Likewise.
2493 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2494 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
2495 set_gdbarch_pseudo_register_write and
2496 set_tdesc_pseudo_register_name. Don't call
2497 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
2498
2499 * i386-tdep.c (i386_num_mmx_regs): Removed.
2500 (i386_num_pseudo_regs): Likewise.
2501 (i386_byte_names): New.
2502 (i386_word_names): Likewise.
2503 (i386_byte_regnum_p): Likewise.
2504 (i386_word_regnum_p): Likewise.
2505 (i386_mmx_regnum_p): Updated.
2506 (i386_pseudo_register_name): Make it global. Handle byte and
2507 word pseudo-registers.
2508 (i386_pseudo_register_read): Likewise.
2509 (i386_pseudo_register_write): Likewise.
2510 (i386_pseudo_register_type): Handle byte, word and dword
2511 pseudo-registers
2512 (i386_register_reggroup_p): Don't include pseudo
2513 registers, except for MXX, in any register groups. Don't
2514 include pseudo byte, word, dword registers in general_reggroup.
2515 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2516 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
2517 pseudo-registers after word pseudo-registers. Call
2518 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2519
2520 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2521 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2522 eax_regnum.
2523 (i386_byte_regnum_p): New.
2524 (i386_word_regnum_p): Likewise.
2525 (i386_dword_regnum_p): Likewise.
2526 (i386_pseudo_register_name): Likewise.
2527 (i386_pseudo_register_read): Likewise.
2528 (i386_pseudo_register_write): Likewise.
2529
a6f5ef51
L
25302010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2531
2532 * target-descriptions.c (tdesc_type): Remove
2533 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2534 (tdesc_predefined_types): Likewise.
2535 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
2536 if flag name is empty.
2537 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2538
2539 * features/i386/32bit-core.xml: Define i386_eflags.
2540 * features/i386/64bit-core.xml: Likewise.
2541
2542 * features/i386/32bit-sse.xml: Define i386_mxcsr.
2543 * features/i386/64bit-sse.xml: Likewise.
2544
2545 * features/i386/amd64-linux.c: Regenerated.
2546 * features/i386/amd64.c: Likewise.
2547 * features/i386/i386-linux.c: Likewise.
2548 * features/i386/i386.c: Likewise.
2549
f5dff777
DJ
25502010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2551
2552 * gdbtypes.c (append_composite_type_field_raw): New.
2553 (append_composite_type_field_aligned): Use the new function.
2554 * gdbtypes.h (append_composite_type_field_raw): Declare.
2555 * target-descriptions.c (struct tdesc_type_field): Add start and end.
2556 (struct tdesc_type_flag): New type.
2557 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2558 kind. Add size to u.u. Add u.f for flags.
2559 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2560 (tdesc_free_type): Likewise.
2561 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2562 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2563 (tdesc_add_bitfield, tdesc_add_flag): New.
2564 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2565 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2566 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2567 current_type. Add current_type_size and current_type_is_flags.
2568 (tdesc_start_union): Clear the new fields.
2569 (tdesc_start_struct, tdesc_start_flags): New.
2570 (tdesc_start_field): Handle struct fields, including bitfields.
2571 (field_attributes): Make type optional. Add start and end.
2572 (union_children): Rename to struct_union_children.
2573 (union_attributes): Rename to struct_union_attributes. Add optional
2574 size.
2575 (flags_attributes): New.
2576 (feature_children): Add struct and flags.
2577 * features/gdb-target.dtd: Add flags and struct to features.
2578 Make field type optional. Add field start and end.
2579
90884b2b
L
25802010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2581
2582 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2583 (amd64_linux_read_description): Likewise.
2584 (_initialize_amd64_linux_nat): Set to_read_description to
2585 amd64_linux_read_description.
2586
2587 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2588 (amd64_linux_register_name): Removed.
2589 (amd64_linux_register_type): Likewise.
2590 (amd64_linux_core_read_description): New.
2591 (amd64_linux_init_abi): Set target description to
2592 tdesc_amd64_linux if needed. Support orig_rax in target
2593 description. Don't call set_gdbarch_register_name nor
2594 set_gdbarch_register_type. Call
2595 set_gdbarch_core_read_description.
2596 (_initialize_amd64_linux_tdep): Call
2597 initialize_tdesc_amd64_linux.
2598
2599 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2600
2601 * amd64-tdep.c: Include "features/i386/amd64.c".
2602 (amd64_register_names): Removed.
2603 (amd64_register_name): Likewise.
2604 (amd64_register_type): Likewise.
2605 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 2606 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
2607 set_gdbarch_register_name nor set_gdbarch_register_type.
2608 (_initialize_amd64_tdep): New.
2609
2610 * i386-linux-nat.c (i386_linux_read_description): New.
2611 (_initialize_i386_linux_nat): Set to_read_description to
2612 i386_linux_read_description.
2613
2614 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
2615 (i386_linux_register_name): Removed.
2616 (i386_linux_core_read_description): New.
2617 (i386_linux_read_description): Likewise.
2618 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
2619 Set target description to tdesc_i386_linux if needed. Support
2620 orig_eax. Set register_reggroup_p. Call
2621 set_gdbarch_core_read_description.
2622 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
2623
2624 * i386-linux-tdep.h (tdesc_i386_linux): New.
2625
2626 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
2627 with I387_NUM_REGS.
2628
2629 * i386-tdep.c: Include "features/i386/i386.c".
2630 (i386_register_names): Make it const.
2631 (i386_mmx_names): Likewise.
2632 (i386_num_register_names): Removed.
2633 (i386_register_name): Likewise.
2634 (i386_eflags_type): Likewise.
2635 (i386_mxcsr_type): Likewise.
2636 (i386_sse_type): Likewise.
2637 (i386_register_type): Likewise.
2638 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
2639 (i386_pseudo_register_name): New.
2640 (i386_pseudo_register_type): Likewise.
2641 (i386_mmx_type): Make it static.
2642 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
2643 I387_NUM_REGS. Set num_core_regs and register_names. Don't
2644 call set_gdbarch_register_name nor set_gdbarch_register_type.
2645 Set register_reggroup_p. Set target description to tdesc_i386
2646 if needed. Call set_tdesc_pseudo_register_type,
2647 set_tdesc_pseudo_register_name and tdesc_use_registers.
2648 (_initialize_i386_tdep): Call initialize_tdesc_i386.
2649 initialize_tdesc_x86_64.
2650
2651 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
2652 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
2653 register_names, tdesc and register_reggroup_p.
2654 (I386_NUM_FREGS): Removed.
2655 (i386_eflags_type): Likewise.
2656 (i386_mxcsr_type): Likewise.
2657 (i386_mmx_type): Likewise.
2658 (i386_sse_type): Likewise.
2659 (i386_register_name): Likewise.
2660 (i386_regnum): Add I386_MXCSR_REGNUM.
2661 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
2662
2663 * i387-tdep.h (I387_NUM_REGS): New.
2664
2665 * regformats/i386/i386-linux.dat: Generated.
2666 * regformats/i386/i386.dat: Likewise.
2667 * regformats/i386/amd64-linux.dat: Likewise.
2668 * regformats/i386/amd64.dat: Likewise.
2669
2670 * regformats/reg-i386-linux.dat: Removed.
2671 * regformats/reg-i386.dat: Likewise.
2672 * regformats/reg-x86-64-linux.dat: Likewise.
2673 * regformats/reg-x86-64.dat: Likewise.
2674
d0d0ab16
CV
26752010-03-01 Corinna Vinschen <vinschen@redhat.com>
2676
2677 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
2678 cygwin_conv_path API rather than the deprecated
2679 cygwin_conv_to_full_posix_path.
2680 * windows-nat.c:
2681 (GetModuleFileNameExA): Undefine for Cygwin.
2682 (GetModuleFileNameExW): Define for Cygwin.
2683 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
2684 Call GetModuleFileNameExW and convert path to POSIX using
2685 cygwin_conv_path.
2686 (windows_make_so): Always define p. Drop unused variable m.
2687 Don't use Win32 functions to check file existance, rather use
2688 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
2689 Use canonicalize_file_name to get full path.
2690 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
2691 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
2692 use correct target buffer size in call to WideCharToMultiByte.
2693 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
2694 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
2695 (windows_create_inferior): Convert all paths and arguments to wchar_t
2696 and use CreateProcessW on Cygwin.
2697 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
2698 (bad_GetModuleFileNameExA): Undefine for Cygwin.
2699 (bad_GetModuleFileNameExW): Define for Cygwin.
2700 (_initialize_loadable): Load GetModuleFileNameExW into
2701 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
2702
dc00d89f
PM
27032010-02-28 Phil Muldoon <pmuldoon@redhat.com>
2704
2705 PR python/11036
2706 * python/py-frame.c (frapy_read_var): Add block argument and logic
2707 to cope with user provided blocks.
2708
0e095b7e
JK
27092010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2710
2711 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
2712 New comment.
2713
2f9e05b4
CV
27142010-02-28 Corinna Vinschen <vinschen@redhat.com>
2715
2716 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
2717 (COMMON_OBS): ... to here since it's used unconditionally.
2718 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
2719 (SFILES): To here.
2720
eb195664
DD
27212010-02-26 David Daney <ddaney@caviumnetworks.com>
2722
2723 * mips-linux-tdep.c: Update struct sigframe comments.
2724 (SIGFRAME_CODE_OFFSET): Delete macro.
2725 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
2726 this_frame's sp.
2727 (mips_linux_n32n64_sigframe_init): Same.
2728
97b0f3e2
KB
27292010-02-26 Kevin Buettner <kevinb@redhat.com>
2730
2731 * remote-mips.c (mips_load): Don't use pseudo-register when
2732 invalidating regcache.
2733
4069ebbe
DJ
27342010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2735
2736 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
2737
05071a4d
PA
27382010-02-26 Pedro Alves <pedro@codesourcery.com>
2739
2740 * NEWS: Add "New targets" section, and mention ARM Symbian
2741 support.
2742
6063c216
UW
27432010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
2744
2745 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
2746 add ADDR_SIZE member.
2747 (allocate_piece_closure): Update.
2748 (copy_pieced_value_closure): Likewise.
2749 (dwarf2_evaluate_loc_desc): Likewise.
2750 (read_pieced_value): Use DWARF address size instead of
2751 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
2752
5107b149 27532010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 2754 Tom Tromey <tromey@redhat.com>
5107b149
PM
2755
2756 * python/py-type.c (typy_lookup_typename): Add in block argument.
2757 If provided restrict lookup to specified blocks.
2758 (gdbpy_lookup_type): Likewise.
2759 (typy_lookup_type): Likewise.
2760
78664fa3 27612010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 2762
78664fa3
PA
2763 Symbian config
2764
2765 gdb/
2766 * arm-symbian-tdep.c: New.
2767 * configure.tgt (arm*-*-symbianelf*): New target.
2768 (*-*-symbianelf*): New OS.
2769 * osabi.c (gdb_osabi_names): Add Symbian.
2770 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
2771 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
2772 (ALLDEPFILES): Add arm-symbian-tdep.c.
2773
eb73e134
DJ
27742010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2775
2776 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
2777
46ef47e5
PA
27782010-02-24 Pedro Alves <pedro@codesourcery.com>
2779
2780 * mi/mi-main.c (mi_cmd_execute): Fix typo.
2781
f3e9a817 27822010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 2783 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
2784 Thiago Jung Bauermann <bauerman@br.ibm.com>
2785
2786 * python/python.c (_initialize_python): Call
2787 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
2788 gdbpy_initialize_blocks.
2789 * python/python-internal.h: Declare struct symbol, block and
2790 symtab_and_line. Declare block_object_type and
2791 symbol_object_type
2792 (gdbpy_lookup_symbol gdbpy_block_for_pc)
2793 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
2794 (symbol_to_symbol_object, block_to_block_object)
2795 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
2796 (gdbpy_initialize_blocks ): Declare.
2797 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
2798 (frapy_select): Add methods.
2799 (frapy_read_var): Add symbol branch.
2800 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
2801 py-block.
2802 (SUBDIR_PYTHON_SRCS): Likewise.
2803 (py-symbol.o): New rule.
2804 (py-symtab.o): Likewise.
2805 (py-block.o): Likewise.
2806 * python/py-symbol.c: New file.
2807 * python/py-symtab.c: Likewise.
2808 * python/py-block.c: Likewise.
2809
24291992
PA
28102010-02-24 Pedro Alves <pedro@codesourcery.com>
2811
2812 PR gdb/11321
2813
2814 * inferior.h (prepare_for_detach): Declare.
2815 (struct inferior) <detaching>: New field.
2816 * infrun.c (prepare_for_detach): New.
2817 (handle_inferior_event) <random signal>: Don't stop if detaching.
2818 * target.c (target_detach): Call prepare_for_detach.
2819
fc1cf338
PA
28202010-02-24 Pedro Alves <pedro@codesourcery.com>
2821
2822 Per-process displaced stepping queue.
2823
2824 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
2825 (displaced_step_gdbarch, displaced_step_closure,
2826 (displaced_step_original, displaced_step_copy): Move globals to
2827 this...
2828 (struct displaced_step_inferior_state): ... new structure.
2829 (displaced_step_inferior_states): New global.
2830 (get_displaced_stepping_state, add_displaced_stepping_state)
2831 (remove_displaced_stepping_state, infrun_inferior_exit): New
2832 functions.
2833 (displaced_step_clear): Add displaced_step_inferior_state
2834 parameter, and adjust to handle it.
2835 (displaced_step_clear_cleanup): Parameter is now a
2836 displaced_step_inferior_state. Adjust.
2837 (displaced_step_prepare): Adjust.
2838 (displaced_step_fixup, displaced_step_fixup)
2839 (infrun_thread_ptid_changed, resume): Adjust.
2840 (init_wait_for_inferior): Don't call displaced_step_clear.
2841 (infrun_thread_stop_requested): Rewrite.
2842 (_initialize_infrun): Install infrun_inferior_exit as
2843 inferior_exit observer.
2844
0723dbf5
PA
28452010-02-24 Pedro Alves <pedro@codesourcery.com>
2846
2847 * inferior.h (ptid_match): Declare.
2848 * infrun.c (ptid_match): New.
2849 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
2850 (handle_notification): Add debug output.
2851 * linux-nat.c (ptid_match): Delete.
2852
09de9781
DM
28532010-02-24 David S. Miller <davem@davemloft.net>
2854
2855 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
2856 * syscalls/sparc-linux.xml: New.
2857 * syscalls/sparc64-linux.xml: New.
2858 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
2859 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
2860 (sparc32_linux_get_syscall_number): New function.
2861 (sparc32_linux_init_abi): Set syscall XML file name and hook up
2862 syscall number fetcher.
2863 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
2864 (sparc64_linux_get_syscall_number): New function.
2865 (sparc64_linux_init_abi): Set syscall XML file name and hook up
2866 syscall number fetcher.
2867
a79b8f6e
VP
28682010-02-24 Vladimir Prus <vladimir@codesourcery.com>
2869
2870 Multiexec MI
2871
2872 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
2873 * inferior.c (add_inferior_silent): Notify inferior_added
2874 observer.
2875 (delete_inferior_1): Notify inferior_removed observer.
2876 (exit_inferior_1): Pass inferior, not pid, to observer.
2877 (inferior_appeared): Likewise.
2878 (add_inferior_with_spaces): New.
2879 (add_inferior_command): Use the above.
2880 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
2881 Declare.
2882
2883 * inflow.c (inflow_inferior_exit): Likewise.
2884 * jit.c (jit_inferior_exit_hook): Likewise.
2885
2886 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
2887 remove-inferior.
2888 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
2889 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
2890 (report_initial_inferior): New.
2891 (mi_inferior_removed): Register the above. Make sure
2892 inferior_added observer is called on the first inferior.
2893 (mi_new_thread, mi_thread_exit): Thread group is now identified by
2894 inferior number, not pid.
2895 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
2896 affected.
2897 * mi/mi-main.c (current_context): New.
2898 (proceed_thread_callback): Use typed closure.
2899 Proceed everything if pid is 0. Most implementation split into
2900 (proceed_thread): ... this.
2901 (run_one_inferior): New.
2902 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
2903 Adjust for multiexec behaviour.
2904 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
2905 (mi_cmd_execute): Handle the 'thread-group' option here.
2906 Do some extra checks.
2907 * mi-parse.c (mi_parse): Handle the --all and --thread-group
2908 options.
2909 * mi-parse.h (struct mi_parse): New fields all and thread_group.
2910
115d30f9
VP
29112010-02-24 Vladimir Prus <vladimir@codesourcery.com>
2912
2913 Make -exec-run a proper MI commands.
2914
2915 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
2916 * mi/mi-cmds.c (mi_cmds): Adjust.
2917 * mi/mi-main.c (mi_cmd_exec_run): New.
2918
06cd862c
PA
29192010-02-24 Pedro Alves <pedro@codesourcery.com>
2920 Stan Shebs <stan@codesourcery.com>
2921
2922 * tracepoint.h (set_traceframe_number)
2923 (cleanup_restore_current_traceframe): Declare.
2924 * tracepoint.c (set_traceframe_number): New.
2925 (struct current_traceframe_cleanup): New.
2926 (do_restore_current_traceframe_cleanup)
2927 (restore_current_traceframe_cleanup_dtor)
2928 (make_cleanup_restore_current_traceframe): New.
2929 * infrun.c: Include tracepoint.h.
2930 (fetch_inferior_event): Switch out and in of tfind mode.
2931
ab92d69b
PA
29322010-02-24 Pedro Alves <pedro@codesourcery.com>
2933
2934 * breakpoint.c (breakpoint_init_inferior): Also delete
2935 bp_shlib_event breakpoints.
2936 * solib-frv.c (enable_break): Remove call to
2937 remove_solib_event_breakpoints.
2938 * solib-svr4.c (enable_break): Ditto.
2939 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
2940 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
2941 * solib-som.c (som_solib_create_inferior_hook): Ditto.
2942 * solib-spu.c (spu_enable_break): Ditto.
2943
e707a91d
PA
29442010-02-23 Harald Koenig <H.Koenig@science-computing.de>
2945
2946 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
2947
cfce2ea2
PA
29482010-02-23 Harald Koenig <H.Koenig@science-computing.de>
2949
2950 * varobj.c (varobj_update): Avoid non-constants in initializers.
2951
05566b3b
TT
29522010-02-23 Tom Tromey <tromey@redhat.com>
2953
2954 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
2955 handle big-endian values.
2956 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
2957
85d721b8
PA
29582010-02-22 Pedro Alves <pedro@codesourcery.com>
2959
2960 PR9605
2961
2962 gdb/
2963 * breakpoint.c (insert_bp_location): If inserting the read
2964 watchpoint failed, fallback to an access watchpoint.
2965 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
2966 if the value changed, if not watching the same memory for writes.
2967 (watchpoint_locations_match): Add comment.
2968 (update_global_location_list): Copy the location's watchpoint type.
2969 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
2970 handle read watchpoints here.
2971 (i386_insert_watchpoint): Read watchpoints aren't supported.
2972 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
2973 packets.
2974 * target.h (target_insert_watchpoint): Update description.
2975
48ea67a7
TT
29762010-02-19 Tom Tromey <tromey@redhat.com>
2977
2978 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
2979 * m2-typeprint.c (m2_print_type): Update.
2980 * gdbtypes.c (recursive_dump_type): Update.
2981 (copy_type_recursive): Update.
2982 * c-typeprint.c (c_type_print_varspec_prefix): Update.
2983 (c_type_print_base): Update.
2984 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
2985 Remove.
2986 (struct cplus_struct_type) <ntemplate_args>: Remove.
2987 <struct template_arg>: Remove.
2988 <is_dynamic>: Move earlier.
2989 (TYPE_TEMPLATE_ARGS): Remove.
2990 (TYPE_NTEMPLATE_ARGS): Remove.
2991 (TYPE_TEMPLATE_ARG): Remove.
2992
48e32051
TT
29932010-02-19 Tom Tromey <tromey@redhat.com>
2994
2995 PR c++/8693, PR c++/9496:
2996 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
2997 * c-exp.y (lex_one_token): Rename from yylex. Don't call
2998 write_dollar_variable. Don't try to classify NAME tokens.
2999 (token_and_value): New type.
3000 (token_fifo, popping, name_obstack): New globals.
3001 (classify_name): New function.
3002 (classify_inner_name): Likewise.
3003 (yylex): Likewise.
3004 (VARIABLE): Now has type sval.
3005 (exp : VARIABLE): Call write_dollar_variable.
3006 (qualified_name): Use TYPENAME, not typebase. Add production for
3007 multiple "::" instances.
3008 (variable): Use name_not_typename.
3009 (qualified_type): Remove.
3010 (typebase): Update.
3011
672d9c23
JK
30122010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
3015 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
3016 found by bfd_get_section_by_name.
3017 * symfile.h (struct section_addr_info) <sectindex>: New comment.
3018
bfbf3774
JB
30192010-02-19 Joel Brobecker <brobecker@adacore.com>
3020
3021 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
3022 7.0 section" into "Changes in 7.1".
3023
6756b09b 30242010-02-19 Joel Brobecker <brobecker@adacore.com>
3025
3026 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
3027 * version.in: Bump version to 7.1.50.20100219-cvs.
3028
202b96c1
PA
30292010-02-18 Harald Koenig <H.Koenig@science-computing.de>
3030
3031 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
3032 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
3033
de2e5182
TT
30342010-02-17 Tom Tromey <tromey@redhat.com>
3035
3036 * NEWS: Add Python API Improvements section.
3037
7280022e
DJ
30382010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
3039
3040 * NEWS: Correct typo.
3041
6f451e5e
TT
30422010-02-17 Tom Tromey <tromey@redhat.com>
3043
3044 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
3045
012836ea
JK
30462010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3047
3048 * symfile.c (build_section_addr_info_from_objfile): Include sections
3049 only if they are SEC_ALLOC or SEC_LOAD.
3050
d182d057
L
30512010-02-17 H.J. Lu <hongjiu.lu@intel.com>
3052
3053 PR shlibs/11293
3054 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
3055 of ULONGEST for address size.
3056
4eef138c
TT
30572010-02-17 Tom Tromey <tromey@redhat.com>
3058
3059 * NEWS: Add C++ improvements section.
3060
548a926a
UW
30612010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
3062
3063 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
3064 PyThreadState_Swap): Avoid "statement with no effect" warning.
3065
ad3a0e5b
JK
30662010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3067
3068 * solib-svr4.c (enable_break <target_auxv_search>): New variable
3069 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
3070
243e2c5d
TG
30712010-02-17 Tristan Gingold <gingold@adacore.com>
3072 Petr Hluzín <petr.hluzin@gmail.com>
3073
3074 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
3075 gdb_assert. Fix info->size for SIG prologue.
3076
275f2e57
DJ
30772010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3078
3079 * infcmd.c (show_inferior_tty_command): Check for NULL.
3080 Correct output message.
3081
791dfb64
DJ
30822010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3083
3084 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
3085 FUNCTION contains parentheses. Improve removal of a trailing
3086 single quote.
3087
14d1346b
DJ
30882010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3089
3090 * gcore.c (do_bfd_delete_cleanup): New function.
3091 (gcore_command): Use it. Discard the cleanup after success.
3092 (gcore_copy_callback): Delete dead code.
3093
e76ab67f
DJ
30942010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3095
3096 * symfile.c (addr_info_make_relative): Always use
3097 find_lowest_section.
3098
71dee663
SW
30992010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
3100
3101 * NEWS: Added entry for namespace fixes.
3102
a9854bd5
TT
31032010-02-15 Tom Tromey <tromey@redhat.com>
3104
3105 * dwarf2read.c (guess_structure_name): Allocate name on the
3106 objfile obstack.
3107
fd9e29b5
TT
31082010-02-15 Tom Tromey <tromey@redhat.com>
3109
3110 * c-typeprint.c (c_type_print_base): Reverse order of test.
3111
4e1fc9c9
JK
31122010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3113
3114 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
3115 initialize it from ELF BFD. Extend the prelink condition by it.
3116
74164c56
JK
31172010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3118
3119 * defs.h (parse_pid_to_attach): New.
3120 * utils.c (parse_pid_to_attach): New.
3121 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
3122 * gnu-nat.c (gnu_attach): Likewise.
3123 * nto-procfs.c (procfs_attach): Likewise.
3124 * procfs.c (procfs_attach): Likewise.
3125 * windows-nat.c (windows_attach): Likewise.
3126 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
3127 * inf-ttrace.c (inf_ttrace_attach): Likewise.
3128 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
3129 check.
3130
bf6adea8
MM
31312010-02-14 Masaki Muranaka <monaka@monami-software.com>
3132
3133 * MAINTAINERS: Add myself for write after approval privileges.
3134
28f34a8f
JK
31352010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3136
3137 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
3138 block.
3139
701ed6dc
JK
31402010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3141
3142 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
3143 only if INFO_VERBOSE.
3144
e5829bee
MS
31452010-02-12 Tomas Holmberg <th@virtutech.com>
3146
3147 * mi/mi-main.c: Added the --reverse flag to the following MI
3148 commands: exec-continue, exec-finish, exec-next, exec-step,
3149 exec-next-instruction, exec-step-instruction. This is to
3150 support reverse execution over the MI interface to gdb.
3151
081dfbf7
PA
31522010-02-12 Pedro Alves <pedro@codesourcery.com>
3153
3154 * tracepoint.c (_initialize_tracepoint): Specify that the address
3155 range of `tfind outsize' is exclusive, and that the address range
3156 of `tfind range' is inclusive, in the commands' help strings.
3157
ecc13e53
JB
31582010-02-12 Joel Brobecker <brobecker@adacore.com>
3159
3160 Spurious "dll not found" error messages on x64-windows.
3161 * windows-nat.c: Add include of complaints.h.
3162 (handle_unload_dll): Change dll-not-found error into a complaint.
3163
15c3d785
PA
31642010-02-12 Pedro Alves <pedro@codesourcery.com>
3165
3166 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
3167 bp_tracepoint and bp_fast_tracepoint, not
3168 bp_loc_software_breakpoint.
3169 (update_global_location_list): Tracepoints are never duplicates of
3170 anything.
3171
fd9b8c24
PA
31722010-02-12 Pedro Alves <pedro@codesourcery.com>
3173
3174 * breakpoint.c (break_command_really): Change return type to int.
3175 Return false if no breakpoint was created, true otherwise.
3176 (trace_command): Don't set the tracepoint count if no tracepoint
3177 was created.
3178 (ftrace_command): Ditto.
3179 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
3180 created in the breakpoints table.
3181
5c0d192f
JK
31822010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3183 Ulrich Weigand <uweigand@de.ibm.com>
3184
3185 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
3186
5d5b640e
PA
31872010-02-11 Pedro Alves <pedro@codesourcery.com>
3188
3189 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
3190 the offset value isn't of integral type.
3191
e5a0a904
JK
31922010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3193
3194 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
3195 New.
3196
be636754
PA
31972010-02-11 Pedro Alves <pedro@codesourcery.com>
3198
3199 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
3200 non-subscriptable types.
3201 * valarith.c (binop_types_user_defined_p): New, abstracted out
3202 from ...
3203 (binop_user_defined_p): ... this.
3204 * value.h (binop_types_user_defined_p): Declare.
3205
10ef8d6a
PA
32062010-02-11 Pedro Alves <pedro@codesourcery.com>
3207
3208 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
3209 Merge uploaded TSVs before merging uploaded tracepoints.
3210
b1028c8e
PA
32112010-02-11 Pedro Alves <pedro@codesourcery.com>
3212
3213 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
3214
7a93fb82 32152010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 3216
7a93fb82
VP
3217 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
3218 whitespace character after a dot in comment.
3219 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
3220 Likewise.
3221 (list_args_or_locals): For the 'all' (that is
3222 -stack-list-variables) case, always output list of tuples.
3223 Output 'arg' field if variable is argument.
84d90c10 3224
92981e24
TT
32252010-02-10 Tom Tromey <tromey@redhat.com>
3226
3227 * parser-defs.h (parser_debug): Declare.
3228 * parse.c (_initialize_parse): Install "debug parser" set/show
3229 command.
3230 (parser_debug): New global.
3231 (show_parserdebug): New function.
3232 * c-exp.y (c_parse): Set yydebug.
3233
9fd3625f
L
32342010-02-10 H.J. Lu <hongjiu.lu@intel.com>
3235
3236 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
3237 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3238 (tdesc_predefined_types): Add i387_ext, i386_eflags and
3239 i386_mxcsr.
3240 (tdesc_find_type): New.
3241 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
3242 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3243
3244 * target-descriptions.h (tdesc_find_type): New.
3245
2fe842e5
MS
32462010-02-10 Michael Snyder <msnyder@vmware.com>
3247
3248 * gdb-gdb.py: Comment fix.
3249
f18b4cab
TG
32502010-02-09 Tristan Gingold <gingold@adacore.com>
3251
3252 * machoread.c (macho_symfile_relocate): New function.
3253 (macho_sym_fns): Use macho_symfile_relocate instead of
3254 default_symfile_relocate.
3255 (macho_oso_data): New type.
3256 (current_oso): New variable.
3257 (macho_add_oso_symfile): Do not compute section_addr_info, but
3258 instead set vma of sections.
3259 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
3260 Set and clear current_oso.
3261
31dbc1c5
JB
32622010-02-09 Joel Brobecker <brobecker@adacore.com>
3263
3264 Wrong type description for tagged type parameter.
3265 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
3266 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
3267 reference to a tagged type.
3268
399f313b
TG
32692010-02-09 Tristan Gingold <gingold@adacore.com>
3270
3271 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
3272 brothers of the parent.
3273
714f19d5
TT
32742010-02-08 Tom Tromey <tromey@redhat.com>
3275
3276 PR c++/8017:
3277 * value.h: Update.
3278 * valops.c (search_struct_field): Make 'name' const.
3279 (search_struct_method): Likewise.
3280 (find_method_list): Make 'method' const.
3281 (value_struct_elt): Make 'name' and 'err' const.
3282 (value_find_oload_method_list): Make 'method' const.
3283 (find_overload_match): Make 'name' const.
3284 * eval.c (evaluate_subexp_standard): New locals function,
3285 function_name.
3286 <OP_FUNCALL>: Handle OP_SCOPE specially.
3287
de0a0249
UW
32882010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3289
3290 * infrun.c (handle_inferior_event): Do not look up regcache
3291 for exited processes.
3292
8d95cc3b 32932010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
3294
3295 PR gdb/10728
3296 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 3297 warn if found, and assume length = 1.
83b10087 3298
99903ae3
CM
32992010-02-08 Chris Moller <cmoller@redhat.com>
3300
3301 PR gdb/9067
3302 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
3303 cp_print_static_field) Fix use of obstacks.
8d95cc3b 3304
e3e9f5a2
PA
33052010-02-08 Pedro Alves <pedro@codesourcery.com>
3306
3307 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
3308 resumed LWPs as resumed.
3309 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
3310 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
3311 of throwing an internal error. If an LWP of a process we're not
3312 waiting for reports a signal, don't force collecting a SIGSTOP,
3313 and if it was breakpoint hit in non-stop mode, cancel it. Don't
3314 go through all LWPs cancelling breakpoints in non-stop mode.
3315 (resume_stopped_resumed_lwps): New.
3316 (linux_nat_wait): Use it.
3317
46763423
L
33182010-02-07 H.J. Lu <hongjiu.lu@intel.com>
3319
3320 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
3321 i386/amd64 and i386/amd64-linux.
3322 (i386/i386-expedite): New.
3323 (i386/i386-linux-expedite): Likewise.
3324 (i386/amd64-expedite):Likewise.
3325 (i386/amd64-linux-expedite): Likewise.
3326 ($(outdir)/i386/i386-linux.dat): Likewise.
3327 ($(outdir)/i386/amd64.dat): Likewise.
3328 ($(outdir)/i386/amd64-linux.dat): Likewise.
3329
3330 * features/i386/32bit-core.xml: New.
3331 * features/i386/32bit-linux.xml: Likewise.
3332 * features/i386/32bit-sse.xml: Likewise.
3333 * features/i386/64bit-core.xml: Likewise.
3334 * features/i386/64bit-linux.xml: Likewise.
3335 * features/i386/64bit-sse.xml: Likewise.
3336 * features/i386/i386-linux.xml: Likewise.
3337 * features/i386/i386.xml: Likewise.
3338 * features/i386/amd64-linux.xml: Likewise.
3339 * features/i386/amd64.xml: Likewise.
3340 * features/i386/i386-linux.c: Likewise.
3341 * features/i386/i386.c: Likewise.
3342 * features/i386/amd64-linux.c: Likewise.
3343 * features/i386/amd64.c: Likewise.
3344
82856980
SW
33452010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
3346
3347 PR c++/7935:
3348 * cp-support.h: Added char* alias element to using_direct data
3349 struct.
3350 (cp_add_using): Added char* alias argument.
3351 (cp_add_using_directive): Ditto.
3352 * cp-namespace.c: Updated with the above changes.
3353 (cp_lookup_symbol_imports): Check for aliases.
3354 * dwarf2read.c (read_import_statement): Figure out local alias
3355 for the import and pass it on to cp_add_using.
3356 (read_namespace): Pass alias argument to cp_add_using.
3357
d18b8b7a
HZ
33582010-02-05 Hui Zhu <teawater@gmail.com>
3359
3360 * defs.h (gdb_bfd_errmsg): New extern.
3361 * exec.c (exec_file_attach): Change bfd_errmsg to
3362 gdb_bfd_errmsg.
3363 * utils.c (AMBIGUOUS_MESS1): New macro.
3364 (AMBIGUOUS_MESS2): New macro.
3365 (gdb_bfd_errmsg): New function.
3366
48379de6
DE
33672010-02-04 Doug Evans <dje@google.com>
3368
3369 * solib-svr4.c (enable_break): Add comment.
3370
4ee73e90
AG
33712010-02-04 Anthony Green <green@moxielogic.com>
3372
3373 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
3374 gracefully.
3375
1a334831
TT
33762010-02-04 Tom Tromey <tromey@redhat.com>
3377
3378 * valops.c (search_struct_field): Account for
3379 value_embedded_offset. Fix check for virtual base past the end of
3380 the object. Use value_copy when making a slice of the value.
3381
1180b2c8
L
33822010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3383
3384 PR tui/9622
3385 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
3386 only if gdb_stdout is a tty.
3387
c3f08eb7
L
33882010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3389
3390 * target-descriptions.c: Include "osabi.h".
3391 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
3392 OSABI.
3393
2d33f7b8
TG
33942010-02-04 Tristan Gingold <gingold@adacore.com>
3395
3396 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
3397 (macho_symtab_read): Adjust calls to macho_add_oso.
3398 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
3399 (macho_symfile_read): Adjust call to macho_oso_symfile.
3400 (macho_new_init): Move this function after declarations.
3401 (macho_symfile_init): Ditto.
3402 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
3403 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
3404
11334b82
VP
34052010-02-04 Vladimir Prus <vladimir@codesourcery.com>
3406
3407 Include MI command in remotelog.
3408
3409 * mi/mi-main.c (mi_execute_command): Call target_log_command.
3410
ff97be06
L
34112010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3412
3413 * remote.c (remote_state): Remove gdbarch.
3414 (init_remote_state): Don't set gdbarch.
3415 (remote_query_supported): Pass target_gdbarch instead of
3416 rs->gdbarch to gdbarch_qsupported.
3417
75cebea9
L
34182010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3419
3420 * gdbarch.sh: Add qsupported.
3421
3422 * gdbarch.c: Regenerated.
3423 * gdbarch.h: Likewise.
3424
3425 * remote.c (remote_state): Add gdbarch.
3426 (init_remote_state): Set gdbarch.
3427 (remote_query_supported): Support gdbarch_qsupported.
3428
c1dec97b
DJ
34292010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
3430
3431 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
3432 __FreeBSD_kernel_version.
3433
ac8035ab
TG
34342010-02-03 Tristan Gingold <gingold@adacore.com>
3435
3436 * symfile.h (struct sym_fns): Add sym_relocate field.
3437 (default_symfile_relocate): New prototype.
3438 (symfile_relocate_debug_section): First argument is now an objfile.
3439 * symfile.c (default_symfile_relocate): Rename from
3440 symfile_relocate_debug_section, first argument is now an objfile.
3441 (symfile_relocate_debug_section): New function.
3442 * coffread.c (coff_sym_fns): Set sym_relocate field.
3443 * somread.c (som_sym_fns): Ditto.
3444 * mipsread.c (ecoff_sym_fns): Ditto.
3445 * machoread.c (macho_sym_fns): Ditto.
3446 * elfread.c (elf_sym_fns): Ditto.
3447 * dwarf2read.c (dwarf2_read_section): Ditto.
3448 * xcoffread.c (xcoff_sym_fns): Ditto.
3449 * dbxread.c (aout_sym_fns): Ditto.
3450 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
3451 (elfstab_build_psymtabs): Ditto.
3452
be52b756
L
34532010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3454
3455 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
3456
9c3c02fd
TT
34572010-02-02 Tom Tromey <tromey@redhat.com>
3458
3459 * valops.c (value_cast_structs): Try downcasting using the RTTI
3460 type.
3461
f23f4c59
TT
34622010-02-02 Tom Tromey <tromey@redhat.com>
3463
3464 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
3465 (gnuv2_baseclass_offset): Now static.
3466 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
3467 * gnu-v2-abi.h: Remove.
3468
0cc2414c
TT
34692010-02-02 Tom Tromey <tromey@redhat.com>
3470
3471 * m2-typeprint.c (m2_record_fields): Don't use
3472 TYPE_DECLARED_TYPE.
3473 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
3474 (struct main_type) <flag_declared_class>: New field.
3475 (struct cplus_struct_type) <declared_type>: Remove.
3476 <ntemplate_args>: Move earlier.
3477 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
3478 (DECLARED_TYPE_TEMPLATE): Remove.
3479 (TYPE_DECLARED_TYPE): Remove.
3480 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
3481 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
3482 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
3483 TYPE_DECLARED_TYPE.
3484
edf3d5f3
TT
34852010-02-02 Tom Tromey <tromey@redhat.com>
3486
3487 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
3488 * valops.c (search_struct_field): Compute nbases after calling
3489 CHECK_TYPEDEF.
3490 (check_field): Call CHECK_TYPEDEF.
3491 * cp-valprint.c (cp_print_value): Pass correct address to
3492 baseclass_offset. Fix check for virtual base past the end of the
3493 object. Don't offset address passed to cp_print_value_fields or
3494 apply_val_pretty_printer.
3495 (cp_print_value_fields): Fix call to val_print.
3496 (cp_print_value_fields_rtti): New function.
3497 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
3498 * p-valprint.c (pascal_object_print_value_fields): Fix call to
3499 val_print.
3500 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
3501 offset to address.
3502 * language.h (struct language_defn) <la_val_print>: Document.
3503 * c-lang.h (cp_print_value_fields_rtti): Declare.
3504
e4b7f41c
JK
35052010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3506
3507 PR libc/11214:
3508 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3509 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
3510 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3511
7618e12b
DJ
35122010-02-01 Michael Matz <matz@suse.de>
3513 Daniel Jacobowitz <dan@codesourcery.com>
3514
e4b7f41c 3515 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
3516 functions use a frame pointer.
3517
b381ea14
JK
35182010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3519
3520 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
3521 by a conditional setting DYN_ADDR. Use DYN_ADDR.
3522 * config/djgpp/fnchange.lst: Add translations for
3523 symbol-without-target_section.exp and symbol-without-target_section.c.
3524
0e05dfcb
DJ
35252010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3526
3527 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
3528 (remote_breakpoint_for_pc): Correct invalid_p check.
3529 * gdbarch.c: Regenerated.
3530
f9d67f43
DJ
35312010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3532
3533 * arm-tdep.c (arm_find_mapping_symbol): New function, from
3534 arm_pc_is_thumb.
3535 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
3536 (extend_buffer_earlier): New function.
3537 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
3538 (arm_adjust_breakpoint_address): New function.
3539 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
3540
177321bd
DJ
35412010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3542
3543 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
3544 (arm_linux_thumb2_le_breakpoint): New constants.
3545 (arm_linux_init_abi): Set thumb2_breakpoint and
3546 thumb2_breakpoint_size.
3547 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
3548 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
3549 Implement support for single stepping through IT blocks if
3550 a 32-bit Thumb breakpoint instruction is available.
3551 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
3552 is available, use it when needed.
3553 (arm_remote_breakpoint_from_pc): New function.
3554 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
3555 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
3556 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
3557
a1dcb23a
DJ
35582010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3559
3560 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
3561 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
3562 * gdbarch.c, gdbarch.h: Regenerated.
3563 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
3564 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
3565 gdbarch_remote_breakpoint_from_pc.
3566
2b009048
DJ
35672010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3568
3569 * infrun.c (prepare_to_proceed): Handle other signals which might
3570 match a breakpoint.
3571 (handle_inferior_event): Move the check for unusual breakpoint
3572 signals earlier.
3573
e4e2711a
JB
35742010-01-29 Paul Hilfinger <hilfinger@adacore.com>
3575
3576 amd64 - function returning record with field straddling 2 registers.
3577 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
3578 a record of length <= 16 in which a field straddles the two
3579 eightbytes.
3580
cba6fab5
JB
35812010-01-29 Joel Brobecker <brobecker@adacore.com>
3582
3583 Implement return values on amd64-windows.
3584 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
3585 (amd64_windows_return_value): New function.
3586 (amd64_windows_init_abi): Call set_gdbarch_return_value with
3587 amd64_windows_return_value.
3588
3af6ddfe
JB
35892010-01-29 Joel Brobecker <brobecker@adacore.com>
3590
3591 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 3592 parameter registers.
3af6ddfe
JB
3593 * i386-tdep.h (struct gdbarch_tdep): Add new field
3594 integer_param_regs_saved_in_caller_frame.
3595 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3596 tdep->integer_param_regs_saved_in_caller_frame to 1.
3597 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3598 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3599
80d19a06
JB
36002010-01-29 Joel Brobecker <brobecker@adacore.com>
3601
3602 amd64-windows: memory args passed by pointer during function calls.
3603 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3604 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3605 where tdep->memory_args_by_pointer is non-zero.
3606 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3607 tdep->memory_args_by_pointer to 1.
3608
ba581dc1
JB
36092010-01-29 Joel Brobecker <brobecker@adacore.com>
3610
4966b6c2 3611 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
3612 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3613 amd64-tdep.c.
3614 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3615 call_dummy_integer_regs, and classify.
3616 * amd64-tdep.h (amd64_classify): Add declaration.
3617 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3618 (amd64_reg_class): Delete, moved to i386-tdep.h.
3619 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3620 Replace call to amd64_classify by call to tdep->classify.
3621 (amd64_push_arguments): Get the list of registers to use for
3622 passing integer parameters from the gdbarch tdep structure,
3623 rather than using a hardcoded one. Replace calls to amd64_classify
3624 by calls to tdep->classify.
3625 (amd64_push_dummy_call): Get the register number used for
3626 the "hidden" argument from tdep->call_dummy_integer_regs.
3627 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3628 and tdep->call_dummy_integer_regs. Set tdep->classify.
3629 * amd64-windows-tdep.c: Add include of gdbtypes.h.
3630 (amd64_windows_dummy_call_integer_regs): New static global.
3631 (amd64_windows_classify): New function.
3632 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
3633 tdep->call_dummy_integer_regs and tdep->classify.
3634
d37346f0
DJ
36352010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3636
3637 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
3638 for the new regcache. All callers updated.
3639 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
3640 (get_thread_arch_regcache): Do not set aspace here.
3641 * regcache.h (regcache_xmalloc): Update declaration.
3642
3643 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
3644 regcache_xmalloc updated.
3645
7434dadd
JB
36462010-01-28 Joel Brobecker <brobecker@adacore.com>
3647
3648 Another -Wunused-function error in procfs.c (sparc-solaris)
3649 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
3650 Only define if SYS_syssgi is defined.
3651 (remove_dbx_link_breakpoint): Delete declaration. Move up.
3652 (dbx_link_addr, insert_dbx_link_bpt_in_file)
3653 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
3654 is itself defined.
3655
16d905e2
CF
36562010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
3657
3658 * windows-nat.c (windows_initialization_done): New variable.
3659 (get_windows_debug_event): Issue error when process dies before
3660 completely initializing.
3661 (do_initial_windows_stuff): Set flag to indicate when we are done with
3662 the initial steps of attaching to the child.
3663
cd55e50f
JK
36642010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3665
3666 * symtab.h (struct symbol <symtab>): New comment on NULL values.
3667
99cc78aa
DE
36682010-01-27 Doug Evans <dje@google.com>
3669
4c7dcb84
DE
3670 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
3671
99cc78aa
DE
3672 * breakpoint.c (bpstat_stop_status): Delete useless code.
3673
52334bf5
JK
36742010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 * printcmd.c (display_uses_solib_p): Remove variable section. Access
3677 objfile via SYMBOL_SYMTAB.
3678
708ead4e
TT
36792010-01-26 Tom Tromey <tromey@redhat.com>
3680
3681 PR exp/7643:
3682 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
3683 coerce_array on result.
3684
b14e635e
SW
36852010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3686
3687 * cp-namespace.c (cp_lookup_symbol_namespace): Added
3688 search_parent argument.
3689 (cp_add_using): Initialize 'searched' field.
3690 (reset_directive_searched): New function.
3691 * cp-support.h: Add 'searched' field to using_direct struct.
3692 (cp_lookup_symbol_imports): Ditto.
3693 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
3694 Perform recursive search.
3695 Implement non parent search.
3696 * valops.c (value_maybe_namespace_elt): Updated.
3697
8540c487
SW
36982010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3699
3700 PR gdb/10929:
3701 * dwarf2read.c (read_lexical_block_scope): Create blocks for
3702 scopes which contain using directives even if they contain no
3703 declarations.
3704 * symtab.c (lookup_symbol_aux): Pass lowest level block to
3705 la_lookup_symbol_nonlocal.
3706 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
3707 cp_lookup_symbol_namespace.
3708 (cp_lookup_symbol_namespace): Perform an import lookup at every
3709 block level.
3710 (cp_lookup_symbol_imports): New function.
3711 (cp_lookup_symbol_in_namespace): New function.
3712
421d5d99
TT
37132010-01-25 Tom Tromey <tromey@redhat.com>
3714
3715 PR gdb/11049:
3716 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
3717 result.
3718
6bcc772d
RO
37192010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3720
3721 * configure.ac: Only use host_os part when disabling TUI on osf.
3722 Use test to check variables, prefix strings with x.
3723 * configure: Regenerate.
3724
3725 * solib-osf.c (osf_current_sos): Initialize tail.
3726
1c1238a5
TG
37272010-01-25 gingold <gingold@adacore.com>
3728
c8d5aac9
L
3729 * windows-nat.c (windows_continue): Use %x to print thread id.
3730 (get_windows_debug_event): Ditto.
1c1238a5 3731
0b92b5bb
TT
37322010-01-22 Tom Tromey <tromey@redhat.com>
3733
3734 PR symtab/11199:
3735 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
3736 type and arguments. Use smash_to_methodptr_type.
3737 (read_structure_type): Call quirk_gcc_member_function_pointer
3738 later.
3739 * gdbtypes.h (smash_to_methodptr_type): Declare.
3740 * gdbtypes.c (smash_to_methodptr_type): New function.
3741 (lookup_methodptr_type): Use it.
3742
0d5392b8
TT
37432010-01-21 Tom Tromey <tromey@redhat.com>
3744
3745 PR symtab/11198:
3746 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
3747 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
3748 * glibc-tdep.c (find_minsym_and_objfile): Remove.
3749 (glibc_skip_solib_resolver): Use
3750 lookup_minimal_symbol_and_objfile.
3751
e6d088ec
KT
37522010-01-21 Kai Tietz <kai.tietz@onevision.com>
3753
3754 * inflow.c (check_syscall): Guard by #if clause for GO32 and
3755 WIN32 targets.
3756
b966cb8a
TT
37572010-01-20 Tom Tromey <tromey@redhat.com>
3758
3759 PR backtrace/10770:
3760 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
3761 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
3762 * dwarf2expr.c (new_dwarf_expr_context): Allocate
3763 dwarf_stack_values, not CORE_ADDRs.
3764 (execute_stack_op): Change DW_OP_div and comparison operators to
3765 use signed operands.
3766
3f81c18a
VP
37672010-01-20 Vladimir Prus <vladimir@codesourcery.com>
3768
3769 Per-inferior args and tty and environment.
3770
3771 * infcmd.c (inferior_args): Rename to ...
3772 (inferior_args_scratch): ... this.
3773 (inferior_io_terminal): Rename to ...
3774 (inferior_io_terminal_scratch): ... this.
3775 (inferior_argc, inferior_argv): Remove.
3776 (set_inferior_io_terminal, get_inferior_io_terminal): Store
3777 inside current_inferior().
3778 (set_inferior_tty_command, show_inferior_tty_command): New.
3779 (get_inferior_args, set_inferior_args): Store inside
3780 current_inferior().
3781 (notice_args_set): Likewise and rename to...
3782 (set_args_command): ... this.
3783 (set_inferior_args_vector): Likewise.
3784 (notice_args_read): Rename to...
3785 (show_args_command): ...new.
3786 (tty_command): Remove.
3787 (run_command_1): Don't free old args, as they are freed by
3788 set_inferior_arg now.
3789 (run_no_args_command): Likewise.
3790 (inferior_environ): Remove.
3791 (run_command_1): Use environment of the current inferior.
3792 (environment_info, set_environment_command)
3793 (unset_environment_command, path_info, path_command): Likewise.
3794 (_initialize_infcmd): Adjust for function and variable renames.
3795 Do not init inferior_environ.
3796 * inferior.h (set_inferior_arg): Adjust prototype.
3797 (struct inferior): New fields args, argc, argv, terminal, environment.
3798 (inferior_environ): Remove declaration.
3799 * inferior.c (free_inferior): Free new fields.
3800 (add_inferior_silent): Initialize 'environment' field.
3801 * main.c (captured_main): Set arguments only after the initial
3802 inferior has been created. Set set_inferior_io_terminal,
3803 not tty_command.
3804 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
3805 inferior.
3806 (_initialize_mi_cmd_env): Adjust for disappearance of global
3807 inferior_environ.
3808 * solib.c (solib_find): Use environment of the current inferior.
3809
d8b65138
JK
38102010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3811
3812 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
3813 HAVE_PYTHON.
3814 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
3815
692465f1
JB
38162010-01-20 Joel Brobecker <brobecker@adacore.com>
3817
3818 Get rid of ada-lang.c:function_name_from_pc.
3819 * ada-lang.c: Add "stack.h" #include.
3820 (function_name_from_pc): Delete.
3821 (is_known_support_routine): Replace call to function_name_from_pc
3822 by call to find_frame_funname.
3823 (ada_unhandled_exception_name_addr_from_raise): Likewise.
3824
95519e0e
TT
38252010-01-19 Tom Tromey <tromey@redhat.com>
3826
3827 PR c++/11026:
3828 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
3829 objfile obstack.
3830
95c11dc7
TT
38312010-01-19 Tom Tromey <tromey@redhat.com>
3832
3833 * top.c (stop_sig, float_handler, do_nothing): Remove.
3834
a0f49112
JK
38352010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3836
3837 * breakpoint.c (watchpoint_check): Check the call
3838 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
3839 Extend the comment.
8d95cc3b 3840 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
3841 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
3842 watchpoint-cond-gone-stripped.c.
3843
ceeb3d5a
TT
38442010-01-19 Tom Tromey <tromey@redhat.com>
3845
3846 PR c++/8000:
3847 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
3848 into parent scope, and enumerator into grandparent scope.
3849
2b71fc8e
JB
38502010-01-19 Joel Brobecker <brobecker@adacore.com>
3851
3852 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
3853
03564ed9
JB
38542010-01-19 Joel Brobecker <brobecker@adacore.com>
3855
3856 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
3857 i[34567]86-*-solaris2.1[0-9]*.
3858 * configure.tgt: Likewise.
3859
fb2e7cb4
JB
38602010-01-19 Joel Brobecker <brobecker@adacore.com>
3861
3862 * NEWS: Document the source command enhancement allowing it
3863 to load Python scripts. Document the "set/show script-extension"
3864 commands.
3865
1cb5e2a4
JB
38662010-01-19 Joel Brobecker <brobecker@adacore.com>
3867
3868 Add -Wunused-function to compile flags.
3869 * configure.ac: Add -Wunused-function to build_warnings.
3870 * configure: Regenerate.
3871
0ec6cd0c
JB
38722010-01-19 Joel Brobecker <brobecker@adacore.com>
3873
3874 "delete" ada-lex.c:input function, not used.
3875 * ada-lex.l: #define YY_NO_INPUT.
3876
b74845da
JB
38772010-01-19 Joel Brobecker <brobecker@adacore.com>
3878
3879 Delete free_named_symtabs and associated cleanup.
3880 * symfile.h (free_named_symtabs): Delete declaration.
3881 * symfile.c: Remove some commented out code (clear_symtab_users_once).
3882 (cashier_psymtab): Comment function out.
3883 Delete declaration.
3884 (free_named_symtabs): Delete.
3885 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
3886 * dbxread.c (end_psymtab): Likewise.
3887 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
3888 * exec.c (exec_close_1): Ditto.
3889 * xcoffread.c (xcoff_end_psymtab): Likewise.
3890
65c06092
JB
38912010-01-19 Joel Brobecker <brobecker@adacore.com>
3892
3893 * stack.c (print_block_frame_labels): Comment function out.
3894
d5cd6034
JB
38952010-01-19 Joel Brobecker <brobecker@adacore.com>
3896
3897 Delete unused or undefined functions.
3898 * breakpoint.c (ep_parse_optional_filename): Delete.
3899 * dcache.c (dcache_write_line): Remove declaration.
3900 * infrun.c (build_infrun): Remove declaration.
3901 * tracepoint.c (tracepoint_save_command): Remove declaration.
3902 * linux-nat.c (init_lwp_list): Delete. No longer used.
3903 * event-loop.c (check_async_signal_handlers): Delete declaration.
3904 * infrun.c (init_execution_control_state): Delete.
3905 (proceed): Update comment to avoid mentioning
3906 init_execution_control_state.
3907 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
3908 * ada-lang.c (ada_to_static_fixed_value): Delete.
3909 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
3910 * cp-namespace.c (cp_copy_usings): Delete.
3911 * xml-syscall.c (xml_number_of_syscalls): Delete.
3912 * progspace.c (find_program_space_by_num): Delete.
3913 * inflow.c (handle_sigio): Delete declaration.
3914 * hppa-tdep.c (hppa_alignof): Delete.
3915 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
3916 (mipsnbsd_core_osabi_sniffer): Delete.
3917
4e8f195d
TT
39182010-01-18 Tom Tromey <tromey@redhat.com>
3919
3920 PR c++/9680:
3921 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
3922 (CONST_CAST): New tokens.
3923 (exp): Add new productions.
3924 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
3925 reinterpret_cast.
3926 (is_cast_operator): New function.
3927 (yylex): Handle cast operators specially.
3928 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
3929 UNOP_REINTERPRET_CAST>: New cases.
3930 * expprint.c (print_subexp_standard): Likewise.
3931 (op_name_standard): Likewise.
3932 (dump_subexp_body_standard): Likewise.
3933 * parse.c (operator_length_standard): Likewise.
3934 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
3935 UNOP_REINTERPRET_CAST.
3936 * gdbtypes.c (class_types_same_p): New function.
3937 (is_ancestor): Use it.
3938 (is_public_ancestor): New function.
3939 (is_unique_ancestor_worker): Likewise.
3940 (is_unique_ancestor): Likewise.
3941 * gdbtypes.h (class_types_same_p, is_public_ancestor)
3942 (is_unique_ancestor): Declare.
3943 * valops.c (value_reinterpret_cast): New function.
3944 (dynamic_cast_check_1): Likewise.
3945 (dynamic_cast_check_2): Likewise.
3946 (value_dynamic_cast): Likewise.
3947 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
3948
d9c57d9f
JB
39492010-01-18 Joel Brobecker <brobecker@adacore.com>
3950
3951 Fix build failure when building without Python support.
3952 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
3953 is not defined.
3954
f80d3ff2
JB
39552010-01-18 Joel Brobecker <brobecker@adacore.com>
3956
3957 Use XVS field type instead of doing a parallel lookup.
3958 * ada-lang.c (ada_get_base_type): Follow the XVS field type
3959 if it is a reference type instead of doing a type lookup using
3960 the XVS field name.
3961
5bf03f13
JB
39622010-01-18 Joel Brobecker <brobecker@adacore.com>
3963
3964 Trust PAD types instead of using PAD___XVS.
3965 * ada-lang.c (trust_pad_over_xvs): New static variable.
3966 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
3967 parallel XVS type, follow the XVS type instead of the PAD type.
3968 (unwrap_value): Make sure that there is no parallel XVE type
3969 before returning the value as is.
3970 (set_ada_list, show_ada_list): New static variables.
3971 (set_ada_command, show_ada_command): New functions.
3972 (_initialize_ada_language): Add new "set/show ada" prefix commands.
3973 Add new "set/show ada trust-PAD-over-XVS" setting.
3974
973817a3
JB
39752010-01-18 Tom Tromey <tromey@redhat.com>
3976 Thiago Jung Bauermann <bauerman@br.ibm.com>
3977
3978 Allow "source" to load python scripts.
3979 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
3980 * python/python.c (source_python_script): New function.
3981 * python/python.h (source_python_script): Add declaration.
3982 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
3983 (script_ext_off, script_ext_soft, script_ext_strict)
3984 (script_ext_enums, script_ext_mode): New static constants.
3985 (show_script_ext_mode, find_and_open_script): New functions.
3986 (source_script): Enhance to handle Python scripts.
3987 (init_cli_cmds): Add set/show script-extension commands.
3988
98e03262
SS
39892010-01-16 Stan Shebs <stan@codesourcery.com>
3990
3991 * tracepoint.h (struct trace_status): Use unsigned long long
3992 instead of size_t.
3993 * tracepoint.c (trace_status_command): Fix printf directive.
3994 (trace_save_command): Check fwrite returns, fix printf directive.
3995 (trace_filename): New global.
3996 (tfile_open): Set it, check read returns.
3997 (tfile_close): Free trace_filename.
3998 (tfile_get_traceframe_address): Check read returns.
3999 (tfile_trace_find): Ditto.
4000 (tfile_fetch_registers): Ditto.
4001 (tfile_xfer_partial): Ditto.
4002 (tfile_get_trace_state_variable_value): Ditto.
4003
00bf0b85
SS
40042010-01-15 Stan Shebs <stan@codesourcery.com>
4005
4006 Add trace file support.
4007 * tracepoint.h (enum trace_stop_reason): New enum.
4008 (struct trace_status): New struct.
4009 (parse_trace_status): Declare.
4010 (struct uploaded_tp): Move here from remote.c,
4011 add fields for actions.
4012 (struct uploaded_tsv): New struct.
4013 * tracepoint.c (tfile_ops): New target vector.
4014 (trace_fd): New global.
4015 (tfile_open): New function.
4016 (tfile_close): New function.
4017 (tfile_files_info): New function.
4018 (tfile_get_trace_status): New function.
4019 (tfile_get_traceframe_address): New function.
4020 (tfile_trace_find): New function.
4021 (tfile_fetch_registers): New function.
4022 (tfile_xfer_partial): New function.
4023 (tfile_get_trace_state_variable_value): New function.
4024 (init_tfile_ops): New function.
4025 (_initialize_tracepoint): Call it, add tfile target.
4026 (trace_status): New global.
4027 (current_trace_status): New function.
4028 (trace_running_p): Remove, change all users to get from
4029 current_trace_status()->running.
4030 (get_trace_status): Remove.
4031 (trace_status_command): Call target_get_trace_status directly,
4032 report more detail including tracing stop reasons.
4033 (trace_find_command): Always allow tfind on a file.
4034 (trace_find_pc_command): Ditto.
4035 (trace_find_tracepoint_command): Ditto.
4036 (trace_find_line_command): Ditto.
4037 (trace_find_range_command): Ditto.
4038 (trace_find_outside_command): Ditto.
4039 (trace_frames_offset, cur_offset): Declare as off_t.
4040 (trace_regblock_size): Rename from reg_size, update users.
4041 (parse_trace_status): New function.
4042 (tfile_interp_line): New function.
4043 (disconnect_or_stop_tracing): Ensure current trace
4044 status before asking what to do.
4045 (stop_reason_names): New global.
4046 (trace_save_command): New command.
4047 (get_uploaded_tp): Move here from remote.c.
4048 (find_matching_tracepoint): Ditto.
4049 (merge_uploaded_tracepoints): New function.
4050 (parse_trace_status): Use stop_reason_names.
4051 (_initialize_tracepoint): Define tsave command.
4052 * target.h (target_ops): New fields to_save_trace_data,
4053 to_upload_tracepoints, to_upload_trace_state_variables,
4054 to_get_raw_trace_data, change to_get_trace_status
4055 to take a pointer to a status struct.
4056 (target_save_trace_data): New macro.
4057 (target_upload_tracepoints): New macro.
4058 (target_upload_trace_state_variables): New macro.
4059 (target_get_raw_trace_data): New macro.
4060 * target.c (update_current_target): Add new methods, change
4061 signature of to_get_trace_status.
4062 * remote.c (hex2bin): Make globally visible.
4063 (bin2hex): Ditto.
4064 (remote_download_trace_state_variable): Download name also.
4065 (remote_get_trace_status): Update parameter, use
4066 parse_trace_status.
4067 (remote_save_trace_data): New function.
4068 (remote_upload_tracepoints): New function.
4069 (remote_upload_trace_state_variables): New function.
4070 (remote_get_raw_trace_data): New function.
4071 (remote_start_remote): Use them.
4072 (_initialize_remote_ops): Add operations.
4073 * ax-gdb.c: Include breakpoint.h.
4074 * breakpoint.c (create_tracepoint_from_upload): Use
4075 break_command_really, return tracepoint, warn about unimplemented
4076 parts.
4077 * NEWS: Mention trace file addition.
4078
d904de5b
JK
40792010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4080
4081 Fix compilation warning on gcc-3.4.
4082 * exec.c (print_section_info): Move the `displacement' variable
4083 initialization to its declaration.
4084
64aa9731
JK
40852010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4086
4087 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
4088 comparison.
4089
ca1f5def 40902010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
4091
4092 "info tasks" broken by typedefs in ATCB type definitions.
4093 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
4094 ada_check_typedef before retrieving the length of the type for
4095 regular fields.
4096
12ab9e09
JB
40972010-01-15 Joel Brobecker <brobecker@adacore.com>
4098
4099 Do not use name-based lookup for unconstrained packed arrays.
4100 * ada-lang.c (find_parallel_type_by_descriptive_type):
4101 Limit the fallback to name-based lookups to the case where
4102 the type is a constrained packed array.
4103
c389c3dc
JB
41042010-01-15 Joel Brobecker <brobecker@adacore.com>
4105
4106 Enhance gdb-gdb.py to handle main_type.type_specific.
4107 * gdb-gdb.py: Print the type-specific part of struct main_type.
4108
7991dee7
JK
41092010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4110
4111 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
4112 * configure: Regenerate.
4113 * config.in: Regenerate.
4114 * utils.c: Include sys/resource.h.
4115 (dump_core, can_dump_core): New.
4116 (internal_vproblem): Update the comment. Check can_dump_core while
4117 setting dump_core_p. Replace two abort calls by dump_core calls.
4118
93c26624
JK
41192010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4120 Eli Zaretskii <eliz@gnu.org>
4121
4122 * NEWS: Document the PIE support.
4123
55235ad7
JK
41242010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4125
4126 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
4127 (check_is_pie_binary, _initialize_linux_tdep): Remove.
4128
41752192
JK
41292010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4130
4131 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
4132 Replace exec_entry_point call by bfd_get_start_address.
4133
9f2982ff
JK
41342010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 Support Valgrind attachments broken by the PIE support.
4137 * auxv.c: Include gdbcore.h.
4138 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
4139 parameters ops, object and annex. Remove their assertions.
4140 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
4141 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
4142 (memory_xfer_auxv): ... here.
4143 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
4144 memory_xfer_auxv.
4145 * procfs.c (procfs_xfer_partial): Likewise.
4146 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
4147 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
4148 (svr4_solib_create_inferior_hook): Conditionalize the
4149 svr4_relocate_main_executable call.
4150
61f0d762
JK
41512010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4152
4153 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
4154 target_section. Find SECT in current_target_sections, gdb_assert it.
4155 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
4156 New variable abfd.
4157 * symtab.c (lookup_objfile_from_block): Return the binary file instead
4158 of separate debug info file.
4159
51bee8e9
JK
41602010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4161
4162 Support PIEs with no symfile_objfile.
4163 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
4164 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
4165
b8040f19
JK
41662010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4167
4168 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
4169 code part to ...
4170 (svr4_static_exec_displacement): ... a new function.
4171 (svr4_exec_displacement): New function.
4172 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
4173 new_offsets using alloca now. Remove variable old_chain and changed.
4174 Call objfile_relocate unconditionally now.
4175
eb90ce83
DE
41762010-01-14 Doug Evans <dje@google.com>
4177
4178 * gdbtypes.c (arch_flags_type): Fix comment.
4179 * gdbtypes.h (arch_composite_type): Fix comment.
4180
bdfed3bc
TG
41812009-01-14 Tristan Gingold <gingold@adacore.com>
4182
4183 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
4184 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
4185 to symbol_file_add_from_bfd. Add OSO as separate objfile.
4186 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
4187 macho_add_oso_symfile.
4188 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
4189
1596ad23
JB
41902010-01-14 Joel Brobecker <brobecker@adacore.com>
4191
4192 Tru64: Dead threads are never deleted.
4193 * dec-thread.c (dec_thread_ptid_is_alive): New function.
4194 (dec_thread_count_gdb_threads): Fix counter increment.
4195 (dec_thread_add_gdb_thread): Fix *listp increment.
4196 (resync_thread_list): Fix bug in deletion of dead threads that
4197 caused all threads to be deleted, instead of just the dead ones.
4198
be759fcf
PM
41992010-01-13 Phil Muldoon <pmuldoon@redhat.com>
4200
4201 PR python/10705
4202
4203 * python/python-internal.h: Add lazy_string_object_type
4204 definition.
4205 (create_lazy_string_object, gdbpy_initialize_lazy_string)
4206 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
4207 * python/py-value.c (valpy_lazy_string): New function.
4208 (convert_value_from_python): Add lazy string conversion.
4209 * python/py-prettyprint.c (pretty_print_one_value): Check if
4210 return is also a lazy string.
4211 (print_string_repr): Add lazy string printing branch.
4212 (print_children): Likewise.
4213 * python/py-lazy-string.c: New file. Implement lazy strings.
4214 * python/python.c (_initialize_python): Call
4215 gdbpy_initialize_lazy_string.
4216 * varobj.c (value_get_print_value): Add lazy string printing
4217 branch. Account for encoding.
4218 * c-lang.c (c_printstr): Account for new encoding argument. If
4219 encoding is NULL, find encoding suited for type, otherwise use
4220 user encoding.
4221 * language.h (language_defn): Add encoding argument.
4222 (LA_PRINT_STRING): Likewise.
4223 * language.c (unk_lang_printstr): Update to reflect new encoding
4224 argument to language_defn.
4225 * ada-lang.h (ada_printstr): Likewise.
4226 * c-lang.h (c_printstr): Likewise.
4227 * p-lang.h (pascal_printstr);
4228 * f-lang.c (f_printstr): Likewise.
4229 * m2-lang.c (m2_printstr): Likewise.
4230 * objc-lang.c (objc_printstr): Likewise.
4231 * p-lang.c (pascal_printstr): Likewise.
4232 * scm-lang.c (scm_printstr): Likewise.
4233 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
4234 encoding argument.
4235 * ada-valprint.c (ada_printstr): Likewise.
4236 * f-valprint.c (f_val_print): Likewise
4237 * m2-valprint.c (m2_val_print): Likewise.
4238 * p-valprint.c (pascal_val_print): Likewise.
4239 * expprint.c (print_subexp_standard): Likewise.
4240 * valprint.c (val_print_string): Likewise.
4241 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
4242 (SUBDIR_PYTHON_SRCS): Likewise.
4243 (py-lazy-string.o): New rule.
4244
1fe72117 42452010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
4246
4247 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
4248 uninitialized" warning from gcc on local `tree'.
4249
dc146f7c
VP
42502010-01-13 Vladimir Prus <vladimir@codesourcery.com>
4251
4252 Implement core awareness.
4253
4254 * bcache.c (compare_ints): Remove
4255 (print_percentage): Use compare_positive_ints.
4256 * defs.h (compare_positive_ints): Declare.
4257 * linux-nat.h (struct lin_lwp): New field core.
4258 (linux_nat_core_of_thread_1): Declare.
4259 * linux-nat.c (add_lwp): Init the 'core' field.
4260 (linux_nat_wait_1): Record the core.
4261 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
4262 (linux_nat_add_target): Register the above.
4263 * linux-thread-db.c (update_thread_core): New.
4264 (thread_db_find_new_threads): Update core information for
4265 every thread.
4266 * remote.c (struct private_thread_info): New.
4267 (free_private_thread_info, demand_private_info): New.
4268 (PACKET_qXfer_threads, use_osdata_threads): New.
4269 (struct thread_item, threads_parsing_context
4270 (start_thread, end_thread, thread_attributes)
4271 (thread_children, threads_children, threads_elements): New.
4272 (remote_threads_info): Try qXfer:threads before anything
4273 else.
4274 (remote_protocol_packets): Register qXfer:threads.
4275 (remote_open_1): Init use_osdata_threads.
4276 (struct stop_reply): New field 'core'.
4277 (remote_parse_stop_reply): Parse core number.
4278 (process_stop_reply): Record core number.
4279 (remote_xfer_partial): Handle qXfer:threads.
4280 (remote_core_of_thread): New.
4281 (init_remote_ops): Register remote_core_of_thread.
4282 (_initialize_remote): Register qXfer:read.
4283 * target.c (target_core_of_thread): New
4284 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
4285 (struct target_ops): New field to_core_of_threads.
4286 (target_core_of_thread): Declare.
4287 * gdbthread.h (struct thread_info): New field private_dtor.
4288 * thread.c (print_thread_info): Report the core.
4289 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
4290 * utils.c (compare_positive_ints): New.
4291 * features/threads.dtd: New.
4292 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
4293 * mi/mi-main.c (struct collect_cores_data, collect_cores)
4294 (do_nothing, free_vector_of_osdata_items)
4295 (splay_tree_int_comparator, free_splay_tree): New.
4296 (print_one_inferior_data): Implemented printing of selected
4297 inferiors. Collect and print cores.
4298 (output_cores): New.
4299 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
4300 thread groups together with --available.
4301
d30c5336
JK
43022010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4303
4304 * configure: Regenerate (for _STRUCTURED_PROC).
4305
02893727
JB
43062010-01-12 Joel Brobecker <brobecker@adacore.com>
4307
4308 Delete dead function.
4309 * ada-lang.c (extract_string): Delete. No longer used.
4310
46ed2d6f
JB
43112010-01-12 Joel Brobecker <brobecker@adacore.com>
4312
4313 Fix -Wunused warning in dec-thread.c.
4314 * dec-thread.c (dec_thread_count_gdb_threads)
4315 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
4316
606b8d1a
JB
43172010-01-12 Joel Brobecker <brobecker@adacore.com>
4318
4319 * ada-valprint.c (ada_print_floating): Remove trailing space.
4320
b4ba55a1
JB
43212010-01-12 Joel Brobecker <brobecker@adacore.com>
4322
4323 Add support for DW_AT_GNAT_descriptive_type.
4324 * gdbtypes.h (enum type_specific_kind): New enum.
4325 (struct main_type) [type_specific_field]: New component.
4326 [type_specific]: Add new component "gnat_stuff".
4327 (struct gnat_aux_type): New type.
4328 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
4329 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
4330 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
4331 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
4332 (TYPE_SPECIFIC_FIELD): New macros.
4333 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
4334 type does not hold any cplus-specific data.
4335 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
4336 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
4337 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
4338 cplus-specific data.
4339 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
4340 Set new component TYPE_SPECIFIC_FIELD (type).
4341 (gnat_aux_default): New constant.
4342 (allocate_gnat_aux_type): New function.
4343 (init_type): Add initialization the type-specific stuff for
4344 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
4345 (print_gnat_stuff): New function.
4346 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
4347 specific data. Adjust code that prints the contents of the
4348 type-specific union using the TYPE_SPECIFIC_FIELD value.
4349 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
4350 the type cplus stuff for Ada types.
4351 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
4352 Error out if these routines are called with an Ada type.
4353 (read_structure_type, read_array_type, read_subrange_type):
4354 Add call to set_descriptive_type.
4355 (set_die_type): Initialize the gnat-specific data if necessary.
4356 (need_gnat_info, die_descriptive_type, set_descriptive_type):
4357 New functions.
4358 * ada-lang.c (decode_constrained_packed_array_type): Use
4359 decode_constrained_packed_array_type instead of doing a standard
4360 lookup to locate a parallel type.
4361 (find_parallel_type_by_descriptive_type): New function.
4362 (ada_find_parallel_type_with_name): New function.
4363 (ada_find_parallel_type): Reimplement using
4364 ada_find_parallel_type_with_name.
4365 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
4366 to check if type has a cplus stuff.
4367 * linespec.c (total_number_of_methods): Likewise.
4368 * mdebugread.c (new_type): Likewise.
4369
b0f02ee9
JK
43702010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4371
4372 * NEWS: Document the 0b binary number prefix parsing.
4373
b260e109
JK
43742010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4375
4376 * objfiles.c (objfile_relocate1): Change the return type to int.
4377 Describe the new return value. Return non-zero if data changed.
4378 (objfile_relocate): New variable changed. Set it. Call
4379 breakpoint_re_set depending on CHANGED.
4380
b5cfddf5
JK
43812010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4382
4383 Implement binary numbers parsing.
4384 * c-exp.y (parse_number): New case 'b' and 'B'.
4385
e0ae4240
JK
43862010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4387 Tristan Gingold <gingold@adacore.com>
4388
4389 * solib.c (info_sharedlibrary_command): Replace
4390 objfile_has_partial_symbols and objfile_has_full_symbols calls by
4391 objfile_has_symbols.
4392
6e0e5977
JB
43932010-01-10 Joel Brobecker <brobecker@adacore.com>
4394
4395 * NEWS: Document the improvements made to the mips-irix port.
4396
7348c5e1
JB
43972010-01-09 Joel Brobecker <brobecker@adacore.com>
4398
4399 Fix the documentation of valprint.c:value_print.
4400 * valprint.c (value_print): Update the function description to
4401 mention that the syntax of the output follows the current_language,
4402 not necessarily C.
4403
567995e1
JK
44042010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4405
4406 Fix displacement of separate debug info files.
4407 * objfiles.c (objfile_relocate): Rename to ...
4408 (objfile_relocate1): ... here and make it static. Extend the comment.
4409 (objfile_relocate): New function.
4410 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
4411 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
4412 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
4413 allocated using alloca.
4414 * symfile.c (copy_section_addr_info): Remove.
4415 (build_section_addr_info_from_objfile): Make it global. New variables
4416 addr_bit and mask, use them.
4417 * symfile.h (build_section_addr_info_from_objfile): New prototype.
4418 (copy_section_addr_info): Remove.
4419
6d8eadbd
JB
44202010-01-09 Joel Brobecker <brobecker@adacore.com>
4421
4422 Signal unwinder for mips-irix N32.
4423 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
4424 tramp-frame.h.
4425 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
4426 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
4427 (SIGCONTEXT_LO_OFF): New macros.
4428 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
4429 (mips_irix_n32_tramp_frame): New static constant.
4430 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
4431
27087a3d
JB
44322010-01-09 Joel Brobecker <brobecker@adacore.com>
4433
4434 Breakpoint in shared library does not work on mips-irix.
4435 * procfs.c: #include "observer.h".
4436 (procfs_inferior_created): New function, moving here the code
4437 which unsets the syssgi syscall-exit notifications.
4438 (procfs_create_inferior): Remove the code which unsets the syssgi
4439 syscall-exit notifications. It is too early to do this here.
4440 (_initialize_procfs): Attach the procfs_inferior_created observer.
4441
f08877ba
JB
44422010-01-09 Joel Brobecker <brobecker@adacore.com>
4443
4444 Wrong return convention for arrays (mips-irix).
4445 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
4446 128 bits or smaller are returned the same way as structs
4447 and unions of the the same size.
4448
e4b97d48
JB
44492010-01-09 Joel Brobecker <brobecker@adacore.com>
4450
4451 Cannot set the PC on mips-irix.
4452 * irix5-nat.c (fill_gregset): Check regno against the raw PC
4453 register number, no the cooked one.
4454
11377e68
JB
44552010-01-09 Joel Brobecker <brobecker@adacore.com>
4456
4457 Error while loading core file on mips-irix.
4458 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
4459 if debugging from a core file.
4460
b2391021
JB
44612010-01-09 Joel Brobecker <brobecker@adacore.com>
4462
4463 GDB hangs when attaching to process on mips-irix.
4464 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
4465 attaching to a process.
4466
f2ec0ecf
JB
44672010-01-09 Joel Brobecker <brobecker@adacore.com>
4468
4469 Use the correct breakpoint instruction on mips-irix.
4470 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
4471 containing the correct breakpoint instruction to use on mips-irix.
4472 Use it when the osabi is GDB_OSABI_IRIX.
4473
3c95f01c
JB
44742010-01-09 Joel Brobecker <brobecker@adacore.com>
4475
4476 -Wunused warning in procfs.c (mips-irix only).
4477 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
4478 throughout instead of using praddset and prdelset respectively.
4479
4b7703ad
JB
44802010-01-09 Joel Brobecker <brobecker@adacore.com>
4481
4482 GDB crash while stepping into function.
4483 * infrun.c (handle_inferior_event): Refetch the current frame
4484 after handling what.main_action, in case that pointer became
4485 dangling.
4486
12c89474
JB
44872010-01-09 Joel Brobecker <brobecker@adacore.com>
4488
4489 Fix build failure of solaris-hosted cross debuggers.
4490 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
4491
1a3fd262 44922010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
4493
4494 Fix build failure on sparc-solaris.
4495 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
4496
75242ef4
JK
44972010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4498
4499 Move some symfile code into subroutines.
4500 * symfile.h (relative_addr_info_to_section_offsets)
4501 (addr_info_make_relative): New prototypes.
4502 * symfile.c (default_symfile_offsets): Move a part to ...
4503 (relative_addr_info_to_section_offsets): ... this new function.
4504 (default_symfile_offsets): Call it.
4505 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
4506 this part to ...
4507 (addr_info_make_relative): ... this new function.
4508
268a4a75
JK
45092010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 Add from_tty to solib_create_inferior_hook.
4512 * infcmd.c (post_create_inferior): Move solib_add after
4513 solib_create_inferior_hook. Pass from_tty to
4514 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
4515 0 from_tty and comment why.
4516 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
4517 * linux-nat.c (linux_child_follow_fork): Likewise.
4518 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
4519 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
4520 from_tty.
4521 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
4522 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4523 * solib-null.c (null_solib_create_inferior_hook): Likewise.
4524 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4525 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
4526 * solib-som.c (som_solib_create_inferior_hook): Likewise.
4527 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
4528 Pass it to svr4_so_ops.solib_create_inferior_hook.
4529 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
4530 from_tty.
4531 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
4532 solib_add.
4533 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
4534 enable_break.
4535 * solib-target.c (solib_target_solib_create_inferior_hook): New
4536 parameter from_tty.
4537 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
4538 it to ops->solib_create_inferior_hook.
4539 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
4540 Move solib_add after solib_create_inferior_hook, call it now with
4541 from_tty as 0. New comment there.
4542 * solib.h (solib_create_inferior_hook): New parameter from_tty.
4543 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
4544 Likewise.
4545
cf00dfa7
VP
45462010-01-08 Vladimir Prus <vladimir@codesourcery.com>
4547
4548 Fix multiexec race.
4549 * infrun.c (handle_inferior_event): Use get_thread_regcache
4550 with events ptid, not get_current_regcache.
4551
f91e5ac3
JB
45522009-01-08 Joel Brobecker <brobecker@adacore.com>
4553
4554 GDB crash with empty executable name (MinGW).
4555 * source.c (openp): Add assert that parameter string is not NULL.
4556 if parameter string is an empty string, then return with a failure
4557 immediately.
4558
92b9ce5b
JB
45592009-01-08 Joel Brobecker <brobecker@adacore.com>
4560
4561 Get rid of support for VAX Floats.
4562 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4563 (ada_vax_float_print_function): Delete.
4564 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4565 (ada_vax_float_print_function): Delete.
4566 * ada-typeprint.c (print_vax_floating_point_type): Delete.
4567 (ada_print_type): Remove support for VAX floats.
4568 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
4569
268a4a75 45702010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
4571
4572 * stabsread.c (read_args): Handle zero arguments.
4573
f0f20949
JB
45742009-01-08 Joel Brobecker <brobecker@adacore.com>
4575
4576 Cannot find in-tree libiconv.a after reconfigure.
4577 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
4578 that we can use, then cache the path to this archive.
4579 * configure: Regenerate.
4580
6b6218c5
SS
45812010-01-07 Stan Shebs <stan@codesourcery.com>
4582
35b1e5cc
SS
4583 Make tracepoint operations go through target vector.
4584 * target.h (enum trace_find_type): New enum.
4585 (struct target_ops): New fields to_trace_init,
4586 to_download_tracepoint, to_download_trace_state_variable,
4587 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
4588 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
4589 to_set_disconnected_tracing.
4590 (target_trace_init): New macro.
4591 (target_download_tracepoint): New macro.
4592 (target_download_trace_state_variable): New macro.
4593 (target_trace_start): New macro.
4594 (target_trace_set_readonly_regions): New macro.
4595 (target_get_trace_status): New macro.
4596 (target_trace_stop): New macro.
4597 (target_trace_find): New macro.
4598 (target_get_trace_state_variable_value): New macro.
4599 (target_set_disconnected_tracing): New macro.
4600 * target.c (update_current_target): Inherit and set defaults for
4601 tracepoint operations.
4602 * tracepoint.c (default_collect): Make globally visible.
4603 (target_is_remote): Remove, along with all calls.
4604 (tvariables_info): Call target_get_trace_state_variable_value.
4605 (remote_set_transparent_ranges): Remove.
4606 (trace_start_command): Call target_trace_init,
4607 target_download_tracepoint, etc.
4608 (download_tracepoint): Remove.
4609 (trace_stop_command): Simplify.
4610 (stop_tracing): Call target_trace_stop.
4611 (get_trace_status): Call target_get_trace_status.
4612 (trace_status_command): Add case for targets that cannot trace.
4613 (finish_tfind_command): Change to take numerical arguments, call
4614 target_trace_find.
4615 (trace_find_command): Update call to finish_tfind_command.
4616 (trace_find_pc_command): Ditto.
4617 (trace_find_tracepoint_command): Ditto.
4618 (trace_find_line_command): Ditto.
4619 (trace_find_range_command): Ditto.
4620 (trace_find_outside_command): Ditto.
4621 (set_disconnected_tracing_value): Call
4622 target_set_disconnected_tracing.
4623 * remote.c: Add protocol encoding bits from tracepoint.c.
4624 (trace_error): Move from tracepoint.c.
4625 (remote_get_noisy_reply): Ditto.
4626 (free_actions_list_cleanup_wrapper): Ditto.
4627 (free_actions_list): Ditto.
4628 (remote_trace_init): New function.
4629 (remote_download_tracepoint): New function.
4630 (remote_download_trace_state_variable): New function.
4631 (remote_trace_set_readonly_regions): New function.
4632 (remote_trace_start): New function.
4633 (remote_get_trace_status): New function.
4634 (remote_trace_stop): New function.
4635 (remote_trace_find): New function.
4636 (remote_download_trace_state_variable): New function.
4637 (remote_set_disconnected_tracing): New function.
4638 (init_remote_ops): Add tracepoint operations.
4639
6b6218c5
SS
4640 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
4641
089b4803
TG
46422010-01-07 Tristan Gingold <gingold@adacore.com>
4643
4644 * symfile.c (build_section_addr_info_from_objfile): New function.
4645 (symbol_file_add_separate): Don't use offsets from objfile but
4646 built an addr info.
4647
d5551862
SS
46482010-01-06 Stan Shebs <stan@codesourcery.com>
4649
4650 Support disconnected tracing.
4651 * infcmd.c (detach_command): Ask whether to stop tracing.
4652 * cli/cli-cmds.c (quit_command): Ditto.
4653 * breakpoint.h (struct breakpoint): New field number_on_target.
4654 * breakpoint.c (create_tracepoint_from_upload): New function.
4655 (get_tracepoint_by_number_on_target): New function.
4656 * remote.c (struct remote): New field disconnected_tracing.
4657 (remote_disconnected_tracing_feature): New function.
4658 (remote_protocol_features): Add DisconnectedTracing.
4659 (struct uploaded_tp): New struct.
4660 (uploaded_tps): New global.
4661 (get_uploaded_tp): New function.
4662 (find_matching_tracepoint): New function.
4663 (remote_get_tracing_state): New function.
4664 (remote_start_remote): Call it.
4665 * tracepoint.c (disconnected_tracing): New global.
4666 (trace_start_command): Initialize number_on_target.
4667 (stop_tracing): New function, split out from...
4668 (trace_stop_command): Call stop_tracing.
4669 (get_trace_status): New function, split out from...
4670 (trace_status_command): Call get_trace_status, add info on
4671 disconnection behavior.
4672 (disconnect_or_stop_tracing): New function.
4673 (finish_tfind_command): Translate from number on target.
4674 (trace_find_tracepoint_command): Translate to number on target.
4675 (send_disconnected_tracing_value): New function.
4676 (set_disconnected_tracing): New function.
4677 (_initialize_tracepoint): Add disconnected-tracing variable.
4678 * NEWS: Mention disconnected tracing.
4679
15d123c9
TG
46802010-01-06 Tristan Gingold <gingold@adacore.com>
4681
4682 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
4683 parameter to main_objfile. Iterate on all separate debug objfiles.
4684 * symfile.h (symbol_file_add_separate)
4685 (find_separate_debug_file_by_debuglink): Remove parameter names.
4686 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
4687 (reread_symbols): Use free_objfile_separate_debug.
4688 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
4689 Adjust comment.
4690 (objfile_separate_debug_iterate, add_separate_debug_objfile)
4691 (free_objfile_separate_debug): New prototypes.
4692 * objfiles.c (objfile_separate_debug_iterate): New function.
4693 (add_separate_debug_objfile, free_objfile_separate_debug): New
4694 functions.
4695 (free_objfile): Use free_objfile_separate_debug. Adjust for
4696 multiple separate debug objfile.
4697 (objfile_has_symbols): Adjust comment. Iterate on all separate
4698 debug objfiles.
4699 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
4700 debug objfile.
4701 (lookup_minimal_symbol_text): Ditto.
4702 (lookup_minimal_symbol_by_pc_name): Ditto.
4703 (lookup_minimal_symbol_solib_trampoline): Ditto.
4704 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
4705 debug objfiles.
4706
7a697b8d
SS
47072010-01-05 Stan Shebs <stan@codesourcery.com>
4708
4709 Add fast tracepoints.
4710 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
4711 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
4712 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
4713 * breakpoint.c (tracepoint_type): New function.
4714 (ALL_TRACEPOINTS): Use it.
4715 (should_be_inserted): Ditto.
4716 (bpstat_check_location): Ditto.
4717 (print_one_breakpoint_location): Ditto.
4718 (user_settable_breakpoint): Ditto.
4719 (set_breakpoint_location_function): Ditto.
4720 (disable_breakpoints_in_shlibs): Ditto.
4721 (delete_trace_command): Ditto.
4722 (print_it_typical): Add bp_fast_tracepoint case.
4723 (bpstat_what): Ditto.
4724 (print_one_breakpoint_location): Ditto.
4725 (allocate_bp_location): Ditto.
4726 (mention): Ditto.
4727 (breakpoint_re_set_one): Ditto.
4728 (disable_command): Ditto.
4729 (enable_command): Ditto.
4730 (check_fast_tracepoint_sals): New function.
4731 (break_command_really): Call it.
4732 (ftrace_command): New function.
4733 (_initialize_breakpoint): Add ftrace command.
4734 * gdbarch.sh (fast_tracepoint_valid_at): New.
4735 * gdbarch.h, gdbarch.c: Regenerate.
4736 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
4737 (i386_gdbarch_init): Use it.
4738 * remote.c (struct remote_state): New field fast_tracepoints.
4739 (PACKET_FastTracepoints): New packet config type.
4740 (remote_fast_tracepoint_feature): New function.
4741 (remote_protocol_features): Add FastTracepoints.
4742 (remote_supports_fast_tracepoints): New function.
4743 (_initialize_remote): Add FastTracepoints.
4744 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
4745 * NEWS: Mention fast tracepoints.
4746
737a160e
JB
47472010-01-06 Joel Brobecker <brobecker@adacore.com>
4748
4749 * gdb-gdb.py: New file.
4750
ce6cca6d
MS
47512010-01-05 Michael Snyder <msnyder@vmware.com>
4752
4753 * infrun.c (handle_inferior_event): Fix typo in comment.
4754
0d15807d
JK
47552010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4756
4757 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
4758
7803799a
UW
47592010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4760
c8d5aac9 4761 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
4762 and s390x-linux64.
4763 (s390-linux32-expedite): Define.
4764 (s390-linux64-expedite): Define.
4765 (s390x-linux64-expedite): Define.
4766 * features/s390-acr.xml: New file.
4767 * features/s390-fpr.xml: New file.
4768 * features/s390-core32.xml: New file.
4769 * features/s390-core64.xml: New file.
4770 * features/s390x-core64.xml: New file.
4771 * features/s390-linux32.xml: New file.
4772 * features/s390-linux64.xml: New file.
4773 * features/s390x-linux64.xml: New file.
4774 * features/s390-linux32.c: New generated file.
4775 * features/s390-linux64.c: New generated file.
4776 * features/s390x-linux64.c: New generated file.
4777
4778 * regformats/s390-linux32.dat: New generated file.
4779 * regformats/s390-linux64.dat: New generated file.
4780 * regformats/s390x-linux64.dat: New generated file.
4781 * regformats/reg-s390.dat: Remove.
4782 * regformats/reg-s390x.dat: Remove.
4783
4784 * s390-nat.c: Include "auxv.h" and <elf.h>.
4785 (HWCAP_S390_HIGH_GPRS): Define if undefined.
4786 (s390_target_wordsize): New function.
4787 (s390_auxv_parse): Likewise.
4788 (s390_get_hwcap): Likewise.
4789 (s390_read_description): Likewise.
4790 (_initialize_s390_nat): Install s390_auxv_parse and
4791 s390_read_description.
4792
4793 * s390-tdep.c: Include "features/s390-linux32.c",
4794 "features/s390-linux64.c", and "features/s390x-linux64.c".
4795 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
4796 (s390_register_call_saved): New function.
4797 (s390_register_name): Remove.
4798 (s390_register_type): Remove.
4799 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
4800 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
4801 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
4802 (s390_pseudo_register_name): New function.
4803 (s390_pseudo_register_type): New function.
4804 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
4805 Handle full GPR pesudos and varying pseudo register numbers.
4806 (s390_pseudo_register_write): Likewise
4807 (s390x_pseudo_register_read): Remove.
4808 (s390x_pseudo_register_write): Likewise.
4809 (s390_register_group): Remove.
4810 (s390_pseudo_register_group): New function.
4811 (s390_regmap_gregset): Add GPR upper halves.
4812 (s390x_regmap_gregset): Likewise.
4813 (s390_regmap_fpregset): Likewise.
4814 (s390_regmap_upper): New global variable.
4815 (s390_upper_regset): New global variable.
4816 (s390_upper_regset_sections): New global variable.
4817 (s390_regset_from_core_section): Handle GPR upper halves.
4818 (s390_core_read_description): New function.
4819 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
4820 register information. Handle varying pseudo register numbers.
4821 (s390_backchain_frame_unwind_cache): Likewise.
4822 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
4823 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
4824 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
4825 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
4826 Handle varying pseudo register numbers.
4827 (s390_unwind_pc): Handle varying pseudo register numbers.
4828 (s390_dwarf2_prev_register): New function.
4829 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
4830 register information. Handle varying pseudo register numbers.
4831 Install s390_dwarf2_prev_register to unwind full GPRs.
4832 (s390_gdbarch_init): Handle target descriptions. Assign varying
4833 pseudo register numbers. Install s390_adjust_frame_regnum.
4834 (_initialize_s390_tdep): Initialize target descriptions.
4835
4836 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
4837 (S390_NUM_REGS): Redefine to include upper half registers.
4838 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
4839 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
4840 (tdesc_s390_linux32): Add declaration.
4841 (tdesc_s390_linux64): Likewise.
4842 (tdesc_s390x_linux64): Likewise.
4843
1b1818e4
UW
48442010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4845
4846 * regset.h (struct core_regset_section): Add HUMAN_NAME.
4847 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
4848 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
4849 (ppc_linux_vmx_regset_sections): Likewise.
4850 (ppc_linux_fp_regset_sections): Likewise.
4851
4852 * corelow.c (get_core_register_section): Constify arguments.
4853 (get_core_registers): Use gdbarch_core_regset_sections instead
4854 of hard-coded platform-specific register section names.
4855
dcbf108f
UW
48562010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4857
4858 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 4859 a register, assume the least-significant part is used.
dcbf108f
UW
4860 (write_pieced_value): Likewise.
4861
704e9165
UW
48622010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4863
4864 * printcmd.c: Include "arch-utils.h".
4865 (do_one_display): Re-parse expression if current architecture changed.
4866
c54eabfa
JK
48672010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4868 Joel Brobecker <brobecker@adacore.com>
4869
4870 * gdbtypes.c (check_typedef): New comment on type length.
4871 * value.c (allocate_value_lazy): Remove the unused atype variable. New
4872 comment on type length.
4873 (value_primitive_field): Keep the original TYPE value, new comment.
4874
50cb2941
JK
48752010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4876
4877 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
4878 p_start. Change != comparisons to > and < comparisons.
4879
be66db07
JK
48802010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4881
4882 * cli/cli-script.c (process_next_line): Check P2 overrun.
4883
abd775ce
JB
48842009-01-01 Joel Brobecker <brobecker@adacore.com>
4885
4886 Update the copyright hearder to add year 2010 for most GDB files.
4887
6479260d
JB
48882009-01-01 Joel Brobecker <brobecker@adacore.com>
4889
4890 Fix build failure in inf-ptrace.c.
4891 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
4892
4a70f654
JB
48932010-01-01 Joel Brobecker <brobecker@adacore.com>
4894
4895 * top.c (print_gdb_version): Update copyright year.
4896
b9ee2233
JB
48972010-01-01 Joel Brobecker <brobecker@adacore.com>
4898
4899 Fix break *FUN'address thread NUM.
4900 * ada-lex.l (task): Expand rule to also match the thread keyword.
4901
70575d34
JB
49022010-01-01 Joel Brobecker <brobecker@adacore.com>
4903
4904 Fix break *FUN'address task NUM.
4905 * ada-lex.l (task): New rule.
4906 * ada-lang.c (valid_task_id): Make sure the Ada task list has
4907 been built before using it.
4908
e1e4d4a4 4909For older changes see ChangeLog-2009.
c906108c
SS
4910\f
4911Local Variables:
4912mode: change-log
4913left-margin: 8
4914fill-column: 74
4915version-control: never
57da7796 4916coding: utf-8
c906108c 4917End:
This page took 2.856433 seconds and 4 git commands to generate.