sim: profile: implement --profile-file backend
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9a22f0d0
PM
12010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2
3 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4 fields.
5 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
6 builtin_char32 fields.
7 * printcmd.c (decode_format): Set char size to '\0'
8 for strings unless explicit size is given.
9 (print_formatted): Correct calculation of NEXT_ADDRESS
10 for 16 or 32 bit strings.
11 (do_examine): Do not force byte size for strings.
12 Use builtin_char16 and builtin_char32 types to display
13 16 or 32 bit-wide strings.
14 (x_command): Set LAST_SIZE to 'b' for string type.
15
f335d1b3
L
162010-04-21 H.J. Lu <hongjiu.lu@intel.com>
17
18 PR corefiles/11523
19 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
20 XCR0 first.
21
22 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
23 there is no .reg-xstate section.
24 (i386_linux_core_read_description): Check XCR0 first.
25
a9789a6b
MF
262010-04-21 Mike Frysinger <vapier@gentoo.org>
27
28 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
29 for len <= 8.
30
0b66f317
CM
312010-04-21 Chris Moller <cmoller@redhat.com>
32
33 PR 9167
34 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
35 method of popping recursion-detection stack with a method based on
36 obstack_object_size().
0b66f317 37
6e354e5e
PM
382010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
39
40 PR pascal/11492.
41 * p-valprint.c (pascal_val_print): Fix default printing of integer
42 arrays.
43
57174f31
PM
442010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
45
46 Fix compilation warning on gcc-4.1.2.
47 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
48 local variable`pc' to zero.
49
6fbc7cd8
JB
502010-04-20 Joel Brobecker <brobecker@adacore.com>
51
52 Implement thread support with core files on alpha-tru64.
53 * dec-thread.c (dec_thread_find_new_threads): New function,
54 extracted from resync_thread_list.
55 (resync_thread_list): Add OPS parameter. Replace extracted-out
56 code by call to dec_thread_find_new_threads.
57 (dec_thread_wait): Update call to resync_thread_list.
58 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
59
438c98a1
JB
602010-04-20 Joel Brobecker <brobecker@adacore.com>
61
62 * ada-lang.c (value_pointer): New function.
63 (make_array_descriptor): Call value_pointer to convert addresses to
64 pointers.
65
2971b56b
JB
662010-04-20 Joel Brobecker <brobecker@adacore.com>
67
68 * rs6000-aix-tdep.c: #include exceptions.h.
69 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
70 while reading the memory at ADDR, then ADDR cannot be a function
71 descriptor.
72
be942545
JB
732010-04-20 Joel Brobecker <brobecker@adacore.com>
74
75 * ada-typeprint.c (ada_print_typedef): New function.
76 * ada-lang.h (ada_print_typedef): Add declaration.
77 * ada-lang.c (ada_language_defn): set la_print_typdef field
78 to ada_print_typedef.
79
1ca8fce0
JB
802010-04-20 Joel Brobecker <brobecker@adacore.com>
81
82 * procfs.c (procfs_address_to_host_pointer): Only define when used.
83
e9ef4f39
JB
842010-04-20 Joel Brobecker <brobecker@adacore.com>
85
86 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
87 (iterate_over_mappings): Adjust function profile. Add declaration.
88 (insert_dbx_link_bpt_in_region, info_mappings_callback):
89 Adjust accordingly.
90
e294797a
JB
912010-04-20 Joel Brobecker <brobecker@adacore.com>
92
93 * procfs.c (solib_mappings_callback): Move function up to avoid
94 a compiler warning.
95
a223f1e7
JB
962010-04-20 Joel Brobecker <brobecker@adacore.com>
97
98 * procfs.c (find_signalled_thread, find_stop_signal): Move
99 these functions down to define them only when used.
100
0c3acc09
JB
1012010-04-20 Joel Brobecker <brobecker@adacore.com>
102
103 * valprint.c (common_val_print): Fix the value before extracting
104 its contents.
105 * ada-lang.c (ada_to_fixed_value): Make this function extern.
106 * ada-lang.h (ada_to_fixed_value): New function declaration.
107 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
108 to avoid code duplication and fix a bug in the handling of
109 fixed types contents.
110
31ef98ae
TT
1112010-04-20 Tom Tromey <tromey@redhat.com>
112
113 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
114 (read_partial_die): Likewise.
115 (dwarf_attr_name): Likewise.
116
ec31cde5
CM
1172010-04-20 Chris Moller <cmoller@redhat.com>
118
119 PR 10867
120
121 * cp-valprint.c (global): Adding new static array recursion
122 detection obstack.
123 (cp_print_value_fields, cp_print_static_field): Added new static
124 array recursion detection code.
125
e0e0e543
MK
1262010-04-20 Mark Kettenis <kettenis@gnu.org>
127
128 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
129 general-purpose register set should be 68 instead of 144.
130 (i386_linux_sse_regset_sections): Likewise.
131 (i386_linux_avx_regset_sections): Likewise.
132
08922a10
SS
1332010-04-20 Stan Shebs <stan@codesourcery.com>
134 Nathan Sidwell <nathan@codesourcery.com>
135
136 * dwarf2loc.c (struct axs_var_loc): New struct.
137 (dwarf2_tracepoint_var_loc): New function.
138 (dwarf2_tracepoint_var_access): New function.
139 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
140 with DW_OP_piece.
141 (locexpr_describe_location_piece): New function.
142 (locexpr_describe_location_1): New function.
143 (locexpr_describe_location): Call it, update signature.
144 (loclist_describe_location): Rewrite to loop over locations,
145 update signature.
146 * symtab.h (struct symbol_computed_ops): Add address to
147 describe_location arguments, return void.
148 * printcmd.c (address_info): Get context PC, pass to computed
149 location description.
150 * tracepoint.c (scope_info): Ditto.
151 * ax-gdb.c (trace_kludge): Export.
152
2dc7f7b3
TT
1532010-04-20 Tom Tromey <tromey@redhat.com>
154
155 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
156 (struct dwarf2_cie) <segment_size>: New field.
157 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
158 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
159 DW_FORM_exprloc.
160 (read_attribute_value): Handle DW_FORM_flag_present,
161 DW_FORM_sec_offset, DW_FORM_exprloc.
162 (dump_die_shallow): Likewise.
163 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
164 (dwarf2_const_value): Handle DW_FORM_exprloc.
165 (attr_form_is_block): Likewise.
166 (struct line_header) <maximum_ops_per_instruction>: New field.
167 (dwarf_decode_line_header): Set new field.
168 (dwarf_decode_lines): Handle new field.
169
ce4b0682
SDJ
1702010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
171
172 * f-exp.y: Add new production to recognize the `logical*8' type.
173 (LOGICAL_S8_KEYWORD): New token.
174 * f-lang.c (enum f_primitive_types)
175 <f_primitive_type_logical_s8>: New field.
176 (f_language_arch_info): Handling `logical*8' type.
177 (build_fortran_types): Building `logical*8' type.
178 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
179
ff9f22f1
DE
1802010-04-19 Doug Evans <dje@google.com>
181
182 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
183 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
184 (pipe_close): Ditto.
185
437125bd
PM
1862010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
187
188 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
189
e8e6c82e
PM
1902010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
191
192 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
193 type to void function.
194
4136fdd2
SS
1952010-04-19 Stan Shebs <stan@codesourcery.com>
196 Vladimir Prus <vladimir@codesourcery.com>
197
198 * tracepoint.c (tfind_1): Add missing newline, report exit from
199 tfind mode as such.
200 * target.c (update_current_target): Make default
201 to_trace_find return -1.
202
0c4b2e63
MF
2032010-04-19 Mike Frysinger <vapier@gentoo.org>
204
205 * objc-lang.c (find_methods): Move symname check up.
206
78076abc
PA
2072010-04-19 Pedro Alves <pedro@codesourcery.com>
208
209 * ada-lang.c (print_recreate_exception)
210 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
211 not "catch unhandled".
212
6149aea9
PA
2132010-04-19 Pedro Alves <pedro@codesourcery.com>
214
215 PR breakpoints/8554.
216
217 Implement `save-breakpoints'.
218
219 * breakpoint.c (save_cmdlist): New.
220 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
221 to save_cmdlist.
222 (print_recreate_catch_fork): New.
223 (catch_fork_breakpoint_ops): Install it.
224 (print_recreate_catch_vfork): New.
225 (catch_vfork_breakpoint_ops): Install it.
226 (print_recreate_catch_syscall): New.
227 (catch_syscall_breakpoint_ops): Install it.
228 (print_recreate_catch_exec): New.
229 (catch_exec_breakpoint_ops): Install it.
230 (print_recreate_exception_catchpoint): New.
231 (gnu_v3_exception_catchpoint_ops): Install it.
232 (save_breakpoints): New, based on tracepoint_save_command, but
233 handle all breakpoint types.
234 (save_breakpoints_command): New.
235 (tracepoint_save_command): Rename to...
236 (save_tracepoints_command): ... this, and reimplement using
237 save_breakpoints.
238 (save_command): New.
239 (_initialize_breakpoints): Install the "save" command prefix.
240 Install the "save breakpoints" command. Make "save-tracepoints" a
241 deprecated alias for "save tracepoints".
242 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
243 * ada-lang.c (print_recreate_exception): New.
244 (print_recreate_catch_exception): New.
245 (catch_exception_breakpoint_ops): Install it.
246 (print_recreate_catch_exception_unhandled): New.
247 (catch_exception_unhandled_breakpoint_ops): Install it.
248 (print_recreate_catch_assert): New.
249 (catch_assert_breakpoint_ops): Install it.
250
251 * NEWS: Mention the new `save breakpoints' command. Mention the
252 new `save tracepoints' alias and that `save-tracepoints' is now
253 deprecated.
254
0a8fce9a
PA
2552010-04-18 Pedro Alves <pedro@codesourcery.com>
256
257 PR tui/9217
258
259 * tui/tui-out.c: Include cli-out.h.
260 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
261 (tui_begin, tui_end, tui_field_int, tui_field_skip)
262 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
263 (tui_message, tui_wrap_hint, tui_flush): Delete forward
264 declarations.
265 (struct ui_out_data): Rename to...
266 (struct tui_ui_out_data): ... this. Remove `stream' and
267 `suppress_output' fields, and inherit cli_ui_out_data.
268 (tui_out_data): New typedef.
269 (tui_ui_out_impl): Don't initialize fields staticaly.
270 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
271 (tui_begin, tui_end): Delete.
272 (tui_field_int): Adjust to delegate most work to the base type.
273 (tui_field_skip): Delete.
274 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
275 delegate most work to the base type.
276 (tui_spaces): Delete.
277 (tui_text): Adjust to delegate most work to the base type.
278 (tui_message): Delete.
279 (tui_wrap_hint): Delete.
280 (tui_flush): Delete.
281 (out_field_fmt): Delete.
282 (field_separator): Delete.
283 (tui_out_new): Adjust to initialize the base type.
284 (_initialize_tui_out): Initialize tui_ui_out_impl.
285 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
286 cli_ui_out_data.
287 (cli_out_data): Adjust.
288 (cli_ui_out_impl): Make extern.
289 (cli_table_header, cli_field_int, cli_field_skip): Use
290 uo_field_string instead of cli_field_string.
291 (cli_redirect): Adjust to use cli_out_data.
292 (cli_out_data_ctor): New.
293 (cli_out_new): Use it.
294 * cli-out.h (struct ui_file): Remove forward declaration.
295 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
296 (cli_ui_out_impl): Declare.
297 (cli_out_data_ctor): Declare.
298 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
299 (uo_field_string): No longer static.
300 (ui_out_data): Change return type to void pointer.
301 (ui_out_new): Change `data' parameter type to void pointer.
302 * ui-out.h (struct ui_out_data): Don't forward declare.
303 (ui_out_data): Change return type to void pointer.
304 (ui_out_new): Change `data' parameter type to void pointer.
305 (uo_field_string): Declare.
306
172240dd
PA
3072010-04-17 Pedro Alves <pedro@codesourcery.com>
308
309 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
310 instead of always false.
311
ed41462c
L
3122010-04-17 H.J. Lu <hongjiu.lu@intel.com>
313
314 PR corefiles/11511
315 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
316 orig_rax.
317
cc60f2e3
PA
3182010-04-17 Pedro Alves <pedro@codesourcery.com>
319
320 * breakpoint.c (watchpoints_triggered): Use
321 is_hardware_watchpoint.
322 (watchpoints_triggered): Ditto.
323 (bpstat_check_location): Use is_watchpoint and
324 is_hardware_watchpoint.
325 (bpstat_check_watchpoint): Use is_watchpoint and
326 is_hardware_watchpoint.
327 (bpstat_stop_status): Fix comment.
328 (user_settable_breakpoint): Use is_watchpoint.
329 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
330 (disable_watchpoints_before_interactive_call_start): Use
331 is_watchpoint.
332 (enable_watchpoints_after_interactive_call_stop): Use
333 is_watchpoint.
334 (clear_command): Use is_watchpoint.
335 (do_enable_breakpoint): Use is_watchpoint.
336
cb7db0f2
MF
3372010-04-16 Mike Frysinger <vapier@gentoo.org>
338
339 * solib-frv.c (enable_break1_done): Delete.
340 (enable_break2): Do not check enable_break1_done. Move the
341 enable_break2_done setting and call to
342 remove_solib_event_breakpoints() to the end. Return without
343 warning when the contents of _dl_debug_addr are 0.
344 (enable_break): Do not set enable_break1_done.
345 (frv_clear_solib): Likewise.
346
d77b48cf
KB
3472010-04-16 Kevin Buettner <kevinb@redhat.com>
348
349 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
350 instead of an error if no PLT entry is found. Return a
351 potentially useful result.
352 (m32c_m16c_pointer_to_address): Add code to search for function
353 address when no .plt entry is found.
354
f90824dc
SS
3552010-04-16 Stan Shebs <stan@codesourcery.com>
356
357 * tracepoint.c (trace_variable_command): Run a cleanup.
358
9b79b476
PM
3592010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
360
361 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
362
711e434b
PM
3632010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
364
365 Support for Windows OS Thread Information Block.
366 * NEWS: Document new feature.
367 * remote.c (PACKET_qGetTIBAddr): New enum element.
368 (remote_get_tib_address): New function.
369 (init_remote_ops): Set to_get_tib_address field
370 to remote_get_tib_address.
371 (_initialize_remote): Add add_packet_config_cmd
372 for PACKET_qGetTIBAddr.
373 * target.c (update_current_target): Set default value for
374 new to_get_tib_address field.
375 * target.h (target_ops): New field to_get_tib_address.
376 (target_get_tib_address): New macro.
377 * windows-nat.c (thread_info): Add thread_local_base field.
378 (windows_add_thread): Add tlb argument of type 'void *'.
379 (fake_create_process): Adapt windows_add_thread call.
380 (get_windows_debug_event): Idem.
381 (windows_get_tib_address): New function.
382 (init_windows_ops): Set to_get_tib_address field
383 to remote_get_tib_address.
384 (_initialize_windows_nat): Replace info_w32_cmdlist
385 initialization by a call to init_w32_command_list.
386 (info_w32_command, info_w32_cmdlist): Removed from here...
387 to windows-tdep.c file.
388 * windows-tdep.h (info_w32_cmdlist): Declare.
389 (init_w32_command_list): New external function
390 declaration.
391 * windows-tdep.c: Add several headers.
392 (info_w32_cmdlist): to here, made global.
393 (thread_information_32): New struct.
394 (thread_information_64): New struct.
395 (TIB_NAME): New char array.
396 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
397 (maint_display_all_tib): New static variable.
398 (windows_get_tlb_type): New function.
399 (tlb_value_read, tlb_value_write): New functions.
400 (tlb_value_funcs): New static struct.
401 (tlb_make_value): New function.
402 (display_one_tib): New function.
403 (display_tib): New function.
404 (show_maint_show_all_tib):New function.
405 (info_w32_command): Moved from windows-nat.c.
406 (init_w32_command_list): New function.
407 (_initialize_windows_tdep): New function.
408 New "maint set/show show-all-tib" command
409 New "$_tlb" internal variable.
410
cae3f17b
JB
4112010-04-16 Joel Brobecker <brobecker@adacore.com>
412
413 * tui/tui-regs.c (tui_display_register): Add comment about
414 a couple of casts.
415 * tui/tui-stack.c (tui_show_locator_content): Ditto.
416
2ce6d6bf
SS
4172010-04-15 Stan Shebs <stan@codesourcery.com>
418
419 * frame.c: Include tracepoint.h.
420 (get_current_frame): Allow a trace frame to be an alternate source
421 of stack frame data.
422 * tracepoint.c (tfind_1): Don't try to get current stack frame if
423 it won't succeed.
424
7e559477
PA
4252010-04-15 Pedro Alves <pedro@codesourcery.com>
426
427 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
428 flags.
429 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
430
3f7b2faa
DE
4312010-04-15 Doug Evans <dje@google.com>
432
fa33c3cd
DE
433 * NEWS: Add entry for python program space support.
434 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
435 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
436 (py-progspace.o): New rule.
437 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
438 function.
439 (find_pretty_printer_from_progspace): New function.
440 (find_pretty_printer_from_gdb): New function.
441 (find_pretty_printer): Rewrite.
442 * python/py-progspace.c: New file.
443 * python/python-internal.h (program_space): Add forward decl.
444 (pspace_to_pspace_object, pspy_get_printers): Declare.
445 (gdbpy_initialize_pspace): Declare.
446 * python/python.c: #include "progspace.h".
447 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
448 (_initialize_python): Call gdbpy_initialize_pspace.
449 (GdbMethods): Add current_progspace, progspaces.
450
3f7b2faa
DE
451 Add -s option to source command.
452 * NEWS: Document new option.
453 * cli/cli-cmds.c (find_and_open_script): Add function comment.
454 Delete from_tty and cleanupp args. Split filep arg into file and
455 full_pathp. New arg search_path.
456 (source_script_from_stream): New function.
457 (source_script_with_search): New function.
458 (source_script): Rewrite.
459 (source_command): Parse "-s" option.
460 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
461 * python/python.c (source_python_script): Make file arg a const char *.
462 Don't call fclose, leave for caller.
463 * python/python.h (source_python_script): Update.
464
a86988f2
PA
4652010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
466 Pedro Alves <pedro@codesourcery.com>
467
468 Avoid rereading shared libraries that haven't changed.
469
470 * solib.c (free_so_symbols): New function, from ...
471 (free_so): ... here. Call it.
472 (solib_read_symbols): Don't warn here if symbols have already been
473 loaded.
474 (solib_add): Warn here instead, if a pattern was specified.
475 (reload_shared_libraries_1): New.
476 (reload_shared_libraries): Rewrite to not fetch the library list.
477
e6d9b9c2
DE
4782010-04-14 Doug Evans <dje@google.com>
479
589390d6 480 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
481 concatenating string to search path.
482
516ba659
PA
4832010-04-14 Pedro Alves <pedro@codesourcery.com>
484
485 * objfiles.h (gdb_bfd_close_or_warn): Declare.
486 * objfiles.c (gdb_bfd_close_or_warn): New.
487 * corelow.c: Include objfiles.h
488 (core_close): Use gdb_bfd_close_or_warn.
489 * elfread.c (build_id_verify): Ditto.
490 * exec.c (exec_close, exec_close_1): Ditto.
491
048d532d
PA
4922010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
493 Pedro Alves <pedro@codesourcery.com>
494
495 Group errors for many missing shared libraries.
496
497 * solist.h (struct so_list): Remove from_tty.
498 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
499 (solib_map_sections): Take so_list argument. Return 0 if we
500 failed to open a BFD. Add target sections here.
501 (symbol_add_stub): Delete.
502 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
503 not from_tty copied from the so_list. Don't warn a second time
504 for a missing library.
505 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
506 add to the section table here. Print out a single warning for all
507 missing libraries.
508 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
509 flags.
510
044c0f87
PM
5112010-04-14 Phil Muldoon <pmuldoon@redhat.com>
512
513 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
514 error/warning messages. Capitalize and use complete sentences.
515 (blpy_block_syms_iternext): Likewise.
516 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
517 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
518 (frame_info_to_frame_object, frapy_read_var)
519 (gdbpy_frame_stop_reason_string): Likewise.
520 * python/py-lazy-string.c (stpy_convert_to_value)
521 (gdbpy_create_lazy_string_object): Likewise.
522 * python/py-objfile.c (objfpy_set_printers): Likewise.
523 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
524 * python/python.c (parameter_to_python): Likewise.
525 * python/py-type.c (typy_range, typy_target): Likewise.
526 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
527 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
528
529
79f283fe
PM
5302010-04-14 Phil Muldoon <pmuldoon@redhat.com>
531
532 PR python/11381
533
534 * python/py-prettyprint.c (pretty_print_one_value): Test for
535 Py_None.
536 (print_string_repr): Test for Py_None. Set flags accordingly.
537 Return value depending on return type.
538 (print_children): Take a value indicating whether data was printed
539 before this function was called. Alter output accordingly.
540 (apply_val_pretty_printer): Capture return value from
541 print_string_repr and pass to print_children.
542
4ac5d44e
MK
5432010-04-13 Mark Kettenis <kettenis@gnu.org>
544
e1caee70 545 PR corefiles/11481
4ac5d44e
MK
546 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
547 register note sections.
548 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
549 New variables.
550 (i386_linux_init_abi): Install list of supported register note
551 sections that matches the target description.
552
ad91cd99
PA
5532010-04-13 Pedro Alves <pedro@codesourcery.com>
554
555 * remote.c (remote_get_noisy_reply): Don't error out on empty
556 replies.
557 (remote_start_remote): Update and merge tracepoints and trace
558 state variables as long as the target supports tracepoints.
559 (remote_trace_init): Fix prototype.
560 (remote_download_trace_state_variable): Validate reply.
561 (remote_trace_set_readonly_regions): Fix prototype.
562 (remote_trace_start): Fix prototype. Check for empty reply.
563 (remote_get_trace_status): Small cleanup.
564 (remote_trace_stop): Fix prototype. Check for empty reply.
565 (remote_trace_find): Check for empty reply.
566 (remote_save_trace_data): Validate reply.
567 (remote_set_disconnected_tracing): Check for empty reply, and
568 validate reply.
569 (remote_set_circular_trace_buffer): Ditto.
570
ae3bccd4
PM
5712010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
572
573 Suppress unused value warning during compilation.
574 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
575 calls to void.
576 * tui/tui-stack.c (tui_show_locator_content): Likewise.
577
523136f2
SS
5782010-04-12 Stan Shebs <stan@codesourcery.com>
579
580 * tracepoint.c (tfile_xfer_partial): Check read result.
581
0d18d720
MF
5822010-04-12 Mike Frysinger <vapier@gentoo.org>
583
584 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
585 * remote-sim.c (gdbsim_files_info): Likewise.
586
3b273a55
RE
5872010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
588
589 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
590 * arm-linux-nat.c (arm_linux_vfp_register_count): New
591 variable.
592 (fetch_vfp_registers): New function to fetch VFP registers.
593 (store_vfp_registers): New function to store VFP registers.
594 (arm_linux_fetch_inferior_registers): Add support for VFP
595 registers.
596 (arm_linux_store_inferior_registers): Likewise.
597 (arm_linux_read_description): Likewise.
598 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
599 until we need it.
600
778c7095
L
6012010-04-11 H.J. Lu <hongjiu.lu@intel.com>
602
603 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
604 tdep.
605 (amd64_collect_xstateregset): Likewise.
606
2114d44c
SS
6072010-04-09 Stan Shebs <stan@codesourcery.com>
608
87290684
SS
609 * tracepoint.c (trace_status_mi): Report frames created.
610
2114d44c
SS
611 * tracepoint.c (trace_dump_command): Include default-collect
612 expressions.
613
86da934b
UW
6142010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
615
616 * symtab.c (find_function_start_sal): Never return SAL pointing
617 before function start address, even if line info is missing.
618
2d6e647a 6192010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
620
621 * NEWS: Mention tracepoints support.
622
a97153c7
PA
6232010-04-09 Pedro Alves <pedro@codesourcery.com>
624
625 * tracepoint.c (trace_status_mi): Report disconnected tracing and
626 circular trace buffer statuses.
627
7a66d603
JK
6282010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 * config/djgpp/fnchange.lst: Fix typo in translations for
631 symbol-without-target_section.exp and symbol-without-target_section.c.
632
2566ad2d
PA
6332010-04-09 Pedro Alves <pedro@codesourcery.com>
634
635 * breakpoint.c (condition_command): Pass condition expression to
636 set_breakpoint_condition stripped from breakpoint number.
637
adc36818
PM
6382010-04-09 Phil Muldoon <pmuldoon@redhat.com>
639 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 640 Tom Tromey <tromey@redhat.com>
adc36818
PM
641
642 * breakpoint.c (condition_command): Simplify. Move condition
643 setting code to ...
644 (set_breakpoint_condition): ... here. New function.
645 * breakpoint.h (set_breakpoint_condition): Declare.
646 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
647 (SUBDIR_PYTHON_SRCS): Likewise.
648 (py-breakpoint.o): New rule.
649 * python/py-breakpoint.c: New file.
650 * python/python-internal.h (gdbpy_breakpoints)
651 (gdbpy_initialize_breakpoints): Declare.
652 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
653
219f2f23
PA
6542010-04-09 Pedro Alves <pedro@codesourcery.com>
655
656 * regformats/regdat.sh: Include server.h. Don't include
657 regcache.h.
658
33da3f1c
SS
6592010-04-08 Stan Shebs <stan@codesourcery.com>
660 Pedro Alves <pedro@codesourcery.com>
661
662 * tracepoint.h (struct trace_status): New fields disconnected_tracing
663 and circular_buffer.
664 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
665 * tracepoint.c (trace_status_command): Display target's status for
666 disconnected tracing and circular buffer.
667 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
668 query for non-disconnected-tracing case, remove the stop_tracing
669 call.
670 (tfile_open): Clear disconnected and circular buffer status.
671 (trace_save): Save disconnected and circular buffer status.
672 (parse_trace_status): Parse disconnected and circular buffer status,
673 also recognize disconnected as a stop reason.
674 * remote.c (remote_set_disconnected_tracing): Only set
675 QTDisconnected if the remote end supports disconnected tracing.
676 Warn otherwise, if trying to enable disconnected tracing.
677 * infcmd.c (detach_command): Update disconnect_tracing call.
678 * cli/cli-cmds.c (quit_command): Ditto.
679
4e4d8374
L
6802010-04-08 H.J. Lu <hongjiu.lu@intel.com>
681
682 * i387-tdep.c (i387_collect_xsave): Replace abort with
683 internal_error.
684
ad443146
SS
6852010-04-08 Stan Shebs <stan@codesourcery.com>
686
687 * breakpoint.c (default_collect_info): New function.
688 (breakpoints_info): Call it.
689 (maintenance_info_breakpoints): Ditto.
690 (tracepoints_info): Ditto.
691
40936b0d
L
6922010-04-08 H.J. Lu <hongjiu.lu@intel.com>
693
694 * i387-tdep.c (i387_collect_xsave): Re-indent.
695
3a13a53b
L
6962010-04-08 H.J. Lu <hongjiu.lu@intel.com>
697
698 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
699 if HAVE_PTRACE_GETFPXREGS is defined.
700 (i386_linux_read_description): Set have_ptrace_getfpxregs and
701 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
702
703 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
704 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
705 if .reg-xfp section doesn't exist.
706 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
707
708 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
709
710 * i386-tdep.c: Include "features/i386/i386-mmx.c".
711 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
712 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
713 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
714 (i386_gdbarch_init): Update comments.
715 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
716
717 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
718
719 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
720
721 * features/Makefile (i386/i386-mmx-expedite): New.
722 (i386/i386-mmx-linux-expedite): Likewise.
723 ($(outdir)/i386/i386-mmx.dat): Likewise.
724 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
725
726 * features/i386/i386-mmx-linux.c: New.
727 * features/i386/i386-mmx-linux.xml: Likewise.
728 * features/i386/i386-mmx.c: Likewise.
729 * features/i386/i386-mmx.xml: Likewise.
730 * regformats/i386/i386-mmx-linux.dat: Likewise.
731 * regformats/i386/i386-mmx.dat: Likewise.
732
733 * features/Makefile (WHICH): Add i386/i386-mmx and
734 i386/i386-mmx-linux.
735
08001717
DE
7362010-04-08 Doug Evans <dje@google.com>
737
738 * source.c (openp): Skip $cdir in PATH.
739
fff5cc64
PM
7402010-04-08 Phil Muldoon <pmuldoon@redhat.com>
741
742 PR python/11417
fff5cc64 743 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
744 a NULL address.
745 (gdbpy_create_lazy_string_object): Allow strings with a NULL
746 address and a zero length.
fff5cc64 747
f8c4f480
HZ
7482010-04-08 Hui Zhu <teawater@gmail.com>
749
750 * i386-tdep.c (i386_process_record): Add support for insn
751 rdtsc.
752
eb5cda86
DE
7532010-04-07 Doug Evans <dje@google.com>
754
755 * python/python.c (source_python_script): Use ensure_python_env
756 to prepare environment for script.
757
a055a187
L
7582010-04-07 H.J. Lu <hongjiu.lu@intel.com>
759
760 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
761 <sys/uio.h> and "i386-xstate.h".
762 (PTRACE_GETREGSET): New.
763 (PTRACE_SETREGSET): Likewise.
764 (have_ptrace_getregset): Likewise.
765 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
766 registers.
767 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
768 registers.
769 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
770 (amd64_linux_store_inferior_registers): Likewise.
771 (amd64_linux_read_description): Check and enable AVX target
772 descriptions.
773
774 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
775 and "features/i386/amd64-avx-linux.c".
776 (amd64_linux_regset_sections): New.
777 (amd64_linux_core_read_description): Check and enable AVX
778 target description.
779 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
780 set_gdbarch_core_regset_sections.
781 (_initialize_amd64_linux_tdep): Call
782 initialize_tdesc_amd64_avx_linux.
783
784 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
785 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
786 (tdesc_amd64_avx_linux): New.
787 (amd64_linux_update_xstateregset): Likewise.
788
789 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
790 (amd64_ymm_names): New.
791 (amd64_ymmh_names): Likewise.
792 (amd64_register_name): Likewise.
793 (amd64_supply_xstateregset): Likewise.
794 (amd64_collect_xstateregset): Likewise.
795 (amd64_supply_xsave): Likewise.
796 (amd64_collect_xsave): Likewise.
797 (AMD64_NUM_REGS): Removed.
798 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
799 %xmmN if AVX is available.
800 (amd64_pseudo_register_name): Support pseudo YMM registers.
801 (amd64_regset_from_core_section): Support .reg-xstate section.
802 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
803 and ymm0h_regnum. Call set_gdbarch_register_name.
804 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
805
806 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
807 AMD64_YMM15H_REGNUM.
808 (AMD64_NUM_REGS): New.
809 (amd64_supply_xsave): Likewise.
810 (amd64_collect_xsave): Likewise.
811 (amd64_register_name): Removed.
812 (amd64_register_type): Likewise.
813
31aeac78
L
8142010-04-07 H.J. Lu <hongjiu.lu@intel.com>
815
816 * i387-tdep.c: Include "i386-xstate.h".
817 (XSAVE_XSTATE_BV_ADDR): New.
818 (xsave_avxh_offset): Likewise.
819 (XSAVE_AVXH_ADDR): Likewise.
820 (i387_supply_xsave): Likewise.
821 (i387_collect_xsave): Likewise.
822
823 * i387-tdep.h (I387_NUM_YMM_REGS): New.
824 (I387_YMM0H_REGNUM): Likewise.
825 (I387_YMMENDH_REGNUM): Likewise.
826 (i387_supply_xsave): Likewise.
827 (i387_collect_xsave): Likewise.
828
c131fcee
L
8292010-04-07 H.J. Lu <hongjiu.lu@intel.com>
830
831 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
832 <sys/uio.h> and "i386-xstate.h".
833 (PTRACE_GETREGSET): New.
834 (PTRACE_SETREGSET): Likewise.
835 (fetch_xstateregs): Likewise.
836 (store_xstateregs): Likewise.
837 (GETXSTATEREGS_SUPPLIES): Likewise.
838 (regmap): Include 8 upper YMM registers.
839 (i386_linux_fetch_inferior_registers): Support XSAVE extended
840 state.
841 (i386_linux_store_inferior_registers): Likewise.
842 (i386_linux_read_description): Check and enable AVX target
843 descriptions.
844
845 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
846 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
847 (i386_linux_regset_sections): Add ".reg-xstate".
848 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
849 (i386_linux_core_read_xcr0): New.
850 (i386_linux_core_read_description): Check and enable AVX target
851 description.
852 (i386_linux_init_abi): Set xsave_xcr0_offset.
853 (_initialize_i386_linux_tdep): Call
854 initialize_tdesc_i386_avx_linux.
855
856 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
857 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
858 (i386_linux_core_read_xcr0): New.
859 (tdesc_i386_avx_linux): Likewise.
860 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
861
862 * i386-tdep.c: Include "i386-xstate.h" and
863 "features/i386/i386-avx.c".
864 (i386_ymm_names): New.
865 (i386_ymmh_names): Likewise.
866 (i386_ymmh_regnum_p): Likewise.
867 (i386_ymm_regnum_p): Likewise.
868 (i386_xmm_regnum_p): Likewise.
869 (i386_register_name): Likewise.
870 (i386_ymm_type): Likewise.
871 (i386_supply_xstateregset): Likewise.
872 (i386_collect_xstateregset): Likewise.
873 (i386_sse_regnum_p): Removed.
874 (i386_pseudo_register_name): Support pseudo YMM registers.
875 (i386_pseudo_register_type): Likewise.
876 (i386_pseudo_register_read): Likewise.
877 (i386_pseudo_register_write): Likewise.
878 (i386_dbx_reg_to_regnum): Return %ymmN register number for
879 %xmmN if AVX is available.
880 (i386_regset_from_core_section): Support .reg-xstate section.
881 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
882 (i386_process_record): Replace i386_sse_regnum_p with
883 i386_xmm_regnum_p.
884 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
885 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 886 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
887 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
888 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
889 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
890 Set ymm0_regnum.
891 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
892
893 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
894 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
895 i386_ymm_type.
896 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
897 (I386_AVX_NUM_REGS): New.
898 (i386_xmm_regnum_p): Likewise.
899 (i386_ymm_regnum_p): Likewise.
900 (i386_ymmh_regnum_p): Likewise.
901
902 * common/i386-xstate.h: New.
903
98adf0f3
L
9042010-04-07 H.J. Lu <hongjiu.lu@intel.com>
905
906 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
907
908 * features/Makefile (WHICH): Add i386/i386-avx,
909 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
910 (i386/i386-avx-expedite): New.
911 (i386/i386-avx-linux-expedite): Likewise.
912 (i386/x86-64-avx-expedite):Likewise.
913 (i386/x86-64-avx-linux-expedite): Likewise.
914 ($(outdir)/i386/i386-avx.dat): New dependency.
915 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
916 ($(outdir)/i386/x86-avx-64.dat): Likewise.
917 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
918
919 * features/i386/32bit-avx.xml: New.
920 * features/i386/64bit-avx.xml: Likewise.
921 * features/i386/i386-avx-linux.c: Likewise.
922 * features/i386/i386-avx-linux.xml: Likewise.
923 * features/i386/i386-avx.c: Likewise.
924 * features/i386/i386-avx.xml: Likewise.
925 * features/i386/x86-64-avx-linux.c: Likewise.
926 * features/i386/x86-64-avx-linux.xml: Likewise.
927 * features/i386/x86-64-avx.c: Likewise.
928 * features/i386/x86-64-avx.xml: Likewise.
929 * regformats/i386/i386-avx-linux.dat: Likewise.
930 * regformats/i386/i386-avx.dat: Likewise.
931 * regformats/i386/x86-64-avx-linux.dat: Likewise.
932 * regformats/i386/x86-64-avx.dat: Likewise.
933
05159abe
DE
9342010-04-07 Doug Evans <dje@google.com>
935
936 * top.c (source_file_name): Make const char *.
937 * top.h (source_file_name): Update.
938 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
939 const char *.
940 (script_from_file): Change `file' arg to const char *.
941 * cli/cli-script.h (script_from_file): Update.
942
96e39866
DE
9432010-04-06 Doug Evans <dje@google.com>
944
945 * cli/cli-cmds.c (source_command): Run cleanups.
946
3149d8c1
SS
9472010-04-06 Stan Shebs <stan@codesourcery.com>
948
949 * defs.h (char_ptr): Move typedef here from...
950 * ada-lang.c (char_ptr): Remove.
951 * charset.c (char_ptr): Remove.
952 * tracepoint.h (struct uploaded_string): Remove.
953 (struct uploaded_tp): Use vectors for string arrays.
954 * tracepoint.c (trace_save): Use vectors of actions.
955 (parse_tracepoint_definition): Ditto.
956 (get_uploaded_tp): Clear vectors.
957 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
958 (next_cmd): Change to an int.
959 (read_next_cmd): Use vector of command strings.
960
4cc23ede
DE
9612010-04-06 Doug Evans <dje@google.com>
962
963 * top.h (source_script, cd_command): Delete.
964 * main.c: #include "cli/cli-cmds.h"
965
bd333fb7
KB
9662010-04-06 Kevin Buettner <kevinb@redhat.com>
967
968 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
969 type in bytes, not bits.
970
ec8a089a
PM
9712010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
972
973 * stabsread.c (define_symbol): Add support for char
974 and string constants.
975
2244ba2e
PM
9762010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
977
978 Remove remaining "%ll" uses.
979 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
980 hex_string call.
981 * rs6000-nat.c (rs6000_ptrace64): Idem.
982 * solib-pa64.c (pa64_current_sos): Idem.
983 * solib-spu.c (spu_current_sos): Idem.
984 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
985 plongest call.
986 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
987 phex (VAR, 8) call.
988 * sh64-tdep.c (sh64_show_media_regs): Idem.
989
fce3c1f0
SS
9902010-04-05 Stan Shebs <stan@codesourcery.com>
991
992 * tracepoint.c: Include gdbcore.h.
993 (tfile_xfer_partial): Return partial results, also try reading
994 from executable.
995 (tfile_has_all_memory): New function.
996 (init_tfile_ops): Use it.
997
626ea16d
SDJ
9982010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
999
1000 PR gdb/10736:
1001 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
1002 the changes in data-directory.
1003 (init_sysinfo): Reload the syscall XML file if the data-directory
1004 has changed.
1005
1f7ccab2
JK
10062010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1007
1008 Code cleanup.
1009 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
1010
d77f58be
SS
10112010-04-04 Stan Shebs <stan@codesourcery.com>
1012 Nathan Sidwell <nathan@codesourcery.com>
1013
1014 * breakpoint.c (breakpoint_1): Add filter argument, return number of
1015 breakpoints printed.
1016 (is_hardware_watchpoint): Make argument const.
1017 (is_watchpoint): Ditto.
1018 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
1019 use it everywhere.
1020 (breakpoints_info): Pass NULL to breakpoint_1.
1021 (maintenance_info_breakpoints): Ditto.
1022 (watchpoints_info): New function.
1023 (tracepoints_info): Use breakpoint_1 filter.
1024 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
1025 (_initialize_breakpoint): Make "info watchpoints" its own command.
1026 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
1027 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
1028
af54718e
SS
10292010-04-04 Stan Shebs <stan@codesourcery.com>
1030
1031 * tracepoint.c (tfile_fetch_registers): Add fallback case.
1032
74d1f91e
JK
10332010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1034
1035 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
1036 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
1037
91d91ceb
JK
10382010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1039
1040 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
1041 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
1042
60531b24
JK
10432010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1044
1045 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
1046 code form.
1047
a3c4230a
HZ
10482010-04-02 Hui Zhu <teawater@gmail.com>
1049
1050 * i386-tdep.c (OT_DQUAD): New enum.
1051 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
1052 SSE3, SSSE3 and SSE4.
1053
b15758fe
HZ
10542010-04-02 Hui Zhu <teawater@gmail.com>
1055
1056 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
1057 "*addr = 0".
1058
afd02f27
PA
10592010-04-02 Pedro Alves <pedro@codesourcery.com>
1060
1061 * tracepoint.c (trace_dump_actions): New, factored out from
1062 trace_dump_command, and adjusted to recurse into while-stepping's
1063 action list.
1064 (trace_dump_command): Use it.
1065
5cea2a26
PA
10662010-04-02 Pedro Alves <pedro@codesourcery.com>
1067
1068 * breakpoint.h (struct counted_command_line): Moved definition to
1069 breakpoint.c, and forward declare.
1070 (breakpoint_commands): Declare.
1071 * breakpoint.c (struct counted_command_line): Moved here.
1072 (breakpoint_commands): New.
1073 * tracepoint.c (encode_actions): Use breakpoint_commands.
1074 * remote.c (remote_download_tracepoint): Ditto.
1075
7c47795c
L
10762010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1077
1078 * remote.c (remote_parse_stop_reply): Use hex_string instead
1079 of phex_nz for error.
1080
fff87407
SS
10812010-04-01 Stan Shebs <stan@codesourcery.com>
1082 Nathan Sidwell <nathan@codesourcery.com>
1083
1084 * tracepoint.h (enum actionline_type): Remove.
1085 (validate_actionline): Change return to void.
1086 * tracepoint.c (report_agent_reqs_errors): New function.
1087 (validate_actionline): Call it, change return to void, report errors
1088 more consistently.
1089 (collect_symbol): Call report_agent_reqs_errors.
1090 (encode_actions_1): Ditto.
1091 (encode_actions): Don't expect a result from validate_actionline.
1092
615bcdef
SS
10932010-04-01 Stan Shebs <stan@codesourcery.com>
1094
1095 * tracepoint.c (trace_start_command): Confirm if trace is running.
1096 (trace_stop_command): Error if trace not running.
1097
fe01d668
L
10982010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1099
1100 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
1101 (AMD64_NUM_LOWER_BYTE_REGS): New.
1102 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
1103 (amd64_pseudo_register_write): Likewise.
1104 (amd64_init_abi): Set num_byte_regs to 20.
1105
86b17b60
PA
11062010-04-01 Pedro Alves <pedro@codesourcery.com>
1107
1108 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
1109 (prev_breakpoint_count): New.
1110 (set_breakpoint_count): Adjust.
1111 (rbreak_start_breakpoint_count): New.
1112 (start_rbreak_breakpoints): Adjust.
1113 (end_rbreak_breakpoints): Adjust.
1114 (struct commands_info) <arg>: New field.
1115 (do_map_commands_command): Tweak output to include breakpoint spec
1116 range.
1117 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
1118 ARG was empty on entry. Set INFO's arg.
1119 (create_breakpoint): Adjust.
1120
1121 * NEWS: Clarify `commands' changes.
1122
2c58c0a9
PA
11232010-04-01 Pedro Alves <pedro@codesourcery.com>
1124
1125 * tracepoint.c: Include stack.h.
1126 (struct add_local_symbols_data): New.
1127 (do_collect_symbol): New.
1128 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
1129 iterate_over_block_local_vars.
1130 * stack.c (print_block_frame_locals): Rewrite as ...
1131 (iterate_over_block_locals): ... this. Take a callback function
1132 pointer and generic data pointer, and call that instead of
1133 print_variable_and_value.
1134 (struct print_variable_and_value_data): New.
1135 (do_print_variable_and_value): New.
1136 (iterate_over_block_local_vars): New, abstracted out from
1137 print_frame_local_vars.
1138 (print_frame_local_vars): Rewrite using
1139 iterate_over_block_local_vars.
1140 (iterate_over_block_arg_vars): New, abstracted out from
1141 print_frame_arg_vars.
1142 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
1143 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
1144 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
1145
d476da0e
RE
11462010-03-31 Richard Earnshaw <rearnsha@arm.com>
1147
1148 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 1149 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
1150 PC register.
1151
8072405b
JK
11522010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1153
1154 Fix crash on reading wrong function declaration DWARF.
1155 * dwarf2read.c (read_subroutine_type): New variable void_type.
1156 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
1157 more close to their use.
1158
8bf6485c
SS
11592010-03-31 Stan Shebs <stan@codesourcery.com>
1160
1161 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 1162 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
1163 * tracepoint.c (save_trace_state_variables): New function.
1164 * tracepoint.h (save_trace_state_variables): Declare it.
1165
2ae2a0b7
PM
11662010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
1167
1a161f72 1168 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 1169
86ffb506
KS
11702010-03-30 Keith Seitz <keiths@redhat.com>
1171
1172 * c-typeprint.c (c_type_print_args): Don't print "void"
1173 for java, regardless of whether it is TYPE_PROTOTYPED.
1174 Use the passed-in language instead of current_language.
1175 (c_type_print_varspec_suffix): Use current_language instead
1176 of assuming language_c.
1177 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
1178 any return type specifier from the physname.
1179
956c2c8b
PA
11802010-03-30 Pedro Alves <pedro@codesourcery.com>
1181
1182 * tui/tui-interp.c (tui_is_toplevel): New.
1183 (tui_init): Set it.
1184 (tui_allowed_p): New.
1185 * tui/tui.c (tui_enable): Check if the TUI is allowed before
1186 enabling it.
1187 * tui/tui.h (tui_allowed_p): Declare.
1188
98e5a990
TT
11892010-03-30 Ozkan Sezer <sezeroz@gmail.com>
1190
1191 * serial.h: Include winsock2.h before windows.h.
1192
c8d5aac9
L
11932010-03-30 H.J. Lu <hongjiu.lu@intel.com>
1194
1195 * NEWS: Mention xmlRegisters= in qSupported packet.
1196
1197 * i386-tdep.c: Include "remote.h".
1198 (_initialize_i386_tdep): Call register_remote_support_xml.
1199
1200 * remote.c (remote_support_xml): New.
1201 (register_remote_support_xml): Likewise.
1202 (remote_query_supported_append): Likewise.
1203 (remote_query_supported): Support remote_support_xml.
1204
1205 * remote.h (register_remote_support_xml): New.
1206
76a2b958
SS
12072010-03-29 Stan Shebs <stan@codesourcery.com>
1208
42e08e69
SS
1209 * tracepoint.c (trace_find_line_command): Remove dead code.
1210
409873ef
SS
1211 * tracepoint.h (struct uploaded_string): New struct.
1212 (struct uploaded_tp): New fields for source strings.
1213 * breakpoint.c (this_utp, next_cmd): New globals.
1214 (read_uploaded_action): New function.
1215 (create_tracepoint_from_upload): Fill in more parts
1216 of a tracepoint.
1217 * tracepoint.c (encode_source_string): New function.
1218 (trace_save): Write out source strings, fix error checks.
1219 (parse_tracepoint_definition): Add source string parsing.
1220 * remote.c (PACKET_TracepointSource): New packet type.
1221 (remote_download_command_source): New function.
1222 (remote_download_tracepoint): Download source pieces also.
1223 (_initialize_remote): Add packet config command.
1224
a0405854
SS
1225 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
1226 expression handler.
1227
76a2b958
SS
1228 * tracepoint.c (start_tracing): Check tracepoints before sending
1229 commands to target, don't start if all tracepoints disabled.
1230
d350db38
PA
12312010-03-28 Pedro Alves <pedro@codesourcery.com>
1232
12f2d601 1233 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 1234
8b9b7ef8
SS
12352010-03-26 Stan Shebs <stan@codesourcery.com>
1236
1237 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
1238
9766ced4
SS
12392010-03-26 Tom Tromey <tromey@redhat.com>
1240
1241 * breakpoint.c (commands_command_1): Duplicate 'arg'.
1242
059acae7
UW
12432010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1244
1245 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
1246 (skip_prologue_sal): Remove local definition.
1247 (resolve_sal_pc): Remove now unnecessary code.
1248 * linespec.c (minsym_found): Call skip_prologue_sal.
1249 * symtab.c (find_function_start_pc): Remove.
1250 (find_function_start_sal): Extract prologue skipping into ...
1251 (skip_prologue_sal): ... this new function. Handle code both
1252 with and without debug info. Respect SAL's explicit_pc and
1253 explicit_line flags. Inline old find_function_start_pc.
1254 * symtab.h (find_function_start_pc): Remove.
1255 (skip_prologue_sal): Add prototype.
1256
4a811a97
UW
12572010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1258
1259 * dwarf2read.c (read_func_scope): Also scan specification DIEs
1260 for DW_TAG_imported_module children.
1261
907af001
UW
12622010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1263
1264 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
1265 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
1266 * completer.c (add_struct_fields): Fix inverted logic.
1267
dde2d684
UW
12682010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1269
1270 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
1271
a609a0c8
PA
12722010-03-26 Pedro Alves <pedro@codesourcery.com>
1273
1274 * tracepoint.c (current_trace_status): Don't make sure error_desc
1275 is non-NULL here.
1276 (parse_trace_status): Release a previous error_desc string, and
1277 set it to NULL by default. If stop reason is tracepoint_error,
1278 make sure error_desc is not left NULL.
1279
610197fd
PA
12802010-03-26 Pedro Alves <pedro@codesourcery.com>
1281
1282 * tracepoint.c (trace_save): Remove X from tracepoint error
1283 description.
1284
99b5e152
PA
12852010-03-26 Pedro Alves <pedro@codesourcery.com>
1286
1287 * tracepoint.c (parse_trace_status): Don't allow plain strings in
1288 the terror description. Don't expect an X prefix.
1289
6c28cbf2
SS
12902010-03-25 Stan Shebs <stan@codesourcery.com>
1291
1292 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
1293 (struct trace_status): New field error_desc.
1294 * tracepoint.c (stop_reason_names): Add terror.
1295 (current_trace_status): Ensure non-NULL error description.
1296 (trace_status_command): Add error report.
1297 (trace_status_mi): Ditto.
1298 (trace_save): Add special case for error description.
1299 (parse_trace_status): Add case for errors.
1300
418835cc
KS
13012010-03-25 Keith Seitz <keiths@redhat.com>
1302
1303 * dwarf2read.c (read_subroutine_type): If the compilation unit
1304 language is Java, mark any formal parameter named "this" as
1305 artificial (GCC/43521).
1306 (dwarf2_name): Add special handling for Java constructors.
1307
aa7d318d
TT
13082010-03-25 Tom Tromey <tromey@redhat.com>
1309
1310 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
1311 * infrun.c (handle_inferior_event): Change initialization of
1312 stop_stack_dummy.
1313 (handle_inferior_event): Change assignment to stop_stack_dummy.
1314 (normal_stop): Update use of stop_stack_dummy.
1315 (struct inferior_status) <stop_stack_dummy>: Change type.
1316 * inferior.h (stop_stack_dummy): Update.
1317 * infcmd.c (stop_stack_dummy): Change type.
1318 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
1319 function.
1320 (call_function_by_hand): Call set_std_terminate_breakpoint.
1321 Rewrite std::terminate handling.
1322 * breakpoint.h (enum bptype) <bp_std_terminate,
1323 bp_std_terminate_master>: New.
1324 (enum stop_stack_kind): New.
1325 (struct bpstat_what) <call_dummy>: Change type.
1326 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
1327 Declare.
1328 * breakpoint.c (create_std_terminate_master_breakpoint): New
1329 function.
1330 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
1331 Call create_std_terminate_master_breakpoint.
1332 (print_it_typical): Handle new breakpoint kinds.
1333 (bpstat_stop_status): Handle bp_std_terminate_master.
1334 (bpstat_what): Correctly set call_dummy field. Handle
1335 bp_std_terminate_master and bp_std_terminate.
1336 (print_one_breakpoint_location): Update.
1337 (allocate_bp_location): Update.
1338 (set_std_terminate_breakpoint): New function.
1339 (delete_std_terminate_breakpoint): Likewise.
1340 (create_thread_event_breakpoint): Update.
1341 (delete_command): Update.
1342 (breakpoint_re_set_one): Update.
1343 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
1344
82ccf5a5
JK
13452010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1346
1347 * symfile.c (build_section_addr_info_from_bfd): New.
1348 (build_section_addr_info_from_objfile): Base it on
1349 build_section_addr_info_from_bfd.
1350 (addrs_section_compar, addrs_section_sort): New.
1351 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
1352 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
1353 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
1354
737c4c52
MS
13552010-03-24 Michael Snyder <msnyder@localhost.localdomain>
1356
8d95cc3b 1357 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
1358 Remove unused local variable.
1359
95a42b64
TT
13602010-03-24 Tom Tromey <tromey@redhat.com>
1361
1362 PR breakpoints/9352:
1363 * NEWS: Mention changes to `commands' and `rbreak'.
1364 * symtab.c (do_end_rbreak_breakpoints): New function.
1365 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
1366 end_rbreak_breakpoints.
1367 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
1368 (set_breakpoint_count): Likewise. Clear last_was_multi.
1369 (multi_start, multi_end, last_was_multi): New globals.
1370 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
1371 functions.
1372 (struct commands_info): New
1373 (do_map_commands_command): New function.
1374 (commands_command_1): New function.
1375 (commands_command): Use it.
1376 (commands_from_control_command): Likewise.
1377 (do_delete_breakpoint): New function.
1378 (delete_command): Use it.
1379 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
1380 (do_map_disable_breakpoint): New function.
1381 (disable_command): Use it.
1382 (do_map_enable_breakpoint): New function.
1383 (enable_command): Use it.
1384 (enable_once_breakpoint): Add argument.
1385 (enable_once_command): Update.
1386 (enable_delete_breakpoint): Add argument.
1387 (enable_delete_command): Update.
1388 (break_command_really): Set last_was_multi when needed.
1389 (check_tracepoint_command): Fix formatting.
1390 (validate_commands_for_breakpoint): New function.
1391 (breakpoint_set_commands): Use it.
1392 (tracepoint_save_command): Update.
1393 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
1394 Declare.
1395
9add0f1b
TT
13962010-03-24 Tom Tromey <tromey@redhat.com>
1397
1398 * breakpoint.h (struct counted_command_line): New struct.
1399 (struct breakpoint) <commands>: Change type.
1400 (struct bpstats) <commands>: Change type.
1401 <commands_left>: New field.
1402 * breakpoint.c (alloc_counted_command_line): New function.
1403 (incref_counted_command_line): Likewise.
1404 (decref_counted_command_line): Likewise.
1405 (do_cleanup_counted_command_line): Likewise.
1406 (make_cleanup_decref_counted_command_line): Likewise.
1407 (breakpoint_set_commands): Use decref_counted_command_line and
1408 alloc_counted_command_line.
1409 (commands_command): Don't error if breakpoint commands are
1410 executing.
1411 (commands_from_control_command): Likewise.
1412 (bpstat_free): Update.
1413 (bpstat_copy): Likewise.
1414 (bpstat_clear_actions): Likewise.
1415 (bpstat_do_actions_1): Likewise.
1416 (bpstat_stop_status): Likewise.
1417 (print_one_breakpoint_location): Likewise.
1418 (delete_breakpoint): Likewise.
1419 (bpstat_alloc): Initialize new field.
1420 (tracepoint_save_command): Update.
1421 * tracepoint.c (encode_actions): Update.
1422 (trace_dump_command): Update.
1423
a6c727b2
DJ
14242010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1425
1426 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1427 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1428 (read_structure_type): For RealView, set TYPE_STUB on structures with
1429 no byte size and no children.
1430 (read_subroutine_type): Mark functions as prototyped by default.
1431 * symtab.c (producer_is_realview): New function.
1432 * symtab.h (expand_line_sal): Fix declaration formatting.
1433 (producer_is_realview): Declare.
1434
0d39a070
DJ
14352010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1436
1437 * arm-tdep.c (skip_prologue_function): New function.
1438 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1439 (thumb_analyze_prologue): Document return value. Recognize more
1440 Thumb instructions, skippable calls, and some Thumb-2 instructions.
1441 Add debug output.
1442 (arm_skip_prologue): Remove call dummy check. Check the prologue
1443 for non-GNU compilers.
1444 (arm_instruction_changes_pc): New function.
1445 (arm_analyze_prologue): New function, broken out from
1446 arm_scan_prologue. Recognize more ARM instructions and skippable
1447 calls. Update comments. Handle NULL cache. Return the address
1448 of the first unrecognized instruction. Do not skip past other
1449 instructions which change control flow. Add debug output.
1450 (arm_scan_prologue): Use arm_analyze_prologue.
1451 (ARM_PC_32): Delete.
1452 (shifted_reg_val): Simplify ARM_PC_32 check.
1453
4baf5cf4
VP
14542010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1455
1456 * tracepoint.c (tvariables_info_1): Actually compute
1457 the number of rows in the result.
1458
4a5e7a5b
PA
14592010-03-24 Pedro Alves <pedro@codesourcery.com>
1460
1461 * remote.c (crc32): Constify `buf' parameter.
1462 (remote_verify_memory): New, abstracted out from...
1463 (compare_sections_command): ... this. Remove hardcoded target
1464 checks.
1465 (init_remote_ops): Install remote_verify_memory.
1466 * target.c (target_verify_memory): New.
1467 * target.h (struct target_ops) <to_verify_memory>: New field.
1468 (target_verify_memory): Declare.
1469
011aacb0
VP
14702010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1471
1472 Implement -trace-save.
1473
1474 * mi-cmds.h (mi_cmds_trace_save): Declare.
1475 * mi-cmds.c (mi_cmds): Register -trace-save.
1476 * mi/mi-main.c (mi_cmd_trace_save): New.
1477 * remote.c (remote_save_trace_data): Take const parameter.
1478 * target.h (struct target_ops::to_save_trace_data): Take
1479 const parameter.
1480 * target.c (update_current_target): Adjust to the above.
1481 * tracepoint.c (trave_save): New, extracted from
1482 (trace_save_command): ...this.
1483 (tfile_trace_find): Remove message that is unnecessary now
1484 that 'tfind' reports found frame.
1485 * tracepoint.h (trace_save): Declare.
1486
f197e0f1
VP
14872010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1488
1489 Implement -trace-find.
1490
1491 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1492 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1493 * mi/mi-main.c (mi_cmd_trace_find): New.
1494 * target.h (struct target_ops): Document to_trace_find.
1495 * tracepoint.h (tfind_1): Declare.
1496 * tracepoint.c (finish_tfind_command): Rename to...
1497 (tfind_1): ...this.
1498 * remote.c (remote_trace_find): Return -1 if target say
1499 there's no frame. Improve error diagnostics.
1500
40e1c229
VP
15012010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1502
1503 -trace-define-variable and -trace-list-variables.
1504
1505 * tracepoint.c (create_trace_state_variable): Make
1506 private copy of name, as opposed to assuming the
1507 pointer lives forever.
1508 (tvariables_info_1): New.
1509 (tvariables_info): Use the above.
1510 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1511 Declare.
1512 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1513 and -trace-list-variables.
1514 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1515 (mi_cmd_trace_list_variables): New.
1516 * mi/mi-main.c (mi_cmd_trace_define_variable)
1517 (mi_cmd_trace_list_variables): New.
1518
9b4c786c
VP
15192010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1520
1521 Implement -break-passcount.
1522
1523 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1524 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1525 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1526
f224b49d
VP
15272010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1528
1529 -trace-start/-trace-end/-trace-status.
1530
1531 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1532 and -trace-stop.
1533 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1534 (mi_cmd_trace_stop): Declare.
1535 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1536 (mi_cmd_trace_stop): New.
1537 * tracepoint.c (start_tracing): New, extracted from...
1538 (trace_start_command): ...this.
1539 (trace_status_mi): New.
1540 * tracepoint.h (struct trace_status): Document
1541 stopping_tracepoint.
1542 (start_tracing, stop_tracing, trace_status_mi): Declare.
1543
6534d786
VP
15442010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1545
1546 Implement creating tracepoints with -break-insert.
1547
1548 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1549 to mean that tracepoint should be created.
1550
51661e93
VP
15512010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1552
1553 * breakpoint.c (check_no_tracepoint_commands): Use
1554 current spelling of 'teval'.
1555
a7bdde9e
VP
15562010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1557
1558 Unify actions and commands
1559
1560 * defs.h (read_command_lines, read_command_lines_1): New
1561 parameters validator and closure.
1562 * tracepoint.h (struct action_line): Remove.
1563 * breakpoint.h (struct breakpoint): Remove the 'actions'
1564 field.
1565 * defs.h (enum command_control_type): New value
1566 while_stepping_control.
1567 (struct command_line): Add comments.
1568 * breakpoint.c (breakoint_is_tracepoint): New.
1569 (breakpoint_set_commands): For tracepoints,
1570 verify the commands are permissible.
1571 (check_tracepoint_commands): New.
1572 (commands_command): Require that each new line is validated using
1573 check_tracepoint_command, if we set commands for a tracepoint.
1574 (create_tracepoint_from_upload): Likewise.
1575 (print_one_breakpoint_location): Remove the code to print
1576 actions specifically.
1577 (tracepoint_save_command): Relay to print_command_lines.
1578 * cli/cli-script.c (process_next_line): New parameters validator
1579 and closure. Handle 'while-stepping'. Call validator if not null.
1580 (read_command_lines, read_command_lines1): Likewise.
1581 (recurse_read_control_structure): New parameters validator and
1582 closure. Handle while_stepping_control.
1583 (print_command_lines): Handle while-stepping.
1584 (get_command_line, define_command, document_command): Adjust.
1585 * remote.c (remote_download_tracepoint): Adjust.
1586 * tracepoint.c (make_cleanup_free_actions, read_actions)
1587 (free_actions, do_free_actions_cleanup): Remove.
1588 (trace_actions_command): Use read_command_lines.
1589 (validate_actionline): Use error in one place.
1590 (encode_actions_1): New, extracted from...
1591 (encode_actions): ...this. Also use cleanups for exception
1592 safety.
1593 (trace_dump_command): Adjust.
1594 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1595 it's tracepoint.
1596
64e3cf3d
MF
15972010-03-23 Mike Frysinger <vapier@gentoo.org>
1598
1599 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1600
52e9fde8
SS
16012010-03-22 Stan Shebs <stan@codesourcery.com>
1602
1603 * value.c (value_static_field): Be lazy about the field's value.
1604
508ccb1f
TT
16052010-03-22 Reid Kleckner <reid@kleckner.net>
1606
1607 PR gdb/11094
1608 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1609 bp_jit_event.
1610 (disable_breakpoints_in_shlibs): Likewise.
1611
acebe513
UW
16122010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1613
1614 * dwarf2read.c (partial_die_parent_scope): Work around buggy
1615 GCC 4.1 debug info generation (GCC PR c++/28460).
1616 (determine_prefix): Likewise.
1617
957b8b5a
DJ
16182010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
1619
1620 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1621 get_current_arch.
1622 * tui/tui-layout.c (extract_display_start_addr): Likewise.
1623
3b11a015
SS
16242010-03-19 Stan Shebs <stan@codesourcery.com>
1625
1626 * ax-gdb.c (gen_fetch): Handle bool.
1627 (gen_usual_unary): Ditto.
1628 (gen_cast): Ditto.
1629 (gen_equal): New function.
1630 (gen_less): New function.
1631 (gen_expr_binop_rest): Call them, also return integer type from
1632 logical operations.
1633 (gen_expr): Ditto.
1634
20781792
TT
16352010-03-19 Tom Tromey <tromey@redhat.com>
1636
1637 * jv-lang.c (jv_dynamics_objfile_data_key)
1638 (jv_type_objfile_data_key): New globals.
1639 (class_symtab): Move earlier.
1640 (jv_per_objfile_free): New function.
1641 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
1642 parameter.
1643 Remove ancient #if 1.
1644 (add_class_symbol): Remove redundant declaration.
1645 (java_lookup_class): Use alloc_type, not alloc_type_arch.
1646 (java_link_class_type): Mark as static. Update.
1647 (jv_clear_object_type): New function.
1648 (set_java_object_type): Likewise.
1649 (get_java_object_type): Use set_java_object_type.
1650 (is_object_type): Likewise.
1651 (_initialize_java_language): Register new objfile keys.
1652 (get_java_class_symtab): Add 'gdbarch' parameter.
1653 (add_class_symtab_symbol): Update.
1654 (type_from_class): Update.
1655
cf3e25ca
SS
16562010-03-19 Stan Shebs <stan@codesourcery.com>
1657
8d95cc3b 1658 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 1659
f1ae44c9 16602010-03-18 Joel Brobecker <brobecker@adacore.com>
1661
1662 GDB 7.1 released.
1663
4daf5ac0
SS
16642010-03-18 Stan Shebs <stan@codesourcery.com>
1665 Pedro Alves <pedro@codesourcery.com>
1666
1667 * target.h (struct target_ops): New method
1668 to_set_circular_trace_buffer.
1669 (target_set_circular_trace_buffer): New macro.
1670 * target.c (update_current_target): Add
1671 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1672 default behavior.
1673 * remote.c (remote_set_circular_trace_buffer): New function.
1674 (init_remote_ops): Add it to vector.
1675 * tracepoint.h (struct trace_status): New field traceframes_created,
1676 change buffer_size and buffer_free to int.
1677 * tracepoint.c (circular_trace_buffer): New global.
1678 (start_tracing): Send values of disconnected tracing and circular
1679 trace buffer settings.
1680 (set_circular_trace_buffer): New function.
1681 (parse_trace_state): Handle total space and frames created.
1682 (trace_status_command): Display total space and total frames
1683 created.
1684 (trace_save): Write out new status values.
1685 (parse_trace_status): Set traceframe_count, traceframes_created,
1686 buffer_free and buffer_size to -1 by default.
1687 (_initialize_tracepoint): New setshow for circular-trace-buffer.
1688 * NEWS: Mention the circular trace buffer option.
1689
40c549d6
TT
16902010-03-18 Tom Tromey <tromey@redhat.com>
1691
1692 * infcmd.c (finish_command_continuation): Wrap print_return_value
1693 in TRY_CATCH.
1694
e8d05480
JB
16952010-03-18 Joel Brobecker <brobecker@adacore.com>
1696
1697 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1698 DIE has a name before creating the associated partial symbol.
1699 (read_func_scope): Emit a complaint if the subprogram does not
1700 have a name or when we can't extract the subprogram PC bounds.
1701
441b986a
UW
17022010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1703
1704 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1705 instead of selected frame architecture.
1706
4247603b
PA
17072010-03-18 Pedro Alves <pedro@codesourcery.com>
1708
1709 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
1710 a valid selected thread, and that it is not running.
1711 (advance_command): Ditto.
1712 (finish_command): Ditto.
1713
400c6af0
SS
17142010-03-17 Stan Shebs <stan@codesourcery.com>
1715
3a96536b
SS
1716 * ax-gdb.c (require_rvalue): Disallow non-scalars.
1717
573cda03
SS
1718 * infcall.c: Include tracepoint.h.
1719 (call_function_by_hand): Disallow calls in tfind mode.
1720 * infcmd.c: Include tracepoint.h.
1721 (ensure_not_tfind_mode): New function.
1722 (continue_1): Call it.
1723 (step_1) Ditto.
1724 (jump_command): Ditto.
1725 (signal_command): Ditto.
1726 (advance_command): Ditto.
1727 (until_command): Ditto.
1728 (finish_command): Ditto.
1729 * tracepoint.h (disconnect_or_stop_tracing): Declare.
1730
400c6af0
SS
1731 * ax-gdb.h (struct axs_value): New field optimized_out.
1732 (gen_trace_for_var): Add gdbarch argument.
1733 * ax-gdb.c (gen_trace_static_fields): New function.
1734 (gen_traced_pop): Call it, add gdbarch argument.
1735 (gen_trace_for_expr): Update call to it.
1736 (gen_trace_for_var): Ditto, and report optimized-out variables.
1737 (gen_struct_ref_recursive): Check for optimized-out value.
1738 (gen_struct_elt_for_reference): Ditto.
1739 (gen_static_field): Pass gdbarch instead of expression, assume
1740 optimization if field not found.
1741 (gen_var_ref): Set the optimized_out flag.
1742 (gen_expr): Error on optimized-out variable.
1743 * tracepoint.c (collect_symbol): Handle struct-valued vars as
1744 expressions, skip optimized-out variables with computed locations.
1745 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1746 erroring out if location expression missing.
1747 (loclist_tracepoint_var_ref): Don't error out here.
1748
a3b2a86b
TT
17492010-03-17 Tom Tromey <tromey@redhat.com>
1750
1751 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1752 DWARF data is available.
1753
38963c97
DJ
17542010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1755
1756 * symfile.c (generic_load): Reset breakpoints after loading.
1757
ddabfc73
TT
17582010-03-17 Tom Tromey <tromey@redhat.com>
1759
1760 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
1761
d8c09fb5
JK
17622010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1763
1764 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
1765 create_breakpoint call, adjust the parameters.
1766
bbb0eef6
JK
17672010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1768 Chandru <chandru@in.ibm.com>
1769
1770 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
1771 * valarith.c (value_subscripted_rvalue): Suppress error if
1772 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1773
46956e39
HZ
17742010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
1775
1776 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
1777
b8d088ac
JB
17782010-03-16 Joel Brobecker <brobecker@adacore.com>
1779
1780 * ada-tasks.c (task_command_1): Check that the task ptid is valid
1781 before doing the associated thread switch.
1782
322be962
DJ
17832010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1784
1785 * MAINTAINERS: Update my email address.
1786
8cdf0e15
VP
17872010-03-16 Vladimir Prus <vladimir@codesourcery.com>
1788
1789 Simplify MI breakpoint setting.
1790
1791 * breakpoint.c (break_command_really): Make nonstatic and
1792 rename to...
1793 (create_breakpoint): ...this. Rename prior function by this name
1794 to...
1795 (create_breakpoint_sal): ...this.
1796 (create_breakpoints): Rename to...
1797 (create_breakpoints_sal): ...this.
1798 (set_breakpoint): Remove.
1799 * breakpoint.h: Adjust to above changes.
1800 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
1801
b6e7192f
SS
18022010-03-15 Stan Shebs <stan@codesourcery.com>
1803
1804 * ax-gdb.c: Include cp-support.h.
1805 (find_field): Remove.
1806 (gen_primitive_field): New function.
1807 (gen_struct_ref_recursive): New function.
1808 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
1809 of find_field.
1810 (gen_static_field): New function.
1811 (gen_struct_elt_for_reference): New.
1812 (gen_namespace_elt): New.
1813 (gen_maybe_namespace_elt): New.
1814 (gen_aggregate_elt_ref): New.
1815 (gen_expr): Add OP_SCOPE, display opcode name in error message.
1816
1054b214
TT
18172010-03-15 Tom Tromey <tromey@redhat.com>
1818
1819 * dwarf2read.c (die_needs_namespace): Also return 0 for
1820 DW_TAG_subprogram.
1821
13387711
SW
18222010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
1823
1824 PR c++/7936:
1825 * cp-support.h: Added char *declaration element to using_direct
1826 data struct.
1827 (cp_add_using): Added char *declaration argument.
1828 (cp_add_using_directive): Ditto.
1829 (cp_lookup_symbol_imports): made extern.
1830 * cp-namespace.c: Updated with the above changes.
1831 * dwarf2read.c (read_import_statement): Ditto.
1832 (read_namespace): Ditto.
1833 (read_import_statement): Support import declarations.
1834 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
1835 declarations.
1836 Added support for 'declaration_only' search.
1837 (cp_lookup_symbol_namespace): Attempt to search for the name as
1838 is before consideration of imports.
1839 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
1840 search at every block level search.
1841 Now takes language argument.
1842 (lookup_symbol_aux): Updated.
1843
6e31430b
TT
18442010-03-15 Tom Tromey <tromey@redhat.com>
1845
1846 * c-exp.y (name_not_typename): Add 'operator' clause.
1847
4dea3bb7 18482010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
1849
1850 * configure.ac: Exit if ${gdb_target_obs}" is not set.
1851 * configure: Regenerate.
1852
4d9743af
JK
18532010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1854
1855 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
1856 and ".sdynbss". Update the comment.
1857
f75150fe
JZ
18582010-03-15 Jie Zhang <jie@codesourcery.com>
1859
1860 * MAINTAINERS: Update my email address.
1861
3c13bc11
DJ
18622010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1863
1864 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
1865
43484f03
DJ
18662010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1867
1868 * charset.c [USE_WIN32API]: Include <windows.h>.
1869 (_initialize_charset): Correct type of w32_host_default_charset.
1870
5f25d77d
PA
18712010-03-14 Pedro Alves <pedro@codesourcery.com>
1872
1873 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
1874
1c809c68
TT
18752010-03-12 Tom Tromey <tromey@redhat.com>
1876
1877 PR c++/9708:
1878 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
1879 in a lexical block does not need a namespace.
1880 (new_symbol) <DW_TAG_variable>: Put extern variables on
1881 list_in_scope in all cases.
1882
948103cf
SS
18832010-03-12 Stan Shebs <stan@codesourcery.com>
1884
1885 * ax-gdb.c (gen_expr): Add shift expressions.
1886 (gen_expr_binop_rest): Ditto.
1887
00ae8fef
SW
18882010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
1889
1890 * buildsym.c (finish_block): Reset using_directives pointer
1891 after block initialization.
1892
9cad29ac
L
18932010-03-12 H.J. Lu <hongjiu.lu@intel.com>
1894
1895 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
1896 * i386-tdep.c (i386_word_names): Likewise.
1897
2f4d8875
PA
18982010-03-12 Pedro Alves <pedro@codesourcery.com>
1899
1900 * target.c (memory_xfer_partial): Don't use the stack cache if
1901 inspecting trace frames.
1902 * tracepoint.c (finish_tfind_command): Invalidate the target
1903 dcache.
1904
ccf26247
JK
19052010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1906
1907 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
1908 for the PIC displacement, print also the displacement value.
1909 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
1910
477c84a7
KB
19112010-03-10 Kevin Buettner <kevinb@redhat.com>
1912
1913 * remote-mips.c (close_ports, mips_initialize_cleanups)
1914 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
1915 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
1916 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
1917 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
1918 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
1919 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
1920 comments describing each of these functions.
1921 (mips_enter_debug, mips_exit_debug, common_open)
1922 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
1923 blank line after the comment describing the function.
1924
01c30d6e
JK
19252010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 * solib-svr4.c (svr4_exec_displacement): Return now success, new
1928 parameter displacementp. Update comment.
1929 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
1930 element exists. Return if svr4_exec_displacement was not successful.
1931 Update comment.
1932
09919ac2
JK
19332010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 Daniel Jacobowitz <dan@codesourcery.com>
1935
1936 * solib-svr4.c (read_program_header): Support type == -1 to read
1937 all program headers.
1938 (read_program_headers_from_bfd): New function.
1939 (svr4_static_exec_displacement): Remove and move the comment ...
1940 (svr4_exec_displacement): ... here. Remove variable found. New
1941 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
1942 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
1943 targets using read_program_headers_from_bfd. Remove the call of
1944 svr4_static_exec_displacement.
1945
d146bf1e
TT
19462010-03-10 Tom Tromey <tromey@redhat.com>
1947
1948 * dwarf2read.c (struct pubnames_header): Remove.
1949 (_PUBNAMES_HEADER): Remove.
1950 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
1951 (struct aranges_header): Remove.
1952 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
1953 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
1954 (PUBNAMES_SECTION): Remove.
1955 (ARANGES_SECTION): Remove.
1956 (dwarf2_locate_sections): Don't handle pubnames or aranges.
1957 (dwarf2_build_psymtabs): Remove dead code.
1958 (dwarf2_build_psymtabs_easy): Remove.
1959
be391dca
TT
19602010-03-10 Tom Tromey <tromey@redhat.com>
1961
1962 * elfread.c (elf_symfile_read): Don't call
1963 dwarf2_build_frame_info.
1964 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
1965 (struct dwarf2_per_objfile) <objfile>: New field.
1966 (dwarf2_has_info): Now idempotent. Set objfile field.
1967 (dwarf2_read_section): Check and set readin field. Call
1968 posix_madvise.
1969 (dwarf2_build_psymtabs): Don't read all sections.
1970 (read_type_comp_unit_head): Read types section.
1971 (create_debug_types_hash_table): Likewise.
1972 (init_cu_die_reader): Add asserts.
1973 (process_type_comp_unit): Add assert.
1974 (dwarf2_build_psymtabs_hard): Read info section.
1975 (load_partial_comp_unit): Add assert.
1976 (create_all_comp_units): Read info section.
1977 (load_full_comp_unit): Likewise.
1978 (dwarf2_ranges_read): Read ranges section.
1979 (dwarf2_record_block_ranges): Add assert.
1980 (dwarf2_read_abbrevs): Read abbrev section.
1981 (read_indirect_string): Read str section.
1982 (dwarf_decode_line_header): Read line section.
1983 (read_signatured_type_at_offset): Read types section.
1984 (dwarf_decode_macros): Read macinfo section.
1985 (dwarf2_symbol_mark_computed): Read loc section.
1986 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
1987 dwarf2_build_frame_info.
1988 (dwarf2_build_frame_info): Unconditionally set
1989 dwarf2_frame_objfile_data on the objfile.
1990 * configure.ac: Check for posix_madvise.
1991 * config.in, configure: Rebuild.
1992
ccefe4c4
TT
19932010-03-10 Tom Tromey <tromey@redhat.com>
1994
e38df1d0
TT
1995 * xcoffread.c (xcoff_start_psymtab): Update.
1996 (xcoff_end_psymtab): Update.
1997 * psymtab.c (allocate_psymtab): Remove dead code.
1998 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
1999 void*.
2000 * mdebugread.c (parse_partial_symbols): Update.
2001 (new_psymtab): Likewise.
2002 * dwarf2read.c (process_psymtab_comp_unit): Update.
2003 (psymtab_to_symtab_1): Update.
2004 * dbxread.c (start_psymtab): Update.
2005 (end_psymtab): Likewise.
2006
be391dca 20072010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 2008
ccefe4c4
TT
2009 * xcoffread.c: Include psymtab.h.
2010 (xcoff_sym_fns): Update.
2011 * symtab.h (struct partial_symbol): Remove.
2012 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
2013 (struct partial_symtab): Remove.
2014 (PSYMTAB_TO_SYMTAB): Remove.
2015 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
2016 (find_pc_sect_psymtab): Remove.
2017 (find_pc_sect_symtab_via_partial): Declare.
2018 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
2019 (find_main_psymtab): Remove.
2020 (find_main_filename): Declare.
2021 (fixup_psymbol_section): Remove.
2022 (fixup_section): Declare.
2023 * symtab.c: Include psymtab.h.
2024 (lookup_symtab): Use lookup_symtab method.
2025 (lookup_partial_symtab): Remove.
2026 (find_pc_sect_psymtab_closer): Remove.
2027 (find_pc_sect_psymtab): Remove.
2028 (find_pc_sect_symtab_via_partial): New function.
2029 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
2030 (fixup_section): No longer static.
2031 (fixup_psymbol_section): Remove.
2032 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
2033 (lookup_global_symbol_from_objfile): Likewise.
2034 (lookup_symbol_aux_psymtabs): Remove.
2035 (lookup_symbol_aux_quick): New function.
2036 (lookup_symbol_global): Use lookup_symbol_aux_quick.
2037 (lookup_partial_symbol): Remove.
2038 (basic_lookup_transparent_type_quick): New function.
2039 (basic_lookup_transparent_type): Use it.
2040 (find_main_psymtab): Remove.
2041 (find_main_filename): New function.
2042 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
2043 (find_line_symtab): Use expand_symtabs_with_filename method.
2044 (output_partial_symbol_filename): New function.
2045 (sources_info): Use map_partial_symbol_filenames.
2046 (struct search_symbols_data): New type.
2047 (search_symbols_file_matches): New function.
2048 (search_symbols_name_matches): Likewise.
2049 (search_symbols): Use expand_symtabs_matching method.
2050 (struct add_name_data): Rename from add_macro_name_data.
2051 (add_macro_name): Update.
2052 (add_partial_symbol_name): New function.
2053 (default_make_symbol_completion_list): Use
2054 map_partial_symbol_names.
2055 (struct add_partial_symbol_name): New type.
2056 (maybe_add_partial_symtab_filename): New function.
2057 (make_source_files_completion_list): Use
2058 map_partial_symbol_filenames.
2059 (expand_line_sal): Use expand_symtabs_with_filename method.
2060 * symmisc.c: Include psymtab.h.
2061 (print_objfile_statistics): Use print_stats method.
2062 (dump_objfile): Use dump method.
2063 (dump_psymtab, maintenance_print_psymbols)
2064 (maintenance_info_psymtabs, maintenance_check_symtabs)
2065 (extend_psymbol_list): Remove.
2066 * symfile.h (struct quick_symbol_functions): New struct.
2067 (struct sym_fns) <qf>: New field.
2068 (sort_pst_symbols): Remove.
2069 (increment_reading_symtab): Declare.
2070 * symfile.c: Include psymtab.h.
2071 (compare_psymbols, sort_pst_symbols): Remove.
2072 (psymtab_to_symtab): Remove.
2073 (increment_reading_symtab): New function.
2074 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
2075 method.
2076 (set_initial_language): Use find_main_filename.
2077 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
2078 (free_named_symtabs): Remove unused code.
2079 (start_psymtab_common, add_psymbol_to_bcache)
2080 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
2081 Remove.
2082 * stack.c: Include psymtab.h, symfile.h.
2083 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
2084 * source.h (psymtab_to_fullname): Don't declare.
2085 * source.c: Include psymtab.h.
2086 (select_source_symtab): Use find_last_source_symtab method.
2087 (forget_cached_source_info): Use forget_cached_source_info
2088 method.
2089 (find_and_open_source): No longer static.
2090 (psymtab_to_fullname): Remove.
2091 * somread.c: Include psymtab.h.
2092 (som_sym_fns): Update.
2093 * psympriv.h: New file.
2094 * psymtab.h: New file.
2095 * psymtab.c: New file.
2096 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
2097 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
2098 * objfiles.c: Include psymtab.h.
2099 (objfile_relocate1): Use relocate method.
2100 (objfile_has_partial_symbols): Use has_symbols method.
2101 * mipsread.c: Include psymtab.h.
2102 (ecoff_sym_fns): Update.
2103 * mi/mi-cmd-file.c: Include psymtab.h.
2104 (print_partial_file_name): New function.
2105 (mi_cmd_file_list_exec_source_files): Use
2106 map_partial_symbol_filenames.
2107 * mdebugread.c: Include psympriv.h.
2108 * machoread.c: Include psympriv.h.
2109 (macho_sym_fns): Update.
2110 * m2-exp.y (yylex): Use lookup_symtab.
2111 * elfread.c: Include psympriv.h.
2112 (elf_sym_fns): Update.
2113 * dwarf2read.c: Include psympriv.h.
2114 * dbxread.c: Include psympriv.h.
2115 (aout_sym_fns): Update.
2116 * cp-support.c: Include psymtab.h.
2117 (read_in_psymtabs): Remove.
2118 (make_symbol_overload_list_qualified): Use
2119 expand_symtabs_for_function method.
2120 * coffread.c: Include psympriv.h.
2121 (coff_sym_fns): Update.
2122 * blockframe.c: Include psymtab.h.
2123 (find_pc_partial_function): Use find_pc_sect_symtab method.
2124 * ada-lang.h (ada_update_initial_language): Update.
2125 * ada-lang.c: Include psymtab.h.
2126 (ada_update_initial_language): Remove 'main_pst' argument.
2127 (ada_lookup_partial_symbol): Remove.
2128 (struct ada_psym_data): New type.
2129 (ada_add_psyms): New function.
2130 (ada_add_non_local_symbols): Use map_ada_symtabs method.
2131 (struct add_partial_datum): New type.
2132 (ada_add_partial_symbol_completions): New function.
2133 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
2134 (ada_exception_support_info_sniffer): Update.
2135 * Makefile.in (SFILES): Add psymtab.c.
2136 (COMMON_OBS): Add psymtab.o.
2137 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
2138
7d8500b7
PM
21392010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2140
2141 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
2142
c0cc3a76
SW
21432010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
2144
2145 PR C++/11236:
2146 * cp-namespace.c (cp_add_using): Deleted.
2147 (cp_add_using_directive): Use obstack allocations.
2148 Merged the function cp_add_using into this one.
2149 Added 'struct obstack *' argument.
2150 (cp_scan_for_anonymous_namespaces): Updated.
2151 * cp-support.h: Updated.
2152 * dwarf2read.c (read_import_statement): Updated.
2153 (read_namespace): Updated.
2154
452fa064
CF
21552010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2156
2157 * windows-nat.c (cygwin_conv_path): Remove old macro.
2158
60e1c644
PA
21592010-03-10 Pedro Alves <pedro@codesourcery.com>
2160
2161 * breakpoint.c (condition_command): Handle watchpoint conditions.
2162 (is_hardware_watchpoint): Add comment.
2163 (is_watchpoint): New.
2164 (update_watchpoint): Don't reparse the watchpoint's condition
2165 unless necessary.
2166 (WP_IGNORE): New.
2167 (watchpoint_check): Use it.
2168 (bpstat_check_watchpoint): Handle it.
2169 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
2170 conditions in a frame where it makes sense.
2171 (watch_command_1): Store the innermost block of the condition
2172 expression.
2173 (delete_breakpoint): Delete the watchpoint condition expression.
2174 * breakpoint.h (struct bp_location) <cond>: Update comment.
2175 (struct breakpoint): New field `cond_exp_valid_block'.
2176
af6b7be1
JB
21772010-03-09 Joel Brobecker <brobecker@adacore.com>
2178
2179 Adjust handling of Ada DIEs after dwarf2_physname patch.
2180 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
2181
60c5c021
CF
21822010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
2183 Pierre Muller <muller@ics.u-strasbg.fr>
2184
2185 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
2186 from/to posix/win32.
2187 (windows_make_so): Use non-Cygwin 1.7 specific function.
2188 (windows_create_inferior): Make sure that cygallargs points to
2189 original args in non Cygwin 1.7. case.
2190
60a1502a
MS
21912010-03-09 Michael Snyder <msnyder@vmware.com>
2192
2193 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
2194 after target_read_memory to get host byte order.
2195 (i386_process_record): Ditto.
2196
94af9270
KS
21972010-03-09 Keith Seitz <keiths@redhat.com>
2198
2199 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
2200 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
2201 print out const or volatile qualifiers, too.
2202 (c_type_print_args): Add parameters show_artificial and language.
2203 Skip artificial parameters when requested.
2204 Use the appropriate language printer.
2205 (c_type_print_varspec): Tell c_type_print_args to skip artificial
2206 parameters and pass language_c.
2207 * dwarf2read.c (die_list): New file global.
2208 (struct partial_die_info): Update comments for name field.
2209 (pdi_needs_namespace): Renamed to ...
2210 (die_needs_namespace): ... this. Rewrite.
2211 (dwarf2_linkage_name): Remove.
2212 (add_partial_symbol): Do not predicate the call to
2213 partial_die_full_name based on pdi_needs_namespace.
2214 Remove call to cp_check_possible_namespace_symbols and associated
2215 outdated comments.
2216 (guess_structure_name): Do not inspect child subprogram DIEs.
2217 (dwarf2_fullname): Update comments.
2218 Use die_needs_namespace to assist in computing the name.
2219 (read_func_scope): Use dwarf2_name to get the DIE's name.
2220 Use dwarf2_physname to get the "linkage name" of the DIE.
2221 (dwarf2_add_member_field): Use dwarf2_physname instead of
2222 dwarf2_linkage_name.
2223 (read_structure_type): For structs and classes, set TYPE_NAME, too.
2224 (determine_class): Remove.
2225 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
2226 except Ada.
2227 (new_symbol): Unconditionally call dwarf2_name.
2228 Compute the "linkage name" using dwarf2_physname.
2229 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
2230 When determining to scan for anonymous C++ namespaces, ignore
2231 the linkage name.
2232 (dwarf2_physname): New function.
2233 (dwarf2_full_name): Move content to new function and call
2234 that.
2235 (dwarf2_compute_name): "New" function.
2236 (_initialize_dwarf2_read): Initialize die_list.
2237 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
2238 physname.
2239 (gnu_v3_print_method_ptr): Use the physname for virtual methods
2240 without a demangled name.
2241 Print out type information for non-virtual methods.
c8d5aac9 2242 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 2243 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
2244 If we found a file symtab, re-evaluate whether the remainder is_quoted.
2245 (decode_compound): Stop consuming at an open parenthesis.
2246 Keep template parameters.
2247 Keep any overload information.
2248 Keep keywords like "const".
2249 Remove paren_pointer.
2250 Move is_quoted check from set_flags to here.
2251 Remove #if 0 code from 2000. Ten years is long enough.
2252 (find_method): Before comparing symbol names, canonicalize the string
2253 from the user.
2254 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
2255 (find_method_overload_end): New function.
2256 (set_flags): Remove.
c8d5aac9
L
2257 (decode_compound): Assume that parentheses are matched.
2258 It's a lot easier.
94af9270
KS
2259 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
2260 to cplus_demangle.
2261 * linespec.c (decode_line_1): Keep important keywords like
2262 "const" and "volatile".
2263 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
2264 * typeprint.h (c_type_print_args): Add declaration.
2265 * ui-file.c (do_ui_file_obsavestring): New function.
2266 (ui_file_obsavestring): New function.
2267 * ui-file.h (ui_file_obsavestring): Add declaration.
2268 * valops.c (find_overload_match): Resolve the object to
2269 a non-pointer type.
2270 If the object is a data member, search the object for the member
2271 and return with staticp set.
2272 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
2273 Do not attempt to extract a function name from non-function types.
2274 If the extracted function name and the original name are the same,
2275 we don't have a C++ method.
2276
8d95cc3b
PA
2277 From Jan Kratochvil <jan.kratochvil@redhat.com>:
2278 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
2279
2280 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
2281 and arguments from symbol lookups.
2282 * ax-gdb.c (gen_expr): Likewise.
2283 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
2284 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
2285 lookup_possible_namespace_symbol): Likewise.
2286 * cp-support.c (read_in_psymtabs): Likewise.
2287 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
2288 * language.h (la_lookup_symbol_nonlocal): Likewise.
2289 * scm-valprint.c (scm_inferior_print): Likewise.
2290 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
2291 * solib-svr.c (elf_lookup_lib): Likewise.
2292 * solib.c (show_auto_solib_add): Likewise.
2293 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
2294 * symmisc.c (maintenance_check_symtabs): Likewise.
2295 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
2296 lookup_symbol_aux_local, lookup_symbol_aux_block,
2297 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
2298 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
2299 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
2300 basic_lookup_transparent_type, find_main_psymtab,
2301 lookup_block_symbol): Likewise.
2302 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
2303 lookup_symbol_global, lookup_symbol_aux_block,
2304 lookup_symbol_partial_symbol, lookup_block_symbol,
2305 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
2306
9cb74f47
PM
23072010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
2308
2309 * python/python-internal.h: Include symtab.h.
2310
af6b7be1
JB
23112010-03-09 Joel Brobecker <brobecker@adacore.com>
2312 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
2313
2314 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
2315 * p-valprint.c (pascal_val_print): Remove undeed block and fix
2316 indentation.
2317
bad56014
TT
23182010-03-08 Tom Tromey <tromey@redhat.com>
2319
2320 * breakpoint.c (breakpoint_1): Add "QUIT".
2321
08105857
PA
23222010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2323 Pedro Alves <pedro@codesourcery.com>
2324
2325 * solib.c (solib_find): Replace extension if
2326 solib_symbols_extension is set in the target gdbarch.
2327 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2328 solib_symbols_extension to "sym".
2329 * gdbarch.sh (solib_symbols_extension): New variable.
2330 (pstring): New function.
2331 * gdbarch.h, gdbarch.c: Regenerate.
2332
7c953934
TT
23332010-03-08 Tom Tromey <tromey@redhat.com>
2334
2335 PR cli/9591:
2336 * NEWS: Update.
2337 * utils.c: Include main.h.
2338 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
2339 (defaulted_query): Use default answer if `batch_flag'.
2340 * main.h (batch_flag): Declare.
2341 * main.c (batch_flag): New global.
2342 (captured_main): Remove 'batch'. Update.
2343
bbd2783e
KB
23442010-03-08 Kevin Buettner <kevinb@redhat.com>
2345
2346 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
2347 and Kevin Buettner:
2348
2349 * remote-mips.c (rockhopper_ops): New target_ops struct.
2350 (MON_ROCKHOPPER): New mips_monitor_type.
2351 (read_hex_value): New function.
2352 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 2353 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
2354 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
2355 (rockhopper_open): New function.
2356 (mips_wait): Read the PC, FP and SP fields as strings. Use
2357 read_hex_value to parse them and mips_set_register to commit them.
2358 (mips_set_register): New function.
2359 (mips_fetch_registers): Do not cast register value to "unsigned"
2360 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
2361 (mips_store_registers): Use a 'T' packet to set registers when
2362 using MON_ROCKHOPPER.
2363 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
2364 and expect the total to be printed before the entry address.
2365 (_initialize_remote_mips): Initialize and add rockhopper_ops.
2366
566f3d17
KB
23672010-03-08 Kevin Buettner <kevinb@redhat.com>
2368
2369 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
2370 Change return value to int. Store value fetched in location
2371 addressed by `val'. Use function's return value as success
2372 or failure indicator. Adjust all callers.
2373
9c8ee2ab 23742010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
2375
2376 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
2377
7155de5a
HZ
23782010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 Hui Zhu <teawater@gmail.com>
2380
2381 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
2382 tmp_to_stopped_data_address.
2383 (record_open): Reset tmp_to_stopped_by_watchpoint and
2384 tmp_to_stopped_data_address.
2385 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
2386 to_stopped_data_address.
2387
580879fc
HZ
23882010-03-08 Hui Zhu <teawater@gmail.com>
2389
2390 * i386-tdep.c (i386_process_record): Initialize regnum.
2391
b0fcb67f
JK
23922010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
2395 Do not warn on ".gnu.liblist" and ".gnu.conflict".
2396
08597104
JB
23972010-03-08 Joel Brobecker <brobecker@adacore.com>
2398
2399 Memory error when reading wrong core file.
2400 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
2401 errors while reading the inferior memory, and return zero if
2402 an exception was raised.
2403
425b824a
MS
24042010-03-07 Michael Snyder <msnyder@vmware.com>
2405
ec6dbf37
MS
2406 * record.c (record_restore): Rename tmpu8 to rectype.
2407
648d0c8b
MS
2408 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
2409 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
2410
2411 (i386_record_push): Rename local tmpulongest to addr.
2412
2413 (i386_process_record): Rename local tmpulongest to addr.
2414
2415 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
2416 addr64.
955db0c0
MS
2417
2418 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 2419
10760264
JB
24202010-03-07 Joel Brobecker <brobecker@adacore.com>
2421
2422 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 2423 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 2424
b3c613f2
CF
24252010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
2426
2427 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2428 block. Define helper macros to reduce ifdefs in code.
2429 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2430 size. Call unadorned GetModuleFileNameEx rather than
2431 GetModuleFileNameEx*.
2432 (windows_make_so): Use __PMAX to denote maximum buffer size and
2433 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
2434 appropriate.
2435 (get_image_name): Use __PMAX to denote maximum buffer size.
2436 (handle_load_dll): Likewise.
2437 (windows_pid_to_exec_file): Likewise.
2438 (windows_create_inferior): Add many accommodations for older Cygwin and
2439 non-Cygwin.
2440 (bad_GetModuleFileNameExW): Control inclusion of this function based on
2441 __USEWIDE conditional.
2442 (bad_GetModuleFileNameExA): Likewise.
2443 (_initialize_loadable): Just use real function names without the dyn_
2444 part since they are defined earlier.
2445
f870a310
TT
24462010-03-05 Corinna Vinschen <vinschen@redhat.com>
2447 Tom Tromey <tromey@redhat.com>
2448
2449 * utils.c (host_char_to_target): Add 'gdbarch' argument.
2450 (parse_escape): Likewise.
2451 * python/py-utils.c (unicode_to_target_string): Update.
2452 (unicode_to_target_python_string): Update.
2453 (target_string_to_unicode): Update.
2454 * printcmd.c (printf_command): Update.
2455 * p-exp.y (yylex): Update.
2456 * objc-exp.y (yylex): Update.
2457 * mi/mi-parse.c: Include charset.h.
2458 (mi_parse_escape): New function.
2459 (mi_parse_argv): Use it.
2460 * jv-exp.y (yylex): Update.
2461 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2462 function.
2463 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2464 * gdbarch.sh (auto_charset, auto_wide_charset): New.
2465 * gdbarch.c: Rebuild.
2466 * gdbarch.h: Rebuild.
2467 * defs.h (parse_escape): Update.
2468 * cli/cli-setshow.c: Include arch-utils.h.
2469 (do_setshow_command): Update.
2470 * cli/cli-cmds.c (echo_command): Update.
2471 * charset.h (target_charset, target_wide_charset): Update.
2472 * charset.c: Include arch-utils.h.
2473 (target_charset_name): Default to "auto".
2474 (target_wide_charset_name): Likewise.
2475 (show_target_charset_name): Handle "auto".
2476 (show_target_wide_charset_name): Likewise.
2477 (be_le_arch): New global.
2478 (set_be_le_names): Add 'gdbarch' argument.
2479 (validate): Likewise. Don't call set_be_le_names.
2480 (set_charset_sfunc, set_host_charset_sfunc)
2481 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2482 Update.
2483 (target_charset): Add 'gdbarch' argument.
2484 (target_wide_charset): Likewise. Remove 'byte_order' argument.
2485 (auto_target_charset_name): New global.
2486 (default_auto_charset, default_auto_wide_charset): New functions.
2487 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
2488 for target charsets. Copy result of nl_langinfo. Use GetACP if
2489 USE_WIN32API.
2490 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2491 remove 'byte_order' argument. Update.
2492 (classify_type): Likewise.
2493 (c_emit_char): Update.
2494 (c_printchar): Update.
2495 (c_printstr): Update.
2496 (c_get_string): Update.
2497 (evaluate_subexp_c): Update.
2498 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2499 Declare.
2500 * python/python.c (gdbpy_target_charset): New function.
2501 (gdbpy_target_wide_charset): Likewise.
2502 (GdbMethods): Update.
2503 * NEWS: Update.
2504
4e7386b0
UW
25052010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2506
2507 * symfile.c (build_section_addr_info_from_objfile): Do not mask
2508 off high address bits.
2509
aab48ede
UW
25102010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2511
2512 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2513 address as UnsignedLongLong, not LongLong.
2514
8eeafb51 25152010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 2516 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
2517
2518 * remote-mips.c (gdbthread.h): Include.
2519 (remote_mips_ptid): Declare.
2520 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2521 (common_open): Set inferior_ptid, add it as an inferior, and
2522 as a thread too. Delete FIXME comment regarding start_remote().
2523 (mips_close): Invoke generic_mourn_inferior().
2524 (mips_kill): Make sure that target_mourn_inferior is invoked.
2525 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2526 it's now invoked from mips_close().
2527 (mips_load): Don't null out inferior_ptid. Don't call
2528 clear_symtab_users().
2529 (mips_thread_alive, mips_pid_to_str): New functions.
2530 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
2531 to_thread_alive and to_pid_to_str operations.
2532
ae411497
TT
25332010-03-04 Tom Tromey <tromey@redhat.com>
2534
2535 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2536 in DWARF 3 and later.
2537 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2538
0e0b460e
KS
25392010-03-04 Keith Seitz <keiths@redhat.com>
2540
2541 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2542 If the filename portion of the linespec was quoted, recheck the
2543 remainder for additional quoting.
2544 (locate_first_half): Skip over completer chars, too.
2545
1b93ff13
TT
25462010-03-04 Tom Tromey <tromey@redhat.com>
2547
2548 * printcmd.c (printf_command): Pass dummy argument to
2549 printf_filtered.
2550
fc36e839
DE
25512010-03-04 Doug Evans <dje@google.com>
2552
111f853c
DE
2553 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2554 unwound_fp.
2555
fc36e839
DE
2556 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2557
c7437ca6
PA
25582010-03-04 Pedro Alves <pedro@codesourcery.com>
2559
2560 * breakpoint.c (update_watchpoint): Create a sentinel location if
2561 the software watchpoint isn't watching any memory.
2562 (breakpoint_address_bits): Skip dummy software watchpoint locations.
2563
58dadb1b
PA
25642010-03-04 Pedro Alves <pedro@codesourcery.com>
2565
2566 * utils.c (fputs_maybe_filtered): Check if there's already a top
2567 level interpreter before dereferencing it. If there isn't one,
2568 don't paginate either.
2569
50e98be4
DJ
25702010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2571
2572 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2573 the state right when single stepping.
2574 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2575 Get the next PC along with the instruction state.
2576 (thumb_get_next_pc): Remove.
2577 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2578
2e3ceee9
HZ
25792010-03-04 Hui Zhu <teawater@gmail.com>
2580
2581 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2582
390a8aca
PA
25832010-03-03 Pedro Alves <pedro@codesourcery.com>
2584
2585 * utils.c (fputs_maybe_filtered): Always disable pagination if the
2586 top level interpreter is MI.
2587
9355b391
SS
25882010-03-03 Stan Shebs <stan@codesourcery.com>
2589
2590 * remote.c (remote_download_tracepoint): Iterate over locations.
2591 * tracepoint.c (validate_actionline): Ditto.
2592 (encode_actions): Add location argument.
2593 (trace_dump_command): Check all locations to see if stepping
2594 frame.
390a8aca 2595
8685c86f
L
25962010-03-03 H.J. Lu <hongjiu.lu@intel.com>
2597 Eli Zaretskii <eliz@gnu.org>
2598
2599 * NEWS: Add X86 general purpose registers section.
2600
e8f781e2
TT
26012010-03-03 Tom Tromey <tromey@redhat.com>
2602
2603 PR mi/11098:
2604 * varobj.c (install_new_value): Handle case where new print_value
2605 is NULL.
2606
a0e0ef55
TT
26072010-03-03 Dainis Jonitis <jonitis@gmail.com>
2608
2609 PR gdb/11345:
2610 * printcmd.c (printf_command): Print end of format string using
2611 printf_filtered.
2612
a58d7472
TT
26132010-03-02 Tom Tromey <tromey@redhat.com>
2614
2615 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2616 * defs.h (read_command_lines_1): Add missing 'void'.
2617 * cli/cli-script.c (recurse_read_control_structure): Add missing
2618 'void'.
2619 (read_next_line): Likewise.
2620 (read_command_lines_1): Likewise.
2621
ce50d78b
UW
26222010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2623
2624 * spu-tdep.c (spu_analyze_prologue): Track instruction to
2625 store backchain as part of prologue.
2626
7e9af34a
DJ
26272010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2628
2629 * progspace.c (update_address_spaces): Update inferior address spaces
2630 also.
2631
01637564
DE
26322010-03-02 Doug Evans <dje@google.com>
2633
2634 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2635 lowpc,highpc args to addrmap_set_empty.
2636
1ba53b71
L
26372010-03-02 H.J. Lu <hongjiu.lu@intel.com>
2638
2639 * amd64-tdep.c (amd64_byte_names): New.
2640 (amd64_word_names): Likewise.
2641 (amd64_dword_names): Likewise.
2642 (amd64_pseudo_register_name): Likewise.
2643 (amd64_pseudo_register_read): Likewise.
2644 (amd64_pseudo_register_write): Likewise.
2645 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2646 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
2647 set_gdbarch_pseudo_register_write and
2648 set_tdesc_pseudo_register_name. Don't call
2649 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
2650
2651 * i386-tdep.c (i386_num_mmx_regs): Removed.
2652 (i386_num_pseudo_regs): Likewise.
2653 (i386_byte_names): New.
2654 (i386_word_names): Likewise.
2655 (i386_byte_regnum_p): Likewise.
2656 (i386_word_regnum_p): Likewise.
2657 (i386_mmx_regnum_p): Updated.
2658 (i386_pseudo_register_name): Make it global. Handle byte and
2659 word pseudo-registers.
2660 (i386_pseudo_register_read): Likewise.
2661 (i386_pseudo_register_write): Likewise.
2662 (i386_pseudo_register_type): Handle byte, word and dword
2663 pseudo-registers
2664 (i386_register_reggroup_p): Don't include pseudo
2665 registers, except for MXX, in any register groups. Don't
2666 include pseudo byte, word, dword registers in general_reggroup.
2667 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2668 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
2669 pseudo-registers after word pseudo-registers. Call
2670 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2671
2672 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2673 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2674 eax_regnum.
2675 (i386_byte_regnum_p): New.
2676 (i386_word_regnum_p): Likewise.
2677 (i386_dword_regnum_p): Likewise.
2678 (i386_pseudo_register_name): Likewise.
2679 (i386_pseudo_register_read): Likewise.
2680 (i386_pseudo_register_write): Likewise.
2681
a6f5ef51
L
26822010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2683
2684 * target-descriptions.c (tdesc_type): Remove
2685 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2686 (tdesc_predefined_types): Likewise.
2687 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
2688 if flag name is empty.
2689 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2690
2691 * features/i386/32bit-core.xml: Define i386_eflags.
2692 * features/i386/64bit-core.xml: Likewise.
2693
2694 * features/i386/32bit-sse.xml: Define i386_mxcsr.
2695 * features/i386/64bit-sse.xml: Likewise.
2696
2697 * features/i386/amd64-linux.c: Regenerated.
2698 * features/i386/amd64.c: Likewise.
2699 * features/i386/i386-linux.c: Likewise.
2700 * features/i386/i386.c: Likewise.
2701
f5dff777
DJ
27022010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2703
2704 * gdbtypes.c (append_composite_type_field_raw): New.
2705 (append_composite_type_field_aligned): Use the new function.
2706 * gdbtypes.h (append_composite_type_field_raw): Declare.
2707 * target-descriptions.c (struct tdesc_type_field): Add start and end.
2708 (struct tdesc_type_flag): New type.
2709 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2710 kind. Add size to u.u. Add u.f for flags.
2711 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2712 (tdesc_free_type): Likewise.
2713 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2714 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2715 (tdesc_add_bitfield, tdesc_add_flag): New.
2716 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2717 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2718 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2719 current_type. Add current_type_size and current_type_is_flags.
2720 (tdesc_start_union): Clear the new fields.
2721 (tdesc_start_struct, tdesc_start_flags): New.
2722 (tdesc_start_field): Handle struct fields, including bitfields.
2723 (field_attributes): Make type optional. Add start and end.
2724 (union_children): Rename to struct_union_children.
2725 (union_attributes): Rename to struct_union_attributes. Add optional
2726 size.
2727 (flags_attributes): New.
2728 (feature_children): Add struct and flags.
2729 * features/gdb-target.dtd: Add flags and struct to features.
2730 Make field type optional. Add field start and end.
2731
90884b2b
L
27322010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2733
2734 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2735 (amd64_linux_read_description): Likewise.
2736 (_initialize_amd64_linux_nat): Set to_read_description to
2737 amd64_linux_read_description.
2738
2739 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2740 (amd64_linux_register_name): Removed.
2741 (amd64_linux_register_type): Likewise.
2742 (amd64_linux_core_read_description): New.
2743 (amd64_linux_init_abi): Set target description to
2744 tdesc_amd64_linux if needed. Support orig_rax in target
2745 description. Don't call set_gdbarch_register_name nor
2746 set_gdbarch_register_type. Call
2747 set_gdbarch_core_read_description.
2748 (_initialize_amd64_linux_tdep): Call
2749 initialize_tdesc_amd64_linux.
2750
2751 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2752
2753 * amd64-tdep.c: Include "features/i386/amd64.c".
2754 (amd64_register_names): Removed.
2755 (amd64_register_name): Likewise.
2756 (amd64_register_type): Likewise.
2757 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 2758 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
2759 set_gdbarch_register_name nor set_gdbarch_register_type.
2760 (_initialize_amd64_tdep): New.
2761
2762 * i386-linux-nat.c (i386_linux_read_description): New.
2763 (_initialize_i386_linux_nat): Set to_read_description to
2764 i386_linux_read_description.
2765
2766 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
2767 (i386_linux_register_name): Removed.
2768 (i386_linux_core_read_description): New.
2769 (i386_linux_read_description): Likewise.
2770 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
2771 Set target description to tdesc_i386_linux if needed. Support
2772 orig_eax. Set register_reggroup_p. Call
2773 set_gdbarch_core_read_description.
2774 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
2775
2776 * i386-linux-tdep.h (tdesc_i386_linux): New.
2777
2778 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
2779 with I387_NUM_REGS.
2780
2781 * i386-tdep.c: Include "features/i386/i386.c".
2782 (i386_register_names): Make it const.
2783 (i386_mmx_names): Likewise.
2784 (i386_num_register_names): Removed.
2785 (i386_register_name): Likewise.
2786 (i386_eflags_type): Likewise.
2787 (i386_mxcsr_type): Likewise.
2788 (i386_sse_type): Likewise.
2789 (i386_register_type): Likewise.
2790 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
2791 (i386_pseudo_register_name): New.
2792 (i386_pseudo_register_type): Likewise.
2793 (i386_mmx_type): Make it static.
2794 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
2795 I387_NUM_REGS. Set num_core_regs and register_names. Don't
2796 call set_gdbarch_register_name nor set_gdbarch_register_type.
2797 Set register_reggroup_p. Set target description to tdesc_i386
2798 if needed. Call set_tdesc_pseudo_register_type,
2799 set_tdesc_pseudo_register_name and tdesc_use_registers.
2800 (_initialize_i386_tdep): Call initialize_tdesc_i386.
2801 initialize_tdesc_x86_64.
2802
2803 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
2804 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
2805 register_names, tdesc and register_reggroup_p.
2806 (I386_NUM_FREGS): Removed.
2807 (i386_eflags_type): Likewise.
2808 (i386_mxcsr_type): Likewise.
2809 (i386_mmx_type): Likewise.
2810 (i386_sse_type): Likewise.
2811 (i386_register_name): Likewise.
2812 (i386_regnum): Add I386_MXCSR_REGNUM.
2813 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
2814
2815 * i387-tdep.h (I387_NUM_REGS): New.
2816
2817 * regformats/i386/i386-linux.dat: Generated.
2818 * regformats/i386/i386.dat: Likewise.
2819 * regformats/i386/amd64-linux.dat: Likewise.
2820 * regformats/i386/amd64.dat: Likewise.
2821
2822 * regformats/reg-i386-linux.dat: Removed.
2823 * regformats/reg-i386.dat: Likewise.
2824 * regformats/reg-x86-64-linux.dat: Likewise.
2825 * regformats/reg-x86-64.dat: Likewise.
2826
d0d0ab16
CV
28272010-03-01 Corinna Vinschen <vinschen@redhat.com>
2828
2829 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
2830 cygwin_conv_path API rather than the deprecated
2831 cygwin_conv_to_full_posix_path.
2832 * windows-nat.c:
2833 (GetModuleFileNameExA): Undefine for Cygwin.
2834 (GetModuleFileNameExW): Define for Cygwin.
2835 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
2836 Call GetModuleFileNameExW and convert path to POSIX using
2837 cygwin_conv_path.
2838 (windows_make_so): Always define p. Drop unused variable m.
2839 Don't use Win32 functions to check file existance, rather use
2840 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
2841 Use canonicalize_file_name to get full path.
2842 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
2843 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
2844 use correct target buffer size in call to WideCharToMultiByte.
2845 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
2846 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
2847 (windows_create_inferior): Convert all paths and arguments to wchar_t
2848 and use CreateProcessW on Cygwin.
2849 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
2850 (bad_GetModuleFileNameExA): Undefine for Cygwin.
2851 (bad_GetModuleFileNameExW): Define for Cygwin.
2852 (_initialize_loadable): Load GetModuleFileNameExW into
2853 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
2854
dc00d89f
PM
28552010-02-28 Phil Muldoon <pmuldoon@redhat.com>
2856
2857 PR python/11036
2858 * python/py-frame.c (frapy_read_var): Add block argument and logic
2859 to cope with user provided blocks.
2860
0e095b7e
JK
28612010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2862
2863 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
2864 New comment.
2865
2f9e05b4
CV
28662010-02-28 Corinna Vinschen <vinschen@redhat.com>
2867
2868 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
2869 (COMMON_OBS): ... to here since it's used unconditionally.
2870 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
2871 (SFILES): To here.
2872
eb195664
DD
28732010-02-26 David Daney <ddaney@caviumnetworks.com>
2874
2875 * mips-linux-tdep.c: Update struct sigframe comments.
2876 (SIGFRAME_CODE_OFFSET): Delete macro.
2877 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
2878 this_frame's sp.
2879 (mips_linux_n32n64_sigframe_init): Same.
2880
97b0f3e2
KB
28812010-02-26 Kevin Buettner <kevinb@redhat.com>
2882
2883 * remote-mips.c (mips_load): Don't use pseudo-register when
2884 invalidating regcache.
2885
4069ebbe
DJ
28862010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2887
2888 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
2889
05071a4d
PA
28902010-02-26 Pedro Alves <pedro@codesourcery.com>
2891
2892 * NEWS: Add "New targets" section, and mention ARM Symbian
2893 support.
2894
6063c216
UW
28952010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
2896
2897 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
2898 add ADDR_SIZE member.
2899 (allocate_piece_closure): Update.
2900 (copy_pieced_value_closure): Likewise.
2901 (dwarf2_evaluate_loc_desc): Likewise.
2902 (read_pieced_value): Use DWARF address size instead of
2903 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
2904
5107b149 29052010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 2906 Tom Tromey <tromey@redhat.com>
5107b149
PM
2907
2908 * python/py-type.c (typy_lookup_typename): Add in block argument.
2909 If provided restrict lookup to specified blocks.
2910 (gdbpy_lookup_type): Likewise.
2911 (typy_lookup_type): Likewise.
2912
78664fa3 29132010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 2914
78664fa3
PA
2915 Symbian config
2916
2917 gdb/
2918 * arm-symbian-tdep.c: New.
2919 * configure.tgt (arm*-*-symbianelf*): New target.
2920 (*-*-symbianelf*): New OS.
2921 * osabi.c (gdb_osabi_names): Add Symbian.
2922 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
2923 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
2924 (ALLDEPFILES): Add arm-symbian-tdep.c.
2925
eb73e134
DJ
29262010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2927
2928 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
2929
46ef47e5
PA
29302010-02-24 Pedro Alves <pedro@codesourcery.com>
2931
2932 * mi/mi-main.c (mi_cmd_execute): Fix typo.
2933
f3e9a817 29342010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 2935 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
2936 Thiago Jung Bauermann <bauerman@br.ibm.com>
2937
2938 * python/python.c (_initialize_python): Call
2939 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
2940 gdbpy_initialize_blocks.
2941 * python/python-internal.h: Declare struct symbol, block and
2942 symtab_and_line. Declare block_object_type and
2943 symbol_object_type
2944 (gdbpy_lookup_symbol gdbpy_block_for_pc)
2945 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
2946 (symbol_to_symbol_object, block_to_block_object)
2947 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
2948 (gdbpy_initialize_blocks ): Declare.
2949 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
2950 (frapy_select): Add methods.
2951 (frapy_read_var): Add symbol branch.
2952 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
2953 py-block.
2954 (SUBDIR_PYTHON_SRCS): Likewise.
2955 (py-symbol.o): New rule.
2956 (py-symtab.o): Likewise.
2957 (py-block.o): Likewise.
2958 * python/py-symbol.c: New file.
2959 * python/py-symtab.c: Likewise.
2960 * python/py-block.c: Likewise.
2961
24291992
PA
29622010-02-24 Pedro Alves <pedro@codesourcery.com>
2963
2964 PR gdb/11321
2965
2966 * inferior.h (prepare_for_detach): Declare.
2967 (struct inferior) <detaching>: New field.
2968 * infrun.c (prepare_for_detach): New.
2969 (handle_inferior_event) <random signal>: Don't stop if detaching.
2970 * target.c (target_detach): Call prepare_for_detach.
2971
fc1cf338
PA
29722010-02-24 Pedro Alves <pedro@codesourcery.com>
2973
2974 Per-process displaced stepping queue.
2975
2976 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
2977 (displaced_step_gdbarch, displaced_step_closure,
2978 (displaced_step_original, displaced_step_copy): Move globals to
2979 this...
2980 (struct displaced_step_inferior_state): ... new structure.
2981 (displaced_step_inferior_states): New global.
2982 (get_displaced_stepping_state, add_displaced_stepping_state)
2983 (remove_displaced_stepping_state, infrun_inferior_exit): New
2984 functions.
2985 (displaced_step_clear): Add displaced_step_inferior_state
2986 parameter, and adjust to handle it.
2987 (displaced_step_clear_cleanup): Parameter is now a
2988 displaced_step_inferior_state. Adjust.
2989 (displaced_step_prepare): Adjust.
2990 (displaced_step_fixup, displaced_step_fixup)
2991 (infrun_thread_ptid_changed, resume): Adjust.
2992 (init_wait_for_inferior): Don't call displaced_step_clear.
2993 (infrun_thread_stop_requested): Rewrite.
2994 (_initialize_infrun): Install infrun_inferior_exit as
2995 inferior_exit observer.
2996
0723dbf5
PA
29972010-02-24 Pedro Alves <pedro@codesourcery.com>
2998
2999 * inferior.h (ptid_match): Declare.
3000 * infrun.c (ptid_match): New.
3001 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
3002 (handle_notification): Add debug output.
3003 * linux-nat.c (ptid_match): Delete.
3004
09de9781
DM
30052010-02-24 David S. Miller <davem@davemloft.net>
3006
3007 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
3008 * syscalls/sparc-linux.xml: New.
3009 * syscalls/sparc64-linux.xml: New.
3010 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
3011 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
3012 (sparc32_linux_get_syscall_number): New function.
3013 (sparc32_linux_init_abi): Set syscall XML file name and hook up
3014 syscall number fetcher.
3015 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
3016 (sparc64_linux_get_syscall_number): New function.
3017 (sparc64_linux_init_abi): Set syscall XML file name and hook up
3018 syscall number fetcher.
3019
a79b8f6e
VP
30202010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3021
3022 Multiexec MI
3023
3024 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
3025 * inferior.c (add_inferior_silent): Notify inferior_added
3026 observer.
3027 (delete_inferior_1): Notify inferior_removed observer.
3028 (exit_inferior_1): Pass inferior, not pid, to observer.
3029 (inferior_appeared): Likewise.
3030 (add_inferior_with_spaces): New.
3031 (add_inferior_command): Use the above.
3032 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
3033 Declare.
3034
3035 * inflow.c (inflow_inferior_exit): Likewise.
3036 * jit.c (jit_inferior_exit_hook): Likewise.
3037
3038 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
3039 remove-inferior.
3040 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3041 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
3042 (report_initial_inferior): New.
3043 (mi_inferior_removed): Register the above. Make sure
3044 inferior_added observer is called on the first inferior.
3045 (mi_new_thread, mi_thread_exit): Thread group is now identified by
3046 inferior number, not pid.
3047 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
3048 affected.
3049 * mi/mi-main.c (current_context): New.
3050 (proceed_thread_callback): Use typed closure.
3051 Proceed everything if pid is 0. Most implementation split into
3052 (proceed_thread): ... this.
3053 (run_one_inferior): New.
3054 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
3055 Adjust for multiexec behaviour.
3056 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3057 (mi_cmd_execute): Handle the 'thread-group' option here.
3058 Do some extra checks.
3059 * mi-parse.c (mi_parse): Handle the --all and --thread-group
3060 options.
3061 * mi-parse.h (struct mi_parse): New fields all and thread_group.
3062
115d30f9
VP
30632010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3064
3065 Make -exec-run a proper MI commands.
3066
3067 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
3068 * mi/mi-cmds.c (mi_cmds): Adjust.
3069 * mi/mi-main.c (mi_cmd_exec_run): New.
3070
06cd862c
PA
30712010-02-24 Pedro Alves <pedro@codesourcery.com>
3072 Stan Shebs <stan@codesourcery.com>
3073
3074 * tracepoint.h (set_traceframe_number)
3075 (cleanup_restore_current_traceframe): Declare.
3076 * tracepoint.c (set_traceframe_number): New.
3077 (struct current_traceframe_cleanup): New.
3078 (do_restore_current_traceframe_cleanup)
3079 (restore_current_traceframe_cleanup_dtor)
3080 (make_cleanup_restore_current_traceframe): New.
3081 * infrun.c: Include tracepoint.h.
3082 (fetch_inferior_event): Switch out and in of tfind mode.
3083
ab92d69b
PA
30842010-02-24 Pedro Alves <pedro@codesourcery.com>
3085
3086 * breakpoint.c (breakpoint_init_inferior): Also delete
3087 bp_shlib_event breakpoints.
3088 * solib-frv.c (enable_break): Remove call to
3089 remove_solib_event_breakpoints.
3090 * solib-svr4.c (enable_break): Ditto.
3091 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
3092 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
3093 * solib-som.c (som_solib_create_inferior_hook): Ditto.
3094 * solib-spu.c (spu_enable_break): Ditto.
3095
e707a91d
PA
30962010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3097
3098 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
3099
cfce2ea2
PA
31002010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3101
3102 * varobj.c (varobj_update): Avoid non-constants in initializers.
3103
05566b3b
TT
31042010-02-23 Tom Tromey <tromey@redhat.com>
3105
3106 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
3107 handle big-endian values.
3108 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
3109
85d721b8
PA
31102010-02-22 Pedro Alves <pedro@codesourcery.com>
3111
3112 PR9605
3113
3114 gdb/
3115 * breakpoint.c (insert_bp_location): If inserting the read
3116 watchpoint failed, fallback to an access watchpoint.
3117 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
3118 if the value changed, if not watching the same memory for writes.
3119 (watchpoint_locations_match): Add comment.
3120 (update_global_location_list): Copy the location's watchpoint type.
3121 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
3122 handle read watchpoints here.
3123 (i386_insert_watchpoint): Read watchpoints aren't supported.
3124 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
3125 packets.
3126 * target.h (target_insert_watchpoint): Update description.
3127
48ea67a7
TT
31282010-02-19 Tom Tromey <tromey@redhat.com>
3129
3130 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
3131 * m2-typeprint.c (m2_print_type): Update.
3132 * gdbtypes.c (recursive_dump_type): Update.
3133 (copy_type_recursive): Update.
3134 * c-typeprint.c (c_type_print_varspec_prefix): Update.
3135 (c_type_print_base): Update.
3136 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
3137 Remove.
3138 (struct cplus_struct_type) <ntemplate_args>: Remove.
3139 <struct template_arg>: Remove.
3140 <is_dynamic>: Move earlier.
3141 (TYPE_TEMPLATE_ARGS): Remove.
3142 (TYPE_NTEMPLATE_ARGS): Remove.
3143 (TYPE_TEMPLATE_ARG): Remove.
3144
48e32051
TT
31452010-02-19 Tom Tromey <tromey@redhat.com>
3146
3147 PR c++/8693, PR c++/9496:
3148 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
3149 * c-exp.y (lex_one_token): Rename from yylex. Don't call
3150 write_dollar_variable. Don't try to classify NAME tokens.
3151 (token_and_value): New type.
3152 (token_fifo, popping, name_obstack): New globals.
3153 (classify_name): New function.
3154 (classify_inner_name): Likewise.
3155 (yylex): Likewise.
3156 (VARIABLE): Now has type sval.
3157 (exp : VARIABLE): Call write_dollar_variable.
3158 (qualified_name): Use TYPENAME, not typebase. Add production for
3159 multiple "::" instances.
3160 (variable): Use name_not_typename.
3161 (qualified_type): Remove.
3162 (typebase): Update.
3163
672d9c23
JK
31642010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3165
3166 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
3167 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
3168 found by bfd_get_section_by_name.
3169 * symfile.h (struct section_addr_info) <sectindex>: New comment.
3170
bfbf3774
JB
31712010-02-19 Joel Brobecker <brobecker@adacore.com>
3172
3173 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
3174 7.0 section" into "Changes in 7.1".
3175
6756b09b 31762010-02-19 Joel Brobecker <brobecker@adacore.com>
3177
3178 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
3179 * version.in: Bump version to 7.1.50.20100219-cvs.
3180
202b96c1
PA
31812010-02-18 Harald Koenig <H.Koenig@science-computing.de>
3182
3183 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
3184 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
3185
de2e5182
TT
31862010-02-17 Tom Tromey <tromey@redhat.com>
3187
3188 * NEWS: Add Python API Improvements section.
3189
7280022e
DJ
31902010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
3191
3192 * NEWS: Correct typo.
3193
6f451e5e
TT
31942010-02-17 Tom Tromey <tromey@redhat.com>
3195
3196 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
3197
012836ea
JK
31982010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 * symfile.c (build_section_addr_info_from_objfile): Include sections
3201 only if they are SEC_ALLOC or SEC_LOAD.
3202
d182d057
L
32032010-02-17 H.J. Lu <hongjiu.lu@intel.com>
3204
3205 PR shlibs/11293
3206 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
3207 of ULONGEST for address size.
3208
4eef138c
TT
32092010-02-17 Tom Tromey <tromey@redhat.com>
3210
3211 * NEWS: Add C++ improvements section.
3212
548a926a
UW
32132010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
3214
3215 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
3216 PyThreadState_Swap): Avoid "statement with no effect" warning.
3217
ad3a0e5b
JK
32182010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3219
3220 * solib-svr4.c (enable_break <target_auxv_search>): New variable
3221 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
3222
243e2c5d 32232010-02-17 Tristan Gingold <gingold@adacore.com>