Initialize prev_line.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
11763c18
TT
12010-07-06 Tom Tromey <tromey@redhat.com>
2
3 * configure, config.in: Rebuild.
4 * configure.ac (HAVE_LIBPYTHON2_7): New define.
5 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
6
a6cc4789
AS
72010-07-06 Andreas Schwab <schwab@linux-m68k.org>
8
9 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
10 "clear".
11
f9e9243a
UW
122010-07-06 Ken Werner <ken.werner@de.ibm.com>
13
14 * gdbtypes.h (floatformats_ieee_half): Add declaration.
15 * gdbtypes.c (floatformats_ieee_half): New variable.
16 * doublest.c (floatformat_from_length): Set format to
17 gdbarch_half_format if length matches.
18 * gdbarch.sh (half_bit): New architecture method.
19 (half_format): Likewise.
20 * gdbarch.h: Regenerate.
21 * gdbarch.c: Likewise.
22
4e5799b6
JK
232010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
24 Joel Brobecker <brobecker@adacore.com>
25
26 Fix re-run of PIE executable, PR shlibs/11776.
27 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
28 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
29
86e4bafc
JK
302010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
31 Joel Brobecker <brobecker@adacore.com>
32
33 * auxv.c (memory_xfer_auxv): Update attach comment.
34 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
35 svr4_relocate_main_executable.
36 (svr4_solib_create_inferior_hook): Make the call to
37 svr4_relocate_main_executable unconditional.
38
3cd07d20
JK
392010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
40 Joel Brobecker <brobecker@adacore.com>
41
42 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
43
0a1e94c7
JK
442010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
45 Joel Brobecker <brobecker@adacore.com>
46
47 Fix attaching to PIEs prelinked on the disk after the process was
48 started.
49 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
50 Verify it against bfd_get_arch_size. Try to match arbitrary
51 displacement for the phdrs comparison.
52
5387647f
TT
532010-07-02 Tom Tromey <tromey@redhat.com>
54
55 PR exp/11780:
56 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
57 value as optimized-out.
58
38b6c3b3
TJB
592010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
60 Thiago Jung Bauermann <bauerman@br.ibm.com>
61
62 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
63 represent?" question in comment. Change comment to a proper sentence.
64
a17ac5b0
TT
652010-07-02 Ken Werner <ken.werner@de.ibm.com>
66
67 * c-valprint.c (c_val_print): Fix printing of character vectors.
68
bddaafad
JK
692010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
70
71 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
72 create_breakpoint prototype.
73
d41c0fc8
PA
742010-07-01 Pedro Alves <pedro@codesourcery.com>
75
76 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
77 usefulness suggestion of multiple breakpoints at same location.
78
dc10affe
PA
792010-07-01 Pedro Alves <pedro@codesourcery.com>
80
81 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
82
cabe9ab6
PA
832010-07-01 Pedro Alves <pedro@codesourcery.com>
84
85 * dwarf2loc.c (locexpr_tracepoint_var_ref)
86 (loclist_tracepoint_var_ref): Handle optimized out values.
87
cce7e648
PA
882010-07-01 Pedro Alves <pedro@codesourcery.com>
89
90 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
91 unnecessary space in string.
92 * filesystem.c (_initialize_filesystem): Ditto.
93 * frame.c (_initialize_frame): Ditto.
94 * infcmd.c (step_once): Ditto.
95 * infrun.c (_initialize_infrun): Ditto.
96 * linux-nat.c (linux_child_follow_fork): Ditto.
97 * maint.c (maintenance_deprecate): Ditto.
98 * memattr.c (_initialize_mem): Ditto.
99 * mips-tdep.c (_initialize_mips_tdep): Ditto.
100 * monitor.c (monitor_open): Ditto.
101 * procfs.c (procfs_xfer_memory): Ditto.
102 * reverse.c (bookmarks_info): Ditto.
103 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
104 * stack.c (_initialize_stack): Ditto.
105 * tracepoint.c (_initialize_tracepoint): Ditto.
106 * xtensa-tdep.c (xtensa_supply_gregset,
107 xtensa_regset_from_core_section): Ditto.
108
b65c7efe
TT
1092010-07-01 Tom Tromey <tromey@redhat.com>
110
111 * value.h (struct lval_funcs) <check_any_valid>: Rename from
112 check_all_valid.
113 * value.c (value_entirely_optimized_out): Invert result. Update
114 for new function name.
115
0fb4aa4b
PA
1162010-07-01 Pedro Alves <pedro@codesourcery.com>
117
118 Static tracepoints support.
119
120 * NEWS: Mention new support for static tracepoints.
121 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
122 qXfer:statictrace:read.
123 (New features in the GDB remote stub, GDBserver): Mention static
124 tracepoints support using an UST based backend.
125 (New commands): Mention "info static-tracepoint-markers" and
126 "strace".
127 * breakpoint.c (is_marker_spec): New.
128 (is_tracepoint): Handle static tracepoints.
129 (validate_commands_for_breakpoint): Static tracepoints can't do
130 while-stepping.
131 (static_tracepoints_here): New.
132 (bpstat_what): Handle static tracepoints.
133 (print_one_breakpoint_location, allocate_bp_location, mention):
134 Ditto.
135 (create_breakpoint_sal): Ditto.
136 (decode_static_tracepoint_spec): New.
137 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
138 `type_wanted'. Adjust. Handle static tracepoint marker
139 locations.
140 (break_command_1): Adjust.
141 (update_static_tracepoint): New.
142 (update_breakpoint_locations): Handle static tracepoints.
143 (breakpoint_re_set_one): Handle static tracepoint marker
144 locations.
145 (disable_command, enable_command): Handle static tracepoints.
146 (trace_command, ftrace_command): Adjust.
147 (strace_command): New.
148 (create_tracepoint_from_upload): Adjust.
149 (save_breakpoints): Handle static tracepoints.
150 (_initialize_breakpoint): Install the "strace" command.
151 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
152 (struct breakpoint): New fields static_trace_marker_id and
153 static_trace_marker_id_idx.
154 (breakpoints_here_p): Declare.
155 (create_breakpoint): Adjust.
156 (static_tracepoints_here): Declare.
157 * remote.c (struct remote_state) <static_tracepoints>: New field.
158 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
159 (remote_static_tracepoint_marker_at): New.
160 (remote_static_tracepoint_markers_by_strid): New.
161 (remote_static_tracepoint_feature): New.
162 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
163 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
164 (remote_supports_static_tracepoints): New.
165 (remote_download_tracepoint): Download static tracepoints.
166 (init_remote_ops): Install remote_static_tracepoint_marker_at and
167 remote_static_tracepoint_markers_by_strid.
168 (_initialize_remote): Install set|show remote static-tracepoints,
169 and set|show remote read-sdata-object commands.
170 * target.c (update_current_target): Inherit and default
171 to_static_tracepoint_marker_at, and
172 to_static_tracepoint_markers_by_strid.
173 * target.h (static_tracepoint_marker): Forward declare.
174 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
175 (static_tracepoint_marker_p): New typedef.
176 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
177 (struct target_ops): New fields to_static_tracepoint_marker_at and
178 to_static_tracepoint_markers_by_strid.
179 (target_static_tracepoint_marker_at)
180 (target_static_tracepoint_markers_by_strid): New.
181 * tracepoint.c: Include source.h.
182 (validate_actionline): Handle $_sdata.
183 (struct collection_list): New field strace_data.
184 (add_static_trace_data): New.
185 (clear_collection_list): Clear strace_data.
186 (stringify_collection_list): Account for a possible static trace
187 data collection.
188 (encode_actions_1): Encode an $_sdata collection.
189 (parse_tracepoint_definition): Handle static tracepoints.
190 (parse_static_tracepoint_marker_definition): New.
191 (release_static_tracepoint_marker): New.
192 (print_one_static_tracepoint_marker): New.
193 (info_static_tracepoint_markers_command): New.
194 (sdata_make_value): New.
195 (_initialize_tracepoint): Create the $_sdata convenience variable.
196 Add the "info static-tracepoint-markers" command.
197 Mention $_sdata in the "collect" command's help output.
198 * tracepoint.h (struct static_tracepoint_marker): New.
199 (parse_static_tracepoint_marker_definition)
200 (release_static_tracepoint_marker): Declare.
201 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
202 * python/py-breakpoint.c (bppy_new): Adjust.
203
aac63f0f
JB
2042010-06-30 Joel Brobecker <brobecker@adacore.com>
205
206 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
207 including Python.h.
208
e68994a7
DE
2092010-06-29 Doug Evans <dje@google.com>
210
3863f96c
DE
211 PR gdb/11702
212 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
213 DW_AT_external is present.
214
254e6b9e
DE
215 PR gdb/11702
216 * NEWS: Add entry.
217 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
218 create a symbol for the field and record the value.
219 (new_symbol): Handle DW_TAG_member.
220 * gdbtypes.c (field_is_static): Remove FIXME.
221 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
222 only ignore LOC_CONST symbols that are enums.
223
6e70227d
DE
224 * dwarf2read.c: Remove trailing whitespace.
225
e68994a7
DE
226 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
227 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
228 (struct main_type, field loc): Delete dwarf_block.
229 (FIELD_DWARF_BLOCK): Delete.
230 (SET_FIELD_DWARF_BLOCK): Delete.
231 (TYPE_FIELD_DWARF_BLOCK): Delete.
232 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
233 Update.
234
a480d2f6
HZ
2352010-06-29 Hui Zhu <teawater@gmail.com>
236
237 * record.c (set_record_pic_cmdlist,
238 show_record_pic_cmdlist): New variables.
239 (set_record_pic_command,
240 show_record_pic_command): New functions.
241 (record_pic_function, record_pic_line, record_pic_enum,
242 set_record_pic_type, record_pic_hide_nofunction,
243 record_pic_hide_nosource, record_pic_hide_same): New variables.
244 (record_pic_fputs): New function.
245 (function_list, node_list, edge_list): New struct.
246 (function_list, node_list, edge_list): New variables.
247 (record_pic_cleanups, record_pic_node,
248 record_pic_edge, cmd_record_pic): New functions.
249 (_initialize_record): Add new commands for record pic.
250
a0d7a4ff
JK
2512010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
252
253 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
254 ALLOCATE_CPLUS_STRUCT_TYPE.
255
595939de
PM
2562010-06-28 Phil Muldoon <pmuldoon@redhat.com>
257 Tom Tromey <tromey@redhat.com>
258 Thiago Jung Bauermann <bauerman@br.ibm.com>
259
260 * value.c (pack_unsigned_long): New function.
261 (value_from_ulongest): New function.
262 * value.h (value_from_ulongest): Declare.
263 * python/python.c (_initialize_python): Call
264 gdbpy_initialize_thread and gdbpy_initialize_inferior.
265 * python/python-internal.h: Define thread_object.
266 (gdbpy_inferiors, gdbpy_selected_thread)
267 (frame_info_to_frame_object, create_thread_object)
268 (find_thread_object, find_inferior_object)
269 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
270 (gdbpy_is_value_object, get_addr_from_python): Declare.
271 * python/py-value.c (builtin_type_upylong): Define.
272 (convert_value_from_python): Add logic for ulongest.
273 (gdbpy_is_value_object): New function.
274 * python/py-utils.c (get_addr_from_python): New function.
275 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
276 (gdbpy_selected_frame): Use PyObject over frame_info.
277 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
278 py-infthread.
279 (SUBDIR_PYTHON_SRCS): Likewise.
280 (py-inferior.o): New Rule.
281 (py-infthread.o): New Rule.
282 * python/py-inferior.c: New File.
283 * python/py-infthread.c: New File.
284
98751a41
JK
2852010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
286
287 * c-typeprint.c (c_type_print_base): For no fields check include also
288 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
289 * dwarf2read.c (struct typedef_field_list)
290 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
291 (dwarf2_add_typedef): New.
292 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
293 Copy also FI.TYPEDEF_FIELD_LIST.
294 * gdbtypes.h (struct typedef_field)
295 (struct cplus_struct_type) <typedef_field, typedef_field_count>
296 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
297 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
298
41f62f39
JK
2992010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
300
301 * cp-namespace.c (cp_lookup_nested_type): New variable
302 concatenated_name. Turn the current return condition into a reverse
303 one. Call also lookup_static_symbol_aux on the constructed qualified
304 name.
305 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
306 other files into a called ...
307 (lookup_static_symbol_aux): ... new function here.
308 * symtab.h (lookup_static_symbol_aux): New prototype.
309 * valops.c (value_maybe_namespace_elt): Call also
310 lookup_static_symbol_aux if we failed otherwise.
311
af53d231
JK
3122010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
313
314 Fix PR c++/11703 and PR gdb/1448.
315 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
316 FIRST_ITER check.
317
9655fd1a
JK
3182010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
319
320 Fix modification of cplus_struct_default.
321 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
322 Call ALLOCATE_CPLUS_STRUCT_TYPE.
323 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
324
9279c692
JB
3252010-06-28 Joel Brobecker <brobecker@adacore.com>
326
327 * NEWS: Add entry announcing the python directory.
328
d3f41bb1
TT
3292010-06-28 Tom Tromey <tromey@redhat.com>
330
331 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
332
23e7acfb
DE
3332010-06-28 Doug Evans <dje@google.com>
334
335 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
336 All callers updated.
337
6036c742
JK
3382010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
339
340 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
341 obstack_begin after each obstack_free.
342
9f18a3b3
DE
3432010-06-27 Doug Evans <dje@google.com>
344
1596cb5d
DE
345 * value.c (value_static_field): Use `switch' instead of `if'.
346 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
347
9f18a3b3
DE
348 * valops.c (search_struct_field): Fix typo in error message.
349
43dabe42
UW
3502010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
351
352 * dwarf2expr.c (execute_stack_op): Place preprocessor
353 directives at the start of the source line.
354
0f3bb72e
PH
3552010-06-25 Paul Hilfinger <hilfinger@adacore.com>
356
6036c742
JK
357 * defs.h (make_command_stats_cleanup): Declare.
358 (set_display_time): Declare.
359 (set_display_space): Declare.
360 * event-top.c (command_handler): Use make_command_stats_cleanup.
361 * main.c (display_time, display_space): Move definitions to utils.c.
362 (captured_main): Use make_command_stats_cleanup to get start-up
363 statistics.
364 Use set_display_time and set_display_space for processing OPT_STATISTICS
365 case.
366 * maint.c (maintenance_time_display): Use set_display_time.
367 (maintenance_space_display): Use set_display_space.
368 * top.c (execute_command): Remove obsolete 'maint time' code.
369 (command_loop): Use make_command_stats_cleanup.
370 * utils.c (struct cmd_stats): Structure for storing initial time
371 and space usage.
372 (display_time, display_space): Move definitions here from utils.c.
373 (set_display_time): New function.
374 (set_display_space): New function.
375 (make_command_stats_cleanup): New function.
376 (report_command_stats): New auxiliary function for
377 make_command_stats_cleanup.
0f3bb72e 378
070c8028
UW
3792010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
380
381 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
382 hosts where CORE_ADDR is long long.
383
bc9f0842
TT
3842010-06-25 Tom Tromey <tromey@redhat.com>
385
386 PR python/10808:
387 * python/python.c (execute_gdb_command): Add keywords. Accept
388 "to_string" argument.
389 (struct restore_ui_file_closure): New.
390 (restore_ui_file): New function.
391 (make_cleanup_restore_ui_file): Likewise.
392 (GdbMethods) <execute>: Update.
393
c0cc4c83
UW
3942010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
395
396 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
397 during inferior call stack frame setup.
398
f1d8ee66
UW
3992010-06-25 Ken Werner <ken.werner@de.ibm.com>
400
401 * solib-spu.c: Include "exception.h".
402 (ocl_program_data_key): New variable.
403 (append_ocl_sos): New function.
404 (ocl_enable_break): Likewise.
405 (spu_current_sos): Call append_ocl_sos.
406 (spu_solib_loaded): Call ocl_enable_break.
407 (_initialize_spu_solib): Register ocl_program_data_key.
408
19c0c0f8
UW
4092010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
410
411 * cp-support.c (reset_directive_searched): New function.
412 (make_symbol_overload_list_using): Prevent recursive calls.
413
0f6a939d
PM
4142010-06-25 Phil Muldoon <pmuldoon@redhat.com>
415
416 * printcmd.c (print_variable_and_value): Print error message on
417 caught exception.
418
f2c7657e
UW
4192010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
420
421 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
422 of stack values.
423 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
424 "value" member.
425 (dwarf_expr_push): Change input type to ULONGEST.
426 (dwarf_expr_fetch): Change return type to ULONGEST.
427 (dwarf_expr_fetch_address): Add prototype.
428 (dwarf2_read_address): Remove prototype.
429 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
430 Truncate stack values to ctx->addr_size bytes.
431 (dwarf_expr_fetch): Change return value to ULONGEST.
432 (dwarf_expr_fetch_address): New function.
433 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
434 when appropriate. Update for struct dwarf_expr_piece changes.
435 (dwarf2_read_address): Remove.
436 (unsigned_address_type): Remove.
437 (signed_address_type): Remove.
438 (execute_stack_op): Use dwarf_expr_fetch_address instead of
439 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
440 values. Perform operations on ULONGEST instead of on GDB values,
441 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
442 values and DW_OP_deref results as unsigned integers.
443 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
444 changes.
445 (write_pieced_value): Likewise.
446 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
447 dwarf_expr_fetch when appropriate.
448 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
449 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
450 instead of dwarf_expr_fetch when appropriate.
451
b1d61bc9
PM
4522010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
453
454 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
455
b14285f6
JB
4562010-06-24 Joel Brobecker <brobecker@adacore.com>
457
458 * python/python.c (_initialize_python): Add new "constant"
459 PYTHONDIR in gdb module. Insert this path at the head of
460 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
461 exec its __init__.py script if it exists in that directory.
462
fd60dc69
KB
4632010-06-24 Kevin Buettner <kevinb@redhat.com>
464
465 * rx-tdep.c (RX_ACC_REGNUM): Define.
466 (RX_NUM_REGS): Redefine to 26.
467 (rx_register_name): Add register "acc". Change order of several
468 registers. Change name of "vct" register to "fintv" to match RX
469 documentation.
470 (rx_register_type): Add case for RX_ACC_REGNUM.
471
18430289
TT
4722010-06-24 Tom Tromey <tromey@redhat.com>
473
474 * psymtab.c (lookup_partial_symbol): Mark definition as static.
475
40618926
JK
4762010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
477 Tom Tromey <tromey@redhat.com>
478
479 Fix GDB startup on readonly filesystem.
480 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
481
628fe4e4
JK
4822010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
483 Pedro Alves <pedro@codesourcery.com>
484
485 Fix PR 9436.
486 * breakpoint.c (handle_jit_event): New function.
487 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
488 jit, err, table and bs_class. New variables shlib_event, jit_event,
489 this_action and bptype. Change bs_class assignments to this_action
490 assignments. new unhandled bptype internal error. Move here
491 shlib_event and jit_event handling from handle_inferior_event.
492 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
493 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
494 BPSTAT_WHAT_CHECK_JIT.
495 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
496 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
497 (handle_inferior_event): Reinitialize frame and gdbarch after
498 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
499 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
500 gdbarch when frame gets reinitialized.
501
f1421989
HZ
5022010-06-24 Hui Zhu <teawater@gmail.com>
503
504 * printcmd.c (ui_printf): New function.
505 (printf_command): Call ui_printf.
506 (_initialize_printcmd): New command "eval".
507
d03285ec
UW
5082010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
509
510 * infrun.c (handle_inferior_event): Handle presence of single-step
511 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
512 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
513 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
514 * breakpoint.c (detach_single_step_breakpoints): New function.
515 (detach_breakpoints): Call it.
516 (cancel_single_step_breakpoints): New function.
517 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
518
519 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
520 (spu_gdbarch_init): Install it.
521
38f6b338
JK
5222010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
523
524 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
525 * configure: Regenerate.
526
bb08c432
HZ
5272010-06-22 Hui Zhu <teawater@gmail.com>
528
529 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
530 (i386_process_record): Ditto.
531 * record.c (record_memory_query): New variable.
532 (_initialize_record): New command "set record memory-query".
533 * record.h (record_memory_query): New extern.
534
b55078be
DE
5352010-06-21 Doug Evans <dje@google.com>
536
537 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
538 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
539 (i386_syscall_p): Change type of lengthp to int.
540 (i386_displaced_step_fixup): Handle kernels that run one past a
541 syscall insn.
542 * i386-linux-tdep.c (i386_linux_init_abi): Use
543 i386_displaced_step_copy_insn instead of
544 simple_displaced_step_copy_insn.
545
75079b2b
TT
5462010-06-21 Tom Tromey <tromey@redhat.com>
547
548 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
549 (dwarf_type_encoding_name): Likewise.
550
b00fdb78
TT
5512010-06-21 Tom Tromey <tromey@redhat.com>
552
553 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
554 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
555 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
556 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
557 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
558 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
559 * dwarf2read.c (tag_type_to_type): Create a new error type on
560 failure.
561 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
562 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
563
84951ab5
MS
5642010-06-21 Michael Snyder <msnyder@vmware.com>
565
566 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
567 not add_abbrev_prefix_cmd, for "enable breakpoints".
568
d4a087c7
UW
5692010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
570
571 * dwarf2loc.c (find_location_expression): Add relocation offset
572 to base-address-selection entry base addresses. Read addresses
573 (and offsets) as signed/unsigned integers, depending on the
574 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
575 (loclist_describe_location): Likewise.
576 (disassemble_dwarf_expression): Read DW_OP_addr operand as
577 unsigned integer. Do not call dwarf2_read_address.
578 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
579
13def385
UW
5802010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
581
582 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
583 value instead of hard-coded SPU_LS_SIZE.
584 (spu_software_single_step): Likewise.
585 * spu-tdep.h (SPU_LS_SIZE): Remove.
586
d2ed6730
UW
5872010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
588
589 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
590 limit on local store memory accesses.
591 * spu-linux-nat.c (spu_xfer_partial): Likewise.
592 * spu-tdep.c (spu_lslr): Remove.
593 (spu_pointer_to_address): Do not truncate addresses.
594 (spu_integer_to_address): Likewise.
595 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
596 * spu-tdep.h: Add comments.
597 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
598 (SPU_OVERLAY_LMA): Define.
599
6aed2dbc
SS
6002010-06-18 Stan Shebs <stan@codesourcery.com>
601
a61408f8
SS
602 * osdata.c (get_osdata): Warn separately if target does not report
603 type list.
604 (info_osdata_command): Allow empty type, report error if target
605 does not return available types of OS data.
606 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
607 types if no annex supplied.
608
6aed2dbc
SS
609 * thread.c (thread_id_make_value): Make a value representing the
610 current thread.
611 (_initialize_thread): Create $_thread.
612
ec61707d
JB
6132010-06-17 Joel Brobecker <brobecker@adacore.com>
614
615 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
616 last local variable declaration. No real code change.
617
60606b2c
TT
6182010-06-17 Tom Tromey <tromey@redhat.com>
619
620 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
621 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
622 temporary obstack.
623
65d79d4b
SDJ
6242010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
625 Jan Kratochvil <jan.kratochvil@redhat.com>
626
627 * breakpoint.c: Include parser-defs.h.
628 (watchpoint_exp_is_const): New function.
629 (watch_command_1): Call watchpoint_exp_is_const to check
630 if the expression is constant.
631
0407b3f1
AS
6322010-06-15 Andreas Schwab <schwab@linux-m68k.org>
633
634 * configure.ac: Check for RDYNAMIC also for cross builds.
635 * configure: Regenerate.
636
98d64339
PA
6372010-06-15 Pedro Alves <pedro@codesourcery.com>
638
639 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
640 (SFILES): Remove solib-null.c, add solib-target.c.
641 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
642 (ALLDEPFILES): Remove solib-target.c.
643 * solib-target.c (_initialize_solib_target): Set
644 current_target_so_ops to solib_target_so_ops if not already set.
645 * solib-null.c: Delete.
646
6a271cae
PA
6472010-06-14 Pedro Alves <pedro@codesourcery.com>
648
649 * NEWS: Mention GDBserver's JIT compilation of tracepoint
650 bytecode.
651
1e9beacb
UW
6522010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
653
654 * cp-valprint.c (cp_print_static_field): Members of
655 dont_print_stat_array_obstack are of type "struct type *".
656 (_initialize_cp_valprint): Likewise.
657
21a176fb
UW
6582010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
659
660 * frame.c (frame_register_unwind): Do not access contents
661 of "optimized out" unwound register value.
662
25b524e8
JK
6632010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 * ada-lang.h (ada_print_type): Make varstring const.
666 * ada-typeprint.c (print_func_type): Make name const.
667 (ada_print_type): Make varstring const.
668 * c-lang.h (c_print_type): Make varstring const.
669 * c-typeprint.c (c_print_type): Likewise.
670 * f-lang.h (f_print_type): Likewise.
671 * f-typeprint.c (f_print_type): Likewise.
672 * jv-lang.h (java_print_type): Likewise.
673 * jv-typeprint.c (java_print_type): Likewise.
674 * language.c (unk_lang_print_type): Likewise.
675 * language.h (struct language_defn) <la_print_type>: Likewise.
676 * m2-lang.h (m2_print_type): Likewise.
677 * m2-typeprint.c (m2_print_type): Likewise.
678 * p-lang.h (pascal_print_type): Likewise.
679 * p-typeprint.c (pascal_print_type): Likewise.
680
d914c394
SS
6812010-06-11 Stan Shebs <stan@codesourcery.com>
682
683 Add per-operation permission flags.
684
685 * target.h (struct target_ops): New method to_set_permissions.
686 (target_set_permissions): New macro.
687 (target_insert_breakpoint): Change macro to function.
688 (target_remove_breakpoint): Ditto.
689 (target_stop): Ditto.
690 (may_write_registers): Declare.
691 (may_write_memory): Declare.
692 (may_insert_breakpoints): Declare.
693 (may_insert_tracepoints): Declare.
694 (may_insert_fast_tracepoints): Declare.
695 (may_stop): Declare.
696 * target.c (may_write_registers, may_write_registers_1): New globals.
697 (may_write_memory, may_write_memory_1): New globals.
698 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
699 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
700 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
701 globals.
702 (may_stop, may_stop_1): New global.
703 (target_xfer_partial): Test for write permission.
704 (target_store_registers): Ditto.
705 (target_insert_breakpoint): New function.
706 (target_remove_breakpoint): New function.
707 (target_stop): New function.
708 (_initialize_targets): Add new set/show variables.
709 (set_write_memory_permission): New function.
710 (update_target_permissions): New function.
711 (set_target_permissions): New function.
712 (update_current_target): Default to_set_permissions.
713 (_initialize_targets): Use new globals and setter function.
714 * tracepoint.c (start_tracing): Test for permission.
715 * inferior.h (update_observer_mode): Declare.
716 * infrun.c (non_stop_1): Define earlier.
717 (observer_mode, observer_mode_1): New globals.
718 (set_observer_mode, show_observer_mode): New functions.
719 (update_observer_mode): New function.
720 (_initialize_infrun): Define "set observer" command.
721 * remote.c (PACKET_QAllow): New optional packet.
722 (remote_protocol_features): Add QAllow.
723 (remote_set_permissions): New function.
724 (remote_start_remote): Call it.
725 (init_remote_ops): Add it to target vector.
726 (_initialize_remote): Add config command for QAllow.
727
aec5aa8b
TT
7282010-06-11 Tom Tromey <tromey@redhat.com>
729
730 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
731 DW_AT_vtable_elem_location even when GCC extension is seen.
732
0e03807e
TT
7332010-06-11 Tom Tromey <tromey@redhat.com>
734
735 PR gdb/9977, PR exp/11636:
736 * value.h (value_offset): Update.
737 (struct lval_funcs) <check_validity>: New field.
738 <copy_closure>: Make argument const.
739 (value_computed_closure): Update.
740 (value_contents_for_printing): Declare.
741 (value_bits_valid): Likewise.
742 (val_print): Likewise.
743 (set_value_component_location): Update.
744 (value_entirely_optimized_out): Declare.
745 * value.c (value_offset): Argument now const.
746 (require_not_optimized_out): New function.
747 (value_contents_for_printing): New function.
748 (value_contents_all): Call require_not_optimized_out.
749 (value_contents): Likewise.
750 (value_bits_valid): New function.
751 (value_computed_closure): Argument now const.
752 (set_value_component_location): Make 'whole' argument const.
753 (value_entirely_optimized_out): New function.
754 (value_bitsize): Argument now 'const'.
755 (value_bitpos): Likewise.
756 (value_type): Likewise.
757 * valprint.h (val_print_array_elements): Update.
758 * valprint.c (val_print): Add 'val' argument. Use
759 valprint_check_validity.
760 (valprint_check_validity): New function.
761 (value_check_printable): Use value_entirely_optimized_out.
762 (common_val_print): Update.
763 (value_print): Likewise.
764 (val_print_array_elements): Add 'val' argument.
765 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
766 value_bits_valid. Reinit frame cache for lval_computed.
767 * sh64-tdep.c (sh64_do_register): Update.
768 * scm-valprint.c (scm_val_print): Add 'val' argument.
769 * scm-lang.h (scm_val_print): Update.
770 * python/python.h (apply_val_pretty_printer): Update.
771 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
772 argument. Call set_value_component_location.
773 * printcmd.c (print_scalar_formatted): Update.
774 * p-valprint.c (pascal_val_print): Add 'val' argument.
775 (pascal_object_print_value_fields): Likewise.
776 (pascal_object_print_value): Likewise.
777 (pascal_object_print_static_field): Update.
778 * p-lang.h (pascal_val_print): Update.
779 (pascal_object_print_value_fields): Update.
780 * mt-tdep.c (mt_registers_info): Update.
781 * mi/mi-main.c (get_register): Update.
782 (mi_cmd_data_evaluate_expression): Use common_val_print.
783 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
784 (m2_print_unbounded_array): Likewise.
785 (m2_val_print): Likewise.
786 * m2-lang.h (m2_val_print): Update.
787 * language.h (struct language_defn) <la_val_print>: Add 'val'
788 argument.
789 (LA_VAL_PRINT): Likewise.
790 * language.c (unk_lang_val_print): Add 'val' argument.
791 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
792 (java_val_print): Likewise.
793 * jv-lang.h (java_val_print): Add 'val' argument.
794 * infcmd.c (default_print_registers_info): Update.
795 * f-valprint.c (f77_print_array_1): Add 'val' argument.
796 (f77_print_array): Likewise.
797 (f_val_print): Likewise.
798 * f-lang.h (f_val_print): Add 'val' argument.
799 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
800 value_bitpos.
801 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
802 set_value_optimized_out.
803 (write_pieced_value): Use value_bitsize and value_bitpos.
804 <default>: Don't exit loop.
805 (check_pieced_value_validity): New function.
806 (pieced_value_funcs): Reference check_pieced_value_validity,
807 check_pieced_value_invalid.
808 (copy_pieced_value_closure): Update.
809 (check_pieced_value_bits): New function.
810 (check_pieced_value_invalid): New function.
811 * d-valprint.c (dynamic_array_type): Add 'val' argument.
812 (d_val_print): Likewise.
813 * d-lang.h (d_val_print): Update.
814 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
815 (cp_print_value_fields_rtti): Likewise.
816 (cp_print_value): Likewise.
817 (cp_print_static_field): Update.
818 * c-valprint.c (c_val_print): Add 'val' argument.
819 (c_value_print): Update.
820 * c-lang.h (c_val_print): Update.
821 (cp_print_value_fields): Likewise.
822 (cp_print_value_fields_rtti): Likewise.
823 * ada-valprint.c (struct ada_val_print_args): Remove.
824 (val_print_packed_array_elements): Add 'val' argument.
825 (ada_val_print): Likewise. Rewrite.
826 (ada_val_print_stub): Remove.
827 (ada_val_print_array): Add 'val' argument.
828 (ada_val_print_1): Likewise.
829 (print_variant_part): Likewise.
830 (ada_value_print): Update.
831 (print_record): Add 'val' argument.
832 (print_field_values): Likewise.
833 * ada-lang.h (ada_val_print): Update.
834
3cf03773
TT
8352010-06-11 Tom Tromey <tromey@redhat.com>
836
837 * vec.h (VEC_cleanup): New macro.
838 (DEF_VEC_ALLOC_FUNC_I): Update.
839 (DEF_VEC_ALLOC_FUNC_P): Likewise.
840 (DEF_VEC_ALLOC_FUNC_O): Likewise.
841 * dwarf2loc.c (struct axs_var_loc): Remove.
842 (unimplemented): New function.
843 (translate_register): Likewise.
844 (access_memory): Likewise.
845 (compile_dwarf_to_ax): Likewise.
846 (dwarf2_tracepoint_var_loc): Remove.
847 (dwarf2_tracepoint_var_access): Likewise.
848 (dwarf2_tracepoint_var_ref): Likewise.
849 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
850 (loclist_tracepoint_var_ref): Likewise.
851 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
852 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
853 require_composition. No longer static.
854 (execute_stack_op): Update.
855 * ax-gdb.h (trace_kludge): Declare.
856
2bdf28a0
JK
8572010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
858
859 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
860 (should_be_inserted): Return zero also on NULL OWNER.
861 (breakpoint_program_space_exit): New OWNER comment.
862 (insert_breakpoint_locations): Extend comment for OWNER.
863 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
864 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
865 New OWNER comment.
866 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
867 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
868 (bpstat_check_location): New assert on OWNER.
869 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
870 and B initializations to the code block. New assert on them.
871 (print_one_breakpoint_location): New OWNER comment.
872 (watchpoint_locations_match): Assert on OWNER.
873 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
874 initializations to the code block. New assert on OWNER.
875 (set_breakpoint_location_function): New assert on OWNER.
876 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
877 (bp_location_compare, update_global_location_list)
878 (update_global_location_list): New OWNER comment.
879
5b9a19af
UW
8802010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
881
882 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
883
669211f5
UW
8842010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
885
886 * config/nm-linux.h (struct target_ops): Remove forward declaration.
887 (lin_thread_get_thread_signals): Remove prototype.
888 (GET_THREAD_SIGNALS): Remove.
889 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
890 * linux-thread-db.c (check_thread_signals): Directly call
891 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
892
b7a8b4ef
UW
8932010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
894
895 * gregset.h (GDB_FPXREGSET_T): Remove.
896 (gdb_fpxregset_t): Likewise.
897 (supply_fpxregset): Remove prototype.
898 (fill_fpxregset): Likewise.
899 * i386-linux-nat.c (supply_fpxregset): Remove.
900 (fill_fpxregset): Likewise.
901 (fetch_fpxregs): Inline supply_fpxregset call.
902 (store_fpxregs): Inline fill_fpxregset call.
903
904 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
905 * config/i386/nm-linux.h: Remove file.
906
82892036
MS
9072010-06-09 Michael Snyder <msnyder@vmware.com>
908
909 * target.c (update_current_target): Fix spelling error in comment.
910 (target_mourn_inferior): Fix spelling error in error message.
911
5ddb52fa
PH
9122010-06-08 Paul Hilfinger <hilfingr@adacore.com>
913
914 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
915 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
916
0f2caa1b
MS
9172010-06-08 Michael Snyder <msnyder@vmware.com>
918
919 * remote.c (remote_close): Set inferior_ptid to null_ptid.
920
3bebe2f2
JK
9212010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 * configure.ac <"${have_libpython}" != no>: New workaround of
924 python#4434.
925 * configure: Regenerate.
926
eaaffdf4
HZ
9272010-06-08 Hui Zhu <teawater@gmail.com>
928
929 * record.c (record_wait): Move signal out of replay code.
930
5c631832
JK
9312010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
932
933 Fix PR 10640.
934 * dwarf2-frame.c (no_dwarf_call): New function.
935 (execute_stack_op): Set CTX->DWARF_CALL.
936 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
937 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
938 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
939 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
940 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
941 (needs_frame_dwarf_call): New function.
942 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
943 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
944 Update the comment. Move variables die, offset and error call to ...
945 (follow_die_ref): ... a new function.
946 (dwarf2_fetch_die_location_block): New function.
947 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
948
17ea53c3
JK
9492010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
950
951 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
952 (dwarf_expr_tls_address): Use per_cu instead of objfile.
953 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
954 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
955 this change.
956 (struct needs_frame_baton): New field per_cu.
957 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
958 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
959
245040d7
SW
9602010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
961
962 * cp-support.c (make_symbol_overload_list_namespace): Only search
963 static and global blocks.
964 (make_symbol_overload_list_block): New function.
965 (make_symbol_overload_list): Separate namespace search from block
966 search.
967 (make_symbol_overload_list_qualified): Use
968 make_symbol_overload_list_block.
969
4c3376c8
SW
9702010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
971
972 * value.h: Created oload_search_type enum.
973 (find_overload_match): Use oload_search_type enum.
974 * valops.c (find_overload_match): Support combined member and
975 non-member search.
976 * eval.c (evaluate_subexp_standard): Calls to
977 find_overload_match now use oload_search_type enum.
978 (oload_method_static): Verify index is a proper value.
979 * valarith.c (value_user_defined_cpp_op): Search for and handle
980 both member and non-member operators.
981 (value_user_defined_cpp_op): New function.
982 (value_user_defined_op): New function.
983 (value_x_unop): Use value_user_defined_op.
984 (value_x_binop): Ditto.
985 * cp-support.c (make_symbol_overload_list_using): Added block
986 iteration.
987 Add check for namespace aliases and imported declarations.
988
ee55da67
JK
9892010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 * breakpoint.h (owner): Extend the comment.
992
1a2ab13a
JK
9932010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
994
995 Clear stale specific bp_location from former whole breakpoint.
996 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
997 code ...
998 (free_bp_location): ... here. Rename there the called function to
999 bpstat_remove_bp_location_callback.
1000 (bpstat_remove_breakpoint_callback): Rename to ...
1001 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
1002 to struct bp_location. Change the called function to
1003 bpstat_remove_bp_location. Create new declaration for the function.
1004 (bpstat_remove_breakpoint): Rename to ...
1005 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
1006 code for the new parameter type.
1007
16d6b4b7
NS
10082010-06-07 Nathan Sidwell <nathan@codesourcery.com>
1009
1010 * README: Make version-agnostic.
1011
7e314c57
JK
10122010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1013
1014 Fix duplicate types for single DIE.
1015 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
1016 set_die_type.
1017 (read_array_type): Remove type initialization. Recheck get_die_type
1018 after initial die_type. Move set_die_type before set_descriptive_type.
1019 (read_set_type): New variable domain_type. Recheck get_die_type after
1020 initial die_type. Move attr initialization later.
1021 (read_tag_pointer_type, read_tag_reference_type): New variable
1022 target_type. Recheck get_die_type after initial die_type.
1023 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
1024 die_type and die_containing_type.
1025 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
1026 Recheck get_die_type after initial die_type.
1027 (read_subrange_type): Recheck get_die_type after initial die_type.
1028 Move set_die_type before set_descriptive_type.
1029 (set_die_type): Extend the function comment. Call complaint if DIE has
1030 some type already set.
1031
2f296114
VP
10322010-06-05 Vladimir Prus <vladimir@codesourcery.com>
1033
1034 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
1035 for current naming of thread groups (iN, not N).
1036
554794dc
SDJ
10372010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1038
1039 * ada-lang.c (ada_operator_length): Constify `struct expression'.
1040 * parse.c (operator_length): Likewise.
1041 (operator_length_standard): Likewise.
1042 * parser-defs.h (operator_length): Likewise.
1043 (operator_length_standard): Likewise.
1044 (struct exp_descriptor <operator_length>): Likewise.
1045
967cf477
DE
10462010-06-04 Doug Evans <dje@google.com>
1047
bddaacb9 1048 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
1049 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
1050 * python/python-internal.h (gdbpy_enabled_cst): Declare.
1051 * python/python.c (gdbpy_enabled_cst): Define.
1052 (_initialize_python): Initialize gdbpy_enabled_cst.
1053 * NEWS: Add entry.
1054
2dec564e
JK
10552010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1056
1057 * breakpoint.c (update_global_location_list): Fix comment typo.
1058
44b5680a
HZ
10592010-06-04 Hui Zhu <teawater@gmail.com>
1060
1061 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
1062
e7a30f46
DE
10632010-06-03 Doug Evans <dje@google.com>
1064
1065 * configure.ac: Don't fail if python is unusable when
1066 configured with --with-python=auto.
1067 * configure: Regenerate.
1068
84b4420f
SW
10692010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
1070
1071 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
1072
df178451
PM
10732010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
1074
1075 * valprint.h (get_array_bounds): Change low and high parameter types
1076 to LONGEST *.
0407b3f1 1077 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
1078 compute bounds.
1079 (val_print_array_elements): Adapt to change above.
1080 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
1081 * p-valprint.c (pascal_val_print): Likewise.
1082
fd5700c7
JK
10832010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1084
1085 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1086 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1087 .F08.
1088
f55ee35c
JK
10892010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1090
1091 Support DW_TAG_module as separate namespaces.
1092 * dwarf2read.c (typename_concat): New parameter physname.
1093 (read_module_type): New function and declaration.
1094 (scan_partial_symbols): Scan also DW_TAG_module children.
1095 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1096 to typename_concat backward compatible physname value 0.
1097 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1098 backward compatible physname value 0.
1099 (add_partial_module, read_module): Remove FIXME comment.
1100 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1101 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1102 DIEs under DW_TAG_module.
1103 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1104 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1105 && physname and return there instead of just setting NAME. Extend
1106 the main block for language_fortran. Pass physname parameter to the
1107 typename_concat call.
1108 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1109 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1110 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1111 missing from SYMBOL_SET_NAMES in the language_fortran case.
1112 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1113 variables.
1114 (read_type_die) <DW_TAG_module>: New.
1115 (MAX_SEP_LEN): Increase to 7.
1116 (typename_concat): New parameter physname. New variable lead. Support
1117 also language_fortran.
1118 * f-exp.y (yylex): Consider : also as a symbol name character class.
1119 * f-lang.c: Include cp-support.h.
1120 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1121 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1122 f_word_break_characters and f_make_symbol_completion_list.
1123 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1124 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1125 * symtab.c (symbol_init_language_specific): Support language_fortran.
1126 (symbol_find_demangled_name): New comment on language_fortran.
1127 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1128 for language_fortran.
1129 (lookup_symbol_aux_local): Check imports also for language_fortran.
1130 (default_make_symbol_completion_list): Rename to ...
1131 (default_make_symbol_completion_list_break_on): ... this name. New
1132 parameter break_on, use it.
1133 (default_make_symbol_completion_list): New stub.
1134 * symtab.h (default_make_symbol_completion_list_break_on): New
1135 prototype.
1136
cb91c06a
JB
11372010-06-02 Joel Brobecker <brobecker@adacore.com>
1138
1139 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1140 to error.
1141
5c315b68
JK
11422010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1143
1144 * dwarf2read.c (typename_concat): Add const to the variable sep.
1145
9eae7c52
TT
11462010-06-02 Tom Tromey <tromey@redhat.com>
1147
1148 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1149 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1150 type is const. Add 'def' argument. Add missing operators, remove
1151 unhandled ones.
1152 (decode_locdesc): Update.
1153 (dwarf2_always_disassemble): New global.
1154 (show_dwarf2_always_disassemble): New function.
1155 (_initialize_dwarf2_read): Add always-disassemble.
1156 (dwarf2_per_cu_offset_size): New function.
1157 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1158 (piece_end_p): New function.
1159 (locexpr_describe_location_piece): Replace 'size' argument with
1160 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1161 some constants. Remove errors.
1162 (disassemble_dwarf_expression): New function.
1163 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1164 Add 'offset_size' argument.
1165 (loclist_describe_location): Change output formatting.
1166 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1167
7d3fe98e
SW
11682010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1169
1170 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1171 anonymous type case.
1172
e77813c8
PM
11732010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1174
1175 * dwarf2read.c (read_subrange_type): Handle missing base type
1176 according to Dwarf-2 specifications.
1177
7cf3118a
SDJ
11782010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1179
1180 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1181 BINOP_EXCL.
1182 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1183 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1184 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1185 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1186 UNOP_CHMAX, UNOP_CHMIN.
1187 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1188 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1189 UNOP_CHMIN>: Remove opcodes.
1190
ae4d0c03
PM
11912010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1192
1193 * dwarf2read.c (read_func_scope): Do not complain for
1194 external function if bounds are not found.
1195
fa593d66
PA
11962010-06-01 Pedro Alves <pedro@codesourcery.com>
1197
1198 * NEWS: Mention gdbserver fast tracepoints support.
1199
cd44747c
PM
12002010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1201
1202 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1203 New macros.
1204 (windows_set_console_info): New function.
1205 (windows_create_inferior): Call windows_set_console_info
1206 if NEW_CONSOLE is true.
1207 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1208 (_initialize_loadable): Initialize GetConsoleFontSize and
1209 GetCurrentConsoleFont.
1210
f6528abd
JK
12112010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1212
1213 * Makefile.in (RDYNAMIC): New.
1214 (SFILES): Add proc-service.list.
1215 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1216 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1217 * config/arm/linux.mh: Likewise.
1218 * config/i386/linux.mh: Likewise.
1219 * config/i386/linux64.mh: Likewise.
1220 * config/ia64/linux.mh: Likewise.
1221 * config/m32r/linux.mh: Likewise.
1222 * config/m68k/linux.mh: Likewise.
1223 * config/mips/linux.mh: Likewise.
1224 * config/pa/linux.mh: Likewise.
1225 * config/powerpc/linux.mh: Likewise.
1226 * config/powerpc/ppc64-linux.mh: Likewise.
1227 * config/s390/s390.mh: Likewise.
1228 * config/sparc/linux.mh: Likewise.
1229 * config/sparc/linux64.mh: Likewise.
1230 * config/xtensa/linux.mh: Likewise.
1231 * configure.ac: New RDYNAMIC on native host and GCC.
1232 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1233 * configure: Regenerate.
1234 * proc-service.list: New.
1235
ca2a87a0
JK
12362010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1237
1238 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1239 CONTENT.
1240
1e225492
JK
12412010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1242
1243 * linux-nat.c (linux_nat_wait_1): Do not call
1244 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1245 TARGET_WAITKIND_SIGNALLED.
1246
e802dbe0
JB
12472010-05-27 Joel Brobecker <brobecker@adacore.com>
1248
1249 * ada-lang.c (ada_inferior_data): New struct.
1250 (ada_inferior_data): New static global.
1251 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1252 (ada_get_tsd_type): New functions.
1253 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1254 to look the tsd type up.
1255 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1256 event. Set ada_inferior_data.
1257
176a6961
PA
12582010-05-27 Pedro Alves <pedro@codesourcery.com>
1259
1260 * remote.c (unpack_varlen_hex): Remove forward declaration.
1261 (remote_console_output): Make static, and add forward declaration.
1262 * remote.h: Drop FIXME comment.
1263 (unpack_varlen_hex): Declare.
1264 (remote_console_output, remote_cisco_objfile_relocate)
1265 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1266 Delete declarations.
1267 * tracepoint.c: Include "remote.h".
1268 (unpack_varlen_hex): Delete declaration.
1269
88bfdde4
TT
12702010-05-27 Tom Tromey <tromey@redhat.com>
1271
1272 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1273 (allocate_piece_closure): Initialize refc.
1274 (copy_pieced_value_closure): Use refc.
1275 (free_pieced_value_closure): Likewise.
1276
8c6363cf
TT
12772010-05-27 Tom Tromey <tromey@redhat.com>
1278
1279 * arm-tdep.c (push_stack_item): 'contents' now const.
1280 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1281 value_contents_writeable. Introduce new temporary.
1282
7ecb917e
TT
12832010-05-27 Tom Tromey <tromey@redhat.com>
1284
1285 * findcmd.c (parse_find_args): Use value_contents, not
1286 value_contents_raw.
1287
f42a0a33
TT
12882010-05-27 Tom Tromey <tromey@redhat.com>
1289
1290 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1291 const. Use value_contents, not value_contents_writeable.
1292
12b795ad
JB
12932010-05-27 Joel Brobecker <brobecker@adacore.com>
1294
1295 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1296 by call to value_contents.
1297
5a2e11c7
OS
12982010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1299
1300 * MAINTAINERS: Add myself for write after approval privileges.
1301
ec685c5e
DE
13022010-05-26 Doug Evans <dje@google.com>
1303
0c4a4063
DE
1304 Allow python to find its files if moved from original location.
1305 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1306 (GDB_AC_WITH_DIR): Call it.
1307 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1308 python installation directory.
1309 * config.in: Regenerate.
1310 * configure: Regenerate.
1311 * defs.h (python_libdir): Declare.
1312 * main.c (python_libdir): Define.
1313 (captured_main): Initialize python_libdir.
1314 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1315 call Py_SetProgramName to make sure python can find its libraries
1316 and modules.
1317
ec685c5e
DE
1318 * configure.ac: Try to use python's distutils to fetch compilation
1319 parameters.
1320 * configure: Regenerate.
1321 * python/python-config.py: New file.
1322
363a6e9f
OS
13232010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1324
1325 * ser-tcp.c (net_open): Check error return from socket() call by its
1326 equality to -1 not by it being negative.
1327 (net_close): Likewise.
1328
dde08ee1
PA
13292010-05-26 Pedro Alves <pedro@codesourcery.com>
1330
1331 * NEWS: Mention the `qRelocInsn' feature.
1332 * gdbarch.sh (relocate_instruction): New.
1333 * amd64-tdep.c (rip_relative_offset): New.
1334 (append_insns): New.
1335 (amd64_relocate_instruction): New.
1336 (amd64_init_abi): Install it.
1337 * i386-tdep.c (append_insns): New.
1338 (i386_relocate_instruction): New.
1339 (i386_gdbarch_init): Install it.
1340 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1341 * gdbarch.h, gdbarch.c: Regenerate.
1342
947bb88f
TT
13432010-05-26 Tom Tromey <tromey@redhat.com>
1344
1345 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1346 (struct dwarf2_loclist_baton) <data>: Likewise.
1347 * dwarf2loc.c (find_location_expression): Constify return type.
1348 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1349 (dwarf2_loc_desc_needs_frame): Likewise.
1350 (loclist_read_variable): Constify.
1351 (loclist_describe_location): Likewise.
1352 (loclist_tracepoint_var_ref): Likewise.
1353
0d45f56e
TT
13542010-05-25 Tom Tromey <tromey@redhat.com>
1355
1356 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1357 (dwarf_expr_frame_base_1): Likewise.
1358 (read_pieced_value): Update.
1359 (needs_frame_frame_base): Constify.
1360 (dwarf2_tracepoint_var_loc): Likewise.
1361 (dwarf2_tracepoint_var_access): Likewise.
1362 (locexpr_describe_location_piece): Likewise.
1363 (locexpr_describe_location_1): Likewise.
1364 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1365 Constify.
1366 (data): Now const.
1367 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1368 (dwarf_expr_eval, read_uleb128, read_sleb128)
1369 (dwarf2_read_address): Update.
1370 * dwarf2expr.c (dwarf_expr_eval): Constify.
1371 (read_uleb128): Likewise.
1372 (read_sleb128): Likewise.
1373 (dwarf2_read_address): Likewise.
1374 (require_composition): Likewise.
1375 (execute_stack_op): Likewise.
1376 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1377 "const gdb_byte *".
1378 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1379 Now const.
1380 (no_get_frame_base): Constify.
1381 (execute_stack_op): Likewise.
1382 (execute_cfa_program): Likewise.
1383 (read_encoded_value): Likewise.
1384
07ca107c
DE
13852010-05-25 Doug Evans <dje@google.com>
1386
e34838f0
DE
1387 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1388
01f69b38
DE
1389 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1390 * event-loop.c: ... here.
1391 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1392 `error' for clarity.
1393 (tui_getc): Pass correct value for `error' parameter to
1394 tui_readline_output.
1395
07ca107c
DE
1396 Add python gdb.GdbError and gdb.string_to_argv.
1397 * NEWS: Document them.
1398 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1399 the exception is gdb.GdbError. Print a second traceback if there's
1400 an error computing the error message.
1401 (gdbpy_string_to_argv): New function.
1402 * python/py-utils.c (gdbpy_obj_to_string): New function.
1403 (gdbpy_exception_to_string): New function.
1404 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1405 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1406 (gdbpy_gdberror_exc): Declare.
1407 * python/python.c (gdbpy_gdberror_exc): New global.
1408 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1409 gdb.GdbError.
1410 (GdbMethods): Add string_to_argv.
1411
5572ce1f
PM
14122010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1413
1414 * windows-nat.c (display_selector): Call GetLastError to give better
1415 failure explanation.
1416
acd5838a
PA
14172010-05-24 Pedro Alves <pedro@codesourcery.com>
1418
1419 * config.in: Regenerate.
1420
b26a4dcb
JK
14212010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1422
1423 Code cleanup.
1424 * target.c (push_target): Return only void. Remove the return value
1425 comment.
1426 * target.h (push_target): Return only void.
1427
f434ba03
PA
14282010-05-23 Pedro Alves <pedro@codesourcery.com>
1429
1430 Update gnulib from latest git.
1431 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1432
1433 * gnulib/memcmp.c: Removed.
1434 * gnulib/memchr.valgrind: New.
1435 * gnulib/stddef.in.h: New.
1436 * gnulib/Makefile.am: Updated.
1437 * gnulib/memchr.c: Updated.
1438 * gnulib/memmem.c: Updated.
1439 * gnulib/stdint.in.h: Updated.
1440 * gnulib/str-two-way.h: Updated.
1441 * gnulib/string.in.h: Updated.
1442 * gnulib/wchar.in.h: Updated.
1443
1444 * gnulib/extra/link-warning.h: Removed.
1445 * gnulib/extra/c++defs.h: New.
1446 * gnulib/extra/warn-on-use.h: New.
1447 * gnulib/extra/arg-nonnull.h: Updated.
1448
1449 * gnulib/m4/extensions.m4: Updated.
1450 * gnulib/m4/gnulib-cache.m4: Updated.
1451 * gnulib/m4/gnulib-common.m4: Updated.
1452 * gnulib/m4/gnulib-comp.m4: Updated.
1453 * gnulib/m4/gnulib-tool.m4: Updated.
1454 * gnulib/m4/include_next.m4: Updated.
1455 * gnulib/m4/longlong.m4: Updated.
1456 * gnulib/m4/memchr.m4: Updated.
1457 * gnulib/m4/memmem.m4: Updated.
1458 * gnulib/m4/stdint.m4: Updated.
1459 * gnulib/m4/string_h.m4: Updated.
1460 * gnulib/m4/memcmp.m4: Removed.
1461 * gnulib/m4/onceonly_2_57.m4: Removed.
1462 * gnulib/m4/00gnulib.m4: New.
1463 * gnulib/m4/mmap-anon.m4: New.
1464 * gnulib/m4/multiarch.m4: New.
1465 * gnulib/m4/onceonly.m4: New.
1466 * gnulib/m4/stddef_h.m4: New.
1467 * gnulib/m4/warn-on-use.m4: New.
1468 * gnulib/m4/wchar.m4: Removed.
1469 * gnulib/m4/wchar_h.m4: New.
1470 * gnulib/m4/wchar_t.m4: New.
1471 * gnulib/m4/wint_t.m4: New.
1472
1473 * aclocal.m4: Regenerate.
1474 * config.in: Likewise.
1475 * configure: Likewise.
1476 * gnulib/Makefile.in: Likewise.
1477
d3b1e874
TT
14782010-05-21 Tom Tromey <tromey@redhat.com>
1479
1480 * dwarf2loc.c (extract_bits_primitive): New function.
1481 (extract_bits): Likewise.
1482 (insert_bits): Likewise.
1483 (copy_bitwise): Likewise.
1484 (read_pieced_value): Do all operations in bits.
1485 (write_pieced_value): Likewise.
1486 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1487 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1488 Always use xrealloc to resize piece array.
1489 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1490 <DW_OP_piece>: Update.
1491 <DW_OP_bit_piece>: New case.
1492
cb826367
TT
14932010-05-21 Tom Tromey <tromey@redhat.com>
1494
1495 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1496 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1497 * dwarf2expr.h (enum dwarf_value_location)
1498 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1499 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1500 (add_piece): Handle empty piece.
1501 (execute_stack_op) <DW_OP_piece>: Handle
1502 DWARF_VALUE_OPTIMIZED_OUT.
1503
74de6778
TT
15042010-05-21 Tom Tromey <tromey@redhat.com>
1505
1506 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1507 evaluate_subexp, not evaluate_subexp_with_coercion.
1508
f346a30d
PM
15092010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1510
1511 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1512 attribute.
1513
afd74c5f
TT
15142010-05-21 Tom Tromey <tromey@redhat.com>
1515
1516 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1517 offset.
1518 (write_pieced_value): Likewise.
1519
90e7c2c5
PM
15202010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1521
1522 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1523 and DW_TAG_volatile_type.
1524 (new_symbol): Likewise.
1525
8148cf8d
PM
15262010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1527
1528 * p-valprint.c (pascal_val_print): Call get_array_bounds
1529 to obtain the number of elements in an array.
1530
3a1d4620
DE
15312010-05-19 Doug Evans <dje@google.com>
1532
0bf0f8c4
DE
1533 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1534
3a1d4620
DE
1535 * python.c (source_python_script): Add comment.
1536 (source_python_script_for_objfile): Remove unnecessary call to
1537 gdbpy_print_stack.
1538
dc21167c
JK
15392010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1540 Sergio Durigan Junior <sergiodj@redhat.com>
1541
1542 Code cleanup.
1543 * parse.c (exp_iterate): Use operator_length wrapper function.
1544
5b4ee69b
MS
15452010-05-18 Michael Snyder <msnyder@vmware.com>
1546
1547 * ada-lang.c: White space.
1548 * ada-typeprint.c: White space.
1549 * ada-valprint.c: White space.
1550 * addrmap.c: White space.
1551 * auxv.c: White space.
1552 * ax-gdb.c: White space.
1553
e17c9e56
HZ
15542010-05-18 Hui Zhu <teawater@gmail.com>
1555
1556 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1557 for oldfp.
1558 (inferior_call_waitpid): Move make_cleanup out of check.
1559 Check the return of waitpid.
1560 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1561
a109c7c1
MS
15622010-05-17 Michael Snyder <msnyder@vmware.com>
1563
1c5313c5
MS
1564 * tui/tui.c: White space.
1565 * tui/tui-data.c: White space.
1566 * tui/tui-disasm.c: White space.
1567 * tui/tui-file.c: White space.
1568 * tui/tui-interp.c: White space.
1569 * tui/tui-main.c: White space.
1570 * tui/tui-out.c: White space.
1571 * tui/tui-regs.c: White space.
1572 * tui/tui-source.c: White space.
1573 * tui/tui-stack.c: White space.
1574 * tui/tui-win.c: White space.
1575 * tui/tui-winsource.c: White space.
1576
f4a14ae6
MS
1577 * procfs.c: White space.
1578
d59b6f6c
MS
1579 * python/py-auto-load.c: White space.
1580 * python/py-block.c: White space.
1581 * python/py-breakpoint.c: White space.
1582 * python/py-cmd.c: White space.
1583 * python/py-function.c: White space.
1584 * python/py-lazy-string.c: White space.
1585 * python/py-objfile.c: White space.
1586 * python/py-param.c: White space.
1587 * python/py-prettyprint.c: White space.
1588 * python/py-progspace.c: White space.
1589 * python/py-symtab.c: White space.
1590 * python/python.c: White space.
1591 * python/py-type.c: White space.
1592 * python/py-utils.c: White space.
1593 * python/py-value.c: White space.
1594
102040f0
MS
1595 * mi/mi-cmd-break.c: White space.
1596 * mi/mi-cmd-env.c: White space.
1597 * mi/mi-cmds.c: White space.
1598 * mi/mi-cmd-stack.c: White space.
1599 * mi/mi-cmd-var.c: White space.
1600 * mi/mi-console.c: White space.
1601 * mi/mi-getopt.c: White space.
1602 * mi/mi-interp.c: White space.
1603 * mi/mi-main.c: White space.
1604 * mi/mi-out.c: White space.
1605 * mi/mi-parse.c: White space.
1606
cdb27c12
MS
1607 * cli/cli-cmds.c: White space.
1608 * cli/cli-decode.c: White space.
1609 * cli/cli-dump.c: White space.
1610 * cli/cli-interp.c: White space.
1611 * cli/cli-logging.c: White space.
1612 * cli/cli-script.c: White space.
1613 * cli/cli-setshow.c: White space.
1614
a109c7c1
MS
1615 * valarith.c: White space.
1616 * valops.c: White space.
1617 * valprint.c: White space.
1618 * value.c: White space.
1619 * varobj.c: White space.
1620 * xcoffread.c: White space.
1621 * xml-support.c: White space.
1622 * xml-tdesc.c: White space.
1623
3872d37d
AS
16242010-05-17 Andreas Schwab <schwab@redhat.com>
1625
1626 PR gdb/11092
1627 * c-lang.c (c_printstr): Compute real length of NUL terminated
1628 string at first.
1629
0cce5bd9
JB
16302010-05-17 Joel Brobecker <brobecker@adacore.com>
1631
1632 * parse.c (parse_exp_in_context): When block is not NULL, use
1633 its associated language to parse the expression instead of
1634 the current_language.
1635
5f19d646
JB
16362010-05-17 Joel Brobecker <brobecker@adacore.com>
1637
1638 * jv-lang.c (java_lookup_class): Remove commented out code.
1639 (type_from_class): Likewise.
1640 (java_op_print_tab): Remove commented-out elements.
1641
28c85d6c
JB
16422010-05-17 Joel Brobecker <brobecker@adacore.com>
1643
1644 * ada-lang.c (to_fixed_range_type): The the raw index type as
1645 argument instead of the raw type name. Remove orig_type parameter.
1646 Update calls throughout.
1647 (ada_fixup_array_indexes_type): New function.
1648 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1649 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1650 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1651 Remove name parameter.
1652 (print_array_type): Add call to ada_fixup_array_indexes_type.
1653 Update calls to print_range_type.
1654 (ada_print_type): Update calls to print_range_type.
1655
d09039dd
PM
16562010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1657
1658 * dwarf2read.c (read_set_type): Set type length if
1659 DW_AT_byte_size attribute is present.
1660
7a081a30
PM
16612010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1662
1663 * p-valprint.c (pascal_val_print): Handle set type if range limits
1664 are undefined but size is known.
1665
77382aee
PA
16662010-05-17 Pedro Alves <pedro@codesourcery.com>
1667
1668 * procfs.c: Reformat.
1669
433759f7
MS
16702010-05-16 Michael Snyder <msnyder@vmware.com>
1671
5d502164
MS
1672 * target.c: White space.
1673 * target-descriptions.c: White space.
1674 * target-memory.c: White space.
1675 * thread.c: White space.
1676 * top.c: White space.
1677 * tracepoint.c: White space.
1678 * trad-frame.c: White space.
1679 * tramp-frame.c: White space.
1680 * ui-file.c: White space.
1681 * ui-out.c: White space.
1682 * user-regs.c: White space.
1683 * utils.c: White space.
1684
433759f7
MS
1685 * scm-exp.c: White space.
1686 * scm-lang.c: White space.
1687 * scm-valprint.c: White space.
1688 * sentinel-frame.c: White space.
1689 * ser-base.c: White space.
1690 * ser-go32.c: White space.
1691 * serial.c: White space.
1692 * ser-mingw.c: White space.
1693 * ser-pipe.c: White space.
1694 * ser-tcp.c: White space.
1695 * ser-unix.c: White space.
1696 * solib.c: White space.
1697 * solib-darwin.c: White space.
1698 * solib-frv.c: White space.
1699 * solib-irix.c: White space.
1700 * solib-osf.c: White space.
1701 * solib-pa64.c: White space.
1702 * solib-som.c: White space.
1703 * solib-spu.c: White space.
1704 * solib-svr4.c: White space.
1705 * solib-target.c: White space.
1706 * source.c: White space.
1707 * stabsread.c: White space.
1708 * stack.c: White space.
1709 * std-regs.c: White space.
1710 * symfile.c: White space.
1711 * symmisc.c: White space.
1712 * symtab.c: White space.
1713
dd304d53
MS
17142010-05-16 Michael Snyder <msnyder@vmware.com>
1715
1716 * source.c (_initialize_source): Add "rev" as an abbreviation
1717 for the "reverse-search" command.
1718
a744cf53
MS
17192010-05-16 Michael Snyder <msnyder@vmware.com>
1720
123f5f96
MS
1721 * record.c: White space.
1722 * regcache.c: White space.
1723 * reggroups.c: White space.
1724 * remote-fileio.c: White space.
1725 * remote-m32r-sdi.c: White space.
1726 * remote-mips.c: White space.
1727 * remote-sim.c: White space.
a744cf53
MS
1728 * remote.c: White space.
1729 (process_g_packet): Remove orphan braces.
1730
b8d56208
MS
17312010-05-15 Michael Snyder <msnyder@vmware.com>
1732
ad3bbd48
MS
1733 * parse.c: White space.
1734 * p-lang.c: White space.
1735 * posix-hdep.c: White space.
1736 * printcmd.c: White space.
1737 * progspace.c: White space.
1738 * prologue-value.c: White space.
1739 * psymtab.c: White space.
1740 * p-typeprint.c: White space.
1741 * p-valprint.c: White space.
1742
5cc80db3
MS
1743 * objc-lang.c: White space.
1744 * objfiles.c: White space.
1745 * observer.c: White space.
1746 * osabi.c: White space.
1747 * osdata.c: White space.
1748
b8d56208
MS
1749 * m2-lang.c: White space.
1750 * m2-valprint.c: White space.
1751 * macrocmd.c: White space.
1752 * macroexp.c: White space.
1753 * macroscope.c: White space.
1754 * macrotab.c: White space.
1755 * main.c: White space.
1756 * maint.c: White space.
1757 * mdebugread.c: White space.
1758 * memattr.c: White space.
1759 * minsyms.c: White space.
1760 * monitor.c: White space.
1761
9a619af0
MS
17622010-05-14 Michael Snyder <msnyder@vmware.com>
1763
e0881a8e
MS
1764 * jv-lang.c: White space.
1765 * jv-typeprint.c: White space.
1766 * jv-valprint.c: White space.
1767 * language.c: White space.
1768 * libunwind-frame.c: White space.
1769 * linespec.c: White space.
1770 * linux-nat.c: White space.
1771 * linux-record.c: White space.
1772 * linux-thread-db.c: White space.
1773
abbb1732
MS
1774 * infcall.c: White space.
1775 * inf-child.c: White space.
1776 * infcmd.c: White space.
1777 * inferior.c: White space.
1778 * inf-loop.c: White space.
1779 * inflow.c: White space.
1780 * inline-frame.c: White space.
1781 * interps.c: White space.
1782
d8734c88
MS
1783 * gcore.c: White space.
1784 * gdb.c: White space.
1785 * gdbtypes.c: White space.
1786 * gnu-nat.c: White space.
1787 * gnu-v2-abi.c: White space.
1788 * gnu-v3-abi.c: White space.
1789
bb9bcb69
MS
1790 * findcmd.c: White space.
1791 * findvar.c: White space.
1792 * fork-child.c: White space.
1793 * frame-base.c: White space.
1794 * frame.c: White space.
1795 * frame-unwind.c: White space.
1796 * f-valprint.c: White space.
1797
d7f9d729
MS
1798 * elfread.c: White space.
1799 * environ.c: White space.
1800 * eval.c: White space.
1801 * event-loop.c: White space.
1802 * event-top.c: White space.
1803 * exceptions.c: White space.
1804 * exec.c: White space.
1805 * expprint.c: White space.
1806
9a619af0
MS
1807 * dbxread.c: White space.
1808 * dcache.c: White space.
1809 * disasm.c: White space.
1810 * doublest.c: White space.
1811 * dsrec.c: White space.
1812 * dummy-frame.c: White space.
1813 * dwarf2expr.c: White space.
1814 * dwarf2-frame.c: White space.
1815 * dwarf2loc.c: White space.
1816 * dwarf2read.c: White space.
1817
88d4aea7
PM
18182010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1819
1820 PR python/11482
1821
1822 * python/py-value.c (valpy_hash): New function.
1823 (value_object_type): Register valpy_hash.
1824
7a298875 18252010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 1826 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
1827
1828 * linux-fork.c (gdbthread.h): New include.
1829 (fork_info): Add parent_ptid.
1830 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1831 functions.
1832 (delete_checkpoint_command): Call inferior_call_waitpid.
1833 (checkpoint_command): Set parent_ptid.
1834
c14feecc
MS
18352010-05-13 Michael Snyder <msnyder@vmware.com>
1836
6595d32b
MS
1837 * dictionary.c: Re-indent to GNU coding standard.
1838
c5504eaf
MS
1839 * charset.c: White space.
1840 * c-lang.c: White space.
1841 * cli-out.c: White space.
1842 * coffread.c: White space.
1843 * complaints.c: White space.
1844 * completer.c: White space.
1845 * corefile.c: White space.
1846 * corelow.c: White space.
1847 * cp-abi.c: White space.
1848 * cp-namespace.c: White space.
1849 * cp-support.c: White space.
1850 * cp-valprint.c: White space.
1851 * c-typeprint.c: White space.
1852 * c-valprint.c: White space.
cc59ec59
MS
1853 * blockframe.c: White space.
1854 * breakpoint.c: White space.
1855 * buildsym.c: White space.
1856 * blockframe.c: White space.
b6de9da4 1857 * bcache.c: White space.
05c547f6
MS
1858 * gdbarch.sh: White space, add blank lines.
1859 * arch-utils.c: Ditto.
1860 * gdbarch.c: Regenerate.
1c4d3f96 1861 * frame.c: White space, add blank lines.
f89b749f
MS
1862 * stack.c: White space, add blank lines.
1863 (initialize_stack): Remove long-dead code.
c14feecc 1864
a2d33775
JK
18652010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1866
1867 Code cleanup.
1868 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1869 (locexpr_read_variable, loclist_read_variable): Update the callers.
1870
33ac96f0
JK
18712010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1872
1873 Code cleanup.
1874 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1875 Remove check of NULL returned by tag_type_to_type.
1876 (die_containing_type): Remove variable type. Remove type_die variable
1877 initialization. Remove check of NULL returned by tag_type_to_type.
1878
f5a010c0
PM
18792010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1880
1881 PR exp/11530.
1882 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1883 names of unnamed structures or unions.
1884
bf701c2c
PM
18852010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1886
1887 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 1888 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
1889 find_procinfo_or_die call.
1890 (procfs_stopped_data_address): New function.
1891 (procfs_use_watchpoints): Register new watchpoint related function.
1892
d02691ef
TT
18932010-05-11 Tom Tromey <tromey@redhat.com>
1894
1895 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1896
e0627e85
MS
18972010-05-10 Michael Snyder <msnyder@vmware.com>
1898
1899 * utils.c: White space cleanup.
1900
cc73bb8c
TT
19012010-05-10 Tom Tromey <tromey@redhat.com>
1902
1903 * eval.c (ptrmath_type_p): Add 'lang' argument.
1904 (evaluate_subexp_standard): Update.
1905 (evaluate_subexp_with_coercion): Update.
1906 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1907
c02866a0
MS
19082010-05-10 Michael Snyder <msnyder@vmware.com>
1909
1910 * utils.c (do_fclose_cleanup) Restore local variable.
1911
06280d23
DE
19122010-05-09 Doug Evans <dje@google.com>
1913
1914 * record.c (init_record_core_ops): Rename record_core to record-core.
1915
fa07e785
JB
19162010-05-08 Joel Brobecker <brobecker@adacore.com>
1917
1918 Implement task switching on pa-hpux.
1919 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1920 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1921
4c680d1d
PM
19222010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1923
1924 * valops.c (find_overload_match): Add missing i18n markup.
1925
28e176a6
PM
19262010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1927
1928 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1929
48cb83fd
JK
19302010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1931
1932 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1933 list for the obconcat call.
1934 * mdebugread.c (parse_symbol): Likewise.
1935 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1936 Likewise.
1937 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1938 New variable ap. Remove variables len and val.
1939 * symfile.h (obconcat): Likewise for the prototype.
1940
f92adf3c
MS
19412010-05-07 Michael Snyder <msnyder@vmware.com>
1942
1943 * python/python.c (execute_gdb_command): Remove unused variables.
1944 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 1945 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
1946 Remove unused variable.
1947 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1948 (cmdpy_completer): Remove unused variable.
1949 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1950 * python/py-function.c (fnpy_call): Remove unused variable.
1951 * python/py-objfile.c (objfile_to_objfile_object):
1952 Remove unused variable.
1953 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 1954 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
1955 Remove unused variable.
1956 (gdbpy_default_visualizer): Remove unused variable.
1957 * python/py-progspace.c (pspace_to_pspace_object):
1958 Remove unused variable.
0407b3f1 1959 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 1960 Remove unused variable.
0407b3f1 1961 * python/py-type.c (typy_template_argument):
f92adf3c
MS
1962 Remove unused variable.
1963 * python/py-value.c (valpy_string): Remove unused variable.
1964 (convert_value_from_python): Remove unused variables.
1965
d160942f
MS
19662010-05-07 Michael Snyder <msnyder@vmware.com>
1967
1968 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1969 and use it to compute variable 't1'.
1970
587542ab
JB
19712010-05-07 Joel Brobecker <brobecker@adacore.com>
1972
1973 * ada-lang.c (assign_aggregate): Remove unused variable.
1974
7322dca9
SW
19752010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1976
1977 PR C++/7943:
1978 * valops.c (find_overload_match): Handle fsym == NULL case.
1979 Add int no_adl argument.
1980 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1981 when appropriate.
1982 Add int no_adl argument.
1983 (find_oload_champ_namespace): Add int no_adl argument.
1984 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1985 expression.
1986 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1987 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1988 Evaluate arguments and use them to perform ADL lookup.
1989 Pass no_adl argument to find_overload_match.
1990 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1991 * cp-support.h: Added prototype for
1992 make_symbol_overload_list_namespace.
1993 * cp-support.c (make_symbol_overload_list_namespace): New function.
1994 (make_symbol_overload_list_adl_namespace): New function.
1995 (make_symbol_overload_list_adl): New function.
1996 (make_symbol_overload_list_using): Moved code to add function to
1997 overload set to make_symbol_overload_list_namespace.
1998 * c-exp.y: create UNKNOWN_CPP_NAME token.
1999 Add parse rule for ADL functions.
2000 (classify_name): Recognize an UNKNOWN_CPP_NAME.
2001
3f1f6884
JK
20022010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2003
2004 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
2005 sentinel.
2006
3caf13b4
JB
20072010-05-07 Joel Brobecker <brobecker@adacore.com>
2008
2009 Implement task switching on solaris targets.
2010 * sol-thread.c (thread_db_find_thread_from_tid)
2011 (sol_get_ada_task_ptid): New functions.
2012 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2013
94b0dee1
PA
20142010-05-07 Pedro Alves <pedro@codesourcery.com>
2015
2016 * remote.c (remote_query_supported_append): Use reconcat.
2017 (remote_query_supported): Install a cleanup. Use reconcat.
2018
1408c251
PA
20192010-05-07 Pedro Alves <pedro@codesourcery.com>
2020
2021 * gdbarch.sh (qsupported): Delete.
2022 * gdbarch.h, gdbarch.c: Regenerate.
2023 * remote.c (remote_query_supported): Remove use of
2024 gdbarch_qsupported.
2025
f8e50cfe
SDJ
20262010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2027
2028 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
2029 function.
2030
8ea13695
MS
20312010-05-06 Michael Snyder <msnyder@vmware.com>
2032
c6913b7d
MS
2033 * xml-support.c (xinclude_start_include): Delete unused variable.
2034 (xml_process_xincludes): Delete unused variable.
2035 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
2036 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
2037 (tdesc_find_arch_register): Delete unused variable.
2038 (tdesc_use_registers): Delete unused variable.
2039 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
2040 * inferior.c (print_inferior): Delete unused variable.
2041 * record.c (record_open_1): Delete unused variable.
2042 (record_restore): Delete unused variable.
2043 (cmd_record_save): Delete unused variable.
2044 * gcore.c (derive_heap_segment): Delete unused variable.
2045 (objfile_find_memory_regions): Use unused variable.
2046 * jit.c (jit_inferior_init): Delete unused variable.
2047 * progspace.c (clone_program_space): Delete unused variable.
2048 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
2049
2050 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
2051 Delete unused variable.
2052 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
2053 * cp-support.c (mangled_name_to_comp): Delete unused variable.
2054 (method_name_from_physname): Delete unused variable.
2055 (cp_func_name): Delete unused variable.
2056 (cp_validate_operator): Delete unused variable.
0407b3f1 2057 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 2058 Delete unused variable.
0407b3f1 2059 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
2060 Delete unused variable.
2061 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
2062
1be757cf
MS
2063 * serial.c (serial_for_fd): Delete unused variable.
2064 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
2065 * top.c (execute_command): Delete unused variable.
2066 (init_main): Delete unused variable.
2067 * utils.c (do_fclose_cleanup): Delete unused variable.
2068 (do_all_inferior_continuations): Delete unused variable.
2069 (initialize_utils): Delete unused variable.
2070 (internal_problem_mode): Delete unused global.
2071 * frame.c (get_prev_frame): Delete unused global.
2072 (get_frame_locals_address): Delete unused global.
2073 (get_frame_args_address): Delete unused global.
2074
9216103f
MS
2075 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
2076 (pascal_type_print_varspec_prefix): Delete unused variable.
2077 * f-typeprint.c (f_type_print_base): Delete unused variable.
2078 (f_type_print_varspec_suffix): Delete unused variable.
2079 * m2-typeprint.c (m2_print_type): Delete unused variable.
2080 (m2_long_set): Delete unused variable.
2081 * ada-valprint.c (ada_val_print_1): Delete unused variable.
2082 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 2083 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
2084 Delete unused variable.
2085 (f77_create_arrayprint_offset_tbl): Delete unused variable.
2086 * m2-valprint.c (m2_val_print): Delete unused variable.
2087
34fa1d9d
MS
2088 * ui-out.c (ui_out_field_int): Delete unused variable.
2089 (ui_out_field_fmt_int): Delete unused variable.
2090 * varobj.c (varobj_list_children): Delete unused variable.
2091 (varobj_set_value): Delete unused variable.
2092 (install_new_value_visualizer): Delete unused variable.
2093 (varobj_set_visualizer): Delete unused variable.
2094 (varobj_update): Delete unused variable.
2095 (varobj_editable_p): Delete unused variable.
2096 (c_value_of_root): Delete unused variable.
2097 (cplus_describe_child): Delete unused variable.
2098
b5385fc0
MS
2099 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2100 (decode_constrained_packed_array_type): Delete unused variable.
2101 (add_defn_to_vec): Delete unused variable.
2102 (symbol_completion_match): Delete unused variable.
2103 (value_tag_from_contents_and_address): Delete unused variable.
2104 (ada_evaluate_subexp): Delete unused variable.
2105 * c-lang.c (classify_type): Delete unused variable.
2106 * f-lang.c (f_printstr): Delete unused variable.
2107 * objc-lang.c (objc_printstr): Delete unused variable.
2108 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2109 * jv-lang.c (type_from_class): ifdef unused variable.
2110 (java_class_name_from_physname): Delete unused variable.
2111 * m2-lang.c (m2_printstr): Delete unused variable.
2112
4fc06681
MS
2113 * objfiles.c (objfile_relocate): Delete unused variable.
2114 * maint.c (_initialize_maint_cmds): Delete unused variable.
2115 * demangle.c (_initialize_demangler): Delete unused variable.
2116 * corefile.c (reopen_exec_file): Delete unused variable.
2117 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2118 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2119
6b4398f7
MS
2120 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2121 * memattr.c (mem_delete): Delete unused variable.
2122 (invalidate_target_mem_regions): Delete unused variable.
2123 * mem-break.c (default_memory_insert_breakpoint):
2124 Delete unused variable.
2125 * target.c (target_get_osdata): Delete unused variable.
2126 * parse.c (length_of_subexp): Delete unused variable.
2127 (prefixify_subexp): Delete unused variable.
2128 (exp_iterate): Delete unused variable.
2129 * reverse.c (delete_bookmark_command): Delete unused variable.
2130
308d96ed
MS
2131 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2132 * macroexp.c (gather_arguments): Delete unused variable.
2133 (substitute_args): Delete unused variable.
2134 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2135 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2136 (_initialize_gdbarch): Delete unused variable.
2137 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 2138 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
2139 Delete unused variable.
2140 (_initialize_gdbarch_utils): Delete unused variable.
2141 * gdbtypes.c (make_cv_type): Delete unused variable.
2142 (make_type_with_address_space): Delete unused variable.
2143
167e4384
MS
2144 * linespec.c (decode_compound): Delete unused variable.
2145 * dictionary.c (iterator_next_hashed): Delete unused variable.
2146 * infcall.c (call_function_by_hand): Delete unused variable.
2147 * infcmd.c (step_1): Delete unused variable.
2148 (registers_info): Delete unused variable.
2149 (attach_command): Delete unused variable.
2150 * infrun.c (follow_exec): Delete unused variable.
2151 (handle_step_into_function_backwards): Delete unused variable.
2152 (_initialize_infrun): Delete unused variable.
2153 * stack.c (parse_frame_specification_1): Delete unused variable.
2154 (frame_info): Delete unused variable.
2155 (backtrace_command_1): Delete unused variable.
2156 (catch_info): Delete unused variable.
2157
8f78b329
MS
2158 * eval.c (evaluate_subexp_standard): Delete unused variable.
2159 * valops.c (value_cast_pointers): Delete unused variable.
2160 (value_dynamic_cast): Delete unused variable.
2161 (value_array): Delete unused variable.
2162 (find_overload_match): Delete unused variable.
2163 * valarith.c (value_subscript): Delete unused variable.
2164 (value_binop): Delete unused variable.
2165 * valprint.c (_initialize_valprint): Delete unused variable.
2166 * printcmd.c (print_command_1): Delete unused variable.
2167 (address_info): Delete unused variable.
2168 (printf_command): Delete unused variable.
2169
8ea13695
MS
2170 * auxv.c (target_auxv_search): Delete unused variable.
2171 * blockframe.c (get_frame_block): Delete unused variable.
2172 * regcache.c (regcache_cpy): Delete unused variable.
2173 (regcache_cpy_no_passthrough): Delete unused variable.
2174 * charset.c (wchar_iterate): Delete unused variable.
2175 (find_charset_names): Delete unused variable.
2176 (_initialize_charset): Delete unused variable.
0407b3f1 2177 * disasm.c (do_mixed_source_and_assembly):
8ea13695 2178 Delete unused variable.
0407b3f1 2179 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
2180 Delete unused variable.
2181 (set_substitute_path_command): Delete unused variable.
2182 * value.c (preserve_values): Delete unused variable.
2183 (value_from_double): Delete unused variable.
2184
afe38095
MS
21852010-05-05 Michael Snyder <msnyder@vmware.com>
2186
952a6d41
MS
2187 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2188 (find_last_source_symtab_from_partial): Delete unused variable.
2189 * symfile.c (place_section): Delete unused variable.
2190 (default_symfile_offsets): Delete unused variable.
2191 (get_debug_link_info): Delete unused variable.
2192 (find_separate_debug_file_by_debuglink): Delete unused variable.
2193 (add_symbol_file_command): Delete unused variable.
2194 (symfile_find_segment_sections): Delete unused variable.
2195 * symmisc.c (free_symtab): Delete unused variable.
2196 (dump_symtab_1): Delete unused variable.
2197 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2198 (find_pc_sect_symtab): Delete unused variable.
2199 (skip_prologue_using_lineinfo): Delete unused variable.
2200 (sources_info): Delete unused variable.
2201 (completion_list_add_name): Delete unused variable.
2202 (expand_line_sal): Delete unused variable.
2203
0407b3f1 2204 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
2205 Delete unused variables.
2206 (insert_catchpoint): Delete unused variable.
2207 (update_watchpoint): Delete unused variable.
2208 (insert_bp_location): Delete unused variable.
2209 (insert_breakpoint_locations): Delete unused variable.
2210 (remove_breakpoint_1): Delete unused variable.
2211 (software_breakpoint_inserted_here_p): Delete unused variable.
2212 (watchpoints_triggered): Delete unused variable.
2213 (bpstat_check_watchpoint): Delete unused variable.
2214 (bpstat_stop_status): Delete unused variable.
2215 (print_one_breakpoint_location): Delete unused variable.
2216 (allocate_bp_location): Delete unused variable.
2217 (create_breakpoint): Delete unused variable.
2218 (watch_command_1): Delete unused variable.
2219 (catch_exception_command_1): Delete unused variable.
2220 (catch_ada_exception_command): Delete unused variable.
2221 (delete_breakpoint): Delete unused variable.
2222 (breakpoint_re_set_one): Delete unused variable.
2223 (do_enable_breakpoint): Delete unused variable.
2224
eda5a4d7
PA
22252010-05-06 Pedro Alves <pedro@codesourcery.com>
2226
2227 * amd64-tdep.c: Include disasm.h.
2228 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2229 (amd64_insn_length): Moved to disasm.c and renamed.
2230 (fixup_riprel): Adjust.
2231 * disasm.c (do_ui_file_delete): New.
2232 (gdb_insn_length): New.
2233 (gdb_buffered_insn_length_fprintf)
2234 (gdb_buffered_insn_length_init_dis)
2235 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2236 renamed.
2237 * disasm.h (gdb_insn_length): Declare.
2238 (gdb_buffered_insn_length): Declare.
2239
02357a4a
PA
22402010-05-06 Pedro Alves <pedro@codesourcery.com>
2241
2242 * remote.c (clear_threads_parsing_context): New.
2243 (remote_threads_info): Delete unused null_cleanup. Install a
2244 cleanup to clear the threads_parsing_context in case parsing
2245 throws.
2246
8c5630cb
MS
22472010-05-05 Michael Snyder <msnyder@vmware.com>
2248
2249 * c-exp.y (parse_string_or_char): Delete unused variable.
2250 (c_lex): Delete unused variable.
2251 * cp-name-parser.y (cpname_lex): Delete unused variable.
2252 * ada-exp.y (find_primitive_type): Delete unused variable.
2253 (write_var_or_type): Delete unused variable.
2254 * jv-exp.y (java_parse): Delete unused variable.
2255 (push_expression_name): Delete unused variable.
2256 * p-exp.y (pascal_lex): Delete unused variable.
2257
46c162d4
PA
22582010-05-05 Pedro Alves <pedro@codesourcery.com>
2259
2260 * remote.c (remote_threads_info): Really revert previous previous
2261 change.
2262
0043e6a5
MS
22632010-05-05 Michael Snyder <msnyder@vmware.com>
2264
fa238c03
MS
2265 * elfread.c (elf_symtab_read): Delete unused variable.
2266 (find_separate_debug_file_by_buildid): Delete unused variables.
2267 (elf_symfile_read): Delete unused variable.
2268
2269 * coffread.c (coff_symfile_read): Delete unused variables.
2270
2271 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2272 (read_pe_exported_syms): Delete unused variable.
2273
2274 * stabsread.c (define_symbol): Delete unused variable.
2275
2276 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2277 (process_psymtab_comp_unit): Delete unused variable.
2278 (dwarf2_build_psymtabs_hard): Delete unused variable.
2279 (load_partial_comp_unit): Delete unused variable.
2280 (create_all_comp_units): Delete unused variable.
2281 (scan_partial_symbols): Delete unused variable.
2282 (add_partial_symbol): Delete unused variable.
2283 (add_partial_namespace): Delete unused variable.
2284 (add_partial_enumeration): Delete unused variable.
2285 (load_full_comp_unit): Delete unused variable.
2286 (process_full_comp_unit): Delete unused variable.
2287 (read_file_scope): Delete unused variable.
2288 (read_type_unit_scope): Delete unused variable.
2289 (process_structure_scope): Delete unused variable.
2290 (process_enumeration_scope): Delete unused variable.
2291 (read_tag_ptr_to_member_type): Delete unused variable.
2292 (read_typedef): Delete unused variable.
2293 (read_partial_die): Delete unused variable.
2294 (decode_locdesc): Delete unused variable.
2295 (zeroed_partial_die): Delete unused global variable.
2296
0407b3f1 2297 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 2298 Delete unused variable.
0407b3f1 2299 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
2300 Delete unused variable.
2301 (tui_check_register_values): Delete unused variable.
2302 (tui_register_format): Delete unused variable.
2303 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 2304 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
2305 Delete unused variables.
2306 (tui_vertical_data_scroll): Delete unused variables.
2307
75721c66
MS
23082010-05-05 Michael Snyder <msnyder@vmware.com>
2309
c31a71f4
MS
2310 * remote.c (remote_threads_info): Revert questionable part of
2311 the previous change.
2312
23132010-05-05 Michael Snyder <msnyder@vmware.com>
2314
2315 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2316 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2317 (mi_cmd_var_list_children): Delete unused variable.
2318 (varobj_update_one): Delete unused variable.
2319 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 2320 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
2321 Delete unused variable.
2322 (mi_cmd_stack_list_variables): Delete unused variable.
2323 (list_args_or_locals): Delete unused variable.
0407b3f1 2324 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
2325 Delete unused variables.
2326 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 2327 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
2328 Delete unused variable.
2329 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2330 (mi_cmd_interpreter_exec): Delete unused variable.
2331 (mi_on_normal_stop): Delete unused variable.
2332 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2333 (print_one_inferior): Delete unused variables.
2334 (mi_execute_command): Delete unused variable.
2335 (mi_cmd_execute): Delete unused variable.
2336 (timestamp): Delete unused variable.
2337
2338 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 2339 (restore_binary_file): Delete unused variable.
c31a71f4
MS
2340 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2341 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
2342 (recurse_read_control_structure): Delete unused variable.
2343 (script_from_file): Delete unused variable.
c31a71f4 2344 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
2345 (disassemble_command): Delete unused variable.
2346
2347 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 2348 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
2349 Delete unused variables.
2350 (encode_actions_1): Delete unused variables.
2351 (start_tracing): Delete unused variable.
2352 (trace_status_mi): Delete unused variable.
2353 (tfind_1): Delete unused variable.
2354 (trace_find_pc_command): Delete unused variable.
2355 (trace_find_line_command): Delete unused variables.
2356 (trace_find_range_command): Delete unused variables.
2357 (trace_find_outside_command): Delete unused variables.
2358 (parse_tracepoint_definition): Delete unused variables.
2359 (tfile_fetch_registers): Delete unused variable.
2360
9128a503
MS
2361 * dcache.c (dcache_init): Delete unused variable.
2362 (dcache_info): Delete unused variable.
2363
aa369b55 2364 * remote.c (remote_threads_info): Delete unused variable.
9128a503 2365 (process_stop_reply) :Delete unused variable.
aa369b55
MS
2366 (remote_get_trace_status): Delete unused variables.
2367
9e9547e4
MS
2368 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2369 (thread_from_lwp): Delete unused variable.
2370 (enable_thread_event_reporting): Delete unused variable.
2371 (check_for_thread_db): Delete unused variables.
2372 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 2373
9e9547e4
MS
2374 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2375 (checkpoint_command): Delete unused variable.
2376 (linux_fork_context): Delete unused variables.
2377
fa238c03 2378 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
2379 (linux_tracefork_child): Delete unused variable.
2380 (linux_child_follow_fork): Delete unused variable.
2381 (linux_nat_detach): Delete unused variable.
2382 (linux_handle_extended_wait): Delete unused variable.
2383 (linux_nat_has_pending_sigint): Delete unused variable.
2384 (linux_nat_find_memory_regions): Delete unused variable.
2385 (linux_nat_make_corefile_notes): Delete unused variables.
2386 (linux_nat_info_proc_cmd): Delete unused variable.
2387 (linux_proc_pending_signals): Delete unused variable.
2388 (linux_nat_stop_lwp): Delete unused variables.
2389 (_initialize_linux_nat): Delete unused variable.
2390
fa238c03 2391 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 2392
0407b3f1 2393 * linux-record.c (record_linux_system_call):
e0f069a3
MS
2394 Delete unused variables.
2395
789d24f0
MS
2396 * corelow.c (core_xfer_partial): Delete unused variables.
2397
1cd337a5 2398 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 2399 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
2400 conditionally-used variable declarations.
2401
b00e3f56
MS
2402 * solib.c (solib_find): Delete unused variable.
2403 (free_so_symbols): Delete unused variable.
2404 (info_sharedlibrary_command): Delete unused variable.
2405 (reload_shared_libraries_1): Delete unused variable.
2406 (_initialize_solib): Delete unused variable.
2407
90f62196
MS
2408 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2409 (i386_collect_xstateregset): Delete unused variable.
2410 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2411
75721c66
MS
2412 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2413 Delete unused variable 'type'.
2414
af33db37
JB
24152010-05-05 Joel Brobecker <brobecker@adacore.com>
2416
90f62196 2417 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
2418 ada-lang.c: Remove comment mentioning these macros.
2419 * m2-exp.y: Delete commented out code.
af33db37 2420
0497f5b0
JB
24212010-05-05 Joel Brobecker <brobecker@adacore.com>
2422
2423 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2424 for array types.
2425 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2426
6e39997a
PM
24272010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2428
2429 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 2430 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
2431 ATTRIBUTE_UNUSED.
2432 (cleanup_kernel_helper_return): Likewise.
2433 * arm-tdep.c (copy_unmodified): Likewise.
2434 (copy_preload): Likewise.
2435 (copy_copro_load_store): Likewise.
2436 (cleanup_branch): Likewise.
2437 (copy_b_bl_blx): Likewise.
2438 (copy_bx_blx_reg): Likewise.
2439 (copy_alu_imm): Likewise.
2440 (copy_alu_reg): Likewise.
2441 (copy_alu_shifted_reg): Likewise.
2442 (cleanup_load): Likewise.
2443 (cleanup_store): Likewise.
2444 (cleanup_block_load_pc): Likewise.
2445 (cleanup_svc): Likewise.
2446 (copy_undef): Likewise.
2447 (copy_unpred): Likewise.
2448 * remote.c (register_remote_support_xml): Likewise.
2449
1412f70b
HZ
24502010-05-05 Hui Zhu <teawater@gmail.com>
2451
2452 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2453
c4f7c687
MK
24542010-05-04 Mark Kettenis <kettenis@gnu.org>
2455
2456 * remote.c (register_remote_support_xml)
2457 (remote_query_supported_append, remote_query_supported): Add cast
2458 to NULL used as sentinel.
2459 * tracepoint.c (tvariables_info_1): Likewise.
2460 * utils.c (add_internal_problem_command): Likewise.
2461
63b4f126
MGD
24622010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2463
2464 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2465 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2466 registers gracefully.
2467
2f1bdd26
MGD
24682010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2469
0407b3f1 2470 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
2471 specific parts.
2472
e1c34c5d
PM
24732010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2474
2475 PR exp/11349.
2476 * printcmd.c (x_command): Only dereference once implicitly for
2477 TYPE_CODE_REF.
2478
ae462839
DE
24792010-05-03 Doug Evans <dje@google.com>
2480
2481 * event-loop.c (gdb_timer): Delete unused global.
2482 (create_timer): Update.
2483
1ac77ea1
JK
24842010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2485
2486 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2487 CURRENT->DECLARATION case.
2488 * cp-support.h (struct using_direct): Provide extended comment.
2489
7c54a108
MK
24902010-05-03 Mark Kettenis <kettenis@gnu.org>
2491
2492 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2493 HPPABSD_SIZEOF_GREGS.
2494 (HPPAOBSD_SIZEOF_FPREGS): New define.
2495 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2496 (hppaobsd_supply_fpregset): New function.
2497 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2498 (hppaobsd_fpregset): New variable.
2499 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2500 (_initialize_hppabsd_tdep): Remove spurious blank line.
2501
278582cb
PM
25022010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2503
2504 PR pascal/11349.
2505 * p-valprint.c (pascal_value_print): Always dereference a value with
2506 type code TYPE_CODE_REF.
0407b3f1 2507
f0223081
PA
25082010-05-03 Pedro Alves <pedro@codesourcery.com>
2509
2510 * remote.c (remote_notice_signals): New.
2511 (remote_start_remote): In non-stop mode, update the remote end on
2512 which signals it can silently pass.
2513 (init_remote_ops): Install remote_notice_signals.
2514
c25c4a8b
JK
25152010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2518 * command.h (error_no_arg): ... here. Remove NORETURN, change
2519 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2520 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2521 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2522 (internal_verror, internal_error, nomem): Remove NORETURN, change
2523 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2524 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2525 (throw_vfatal, throw_error): Remove NORETURN.
2526 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2527 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2528 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2529 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2530 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2531 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2532 NORETURN.
2533 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2534 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2535 ATTRIBUTE_NORETURN.
2536 * target.c (tcomplain): Likewise.
2537 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2538 ATTRIBUTE_NORETURN.
2539 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2540 (internal_error, perror_with_name, nomem): Remove NORETURN.
2541 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2542 ATTRIBUTE_NORETURN.
2543
a0b31db1
JK
25442010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2547 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2548 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2549 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2550 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2551 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2552 * complaints.h (complaint, internal_complaint): Likewise.
2553 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2554 (ATTR_FORMAT): Remove.
2555 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2556 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2557 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2558 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2559 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2560 (internal_error, internal_vwarning, internal_warning, warning)
2561 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2562 * disasm.c (fprintf_disasm): Likewise.
2563 * exceptions.c (throw_it): Likewise.
2564 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2565 (throw_error): Likewise.
2566 * language.h (type_error, range_error): Likewise.
2567 * linespec.c (cplusplus_error): Likewise.
2568 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2569 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2570 * monitor.c (monitor_debug): Likewise.
2571 * parser-defs.h (parser_fprintf): Likewise.
2572 * serial.h (serial_printf): Likewise.
2573 * tui/tui-hooks.c (tui_query_hook): Likewise.
2574 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2575 (uo_message): Likewise.
2576 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2577 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2578 Likewise.
2579 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2580
02a45ac0
PA
25812010-05-02 Pedro Alves <pedro@codesourcery.com>
2582
2583 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2584 (cli_table_header, cli_begin, cli_end, cli_field_int)
2585 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2586 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2587 Delete forward declarations.
2588 (cli_ui_out_impl): Move below the callbacks.
2589 (_initialize_cli_out): Delete.
2590
1915ef4f
PA
25912010-05-02 Pedro Alves <pedro@codesourcery.com>
2592
2593 * README: Use consistent `GDB' and `GDBserver' spellings.
2594
0dfb946f
JK
25952010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2596
2597 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2598
4d533103
PA
25992010-05-01 Pedro Alves <pedro@codesourcery.com>
2600
2601 * infrun.c (prepare_for_detach): In non-stop, context switch to
2602 the thread that got the event before handling the event.
2603
705b5767
TT
26042010-04-30 Tom Tromey <tromey@redhat.com>
2605
2606 * symtab.c (symbol_set_names): Fix typo.
2607
3c0ee1a4
PM
26082010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2609
2610 * python/py-param.c (parm_constants): Avoid ARI warning
2611 by adding ARI comment.
2612 (parmpy_init): Likewise.
2613
ea1fae46
PM
26142010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2615
2616 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2617 and created type for re-use.
2618
c24d0242
PM
26192010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2620
2621 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2622
a26d8d11
DE
26232010-04-29 Doug Evans <dje@google.com>
2624
2625 * ser-base.h (reschedule): Delete prototype.
2626 * ser-base.c (reschedule): Make static.
2627
f8624c62
MGD
26282010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2629
2630 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2631 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 2632 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 2633 EABI.
0407b3f1 2634 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
2635 use.
2636
e66408ed
PA
26372010-04-29 Pedro Alves <pedro@codesourcery.com>
2638
2639 PR gdb/11557
2640
2641 * regcache.c (registers_changed): Rename to ...
2642 (registers_changed_ptid): ... this, and only delete register cache
2643 entries matching the ptid filter argument.
2644 (registers_changed): Reimplement on top of registers_changed_ptid.
2645 * regcache.h (registers_changed_ptid): Declare.
2646 * target.c (target_resume): Flush register caches.
2647
d7b32ed3 26482010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
2649 Tom Tromey <tromey@redhat.com>
2650 Thiago Jung Bauermann <bauerman@br.ibm.com>
2651
2652 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2653 (SUBDIR_PYTHON_SRCS): Likewise.
2654 (py-parameter.o): New rule.
2655 * python/py-parameter.c: New file.
2656 * python/python-internal.h (gdbpy_initialize_parameter)
2657 (gdbpy_parameter, gdbpy_parameter_value)
2658 (gdbpy_parse_command_name): Declare.
2659 * python/py-cmd.c (parse_command_name): Rename to
2660 gdbpy_parse_command_name.
2661 (gdbpy_parse_command_name): Accept a starting list parameter and
2662 use over cmdlist.
2663 (cmdpy_init): Use gdbpy_parse_command_name.
2664 * python/python.c (parameter_to_python): Rename to
2665 gdbpy_parameter_to_python. Accept enum var_types and value.
2666 (gdbpy_parameter): Use gdbpy_parameter_value.
2667 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 2668
ce72ce41
MGD
26692010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2670
2671 * MAINTAINERS: Add myself for write after approval privileges.
2672
6aecb9c2
JB
26732010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2674
2675 D language support.
2676 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2677 (COMMON_OBS): Add d-lang.o d-valprint.o.
2678 (HFILES_NO_SRCDIR): Add d-lang.h.
2679 * NEWS: Mention D language support.
2680 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2681 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2682 * d-lang.c: New file.
2683 * d-lang.h: New file.
2684 * d-valprint.c: New file.
2685 * defs.h (enum language): Add language_d.
2686 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2687 * language.c (binop_result_type, integral_type, character_type)
2688 (string_type, boolean_type, structured_type): Add language_d.
2689 * symfile.c (init_filename_language_table): Add language_d.
2690 * symtab.c: Include d-lang.h.
2691 (symbol_init_language_specific, symbol_find_demangled_name)
2692 (symbol_natural_name, lookup_symbol_in_language)
2693 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2694
6f992fbf
JB
26952010-04-27 Joel Brobecker <brobecker@adacore.com>
2696
2697 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2698
dde59185
JB
26992010-04-27 Joel Brobecker <brobecker@adacore.com>
2700
2701 * symfile.c (init_filename_language_table): Register .dg files
2702 with language_ada.
2703
d09ce91e
JB
27042010-04-27 Joel Brobecker <brobecker@adacore.com>
2705
2706 * gdbtypes.h (struct main_type): Expand comment about target_type
2707 field.
2708
67f1675e
JB
27092010-04-27 Pedro Alves <pedro@codesourcery.com>
2710 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
2711
2712 * symfile.c (reread_symbols): Also search for file in libraries.
2713 Update comment.
2714
dfd0fe27
JB
27152010-04-27 Joel Brobecker <brobecker@adacore.com>
2716
2717 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2718 in terms of configuration.
2719
0133421a
JK
27202010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2721
2722 * objfiles.c: Include solist.h.
2723 (free_all_objfiles): New variable so. Check stale solist objfiles.
2724 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2725 and no_shared_libraries.
2726
e78f4312
JB
27272010-04-27 Joel Brobecker <brobecker@adacore.com>
2728
2729 ARI warning fix.
2730 * python/py-auto-load.c (source_section_scripts): Remove trailing
2731 new-line in i18n string.
2732
9214d371
DE
27332010-04-26 Doug Evans <dje@google.com>
2734
2735 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2736
3f172e24
TT
27372010-04-26 Tom Tromey <tromey@redhat.com>
2738
2739 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2740 command list.
2741
e790e06e
PM
27422010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2743
2744 Removal of config/i386/nm-i386sol2.h native configuration file.
2745 * config/i386/nm-i386sol2.h: Remove file.
2746 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2747 * config/i386/sol2-64.mh: Idem.
88562582
PM
2748 * config/djgpp/fnchange.lst: Remove reference to that file.
2749 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 2750
b7da9e9f
PM
27512010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2752
2753 PR breakpoints/11531.
2754 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2755 macro definition and related comment.
2756 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2757 (resume): Remove code and comment related to this macro.
2758
72f6eb52
JK
27592010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2760
2761 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2762 Fix whitespace.
2763
ab38a727
PA
27642010-04-24 Pedro Alves <pedro@codesourcery.com>
2765
2766 * defs.h: Adjust comment.
2767 * filesystem.h, filesystem.c: New files.
2768 * Makefile.in (SFILES): Add filesystem.c.
2769 (COMMON_OBS): Add filesystem.o.
2770 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2771 different target and host path flavours.
2772 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2773 has_dos_based_file_system on the gdbarch.
2774 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2775 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2776 * i386-tdep.c (i386_go32_init_abi): Ditto.
2777 * gdbarch.sh (has_dos_based_file_system): New.
2778 * gdbarch.h, gdbarch.c: Regenerate.
2779 * NEWS: Mention improved support for remote targets with DOS-based
2780 filesystems. Mention new `set/show target-file-system-kind'
2781 commands.
2782
35c9c7ba
SS
27832010-04-23 Stan Shebs <stan@codesourcery.com>
2784
2785 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2786 comments.
2787 (struct agent_reqs): Remove.
2788 (ax_reg_mask): Declare.
2789 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2790 (free_agent_expr): Free reg_mask.
2791 (ax_print): Add scope and register mask info.
2792 (ax_reqs): Remove agent_reqs argument, use agent expression
2793 fields, and move part of register mask computation to...
2794 (ax_reg_mask): New function.
2795 * ax-gdb.c (gen_trace_static_fields): Call it.
2796 (gen_traced_pop): Ditto.
2797 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2798 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2799 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2800 (gen_eval_for_expr): Ditto, and require an rvalue.
2801 (agent_command): Call ax_reqs.
2802 (agent_eval_command): Ditto.
2803 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2804 (validate_action_line): Ditto.
2805 (collect_symbol): Ditto.
2806 (encode_actions_1): Ditto.
2807
492928e4
JK
28082010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2809 Paul Pluzhnikov <ppluzhnikov@google.com>
2810 Jan Kratochvil <jan.kratochvil@redhat.com>
2811
2812 Fix deadlock on looped list of loaded shared objects.
2813 * solib-svr4.c (LM_PREV): New function.
2814 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2815 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2816 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2817 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2818
66d09542
DE
28192010-04-23 Doug Evans <dje@google.com>
2820
88a1906b
DE
2821 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2822 python.
2823 * configure: Regenerate.
2824 * main.c: #include "python/python.h".
2825 (captured_main): Defer loading auto-loaded scripts until after
2826 local_gdbinit has been sourced.
2827 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2828 (load_auto_scripts_for_objfile): New function.
2829 (auto_load_new_objfile): Call it.
2830 * python/python.h (gdbpy_global_auto_load): Declare.
2831 (load_auto_scripts_for_objfile): Declare.
2832
66d09542
DE
2833 Add support for auto-loading scripts from .debug_gdb_scripts section.
2834 * NEWS: Add entry for .debug_gdb_scripts.
2835 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2836 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2837 (py-auto-load.o): New rule.
2838 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2839 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2840 * python/py-auto-load.c: New file.
2841 * python/python-internal.h: #include <stdio.h>.
2842 (set_python_list, show_python_list): Declare.
2843 (gdbpy_initialize_auto_load): Declare.
2844 (source_python_script_for_objfile): Declare.
2845 * python/python.c: Remove #include of observer.h.
2846 (gdbpy_auto_load): Moved to py-auto-load.c.
2847 (GDBPY_AUTO_FILENAME): Ditto.
2848 (gdbpy_new_objfile): Delete.
2849 (source_python_script_for_objfile): New function.
2850 (set_python_list, show_python_list): Make externally visible.
2851 (_initialize_python): Move "auto-load" command to py-auto-load.c
2852 and observer_attach_new_objfile to py-auto-load.c.
2853
3a48e6ff 28542010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 2855
3a48e6ff
JG
2856 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2857 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2858 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2859 New constants.
2860 (alpha_heuristic_analyze_probing_loop): New function.
2861 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2862 and handle cases when a stack probe loop is generated.
2863 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2864 (alpha_mdebug_max_frame_size_exceeded): New function.
2865 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2866 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2867 Return 0 when the maximum debuggable frame size has been exceeded.
2868
e4166a49
JB
28692010-04-23 Joel Brobecker <brobecker@adacore.com>
2870
2871 Fix ARI warning.
2872 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2873
8bd10a10
CM
28742010-04-20 Chris Moller <cmoller@redhat.com>
2875
2876 PR 10179
2877
2878 * symtab.c (rbreak_command): Added code to include a filename
2879 specification in the rbreak argument.
2880 * NEWS: Added a brief description of filename-qualified rbreak.
2881
c0201579
JK
28822010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2883
2884 Fix crashes on dangling display expressions.
2885 * ada-lang.c (ada_operator_check): New function.
2886 (ada_exp_descriptor): Fill-in the field operator_check.
2887 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2888 * jv-lang.c (exp_descriptor_java): Likewise.
2889 * m2-lang.c (exp_descriptor_modula2): Likewise.
2890 * scm-lang.c (exp_descriptor_scm): Likewise.
2891 * parse.c (exp_descriptor_standard): Likewise.
2892 (operator_check_standard): New function.
2893 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2894 * parser-defs.h (struct exp_descriptor): New field operator_check.
2895 (operator_check_standard, exp_uses_objfile): New declarations.
2896 * printcmd.c: Remove the inclusion of solib.h.
2897 (display_uses_solib_p): Remove the function.
2898 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2899 and exp_uses_objfile instead of display_uses_solib_p.
2900 * solist.h (struct so_list) <objfile>: New comment.
2901 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2902 * symtab.h (lookup_objfile_from_block): New declaration.
2903 (struct general_symbol_info) <obj_section>: Extend the comment.
2904
6ffbb7ab
TJB
29052010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2906 Thiago Jung Bauermann <bauerman@br.ibm.com>
2907
2908 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2909 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2910 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2911 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2912 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2913 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2914 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2915 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2916 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2917 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2918 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2919 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2920 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2921 Define, in case <ptrace.h> doesn't provide it.
2922 (booke_debug_info): New variable.
2923 (max_slots_number): Ditto.
2924 (hw_break_tuple): New struct.
2925 (thread_points): Ditto.
2926 (ppc_threads): New variable.
2927 (PPC_DEBUG_CURRENT_VERSION): New define.
2928 (have_ptrace_new_debug_booke): New function.
2929 (ppc_linux_check_watch_resources): Renamed to ...
2930 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2931 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2932 (booke_cmp_hw_point): New function.
2933 (booke_find_thread_points_by_tid): Ditto.
2934 (booke_insert_point): Ditto.
2935 (booke_remove_point): Ditto.
2936 (ppc_linux_insert_hw_breakpoint): Ditto.
2937 (ppc_linux_remove_hw_breakpoint): Ditto.
2938 (get_trigger_type): Ditto.
2939 (ppc_linux_insert_watchpoint): Handle BookE processors.
2940 (ppc_linux_remove_watchpoint): Ditto.
2941 (ppc_linux_new_thread): Ditto.
2942 (ppc_linux_thread_exit): New function..
2943 (ppc_linux_stopped_data_address): Handle BookE processors.
2944 (ppc_linux_watchpoint_addr_within_range): Ditto.
2945 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2946 to_remove_hw_breakpoint fields of the target operations struct.
2947 Add observe for the thread_exit event.
2948
be0d2954
L
29492010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2950
2951 * i386-linux-nat.c (regmap): Removed.
2952 (fetch_register): Replace regmap with
2953 i386_linux_gregset_reg_offset.
2954 (store_register): Likewise.
2955 (supply_gregset): Likewise.
2956 (fill_gregset): Likewise.
2957
2958 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2959 global.
2960
2961 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2962
f56dcb88
CM
29632010-04-22 Chris Moller <cmoller@redhat.com>
2964
2965 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
2966 method of popping recursion-detection stack with a method based on
2967 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
2968 the static array obstack rather than the static member obstack.)
2969
6cd6a2ae
L
29702010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2971
2972 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2973 (_initialize_amd64_linux_nat): Replace
2974 amd64_linux_gregset64_reg_offset with
2975 amd64_linux_gregset_reg_offset.
2976
2977 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2978 global.
2979
2980 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2981
621791b8
PM
29822010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2983
2984 PR stabs/11479.
2985 * stabsread.c (set_length_in_type_chain): New function.
2986 (read_struct_type): Call set_length_in_type_chain function.
2987 (read_enum_type): Idem.
2988
105c2d85
SS
29892010-04-21 Stan Shebs <stan@codesourcery.com>
2990 Nathan Sidwell <nathan@codesourcery.com>
2991
2992 * tracepoint.c (trace_save): Open in binary mode.
2993
9a22f0d0
PM
29942010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2995
2996 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2997 fields.
0407b3f1 2998 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
2999 builtin_char32 fields.
3000 * printcmd.c (decode_format): Set char size to '\0'
3001 for strings unless explicit size is given.
3002 (print_formatted): Correct calculation of NEXT_ADDRESS
3003 for 16 or 32 bit strings.
3004 (do_examine): Do not force byte size for strings.
3005 Use builtin_char16 and builtin_char32 types to display
0407b3f1 3006 16 or 32 bit-wide strings.
9a22f0d0
PM
3007 (x_command): Set LAST_SIZE to 'b' for string type.
3008
f335d1b3
L
30092010-04-21 H.J. Lu <hongjiu.lu@intel.com>
3010
3011 PR corefiles/11523
3012 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3013 XCR0 first.
3014
3015 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
3016 there is no .reg-xstate section.
3017 (i386_linux_core_read_description): Check XCR0 first.
3018
a9789a6b
MF
30192010-04-21 Mike Frysinger <vapier@gentoo.org>
3020
3021 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
3022 for len <= 8.
3023
0b66f317
CM
30242010-04-21 Chris Moller <cmoller@redhat.com>
3025
3026 PR 9167
3027 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
3028 method of popping recursion-detection stack with a method based on
3029 obstack_object_size().
0b66f317 3030
6e354e5e
PM
30312010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3032
3033 PR pascal/11492.
3034 * p-valprint.c (pascal_val_print): Fix default printing of integer
3035 arrays.
3036
57174f31
PM
30372010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3038
3039 Fix compilation warning on gcc-4.1.2.
3040 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
3041 local variable`pc' to zero.
3042
6fbc7cd8
JB
30432010-04-20 Joel Brobecker <brobecker@adacore.com>
3044
3045 Implement thread support with core files on alpha-tru64.
3046 * dec-thread.c (dec_thread_find_new_threads): New function,
3047 extracted from resync_thread_list.
3048 (resync_thread_list): Add OPS parameter. Replace extracted-out
3049 code by call to dec_thread_find_new_threads.
3050 (dec_thread_wait): Update call to resync_thread_list.
3051 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
3052
438c98a1
JB
30532010-04-20 Joel Brobecker <brobecker@adacore.com>
3054
3055 * ada-lang.c (value_pointer): New function.
3056 (make_array_descriptor): Call value_pointer to convert addresses to
3057 pointers.
3058
2971b56b
JB
30592010-04-20 Joel Brobecker <brobecker@adacore.com>
3060
3061 * rs6000-aix-tdep.c: #include exceptions.h.
3062 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
3063 while reading the memory at ADDR, then ADDR cannot be a function
3064 descriptor.
3065
be942545
JB
30662010-04-20 Joel Brobecker <brobecker@adacore.com>
3067
3068 * ada-typeprint.c (ada_print_typedef): New function.
3069 * ada-lang.h (ada_print_typedef): Add declaration.
3070 * ada-lang.c (ada_language_defn): set la_print_typdef field
3071 to ada_print_typedef.
3072
1ca8fce0
JB
30732010-04-20 Joel Brobecker <brobecker@adacore.com>
3074
3075 * procfs.c (procfs_address_to_host_pointer): Only define when used.
3076
e9ef4f39
JB
30772010-04-20 Joel Brobecker <brobecker@adacore.com>
3078
3079 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
3080 (iterate_over_mappings): Adjust function profile. Add declaration.
3081 (insert_dbx_link_bpt_in_region, info_mappings_callback):
3082 Adjust accordingly.
3083
e294797a
JB
30842010-04-20 Joel Brobecker <brobecker@adacore.com>
3085
3086 * procfs.c (solib_mappings_callback): Move function up to avoid
3087 a compiler warning.
3088
a223f1e7
JB
30892010-04-20 Joel Brobecker <brobecker@adacore.com>
3090
3091 * procfs.c (find_signalled_thread, find_stop_signal): Move
3092 these functions down to define them only when used.
3093
0c3acc09
JB
30942010-04-20 Joel Brobecker <brobecker@adacore.com>
3095
3096 * valprint.c (common_val_print): Fix the value before extracting
3097 its contents.
3098 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3099 * ada-lang.h (ada_to_fixed_value): New function declaration.
3100 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3101 to avoid code duplication and fix a bug in the handling of
3102 fixed types contents.
3103
31ef98ae
TT
31042010-04-20 Tom Tromey <tromey@redhat.com>
3105
3106 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3107 (read_partial_die): Likewise.
3108 (dwarf_attr_name): Likewise.
3109
ec31cde5 31102010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 3111
ec31cde5
CM
3112 PR 10867
3113
3114 * cp-valprint.c (global): Adding new static array recursion
3115 detection obstack.
3116 (cp_print_value_fields, cp_print_static_field): Added new static
3117 array recursion detection code.
3118
e0e0e543
MK
31192010-04-20 Mark Kettenis <kettenis@gnu.org>
3120
3121 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3122 general-purpose register set should be 68 instead of 144.
3123 (i386_linux_sse_regset_sections): Likewise.
3124 (i386_linux_avx_regset_sections): Likewise.
3125
08922a10
SS
31262010-04-20 Stan Shebs <stan@codesourcery.com>
3127 Nathan Sidwell <nathan@codesourcery.com>
3128
3129 * dwarf2loc.c (struct axs_var_loc): New struct.
3130 (dwarf2_tracepoint_var_loc): New function.
3131 (dwarf2_tracepoint_var_access): New function.
3132 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3133 with DW_OP_piece.
3134 (locexpr_describe_location_piece): New function.
3135 (locexpr_describe_location_1): New function.
3136 (locexpr_describe_location): Call it, update signature.
3137 (loclist_describe_location): Rewrite to loop over locations,
3138 update signature.
3139 * symtab.h (struct symbol_computed_ops): Add address to
3140 describe_location arguments, return void.
3141 * printcmd.c (address_info): Get context PC, pass to computed
3142 location description.
3143 * tracepoint.c (scope_info): Ditto.
3144 * ax-gdb.c (trace_kludge): Export.
3145
2dc7f7b3
TT
31462010-04-20 Tom Tromey <tromey@redhat.com>
3147
3148 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3149 (struct dwarf2_cie) <segment_size>: New field.
3150 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3151 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3152 DW_FORM_exprloc.
3153 (read_attribute_value): Handle DW_FORM_flag_present,
3154 DW_FORM_sec_offset, DW_FORM_exprloc.
3155 (dump_die_shallow): Likewise.
3156 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3157 (dwarf2_const_value): Handle DW_FORM_exprloc.
3158 (attr_form_is_block): Likewise.
3159 (struct line_header) <maximum_ops_per_instruction>: New field.
3160 (dwarf_decode_line_header): Set new field.
3161 (dwarf_decode_lines): Handle new field.
3162
ce4b0682
SDJ
31632010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3164
3165 * f-exp.y: Add new production to recognize the `logical*8' type.
3166 (LOGICAL_S8_KEYWORD): New token.
3167 * f-lang.c (enum f_primitive_types)
3168 <f_primitive_type_logical_s8>: New field.
3169 (f_language_arch_info): Handling `logical*8' type.
3170 (build_fortran_types): Building `logical*8' type.
3171 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3172
ff9f22f1
DE
31732010-04-19 Doug Evans <dje@google.com>
3174
3175 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3176 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3177 (pipe_close): Ditto.
3178
437125bd
PM
31792010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3180
3181 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3182
e8e6c82e
PM
31832010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3184
3185 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3186 type to void function.
3187
4136fdd2
SS
31882010-04-19 Stan Shebs <stan@codesourcery.com>
3189 Vladimir Prus <vladimir@codesourcery.com>
3190
3191 * tracepoint.c (tfind_1): Add missing newline, report exit from
3192 tfind mode as such.
3193 * target.c (update_current_target): Make default
3194 to_trace_find return -1.
3195
0c4b2e63
MF
31962010-04-19 Mike Frysinger <vapier@gentoo.org>
3197
3198 * objc-lang.c (find_methods): Move symname check up.
3199
78076abc
PA
32002010-04-19 Pedro Alves <pedro@codesourcery.com>
3201
3202 * ada-lang.c (print_recreate_exception)
3203 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3204 not "catch unhandled".
3205
6149aea9
PA
32062010-04-19 Pedro Alves <pedro@codesourcery.com>
3207
3208 PR breakpoints/8554.
3209
3210 Implement `save-breakpoints'.
3211
3212 * breakpoint.c (save_cmdlist): New.
3213 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3214 to save_cmdlist.
3215 (print_recreate_catch_fork): New.
3216 (catch_fork_breakpoint_ops): Install it.
3217 (print_recreate_catch_vfork): New.
3218 (catch_vfork_breakpoint_ops): Install it.
3219 (print_recreate_catch_syscall): New.
3220 (catch_syscall_breakpoint_ops): Install it.
3221 (print_recreate_catch_exec): New.
3222 (catch_exec_breakpoint_ops): Install it.
3223 (print_recreate_exception_catchpoint): New.
3224 (gnu_v3_exception_catchpoint_ops): Install it.
3225 (save_breakpoints): New, based on tracepoint_save_command, but
3226 handle all breakpoint types.
3227 (save_breakpoints_command): New.
3228 (tracepoint_save_command): Rename to...
3229 (save_tracepoints_command): ... this, and reimplement using
3230 save_breakpoints.
3231 (save_command): New.
3232 (_initialize_breakpoints): Install the "save" command prefix.
3233 Install the "save breakpoints" command. Make "save-tracepoints" a
3234 deprecated alias for "save tracepoints".
3235 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3236 * ada-lang.c (print_recreate_exception): New.
3237 (print_recreate_catch_exception): New.
3238 (catch_exception_breakpoint_ops): Install it.
3239 (print_recreate_catch_exception_unhandled): New.
3240 (catch_exception_unhandled_breakpoint_ops): Install it.
3241 (print_recreate_catch_assert): New.
3242 (catch_assert_breakpoint_ops): Install it.
3243
3244 * NEWS: Mention the new `save breakpoints' command. Mention the
3245 new `save tracepoints' alias and that `save-tracepoints' is now
3246 deprecated.
3247
0a8fce9a
PA
32482010-04-18 Pedro Alves <pedro@codesourcery.com>
3249
3250 PR tui/9217
3251
3252 * tui/tui-out.c: Include cli-out.h.
3253 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3254 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3255 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3256 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3257 declarations.
3258 (struct ui_out_data): Rename to...
3259 (struct tui_ui_out_data): ... this. Remove `stream' and
3260 `suppress_output' fields, and inherit cli_ui_out_data.
3261 (tui_out_data): New typedef.
3262 (tui_ui_out_impl): Don't initialize fields staticaly.
3263 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3264 (tui_begin, tui_end): Delete.
3265 (tui_field_int): Adjust to delegate most work to the base type.
3266 (tui_field_skip): Delete.
3267 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3268 delegate most work to the base type.
3269 (tui_spaces): Delete.
3270 (tui_text): Adjust to delegate most work to the base type.
3271 (tui_message): Delete.
3272 (tui_wrap_hint): Delete.
3273 (tui_flush): Delete.
3274 (out_field_fmt): Delete.
3275 (field_separator): Delete.
3276 (tui_out_new): Adjust to initialize the base type.
3277 (_initialize_tui_out): Initialize tui_ui_out_impl.
3278 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3279 cli_ui_out_data.
3280 (cli_out_data): Adjust.
3281 (cli_ui_out_impl): Make extern.
3282 (cli_table_header, cli_field_int, cli_field_skip): Use
3283 uo_field_string instead of cli_field_string.
3284 (cli_redirect): Adjust to use cli_out_data.
3285 (cli_out_data_ctor): New.
3286 (cli_out_new): Use it.
3287 * cli-out.h (struct ui_file): Remove forward declaration.
3288 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3289 (cli_ui_out_impl): Declare.
3290 (cli_out_data_ctor): Declare.
3291 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3292 (uo_field_string): No longer static.
3293 (ui_out_data): Change return type to void pointer.
3294 (ui_out_new): Change `data' parameter type to void pointer.
3295 * ui-out.h (struct ui_out_data): Don't forward declare.
3296 (ui_out_data): Change return type to void pointer.
3297 (ui_out_new): Change `data' parameter type to void pointer.
3298 (uo_field_string): Declare.
3299
172240dd
PA
33002010-04-17 Pedro Alves <pedro@codesourcery.com>
3301
3302 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3303 instead of always false.
3304
ed41462c
L
33052010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3306
3307 PR corefiles/11511
3308 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3309 orig_rax.
3310
cc60f2e3
PA
33112010-04-17 Pedro Alves <pedro@codesourcery.com>
3312
3313 * breakpoint.c (watchpoints_triggered): Use
3314 is_hardware_watchpoint.
3315 (watchpoints_triggered): Ditto.
3316 (bpstat_check_location): Use is_watchpoint and
3317 is_hardware_watchpoint.
3318 (bpstat_check_watchpoint): Use is_watchpoint and
3319 is_hardware_watchpoint.
3320 (bpstat_stop_status): Fix comment.
3321 (user_settable_breakpoint): Use is_watchpoint.
3322 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3323 (disable_watchpoints_before_interactive_call_start): Use
3324 is_watchpoint.
3325 (enable_watchpoints_after_interactive_call_stop): Use
3326 is_watchpoint.
3327 (clear_command): Use is_watchpoint.
3328 (do_enable_breakpoint): Use is_watchpoint.
3329
cb7db0f2
MF
33302010-04-16 Mike Frysinger <vapier@gentoo.org>
3331
3332 * solib-frv.c (enable_break1_done): Delete.
3333 (enable_break2): Do not check enable_break1_done. Move the
3334 enable_break2_done setting and call to
3335 remove_solib_event_breakpoints() to the end. Return without
3336 warning when the contents of _dl_debug_addr are 0.
3337 (enable_break): Do not set enable_break1_done.
3338 (frv_clear_solib): Likewise.
3339
d77b48cf
KB
33402010-04-16 Kevin Buettner <kevinb@redhat.com>
3341
3342 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3343 instead of an error if no PLT entry is found. Return a
3344 potentially useful result.
3345 (m32c_m16c_pointer_to_address): Add code to search for function
3346 address when no .plt entry is found.
3347
f90824dc
SS
33482010-04-16 Stan Shebs <stan@codesourcery.com>
3349
3350 * tracepoint.c (trace_variable_command): Run a cleanup.
3351
9b79b476
PM
33522010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3353
3354 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3355
711e434b
PM
33562010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3357
3358 Support for Windows OS Thread Information Block.
3359 * NEWS: Document new feature.
3360 * remote.c (PACKET_qGetTIBAddr): New enum element.
3361 (remote_get_tib_address): New function.
3362 (init_remote_ops): Set to_get_tib_address field
3363 to remote_get_tib_address.
3364 (_initialize_remote): Add add_packet_config_cmd
3365 for PACKET_qGetTIBAddr.
3366 * target.c (update_current_target): Set default value for
3367 new to_get_tib_address field.
3368 * target.h (target_ops): New field to_get_tib_address.
3369 (target_get_tib_address): New macro.
3370 * windows-nat.c (thread_info): Add thread_local_base field.
3371 (windows_add_thread): Add tlb argument of type 'void *'.
3372 (fake_create_process): Adapt windows_add_thread call.
3373 (get_windows_debug_event): Idem.
3374 (windows_get_tib_address): New function.
3375 (init_windows_ops): Set to_get_tib_address field
3376 to remote_get_tib_address.
3377 (_initialize_windows_nat): Replace info_w32_cmdlist
3378 initialization by a call to init_w32_command_list.
3379 (info_w32_command, info_w32_cmdlist): Removed from here...
3380 to windows-tdep.c file.
3381 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 3382 (init_w32_command_list): New external function
711e434b
PM
3383 declaration.
3384 * windows-tdep.c: Add several headers.
3385 (info_w32_cmdlist): to here, made global.
3386 (thread_information_32): New struct.
3387 (thread_information_64): New struct.
3388 (TIB_NAME): New char array.
3389 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3390 (maint_display_all_tib): New static variable.
3391 (windows_get_tlb_type): New function.
3392 (tlb_value_read, tlb_value_write): New functions.
3393 (tlb_value_funcs): New static struct.
3394 (tlb_make_value): New function.
3395 (display_one_tib): New function.
3396 (display_tib): New function.
3397 (show_maint_show_all_tib):New function.
3398 (info_w32_command): Moved from windows-nat.c.
3399 (init_w32_command_list): New function.
3400 (_initialize_windows_tdep): New function.
3401 New "maint set/show show-all-tib" command
3402 New "$_tlb" internal variable.
3403
cae3f17b
JB
34042010-04-16 Joel Brobecker <brobecker@adacore.com>
3405
3406 * tui/tui-regs.c (tui_display_register): Add comment about
3407 a couple of casts.
3408 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3409
2ce6d6bf
SS
34102010-04-15 Stan Shebs <stan@codesourcery.com>
3411
3412 * frame.c: Include tracepoint.h.
3413 (get_current_frame): Allow a trace frame to be an alternate source
3414 of stack frame data.
3415 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3416 it won't succeed.
3417
7e559477
PA
34182010-04-15 Pedro Alves <pedro@codesourcery.com>
3419
3420 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3421 flags.
3422 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3423
3f7b2faa
DE
34242010-04-15 Doug Evans <dje@google.com>
3425
fa33c3cd
DE
3426 * NEWS: Add entry for python program space support.
3427 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3428 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3429 (py-progspace.o): New rule.
3430 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3431 function.
3432 (find_pretty_printer_from_progspace): New function.
3433 (find_pretty_printer_from_gdb): New function.
3434 (find_pretty_printer): Rewrite.
3435 * python/py-progspace.c: New file.
3436 * python/python-internal.h (program_space): Add forward decl.
3437 (pspace_to_pspace_object, pspy_get_printers): Declare.
3438 (gdbpy_initialize_pspace): Declare.
3439 * python/python.c: #include "progspace.h".
3440 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3441 (_initialize_python): Call gdbpy_initialize_pspace.
3442 (GdbMethods): Add current_progspace, progspaces.
3443
3f7b2faa
DE
3444 Add -s option to source command.
3445 * NEWS: Document new option.
3446 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3447 Delete from_tty and cleanupp args. Split filep arg into file and
3448 full_pathp. New arg search_path.
3449 (source_script_from_stream): New function.
3450 (source_script_with_search): New function.
3451 (source_script): Rewrite.
3452 (source_command): Parse "-s" option.
3453 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3454 * python/python.c (source_python_script): Make file arg a const char *.
3455 Don't call fclose, leave for caller.
3456 * python/python.h (source_python_script): Update.
3457
a86988f2
PA
34582010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3459 Pedro Alves <pedro@codesourcery.com>
3460
3461 Avoid rereading shared libraries that haven't changed.
3462
3463 * solib.c (free_so_symbols): New function, from ...
3464 (free_so): ... here. Call it.
3465 (solib_read_symbols): Don't warn here if symbols have already been
3466 loaded.
3467 (solib_add): Warn here instead, if a pattern was specified.
3468 (reload_shared_libraries_1): New.
3469 (reload_shared_libraries): Rewrite to not fetch the library list.
3470
e6d9b9c2
DE
34712010-04-14 Doug Evans <dje@google.com>
3472
589390d6 3473 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
3474 concatenating string to search path.
3475
516ba659
PA
34762010-04-14 Pedro Alves <pedro@codesourcery.com>
3477
3478 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3479 * objfiles.c (gdb_bfd_close_or_warn): New.
3480 * corelow.c: Include objfiles.h
3481 (core_close): Use gdb_bfd_close_or_warn.
3482 * elfread.c (build_id_verify): Ditto.
3483 * exec.c (exec_close, exec_close_1): Ditto.
3484
048d532d
PA
34852010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3486 Pedro Alves <pedro@codesourcery.com>
3487
3488 Group errors for many missing shared libraries.
3489
3490 * solist.h (struct so_list): Remove from_tty.
3491 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3492 (solib_map_sections): Take so_list argument. Return 0 if we
3493 failed to open a BFD. Add target sections here.
3494 (symbol_add_stub): Delete.
3495 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3496 not from_tty copied from the so_list. Don't warn a second time
3497 for a missing library.
3498 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3499 add to the section table here. Print out a single warning for all
3500 missing libraries.
3501 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3502 flags.
3503
044c0f87
PM
35042010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3505
3506 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3507 error/warning messages. Capitalize and use complete sentences.
3508 (blpy_block_syms_iternext): Likewise.
3509 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3510 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3511 (frame_info_to_frame_object, frapy_read_var)
3512 (gdbpy_frame_stop_reason_string): Likewise.
3513 * python/py-lazy-string.c (stpy_convert_to_value)
3514 (gdbpy_create_lazy_string_object): Likewise.
3515 * python/py-objfile.c (objfpy_set_printers): Likewise.
3516 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3517 * python/python.c (parameter_to_python): Likewise.
3518 * python/py-type.c (typy_range, typy_target): Likewise.
3519 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3520 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3521
3522
79f283fe
PM
35232010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3524
3525 PR python/11381
3526
3527 * python/py-prettyprint.c (pretty_print_one_value): Test for
3528 Py_None.
3529 (print_string_repr): Test for Py_None. Set flags accordingly.
3530 Return value depending on return type.
3531 (print_children): Take a value indicating whether data was printed
3532 before this function was called. Alter output accordingly.
3533 (apply_val_pretty_printer): Capture return value from
3534 print_string_repr and pass to print_children.
3535
4ac5d44e
MK
35362010-04-13 Mark Kettenis <kettenis@gnu.org>
3537
e1caee70 3538 PR corefiles/11481
4ac5d44e
MK
3539 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3540 register note sections.
3541 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3542 New variables.
3543 (i386_linux_init_abi): Install list of supported register note
3544 sections that matches the target description.
3545
ad91cd99
PA
35462010-04-13 Pedro Alves <pedro@codesourcery.com>
3547
3548 * remote.c (remote_get_noisy_reply): Don't error out on empty
3549 replies.
3550 (remote_start_remote): Update and merge tracepoints and trace
3551 state variables as long as the target supports tracepoints.
3552 (remote_trace_init): Fix prototype.
3553 (remote_download_trace_state_variable): Validate reply.
3554 (remote_trace_set_readonly_regions): Fix prototype.
3555 (remote_trace_start): Fix prototype. Check for empty reply.
3556 (remote_get_trace_status): Small cleanup.
3557 (remote_trace_stop): Fix prototype. Check for empty reply.
3558 (remote_trace_find): Check for empty reply.
3559 (remote_save_trace_data): Validate reply.
3560 (remote_set_disconnected_tracing): Check for empty reply, and
3561 validate reply.
3562 (remote_set_circular_trace_buffer): Ditto.
3563
ae3bccd4
PM
35642010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3565
3566 Suppress unused value warning during compilation.
3567 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3568 calls to void.
3569 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3570
523136f2
SS
35712010-04-12 Stan Shebs <stan@codesourcery.com>
3572
3573 * tracepoint.c (tfile_xfer_partial): Check read result.
3574
0d18d720
MF
35752010-04-12 Mike Frysinger <vapier@gentoo.org>
3576
3577 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3578 * remote-sim.c (gdbsim_files_info): Likewise.
3579
3b273a55
RE
35802010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3581
3582 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3583 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3584 variable.
3585 (fetch_vfp_registers): New function to fetch VFP registers.
3586 (store_vfp_registers): New function to store VFP registers.
3587 (arm_linux_fetch_inferior_registers): Add support for VFP
3588 registers.
3589 (arm_linux_store_inferior_registers): Likewise.
3590 (arm_linux_read_description): Likewise.
3591 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3592 until we need it.
3593
778c7095
L
35942010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3595
3596 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3597 tdep.
3598 (amd64_collect_xstateregset): Likewise.
3599
2114d44c
SS
36002010-04-09 Stan Shebs <stan@codesourcery.com>
3601
87290684
SS
3602 * tracepoint.c (trace_status_mi): Report frames created.
3603
2114d44c
SS
3604 * tracepoint.c (trace_dump_command): Include default-collect
3605 expressions.
3606
86da934b
UW
36072010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3608
3609 * symtab.c (find_function_start_sal): Never return SAL pointing
3610 before function start address, even if line info is missing.
3611
2d6e647a 36122010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
3613
3614 * NEWS: Mention tracepoints support.
3615
a97153c7
PA
36162010-04-09 Pedro Alves <pedro@codesourcery.com>
3617
3618 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3619 circular trace buffer statuses.
3620
7a66d603
JK
36212010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3622
3623 * config/djgpp/fnchange.lst: Fix typo in translations for
3624 symbol-without-target_section.exp and symbol-without-target_section.c.
3625
2566ad2d
PA
36262010-04-09 Pedro Alves <pedro@codesourcery.com>
3627
3628 * breakpoint.c (condition_command): Pass condition expression to
3629 set_breakpoint_condition stripped from breakpoint number.
3630
adc36818
PM
36312010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3632 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 3633 Tom Tromey <tromey@redhat.com>
adc36818
PM
3634
3635 * breakpoint.c (condition_command): Simplify. Move condition
3636 setting code to ...
3637 (set_breakpoint_condition): ... here. New function.
3638 * breakpoint.h (set_breakpoint_condition): Declare.
3639 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3640 (SUBDIR_PYTHON_SRCS): Likewise.
3641 (py-breakpoint.o): New rule.
3642 * python/py-breakpoint.c: New file.
3643 * python/python-internal.h (gdbpy_breakpoints)
3644 (gdbpy_initialize_breakpoints): Declare.
3645 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3646
219f2f23
PA
36472010-04-09 Pedro Alves <pedro@codesourcery.com>
3648
3649 * regformats/regdat.sh: Include server.h. Don't include
3650 regcache.h.
3651
33da3f1c
SS
36522010-04-08 Stan Shebs <stan@codesourcery.com>
3653 Pedro Alves <pedro@codesourcery.com>
3654
3655 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3656 and circular_buffer.
3657 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3658 * tracepoint.c (trace_status_command): Display target's status for
3659 disconnected tracing and circular buffer.
3660 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3661 query for non-disconnected-tracing case, remove the stop_tracing
3662 call.
3663 (tfile_open): Clear disconnected and circular buffer status.
3664 (trace_save): Save disconnected and circular buffer status.
3665 (parse_trace_status): Parse disconnected and circular buffer status,
3666 also recognize disconnected as a stop reason.
3667 * remote.c (remote_set_disconnected_tracing): Only set
3668 QTDisconnected if the remote end supports disconnected tracing.
3669 Warn otherwise, if trying to enable disconnected tracing.
3670 * infcmd.c (detach_command): Update disconnect_tracing call.
3671 * cli/cli-cmds.c (quit_command): Ditto.
3672
4e4d8374
L
36732010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3674
3675 * i387-tdep.c (i387_collect_xsave): Replace abort with
3676 internal_error.
3677
ad443146
SS
36782010-04-08 Stan Shebs <stan@codesourcery.com>
3679
3680 * breakpoint.c (default_collect_info): New function.
3681 (breakpoints_info): Call it.
3682 (maintenance_info_breakpoints): Ditto.
3683 (tracepoints_info): Ditto.
3684
40936b0d
L
36852010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3686
3687 * i387-tdep.c (i387_collect_xsave): Re-indent.
3688
3a13a53b
L
36892010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3690
3691 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3692 if HAVE_PTRACE_GETFPXREGS is defined.
3693 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3694 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3695
3696 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3697 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3698 if .reg-xfp section doesn't exist.
3699 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3700
3701 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3702
3703 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3704 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3705 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3706 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3707 (i386_gdbarch_init): Update comments.
3708 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3709
3710 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3711
3712 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3713
3714 * features/Makefile (i386/i386-mmx-expedite): New.
3715 (i386/i386-mmx-linux-expedite): Likewise.
3716 ($(outdir)/i386/i386-mmx.dat): Likewise.
3717 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3718
3719 * features/i386/i386-mmx-linux.c: New.
3720 * features/i386/i386-mmx-linux.xml: Likewise.
3721 * features/i386/i386-mmx.c: Likewise.
3722 * features/i386/i386-mmx.xml: Likewise.
3723 * regformats/i386/i386-mmx-linux.dat: Likewise.
3724 * regformats/i386/i386-mmx.dat: Likewise.
3725
3726 * features/Makefile (WHICH): Add i386/i386-mmx and
3727 i386/i386-mmx-linux.
3728
08001717
DE
37292010-04-08 Doug Evans <dje@google.com>
3730
3731 * source.c (openp): Skip $cdir in PATH.
3732
fff5cc64
PM
37332010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3734
3735 PR python/11417
fff5cc64 3736 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
3737 a NULL address.
3738 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3739 address and a zero length.
fff5cc64 3740
f8c4f480
HZ
37412010-04-08 Hui Zhu <teawater@gmail.com>
3742
3743 * i386-tdep.c (i386_process_record): Add support for insn
3744 rdtsc.
3745
eb5cda86
DE
37462010-04-07 Doug Evans <dje@google.com>
3747
3748 * python/python.c (source_python_script): Use ensure_python_env
3749 to prepare environment for script.
3750
a055a187
L
37512010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3752
3753 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3754 <sys/uio.h> and "i386-xstate.h".
3755 (PTRACE_GETREGSET): New.
3756 (PTRACE_SETREGSET): Likewise.
3757 (have_ptrace_getregset): Likewise.
3758 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3759 registers.
3760 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3761 registers.
3762 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3763 (amd64_linux_store_inferior_registers): Likewise.
3764 (amd64_linux_read_description): Check and enable AVX target
3765 descriptions.
3766
3767 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3768 and "features/i386/amd64-avx-linux.c".
3769 (amd64_linux_regset_sections): New.
3770 (amd64_linux_core_read_description): Check and enable AVX
3771 target description.
3772 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3773 set_gdbarch_core_regset_sections.
3774 (_initialize_amd64_linux_tdep): Call
3775 initialize_tdesc_amd64_avx_linux.
3776
3777 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3778 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3779 (tdesc_amd64_avx_linux): New.
3780 (amd64_linux_update_xstateregset): Likewise.
3781
3782 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3783 (amd64_ymm_names): New.
3784 (amd64_ymmh_names): Likewise.
3785 (amd64_register_name): Likewise.
3786 (amd64_supply_xstateregset): Likewise.
3787 (amd64_collect_xstateregset): Likewise.
3788 (amd64_supply_xsave): Likewise.
3789 (amd64_collect_xsave): Likewise.
3790 (AMD64_NUM_REGS): Removed.
3791 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3792 %xmmN if AVX is available.
3793 (amd64_pseudo_register_name): Support pseudo YMM registers.
3794 (amd64_regset_from_core_section): Support .reg-xstate section.
3795 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3796 and ymm0h_regnum. Call set_gdbarch_register_name.
3797 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3798
3799 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3800 AMD64_YMM15H_REGNUM.
3801 (AMD64_NUM_REGS): New.
3802 (amd64_supply_xsave): Likewise.
3803 (amd64_collect_xsave): Likewise.
3804 (amd64_register_name): Removed.
3805 (amd64_register_type): Likewise.
3806
31aeac78
L
38072010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3808
3809 * i387-tdep.c: Include "i386-xstate.h".
3810 (XSAVE_XSTATE_BV_ADDR): New.
3811 (xsave_avxh_offset): Likewise.
3812 (XSAVE_AVXH_ADDR): Likewise.
3813 (i387_supply_xsave): Likewise.
3814 (i387_collect_xsave): Likewise.
3815
3816 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3817 (I387_YMM0H_REGNUM): Likewise.
3818 (I387_YMMENDH_REGNUM): Likewise.
3819 (i387_supply_xsave): Likewise.
3820 (i387_collect_xsave): Likewise.
3821
c131fcee
L
38222010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3823
3824 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3825 <sys/uio.h> and "i386-xstate.h".
3826 (PTRACE_GETREGSET): New.
3827 (PTRACE_SETREGSET): Likewise.
3828 (fetch_xstateregs): Likewise.
3829 (store_xstateregs): Likewise.
3830 (GETXSTATEREGS_SUPPLIES): Likewise.
3831 (regmap): Include 8 upper YMM registers.
3832 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3833 state.
3834 (i386_linux_store_inferior_registers): Likewise.
3835 (i386_linux_read_description): Check and enable AVX target
3836 descriptions.
3837
3838 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3839 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3840 (i386_linux_regset_sections): Add ".reg-xstate".
3841 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3842 (i386_linux_core_read_xcr0): New.
3843 (i386_linux_core_read_description): Check and enable AVX target
3844 description.
3845 (i386_linux_init_abi): Set xsave_xcr0_offset.
3846 (_initialize_i386_linux_tdep): Call
3847 initialize_tdesc_i386_avx_linux.
3848
3849 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3850 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3851 (i386_linux_core_read_xcr0): New.
3852 (tdesc_i386_avx_linux): Likewise.
3853 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3854
3855 * i386-tdep.c: Include "i386-xstate.h" and
3856 "features/i386/i386-avx.c".
3857 (i386_ymm_names): New.
3858 (i386_ymmh_names): Likewise.
3859 (i386_ymmh_regnum_p): Likewise.
3860 (i386_ymm_regnum_p): Likewise.
3861 (i386_xmm_regnum_p): Likewise.
3862 (i386_register_name): Likewise.
3863 (i386_ymm_type): Likewise.
3864 (i386_supply_xstateregset): Likewise.
3865 (i386_collect_xstateregset): Likewise.
3866 (i386_sse_regnum_p): Removed.
3867 (i386_pseudo_register_name): Support pseudo YMM registers.
3868 (i386_pseudo_register_type): Likewise.
3869 (i386_pseudo_register_read): Likewise.
3870 (i386_pseudo_register_write): Likewise.
3871 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3872 %xmmN if AVX is available.
3873 (i386_regset_from_core_section): Support .reg-xstate section.
3874 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3875 (i386_process_record): Replace i386_sse_regnum_p with
3876 i386_xmm_regnum_p.
3877 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3878 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 3879 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
3880 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3881 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3882 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3883 Set ymm0_regnum.
3884 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3885
3886 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3887 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3888 i386_ymm_type.
3889 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3890 (I386_AVX_NUM_REGS): New.
3891 (i386_xmm_regnum_p): Likewise.
3892 (i386_ymm_regnum_p): Likewise.
3893 (i386_ymmh_regnum_p): Likewise.
3894
3895 * common/i386-xstate.h: New.
3896
98adf0f3
L
38972010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3898
3899 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3900
3901 * features/Makefile (WHICH): Add i386/i386-avx,
3902 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3903 (i386/i386-avx-expedite): New.
3904 (i386/i386-avx-linux-expedite): Likewise.
3905 (i386/x86-64-avx-expedite):Likewise.
3906 (i386/x86-64-avx-linux-expedite): Likewise.
3907 ($(outdir)/i386/i386-avx.dat): New dependency.
3908 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3909 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3910 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3911
3912 * features/i386/32bit-avx.xml: New.
3913 * features/i386/64bit-avx.xml: Likewise.
3914 * features/i386/i386-avx-linux.c: Likewise.
3915 * features/i386/i386-avx-linux.xml: Likewise.
3916 * features/i386/i386-avx.c: Likewise.
3917 * features/i386/i386-avx.xml: Likewise.
3918 * features/i386/x86-64-avx-linux.c: Likewise.
3919 * features/i386/x86-64-avx-linux.xml: Likewise.
3920 * features/i386/x86-64-avx.c: Likewise.
3921 * features/i386/x86-64-avx.xml: Likewise.
3922 * regformats/i386/i386-avx-linux.dat: Likewise.
3923 * regformats/i386/i386-avx.dat: Likewise.
3924 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3925 * regformats/i386/x86-64-avx.dat: Likewise.
3926
05159abe
DE
39272010-04-07 Doug Evans <dje@google.com>
3928
3929 * top.c (source_file_name): Make const char *.
3930 * top.h (source_file_name): Update.
3931 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3932 const char *.
3933 (script_from_file): Change `file' arg to const char *.
3934 * cli/cli-script.h (script_from_file): Update.
3935
96e39866
DE
39362010-04-06 Doug Evans <dje@google.com>
3937
3938 * cli/cli-cmds.c (source_command): Run cleanups.
3939
3149d8c1
SS
39402010-04-06 Stan Shebs <stan@codesourcery.com>
3941
3942 * defs.h (char_ptr): Move typedef here from...
3943 * ada-lang.c (char_ptr): Remove.
3944 * charset.c (char_ptr): Remove.
3945 * tracepoint.h (struct uploaded_string): Remove.
3946 (struct uploaded_tp): Use vectors for string arrays.
3947 * tracepoint.c (trace_save): Use vectors of actions.
3948 (parse_tracepoint_definition): Ditto.
3949 (get_uploaded_tp): Clear vectors.
3950 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3951 (next_cmd): Change to an int.
3952 (read_next_cmd): Use vector of command strings.
3953
4cc23ede
DE
39542010-04-06 Doug Evans <dje@google.com>
3955
3956 * top.h (source_script, cd_command): Delete.
3957 * main.c: #include "cli/cli-cmds.h"
3958
bd333fb7
KB
39592010-04-06 Kevin Buettner <kevinb@redhat.com>
3960
3961 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3962 type in bytes, not bits.
3963
ec8a089a
PM
39642010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3965
3966 * stabsread.c (define_symbol): Add support for char
3967 and string constants.
3968
2244ba2e
PM
39692010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3970
3971 Remove remaining "%ll" uses.
3972 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3973 hex_string call.
3974 * rs6000-nat.c (rs6000_ptrace64): Idem.
3975 * solib-pa64.c (pa64_current_sos): Idem.
3976 * solib-spu.c (spu_current_sos): Idem.
3977 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3978 plongest call.
3979 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3980 phex (VAR, 8) call.
3981 * sh64-tdep.c (sh64_show_media_regs): Idem.
3982
fce3c1f0
SS
39832010-04-05 Stan Shebs <stan@codesourcery.com>
3984
3985 * tracepoint.c: Include gdbcore.h.
3986 (tfile_xfer_partial): Return partial results, also try reading
3987 from executable.
3988 (tfile_has_all_memory): New function.
3989 (init_tfile_ops): Use it.
3990
626ea16d
SDJ
39912010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3992
3993 PR gdb/10736:
3994 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3995 the changes in data-directory.
3996 (init_sysinfo): Reload the syscall XML file if the data-directory
3997 has changed.
3998
1f7ccab2
JK
39992010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4000
4001 Code cleanup.
4002 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
4003
d77f58be
SS
40042010-04-04 Stan Shebs <stan@codesourcery.com>
4005 Nathan Sidwell <nathan@codesourcery.com>
4006
4007 * breakpoint.c (breakpoint_1): Add filter argument, return number of
4008 breakpoints printed.
4009 (is_hardware_watchpoint): Make argument const.
4010 (is_watchpoint): Ditto.
4011 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
4012 use it everywhere.
4013 (breakpoints_info): Pass NULL to breakpoint_1.
4014 (maintenance_info_breakpoints): Ditto.
4015 (watchpoints_info): New function.
4016 (tracepoints_info): Use breakpoint_1 filter.
4017 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
4018 (_initialize_breakpoint): Make "info watchpoints" its own command.
4019 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
4020 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
4021
af54718e
SS
40222010-04-04 Stan Shebs <stan@codesourcery.com>
4023
4024 * tracepoint.c (tfile_fetch_registers): Add fallback case.
4025
74d1f91e
JK
40262010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4027
4028 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
4029 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
4030
91d91ceb
JK
40312010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
4034 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
4035
60531b24
JK
40362010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4037
4038 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
4039 code form.
4040
a3c4230a
HZ
40412010-04-02 Hui Zhu <teawater@gmail.com>
4042
4043 * i386-tdep.c (OT_DQUAD): New enum.
4044 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
4045 SSE3, SSSE3 and SSE4.
4046
b15758fe
HZ
40472010-04-02 Hui Zhu <teawater@gmail.com>
4048
4049 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
4050 "*addr = 0".
4051
afd02f27
PA
40522010-04-02 Pedro Alves <pedro@codesourcery.com>
4053
4054 * tracepoint.c (trace_dump_actions): New, factored out from
4055 trace_dump_command, and adjusted to recurse into while-stepping's
4056 action list.
4057 (trace_dump_command): Use it.
4058
5cea2a26
PA
40592010-04-02 Pedro Alves <pedro@codesourcery.com>
4060
4061 * breakpoint.h (struct counted_command_line): Moved definition to
4062 breakpoint.c, and forward declare.
4063 (breakpoint_commands): Declare.
4064 * breakpoint.c (struct counted_command_line): Moved here.
4065 (breakpoint_commands): New.
4066 * tracepoint.c (encode_actions): Use breakpoint_commands.
4067 * remote.c (remote_download_tracepoint): Ditto.
4068
7c47795c
L
40692010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4070
4071 * remote.c (remote_parse_stop_reply): Use hex_string instead
4072 of phex_nz for error.
4073
fff87407
SS
40742010-04-01 Stan Shebs <stan@codesourcery.com>
4075 Nathan Sidwell <nathan@codesourcery.com>
4076
4077 * tracepoint.h (enum actionline_type): Remove.
4078 (validate_actionline): Change return to void.
4079 * tracepoint.c (report_agent_reqs_errors): New function.
4080 (validate_actionline): Call it, change return to void, report errors
4081 more consistently.
4082 (collect_symbol): Call report_agent_reqs_errors.
4083 (encode_actions_1): Ditto.
4084 (encode_actions): Don't expect a result from validate_actionline.
4085
615bcdef
SS
40862010-04-01 Stan Shebs <stan@codesourcery.com>
4087
4088 * tracepoint.c (trace_start_command): Confirm if trace is running.
4089 (trace_stop_command): Error if trace not running.
4090
fe01d668
L
40912010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4092
4093 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4094 (AMD64_NUM_LOWER_BYTE_REGS): New.
4095 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4096 (amd64_pseudo_register_write): Likewise.
4097 (amd64_init_abi): Set num_byte_regs to 20.
4098
86b17b60
PA
40992010-04-01 Pedro Alves <pedro@codesourcery.com>
4100
4101 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4102 (prev_breakpoint_count): New.
4103 (set_breakpoint_count): Adjust.
4104 (rbreak_start_breakpoint_count): New.
4105 (start_rbreak_breakpoints): Adjust.
4106 (end_rbreak_breakpoints): Adjust.
4107 (struct commands_info) <arg>: New field.
4108 (do_map_commands_command): Tweak output to include breakpoint spec
4109 range.
4110 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4111 ARG was empty on entry. Set INFO's arg.
4112 (create_breakpoint): Adjust.
4113
4114 * NEWS: Clarify `commands' changes.
4115
2c58c0a9
PA
41162010-04-01 Pedro Alves <pedro@codesourcery.com>
4117
4118 * tracepoint.c: Include stack.h.
4119 (struct add_local_symbols_data): New.
4120 (do_collect_symbol): New.
4121 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4122 iterate_over_block_local_vars.
4123 * stack.c (print_block_frame_locals): Rewrite as ...
4124 (iterate_over_block_locals): ... this. Take a callback function
4125 pointer and generic data pointer, and call that instead of
4126 print_variable_and_value.
4127 (struct print_variable_and_value_data): New.
4128 (do_print_variable_and_value): New.
4129 (iterate_over_block_local_vars): New, abstracted out from
4130 print_frame_local_vars.
4131 (print_frame_local_vars): Rewrite using
4132 iterate_over_block_local_vars.
4133 (iterate_over_block_arg_vars): New, abstracted out from
4134 print_frame_arg_vars.
4135 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4136 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4137 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4138
d476da0e
RE
41392010-03-31 Richard Earnshaw <rearnsha@arm.com>
4140
4141 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 4142 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
4143 PC register.
4144
8072405b
JK
41452010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4146
4147 Fix crash on reading wrong function declaration DWARF.
4148 * dwarf2read.c (read_subroutine_type): New variable void_type.
4149 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4150 more close to their use.
4151
8bf6485c
SS
41522010-03-31 Stan Shebs <stan@codesourcery.com>
4153
4154 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 4155 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
4156 * tracepoint.c (save_trace_state_variables): New function.
4157 * tracepoint.h (save_trace_state_variables): Declare it.
4158
2ae2a0b7
PM
41592010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4160
1a161f72 4161 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 4162
86ffb506
KS
41632010-03-30 Keith Seitz <keiths@redhat.com>
4164
4165 * c-typeprint.c (c_type_print_args): Don't print "void"
4166 for java, regardless of whether it is TYPE_PROTOTYPED.
4167 Use the passed-in language instead of current_language.
4168 (c_type_print_varspec_suffix): Use current_language instead
4169 of assuming language_c.
4170 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4171 any return type specifier from the physname.
4172
956c2c8b
PA
41732010-03-30 Pedro Alves <pedro@codesourcery.com>
4174
4175 * tui/tui-interp.c (tui_is_toplevel): New.
4176 (tui_init): Set it.
4177 (tui_allowed_p): New.
4178 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4179 enabling it.
4180 * tui/tui.h (tui_allowed_p): Declare.
4181
98e5a990
TT
41822010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4183
4184 * serial.h: Include winsock2.h before windows.h.
4185
c8d5aac9
L
41862010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4187
4188 * NEWS: Mention xmlRegisters= in qSupported packet.
4189
4190 * i386-tdep.c: Include "remote.h".
4191 (_initialize_i386_tdep): Call register_remote_support_xml.
4192
4193 * remote.c (remote_support_xml): New.
4194 (register_remote_support_xml): Likewise.
4195 (remote_query_supported_append): Likewise.
4196 (remote_query_supported): Support remote_support_xml.
4197
4198 * remote.h (register_remote_support_xml): New.
4199
76a2b958
SS
42002010-03-29 Stan Shebs <stan@codesourcery.com>
4201
42e08e69
SS
4202 * tracepoint.c (trace_find_line_command): Remove dead code.
4203
409873ef
SS
4204 * tracepoint.h (struct uploaded_string): New struct.
4205 (struct uploaded_tp): New fields for source strings.
4206 * breakpoint.c (this_utp, next_cmd): New globals.
4207 (read_uploaded_action): New function.
4208 (create_tracepoint_from_upload): Fill in more parts
4209 of a tracepoint.
4210 * tracepoint.c (encode_source_string): New function.
4211 (trace_save): Write out source strings, fix error checks.
4212 (parse_tracepoint_definition): Add source string parsing.
4213 * remote.c (PACKET_TracepointSource): New packet type.
4214 (remote_download_command_source): New function.
4215 (remote_download_tracepoint): Download source pieces also.
4216 (_initialize_remote): Add packet config command.
4217
a0405854
SS
4218 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4219 expression handler.
4220
76a2b958
SS
4221 * tracepoint.c (start_tracing): Check tracepoints before sending
4222 commands to target, don't start if all tracepoints disabled.
4223
d350db38
PA
42242010-03-28 Pedro Alves <pedro@codesourcery.com>
4225
12f2d601 4226 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 4227
8b9b7ef8
SS
42282010-03-26 Stan Shebs <stan@codesourcery.com>
4229
4230 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4231
9766ced4
SS
42322010-03-26 Tom Tromey <tromey@redhat.com>
4233
4234 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4235
059acae7
UW
42362010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4237
4238 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4239 (skip_prologue_sal): Remove local definition.
4240 (resolve_sal_pc): Remove now unnecessary code.
4241 * linespec.c (minsym_found): Call skip_prologue_sal.
4242 * symtab.c (find_function_start_pc): Remove.
4243 (find_function_start_sal): Extract prologue skipping into ...
4244 (skip_prologue_sal): ... this new function. Handle code both
4245 with and without debug info. Respect SAL's explicit_pc and
4246 explicit_line flags. Inline old find_function_start_pc.
4247 * symtab.h (find_function_start_pc): Remove.
4248 (skip_prologue_sal): Add prototype.
4249
4a811a97
UW
42502010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4251
4252 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4253 for DW_TAG_imported_module children.
4254
907af001
UW
42552010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4256
4257 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4258 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4259 * completer.c (add_struct_fields): Fix inverted logic.
4260
dde2d684
UW
42612010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4262
4263 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4264
a609a0c8
PA
42652010-03-26 Pedro Alves <pedro@codesourcery.com>
4266
4267 * tracepoint.c (current_trace_status): Don't make sure error_desc
4268 is non-NULL here.
4269 (parse_trace_status): Release a previous error_desc string, and
4270 set it to NULL by default. If stop reason is tracepoint_error,
4271 make sure error_desc is not left NULL.
4272
610197fd
PA
42732010-03-26 Pedro Alves <pedro@codesourcery.com>
4274
4275 * tracepoint.c (trace_save): Remove X from tracepoint error
4276 description.
4277
99b5e152
PA
42782010-03-26 Pedro Alves <pedro@codesourcery.com>
4279
4280 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4281 the terror description. Don't expect an X prefix.
4282
6c28cbf2
SS
42832010-03-25 Stan Shebs <stan@codesourcery.com>
4284
4285 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4286 (struct trace_status): New field error_desc.
4287 * tracepoint.c (stop_reason_names): Add terror.
4288 (current_trace_status): Ensure non-NULL error description.
4289 (trace_status_command): Add error report.
4290 (trace_status_mi): Ditto.
4291 (trace_save): Add special case for error description.
4292 (parse_trace_status): Add case for errors.
4293
418835cc
KS
42942010-03-25 Keith Seitz <keiths@redhat.com>
4295
4296 * dwarf2read.c (read_subroutine_type): If the compilation unit
4297 language is Java, mark any formal parameter named "this" as
4298 artificial (GCC/43521).
4299 (dwarf2_name): Add special handling for Java constructors.
4300
aa7d318d
TT
43012010-03-25 Tom Tromey <tromey@redhat.com>
4302
4303 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4304 * infrun.c (handle_inferior_event): Change initialization of
4305 stop_stack_dummy.
4306 (handle_inferior_event): Change assignment to stop_stack_dummy.
4307 (normal_stop): Update use of stop_stack_dummy.
4308 (struct inferior_status) <stop_stack_dummy>: Change type.
4309 * inferior.h (stop_stack_dummy): Update.
4310 * infcmd.c (stop_stack_dummy): Change type.
4311 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4312 function.
4313 (call_function_by_hand): Call set_std_terminate_breakpoint.
4314 Rewrite std::terminate handling.
4315 * breakpoint.h (enum bptype) <bp_std_terminate,
4316 bp_std_terminate_master>: New.
4317 (enum stop_stack_kind): New.
4318 (struct bpstat_what) <call_dummy>: Change type.
4319 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4320 Declare.
4321 * breakpoint.c (create_std_terminate_master_breakpoint): New
4322 function.
4323 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4324 Call create_std_terminate_master_breakpoint.
4325 (print_it_typical): Handle new breakpoint kinds.
4326 (bpstat_stop_status): Handle bp_std_terminate_master.
4327 (bpstat_what): Correctly set call_dummy field. Handle
4328 bp_std_terminate_master and bp_std_terminate.
4329 (print_one_breakpoint_location): Update.
4330 (allocate_bp_location): Update.
4331 (set_std_terminate_breakpoint): New function.
4332 (delete_std_terminate_breakpoint): Likewise.
4333 (create_thread_event_breakpoint): Update.
4334 (delete_command): Update.
4335 (breakpoint_re_set_one): Update.
4336 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4337
82ccf5a5
JK
43382010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4339
4340 * symfile.c (build_section_addr_info_from_bfd): New.
4341 (build_section_addr_info_from_objfile): Base it on
4342 build_section_addr_info_from_bfd.
4343 (addrs_section_compar, addrs_section_sort): New.
4344 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4345 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4346 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4347
737c4c52
MS
43482010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4349
8d95cc3b 4350 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
4351 Remove unused local variable.
4352
95a42b64
TT
43532010-03-24 Tom Tromey <tromey@redhat.com>
4354
4355 PR breakpoints/9352:
4356 * NEWS: Mention changes to `commands' and `rbreak'.
4357 * symtab.c (do_end_rbreak_breakpoints): New function.
4358 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4359 end_rbreak_breakpoints.
4360 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4361 (set_breakpoint_count): Likewise. Clear last_was_multi.
4362 (multi_start, multi_end, last_was_multi): New globals.
4363 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4364 functions.
4365 (struct commands_info): New
4366 (do_map_commands_command): New function.
4367 (commands_command_1): New function.
4368 (commands_command): Use it.
4369 (commands_from_control_command): Likewise.
4370 (do_delete_breakpoint): New function.
4371 (delete_command): Use it.
4372 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4373 (do_map_disable_breakpoint): New function.
4374 (disable_command): Use it.
4375 (do_map_enable_breakpoint): New function.
4376 (enable_command): Use it.
4377 (enable_once_breakpoint): Add argument.
4378 (enable_once_command): Update.
4379 (enable_delete_breakpoint): Add argument.
4380 (enable_delete_command): Update.
4381 (break_command_really): Set last_was_multi when needed.
4382 (check_tracepoint_command): Fix formatting.
4383 (validate_commands_for_breakpoint): New function.
4384 (breakpoint_set_commands): Use it.
4385 (tracepoint_save_command): Update.
4386 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4387 Declare.
4388
9add0f1b
TT
43892010-03-24 Tom Tromey <tromey@redhat.com>
4390
4391 * breakpoint.h (struct counted_command_line): New struct.
4392 (struct breakpoint) <commands>: Change type.
4393 (struct bpstats) <commands>: Change type.
4394 <commands_left>: New field.
4395 * breakpoint.c (alloc_counted_command_line): New function.
4396 (incref_counted_command_line): Likewise.
4397 (decref_counted_command_line): Likewise.
4398 (do_cleanup_counted_command_line): Likewise.
4399 (make_cleanup_decref_counted_command_line): Likewise.
4400 (breakpoint_set_commands): Use decref_counted_command_line and
4401 alloc_counted_command_line.
4402 (commands_command): Don't error if breakpoint commands are
4403 executing.
4404 (commands_from_control_command): Likewise.
4405 (bpstat_free): Update.
4406 (bpstat_copy): Likewise.
4407 (bpstat_clear_actions): Likewise.
4408 (bpstat_do_actions_1): Likewise.
4409 (bpstat_stop_status): Likewise.
4410 (print_one_breakpoint_location): Likewise.
4411 (delete_breakpoint): Likewise.
4412 (bpstat_alloc): Initialize new field.
4413 (tracepoint_save_command): Update.
4414 * tracepoint.c (encode_actions): Update.
4415 (trace_dump_command): Update.
4416
a6c727b2
DJ
44172010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4418
4419 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4420 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4421 (read_structure_type): For RealView, set TYPE_STUB on structures with
4422 no byte size and no children.
4423 (read_subroutine_type): Mark functions as prototyped by default.
4424 * symtab.c (producer_is_realview): New function.
4425 * symtab.h (expand_line_sal): Fix declaration formatting.
4426 (producer_is_realview): Declare.
4427
0d39a070
DJ
44282010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4429
4430 * arm-tdep.c (skip_prologue_function): New function.
4431 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4432 (thumb_analyze_prologue): Document return value. Recognize more
4433 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4434 Add debug output.
4435 (arm_skip_prologue): Remove call dummy check. Check the prologue
4436 for non-GNU compilers.
4437 (arm_instruction_changes_pc): New function.
4438 (arm_analyze_prologue): New function, broken out from
4439 arm_scan_prologue. Recognize more ARM instructions and skippable
4440 calls. Update comments. Handle NULL cache. Return the address
4441 of the first unrecognized instruction. Do not skip past other
4442 instructions which change control flow. Add debug output.
4443 (arm_scan_prologue): Use arm_analyze_prologue.
4444 (ARM_PC_32): Delete.
4445 (shifted_reg_val): Simplify ARM_PC_32 check.
4446
4baf5cf4
VP
44472010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4448
4449 * tracepoint.c (tvariables_info_1): Actually compute
4450 the number of rows in the result.
4451
4a5e7a5b
PA
44522010-03-24 Pedro Alves <pedro@codesourcery.com>
4453
4454 * remote.c (crc32): Constify `buf' parameter.
4455 (remote_verify_memory): New, abstracted out from...
4456 (compare_sections_command): ... this. Remove hardcoded target
4457 checks.
4458 (init_remote_ops): Install remote_verify_memory.
4459 * target.c (target_verify_memory): New.
4460 * target.h (struct target_ops) <to_verify_memory>: New field.
4461 (target_verify_memory): Declare.
4462
011aacb0
VP
44632010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4464
4465 Implement -trace-save.
4466
4467 * mi-cmds.h (mi_cmds_trace_save): Declare.
4468 * mi-cmds.c (mi_cmds): Register -trace-save.
4469 * mi/mi-main.c (mi_cmd_trace_save): New.
4470 * remote.c (remote_save_trace_data): Take const parameter.
4471 * target.h (struct target_ops::to_save_trace_data): Take
4472 const parameter.
4473 * target.c (update_current_target): Adjust to the above.
4474 * tracepoint.c (trave_save): New, extracted from
4475 (trace_save_command): ...this.
4476 (tfile_trace_find): Remove message that is unnecessary now
4477 that 'tfind' reports found frame.
4478 * tracepoint.h (trace_save): Declare.
4479
f197e0f1
VP
44802010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4481
4482 Implement -trace-find.
4483
4484 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4485 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4486 * mi/mi-main.c (mi_cmd_trace_find): New.
4487 * target.h (struct target_ops): Document to_trace_find.
4488 * tracepoint.h (tfind_1): Declare.
4489 * tracepoint.c (finish_tfind_command): Rename to...
4490 (tfind_1): ...this.
4491 * remote.c (remote_trace_find): Return -1 if target say
4492 there's no frame. Improve error diagnostics.
4493
40e1c229
VP
44942010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4495
4496 -trace-define-variable and -trace-list-variables.
4497
4498 * tracepoint.c (create_trace_state_variable): Make
4499 private copy of name, as opposed to assuming the
4500 pointer lives forever.
4501 (tvariables_info_1): New.
4502 (tvariables_info): Use the above.
4503 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4504 Declare.
4505 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4506 and -trace-list-variables.
4507 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4508 (mi_cmd_trace_list_variables): New.
4509 * mi/mi-main.c (mi_cmd_trace_define_variable)
4510 (mi_cmd_trace_list_variables): New.
4511
9b4c786c
VP
45122010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4513
4514 Implement -break-passcount.
4515
4516 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4517 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4518 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4519
f224b49d
VP
45202010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4521
4522 -trace-start/-trace-end/-trace-status.
4523
4524 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4525 and -trace-stop.
4526 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4527 (mi_cmd_trace_stop): Declare.
4528 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4529 (mi_cmd_trace_stop): New.
4530 * tracepoint.c (start_tracing): New, extracted from...
4531 (trace_start_command): ...this.
4532 (trace_status_mi): New.
4533 * tracepoint.h (struct trace_status): Document
4534 stopping_tracepoint.
4535 (start_tracing, stop_tracing, trace_status_mi): Declare.
4536
6534d786
VP
45372010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4538
4539 Implement creating tracepoints with -break-insert.
4540
4541 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4542 to mean that tracepoint should be created.
4543
51661e93
VP
45442010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4545
4546 * breakpoint.c (check_no_tracepoint_commands): Use
4547 current spelling of 'teval'.
4548
a7bdde9e
VP
45492010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4550
4551 Unify actions and commands
4552
4553 * defs.h (read_command_lines, read_command_lines_1): New
4554 parameters validator and closure.
4555 * tracepoint.h (struct action_line): Remove.
4556 * breakpoint.h (struct breakpoint): Remove the 'actions'
4557 field.
4558 * defs.h (enum command_control_type): New value
4559 while_stepping_control.
4560 (struct command_line): Add comments.
4561 * breakpoint.c (breakoint_is_tracepoint): New.
4562 (breakpoint_set_commands): For tracepoints,
4563 verify the commands are permissible.
4564 (check_tracepoint_commands): New.
4565 (commands_command): Require that each new line is validated using
4566 check_tracepoint_command, if we set commands for a tracepoint.
4567 (create_tracepoint_from_upload): Likewise.
4568 (print_one_breakpoint_location): Remove the code to print
4569 actions specifically.
4570 (tracepoint_save_command): Relay to print_command_lines.
4571 * cli/cli-script.c (process_next_line): New parameters validator
4572 and closure. Handle 'while-stepping'. Call validator if not null.
4573 (read_command_lines, read_command_lines1): Likewise.
4574 (recurse_read_control_structure): New parameters validator and
4575 closure. Handle while_stepping_control.
4576 (print_command_lines): Handle while-stepping.
4577 (get_command_line, define_command, document_command): Adjust.
4578 * remote.c (remote_download_tracepoint): Adjust.
4579 * tracepoint.c (make_cleanup_free_actions, read_actions)
4580 (free_actions, do_free_actions_cleanup): Remove.
4581 (trace_actions_command): Use read_command_lines.
4582 (validate_actionline): Use error in one place.
4583 (encode_actions_1): New, extracted from...
4584 (encode_actions): ...this. Also use cleanups for exception
4585 safety.
4586 (trace_dump_command): Adjust.
4587 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4588 it's tracepoint.
4589
64e3cf3d
MF
45902010-03-23 Mike Frysinger <vapier@gentoo.org>
4591
4592 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4593
52e9fde8
SS
45942010-03-22 Stan Shebs <stan@codesourcery.com>
4595
4596 * value.c (value_static_field): Be lazy about the field's value.
4597
508ccb1f
TT
45982010-03-22 Reid Kleckner <reid@kleckner.net>
4599
4600 PR gdb/11094
4601 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4602 bp_jit_event.
4603 (disable_breakpoints_in_shlibs): Likewise.
4604
acebe513
UW
46052010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4606
4607 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4608 GCC 4.1 debug info generation (GCC PR c++/28460).
4609 (determine_prefix): Likewise.
4610
957b8b5a
DJ
46112010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4612
4613 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4614 get_current_arch.
4615 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4616
3b11a015
SS
46172010-03-19 Stan Shebs <stan@codesourcery.com>
4618
4619 * ax-gdb.c (gen_fetch): Handle bool.
4620 (gen_usual_unary): Ditto.
4621 (gen_cast): Ditto.
4622 (gen_equal): New function.
4623 (gen_less): New function.
4624 (gen_expr_binop_rest): Call them, also return integer type from
4625 logical operations.
4626 (gen_expr): Ditto.
4627
20781792
TT
46282010-03-19 Tom Tromey <tromey@redhat.com>
4629
4630 * jv-lang.c (jv_dynamics_objfile_data_key)
4631 (jv_type_objfile_data_key): New globals.
4632 (class_symtab): Move earlier.
4633 (jv_per_objfile_free): New function.
4634 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4635 parameter.
4636 Remove ancient #if 1.
4637 (add_class_symbol): Remove redundant declaration.
4638 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4639 (java_link_class_type): Mark as static. Update.
4640 (jv_clear_object_type): New function.
4641 (set_java_object_type): Likewise.
4642 (get_java_object_type): Use set_java_object_type.
4643 (is_object_type): Likewise.
4644 (_initialize_java_language): Register new objfile keys.
4645 (get_java_class_symtab): Add 'gdbarch' parameter.
4646 (add_class_symtab_symbol): Update.
4647 (type_from_class): Update.
4648
cf3e25ca
SS
46492010-03-19 Stan Shebs <stan@codesourcery.com>
4650
8d95cc3b 4651 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 4652
f1ae44c9 46532010-03-18 Joel Brobecker <brobecker@adacore.com>
4654
4655 GDB 7.1 released.
4656
4daf5ac0
SS
46572010-03-18 Stan Shebs <stan@codesourcery.com>
4658 Pedro Alves <pedro@codesourcery.com>
4659
4660 * target.h (struct target_ops): New method
4661 to_set_circular_trace_buffer.
4662 (target_set_circular_trace_buffer): New macro.
4663 * target.c (update_current_target): Add
4664 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4665 default behavior.
4666 * remote.c (remote_set_circular_trace_buffer): New function.
4667 (init_remote_ops): Add it to vector.
4668 * tracepoint.h (struct trace_status): New field traceframes_created,
4669 change buffer_size and buffer_free to int.
4670 * tracepoint.c (circular_trace_buffer): New global.
4671 (start_tracing): Send values of disconnected tracing and circular
4672 trace buffer settings.
4673 (set_circular_trace_buffer): New function.
4674 (parse_trace_state): Handle total space and frames created.
4675 (trace_status_command): Display total space and total frames
4676 created.
4677 (trace_save): Write out new status values.
4678 (parse_trace_status): Set traceframe_count, traceframes_created,
4679 buffer_free and buffer_size to -1 by default.
4680 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4681 * NEWS: Mention the circular trace buffer option.
4682
40c549d6
TT
46832010-03-18 Tom Tromey <tromey@redhat.com>
4684
4685 * infcmd.c (finish_command_continuation): Wrap print_return_value
4686 in TRY_CATCH.
4687
e8d05480
JB
46882010-03-18 Joel Brobecker <brobecker@adacore.com>
4689
4690 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4691 DIE has a name before creating the associated partial symbol.
4692 (read_func_scope): Emit a complaint if the subprogram does not
4693 have a name or when we can't extract the subprogram PC bounds.
4694
441b986a
UW
46952010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4696
4697 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4698 instead of selected frame architecture.
4699
4247603b
PA
47002010-03-18 Pedro Alves <pedro@codesourcery.com>
4701
4702 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4703 a valid selected thread, and that it is not running.
4704 (advance_command): Ditto.
4705 (finish_command): Ditto.
4706
400c6af0
SS
47072010-03-17 Stan Shebs <stan@codesourcery.com>
4708
3a96536b
SS
4709 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4710
573cda03
SS
4711 * infcall.c: Include tracepoint.h.
4712 (call_function_by_hand): Disallow calls in tfind mode.
4713 * infcmd.c: Include tracepoint.h.
4714 (ensure_not_tfind_mode): New function.
4715 (continue_1): Call it.
4716 (step_1) Ditto.
4717 (jump_command): Ditto.
4718 (signal_command): Ditto.
4719 (advance_command): Ditto.
4720 (until_command): Ditto.
4721 (finish_command): Ditto.
4722 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4723
400c6af0
SS
4724 * ax-gdb.h (struct axs_value): New field optimized_out.
4725 (gen_trace_for_var): Add gdbarch argument.
4726 * ax-gdb.c (gen_trace_static_fields): New function.
4727 (gen_traced_pop): Call it, add gdbarch argument.
4728 (gen_trace_for_expr): Update call to it.
4729 (gen_trace_for_var): Ditto, and report optimized-out variables.
4730 (gen_struct_ref_recursive): Check for optimized-out value.
4731 (gen_struct_elt_for_reference): Ditto.
4732 (gen_static_field): Pass gdbarch instead of expression, assume
4733 optimization if field not found.
4734 (gen_var_ref): Set the optimized_out flag.
4735 (gen_expr): Error on optimized-out variable.
4736 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4737 expressions, skip optimized-out variables with computed locations.
4738 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4739 erroring out if location expression missing.
4740 (loclist_tracepoint_var_ref): Don't error out here.
4741
a3b2a86b
TT
47422010-03-17 Tom Tromey <tromey@redhat.com>
4743
4744 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4745 DWARF data is available.
4746
38963c97
DJ
47472010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4748
4749 * symfile.c (generic_load): Reset breakpoints after loading.
4750
ddabfc73
TT
47512010-03-17 Tom Tromey <tromey@redhat.com>
4752
4753 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4754
d8c09fb5
JK
47552010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4756
4757 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4758 create_breakpoint call, adjust the parameters.
4759
bbb0eef6
JK
47602010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4761 Chandru <chandru@in.ibm.com>
4762
4763 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4764 * valarith.c (value_subscripted_rvalue): Suppress error if
4765 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4766
46956e39
HZ
47672010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4768
4769 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4770
b8d088ac
JB
47712010-03-16 Joel Brobecker <brobecker@adacore.com>
4772
4773 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4774 before doing the associated thread switch.
4775
322be962
DJ
47762010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4777
4778 * MAINTAINERS: Update my email address.
4779
8cdf0e15
VP
47802010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4781
4782 Simplify MI breakpoint setting.
4783
4784 * breakpoint.c (break_command_really): Make nonstatic and
4785 rename to...
4786 (create_breakpoint): ...this. Rename prior function by this name
4787 to...
4788 (create_breakpoint_sal): ...this.
4789 (create_breakpoints): Rename to...
4790 (create_breakpoints_sal): ...this.
4791 (set_breakpoint): Remove.
4792 * breakpoint.h: Adjust to above changes.
4793 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4794
b6e7192f
SS
47952010-03-15 Stan Shebs <stan@codesourcery.com>
4796
4797 * ax-gdb.c: Include cp-support.h.
4798 (find_field): Remove.
4799 (gen_primitive_field): New function.
4800 (gen_struct_ref_recursive): New function.
4801 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4802 of find_field.
4803 (gen_static_field): New function.
4804 (gen_struct_elt_for_reference): New.
4805 (gen_namespace_elt): New.
4806 (gen_maybe_namespace_elt): New.
4807 (gen_aggregate_elt_ref): New.
4808 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4809
1054b214
TT
48102010-03-15 Tom Tromey <tromey@redhat.com>
4811
4812 * dwarf2read.c (die_needs_namespace): Also return 0 for
4813 DW_TAG_subprogram.
4814
13387711
SW
48152010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4816
4817 PR c++/7936:
4818 * cp-support.h: Added char *declaration element to using_direct
4819 data struct.
4820 (cp_add_using): Added char *declaration argument.
4821 (cp_add_using_directive): Ditto.
4822 (cp_lookup_symbol_imports): made extern.
4823 * cp-namespace.c: Updated with the above changes.
4824 * dwarf2read.c (read_import_statement): Ditto.
4825 (read_namespace): Ditto.
4826 (read_import_statement): Support import declarations.
4827 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4828 declarations.
4829 Added support for 'declaration_only' search.
4830 (cp_lookup_symbol_namespace): Attempt to search for the name as
4831 is before consideration of imports.
4832 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4833 search at every block level search.
4834 Now takes language argument.
4835 (lookup_symbol_aux): Updated.
4836
6e31430b
TT
48372010-03-15 Tom Tromey <tromey@redhat.com>
4838
4839 * c-exp.y (name_not_typename): Add 'operator' clause.
4840
4dea3bb7 48412010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
4842
4843 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4844 * configure: Regenerate.
4845
4d9743af
JK
48462010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4849 and ".sdynbss". Update the comment.
4850
f75150fe
JZ
48512010-03-15 Jie Zhang <jie@codesourcery.com>
4852
4853 * MAINTAINERS: Update my email address.
4854
3c13bc11
DJ
48552010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4856
4857 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4858
43484f03
DJ
48592010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4860
4861 * charset.c [USE_WIN32API]: Include <windows.h>.
4862 (_initialize_charset): Correct type of w32_host_default_charset.
4863
5f25d77d
PA
48642010-03-14 Pedro Alves <pedro@codesourcery.com>
4865
4866 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4867
1c809c68
TT
48682010-03-12 Tom Tromey <tromey@redhat.com>
4869
4870 PR c++/9708:
4871 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4872 in a lexical block does not need a namespace.
4873 (new_symbol) <DW_TAG_variable>: Put extern variables on
4874 list_in_scope in all cases.
4875
948103cf
SS
48762010-03-12 Stan Shebs <stan@codesourcery.com>
4877
4878 * ax-gdb.c (gen_expr): Add shift expressions.
4879 (gen_expr_binop_rest): Ditto.
4880
00ae8fef
SW
48812010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4882
4883 * buildsym.c (finish_block): Reset using_directives pointer
4884 after block initialization.
4885
9cad29ac
L
48862010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4887
4888 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4889 * i386-tdep.c (i386_word_names): Likewise.
4890
2f4d8875
PA
48912010-03-12 Pedro Alves <pedro@codesourcery.com>
4892
4893 * target.c (memory_xfer_partial): Don't use the stack cache if
4894 inspecting trace frames.
4895 * tracepoint.c (finish_tfind_command): Invalidate the target
4896 dcache.
4897
ccf26247
JK
48982010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4899
4900 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4901 for the PIC displacement, print also the displacement value.
4902 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4903
477c84a7
KB
49042010-03-10 Kevin Buettner <kevinb@redhat.com>
4905
4906 * remote-mips.c (close_ports, mips_initialize_cleanups)
4907 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4908 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4909 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4910 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4911 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4912 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4913 comments describing each of these functions.
4914 (mips_enter_debug, mips_exit_debug, common_open)
4915 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4916 blank line after the comment describing the function.
4917
01c30d6e
JK
49182010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4919
4920 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4921 parameter displacementp. Update comment.
4922 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4923 element exists. Return if svr4_exec_displacement was not successful.
4924 Update comment.
4925
09919ac2
JK
49262010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4927 Daniel Jacobowitz <dan@codesourcery.com>
4928
4929 * solib-svr4.c (read_program_header): Support type == -1 to read
4930 all program headers.
4931 (read_program_headers_from_bfd): New function.
4932 (svr4_static_exec_displacement): Remove and move the comment ...
4933 (svr4_exec_displacement): ... here. Remove variable found. New
4934 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4935 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4936 targets using read_program_headers_from_bfd. Remove the call of
4937 svr4_static_exec_displacement.
4938
d146bf1e
TT
49392010-03-10 Tom Tromey <tromey@redhat.com>
4940
4941 * dwarf2read.c (struct pubnames_header): Remove.
4942 (_PUBNAMES_HEADER): Remove.
4943 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4944 (struct aranges_header): Remove.
4945 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4946 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4947 (PUBNAMES_SECTION): Remove.
4948 (ARANGES_SECTION): Remove.
4949 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4950 (dwarf2_build_psymtabs): Remove dead code.
4951 (dwarf2_build_psymtabs_easy): Remove.
4952
be391dca
TT
49532010-03-10 Tom Tromey <tromey@redhat.com>
4954
4955 * elfread.c (elf_symfile_read): Don't call
4956 dwarf2_build_frame_info.
4957 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4958 (struct dwarf2_per_objfile) <objfile>: New field.
4959 (dwarf2_has_info): Now idempotent. Set objfile field.
4960 (dwarf2_read_section): Check and set readin field. Call
4961 posix_madvise.
4962 (dwarf2_build_psymtabs): Don't read all sections.
4963 (read_type_comp_unit_head): Read types section.
4964 (create_debug_types_hash_table): Likewise.
4965 (init_cu_die_reader): Add asserts.
4966 (process_type_comp_unit): Add assert.
4967 (dwarf2_build_psymtabs_hard): Read info section.
4968 (load_partial_comp_unit): Add assert.
4969 (create_all_comp_units): Read info section.
4970 (load_full_comp_unit): Likewise.
4971 (dwarf2_ranges_read): Read ranges section.
4972 (dwarf2_record_block_ranges): Add assert.
4973 (dwarf2_read_abbrevs): Read abbrev section.
4974 (read_indirect_string): Read str section.
4975 (dwarf_decode_line_header): Read line section.
4976 (read_signatured_type_at_offset): Read types section.
4977 (dwarf_decode_macros): Read macinfo section.
4978 (dwarf2_symbol_mark_computed): Read loc section.
4979 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4980 dwarf2_build_frame_info.
4981 (dwarf2_build_frame_info): Unconditionally set
4982 dwarf2_frame_objfile_data on the objfile.
4983 * configure.ac: Check for posix_madvise.
4984 * config.in, configure: Rebuild.
4985
ccefe4c4
TT
49862010-03-10 Tom Tromey <tromey@redhat.com>
4987
e38df1d0
TT
4988 * xcoffread.c (xcoff_start_psymtab): Update.
4989 (xcoff_end_psymtab): Update.
4990 * psymtab.c (allocate_psymtab): Remove dead code.
4991 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4992 void*.
4993 * mdebugread.c (parse_partial_symbols): Update.
4994 (new_psymtab): Likewise.
4995 * dwarf2read.c (process_psymtab_comp_unit): Update.
4996 (psymtab_to_symtab_1): Update.
4997 * dbxread.c (start_psymtab): Update.
4998 (end_psymtab): Likewise.
4999
be391dca 50002010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 5001
ccefe4c4
TT
5002 * xcoffread.c: Include psymtab.h.
5003 (xcoff_sym_fns): Update.
5004 * symtab.h (struct partial_symbol): Remove.
5005 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
5006 (struct partial_symtab): Remove.
5007 (PSYMTAB_TO_SYMTAB): Remove.
5008 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
5009 (find_pc_sect_psymtab): Remove.
5010 (find_pc_sect_symtab_via_partial): Declare.
5011 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
5012 (find_main_psymtab): Remove.
5013 (find_main_filename): Declare.
5014 (fixup_psymbol_section): Remove.
5015 (fixup_section): Declare.
5016 * symtab.c: Include psymtab.h.
5017 (lookup_symtab): Use lookup_symtab method.
5018 (lookup_partial_symtab): Remove.
5019 (find_pc_sect_psymtab_closer): Remove.
5020 (find_pc_sect_psymtab): Remove.
5021 (find_pc_sect_symtab_via_partial): New function.
5022 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
5023 (fixup_section): No longer static.
5024 (fixup_psymbol_section): Remove.
5025 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
5026 (lookup_global_symbol_from_objfile): Likewise.
5027 (lookup_symbol_aux_psymtabs): Remove.
5028 (lookup_symbol_aux_quick): New function.
5029 (lookup_symbol_global): Use lookup_symbol_aux_quick.
5030 (lookup_partial_symbol): Remove.
5031 (basic_lookup_transparent_type_quick): New function.
5032 (basic_lookup_transparent_type): Use it.
5033 (find_main_psymtab): Remove.
5034 (find_main_filename): New function.
5035 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
5036 (find_line_symtab): Use expand_symtabs_with_filename method.
5037 (output_partial_symbol_filename): New function.
5038 (sources_info): Use map_partial_symbol_filenames.
5039 (struct search_symbols_data): New type.
5040 (search_symbols_file_matches): New function.
5041 (search_symbols_name_matches): Likewise.
5042 (search_symbols): Use expand_symtabs_matching method.
5043 (struct add_name_data): Rename from add_macro_name_data.
5044 (add_macro_name): Update.
5045 (add_partial_symbol_name): New function.
5046 (default_make_symbol_completion_list): Use
5047 map_partial_symbol_names.
5048 (struct add_partial_symbol_name): New type.
5049 (maybe_add_partial_symtab_filename): New function.
5050 (make_source_files_completion_list): Use
5051 map_partial_symbol_filenames.
5052 (expand_line_sal): Use expand_symtabs_with_filename method.
5053 * symmisc.c: Include psymtab.h.
5054 (print_objfile_statistics): Use print_stats method.
5055 (dump_objfile): Use dump method.
5056 (dump_psymtab, maintenance_print_psymbols)
5057 (maintenance_info_psymtabs, maintenance_check_symtabs)
5058 (extend_psymbol_list): Remove.
5059 * symfile.h (struct quick_symbol_functions): New struct.
5060 (struct sym_fns) <qf>: New field.
5061 (sort_pst_symbols): Remove.
5062 (increment_reading_symtab): Declare.
5063 * symfile.c: Include psymtab.h.
5064 (compare_psymbols, sort_pst_symbols): Remove.
5065 (psymtab_to_symtab): Remove.
5066 (increment_reading_symtab): New function.
5067 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
5068 method.
5069 (set_initial_language): Use find_main_filename.
5070 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
5071 (free_named_symtabs): Remove unused code.
5072 (start_psymtab_common, add_psymbol_to_bcache)
5073 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
5074 Remove.
5075 * stack.c: Include psymtab.h, symfile.h.
5076 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
5077 * source.h (psymtab_to_fullname): Don't declare.
5078 * source.c: Include psymtab.h.
5079 (select_source_symtab): Use find_last_source_symtab method.
5080 (forget_cached_source_info): Use forget_cached_source_info
5081 method.
5082 (find_and_open_source): No longer static.
5083 (psymtab_to_fullname): Remove.
5084 * somread.c: Include psymtab.h.
5085 (som_sym_fns): Update.
5086 * psympriv.h: New file.
5087 * psymtab.h: New file.
5088 * psymtab.c: New file.
5089 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5090 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5091 * objfiles.c: Include psymtab.h.
5092 (objfile_relocate1): Use relocate method.
5093 (objfile_has_partial_symbols): Use has_symbols method.
5094 * mipsread.c: Include psymtab.h.
5095 (ecoff_sym_fns): Update.
5096 * mi/mi-cmd-file.c: Include psymtab.h.
5097 (print_partial_file_name): New function.
5098 (mi_cmd_file_list_exec_source_files): Use
5099 map_partial_symbol_filenames.
5100 * mdebugread.c: Include psympriv.h.
5101 * machoread.c: Include psympriv.h.
5102 (macho_sym_fns): Update.
5103 * m2-exp.y (yylex): Use lookup_symtab.
5104 * elfread.c: Include psympriv.h.
5105 (elf_sym_fns): Update.
5106 * dwarf2read.c: Include psympriv.h.
5107 * dbxread.c: Include psympriv.h.
5108 (aout_sym_fns): Update.
5109 * cp-support.c: Include psymtab.h.
5110 (read_in_psymtabs): Remove.
5111 (make_symbol_overload_list_qualified): Use
5112 expand_symtabs_for_function method.
5113 * coffread.c: Include psympriv.h.
5114 (coff_sym_fns): Update.
5115 * blockframe.c: Include psymtab.h.
5116 (find_pc_partial_function): Use find_pc_sect_symtab method.
5117 * ada-lang.h (ada_update_initial_language): Update.
5118 * ada-lang.c: Include psymtab.h.
5119 (ada_update_initial_language): Remove 'main_pst' argument.
5120 (ada_lookup_partial_symbol): Remove.
5121 (struct ada_psym_data): New type.
5122 (ada_add_psyms): New function.
5123 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5124 (struct add_partial_datum): New type.
5125 (ada_add_partial_symbol_completions): New function.
5126 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5127 (ada_exception_support_info_sniffer): Update.
5128 * Makefile.in (SFILES): Add psymtab.c.
5129 (COMMON_OBS): Add psymtab.o.
5130 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5131
7d8500b7
PM
51322010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5133
5134 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5135
c0cc3a76
SW
51362010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5137
5138 PR C++/11236:
5139 * cp-namespace.c (cp_add_using): Deleted.
5140 (cp_add_using_directive): Use obstack allocations.
5141 Merged the function cp_add_using into this one.
5142 Added 'struct obstack *' argument.
5143 (cp_scan_for_anonymous_namespaces): Updated.
5144 * cp-support.h: Updated.
5145 * dwarf2read.c (read_import_statement): Updated.
5146 (read_namespace): Updated.
5147
452fa064
CF
51482010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5149
5150 * windows-nat.c (cygwin_conv_path): Remove old macro.
5151
60e1c644
PA
51522010-03-10 Pedro Alves <pedro@codesourcery.com>
5153
5154 * breakpoint.c (condition_command): Handle watchpoint conditions.
5155 (is_hardware_watchpoint): Add comment.
5156 (is_watchpoint): New.
5157 (update_watchpoint): Don't reparse the watchpoint's condition
5158 unless necessary.
5159 (WP_IGNORE): New.
5160 (watchpoint_check): Use it.
5161 (bpstat_check_watchpoint): Handle it.
5162 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5163 conditions in a frame where it makes sense.
5164 (watch_command_1): Store the innermost block of the condition
5165 expression.
5166 (delete_breakpoint): Delete the watchpoint condition expression.
5167 * breakpoint.h (struct bp_location) <cond>: Update comment.
5168 (struct breakpoint): New field `cond_exp_valid_block'.
5169
af6b7be1
JB
51702010-03-09 Joel Brobecker <brobecker@adacore.com>
5171
5172 Adjust handling of Ada DIEs after dwarf2_physname patch.
5173 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5174
60c5c021
CF
51752010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5176 Pierre Muller <muller@ics.u-strasbg.fr>
5177
5178 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5179 from/to posix/win32.
5180 (windows_make_so): Use non-Cygwin 1.7 specific function.
5181 (windows_create_inferior): Make sure that cygallargs points to
5182 original args in non Cygwin 1.7. case.
5183
60a1502a
MS
51842010-03-09 Michael Snyder <msnyder@vmware.com>
5185
5186 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5187 after target_read_memory to get host byte order.
5188 (i386_process_record): Ditto.
5189
94af9270
KS
51902010-03-09 Keith Seitz <keiths@redhat.com>
5191
5192 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5193 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5194 print out const or volatile qualifiers, too.
5195 (c_type_print_args): Add parameters show_artificial and language.
5196 Skip artificial parameters when requested.
5197 Use the appropriate language printer.
5198 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5199 parameters and pass language_c.
5200 * dwarf2read.c (die_list): New file global.
5201 (struct partial_die_info): Update comments for name field.
5202 (pdi_needs_namespace): Renamed to ...
5203 (die_needs_namespace): ... this. Rewrite.
5204 (dwarf2_linkage_name): Remove.
5205 (add_partial_symbol): Do not predicate the call to
5206 partial_die_full_name based on pdi_needs_namespace.
5207 Remove call to cp_check_possible_namespace_symbols and associated
5208 outdated comments.
5209 (guess_structure_name): Do not inspect child subprogram DIEs.
5210 (dwarf2_fullname): Update comments.
5211 Use die_needs_namespace to assist in computing the name.
5212 (read_func_scope): Use dwarf2_name to get the DIE's name.
5213 Use dwarf2_physname to get the "linkage name" of the DIE.
5214 (dwarf2_add_member_field): Use dwarf2_physname instead of
5215 dwarf2_linkage_name.
5216 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5217 (determine_class): Remove.
5218 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5219 except Ada.
5220 (new_symbol): Unconditionally call dwarf2_name.
5221 Compute the "linkage name" using dwarf2_physname.
5222 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5223 When determining to scan for anonymous C++ namespaces, ignore
5224 the linkage name.
5225 (dwarf2_physname): New function.
5226 (dwarf2_full_name): Move content to new function and call
5227 that.
5228 (dwarf2_compute_name): "New" function.
5229 (_initialize_dwarf2_read): Initialize die_list.
5230 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5231 physname.
5232 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5233 without a demangled name.
5234 Print out type information for non-virtual methods.
c8d5aac9 5235 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 5236 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
5237 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5238 (decode_compound): Stop consuming at an open parenthesis.
5239 Keep template parameters.
5240 Keep any overload information.
5241 Keep keywords like "const".
5242 Remove paren_pointer.
5243 Move is_quoted check from set_flags to here.
5244 Remove #if 0 code from 2000. Ten years is long enough.
5245 (find_method): Before comparing symbol names, canonicalize the string
5246 from the user.
5247 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
5248 (find_method_overload_end): New function.
5249 (set_flags): Remove.
c8d5aac9
L
5250 (decode_compound): Assume that parentheses are matched.
5251 It's a lot easier.
94af9270
KS
5252 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5253 to cplus_demangle.
5254 * linespec.c (decode_line_1): Keep important keywords like
5255 "const" and "volatile".
5256 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5257 * typeprint.h (c_type_print_args): Add declaration.
5258 * ui-file.c (do_ui_file_obsavestring): New function.
5259 (ui_file_obsavestring): New function.
5260 * ui-file.h (ui_file_obsavestring): Add declaration.
5261 * valops.c (find_overload_match): Resolve the object to
5262 a non-pointer type.
5263 If the object is a data member, search the object for the member
5264 and return with staticp set.
5265 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5266 Do not attempt to extract a function name from non-function types.
5267 If the extracted function name and the original name are the same,
5268 we don't have a C++ method.
5269
8d95cc3b
PA
5270 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5271 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
5272
5273 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5274 and arguments from symbol lookups.
5275 * ax-gdb.c (gen_expr): Likewise.
5276 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5277 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5278 lookup_possible_namespace_symbol): Likewise.
5279 * cp-support.c (read_in_psymtabs): Likewise.
5280 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5281 * language.h (la_lookup_symbol_nonlocal): Likewise.
5282 * scm-valprint.c (scm_inferior_print): Likewise.
5283 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5284 * solib-svr.c (elf_lookup_lib): Likewise.
5285 * solib.c (show_auto_solib_add): Likewise.
5286 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5287 * symmisc.c (maintenance_check_symtabs): Likewise.
5288 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5289 lookup_symbol_aux_local, lookup_symbol_aux_block,
5290 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5291 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5292 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5293 basic_lookup_transparent_type, find_main_psymtab,
5294 lookup_block_symbol): Likewise.
5295 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5296 lookup_symbol_global, lookup_symbol_aux_block,
5297 lookup_symbol_partial_symbol, lookup_block_symbol,
5298 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5299
9cb74f47
PM
53002010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5301
5302 * python/python-internal.h: Include symtab.h.
5303
af6b7be1
JB
53042010-03-09 Joel Brobecker <brobecker@adacore.com>
5305 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
5306
5307 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5308 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5309 indentation.
5310
bad56014
TT
53112010-03-08 Tom Tromey <tromey@redhat.com>
5312
5313 * breakpoint.c (breakpoint_1): Add "QUIT".
5314
08105857
PA
53152010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5316 Pedro Alves <pedro@codesourcery.com>
5317
5318 * solib.c (solib_find): Replace extension if
5319 solib_symbols_extension is set in the target gdbarch.
5320 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5321 solib_symbols_extension to "sym".
5322 * gdbarch.sh (solib_symbols_extension): New variable.
5323 (pstring): New function.
5324 * gdbarch.h, gdbarch.c: Regenerate.
5325
7c953934
TT
53262010-03-08 Tom Tromey <tromey@redhat.com>
5327
5328 PR cli/9591:
5329 * NEWS: Update.
5330 * utils.c: Include main.h.
5331 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5332 (defaulted_query): Use default answer if `batch_flag'.
5333 * main.h (batch_flag): Declare.
5334 * main.c (batch_flag): New global.
5335 (captured_main): Remove 'batch'. Update.
5336
bbd2783e
KB
53372010-03-08 Kevin Buettner <kevinb@redhat.com>
5338
5339 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5340 and Kevin Buettner:
5341
5342 * remote-mips.c (rockhopper_ops): New target_ops struct.
5343 (MON_ROCKHOPPER): New mips_monitor_type.
5344 (read_hex_value): New function.
5345 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 5346 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
5347 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5348 (rockhopper_open): New function.
5349 (mips_wait): Read the PC, FP and SP fields as strings. Use
5350 read_hex_value to parse them and mips_set_register to commit them.
5351 (mips_set_register): New function.
5352 (mips_fetch_registers): Do not cast register value to "unsigned"
5353 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5354 (mips_store_registers): Use a 'T' packet to set registers when
5355 using MON_ROCKHOPPER.
5356 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5357 and expect the total to be printed before the entry address.
5358 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5359
566f3d17
KB
53602010-03-08 Kevin Buettner <kevinb@redhat.com>
5361
5362 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5363 Change return value to int. Store value fetched in location
5364 addressed by `val'. Use function's return value as success
5365 or failure indicator. Adjust all callers.
5366
9c8ee2ab 53672010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
5368
5369 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5370
7155de5a
HZ
53712010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5372 Hui Zhu <teawater@gmail.com>
5373
5374 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5375 tmp_to_stopped_data_address.
5376 (record_open): Reset tmp_to_stopped_by_watchpoint and
5377 tmp_to_stopped_data_address.
5378 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5379 to_stopped_data_address.
5380
580879fc
HZ
53812010-03-08 Hui Zhu <teawater@gmail.com>
5382
5383 * i386-tdep.c (i386_process_record): Initialize regnum.
5384
b0fcb67f
JK
53852010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5386
5387 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5388 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5389
08597104
JB
53902010-03-08 Joel Brobecker <brobecker@adacore.com>
5391
5392 Memory error when reading wrong core file.
5393 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5394 errors while reading the inferior memory, and return zero if
5395 an exception was raised.
5396
425b824a
MS
53972010-03-07 Michael Snyder <msnyder@vmware.com>
5398
ec6dbf37
MS
5399 * record.c (record_restore): Rename tmpu8 to rectype.
5400
648d0c8b
MS
5401 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5402 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5403
5404 (i386_record_push): Rename local tmpulongest to addr.
5405
5406 (i386_process_record): Rename local tmpulongest to addr.
5407
5408 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5409 addr64.
955db0c0
MS
5410
5411 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 5412
10760264
JB
54132010-03-07 Joel Brobecker <brobecker@adacore.com>
5414
5415 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 5416 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 5417
b3c613f2
CF
54182010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5419
5420 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5421 block. Define helper macros to reduce ifdefs in code.
5422 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5423 size. Call unadorned GetModuleFileNameEx rather than
5424 GetModuleFileNameEx*.
5425 (windows_make_so): Use __PMAX to denote maximum buffer size and
5426 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5427 appropriate.
5428 (get_image_name): Use __PMAX to denote maximum buffer size.
5429 (handle_load_dll): Likewise.
5430 (windows_pid_to_exec_file): Likewise.
5431 (windows_create_inferior): Add many accommodations for older Cygwin and
5432 non-Cygwin.
5433 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5434 __USEWIDE conditional.
5435 (bad_GetModuleFileNameExA): Likewise.
5436 (_initialize_loadable): Just use real function names without the dyn_
5437 part since they are defined earlier.
5438
f870a310
TT
54392010-03-05 Corinna Vinschen <vinschen@redhat.com>
5440 Tom Tromey <tromey@redhat.com>
5441
5442 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5443 (parse_escape): Likewise.
5444 * python/py-utils.c (unicode_to_target_string): Update.
5445 (unicode_to_target_python_string): Update.
5446 (target_string_to_unicode): Update.
5447 * printcmd.c (printf_command): Update.
5448 * p-exp.y (yylex): Update.
5449 * objc-exp.y (yylex): Update.
5450 * mi/mi-parse.c: Include charset.h.
5451 (mi_parse_escape): New function.
5452 (mi_parse_argv): Use it.
5453 * jv-exp.y (yylex): Update.
5454 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5455 function.
5456 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5457 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5458 * gdbarch.c: Rebuild.
5459 * gdbarch.h: Rebuild.
5460 * defs.h (parse_escape): Update.
5461 * cli/cli-setshow.c: Include arch-utils.h.
5462 (do_setshow_command): Update.
5463 * cli/cli-cmds.c (echo_command): Update.
5464 * charset.h (target_charset, target_wide_charset): Update.
5465 * charset.c: Include arch-utils.h.
5466 (target_charset_name): Default to "auto".
5467 (target_wide_charset_name): Likewise.
5468 (show_target_charset_name): Handle "auto".
5469 (show_target_wide_charset_name): Likewise.
5470 (be_le_arch): New global.
5471 (set_be_le_names): Add 'gdbarch' argument.
5472 (validate): Likewise. Don't call set_be_le_names.
5473 (set_charset_sfunc, set_host_charset_sfunc)
5474 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5475 Update.
5476 (target_charset): Add 'gdbarch' argument.
5477 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5478 (auto_target_charset_name): New global.
5479 (default_auto_charset, default_auto_wide_charset): New functions.
5480 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5481 for target charsets. Copy result of nl_langinfo. Use GetACP if
5482 USE_WIN32API.
5483 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5484 remove 'byte_order' argument. Update.
5485 (classify_type): Likewise.
5486 (c_emit_char): Update.
5487 (c_printchar): Update.
5488 (c_printstr): Update.
5489 (c_get_string): Update.
5490 (evaluate_subexp_c): Update.
5491 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5492 Declare.
5493 * python/python.c (gdbpy_target_charset): New function.
5494 (gdbpy_target_wide_charset): Likewise.
5495 (GdbMethods): Update.
5496 * NEWS: Update.
5497
4e7386b0
UW
54982010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5499
5500 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5501 off high address bits.
5502
aab48ede
UW
55032010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5504
5505 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5506 address as UnsignedLongLong, not LongLong.
5507
8eeafb51 55082010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 5509 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
5510
5511 * remote-mips.c (gdbthread.h): Include.
5512 (remote_mips_ptid): Declare.
5513 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5514 (common_open): Set inferior_ptid, add it as an inferior, and
5515 as a thread too. Delete FIXME comment regarding start_remote().
5516 (mips_close): Invoke generic_mourn_inferior().
5517 (mips_kill): Make sure that target_mourn_inferior is invoked.
5518 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5519 it's now invoked from mips_close().
5520 (mips_load): Don't null out inferior_ptid. Don't call
5521 clear_symtab_users().
5522 (mips_thread_alive, mips_pid_to_str): New functions.
5523 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5524 to_thread_alive and to_pid_to_str operations.
5525
ae411497
TT
55262010-03-04 Tom Tromey <tromey@redhat.com>
5527
5528 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5529 in DWARF 3 and later.
5530 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5531
0e0b460e
KS
55322010-03-04 Keith Seitz <keiths@redhat.com>
5533
5534 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5535 If the filename portion of the linespec was quoted, recheck the
5536 remainder for additional quoting.
5537 (locate_first_half): Skip over completer chars, too.
5538
1b93ff13
TT
55392010-03-04 Tom Tromey <tromey@redhat.com>
5540
5541 * printcmd.c (printf_command): Pass dummy argument to
5542 printf_filtered.
5543
fc36e839
DE
55442010-03-04 Doug Evans <dje@google.com>
5545
111f853c
DE
5546 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5547 unwound_fp.
5548
fc36e839
DE
5549 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5550
c7437ca6
PA
55512010-03-04 Pedro Alves <pedro@codesourcery.com>
5552
5553 * breakpoint.c (update_watchpoint): Create a sentinel location if
5554 the software watchpoint isn't watching any memory.
5555 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5556
58dadb1b
PA
55572010-03-04 Pedro Alves <pedro@codesourcery.com>
5558
5559 * utils.c (fputs_maybe_filtered): Check if there's already a top
5560 level interpreter before dereferencing it. If there isn't one,
5561 don't paginate either.
5562
50e98be4
DJ
55632010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5564
5565 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5566 the state right when single stepping.
5567 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5568 Get the next PC along with the instruction state.
5569 (thumb_get_next_pc): Remove.
5570 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5571
2e3ceee9
HZ
55722010-03-04 Hui Zhu <teawater@gmail.com>
5573
5574 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5575
390a8aca
PA
55762010-03-03 Pedro Alves <pedro@codesourcery.com>
5577
5578 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5579 top level interpreter is MI.
5580
9355b391
SS
55812010-03-03 Stan Shebs <stan@codesourcery.com>
5582
5583 * remote.c (remote_download_tracepoint): Iterate over locations.
5584 * tracepoint.c (validate_actionline): Ditto.
5585 (encode_actions): Add location argument.
5586 (trace_dump_command): Check all locations to see if stepping
5587 frame.
390a8aca 5588
8685c86f
L
55892010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5590 Eli Zaretskii <eliz@gnu.org>
5591
5592 * NEWS: Add X86 general purpose registers section.
5593
e8f781e2
TT
55942010-03-03 Tom Tromey <tromey@redhat.com>
5595
5596 PR mi/11098:
5597 * varobj.c (install_new_value): Handle case where new print_value
5598 is NULL.
5599
a0e0ef55
TT
56002010-03-03 Dainis Jonitis <jonitis@gmail.com>
5601
5602 PR gdb/11345:
5603 * printcmd.c (printf_command): Print end of format string using
5604 printf_filtered.
5605
a58d7472
TT
56062010-03-02 Tom Tromey <tromey@redhat.com>
5607
5608 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5609 * defs.h (read_command_lines_1): Add missing 'void'.
5610 * cli/cli-script.c (recurse_read_control_structure): Add missing
5611 'void'.
5612 (read_next_line): Likewise.
5613 (read_command_lines_1): Likewise.
5614
ce50d78b
UW
56152010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5616
5617 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5618 store backchain as part of prologue.
5619
7e9af34a
DJ
56202010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5621
5622 * progspace.c (update_address_spaces): Update inferior address spaces
5623 also.
5624
01637564
DE
56252010-03-02 Doug Evans <dje@google.com>
5626
5627 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5628 lowpc,highpc args to addrmap_set_empty.
5629
1ba53b71
L
56302010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5631
5632 * amd64-tdep.c (amd64_byte_names): New.
5633 (amd64_word_names): Likewise.
5634 (amd64_dword_names): Likewise.
5635 (amd64_pseudo_register_name): Likewise.
5636 (amd64_pseudo_register_read): Likewise.
5637 (amd64_pseudo_register_write): Likewise.
5638 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5639 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5640 set_gdbarch_pseudo_register_write and
5641 set_tdesc_pseudo_register_name. Don't call
5642 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5643
5644 * i386-tdep.c (i386_num_mmx_regs): Removed.
5645 (i386_num_pseudo_regs): Likewise.
5646 (i386_byte_names): New.
5647 (i386_word_names): Likewise.
5648 (i386_byte_regnum_p): Likewise.
5649 (i386_word_regnum_p): Likewise.
5650 (i386_mmx_regnum_p): Updated.
5651 (i386_pseudo_register_name): Make it global. Handle byte and
5652 word pseudo-registers.
5653 (i386_pseudo_register_read): Likewise.
5654 (i386_pseudo_register_write): Likewise.
5655 (i386_pseudo_register_type): Handle byte, word and dword
5656 pseudo-registers
5657 (i386_register_reggroup_p): Don't include pseudo
5658 registers, except for MXX, in any register groups. Don't
5659 include pseudo byte, word, dword registers in general_reggroup.
5660 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5661 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5662 pseudo-registers after word pseudo-registers. Call
5663 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5664
5665 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5666 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5667 eax_regnum.
5668 (i386_byte_regnum_p): New.
5669 (i386_word_regnum_p): Likewise.
5670 (i386_dword_regnum_p): Likewise.
5671 (i386_pseudo_register_name): Likewise.
5672 (i386_pseudo_register_read): Likewise.
5673 (i386_pseudo_register_write): Likewise.
5674
a6f5ef51
L
56752010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 * target-descriptions.c (tdesc_type): Remove
5678 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5679 (tdesc_predefined_types): Likewise.
5680 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5681 if flag name is empty.
5682 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5683
5684 * features/i386/32bit-core.xml: Define i386_eflags.
5685 * features/i386/64bit-core.xml: Likewise.
5686
5687 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5688 * features/i386/64bit-sse.xml: Likewise.
5689
5690 * features/i386/amd64-linux.c: Regenerated.
5691 * features/i386/amd64.c: Likewise.
5692 * features/i386/i386-linux.c: Likewise.
5693 * features/i386/i386.c: Likewise.
5694
f5dff777
DJ
56952010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5696
5697 * gdbtypes.c (append_composite_type_field_raw): New.
5698 (append_composite_type_field_aligned): Use the new function.
5699 * gdbtypes.h (append_composite_type_field_raw): Declare.
5700 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5701 (struct tdesc_type_flag): New type.
5702 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5703 kind. Add size to u.u. Add u.f for flags.
5704 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5705 (tdesc_free_type): Likewise.
5706 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5707 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5708 (tdesc_add_bitfield, tdesc_add_flag): New.
5709 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5710 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5711 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5712 current_type. Add current_type_size and current_type_is_flags.
5713 (tdesc_start_union): Clear the new fields.
5714 (tdesc_start_struct, tdesc_start_flags): New.
5715 (tdesc_start_field): Handle struct fields, including bitfields.
5716 (field_attributes): Make type optional. Add start and end.
5717 (union_children): Rename to struct_union_children.
5718 (union_attributes): Rename to struct_union_attributes. Add optional
5719 size.
5720 (flags_attributes): New.
5721 (feature_children): Add struct and flags.
5722 * features/gdb-target.dtd: Add flags and struct to features.
5723 Make field type optional. Add field start and end.
5724
90884b2b
L
57252010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5726
5727 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5728 (amd64_linux_read_description): Likewise.
5729 (_initialize_amd64_linux_nat): Set to_read_description to
5730 amd64_linux_read_description.
5731
5732 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5733 (amd64_linux_register_name): Removed.
5734 (amd64_linux_register_type): Likewise.
5735 (amd64_linux_core_read_description): New.
5736 (amd64_linux_init_abi): Set target description to
5737 tdesc_amd64_linux if needed. Support orig_rax in target
5738 description. Don't call set_gdbarch_register_name nor
5739 set_gdbarch_register_type. Call
5740 set_gdbarch_core_read_description.
5741 (_initialize_amd64_linux_tdep): Call
5742 initialize_tdesc_amd64_linux.
5743
5744 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5745
5746 * amd64-tdep.c: Include "features/i386/amd64.c".
5747 (amd64_register_names): Removed.
5748 (amd64_register_name): Likewise.
5749 (amd64_register_type): Likewise.
5750 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 5751 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
5752 set_gdbarch_register_name nor set_gdbarch_register_type.
5753 (_initialize_amd64_tdep): New.
5754
5755 * i386-linux-nat.c (i386_linux_read_description): New.
5756 (_initialize_i386_linux_nat): Set to_read_description to
5757 i386_linux_read_description.
5758
5759 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5760 (i386_linux_register_name): Removed.
5761 (i386_linux_core_read_description): New.
5762 (i386_linux_read_description): Likewise.
5763 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5764 Set target description to tdesc_i386_linux if needed. Support
5765 orig_eax. Set register_reggroup_p. Call
5766 set_gdbarch_core_read_description.
5767 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5768
5769 * i386-linux-tdep.h (tdesc_i386_linux): New.
5770
5771 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5772 with I387_NUM_REGS.
5773
5774 * i386-tdep.c: Include "features/i386/i386.c".
5775 (i386_register_names): Make it const.
5776 (i386_mmx_names): Likewise.
5777 (i386_num_register_names): Removed.
5778 (i386_register_name): Likewise.
5779 (i386_eflags_type): Likewise.
5780 (i386_mxcsr_type): Likewise.
5781 (i386_sse_type): Likewise.
5782 (i386_register_type): Likewise.
5783 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5784 (i386_pseudo_register_name): New.
5785 (i386_pseudo_register_type): Likewise.
5786 (i386_mmx_type): Make it static.
5787 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5788 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5789 call set_gdbarch_register_name nor set_gdbarch_register_type.
5790 Set register_reggroup_p. Set target description to tdesc_i386
5791 if needed. Call set_tdesc_pseudo_register_type,
5792 set_tdesc_pseudo_register_name and tdesc_use_registers.
5793 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5794 initialize_tdesc_x86_64.
5795
5796 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5797 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5798 register_names, tdesc and register_reggroup_p.
5799 (I386_NUM_FREGS): Removed.
5800 (i386_eflags_type): Likewise.
5801 (i386_mxcsr_type): Likewise.
5802 (i386_mmx_type): Likewise.
5803 (i386_sse_type): Likewise.
5804 (i386_register_name): Likewise.
5805 (i386_regnum): Add I386_MXCSR_REGNUM.
5806 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5807
5808 * i387-tdep.h (I387_NUM_REGS): New.
5809
5810 * regformats/i386/i386-linux.dat: Generated.
5811 * regformats/i386/i386.dat: Likewise.
5812 * regformats/i386/amd64-linux.dat: Likewise.
5813 * regformats/i386/amd64.dat: Likewise.
5814
5815 * regformats/reg-i386-linux.dat: Removed.
5816 * regformats/reg-i386.dat: Likewise.
5817 * regformats/reg-x86-64-linux.dat: Likewise.
5818 * regformats/reg-x86-64.dat: Likewise.
5819
d0d0ab16
CV
58202010-03-01 Corinna Vinschen <vinschen@redhat.com>
5821
5822 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5823 cygwin_conv_path API rather than the deprecated
5824 cygwin_conv_to_full_posix_path.
5825 * windows-nat.c:
5826 (GetModuleFileNameExA): Undefine for Cygwin.
5827 (GetModuleFileNameExW): Define for Cygwin.
5828 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5829 Call GetModuleFileNameExW and convert path to POSIX using
5830 cygwin_conv_path.
5831 (windows_make_so): Always define p. Drop unused variable m.
5832 Don't use Win32 functions to check file existance, rather use
5833 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5834 Use canonicalize_file_name to get full path.
5835 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5836 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5837 use correct target buffer size in call to WideCharToMultiByte.
5838 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5839 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5840 (windows_create_inferior): Convert all paths and arguments to wchar_t
5841 and use CreateProcessW on Cygwin.
5842 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5843 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5844 (bad_GetModuleFileNameExW): Define for Cygwin.
5845 (_initialize_loadable): Load GetModuleFileNameExW into
5846 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5847
dc00d89f
PM
58482010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5849
5850 PR python/11036
5851 * python/py-frame.c (frapy_read_var): Add block argument and logic
5852 to cope with user provided blocks.
5853
0e095b7e
JK
58542010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5855
5856 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5857 New comment.
5858
2f9e05b4
CV
58592010-02-28 Corinna Vinschen <vinschen@redhat.com>
5860
5861 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5862 (COMMON_OBS): ... to here since it's used unconditionally.
5863 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5864 (SFILES): To here.
5865
eb195664
DD
58662010-02-26 David Daney <ddaney@caviumnetworks.com>
5867
5868 * mips-linux-tdep.c: Update struct sigframe comments.
5869 (SIGFRAME_CODE_OFFSET): Delete macro.
5870 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5871 this_frame's sp.
5872 (mips_linux_n32n64_sigframe_init): Same.
5873
97b0f3e2
KB
58742010-02-26 Kevin Buettner <kevinb@redhat.com>
5875
5876 * remote-mips.c (mips_load): Don't use pseudo-register when
5877 invalidating regcache.
5878
4069ebbe
DJ
58792010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5880
5881 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5882
05071a4d
PA
58832010-02-26 Pedro Alves <pedro@codesourcery.com>
5884
5885 * NEWS: Add "New targets" section, and mention ARM Symbian
5886 support.
5887
6063c216
UW
58882010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5889
5890 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5891 add ADDR_SIZE member.
5892 (allocate_piece_closure): Update.
5893 (copy_pieced_value_closure): Likewise.
5894 (dwarf2_evaluate_loc_desc): Likewise.
5895 (read_pieced_value): Use DWARF address size instead of
5896 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5897
5107b149 58982010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 5899 Tom Tromey <tromey@redhat.com>
5107b149
PM
5900
5901 * python/py-type.c (typy_lookup_typename): Add in block argument.
5902 If provided restrict lookup to specified blocks.
5903 (gdbpy_lookup_type): Likewise.
5904 (typy_lookup_type): Likewise.
5905
78664fa3 59062010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 5907
78664fa3
PA
5908 Symbian config
5909
5910 gdb/
5911 * arm-symbian-tdep.c: New.
5912 * configure.tgt (arm*-*-symbianelf*): New target.
5913 (*-*-symbianelf*): New OS.
5914 * osabi.c (gdb_osabi_names): Add Symbian.
5915 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5916 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5917 (ALLDEPFILES): Add arm-symbian-tdep.c.
5918
eb73e134
DJ
59192010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5920
5921 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5922
46ef47e5
PA
59232010-02-24 Pedro Alves <pedro@codesourcery.com>
5924
5925 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5926
f3e9a817 59272010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 5928 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
5929 Thiago Jung Bauermann <bauerman@br.ibm.com>
5930
5931 * python/python.c (_initialize_python): Call
5932 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5933 gdbpy_initialize_blocks.
5934 * python/python-internal.h: Declare struct symbol, block and
5935 symtab_and_line. Declare block_object_type and
5936 symbol_object_type
5937 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5938 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5939 (symbol_to_symbol_object, block_to_block_object)
5940 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5941 (gdbpy_initialize_blocks ): Declare.
5942 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5943 (frapy_select): Add methods.
5944 (frapy_read_var): Add symbol branch.
5945 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5946 py-block.
5947 (SUBDIR_PYTHON_SRCS): Likewise.
5948 (py-symbol.o): New rule.
5949 (py-symtab.o): Likewise.
5950 (py-block.o): Likewise.
5951 * python/py-symbol.c: New file.
5952 * python/py-symtab.c: Likewise.
5953 * python/py-block.c: Likewise.
5954
24291992
PA
59552010-02-24 Pedro Alves <pedro@codesourcery.com>
5956
5957 PR gdb/11321
5958
5959 * inferior.h (prepare_for_detach): Declare.
5960 (struct inferior) <detaching>: New field.
5961 * infrun.c (prepare_for_detach): New.
5962 (handle_inferior_event) <random signal>: Don't stop if detaching.
5963 * target.c (target_detach): Call prepare_for_detach.
5964
fc1cf338
PA
59652010-02-24 Pedro Alves <pedro@codesourcery.com>
5966
5967 Per-process displaced stepping queue.
5968
5969 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5970 (displaced_step_gdbarch, displaced_step_closure,
5971 (displaced_step_original, displaced_step_copy): Move globals to
5972 this...
5973 (struct displaced_step_inferior_state): ... new structure.
5974 (displaced_step_inferior_states): New global.
5975 (get_displaced_stepping_state, add_displaced_stepping_state)
5976 (remove_displaced_stepping_state, infrun_inferior_exit): New
5977 functions.
5978 (displaced_step_clear): Add displaced_step_inferior_state
5979 parameter, and adjust to handle it.
5980 (displaced_step_clear_cleanup): Parameter is now a
5981 displaced_step_inferior_state. Adjust.
5982 (displaced_step_prepare): Adjust.
5983 (displaced_step_fixup, displaced_step_fixup)
5984 (infrun_thread_ptid_changed, resume): Adjust.
5985 (init_wait_for_inferior): Don't call displaced_step_clear.
5986 (infrun_thread_stop_requested): Rewrite.
5987 (_initialize_infrun): Install infrun_inferior_exit as
5988 inferior_exit observer.
5989
0723dbf5
PA
59902010-02-24 Pedro Alves <pedro@codesourcery.com>
5991
5992 * inferior.h (ptid_match): Declare.
5993 * infrun.c (ptid_match): New.
5994 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5995 (handle_notification): Add debug output.
5996 * linux-nat.c (ptid_match): Delete.
5997
09de9781
DM
59982010-02-24 David S. Miller <davem@davemloft.net>
5999
6000 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
6001 * syscalls/sparc-linux.xml: New.
6002 * syscalls/sparc64-linux.xml: New.
6003 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
6004 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
6005 (sparc32_linux_get_syscall_number): New function.
6006 (sparc32_linux_init_abi): Set syscall XML file name and hook up
6007 syscall number fetcher.
6008 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
6009 (sparc64_linux_get_syscall_number): New function.
6010 (sparc64_linux_init_abi): Set syscall XML file name and hook up
6011 syscall number fetcher.
6012
a79b8f6e
VP
60132010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6014
6015 Multiexec MI
6016
6017 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
6018 * inferior.c (add_inferior_silent): Notify inferior_added
6019 observer.
6020 (delete_inferior_1): Notify inferior_removed observer.
6021 (exit_inferior_1): Pass inferior, not pid, to observer.
6022 (inferior_appeared): Likewise.
6023 (add_inferior_with_spaces): New.
6024 (add_inferior_command): Use the above.
6025 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
6026 Declare.
6027
6028 * inflow.c (inflow_inferior_exit): Likewise.
6029 * jit.c (jit_inferior_exit_hook): Likewise.
6030
6031 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
6032 remove-inferior.
6033 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6034 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
6035 (report_initial_inferior): New.
6036 (mi_inferior_removed): Register the above. Make sure
6037 inferior_added observer is called on the first inferior.
6038 (mi_new_thread, mi_thread_exit): Thread group is now identified by
6039 inferior number, not pid.
6040 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
6041 affected.
6042 * mi/mi-main.c (current_context): New.
6043 (proceed_thread_callback): Use typed closure.
6044 Proceed everything if pid is 0. Most implementation split into
6045 (proceed_thread): ... this.
6046 (run_one_inferior): New.
6047 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
6048 Adjust for multiexec behaviour.
6049 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6050 (mi_cmd_execute): Handle the 'thread-group' option here.
6051 Do some extra checks.
6052 * mi-parse.c (mi_parse): Handle the --all and --thread-group
6053 options.
6054 * mi-parse.h (struct mi_parse): New fields all and thread_group.
6055
115d30f9
VP
60562010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6057
6058 Make -exec-run a proper MI commands.
6059
6060 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6061 * mi/mi-cmds.c (mi_cmds): Adjust.
6062 * mi/mi-main.c (mi_cmd_exec_run): New.
6063
06cd862c
PA
60642010-02-24 Pedro Alves <pedro@codesourcery.com>
6065 Stan Shebs <stan@codesourcery.com>
6066
6067 * tracepoint.h (set_traceframe_number)
6068 (cleanup_restore_current_traceframe): Declare.
6069 * tracepoint.c (set_traceframe_number): New.
6070 (struct current_traceframe_cleanup): New.
6071 (do_restore_current_traceframe_cleanup)
6072 (restore_current_traceframe_cleanup_dtor)
6073 (make_cleanup_restore_current_traceframe): New.
6074 * infrun.c: Include tracepoint.h.
6075 (fetch_inferior_event): Switch out and in of tfind mode.
6076
ab92d69b
PA
60772010-02-24 Pedro Alves <pedro@codesourcery.com>
6078
6079 * breakpoint.c (breakpoint_init_inferior): Also delete
6080 bp_shlib_event breakpoints.
6081 * solib-frv.c (enable_break): Remove call to
6082 remove_solib_event_breakpoints.
6083 * solib-svr4.c (enable_break): Ditto.
6084 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6085 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6086 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6087 * solib-spu.c (spu_enable_break): Ditto.
6088
e707a91d
PA
60892010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6090
6091 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6092
cfce2ea2
PA
60932010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6094
6095 * varobj.c (varobj_update): Avoid non-constants in initializers.
6096
05566b3b
TT
60972010-02-23 Tom Tromey <tromey@redhat.com>
6098
6099 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6100 handle big-endian values.
6101 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6102
85d721b8
PA
61032010-02-22 Pedro Alves <pedro@codesourcery.com>
6104
6105 PR9605
6106
6107 gdb/
6108 * breakpoint.c (insert_bp_location): If inserting the read
6109 watchpoint failed, fallback to an access watchpoint.
6110 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6111 if the value changed, if not watching the same memory for writes.
6112 (watchpoint_locations_match): Add comment.
6113 (update_global_location_list): Copy the location's watchpoint type.
6114 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6115 handle read watchpoints here.
6116 (i386_insert_watchpoint): Read watchpoints aren't supported.
6117 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6118 packets.
6119 * target.h (target_insert_watchpoint): Update description.
6120
48ea67a7
TT
61212010-02-19 Tom Tromey <tromey@redhat.com>
6122
6123 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6124 * m2-typeprint.c (m2_print_type): Update.
6125 * gdbtypes.c (recursive_dump_type): Update.
6126 (copy_type_recursive): Update.
6127 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6128 (c_type_print_base): Update.
6129 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6130 Remove.
6131 (struct cplus_struct_type) <ntemplate_args>: Remove.
6132 <struct template_arg>: Remove.
6133 <is_dynamic>: Move earlier.
6134 (TYPE_TEMPLATE_ARGS): Remove.
6135 (TYPE_NTEMPLATE_ARGS): Remove.
6136 (TYPE_TEMPLATE_ARG): Remove.
6137
48e32051
TT
61382010-02-19 Tom Tromey <tromey@redhat.com>
6139
6140 PR c++/8693, PR c++/9496:
6141 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6142 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6143 write_dollar_variable. Don't try to classify NAME tokens.
6144 (token_and_value): New type.
6145 (token_fifo, popping, name_obstack): New globals.
6146 (classify_name): New function.
6147 (classify_inner_name): Likewise.
6148 (yylex): Likewise.
6149 (VARIABLE): Now has type sval.
6150 (exp : VARIABLE): Call write_dollar_variable.
6151 (qualified_name): Use TYPENAME, not typebase. Add production for
6152 multiple "::" instances.
6153 (variable): Use name_not_typename.
6154 (qualified_type): Remove.
6155 (typebase): Update.
6156
672d9c23
JK
61572010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6158
6159 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6160 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6161 found by bfd_get_section_by_name.
6162 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6163
bfbf3774
JB
61642010-02-19 Joel Brobecker <brobecker@adacore.com>
6165
6166 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6167 7.0 section" into "Changes in 7.1".
6168
6756b09b 61692010-02-19 Joel Brobecker <brobecker@adacore.com>
6170
6171 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6172 * version.in: Bump version to 7.1.50.20100219-cvs.
6173
202b96c1
PA
61742010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6175
6176 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6177 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6178
de2e5182
TT
61792010-02-17 Tom Tromey <tromey@redhat.com>
6180
6181 * NEWS: Add Python API Improvements section.
6182
7280022e
DJ
61832010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6184
6185 * NEWS: Correct typo.
6186
6f451e5e
TT
61872010-02-17 Tom Tromey <tromey@redhat.com>
6188
6189 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6190
012836ea
JK
61912010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6192
6193 * symfile.c (build_section_addr_info_from_objfile): Include sections
6194 only if they are SEC_ALLOC or SEC_LOAD.
6195
d182d057
L
61962010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6197
6198 PR shlibs/11293
6199 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6200 of ULONGEST for address size.
6201
4eef138c
TT
62022010-02-17 Tom Tromey <tromey@redhat.com>
6203
6204 * NEWS: Add C++ improvements section.
6205
548a926a
UW
62062010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6207
6208 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6209 PyThreadState_Swap): Avoid "statement with no effect" warning.
6210
ad3a0e5b
JK
62112010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6214 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6215
243e2c5d 62162010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 6217 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
6218
6219 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6220 gdb_assert. Fix info->size for SIG prologue.
6221
275f2e57
DJ
62222010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6223
6224 * infcmd.c (show_inferior_tty_command): Check for NULL.
6225 Correct output message.
6226
791dfb64
DJ
62272010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6228
6229 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6230 FUNCTION contains parentheses. Improve removal of a trailing
6231 single quote.
6232
14d1346b
DJ
62332010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6234
6235 * gcore.c (do_bfd_delete_cleanup): New function.
6236 (gcore_command): Use it. Discard the cleanup after success.
6237 (gcore_copy_callback): Delete dead code.
6238
e76ab67f
DJ
62392010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6240
6241 * symfile.c (addr_info_make_relative): Always use
6242 find_lowest_section.
6243
71dee663
SW
62442010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6245
6246 * NEWS: Added entry for namespace fixes.
6247
a9854bd5
TT
62482010-02-15 Tom Tromey <tromey@redhat.com>
6249
6250 * dwarf2read.c (guess_structure_name): Allocate name on the
6251 objfile obstack.
6252
fd9e29b5
TT
62532010-02-15 Tom Tromey <tromey@redhat.com>
6254
6255 * c-typeprint.c (c_type_print_base): Reverse order of test.
6256
4e1fc9c9
JK
62572010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6258
6259 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6260 initialize it from ELF BFD. Extend the prelink condition by it.
6261
74164c56
JK
62622010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6263
6264 * defs.h (parse_pid_to_attach): New.
6265 * utils.c (parse_pid_to_attach): New.
6266 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6267 * gnu-nat.c (gnu_attach): Likewise.
6268 * nto-procfs.c (procfs_attach): Likewise.
6269 * procfs.c (procfs_attach): Likewise.
6270 * windows-nat.c (windows_attach): Likewise.
6271 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6272 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6273 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6274 check.
6275
bf6adea8
MM
62762010-02-14 Masaki Muranaka <monaka@monami-software.com>
6277
6278 * MAINTAINERS: Add myself for write after approval privileges.
6279
28f34a8f
JK
62802010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6281
6282 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6283 block.
6284
701ed6dc
JK
62852010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6286
6287 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6288 only if INFO_VERBOSE.
6289
e5829bee
MS
62902010-02-12 Tomas Holmberg <th@virtutech.com>
6291
6292 * mi/mi-main.c: Added the --reverse flag to the following MI
6293 commands: exec-continue, exec-finish, exec-next, exec-step,
6294 exec-next-instruction, exec-step-instruction. This is to
6295 support reverse execution over the MI interface to gdb.
6296
081dfbf7
PA
62972010-02-12 Pedro Alves <pedro@codesourcery.com>
6298
6299 * tracepoint.c (_initialize_tracepoint): Specify that the address
6300 range of `tfind outsize' is exclusive, and that the address range
6301 of `tfind range' is inclusive, in the commands' help strings.
6302
ecc13e53
JB
63032010-02-12 Joel Brobecker <brobecker@adacore.com>
6304
6305 Spurious "dll not found" error messages on x64-windows.
6306 * windows-nat.c: Add include of complaints.h.
6307 (handle_unload_dll): Change dll-not-found error into a complaint.
6308
15c3d785
PA
63092010-02-12 Pedro Alves <pedro@codesourcery.com>
6310
6311 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6312 bp_tracepoint and bp_fast_tracepoint, not
6313 bp_loc_software_breakpoint.
6314 (update_global_location_list): Tracepoints are never duplicates of
6315 anything.
6316
fd9b8c24
PA
63172010-02-12 Pedro Alves <pedro@codesourcery.com>
6318
6319 * breakpoint.c (break_command_really): Change return type to int.
6320 Return false if no breakpoint was created, true otherwise.
6321 (trace_command): Don't set the tracepoint count if no tracepoint
6322 was created.
6323 (ftrace_command): Ditto.
6324 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6325 created in the breakpoints table.
6326
5c0d192f
JK
63272010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 Ulrich Weigand <uweigand@de.ibm.com>
6329
6330 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6331
5d5b640e
PA
63322010-02-11 Pedro Alves <pedro@codesourcery.com>
6333
6334 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6335 the offset value isn't of integral type.
6336
e5a0a904
JK
63372010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6338
6339 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6340 New.
6341
be636754
PA
63422010-02-11 Pedro Alves <pedro@codesourcery.com>
6343
6344 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6345 non-subscriptable types.
6346 * valarith.c (binop_types_user_defined_p): New, abstracted out
6347 from ...
6348 (binop_user_defined_p): ... this.
6349 * value.h (binop_types_user_defined_p): Declare.
6350
10ef8d6a
PA
63512010-02-11 Pedro Alves <pedro@codesourcery.com>
6352
6353 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6354 Merge uploaded TSVs before merging uploaded tracepoints.
6355
b1028c8e
PA
63562010-02-11 Pedro Alves <pedro@codesourcery.com>
6357
6358 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6359
7a93fb82 63602010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 6361
7a93fb82
VP
6362 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6363 whitespace character after a dot in comment.
6364 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6365 Likewise.
6366 (list_args_or_locals): For the 'all' (that is
6367 -stack-list-variables) case, always output list of tuples.
6368 Output 'arg' field if variable is argument.
84d90c10 6369
92981e24
TT
63702010-02-10 Tom Tromey <tromey@redhat.com>
6371
6372 * parser-defs.h (parser_debug): Declare.
6373 * parse.c (_initialize_parse): Install "debug parser" set/show
6374 command.
6375 (parser_debug): New global.
6376 (show_parserdebug): New function.
6377 * c-exp.y (c_parse): Set yydebug.
6378
9fd3625f
L
63792010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6380
6381 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6382 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6383 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6384 i386_mxcsr.
6385 (tdesc_find_type): New.
6386 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6387 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6388
6389 * target-descriptions.h (tdesc_find_type): New.
6390
2fe842e5
MS
63912010-02-10 Michael Snyder <msnyder@vmware.com>
6392
6393 * gdb-gdb.py: Comment fix.
6394
f18b4cab
TG
63952010-02-09 Tristan Gingold <gingold@adacore.com>
6396
6397 * machoread.c (macho_symfile_relocate): New function.
6398 (macho_sym_fns): Use macho_symfile_relocate instead of
6399 default_symfile_relocate.
6400 (macho_oso_data): New type.
6401 (current_oso): New variable.
6402 (macho_add_oso_symfile): Do not compute section_addr_info, but
6403 instead set vma of sections.
6404 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6405 Set and clear current_oso.
6406
31dbc1c5
JB
64072010-02-09 Joel Brobecker <brobecker@adacore.com>
6408
6409 Wrong type description for tagged type parameter.
6410 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6411 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6412 reference to a tagged type.
6413
399f313b
TG
64142010-02-09 Tristan Gingold <gingold@adacore.com>
6415
6416 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6417 brothers of the parent.
6418
714f19d5
TT
64192010-02-08 Tom Tromey <tromey@redhat.com>
6420
6421 PR c++/8017:
6422 * value.h: Update.
6423 * valops.c (search_struct_field): Make 'name' const.
6424 (search_struct_method): Likewise.
6425 (find_method_list): Make 'method' const.
6426 (value_struct_elt): Make 'name' and 'err' const.
6427 (value_find_oload_method_list): Make 'method' const.
6428 (find_overload_match): Make 'name' const.
6429 * eval.c (evaluate_subexp_standard): New locals function,
6430 function_name.
6431 <OP_FUNCALL>: Handle OP_SCOPE specially.
6432
de0a0249
UW
64332010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6434
6435 * infrun.c (handle_inferior_event): Do not look up regcache
6436 for exited processes.
6437
8d95cc3b 64382010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
6439
6440 PR gdb/10728
6441 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 6442 warn if found, and assume length = 1.
83b10087 6443
99903ae3
CM
64442010-02-08 Chris Moller <cmoller@redhat.com>
6445
6446 PR gdb/9067
6447 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 6448 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 6449
e3e9f5a2
PA
64502010-02-08 Pedro Alves <pedro@codesourcery.com>
6451
6452 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6453 resumed LWPs as resumed.
6454 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6455 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6456 of throwing an internal error. If an LWP of a process we're not
6457 waiting for reports a signal, don't force collecting a SIGSTOP,
6458 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6459 go through all LWPs cancelling breakpoints in non-stop mode.
6460 (resume_stopped_resumed_lwps): New.
6461 (linux_nat_wait): Use it.
6462
46763423
L
64632010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6464
6465 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6466 i386/amd64 and i386/amd64-linux.
6467 (i386/i386-expedite): New.
6468 (i386/i386-linux-expedite): Likewise.
6469 (i386/amd64-expedite):Likewise.
6470 (i386/amd64-linux-expedite): Likewise.
6471 ($(outdir)/i386/i386-linux.dat): Likewise.
6472 ($(outdir)/i386/amd64.dat): Likewise.
6473 ($(outdir)/i386/amd64-linux.dat): Likewise.
6474
6475 * features/i386/32bit-core.xml: New.
6476 * features/i386/32bit-linux.xml: Likewise.
6477 * features/i386/32bit-sse.xml: Likewise.
6478 * features/i386/64bit-core.xml: Likewise.
6479 * features/i386/64bit-linux.xml: Likewise.
6480 * features/i386/64bit-sse.xml: Likewise.
6481 * features/i386/i386-linux.xml: Likewise.
6482 * features/i386/i386.xml: Likewise.
6483 * features/i386/amd64-linux.xml: Likewise.
6484 * features/i386/amd64.xml: Likewise.
6485 * features/i386/i386-linux.c: Likewise.
6486 * features/i386/i386.c: Likewise.
6487 * features/i386/amd64-linux.c: Likewise.
6488 * features/i386/amd64.c: Likewise.
6489
82856980
SW
64902010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6491
6492 PR c++/7935:
6493 * cp-support.h: Added char* alias element to using_direct data
6494 struct.
6495 (cp_add_using): Added char* alias argument.
6496 (cp_add_using_directive): Ditto.
6497 * cp-namespace.c: Updated with the above changes.
6498 (cp_lookup_symbol_imports): Check for aliases.
6499 * dwarf2read.c (read_import_statement): Figure out local alias
6500 for the import and pass it on to cp_add_using.
6501 (read_namespace): Pass alias argument to cp_add_using.
6502
d18b8b7a
HZ
65032010-02-05 Hui Zhu <teawater@gmail.com>
6504
6505 * defs.h (gdb_bfd_errmsg): New extern.
6506 * exec.c (exec_file_attach): Change bfd_errmsg to
6507 gdb_bfd_errmsg.
6508 * utils.c (AMBIGUOUS_MESS1): New macro.
6509 (AMBIGUOUS_MESS2): New macro.
6510 (gdb_bfd_errmsg): New function.
6511
48379de6
DE
65122010-02-04 Doug Evans <dje@google.com>
6513
6514 * solib-svr4.c (enable_break): Add comment.
6515
4ee73e90
AG
65162010-02-04 Anthony Green <green@moxielogic.com>
6517
6518 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6519 gracefully.
6520
1a334831
TT
65212010-02-04 Tom Tromey <tromey@redhat.com>
6522
6523 * valops.c (search_struct_field): Account for
6524 value_embedded_offset. Fix check for virtual base past the end of
6525 the object. Use value_copy when making a slice of the value.
6526
1180b2c8
L
65272010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6528
6529 PR tui/9622
6530 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6531 only if gdb_stdout is a tty.
6532
c3f08eb7
L
65332010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6534
6535 * target-descriptions.c: Include "osabi.h".
6536 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6537 OSABI.
6538
2d33f7b8
TG
65392010-02-04 Tristan Gingold <gingold@adacore.com>
6540
6541 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6542 (macho_symtab_read): Adjust calls to macho_add_oso.
6543 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6544 (macho_symfile_read): Adjust call to macho_oso_symfile.
6545 (macho_new_init): Move this function after declarations.
6546 (macho_symfile_init): Ditto.
6547 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6548 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6549
11334b82
VP
65502010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6551
6552 Include MI command in remotelog.
6553
6554 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6555
ff97be06
L
65562010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6557
6558 * remote.c (remote_state): Remove gdbarch.
6559 (init_remote_state): Don't set gdbarch.
6560 (remote_query_supported): Pass target_gdbarch instead of
6561 rs->gdbarch to gdbarch_qsupported.
6562
75cebea9
L
65632010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6564
6565 * gdbarch.sh: Add qsupported.
6566
6567 * gdbarch.c: Regenerated.
6568 * gdbarch.h: Likewise.
6569
6570 * remote.c (remote_state): Add gdbarch.
6571 (init_remote_state): Set gdbarch.
6572 (remote_query_supported): Support gdbarch_qsupported.
6573
c1dec97b
DJ
65742010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6575
6576 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6577 __FreeBSD_kernel_version.
6578
ac8035ab
TG
65792010-02-03 Tristan Gingold <gingold@adacore.com>
6580
6581 * symfile.h (struct sym_fns): Add sym_relocate field.
6582 (default_symfile_relocate): New prototype.
6583 (symfile_relocate_debug_section): First argument is now an objfile.
6584 * symfile.c (default_symfile_relocate): Rename from
6585 symfile_relocate_debug_section, first argument is now an objfile.
6586 (symfile_relocate_debug_section): New function.
6587 * coffread.c (coff_sym_fns): Set sym_relocate field.
6588 * somread.c (som_sym_fns): Ditto.
6589 * mipsread.c (ecoff_sym_fns): Ditto.
6590 * machoread.c (macho_sym_fns): Ditto.
6591 * elfread.c (elf_sym_fns): Ditto.
6592 * dwarf2read.c (dwarf2_read_section): Ditto.
6593 * xcoffread.c (xcoff_sym_fns): Ditto.
6594 * dbxread.c (aout_sym_fns): Ditto.
6595 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6596 (elfstab_build_psymtabs): Ditto.
6597
be52b756
L
65982010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6599
6600 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6601
9c3c02fd
TT
66022010-02-02 Tom Tromey <tromey@redhat.com>
6603
6604 * valops.c (value_cast_structs): Try downcasting using the RTTI
6605 type.
6606
f23f4c59
TT
66072010-02-02 Tom Tromey <tromey@redhat.com>
6608
6609 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6610 (gnuv2_baseclass_offset): Now static.
6611 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6612 * gnu-v2-abi.h: Remove.
6613
0cc2414c
TT
66142010-02-02 Tom Tromey <tromey@redhat.com>
6615
6616 * m2-typeprint.c (m2_record_fields): Don't use
6617 TYPE_DECLARED_TYPE.
6618 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6619 (struct main_type) <flag_declared_class>: New field.
6620 (struct cplus_struct_type) <declared_type>: Remove.
6621 <ntemplate_args>: Move earlier.
6622 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6623 (DECLARED_TYPE_TEMPLATE): Remove.
6624 (TYPE_DECLARED_TYPE): Remove.
6625 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6626 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6627 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6628 TYPE_DECLARED_TYPE.
6629
edf3d5f3
TT
66302010-02-02 Tom Tromey <tromey@redhat.com>
6631
6632 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6633 * valops.c (search_struct_field): Compute nbases after calling
6634 CHECK_TYPEDEF.
6635 (check_field): Call CHECK_TYPEDEF.
6636 * cp-valprint.c (cp_print_value): Pass correct address to
6637 baseclass_offset. Fix check for virtual base past the end of the
6638 object. Don't offset address passed to cp_print_value_fields or
6639 apply_val_pretty_printer.
6640 (cp_print_value_fields): Fix call to val_print.
6641 (cp_print_value_fields_rtti): New function.
6642 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6643 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6644 val_print.
6645 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6646 offset to address.
6647 * language.h (struct language_defn) <la_val_print>: Document.
6648 * c-lang.h (cp_print_value_fields_rtti): Declare.
6649
e4b7f41c
JK
66502010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6651
6652 PR libc/11214:
6653 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6654 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6655 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6656
7618e12b
DJ
66572010-02-01 Michael Matz <matz@suse.de>
6658 Daniel Jacobowitz <dan@codesourcery.com>
6659
e4b7f41c 6660 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
6661 functions use a frame pointer.
6662
b381ea14
JK
66632010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6664
6665 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6666 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6667 * config/djgpp/fnchange.lst: Add translations for
6668 symbol-without-target_section.exp and symbol-without-target_section.c.
6669
0e05dfcb
DJ
66702010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6671
6672 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6673 (remote_breakpoint_for_pc): Correct invalid_p check.
6674 * gdbarch.c: Regenerated.
6675
f9d67f43
DJ
66762010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6677
6678 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6679 arm_pc_is_thumb.
6680 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6681 (extend_buffer_earlier): New function.
6682 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6683 (arm_adjust_breakpoint_address): New function.
6684 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6685
177321bd
DJ
66862010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6687
6688 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6689 (arm_linux_thumb2_le_breakpoint): New constants.
6690 (arm_linux_init_abi): Set thumb2_breakpoint and
6691 thumb2_breakpoint_size.
6692 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6693 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6694 Implement support for single stepping through IT blocks if
6695 a 32-bit Thumb breakpoint instruction is available.
6696 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6697 is available, use it when needed.
6698 (arm_remote_breakpoint_from_pc): New function.
6699 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6700 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6701 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6702
a1dcb23a
DJ
67032010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6704
6705 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6706 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6707 * gdbarch.c, gdbarch.h: Regenerated.
6708 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6709 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6710 gdbarch_remote_breakpoint_from_pc.
6711
2b009048
DJ
67122010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6713
6714 * infrun.c (prepare_to_proceed): Handle other signals which might
6715 match a breakpoint.
6716 (handle_inferior_event): Move the check for unusual breakpoint
6717 signals earlier.
6718
e4e2711a
JB
67192010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6720
6721 amd64 - function returning record with field straddling 2 registers.
6722 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6723 a record of length <= 16 in which a field straddles the two
6724 eightbytes.
6725
cba6fab5
JB
67262010-01-29 Joel Brobecker <brobecker@adacore.com>
6727
6728 Implement return values on amd64-windows.
6729 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6730 (amd64_windows_return_value): New function.
6731 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6732 amd64_windows_return_value.
6733
3af6ddfe
JB
67342010-01-29 Joel Brobecker <brobecker@adacore.com>
6735
6736 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 6737 parameter registers.
3af6ddfe
JB
6738 * i386-tdep.h (struct gdbarch_tdep): Add new field
6739 integer_param_regs_saved_in_caller_frame.
6740 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6741 tdep->integer_param_regs_saved_in_caller_frame to 1.
6742 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6743 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6744
80d19a06
JB
67452010-01-29 Joel Brobecker <brobecker@adacore.com>
6746
6747 amd64-windows: memory args passed by pointer during function calls.
6748 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6749 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6750 where tdep->memory_args_by_pointer is non-zero.
6751 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6752 tdep->memory_args_by_pointer to 1.
6753
ba581dc1
JB
67542010-01-29 Joel Brobecker <brobecker@adacore.com>
6755
4966b6c2 6756 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
6757 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6758 amd64-tdep.c.
6759 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6760 call_dummy_integer_regs, and classify.
6761 * amd64-tdep.h (amd64_classify): Add declaration.
6762 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6763 (amd64_reg_class): Delete, moved to i386-tdep.h.
6764 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6765 Replace call to amd64_classify by call to tdep->classify.
6766 (amd64_push_arguments): Get the list of registers to use for
6767 passing integer parameters from the gdbarch tdep structure,
6768 rather than using a hardcoded one. Replace calls to amd64_classify
6769 by calls to tdep->classify.
6770 (amd64_push_dummy_call): Get the register number used for
6771 the "hidden" argument from tdep->call_dummy_integer_regs.
6772 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6773 and tdep->call_dummy_integer_regs. Set tdep->classify.
6774 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6775 (amd64_windows_dummy_call_integer_regs): New static global.
6776 (amd64_windows_classify): New function.
6777 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6778 tdep->call_dummy_integer_regs and tdep->classify.
6779
d37346f0
DJ
67802010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6781
6782 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6783 for the new regcache. All callers updated.
6784 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6785 (get_thread_arch_regcache): Do not set aspace here.
6786 * regcache.h (regcache_xmalloc): Update declaration.
6787
6788 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6789 regcache_xmalloc updated.
6790
7434dadd
JB
67912010-01-28 Joel Brobecker <brobecker@adacore.com>
6792
6793 Another -Wunused-function error in procfs.c (sparc-solaris)
6794 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6795 Only define if SYS_syssgi is defined.
6796 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6797 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6798 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6799 is itself defined.
6800
16d905e2
CF
68012010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6802
6803 * windows-nat.c (windows_initialization_done): New variable.
6804 (get_windows_debug_event): Issue error when process dies before
6805 completely initializing.
6806 (do_initial_windows_stuff): Set flag to indicate when we are done with
6807 the initial steps of attaching to the child.
6808
cd55e50f
JK
68092010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6812
99cc78aa
DE
68132010-01-27 Doug Evans <dje@google.com>
6814
4c7dcb84
DE
6815 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6816
99cc78aa
DE
6817 * breakpoint.c (bpstat_stop_status): Delete useless code.
6818
52334bf5
JK
68192010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6820
6821 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6822 objfile via SYMBOL_SYMTAB.
6823
708ead4e
TT
68242010-01-26 Tom Tromey <tromey@redhat.com>
6825
6826 PR exp/7643:
6827 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6828 coerce_array on result.
6829
b14e635e
SW
68302010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6831
6832 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6833 search_parent argument.
6834 (cp_add_using): Initialize 'searched' field.
6835 (reset_directive_searched): New function.
6836 * cp-support.h: Add 'searched' field to using_direct struct.
6837 (cp_lookup_symbol_imports): Ditto.
6838 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6839 Perform recursive search.
6840 Implement non parent search.
6841 * valops.c (value_maybe_namespace_elt): Updated.
6842
8540c487
SW
68432010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6844
6845 PR gdb/10929:
6846 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6847 scopes which contain using directives even if they contain no
6848 declarations.
6849 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6850 la_lookup_symbol_nonlocal.
6851 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6852 cp_lookup_symbol_namespace.
6853 (cp_lookup_symbol_namespace): Perform an import lookup at every
6854 block level.
6855 (cp_lookup_symbol_imports): New function.
6856 (cp_lookup_symbol_in_namespace): New function.
6857
421d5d99
TT
68582010-01-25 Tom Tromey <tromey@redhat.com>
6859
6860 PR gdb/11049:
6861 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6862 result.
6863
6bcc772d
RO
68642010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6865
6866 * configure.ac: Only use host_os part when disabling TUI on osf.
6867 Use test to check variables, prefix strings with x.
6868 * configure: Regenerate.
6869
6870 * solib-osf.c (osf_current_sos): Initialize tail.
6871
1c1238a5
TG
68722010-01-25 gingold <gingold@adacore.com>
6873
c8d5aac9
L
6874 * windows-nat.c (windows_continue): Use %x to print thread id.
6875 (get_windows_debug_event): Ditto.
1c1238a5 6876
0b92b5bb
TT
68772010-01-22 Tom Tromey <tromey@redhat.com>
6878
6879 PR symtab/11199:
6880 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6881 type and arguments. Use smash_to_methodptr_type.
6882 (read_structure_type): Call quirk_gcc_member_function_pointer
6883 later.
6884 * gdbtypes.h (smash_to_methodptr_type): Declare.
6885 * gdbtypes.c (smash_to_methodptr_type): New function.
6886 (lookup_methodptr_type): Use it.
6887
0d5392b8
TT
68882010-01-21 Tom Tromey <tromey@redhat.com>
6889
6890 PR symtab/11198:
6891 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6892 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6893 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6894 (glibc_skip_solib_resolver): Use
6895 lookup_minimal_symbol_and_objfile.
6896
e6d088ec
KT
68972010-01-21 Kai Tietz <kai.tietz@onevision.com>
6898
6899 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6900 WIN32 targets.
6901
b966cb8a
TT
69022010-01-20 Tom Tromey <tromey@redhat.com>
6903
6904 PR backtrace/10770:
6905 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6906 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6907 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6908 dwarf_stack_values, not CORE_ADDRs.
6909 (execute_stack_op): Change DW_OP_div and comparison operators to
6910 use signed operands.
6911
3f81c18a
VP
69122010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6913
6914 Per-inferior args and tty and environment.
6915
6916 * infcmd.c (inferior_args): Rename to ...
6917 (inferior_args_scratch): ... this.
6918 (inferior_io_terminal): Rename to ...
6919 (inferior_io_terminal_scratch): ... this.
6920 (inferior_argc, inferior_argv): Remove.
6921 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6922 inside current_inferior().
6923 (set_inferior_tty_command, show_inferior_tty_command): New.
6924 (get_inferior_args, set_inferior_args): Store inside
6925 current_inferior().
6926 (notice_args_set): Likewise and rename to...
6927 (set_args_command): ... this.
6928 (set_inferior_args_vector): Likewise.
6929 (notice_args_read): Rename to...
6930 (show_args_command): ...new.
6931 (tty_command): Remove.
6932 (run_command_1): Don't free old args, as they are freed by
6933 set_inferior_arg now.
6934 (run_no_args_command): Likewise.
6935 (inferior_environ): Remove.
6936 (run_command_1): Use environment of the current inferior.
6937 (environment_info, set_environment_command)
6938 (unset_environment_command, path_info, path_command): Likewise.
6939 (_initialize_infcmd): Adjust for function and variable renames.
6940 Do not init inferior_environ.
6941 * inferior.h (set_inferior_arg): Adjust prototype.
6942 (struct inferior): New fields args, argc, argv, terminal, environment.
6943 (inferior_environ): Remove declaration.
6944 * inferior.c (free_inferior): Free new fields.
6945 (add_inferior_silent): Initialize 'environment' field.
6946 * main.c (captured_main): Set arguments only after the initial
6947 inferior has been created. Set set_inferior_io_terminal,
6948 not tty_command.
6949 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6950 inferior.
6951 (_initialize_mi_cmd_env): Adjust for disappearance of global
6952 inferior_environ.
6953 * solib.c (solib_find): Use environment of the current inferior.
6954
d8b65138
JK
69552010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6956
6957 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6958 HAVE_PYTHON.
6959 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6960
692465f1
JB
69612010-01-20 Joel Brobecker <brobecker@adacore.com>
6962
6963 Get rid of ada-lang.c:function_name_from_pc.
6964 * ada-lang.c: Add "stack.h" #include.
6965 (function_name_from_pc): Delete.
6966 (is_known_support_routine): Replace call to function_name_from_pc
6967 by call to find_frame_funname.
6968 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6969
95519e0e
TT
69702010-01-19 Tom Tromey <tromey@redhat.com>
6971
6972 PR c++/11026:
6973 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6974 objfile obstack.
6975
95c11dc7
TT
69762010-01-19 Tom Tromey <tromey@redhat.com>
6977
6978 * top.c (stop_sig, float_handler, do_nothing): Remove.
6979
a0f49112
JK
69802010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6981
6982 * breakpoint.c (watchpoint_check): Check the call
6983 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6984 Extend the comment.
8d95cc3b 6985 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
6986 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6987 watchpoint-cond-gone-stripped.c.
6988
ceeb3d5a
TT
69892010-01-19 Tom Tromey <tromey@redhat.com>
6990
6991 PR c++/8000:
6992 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6993 into parent scope, and enumerator into grandparent scope.
6994
2b71fc8e
JB
69952010-01-19 Joel Brobecker <brobecker@adacore.com>
6996
6997 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6998
03564ed9
JB
69992010-01-19 Joel Brobecker <brobecker@adacore.com>
7000
7001 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
7002 i[34567]86-*-solaris2.1[0-9]*.
7003 * configure.tgt: Likewise.
7004
fb2e7cb4
JB
70052010-01-19 Joel Brobecker <brobecker@adacore.com>
7006
7007 * NEWS: Document the source command enhancement allowing it
7008 to load Python scripts. Document the "set/show script-extension"
7009 commands.
7010
1cb5e2a4
JB
70112010-01-19 Joel Brobecker <brobecker@adacore.com>
7012
7013 Add -Wunused-function to compile flags.
7014 * configure.ac: Add -Wunused-function to build_warnings.
7015 * configure: Regenerate.
7016
0ec6cd0c
JB
70172010-01-19 Joel Brobecker <brobecker@adacore.com>
7018
7019 "delete" ada-lex.c:input function, not used.
7020 * ada-lex.l: #define YY_NO_INPUT.
7021
b74845da
JB
70222010-01-19 Joel Brobecker <brobecker@adacore.com>
7023
7024 Delete free_named_symtabs and associated cleanup.
7025 * symfile.h (free_named_symtabs): Delete declaration.
7026 * symfile.c: Remove some commented out code (clear_symtab_users_once).
7027 (cashier_psymtab): Comment function out.
7028 Delete declaration.
7029 (free_named_symtabs): Delete.
7030 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
7031 * dbxread.c (end_psymtab): Likewise.
7032 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
7033 * exec.c (exec_close_1): Ditto.
7034 * xcoffread.c (xcoff_end_psymtab): Likewise.
7035
65c06092
JB
70362010-01-19 Joel Brobecker <brobecker@adacore.com>
7037
7038 * stack.c (print_block_frame_labels): Comment function out.
7039
d5cd6034
JB
70402010-01-19 Joel Brobecker <brobecker@adacore.com>
7041
7042 Delete unused or undefined functions.
7043 * breakpoint.c (ep_parse_optional_filename): Delete.
7044 * dcache.c (dcache_write_line): Remove declaration.
7045 * infrun.c (build_infrun): Remove declaration.
7046 * tracepoint.c (tracepoint_save_command): Remove declaration.
7047 * linux-nat.c (init_lwp_list): Delete. No longer used.
7048 * event-loop.c (check_async_signal_handlers): Delete declaration.
7049 * infrun.c (init_execution_control_state): Delete.
7050 (proceed): Update comment to avoid mentioning
7051 init_execution_control_state.
7052 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
7053 * ada-lang.c (ada_to_static_fixed_value): Delete.
7054 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
7055 * cp-namespace.c (cp_copy_usings): Delete.
7056 * xml-syscall.c (xml_number_of_syscalls): Delete.
7057 * progspace.c (find_program_space_by_num): Delete.
7058 * inflow.c (handle_sigio): Delete declaration.
7059 * hppa-tdep.c (hppa_alignof): Delete.
7060 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
7061 (mipsnbsd_core_osabi_sniffer): Delete.
7062
4e8f195d
TT
70632010-01-18 Tom Tromey <tromey@redhat.com>
7064
7065 PR c++/9680:
7066 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
7067 (CONST_CAST): New tokens.
7068 (exp): Add new productions.
7069 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
7070 reinterpret_cast.
7071 (is_cast_operator): New function.
7072 (yylex): Handle cast operators specially.
7073 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
7074 UNOP_REINTERPRET_CAST>: New cases.
7075 * expprint.c (print_subexp_standard): Likewise.
7076 (op_name_standard): Likewise.
7077 (dump_subexp_body_standard): Likewise.
7078 * parse.c (operator_length_standard): Likewise.
7079 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
7080 UNOP_REINTERPRET_CAST.
7081 * gdbtypes.c (class_types_same_p): New function.
7082 (is_ancestor): Use it.
7083 (is_public_ancestor): New function.
7084 (is_unique_ancestor_worker): Likewise.
7085 (is_unique_ancestor): Likewise.
7086 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7087 (is_unique_ancestor): Declare.
7088 * valops.c (value_reinterpret_cast): New function.
7089 (dynamic_cast_check_1): Likewise.
7090 (dynamic_cast_check_2): Likewise.
7091 (value_dynamic_cast): Likewise.
7092 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7093
d9c57d9f
JB
70942010-01-18 Joel Brobecker <brobecker@adacore.com>
7095
7096 Fix build failure when building without Python support.
7097 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7098 is not defined.
7099
f80d3ff2
JB
71002010-01-18 Joel Brobecker <brobecker@adacore.com>
7101
7102 Use XVS field type instead of doing a parallel lookup.
7103 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7104 if it is a reference type instead of doing a type lookup using
7105 the XVS field name.
7106
5bf03f13
JB
71072010-01-18 Joel Brobecker <brobecker@adacore.com>
7108
7109 Trust PAD types instead of using PAD___XVS.
7110 * ada-lang.c (trust_pad_over_xvs): New static variable.
7111 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7112 parallel XVS type, follow the XVS type instead of the PAD type.
7113 (unwrap_value): Make sure that there is no parallel XVE type
7114 before returning the value as is.
7115 (set_ada_list, show_ada_list): New static variables.
7116 (set_ada_command, show_ada_command): New functions.
7117 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7118 Add new "set/show ada trust-PAD-over-XVS" setting.
7119
973817a3
JB
71202010-01-18 Tom Tromey <tromey@redhat.com>
7121 Thiago Jung Bauermann <bauerman@br.ibm.com>
7122
7123 Allow "source" to load python scripts.
7124 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7125 * python/python.c (source_python_script): New function.
7126 * python/python.h (source_python_script): Add declaration.
7127 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7128 (script_ext_off, script_ext_soft, script_ext_strict)
7129 (script_ext_enums, script_ext_mode): New static constants.
7130 (show_script_ext_mode, find_and_open_script): New functions.
7131 (source_script): Enhance to handle Python scripts.
7132 (init_cli_cmds): Add set/show script-extension commands.
7133
98e03262
SS
71342010-01-16 Stan Shebs <stan@codesourcery.com>
7135
7136 * tracepoint.h (struct trace_status): Use unsigned long long
7137 instead of size_t.
7138 * tracepoint.c (trace_status_command): Fix printf directive.
7139 (trace_save_command): Check fwrite returns, fix printf directive.
7140 (trace_filename): New global.
7141 (tfile_open): Set it, check read returns.
7142 (tfile_close): Free trace_filename.
7143 (tfile_get_traceframe_address): Check read returns.
7144 (tfile_trace_find): Ditto.
7145 (tfile_fetch_registers): Ditto.
7146 (tfile_xfer_partial): Ditto.
7147 (tfile_get_trace_state_variable_value): Ditto.
7148
00bf0b85
SS
71492010-01-15 Stan Shebs <stan@codesourcery.com>
7150
7151 Add trace file support.
7152 * tracepoint.h (enum trace_stop_reason): New enum.
7153 (struct trace_status): New struct.
7154 (parse_trace_status): Declare.
7155 (struct uploaded_tp): Move here from remote.c,
7156 add fields for actions.
7157 (struct uploaded_tsv): New struct.
7158 * tracepoint.c (tfile_ops): New target vector.
7159 (trace_fd): New global.
7160 (tfile_open): New function.
7161 (tfile_close): New function.
7162 (tfile_files_info): New function.
7163 (tfile_get_trace_status): New function.
7164 (tfile_get_traceframe_address): New function.
7165 (tfile_trace_find): New function.
7166 (tfile_fetch_registers): New function.
7167 (tfile_xfer_partial): New function.
7168 (tfile_get_trace_state_variable_value): New function.
7169 (init_tfile_ops): New function.
7170 (_initialize_tracepoint): Call it, add tfile target.
7171 (trace_status): New global.
7172 (current_trace_status): New function.
7173 (trace_running_p): Remove, change all users to get from
7174 current_trace_status()->running.
7175 (get_trace_status): Remove.
7176 (trace_status_command): Call target_get_trace_status directly,
7177 report more detail including tracing stop reasons.
7178 (trace_find_command): Always allow tfind on a file.
7179 (trace_find_pc_command): Ditto.
7180 (trace_find_tracepoint_command): Ditto.
7181 (trace_find_line_command): Ditto.
7182 (trace_find_range_command): Ditto.
7183 (trace_find_outside_command): Ditto.
7184 (trace_frames_offset, cur_offset): Declare as off_t.
7185 (trace_regblock_size): Rename from reg_size, update users.
7186 (parse_trace_status): New function.
7187 (tfile_interp_line): New function.
7188 (disconnect_or_stop_tracing): Ensure current trace
7189 status before asking what to do.
7190 (stop_reason_names): New global.
7191 (trace_save_command): New command.
7192 (get_uploaded_tp): Move here from remote.c.
7193 (find_matching_tracepoint): Ditto.
7194 (merge_uploaded_tracepoints): New function.
7195 (parse_trace_status): Use stop_reason_names.
7196 (_initialize_tracepoint): Define tsave command.
7197 * target.h (target_ops): New fields to_save_trace_data,
7198 to_upload_tracepoints, to_upload_trace_state_variables,
7199 to_get_raw_trace_data, change to_get_trace_status
7200 to take a pointer to a status struct.
7201 (target_save_trace_data): New macro.
7202 (target_upload_tracepoints): New macro.
7203 (target_upload_trace_state_variables): New macro.
7204 (target_get_raw_trace_data): New macro.
7205 * target.c (update_current_target): Add new methods, change
7206 signature of to_get_trace_status.
7207 * remote.c (hex2bin): Make globally visible.
7208 (bin2hex): Ditto.
7209 (remote_download_trace_state_variable): Download name also.
7210 (remote_get_trace_status): Update parameter, use
7211 parse_trace_status.
7212 (remote_save_trace_data): New function.
7213 (remote_upload_tracepoints): New function.
7214 (remote_upload_trace_state_variables): New function.
7215 (remote_get_raw_trace_data): New function.
7216 (remote_start_remote): Use them.
7217 (_initialize_remote_ops): Add operations.
7218 * ax-gdb.c: Include breakpoint.h.
7219 * breakpoint.c (create_tracepoint_from_upload): Use
7220 break_command_really, return tracepoint, warn about unimplemented
7221 parts.
7222 * NEWS: Mention trace file addition.
7223
d904de5b
JK
72242010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7225
7226 Fix compilation warning on gcc-3.4.
7227 * exec.c (print_section_info): Move the `displacement' variable
7228 initialization to its declaration.
7229
64aa9731
JK
72302010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7231
7232 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7233 comparison.
7234
ca1f5def 72352010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
7236
7237 "info tasks" broken by typedefs in ATCB type definitions.
7238 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7239 ada_check_typedef before retrieving the length of the type for
7240 regular fields.
7241
12ab9e09
JB
72422010-01-15 Joel Brobecker <brobecker@adacore.com>
7243
7244 Do not use name-based lookup for unconstrained packed arrays.
7245 * ada-lang.c (find_parallel_type_by_descriptive_type):
7246 Limit the fallback to name-based lookups to the case where
7247 the type is a constrained packed array.
7248
c389c3dc
JB
72492010-01-15 Joel Brobecker <brobecker@adacore.com>
7250
7251 Enhance gdb-gdb.py to handle main_type.type_specific.
7252 * gdb-gdb.py: Print the type-specific part of struct main_type.
7253
7991dee7
JK
72542010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7255
7256 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7257 * configure: Regenerate.
7258 * config.in: Regenerate.
7259 * utils.c: Include sys/resource.h.
7260 (dump_core, can_dump_core): New.
7261 (internal_vproblem): Update the comment. Check can_dump_core while
7262 setting dump_core_p. Replace two abort calls by dump_core calls.
7263
93c26624
JK
72642010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7265 Eli Zaretskii <eliz@gnu.org>
7266
7267 * NEWS: Document the PIE support.
7268
55235ad7
JK
72692010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7270
7271 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7272 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7273
41752192
JK
72742010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7277 Replace exec_entry_point call by bfd_get_start_address.
7278
9f2982ff
JK
72792010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7280
7281 Support Valgrind attachments broken by the PIE support.
7282 * auxv.c: Include gdbcore.h.
7283 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7284 parameters ops, object and annex. Remove their assertions.
7285 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7286 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7287 (memory_xfer_auxv): ... here.
7288 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7289 memory_xfer_auxv.
7290 * procfs.c (procfs_xfer_partial): Likewise.
7291 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7292 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7293 (svr4_solib_create_inferior_hook): Conditionalize the
7294 svr4_relocate_main_executable call.
7295
61f0d762
JK
72962010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7297
7298 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7299 target_section. Find SECT in current_target_sections, gdb_assert it.
7300 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7301 New variable abfd.
7302 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7303 of separate debug info file.
7304
51bee8e9
JK
73052010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 Support PIEs with no symfile_objfile.
7308 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7309 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7310
b8040f19
JK
73112010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7312
7313 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7314 code part to ...
7315 (svr4_static_exec_displacement): ... a new function.
7316 (svr4_exec_displacement): New function.
7317 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7318 new_offsets using alloca now. Remove variable old_chain and changed.
7319 Call objfile_relocate unconditionally now.
7320
eb90ce83
DE
73212010-01-14 Doug Evans <dje@google.com>
7322
7323 * gdbtypes.c (arch_flags_type): Fix comment.
7324 * gdbtypes.h (arch_composite_type): Fix comment.
7325
bdfed3bc
TG
73262009-01-14 Tristan Gingold <gingold@adacore.com>
7327
7328 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7329 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7330 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7331 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7332 macho_add_oso_symfile.
7333 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7334
1596ad23
JB
73352010-01-14 Joel Brobecker <brobecker@adacore.com>
7336
7337 Tru64: Dead threads are never deleted.
7338 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7339 (dec_thread_count_gdb_threads): Fix counter increment.
7340 (dec_thread_add_gdb_thread): Fix *listp increment.
7341 (resync_thread_list): Fix bug in deletion of dead threads that
7342 caused all threads to be deleted, instead of just the dead ones.
7343
be759fcf
PM
73442010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7345
7346 PR python/10705
7347
7348 * python/python-internal.h: Add lazy_string_object_type
7349 definition.
7350 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7351 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7352 * python/py-value.c (valpy_lazy_string): New function.
7353 (convert_value_from_python): Add lazy string conversion.
7354 * python/py-prettyprint.c (pretty_print_one_value): Check if
7355 return is also a lazy string.
7356 (print_string_repr): Add lazy string printing branch.
7357 (print_children): Likewise.
7358 * python/py-lazy-string.c: New file. Implement lazy strings.
7359 * python/python.c (_initialize_python): Call
7360 gdbpy_initialize_lazy_string.
7361 * varobj.c (value_get_print_value): Add lazy string printing
7362 branch. Account for encoding.
7363 * c-lang.c (c_printstr): Account for new encoding argument. If
7364 encoding is NULL, find encoding suited for type, otherwise use
7365 user encoding.
7366 * language.h (language_defn): Add encoding argument.
7367 (LA_PRINT_STRING): Likewise.
7368 * language.c (unk_lang_printstr): Update to reflect new encoding
7369 argument to language_defn.
7370 * ada-lang.h (ada_printstr): Likewise.
7371 * c-lang.h (c_printstr): Likewise.
7372 * p-lang.h (pascal_printstr);
7373 * f-lang.c (f_printstr): Likewise.
7374 * m2-lang.c (m2_printstr): Likewise.
7375 * objc-lang.c (objc_printstr): Likewise.
7376 * p-lang.c (pascal_printstr): Likewise.
7377 * scm-lang.c (scm_printstr): Likewise.
7378 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7379 encoding argument.
7380 * ada-valprint.c (ada_printstr): Likewise.
7381 * f-valprint.c (f_val_print): Likewise
7382 * m2-valprint.c (m2_val_print): Likewise.
7383 * p-valprint.c (pascal_val_print): Likewise.
7384 * expprint.c (print_subexp_standard): Likewise.
7385 * valprint.c (val_print_string): Likewise.
7386 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7387 (SUBDIR_PYTHON_SRCS): Likewise.
7388 (py-lazy-string.o): New rule.
7389
1fe72117 73902010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
7391
7392 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7393 uninitialized" warning from gcc on local `tree'.
7394
dc146f7c
VP
73952010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7396
7397 Implement core awareness.
7398
7399 * bcache.c (compare_ints): Remove
7400 (print_percentage): Use compare_positive_ints.
7401 * defs.h (compare_positive_ints): Declare.
7402 * linux-nat.h (struct lin_lwp): New field core.
7403 (linux_nat_core_of_thread_1): Declare.
7404 * linux-nat.c (add_lwp): Init the 'core' field.
7405 (linux_nat_wait_1): Record the core.
7406 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7407 (linux_nat_add_target): Register the above.
7408 * linux-thread-db.c (update_thread_core): New.
7409 (thread_db_find_new_threads): Update core information for
7410 every thread.
7411 * remote.c (struct private_thread_info): New.
7412 (free_private_thread_info, demand_private_info): New.
7413 (PACKET_qXfer_threads, use_osdata_threads): New.
7414 (struct thread_item, threads_parsing_context
7415 (start_thread, end_thread, thread_attributes)
7416 (thread_children, threads_children, threads_elements): New.
7417 (remote_threads_info): Try qXfer:threads before anything
7418 else.
7419 (remote_protocol_packets): Register qXfer:threads.
7420 (remote_open_1): Init use_osdata_threads.
7421 (struct stop_reply): New field 'core'.
7422 (remote_parse_stop_reply): Parse core number.
7423 (process_stop_reply): Record core number.
7424 (remote_xfer_partial): Handle qXfer:threads.
7425 (remote_core_of_thread): New.
7426 (init_remote_ops): Register remote_core_of_thread.
7427 (_initialize_remote): Register qXfer:read.
7428 * target.c (target_core_of_thread): New
7429 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7430 (struct target_ops): New field to_core_of_threads.
7431 (target_core_of_thread): Declare.
7432 * gdbthread.h (struct thread_info): New field private_dtor.
7433 * thread.c (print_thread_info): Report the core.
7434 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7435 * utils.c (compare_positive_ints): New.
7436 * features/threads.dtd: New.
7437 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7438 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7439 (do_nothing, free_vector_of_osdata_items)
7440 (splay_tree_int_comparator, free_splay_tree): New.
7441 (print_one_inferior_data): Implemented printing of selected
7442 inferiors. Collect and print cores.
7443 (output_cores): New.
7444 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7445 thread groups together with --available.
7446
d30c5336
JK
74472010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7448
7449 * configure: Regenerate (for _STRUCTURED_PROC).
7450
02893727
JB
74512010-01-12 Joel Brobecker <brobecker@adacore.com>
7452
7453 Delete dead function.
7454 * ada-lang.c (extract_string): Delete. No longer used.
7455
46ed2d6f
JB
74562010-01-12 Joel Brobecker <brobecker@adacore.com>
7457
7458 Fix -Wunused warning in dec-thread.c.
7459 * dec-thread.c (dec_thread_count_gdb_threads)
7460 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7461
606b8d1a
JB
74622010-01-12 Joel Brobecker <brobecker@adacore.com>
7463
7464 * ada-valprint.c (ada_print_floating): Remove trailing space.
7465
b4ba55a1
JB
74662010-01-12 Joel Brobecker <brobecker@adacore.com>
7467
7468 Add support for DW_AT_GNAT_descriptive_type.
7469 * gdbtypes.h (enum type_specific_kind): New enum.
7470 (struct main_type) [type_specific_field]: New component.
7471 [type_specific]: Add new component "gnat_stuff".
7472 (struct gnat_aux_type): New type.
7473 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7474 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7475 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7476 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7477 (TYPE_SPECIFIC_FIELD): New macros.
7478 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7479 type does not hold any cplus-specific data.
7480 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7481 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7482 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7483 cplus-specific data.
7484 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7485 Set new component TYPE_SPECIFIC_FIELD (type).
7486 (gnat_aux_default): New constant.
7487 (allocate_gnat_aux_type): New function.
7488 (init_type): Add initialization the type-specific stuff for
7489 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7490 (print_gnat_stuff): New function.
7491 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7492 specific data. Adjust code that prints the contents of the
7493 type-specific union using the TYPE_SPECIFIC_FIELD value.
7494 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7495 the type cplus stuff for Ada types.
7496 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7497 Error out if these routines are called with an Ada type.
7498 (read_structure_type, read_array_type, read_subrange_type):
7499 Add call to set_descriptive_type.
7500 (set_die_type): Initialize the gnat-specific data if necessary.
7501 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7502 New functions.
7503 * ada-lang.c (decode_constrained_packed_array_type): Use
7504 decode_constrained_packed_array_type instead of doing a standard
7505 lookup to locate a parallel type.
7506 (find_parallel_type_by_descriptive_type): New function.
7507 (ada_find_parallel_type_with_name): New function.
7508 (ada_find_parallel_type): Reimplement using
7509 ada_find_parallel_type_with_name.
7510 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7511 to check if type has a cplus stuff.
7512 * linespec.c (total_number_of_methods): Likewise.
7513 * mdebugread.c (new_type): Likewise.
7514
b0f02ee9
JK
75152010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 * NEWS: Document the 0b binary number prefix parsing.
7518
b260e109
JK
75192010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7520
7521 * objfiles.c (objfile_relocate1): Change the return type to int.
7522 Describe the new return value. Return non-zero if data changed.
7523 (objfile_relocate): New variable changed. Set it. Call
7524 breakpoint_re_set depending on CHANGED.
7525
b5cfddf5
JK
75262010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7527
7528 Implement binary numbers parsing.
7529 * c-exp.y (parse_number): New case 'b' and 'B'.
7530
e0ae4240
JK
75312010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7532 Tristan Gingold <gingold@adacore.com>
7533
7534 * solib.c (info_sharedlibrary_command): Replace
7535 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7536 objfile_has_symbols.
7537
6e0e5977
JB
75382010-01-10 Joel Brobecker <brobecker@adacore.com>
7539
7540 * NEWS: Document the improvements made to the mips-irix port.
7541
7348c5e1
JB
75422010-01-09 Joel Brobecker <brobecker@adacore.com>
7543
7544 Fix the documentation of valprint.c:value_print.
7545 * valprint.c (value_print): Update the function description to
7546 mention that the syntax of the output follows the current_language,
7547 not necessarily C.
7548
567995e1
JK
75492010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7550
7551 Fix displacement of separate debug info files.
7552 * objfiles.c (objfile_relocate): Rename to ...
7553 (objfile_relocate1): ... here and make it static. Extend the comment.
7554 (objfile_relocate): New function.
7555 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7556 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7557 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7558 allocated using alloca.
7559 * symfile.c (copy_section_addr_info): Remove.
7560 (build_section_addr_info_from_objfile): Make it global. New variables
7561 addr_bit and mask, use them.
7562 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7563 (copy_section_addr_info): Remove.
7564
6d8eadbd
JB
75652010-01-09 Joel Brobecker <brobecker@adacore.com>
7566
7567 Signal unwinder for mips-irix N32.
7568 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7569 tramp-frame.h.
7570 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7571 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
7572 (SIGCONTEXT_LO_OFF): New macros.
7573 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
7574 (mips_irix_n32_tramp_frame): New static constant.
7575 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7576
27087a3d
JB
75772010-01-09 Joel Brobecker <brobecker@adacore.com>
7578
7579 Breakpoint in shared library does not work on mips-irix.
7580 * procfs.c: #include "observer.h".
7581 (procfs_inferior_created): New function, moving here the code
7582 which unsets the syssgi syscall-exit notifications.
7583 (procfs_create_inferior): Remove the code which unsets the syssgi
7584 syscall-exit notifications. It is too early to do this here.
7585 (_initialize_procfs): Attach the procfs_inferior_created observer.
7586
f08877ba
JB
75872010-01-09 Joel Brobecker <brobecker@adacore.com>
7588
7589 Wrong return convention for arrays (mips-irix).
7590 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7591 128 bits or smaller are returned the same way as structs
7592 and unions of the the same size.
7593
e4b97d48
JB
75942010-01-09 Joel Brobecker <brobecker@adacore.com>
7595
7596 Cannot set the PC on mips-irix.
7597 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7598 register number, no the cooked one.
7599
11377e68
JB
76002010-01-09 Joel Brobecker <brobecker@adacore.com>
7601
7602 Error while loading core file on mips-irix.
7603 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7604 if debugging from a core file.
7605
b2391021
JB
76062010-01-09 Joel Brobecker <brobecker@adacore.com>
7607
7608 GDB hangs when attaching to process on mips-irix.
7609 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7610 attaching to a process.
7611
f2ec0ecf
JB
76122010-01-09 Joel Brobecker <brobecker@adacore.com>
7613
7614 Use the correct breakpoint instruction on mips-irix.
7615 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7616 containing the correct breakpoint instruction to use on mips-irix.
7617 Use it when the osabi is GDB_OSABI_IRIX.
7618
3c95f01c
JB
76192010-01-09 Joel Brobecker <brobecker@adacore.com>
7620
7621 -Wunused warning in procfs.c (mips-irix only).
7622 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7623 throughout instead of using praddset and prdelset respectively.
7624
4b7703ad
JB
76252010-01-09 Joel Brobecker <brobecker@adacore.com>
7626
7627 GDB crash while stepping into function.
7628 * infrun.c (handle_inferior_event): Refetch the current frame
7629 after handling what.main_action, in case that pointer became
7630 dangling.
7631
12c89474
JB
76322010-01-09 Joel Brobecker <brobecker@adacore.com>
7633
7634 Fix build failure of solaris-hosted cross debuggers.
7635 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7636
1a3fd262 76372010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
7638
7639 Fix build failure on sparc-solaris.
7640 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7641
75242ef4
JK
76422010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7643
7644 Move some symfile code into subroutines.
7645 * symfile.h (relative_addr_info_to_section_offsets)
7646 (addr_info_make_relative): New prototypes.
7647 * symfile.c (default_symfile_offsets): Move a part to ...
7648 (relative_addr_info_to_section_offsets): ... this new function.
7649 (default_symfile_offsets): Call it.
7650 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7651 this part to ...
7652 (addr_info_make_relative): ... this new function.
7653
268a4a75
JK
76542010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7655
7656 Add from_tty to solib_create_inferior_hook.
7657 * infcmd.c (post_create_inferior): Move solib_add after
7658 solib_create_inferior_hook. Pass from_tty to
7659 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7660 0 from_tty and comment why.
7661 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7662 * linux-nat.c (linux_child_follow_fork): Likewise.
7663 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7664 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7665 from_tty.
7666 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7667 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7668 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7669 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7670 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7671 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7672 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7673 Pass it to svr4_so_ops.solib_create_inferior_hook.
7674 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7675 from_tty.
7676 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7677 solib_add.
7678 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7679 enable_break.
7680 * solib-target.c (solib_target_solib_create_inferior_hook): New
7681 parameter from_tty.
7682 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7683 it to ops->solib_create_inferior_hook.
7684 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7685 Move solib_add after solib_create_inferior_hook, call it now with
7686 from_tty as 0. New comment there.
7687 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7688 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7689 Likewise.
7690
cf00dfa7
VP
76912010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7692
7693 Fix multiexec race.
7694 * infrun.c (handle_inferior_event): Use get_thread_regcache
7695 with events ptid, not get_current_regcache.
7696
f91e5ac3
JB
76972009-01-08 Joel Brobecker <brobecker@adacore.com>
7698
7699 GDB crash with empty executable name (MinGW).
7700 * source.c (openp): Add assert that parameter string is not NULL.
7701 if parameter string is an empty string, then return with a failure
7702 immediately.
7703
92b9ce5b
JB
77042009-01-08 Joel Brobecker <brobecker@adacore.com>
7705
7706 Get rid of support for VAX Floats.
7707 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7708 (ada_vax_float_print_function): Delete.
7709 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7710 (ada_vax_float_print_function): Delete.
7711 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7712 (ada_print_type): Remove support for VAX floats.
7713 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7714
268a4a75 77152010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
7716
7717 * stabsread.c (read_args): Handle zero arguments.
7718
f0f20949
JB
77192009-01-08 Joel Brobecker <brobecker@adacore.com>
7720
7721 Cannot find in-tree libiconv.a after reconfigure.
7722 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7723 that we can use, then cache the path to this archive.
7724 * configure: Regenerate.
7725
6b6218c5
SS
77262010-01-07 Stan Shebs <stan@codesourcery.com>
7727
35b1e5cc
SS
7728 Make tracepoint operations go through target vector.
7729 * target.h (enum trace_find_type): New enum.
7730 (struct target_ops): New fields to_trace_init,
7731 to_download_tracepoint, to_download_trace_state_variable,
7732 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7733 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7734 to_set_disconnected_tracing.
7735 (target_trace_init): New macro.
7736 (target_download_tracepoint): New macro.
7737 (target_download_trace_state_variable): New macro.
7738 (target_trace_start): New macro.
7739 (target_trace_set_readonly_regions): New macro.
7740 (target_get_trace_status): New macro.
7741 (target_trace_stop): New macro.
7742 (target_trace_find): New macro.
7743 (target_get_trace_state_variable_value): New macro.
7744 (target_set_disconnected_tracing): New macro.
7745 * target.c (update_current_target): Inherit and set defaults for
7746 tracepoint operations.
7747 * tracepoint.c (default_collect): Make globally visible.
7748 (target_is_remote): Remove, along with all calls.
7749 (tvariables_info): Call target_get_trace_state_variable_value.
7750 (remote_set_transparent_ranges): Remove.
7751 (trace_start_command): Call target_trace_init,
7752 target_download_tracepoint, etc.
7753 (download_tracepoint): Remove.
7754 (trace_stop_command): Simplify.
7755 (stop_tracing): Call target_trace_stop.
7756 (get_trace_status): Call target_get_trace_status.
7757 (trace_status_command): Add case for targets that cannot trace.
7758 (finish_tfind_command): Change to take numerical arguments, call
7759 target_trace_find.
7760 (trace_find_command): Update call to finish_tfind_command.
7761 (trace_find_pc_command): Ditto.
7762 (trace_find_tracepoint_command): Ditto.
7763 (trace_find_line_command): Ditto.
7764 (trace_find_range_command): Ditto.
7765 (trace_find_outside_command): Ditto.
7766 (set_disconnected_tracing_value): Call
7767 target_set_disconnected_tracing.
7768 * remote.c: Add protocol encoding bits from tracepoint.c.
7769 (trace_error): Move from tracepoint.c.
7770 (remote_get_noisy_reply): Ditto.
7771 (free_actions_list_cleanup_wrapper): Ditto.
7772 (free_actions_list): Ditto.
7773 (remote_trace_init): New function.
7774 (remote_download_tracepoint): New function.
7775 (remote_download_trace_state_variable): New function.
7776 (remote_trace_set_readonly_regions): New function.
7777 (remote_trace_start): New function.
7778 (remote_get_trace_status): New function.
7779 (remote_trace_stop): New function.
7780 (remote_trace_find): New function.
7781 (remote_download_trace_state_variable): New function.
7782 (remote_set_disconnected_tracing): New function.
7783 (init_remote_ops): Add tracepoint operations.
7784
6b6218c5
SS
7785 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7786
089b4803
TG
77872010-01-07 Tristan Gingold <gingold@adacore.com>
7788
7789 * symfile.c (build_section_addr_info_from_objfile): New function.
7790 (symbol_file_add_separate): Don't use offsets from objfile but
7791 built an addr info.
7792
d5551862
SS
77932010-01-06 Stan Shebs <stan@codesourcery.com>
7794
7795 Support disconnected tracing.
7796 * infcmd.c (detach_command): Ask whether to stop tracing.
7797 * cli/cli-cmds.c (quit_command): Ditto.
7798 * breakpoint.h (struct breakpoint): New field number_on_target.
7799 * breakpoint.c (create_tracepoint_from_upload): New function.
7800 (get_tracepoint_by_number_on_target): New function.
7801 * remote.c (struct remote): New field disconnected_tracing.
7802 (remote_disconnected_tracing_feature): New function.
7803 (remote_protocol_features): Add DisconnectedTracing.
7804 (struct uploaded_tp): New struct.
7805 (uploaded_tps): New global.
7806 (get_uploaded_tp): New function.
7807 (find_matching_tracepoint): New function.
7808 (remote_get_tracing_state): New function.
7809 (remote_start_remote): Call it.
7810 * tracepoint.c (disconnected_tracing): New global.
7811 (trace_start_command): Initialize number_on_target.
7812 (stop_tracing): New function, split out from...
7813 (trace_stop_command): Call stop_tracing.
7814 (get_trace_status): New function, split out from...
7815 (trace_status_command): Call get_trace_status, add info on
7816 disconnection behavior.
7817 (disconnect_or_stop_tracing): New function.
7818 (finish_tfind_command): Translate from number on target.
7819 (trace_find_tracepoint_command): Translate to number on target.
7820 (send_disconnected_tracing_value): New function.
7821 (set_disconnected_tracing): New function.
7822 (_initialize_tracepoint): Add disconnected-tracing variable.
7823 * NEWS: Mention disconnected tracing.
7824
15d123c9
TG
78252010-01-06 Tristan Gingold <gingold@adacore.com>
7826
7827 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7828 parameter to main_objfile. Iterate on all separate debug objfiles.
7829 * symfile.h (symbol_file_add_separate)
7830 (find_separate_debug_file_by_debuglink): Remove parameter names.
7831 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7832 (reread_symbols): Use free_objfile_separate_debug.
7833 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7834 Adjust comment.
7835 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7836 (free_objfile_separate_debug): New prototypes.
7837 * objfiles.c (objfile_separate_debug_iterate): New function.
7838 (add_separate_debug_objfile, free_objfile_separate_debug): New
7839 functions.
7840 (free_objfile): Use free_objfile_separate_debug. Adjust for
7841 multiple separate debug objfile.
7842 (objfile_has_symbols): Adjust comment. Iterate on all separate
7843 debug objfiles.
7844 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7845 debug objfile.
7846 (lookup_minimal_symbol_text): Ditto.
7847 (lookup_minimal_symbol_by_pc_name): Ditto.
7848 (lookup_minimal_symbol_solib_trampoline): Ditto.
7849 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7850 debug objfiles.
7851
7a697b8d
SS
78522010-01-05 Stan Shebs <stan@codesourcery.com>
7853
7854 Add fast tracepoints.
7855 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7856 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7857 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7858 * breakpoint.c (tracepoint_type): New function.
7859 (ALL_TRACEPOINTS): Use it.
7860 (should_be_inserted): Ditto.
7861 (bpstat_check_location): Ditto.
7862 (print_one_breakpoint_location): Ditto.
7863 (user_settable_breakpoint): Ditto.
7864 (set_breakpoint_location_function): Ditto.
7865 (disable_breakpoints_in_shlibs): Ditto.
7866 (delete_trace_command): Ditto.
7867 (print_it_typical): Add bp_fast_tracepoint case.
7868 (bpstat_what): Ditto.
7869 (print_one_breakpoint_location): Ditto.
7870 (allocate_bp_location): Ditto.
7871 (mention): Ditto.
7872 (breakpoint_re_set_one): Ditto.
7873 (disable_command): Ditto.
7874 (enable_command): Ditto.
7875 (check_fast_tracepoint_sals): New function.
7876 (break_command_really): Call it.
7877 (ftrace_command): New function.
7878 (_initialize_breakpoint): Add ftrace command.
7879 * gdbarch.sh (fast_tracepoint_valid_at): New.
7880 * gdbarch.h, gdbarch.c: Regenerate.
7881 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7882 (i386_gdbarch_init): Use it.
7883 * remote.c (struct remote_state): New field fast_tracepoints.
7884 (PACKET_FastTracepoints): New packet config type.
7885 (remote_fast_tracepoint_feature): New function.
7886 (remote_protocol_features): Add FastTracepoints.
7887 (remote_supports_fast_tracepoints): New function.
7888 (_initialize_remote): Add FastTracepoints.
7889 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7890 * NEWS: Mention fast tracepoints.
7891
737a160e
JB
78922010-01-06 Joel Brobecker <brobecker@adacore.com>
7893
7894 * gdb-gdb.py: New file.
7895
ce6cca6d
MS
78962010-01-05 Michael Snyder <msnyder@vmware.com>
7897
7898 * infrun.c (handle_inferior_event): Fix typo in comment.
7899
0d15807d
JK
79002010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7901
7902 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7903
7803799a
UW
79042010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7905
c8d5aac9 7906 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
7907 and s390x-linux64.
7908 (s390-linux32-expedite): Define.
7909 (s390-linux64-expedite): Define.
7910 (s390x-linux64-expedite): Define.
7911 * features/s390-acr.xml: New file.
7912 * features/s390-fpr.xml: New file.
7913 * features/s390-core32.xml: New file.
7914 * features/s390-core64.xml: New file.
7915 * features/s390x-core64.xml: New file.
7916 * features/s390-linux32.xml: New file.
7917 * features/s390-linux64.xml: New file.
7918 * features/s390x-linux64.xml: New file.
7919 * features/s390-linux32.c: New generated file.
7920 * features/s390-linux64.c: New generated file.
7921 * features/s390x-linux64.c: New generated file.
7922
7923 * regformats/s390-linux32.dat: New generated file.
7924 * regformats/s390-linux64.dat: New generated file.
7925 * regformats/s390x-linux64.dat: New generated file.
7926 * regformats/reg-s390.dat: Remove.
7927 * regformats/reg-s390x.dat: Remove.
7928
7929 * s390-nat.c: Include "auxv.h" and <elf.h>.
7930 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7931 (s390_target_wordsize): New function.
7932 (s390_auxv_parse): Likewise.
7933 (s390_get_hwcap): Likewise.
7934 (s390_read_description): Likewise.
7935 (_initialize_s390_nat): Install s390_auxv_parse and
7936 s390_read_description.
7937
7938 * s390-tdep.c: Include "features/s390-linux32.c",
7939 "features/s390-linux64.c", and "features/s390x-linux64.c".
7940 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7941 (s390_register_call_saved): New function.
7942 (s390_register_name): Remove.
7943 (s390_register_type): Remove.
7944 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7945 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7946 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7947 (s390_pseudo_register_name): New function.
7948 (s390_pseudo_register_type): New function.
7949 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7950 Handle full GPR pesudos and varying pseudo register numbers.
7951 (s390_pseudo_register_write): Likewise
7952 (s390x_pseudo_register_read): Remove.
7953 (s390x_pseudo_register_write): Likewise.
7954 (s390_register_group): Remove.
7955 (s390_pseudo_register_group): New function.
7956 (s390_regmap_gregset): Add GPR upper halves.
7957 (s390x_regmap_gregset): Likewise.
7958 (s390_regmap_fpregset): Likewise.
7959 (s390_regmap_upper): New global variable.
7960 (s390_upper_regset): New global variable.
7961 (s390_upper_regset_sections): New global variable.
7962 (s390_regset_from_core_section): Handle GPR upper halves.
7963 (s390_core_read_description): New function.
7964 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7965 register information. Handle varying pseudo register numbers.
7966 (s390_backchain_frame_unwind_cache): Likewise.
7967 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7968 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7969 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7970 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7971 Handle varying pseudo register numbers.
7972 (s390_unwind_pc): Handle varying pseudo register numbers.
7973 (s390_dwarf2_prev_register): New function.
7974 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7975 register information. Handle varying pseudo register numbers.
7976 Install s390_dwarf2_prev_register to unwind full GPRs.
7977 (s390_gdbarch_init): Handle target descriptions. Assign varying
7978 pseudo register numbers. Install s390_adjust_frame_regnum.
7979 (_initialize_s390_tdep): Initialize target descriptions.
7980
7981 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7982 (S390_NUM_REGS): Redefine to include upper half registers.
7983 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7984 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7985 (tdesc_s390_linux32): Add declaration.
7986 (tdesc_s390_linux64): Likewise.
7987 (tdesc_s390x_linux64): Likewise.
7988
1b1818e4
UW
79892010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7990
7991 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7992 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7993 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7994 (ppc_linux_vmx_regset_sections): Likewise.
7995 (ppc_linux_fp_regset_sections): Likewise.
7996
7997 * corelow.c (get_core_register_section): Constify arguments.
7998 (get_core_registers): Use gdbarch_core_regset_sections instead
7999 of hard-coded platform-specific register section names.
8000
dcbf108f
UW
80012010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8002
8003 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 8004 a register, assume the least-significant part is used.
dcbf108f
UW
8005 (write_pieced_value): Likewise.
8006
704e9165
UW
80072010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8008
8009 * printcmd.c: Include "arch-utils.h".
8010 (do_one_display): Re-parse expression if current architecture changed.
8011
c54eabfa
JK
80122010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8013 Joel Brobecker <brobecker@adacore.com>
8014
8015 * gdbtypes.c (check_typedef): New comment on type length.
8016 * value.c (allocate_value_lazy): Remove the unused atype variable. New
8017 comment on type length.
8018 (value_primitive_field): Keep the original TYPE value, new comment.
8019
50cb2941
JK
80202010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8021
8022 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
8023 p_start. Change != comparisons to > and < comparisons.
8024
be66db07
JK
80252010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8026
8027 * cli/cli-script.c (process_next_line): Check P2 overrun.
8028
abd775ce
JB
80292009-01-01 Joel Brobecker <brobecker@adacore.com>
8030
8031 Update the copyright hearder to add year 2010 for most GDB files.
8032
6479260d
JB
80332009-01-01 Joel Brobecker <brobecker@adacore.com>
8034
8035 Fix build failure in inf-ptrace.c.
8036 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
8037
4a70f654
JB
80382010-01-01 Joel Brobecker <brobecker@adacore.com>
8039
8040 * top.c (print_gdb_version): Update copyright year.
8041
595939de 80422010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
8043
8044 Fix break *FUN'address thread NUM.
8045 * ada-lex.l (task): Expand rule to also match the thread keyword.
8046
70575d34
JB
80472010-01-01 Joel Brobecker <brobecker@adacore.com>
8048
8049 Fix break *FUN'address task NUM.
8050 * ada-lex.l (task): New rule.
8051 * ada-lang.c (valid_task_id): Make sure the Ada task list has
8052 been built before using it.
8053
e1e4d4a4 8054For older changes see ChangeLog-2009.
c906108c
SS
8055\f
8056Local Variables:
8057mode: change-log
8058left-margin: 8
8059fill-column: 74
8060version-control: never
57da7796 8061coding: utf-8
c906108c 8062End:
This page took 1.478939 seconds and 4 git commands to generate.