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