* alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4a1be8d2
PA
12011-05-26 Pedro Alves <pedro@codesourcery.com>
2
3 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
4 for ALPHA_ZERO_REGNUM.
5 (alpha_supply_int_regs): Explicitly supply zero as the value for
6 ALPHA_ZERO_REGNUM in the register cache.
7 * alpha-nat.c (fetch_osf_core_registers): Ditto.
8
59d70315
YQ
92011-05-26 Yao Qi <yao@codesourcery.com>
10
11 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
12
251d32d9
TG
132011-05-26 Tristan Gingold <gingold@adacore.com>
14
15 * symfile.h (struct dwarf2_section_names): New type.
16 (struct dwarf2_debug_sections): New type.
17 (dwarf2_has_info): Add parameter.
18 * dwarf2read.c (dwarf2_elf_names): New variable.
19 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
20 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
21 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
22 (dwarf2_has_info): Add names parameter. Pass names
23 to dwarf2_locate_sections.
24 (section_is_p): Rewrite using the names parameter.
25 (dwarf2_locate_sections): Use section names from the names parameter.
26 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
27 * elfread.c (read_psyms): Ditto.
28 * machoread.c (macho_symfile_read): Ditto.
29
652c71b4
AS
302011-05-25 Andreas Schwab <schwab@redhat.com>
31
32 PR gdb/8677
33 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
34
f17170e5
KS
352011-05-24 Keith Seitz <keiths@redhat.com>
36
37 PR breakpoint/12803
38 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
39 (decode_compound): Unconditionally call keep_name_info.
40
cdac0397
PA
412011-05-24 Pedro Alves <pedro@codesourcery.com>
42
43 * breakpoint.c (watchpoint_check): If the watchpoint went out of
44 scope, clear its command list.
45 (map_breakpoint_numbers): Don't walk the related breakpoints list
46 of each breakpoint.
47
91d4fe3f
TT
482011-05-24 Tom Tromey <tromey@redhat.com>
49
50 * MAINTAINERS: Move Jim Blandy to past maintainers.
51
3017a003
TG
522011-05-24 Tristan Gingold <gingold@adacore.com>
53
54 * symfile.h (enum dwarf2_section_enum): New type.
55 (dwarf2_get_section_info): New prototype.
56 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
57 section_name by sect. Use a switch to select the info.
58 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
59 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
60
c91c8c16
PA
612011-05-24 Pedro Alves <pedro@codesourcery.com>
62
63 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
64 shared library event breakpoint if there's no execution.
65
77bc418a
TJB
662011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
67
68 * breakpont.c (remove_hw_watchpoints): Remove unused function.
69 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
70
c50491a7
TT
712011-05-23 Tom Tromey <tromey@redhat.com>
72
73 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
74 NULL.
75
6d64e6d4
DE
762011-05-23 Doug Evans <dje@google.com>
77
78 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
79 entry for RuntimeError to doc string.
80
2067c8d4
JG
812011-05-23 Jerome Guitton <guitton@adacore.com>
82
83 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
84 sequence for probing loops.
85
b136cd05
PA
862011-05-23 Pedro Alves <pedro@codesourcery.com>
87
88 * infrun.c (user_visible_resume_ptid): Fix typos in describing
89 comment.
90
22e74ef9
MK
912011-05-21 Mark Kettenis <kettenis@gnu.org>
92
93 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
94 zero as the value for %g0 in the register cache.
95 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
96 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
97
842951eb
PA
982011-05-20 Pedro Alves <pedro@codesourcery.com>
99
100 * infrun.c (proceed): Set previous_inferior_ptid here.
101 (init_wait_for_inferior): Initialize previous_inferior_ptid from
102 inferior_ptid, not null_ptid.
103 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
104 (fetch_inferior_event): Nor here.
105
46cf51e6
PA
1062011-05-20 Pedro Alves <pedro@codesourcery.com>
107
108 * inf-loop.c (inferior_event_handler): Only output a message if
109 verbose.
110
29ef4c46
LM
1112011-05-20 Luis Machado <lgustavo@codesourcery.com>
112
113 * MAINTAINERS: Update my e-mail address.
114
f148b27e
PA
1152011-05-20 Pedro Alves <pedro@codesourcery.com>
116
117 * infrun.c (proceed): Switch the inferior event loop to
118 INF_EXEC_COMPLETE if the target refused to resume from a
119 vfork/fork.
120
09cee04b
PA
1212011-05-20 Pedro Alves <pedro@codesourcery.com>
122
123 * infcmd.c: Include "inf-loop.h".
124 (step_once): When stepping into an inline subroutine, pretend the
125 target has run. If the target can async, switch the inferior
126 event loop to INF_EXEC_COMPLETE.
127 * inferior.h (user_visible_resume_ptid): Declare.
128 * infrun.c (user_visible_resume_ptid): New function, factored out
129 from `resume'.
130 (resume): Use it.
131 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
132 that the current thread is running. Merge async and sync
133 branches.
134
751b8ce1
PA
1352011-05-20 Pedro Alves <pedro@codesourcery.com>
136
137 * infcmd.c (step_1): Simplify synchronous case.
138
e93a69ed
PA
1392011-05-20 Pedro Alves <pedro@codesourcery.com>
140
141 * tracepoint.c: Include exceptions.h.
142 (TFILE_PID): Move higher in file.
143 (tfile_open): Delay pushing the tfile target until we're assured
144 the tfile header is present in the file. Wrap reading the initial
145 newline-terminated lines in TRY_CATCH. Pop the target if the
146 initial setup failed. Add the tfile's thread immediately
147 aftwards, before any non-essential setup. Don't skip
148 post_create_inferior if there are no traceframes present in the
149 file.
150 (tfile_close): Remove redundant check for null before xfree call.
151 (tfile_thread_alive): New function.
152 (init_tfile_ops): Register it as to_thread_alive callback.
153
6823e2b1
PA
1542011-05-20 Pedro Alves <pedro@codesourcery.com>
155
156 * tracepoint.c (tfile_open): Delete #if 0'd code.
157
b3c8eb43
JK
1582011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
159
160 Fix -readnow for -gdwarf-4 unused type units.
161 * dwarf2read.c (struct signatured_type): Remove the field offset.
162 (create_signatured_type_table_from_index): Remove its initialization.
163 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
164 instead. Add a complaint call.
165 (process_psymtab_comp_unit): Change assignment to gdb_assert.
166 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
167 (lookup_signatured_type_at_offset, read_signatured_type)
168 (write_one_signatured_type): Update the field for per_cu.
169
310afc76
TT
1702011-05-19 Tom Tromey <tromey@redhat.com>
171
172 * python/py-inferior.c (python_inferior_exit): Use
173 target_gdbarch.
174 (python_on_resume): Likewise.
175
cf6c5ffb
TT
1762011-05-19 Matt Rice <ratmice@gmail.com>
177
178 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
179
fb80a3c5
HZ
1802011-05-19 Hui Zhu <teawater@gmail.com>
181
182 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
183
3672b1be
HZ
1842011-05-19 Hui Zhu <teawater@gmail.com>
185
186 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
187
ff355380
TT
1882011-05-18 Tom Tromey <tromey@redhat.com>
189
190 * dwarf2read.c (dwarf2_add_field): Constify.
191 * value.c (value_static_field): Constify.
192 * gdbtypes.h (struct main_type) <field.field_location.physname>:
193 Now const.
194 * ax-gdb.c (gen_static_field): Constify
195
ed731959
JK
1962011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
197
198 * linux-nat.c (kill_callback): Use SIGKILL first.
199
967cff16
JB
2002011-05-18 Joel Brobecker <brobecker@adacore.com>
201
202 * ada-lang.c (print_it_exception): Avoid use of sprintf.
203
1d06ead6
TT
2042011-05-18 Tom Tromey <tromey@redhat.com>
205
206 * value.c (value_fn_field): Constify.
207 * symtab.c (gdb_mangle_name): Constify.
208 * stabsread.c (update_method_name_from_physname): Make 'physname'
209 argument const.
210 * p-typeprint.c (pascal_type_print_method_args): Make arguments
211 const. Use explicit fputc_filtered loop.
212 (pascal_type_print_base): Constify.
213 * p-lang.h (pascal_type_print_method_args): Update.
214 * linespec.c (add_matching_methods): Constify.
215 (add_constructors): Likewise.
216 * jv-typeprint.c (java_type_print_base): Constify.
217 * gdbtypes.h (struct cplus_struct_type)
218 <fn_fieldlist.fn_field.physname>: Now const.
219 * dwarf2read.c (compute_delayed_physnames): Constify.
220 (dwarf2_add_member_fn): Likewise.
221 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
222
0d9a9a5f
PA
2232011-05-18 Pedro Alves <pedro@codesourcery.com>
224
225 * infrun.c (resume): Mention which is the current thread, and its
226 current PC in debug output.
227 (prepare_to_proceed): Mention the thread switching in debug
228 output.
229
05386e9e
TT
2302011-05-18 Tom Tromey <tromey@redhat.com>
231
232 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
233 path check. Use xmalloc and cleanups.
234 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
235
ee86786c
TT
2362011-05-17 Tom Tromey <tromey@redhat.com>
237
238 * cp-valprint.c (cp_print_value_fields): Catch errors from
239 value_static_field.
240
9ff3b74f
TT
2412011-05-17 Tom Tromey <tromey@redhat.com>
242
243 * dwarf2read.c (dwarf2_get_die_type): Call
244 get_die_type_at_offset.
245 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
246 get_base_type function.
247
cd3da28e
PA
2482011-05-17 Tomas Martinec <fyzmat@gmail.com>
249
250 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
251 trap_expected.
252
fd20d931
DE
2532011-05-16 Doug Evans <dje@google.com>
254
255 * python/py-auto-load.c (source_section_scripts): Mention objfile
256 name in warning.
257
75fc9810
DE
2582011-05-15 Doug Evans <dje@google.com>
259
290351b8
DE
260 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
261 (try_thread_db_load_from_pdir): Call it. If unable to find
262 libthread_db in directory of libpthread, see if we're looking at
263 the separate-debug-info copy.
264
75fc9810
DE
265 * python/py-autoload.c (print_script): Print "Missing" instead of
266 "No" for missing scripts.
267 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
268
9f7bc587
DE
2692011-05-13 Doug Evans <dje@google.com>
270
271 * ui-file.c (stdio_file_write_async_safe): Add comment.
272
093cee7d
HZ
2732011-05-14 Hui Zhu <teawater@gmail.com>
274
275 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
276
dbaefcf7
DE
2772011-05-13 Doug Evans <dje@google.com>
278
98a5dd13
DE
279 Support $pdir and $sdir in libthread-db-search-path.
280 * NEWS: Mention $sdir,$pdir.
281 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
282 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
283 (try_thread_db_load_from_sdir): New function.
284 (try_thread_db_load_from_dir): New function.
285 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
286 system directories if search of libthread-db-search-path fails,
287 that is now done via $sdir.
288 (has_libpthread): New function.
289 (thread_db_load): Remove search for libthread_db in directory of
290 libpthread, that is now done via $pdir.
291
dbaefcf7
DE
292 * NEWS: Mention "info auto-load-scripts".
293 * python/py-auto-load.c (struct auto_load_pspace_info): New member
294 script_not_found_warning_printed.
295 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
296 all callers updated. Initialize script_not_found_warning_printed.
297 (get_auto_load_pspace_data_for_loading): New function.
298 (maybe_add_script): New function.
299 (source_section_scripts): Simplify. Only print one warning regardless
300 of the number of auto-load scripts not found.
301 (clear_section_scripts): Clear script_not_found_warning_printed.
302 (auto_load_objfile_script): Record script in hash table.
303 (count_matching_scripts): New function.
304 (maybe_print_script): Renamed from maybe_print_section_script, all
305 callers updated. Rewrite to use ui_out_*.
306 (info_auto_load_scripts): Renamed from
307 maintenance_print_section_scripts, all callers updated.
308 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
309 renamed as "info auto-load-scripts".
310
9930639c
TT
3112011-05-13 Tom Tromey <tromey@redhat.com>
312
313 * dwarf2expr.c (read_uleb128): Cast intermediate result.
314 (read_sleb128): Likewise.
315
06826322
TT
3162011-05-13 Tom Tromey <tromey@redhat.com>
317
318 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
319 offset display.
320
01124a23
DE
3212011-05-13 Doug Evans <dje@google.com>
322
323 * linux-nat.c (debug_linux_nat_async): Delete.
324 Replace all references to use debug_linux_nat instead.
325 (show_debug_linux_nat_async): Delete.
326 (sigchld_handler): Call ui_file_write_async_safe instead of
327 fprintf_unfiltered.
328 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
329 * ui-file.c (struct ui_file): New member to_write_async_safe.
330 (null_file_write_async_safe): New function.
331 (ui_file_write_async_safe): New function.
332 (set_ui_file_write_async_safe): New function.
333 (ui_file_new): Initialize to_write_async_safe.
334 (stdio_file_write_async_safe): New function.
335 (struct stdio_file): New member fd.
336 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
337 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
338 fileno.
01124a23
DE
339 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
340 (set_ui_file_write_async_safe): Declare.
341 (ui_file_write_async_safe): Declare.
342
72fc29ff
TT
3432011-05-13 Tom Tromey <tromey@redhat.com>
344
345 * utils.c (do_value_free): New function.
346 (make_cleanup_value_free): Likewise.
347 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
348 freeing correctly.
349 (dwarf2_loc_desc_needs_frame): Call
350 make_cleanup_value_free_to_mark.
351 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
352 * dwarf2expr.c (free_dwarf_expr_context): Don't call
353 value_free_to_mark.
354 (new_dwarf_expr_context): Don't call value_mark.
355 * dwarf2-frame.c (execute_stack_op): Call
356 make_cleanup_value_free_to_mark.
357 * defs.h (make_cleanup_value_free): Declare.
358
028d0ed5
TJB
3592011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
360
361 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
362 prepare_execute_command.
363 * top.c (prepare_execute_command): Return cleanup.
364 (execute_command): Use cleanup from prepare_execute_command.
365 * top.h (prepare_execute_command): Change prototype to return
366 cleanup.
367 * defs.h (struct value): Add opaque declaration.
368 (make_cleanup_value_free_to_mark): Add prototype.
369 * utils.c (do_value_free_to_mark): New function.
370 (make_cleanup_value_free_to_mark): Likewise.
371
b087e0ed
TT
3722011-05-12 Tom Tromey <tromey@redhat.com>
373
374 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
375 cast left-hand-side to unsigned.
376
8a9b8146
TT
3772011-05-12 Tom Tromey <tromey@redhat.com>
378
379 PR gdb/12617:
380 * value.h (value_from_contents): Declare.
381 * value.c (value_from_contents): New function.
382 * dwarf2read.c (dwarf_stack_op_name): Add new values.
383 (dwarf2_get_die_type): New function.
384 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
385 (allocate_piece_closure): Acquire reference to values.
386 (read_pieced_value): Update for value-based expressions.
387 (write_pieced_value): Likewise.
388 (free_pieced_value_closure): Call value_free as needed.
389 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
390 Update for value-based expressions.
391 * dwarf2loc.h (dwarf2_get_die_type): Declare.
392 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
393 <get_base_type>: New field.
394 (struct dwarf_expr_piece) <v.value>: Change type.
395 <v.regno>: New field.
396 (struct dwarf_expr_context) <mark>: New field.
397 (dwarf_expr_piece, dwarf_expr_fetch): Update.
398 (dwarf_expr_pop, dwarf_expr_push): Remove.
399 (dwarf_expr_push_address): Declare.
400 * dwarf2expr.c (dwarf_arch_cookie): New global.
401 (struct dwarf_gdbarch_types): New.
402 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
403 functions.
404 (dwarf_expr_push): Change type of 'value' argument. Update. Now
405 static.
406 (dwarf_expr_push_address): New function.
407 (dwarf_expr_pop): Now static.
408 (dwarf_expr_fetch): Change return type.
409 (dwarf_require_integral): New function.
410 (dwarf_expr_fetch): Simplify.
411 (add_piece): Update.
412 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
413 functions.
414 (execute_stack_op) <sign_ext>: Remove.
415 Use values for DWARF stack.
416 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
417 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
418 New cases.
419 (_initialize_dwarf2expr): New function.
420 (add_piece): Update.
421 (new_dwarf_expr_context): Set new field.
422 (free_dwarf_expr_context): Call value_free_to_mark.
423 * dwarf2-frame.c (no_base_type): New function.
424 (execute_stack_op): Set get_base_type field. Update.
425
e8d28ef4
TT
4262011-05-12 Tom Tromey <tromey@redhat.com>
427
428 * dwarf2read.c (read_common_block): Fix formatting.
429
d248b706
KY
4302011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
431
432 * breakpoint.c (disable_breakpoint): Disable all locations
433 associated with a tracepoint on target if a trace experiment is
434 running.
435 (disable_command): Disable a specific tracepoint location on target if
436 a trace experiment is running.
437 (do_enable_breakpoint): Enable all locations associated with a
438 tracepoint on target if a trace experiment is running.
439 (enable_command) Enable a specific tracepoint location on target if a
440 trace experiment is running.
441 * target.c (update_current_target): Add INHERIT and de_fault clauses for
442 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
443 to_disable_tracepoint.
444 * target.h: Add declaration of struct bp_location.
445 (struct target_ops): Add new functions
446 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
447 to_disable_tracepoint to target operations.
448 (target_supports_enable_disable_tracepoint): New macro.
449 (target_enable_tracepoint): New macro.
450 (target_disable_tracepoint): New macro.
451 * remote.c (struct remote_state): Add new field.
452 (remote_enable_disable_tracepoint_feature): New.
453 (remote_protocol_features): Add new entry.
454 (remote_supports_enable_disable_tracepoint): New.
455 (remote_enable_tracepoint): New.
456 (remote_disable_tracepoint): New.
457 (init_remote_ops): Add remote_enable_tracepoint,
458 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
459 to remote operations.
460 * tracepoint.c (start_tracing): Allow tracing to start without any
461 tracepoints enabled with just a warning if they can be re-enabled
462 later.
463 * NEWS: Add news item for the new behaviour of the enable and disable
464 GDB commands when applied to tracepoints.
465 Add news items for the new remote packets QTEnable and QTDisable.
466
cc88a640
JK
4672011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
468
469 * config.in: Regenerate.
470 * configure: Regenerate.
471 * configure.ac <--with-system-readline> (for readline_echoing_p):
472 Remove the test.
473 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
474 (tui_old_rl_echoing_p): ... here.
475 (tui_setup_io): Rename extern declaration readline_echoing_p to
476 _rl_echoing_p. Adjust assignments for the both renames.
477
1f84b619
TJB
4782011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
479
480 * symtab.c (lookup_symtab): Run cleanup before returning.
481
74ac6d43
TT
4822011-05-11 Tom Tromey <tromey@redhat.com>
483
484 * dwarf2read.c (handle_data_member_location): New function.
485 (dwarf2_add_field): Use it.
486 (read_common_block): Likewise.
487
5488dafb
JK
4882011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
489
490 Make addrs->SECTINDEX always defined.
491 * symfile.c (relative_addr_info_to_section_offsets): Check for
492 SECTINDEX -1, not for zero ADDR.
493 (addrs_section_compar): Remove checking for invalid SECTINDEX.
494 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
495 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
496 on its validity.
497
84e578fb
DE
4982011-05-10 Doug Evans <dje@google.com>
499
2471d008
DE
500 * linux-thread-db.c: Whitespace cleanup.
501 (try_thread_db_load_1): Fix comment.
502
84e578fb
DE
503 * linux-thread-db.c (set_libthread_db_search_path): New function.
504 (_initialize_thread_db): Add setter for libthread-db-search-path.
505
673c2bbe
DE
5062011-05-09 Doug Evans <dje@google.com>
507
478aac75
DE
508 * NEWS: Mention --with-iconv-bin.
509 * configure.ac: New option --with-iconv-bin.
510 * configure: Regenerate.
511 * config.in: Regenerate.
512 * defs.h (relocate_gdb_directory): Declare.
513 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
514 removed progname parameter, and exported. All callers updated.
515 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
516
673c2bbe
DE
517 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
518 adding missing call to restore_child_signals_mask.
519
e4c8541f
PA
5202011-05-09 Pedro Alves <pedro@codesourcery.com>
521
522 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
523 parameter.
524 * infrun.c (proceed, start_remote): Adjust.
525 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
526 and adjust to not handle it.
527 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
528 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
529 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
530 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
531 * windows-nat.c (do_initial_windows_stuff): Adjust.
532 * infcmd.c (attach_command): Adjust.
533 (notice_new_inferior): Adjust.
534
a536c6d7
UW
5352011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
536
537 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
538 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
539 * spu-tdep.c (op_selb): Use correct value.
540
7845b013
UW
5412011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
542
543 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
544 "parent" parameter to symbol_file_add_from_bfd call.
545
9c06b0b4
TJB
5462011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
547 Thiago Jung Bauermann <bauerman@br.ibm.com>
548
549 Implement support for PowerPC BookE masked watchpoints.
550 * NEWS: Mention masked watchpoint support. Create "Changed commands"
551 section.
552 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
553 method. Initialize to NULL in all existing breakpoint_ops instances.
554 (struct breakpoint) <hw_wp_mask>: New field.
555 * breakpoint.c (is_masked_watchpoint): Add prototype.
556 (update_watchpoint): Don't set b->val for masked watchpoints. Call
557 breakpoint's breakpoint_ops.works_in_software_mode if available.
558 (watchpoints_triggered): Handle the case of a hardware masked
559 watchpoint trigger.
560 (watchpoint_check): Likewise.
561 (works_in_software_mode_watchpoint): New function.
562 (insert_masked_watchpoint, remove_masked_watchpoint)
563 (resources_needed_masked_watchpoint)
564 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
565 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
566 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
567 functions.
568 (masked_watchpoint_breakpoint_ops): New structure.
569 (watch_command_1): Check for the existence of the `mask' parameter.
570 Set b->ops according to the type of hardware watchpoint being created.
571 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
572 (ppc_linux_remove_mask_watchpoint)
573 (ppc_linux_masked_watch_num_registers): New functions.
574 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
575 to_remove_mask_watchpoint and to_masked_watch_num_registers.
576 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
577 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
578 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
579 (target_masked_watch_num_registers): New functions.
580 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
581 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
582 methods.
583 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
584 (target_masked_watch_num_registers): Add prototypes.
585
8be455d7
JK
5862011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
587
588 PR 12573
589 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
590 (producer_is_gcc_ge_4_0): New function.
591 (process_full_comp_unit): Set also symtab->locations_valid. Move the
592 symtab->language code.
593 (var_decode_location): Set cu->has_loclist.
594 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
595 skip. Intialize force_skip from locations_valid. Move the prologue
596 skipping code into two passes.
597 * symtab.h (struct symtab): Make the primary field a bitfield. New
598 field locations_valid.
599
d8228535
JK
6002011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
603 (classify_inner_name): Call cp_lookup_nested_type with
604 yylval.tsym.type.
605 * cp-namespace.c (cp_lookup_nested_type): New variable
606 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
607 type_name_no_tag_or_error with saved_parent_type.
608 * dwarf2read.c (load_partial_dies): Read in any children of
609 DW_TAG_typedef with complaint in such case.
610 * gdbtypes.c (type_name_no_tag_or_error): New function.
611 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
612 * valops.c (destructor_name_p): New comment for parameter type. Remove
613 type const. Make dname and cp const. Call type_name_no_tag_or_error.
614 * value.h (destructor_name_p): Remove type const.
615
1976171a
JK
6162011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
617
618 * symtab.c (compare_symbol_name): New function.
619 (completion_list_add_name, expand_partial_symbol_name): Call it,
620 remove the variable ncmp.
621 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
622 gdb_assert it.
623
a9634178
TJB
6242011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
625
626 Demote to sw watchpoint only in update_watchpoint.
627 * breakpoint.c (update_watchpoint): Change between software and
628 hardware watchpoint for all kinds of watchpoints, not just
629 read/write ones. Determine b->exact value here instead of
630 in watch_command_1. Error out if there are not enough resources
631 for a read or access hardware watchpoint.
632 (watch_command_1): Remove logic of checking whether there are
633 enough resources available, since update_watchpoint will do that
634 work now. Don't set b->exact here. Catch exceptions thrown by
635 update_watchpoint and delete the watchpoint.
636 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
637 Use target_exact_watchpoints instead.
638 (delete_breakpoint): Notify observers only if deleted watchpoint
639 has a breakpoint number assigned to it.
640
4c67c798
JJ
6412011-05-05 Janis Johnson <janisjo@codesourcery.com>
642
643 * MAINTAINERS: Add myself as a write-after-approval maintainer.
644
a3fcb948
JG
6452011-05-05 Jerome Guitton <guitton@adacore.com>
646
647 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
648 New functions.
649 (i386_stack_tramp_frame_unwind): New static global.
650 (i386_match_pattern): New function, extracted from i386_match_insn.
651 (i386_match_insn): Use i386_match_pattern.
652 (i386_match_insn_block): New function.
653 (i386_tramp_chain_in_reg_insns)
654 (i386_tramp_chain_on_stack_insns): New static variables.
655 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
656 of unwinders.
657
4d393d60
JM
6582011-05-04 Joseph Myers <joseph@codesourcery.com>
659
660 * configure.host (xscale*): Don't handle target.
661 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
662 handle targets.
663
f70bd40b
YQ
6642011-05-04 Yao Qi <yao@codesourcery.com>
665
666 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
667
dd3295ee
JB
6682011-05-03 Joel Brobecker <brobecker@adacore.com>
669
670 Revert:
671 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
672 | * elfread.c (elf_symtab_read): Stop memory leak.
673
90375a0e
PM
6742011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
675
676 * nto-tdep.c (nto_target): Replace deprecated call to
677 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
678
d07205c2
JK
6792011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
680
681 Fix false GCC warning.
682 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
683
1e718ff1
TJB
6842011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
685
686 * breakpoint.c (update_watchpoint): Move code to change
687 the enable state of breakpoint from here ...
688 (do_enable_breakpoint): ... to here.
689
35bef4fd
TT
6902011-04-26 Andrew Gontarek <andrewg@cray.com>
691
78290264
PP
692 * valprint.c (val_print_array_elements): Fixed poor performance
693 of printing very large arrays with repeat_count_threshold set
694 to unlimited. New comment.
35bef4fd 695
38a714bb
TT
6962011-04-29 Tom Tromey <tromey@redhat.com>
697
698 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
699 (mi_parse): Likewise.
700 * breakpoint.c (break_range_command): Use sizeof char*, not
701 char**.
702 (create_breakpoint): Likewise.
703 (parse_breakpoint_sals): Likewise.
704
eb73ad13
PA
7052011-04-29 Pedro Alves <pedro@codesourcery.com>
706
707 * linux-nat.c (linux_child_remove_fork_catchpoint)
708 (linux_child_remove_vfork_catchpoint)
709 (linux_child_remove_exec_catchpoint): New functions.
710 (linux_target_install_ops): Install them.
711
d65aec65
PM
7122011-04-29 Phil Muldoon <pmuldoon@redhat.com>
713
714 PR mi/12531
715
716 * varobj.c (install_default_visualizer): Do not install a
717 visualizer if the varobj is CPLUS_FAKE_CHILD.
718 (construct_visualizer): Likewise.
719
165195f4
JK
7202011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
721
722 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
723 case insensitive comparison.
724
30852783
UW
7252011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
726
727 * infrun.c (proceed): Revert previous change.
728 (resume): Instead, handle the case of signal delivery while stepping
729 off a breakpoint location here, and only if software single-stepping
730 is used. Handle nested signals.
731
7ff120b4
YQ
7322011-04-28 Yao Qi <yao@codesourcery.com>
733
734 * arm-tdep.c (copy_unmodified): Rename to ...
735 (arm_copy_unmodified): .. this. New.
736 (copy_preload): Move common part to ...
737 (install_preload): .. this. New.
738 (arm_copy_preload): New.
739 (copy_preload_reg): Move common part to ...
740 (install_preload_reg): ... this. New.
741 (arm_copy_preload_reg): New.
742 (copy_b_bl_blx): Move common part to ...
743 (install_b_bl_blx): .. this. New.
744 (arm_copy_b_bl_blx): New.
745 (copy_bx_blx_reg): Move common part to ...
746 (install_bx_blx_reg): ... this. New.
747 (arm_copy_bx_blx_reg): New.
748 (copy_alu_reg): Move common part to ...
749 (install_alu_reg): ... this. New.
750 (arm_copy_alu_reg): New.
751 (copy_alu_shifted_reg): Move common part to ...
752 (install_alu_shifted_reg): ... this. New.
753 (copy_ldr_str_ldrb_strb): Move common part to ...
754 (install_ldr_str_ldrb_strb): ... this. New.
755 (arm_copy_ldr_str_ldrb_strb): New.
756 (copy_copro_load_store): Move some common part to ...
757 (install_copy_copro_load_store): ... this. New.
758 (arm_copy_copro_load_store): New.
759 (copy_svc): Delete.
760 (arm_copy_svc): Renamed from copy_svc.
761 (copy_undef): Delete.
762 (arm_copy_undef): Renamed from copy_undef.
763 (decode_ext_reg_ld_st): Delete.
764 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
765 (decode_svc_copro): Delete.
766 (arm_decode_svc_copro): Renamed from decode_svc_copro.
767 (copy_copro_load_store, copy_alu_imm): update callers.
768 (copy_extra_ld_st, copy_block_xfer): Likewise.
769 (decode_misc_memhint_neon, decode_unconditional): Likewise.
770 (decode_miscellaneous, decode_dp_misc): Likewise.
771 (decode_ld_st_word_ubyte, decode_media): Likewise.
772 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
773 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
774 (decode_unconditional, decode_miscellaneous): Likewise.
775 (decode_media, decode_b_bl_ldmstm): Likewise.
776 (arm_process_displaced_insn): Likewise..
777 (decode_misc_memhint_neon): Delete.
778 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
779 (decode_miscellaneous): Delete.
780 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
781 (decode_dp_misc): Delete.
782 (arm_decode_dp_misc): Renamed from decode_dp_misc.
783 (decode_ld_st_word_ubyte): Delete.
784 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
785 (decode_media): Delete.
786 (arm_decode_media): Renamed from decode_media.
787 (decode_b_bl_ldmstm): Delete.
788 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
789 (decode_ext_reg_ld_st): Delete.
790 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
791 (decode_unconditional): Delete.
792 (arm_decode_unconditional): Renamed from decode_unconditional.
793
559a7a62
JK
7942011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
795
796 Case insensitive lookups implementation.
797 * dwarf2read.c: Include ctype.h.
798 (struct mapped_index): New field version.
799 (mapped_index_string_hash): New parameter index_version. New comment
800 for it. Call tolower appropriately.
801 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
802 Choose the right index version for mapped_index_string_hash.
803 (dwarf2_read_index): Support also the index version 5. Initialize the
804 new struct mapped_index field version.
805 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
806 (find_slot): Explain the version needs. Pass INT_MAX for the new
807 parameter.
808 (write_psymtabs_to_index): Produce version 5.
809 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
810 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
811 * psymtab.c (lookup_partial_symbol): Find the
812 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
813 entries.
814 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
815 NAME lowercasing.
816 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
817 (completion_list_add_name): New variable ncmp, initialize it, use it.
818 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
819 * utils.c (strcmp_iw): Support case_sensitive_off.
820 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
821 New function comment part. New variables saved_string1,
822 saved_string2 and case_pass. Add a proper second pass.
823
681bf369
JK
8242011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 Replace re_comp/re_exec by regcomp/regexec.
827 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
828 (search_symbols_name_matches): Use them, use regexec.
829 (search_symbols): New variable retval_chain, adjust the use of
830 old_chain against it. Replace re_comp by regcomp. Use the new struct
831 search_symbols_data fields, use regexec instead of re_exec.
832
b11b1f88
JK
8332011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
834
835 Format the code for the next patch.
836 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
837 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
838 New variables c1 and c2.
839
2484c66b
UW
8402011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
841
842 * infrun.c (proceed): Do not single-step into signal delivery
843 when stepping off a breakpoint location.
844 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
845 (insert_step_resume_breakpoint_at_caller): Likewise.
846 (insert_step_resume_breakpoint_at_sal): Likewise.
847 (insert_longjmp_resume_breakpoint): Likewise.
848
47423772
YQ
8492011-04-27 Yao Qi <yao@codesourcery.com>
850
851 * common/linux-ptrace.h: Remove include <sys/wait.h>.
852
13bdd2e7
JB
8532011-04-27 Joel Brobecker <brobecker@adacore.com>
854
855 * procfs.c (procfs_pass_signals): Fix advance declaration.
856
2455069d
UW
8572011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
858
859 * target.h (struct target_ops): Remove to_notice_signals;
860 add to_pass_signals.
861 (target_notice_signals): Remove.
862 (target_pass_signals): Add prototype.
863 * target.c (update_current_target): Remove to_notice_signals;
864 mention to_pass_signals.
865 (target_pass_signals): New function.
866 (debug_to_notice_signals): Remove.
867 (setup_target_debug): Do not install debug_to_notice_signals.
868
869 * infrun.c (signal_pass): New global.
870 (resume): Call target_pass_signals.
871 (handle_inferior_event): Report all signals while stepping over
872 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
873 are re-inserted when stepping over a signal handler.
874 (signal_cache_update): New function.
875 (signal_stop_update): Call it.
876 (signal_print_update): Likewise.
877 (signal_pass_update): Likewise.
878 (handle_command): Call signal_cache_update and target_pass_signals
879 instead of target_notice_signals.
880 (_initialize_infrun): Initialize signal_pass.
881
882 * linux-nat.c (pass_mask): New global.
883 (linux_nat_pass_signals): New function.
884 (linux_nat_create_inferior): Report all signals initially.
885 (linux_nat_attach): Likewise.
886 (linux_nat_resume): Use pass_mask to decide whether to directly
887 handle an inferior signal.
888 (linux_nat_wait_1): Likewise.
889 (linux_nat_add_target): Install to_pass_signals callback.
890
891 * nto-procfs.c (notice_signals): Remove.
892 (procfs_resume): Do not call notice_signals.
893 (procfs_notice_signals): Remove.
894 (procfs_pass_signals): New function.
895 (init_procfs_ops): Install to_pass_signals callback instead of
896 to_notice_signals callback.
897 (_initialize_procfs): Report all signals initially.
898
899 * procfs.c (procfs_notice_signals): Remove.
900 (procfs_pass_signals): New function.
901 (procfs_target): Install to_pass_signals callback instead of
902 to_notice_signals callback.
903 (register_gdb_signals): Remove.
904 (procfs_debug_inferior): Report all signals initially.
905 (procfs_init_inferior): Remove redundant register_gdb_signals call.
906
907 * remote.c (remote_pass_signals): Add numsigs and pass_signals
908 parameters; use them instead of calling signal_..._state routines.
909 (remote_notice_signals): Remove.
910 (remote_start_remote): Report all signals initially.
911 (remote_resume): Do not call remote_pass_signals.
912 (_initialize_remote): Install to_pass_signals callback instead of
913 to_notice_signals callback.
914
46c6471b
PA
9152011-04-27 Pedro Alves <pedro@codesourcery.com>
916
917 * breakpoint.c (user_settable_breakpoint): Delete.
918 (user_breakpoint_p): Remove check on user_settable_breakpoint.
919 (delete_command): Check user_breakpoint_p instead of looking at
920 the breakpoint's type.
921 (disable_command): Ditto.
922 (enable_command): Ditto.
923 (delete_trace_command): Use user_breakpoint_p instead of looking
924 at the breakpoint number directly. When checking if there are
925 user visible tracepoints, in order to know whether to ask the user
926 for confirmation, check whether the breakpoint is actually a
927 tracepoint.
928
f6d90398
VP
9292011-04-27 Vladimir Prus <vladimir@codesourcery.com>
930
931 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
932 compilation.
933
8d3788bd
VP
9342011-04-27 Vladimir Prus <vladimir@codesourcery.com>
935
936 MI breakpoint notifications.
937
f33edef8
PP
938 * annotate.c (breakpoint_changed): Adjust parameter type.
939 * breakpoint.c (set_breakpoint_condition): Adjust to change
940 in breakpoint_modified type.
941 (breakpoint_set_commands): Likewise.
942 (do_map_commands_command): Likewise.
943 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
944 changed after bumping hit count.
945 (bpstat_stop_status): Likewise.
946 (print_one_breakpoint_location): Don't wrap in tuple here.
947 (print_one_breakpoint): Always print individual locations.
948 For locations, use unnamed tuple.
949 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
950 has changed.
951 (create_catchpoint, create_syscall_event_catchpoint): Call
952 breakpoint_created obsever.
953 (mention): Don't call breakpoint_created observer.
954 (create_breakpoint_sal): Call breakpoint_created observer.
955 (create_breakpoint, watch_command_1): Likewise.
956 (create_ada_exception_breakpoint): Likewise.
957 (delete_breakpoint): Call breakpoint_deleted breakpoint.
958 (locations_are_equal): New.
959 (update_breakpoint_locations): If locations were changed, notify.
960 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
961 Call breakpoint_modified observer.
962
963 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
964 (mi_cmd_break_insert): Don't set observers for modify and delete.
965 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
966 (mi_breakpoint_created, mi_breakpoint_deleted)
967 (mi_breakpoint_modified): New.
968 (mi_interpreter_init): Hook the above.
969 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
970 while -break-* commands are executing.
971 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
972 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
973 (mi_redirect): New.
974 (mi_ui_out_impl): Hook in mi_redirect.
975 (mi_field_skip): True to the name, skip the field, don't output
976 a field with an empty value.
977
978 * python/py-breakpoint.c (gdbpy_breakpoint_created)
979 (gdbpy_breakpoint_deleted): Adjust.
980 * tui/tui-hooks.c (tui_event_create_breakpoint)
981 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 982
a8f42b45
UW
9832011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
984
985 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
986 (procfs_remove_hw_watchpoint): Likewise.
987
57e12211
TT
9882011-04-26 Michael Walle <michael@walle.cc>
989
990 * remote.c (remote_start_remote): Ack packet after sending the
991 interrupt sequence.
992
af96c192
YQ
9932011-04-26 Yao Qi <yao@codesourcery.com>
994
f33edef8
PP
995 * linux-nat.c: Move common macros to ...
996 Include linux-ptrace.h.
997 * common/linux-ptrace.h: ... here. New.
af96c192 998
3e03848b
JK
9992011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1000
1001 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1002 !objfile_has_partial_symbols. New comment.
1003 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1004 SYM_READ_PSYMBOLS is not present. Extend the comment.
1005 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1006
1ae0d051
JK
10072011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1008
1009 * defs.h (ENUM_BITFIELD): Remove.
1010
03f2bd59
JK
10112011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1012 Eli Zaretskii <eliz@gnu.org>
1013
1014 * NEWS: Document the new gdbserver --once option.
1015
4161fbb0
JZ
10162011-04-21 Jie Zhang <jzhang918@gmail.com>
1017
1018 * MAINTAINERS: Update my email address.
1019
bcb28afc
PM
10202011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1021
1022 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1023 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1024 function call if __STDC_ISO_10646__ macro is defined.
1025 (intermediate_encoding): New prototype.
1026 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1027 to generate compile time error for unsupported gdb_wchar_t size.
1028 (ENDIAN_SUFFIX): New macro.
1029 (intermediate_encoding): New function.
1030
7b08b9eb
JK
10312011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1032
1033 * ada-lang.c (struct add_partial_datum): Update the comment for
1034 expand_partial_symbol_name.
1035 (ada_add_partial_symbol_completions): Rename to ...
1036 (ada_expand_partial_symbol_name): ... here, change return type, update
1037 function comment, call symbol_completion_match instead of
1038 symbol_completion_add.
1039 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1040 and ada_expand_partial_symbol_name.
1041 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1042 FILE_MATCHER.
1043 (dw2_map_symbol_names): Remove.
1044 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1045 * psymtab.c (map_symbol_names_psymtab): Remove.
1046 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1047 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1048 order.
1049 (psym_functions): Unlist map_symbol_names_psymtab.
1050 (map_partial_symbol_names): Rename to ...
1051 (expand_partial_symbol_names): ... here, change the FUN type, call
1052 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1053 * psymtab.h (map_partial_symbol_names): Rename to ...
1054 (expand_partial_symbol_names): ... here, change the FUN type.
1055 * symfile.h (struct quick_symbol_functions): Update the description of
1056 expand_symtabs_matching. Remove map_symbol_names.
1057 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1058 (struct add_name_data): Update the comment for
1059 expand_partial_symbol_name.
1060 (add_partial_symbol_name): Rename to ...
1061 (expand_partial_symbol_name): ... here. Replace
1062 completion_list_add_name call by strncmp.
1063 (default_make_symbol_completion_list_break_on): Use now
1064 expand_partial_symbol_names and expand_partial_symbol_name.
1065 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1066
90476074
TT
10672011-04-20 Tom Tromey <tromey@redhat.com>
1068
1069 * dwarf2read.c (save_gdb_index_command): Replace format
1070 documentation with a pointer to the manual.
1071
c21236dc
PA
10722011-04-20 Pedro Alves <pedro@codesourcery.com>
1073
1074 * regcache.c: Include remote.h.
1075 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1076 (regcache_dump): Handle regcache_dump_remote.
1077 (maintenance_print_remote_registers): New function.
1078 (_initialize_regcache): Install "maint print remote-registers"
1079 command.
1080 * remote.c (map_regcache_remote_table): New function, factored out
1081 from ...
1082 (init_remote_state): ... here.
1083 (remote_register_number_and_offset): New.
1084 * remote.h (remote_register_number_and_offset): Declare.
1085
b78974c3
PA
10862011-04-20 Pedro Alves <pedro@codesourcery.com>
1087
1088 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1089 null_ptid, assume and allow a NULL address space, instead of
1090 asking the target for the ptid's address space.
1091 * infrun.c (ptid_is_pid): Remove assertion.
1092
7a9dd1b2
TT
10932011-04-19 Tom Tromey <tromey@redhat.com>
1094
1095 * windows-tdep.c (windows_xfer_shared_library):
1096 * windows-nat.c (get_module_name, windows_make_so):
1097 * v850-tdep.c (v850_handle_pushm):
1098 * utils.c (null_cleanup, gdb_realpath):
1099 * ui-out.c (get_next_header):
1100 * tracepoint.c (clear_traceframe_info):
1101 * symtab.c (lookup_symtab):
1102 * serial.h (struct serial_ops):
1103 * mipsread.c (read_alphacoff_dynamic_symtab):
1104 * infcmd.c (print_return_value):
1105 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1106 * f-exp.y (parse_number):
1107 * exceptions.c (catch_exceptions):
1108 * dummy-frame.c (dummy_frame_this_id):
1109 * defs.h (struct cleanup):
1110 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1111 * arm-tdep.c (arm_push_dummy_call):
1112 * amd64-tdep.h (amd64_collect_xsave):
1113 * amd64-tdep.c (amd64_collect_xsave):
1114 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1115 * README (typing): Remove duplicate words.
1116 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1117 * infrun.c (siginfo_value_read): Fix typo.
1118 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1119 * top.c (source_line_number): Add comma.
1120
9941e0c5
MK
11212011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1122
1123 * thread.c (any_live_thread_of_process): Prioritize threads
1124 that are not executing.
1125 * gdbthread.h (any_live_thread_of_process): Update comment
1126 as per above change.
1127
ed4b0e6a
AS
11282011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1129
1130 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1131 (scan_xcoff_symtab): Likewise.
1132
9b13a2db
PM
11332011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1134
1135 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1136 inside if clause.
1137
1c6e1b0d
PM
11382011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1139 Pedro Alves <pedro@codesourcery.com>
1140
1141 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1142 variables to simplify code and avoid == operator at end of
1143 line as this is against GNU coding standards.
1144
74de0234
PM
11452011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1146
1147 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1148 lm_name to name_lm to avoid conflict with lm_name function.
1149
b23518f0
PM
11502011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1151
1152 ARI fixes: Use only lowercase function name for static functions.
1153 * nto-tdep.c (LM_ADDR): Rename to...
1154 (lm_addr): New function name.
1155 (nto_relocate_section_addresses): Adapt to change above.
1156 * solib-sunos.c (LM_ADDR): Rename to...
1157 (lm_addr): New function name.
1158 (LM_NEXT): Rename to...
1159 (lm_next): New function name.
1160 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1161 function name changes above.
1162 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1163 (lm_addr_from_link_map): New function name.
1164 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1165 (has_lm_dynamic_from_link_map): New function name.
1166 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1167 (lm_dynamic_from_link_map): New function name.
1168 (LM_ADDR_CHECK): Rename to...
1169 (lm_addr_check): New function name.
1170 (LM_NEXT): Rename to...
1171 (lm_next): New function name.
1172 (LM_PREV): Rename to...
1173 (lm_prev): New function name.
1174 (LM_NAME): Rename to...
1175 (lm_name): New function name.
1176 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1177 (ignore_first_link_map_entry): New function name.
1178 (svr4_keep_data_in_core): Adapt to function name changes above.
1179 (svr4_current_sos): Likewise.
1180 (enable_break): Likewise.
1181 (svr4_relocate_section_addresses): Likewise.
1182
1448a0a2
PM
11832011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1184
1185 ARI cleanup.
1186 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1187 sprintf. Simplify code and avoid loosing memory.
1188 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1189 (call0_frame_cache): Remove && operator from end of line.
1190
02835898
JK
11912011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1192
1193 Fix libraries displacement if they change whether they were prelinked.
1194 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1195 does not match. Comment why.
1196
9a845ea2
JK
11972011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1198
1199 * corelow.c: Include wrapper.h.
1200 (core_open): Call now gdb_target_find_new_threads.
1201 * wrapper.c: Include target.h.
1202 (gdb_target_find_new_threads): New.
1203 * wrapper.h (gdb_target_find_new_threads): New declaration.
1204
254f582e
JK
12052011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1206
1207 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1208 even if !TARGET_HAS_EXECUTION.
1209
63524580
JK
12102011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1211
1212 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1213 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1214 bfd_get_synthetic_symtab.
1215 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1216 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1217 parameter parent, remove the call to add_separate_debug_objfile.
1218 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1219 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1220 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1221 parent, new comment for it, call add_separate_debug_objfile for it.
1222 (symbol_file_add_separate): Pass objfile as the parameter parent,
1223 remove the call to add_separate_debug_objfile.
1224 (symbol_file_add_from_bfd): New parameter parent, pass it.
1225 (symbol_file_add): Pass NULL to the new parameter parent.
1226 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1227
90359a16
JK
12282011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1229
1230 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1231 BSF_SYNTHETIC.
1232
626e7282
JK
12332011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1234
1235 Fix Python access to inlined frames.
1236 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1237 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1238
cf31e6f9
TT
12392011-04-15 Tom Tromey <tromey@redhat.com>
1240
1241 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1242
c8d895f1
GB
12432011-04-15 Gary Benson <gbenson@redhat.com>
1244
1245 * MAINTAINERS: Add myself to write-after-approval section.
1246
56a9aa1d
MF
12472011-04-14 Mike Frysinger <vapier@gentoo.org>
1248
1249 * remote-sim.c (sim_command_completer): New function.
1250 (_initialize_remote_sim): Set completer to sim_command_completer.
1251
ba770c9c
TJB
12522011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1253
1254 * breakpoint.c (print_exception_catchpoint): Rename to ...
1255 (print_it_exception_catchpoint): ... this.
1256 (gnu_v3_exception_catchpoint_ops): Update with new name
1257 for print_it_exception_catchpoint.
1258
51bf2553
EBM
12592011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1260
1261 * MAINTAINERS: Add myself for write after approval privileges.
1262
d242658c
MP
12632011-04-13 Marek Polacek <mpolacek@redhat.com>
1264
1265 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1266
4a4106ca
TJB
12672011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1268
1269 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1270
26063d49
TJB
12712011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1272
1273 * breakpoint.c (save_breakpoints): Verify whether
1274 breakpoint_ops.print_recreate is defined before calling it.
1275
7782b183
GB
12762011-04-11 Gary Benson <gbenson@redhat.com>
1277
1278 Fix failure with --enable-maintainer-mode.
1279 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1280
e8930875
JK
12812011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1282
1283 Code cleanup.
1284 * symtab.c (search_symbols): Reorder the KIND description in the
1285 function comment. Remove the unused 4th element of types, types2,
1286 types3 and types4. New gdb_assert on KIND.
1287 (symtab_symbol_info): Remove the unused 4th element of classnames.
1288 New gdb_assert on KIND.
1289 * symtab.h (enum search_domain): New warning in the enum comment.
1290 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1291 TYPES_DOMAIN.
1292
b4f2f049
JK
12932011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1294
1295 Fix crash of gdb save-index on a STABS file.
1296 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1297 PSYMTABS_ADDRMAP.
1298
60d5a603
JK
12992011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
1301 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1302 * dwarf2read.c: Include ctype.h.
1303 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1304 functions.
1305 (dwarf2_add_field): Fix new_field->accessibility by calling
1306 dwarf2_default_access_attribute. Restructure setting accessibility
1307 vs. virtuality.
1308 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1309 is_private and is_protected by calling
1310 dwarf2_default_access_attribute.
1311
e0f68161
KB
13122011-04-08 Kevin Buettner <kevinb@redhat.com>
1313
1314 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1315 to the initialization.
1316
2e1aae43
SE
13172011-04-08 Steve Ellcey <sje@cup.hp.com>
1318
1319 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1320 initalization.
1321
c6ca3dab
PM
13222011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1323
1324 Remove support for old Cygwin 1.5 versions.
1325 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1326 function on old Cygwin version.
1327 * windows-nat.c: Remove cygwin version check and always define
1328 __USEWIDE for Cygwin compilation.
1329
bd18283a
YQ
13302011-04-07 Yao Qi <yao@codesourcery.com>
1331
1332 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1333 and TO.
1334 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1335 (arm_copy_svc): Remove parameters INSN and TO.
1336 (decode_svc_copro): Update caller.
1337 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1338 from function pointer `copy_svc_os'.
1339
8c8dba6d
YQ
13402011-04-07 Yao Qi <yao@codesourcery.com>
1341
1342 * arm-tdep.c (cleanup_branch): Set a correct return address in
1343 LR for ARM and Thumb.
1344
59d7bcaf
JK
13452011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1346
1347 Code cleanup.
1348 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1349 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1350 in the function comment, a new note on values compatibility.
1351 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1352 * symtab.h (SYMBOL_HASH_NEXT): New.
1353
e7db58ea
TJB
13542011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1355
1356 * ppc-linux-nat.c (check_condition): Add len output parameter.
1357 Set it based on the memory region referenced in the condition
1358 expression. Update all callers.
1359
9f743ef6
JK
13602011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1361
1362 Fix crash regression on systems featuring .gdb_index.
1363 * objfiles.c (free_objfile): Move the
1364 forget_cached_source_info_for_objfile call earlier. Comment it.
1365 Extend the comment for objfile_free_data.
1366
9182c5bc
JK
13672011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1368
1369 Fix regression of displaying the debug format.
1370 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1371 subfile.
1372
04bd08de
TT
13732011-04-04 Tom Tromey <tromey@redhat.com>
1374
1375 * cli/cli-interp.c (struct captured_execute_command_args):
1376 Remove.
1377 (do_captured_execute_command): Remove.
1378 (safe_execute_command): Use TRY_CATCH.
1379 * cli/cli-script.c (struct wrapped_read_command_file_args):
1380 Remove.
1381 (wrapped_read_command_file): Remove.
1382 (script_from_file): Use TRY_CATCH.
1383 * exceptions.c (catch_exception): Remove.
1384 * exceptions.h (catch_exception): Remove.
1385 (deprecated_throw_reason): Update comment.
1386 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1387 argument to 'context'.
1388 (mi_execute_command): Use TRY_CATCH.
1389 * remote.c (struct start_remote_args): Remove.
1390 (remote_start_remote): Update; change arguments.
1391 (remote_open_1): Use TRY_CATCH.
1392
58438ac1
TT
13932011-04-04 Tom Tromey <tromey@redhat.com>
1394
1395 * tracepoint.c (scope_info): Update.
1396 * symtab.c (decode_line_spec): Update.
1397 * python/python.c (gdbpy_decode_line): Update.
1398 * linespec.h (decode_line_1): Update.
1399 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1400 (decode_compound, find_method, symtab_from_filename)
1401 (decode_variable): Likewise.
1402 * cli/cli-cmds.c (edit_command): Update.
1403 (list_command): Update.
1404 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1405 argument.
1406 (create_breakpoint): Update.
1407 (until_break_command): Update.
1408 (addr_string_to_sals): Update.
1409 (decode_line_spec_1): Update.
1410
b78a6381
TT
14112011-04-04 Tom Tromey <tromey@redhat.com>
1412
1413 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1414 (do_captured_parse_breakpoint): Remove.
1415 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1416 Use TRY_CATCH directly.
1417
00174a86
TT
14182011-04-04 Tom Tromey <tromey@redhat.com>
1419
1420 * symtab.h (free_symtab): Remove.
1421 (forget_cached_source_info_for_objfile): Declare.
1422 * symmisc.c (free_symtab): Remove.
1423 * source.c (forget_cached_source_info_for_objfile): New function.
1424 (forget_cached_source_info): Use it.
1425 * objfiles.c (free_objfile): Simplify check before calling
1426 clear_current_source_symtab_and_line. Call
1427 forget_cached_source_info_for_objfile.
1428
30cc903e
TT
14292011-04-04 Tom Tromey <tromey@redhat.com>
1430
1431 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1432 (new_symtab): Don't set `free_code' on symtab.
1433 (new_linetable): Properly handle size==0.
1434 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1435 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1436 free_func.
1437 * jv-lang.c (struct jv_per_objfile_data): New.
1438 (jv_per_objfile_free): Free the data.
1439 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1440 (get_java_class_symtab): Set the `dict' field on the
1441 jv_per_objfile_data.
1442 (free_class_block): Remove.
1443 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1444 the symtab.
1445
0c2e6019
TT
14462011-04-04 Tom Tromey <tromey@redhat.com>
1447
1448 * symfile.c (reread_symbols): Update.
1449 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1450 field.
1451 * objfiles.c (allocate_objfile): Update.
1452 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1453 declare.
1454 * cp-namespace.c (lookup_symbol_file): Don't call
1455 lookup_possible_namespace_symbol.
1456 (initialize_namespace_symtab, get_possible_namespace_block)
1457 (free_namespace_block, cp_check_possible_namespace_symbols)
1458 (check_possible_namespace_symbols_loop)
1459 (check_one_possible_namespace_symbol)
1460 (lookup_possible_namespace_symbol): Remove.
1461 (maintenance_cplus_namespace): Replace with notice.
1462 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1463
554d387d
TT
14642011-04-04 Tom Tromey <tromey@redhat.com>
1465
1466 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1467 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1468 * symmisc.c (free_symtab): Don't free debugformat.
1469 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1470 (record_debugformat, record_producer): Document.
1471 * buildsym.c (end_symtab): Don't save debugformat and producer
1472 names on obstack.
1473 (end_symtab): Don't free debugformat and producer fields.
1474 (record_debugformat): Don't call xstrdup.
1475 (record_producer): Likewise.
1476
d4d4db8a
TT
14772011-04-04 Tom Tromey <tromey@redhat.com>
1478
1479 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1480 (source_line_charpos, source_charpos_line): Remove.
1481
8903c50d
TT
14822011-04-04 Tom Tromey <tromey@redhat.com>
1483
1484 * symtab.h (domain_enum): Split in two...
1485 (enum search_domain): New.
1486 (search_symbols): Update.
1487 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1488 redundant declarations.
1489 (search_symbols): Change 'kind' argument to search_domain.
1490 Update.
1491 (print_symbol_info): Likewise.
1492 (symtab_symbol_info): Likewise.
1493 * symfile.h (struct quick_symbol_functions)
1494 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1495 <expand_symtabs_matching>: Likewise.
1496 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1497 (expand_symtabs_matching_via_partial): Update.
1498 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1499 (dw2_expand_symtabs_for_function): Update.
1500 * block.h: Moved anonymous enum...
1501 * defs.h (enum block_enum): ... here. Now named.
1502
d9351f5f 15032011-04-03 Joel Brobecker <brobecker@adacore.com>
1504
1505 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1506 * version.in: Bump version to 7.3.50.20110403-cvs.
1507
d6e00af6
JB
15082011-04-03 Joel Brobecker <brobecker@adacore.com>
1509
1510 * NEWS: Create a new section for the next release branch.
1511 Rename the section of the current branch, now that it has
1512 been cut.
1513
2b9e5ea6
UW
15142011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1515
1516 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1517 for "fpscr" in target description.
1518
0cf03b49
JK
15192011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1520
1521 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1522 initialize it. Delay HASH initialization. Strip the part after open
1523 parenthesis for languages with qualifiers. Call do_cleanups.
1524
5d901a73
TT
15252011-04-01 Tom Tromey <tromey@redhat.com>
1526
1527 * utils.c (report_command_stats): Don't print `-' for negative
1528 number.
1529
b0dd7688
JB
15302011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1531
1532 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1533 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1534 typedefs.
1535
956a9fb9
JB
15362011-04-01 Joel Brobecker <brobecker@adacore.com>
1537
1538 * breakpoint.h (bpdisp_text): Add declaration.
1539 * breakpoint.c (bpdisp_text): Make non-static.
1540 * ada-lang.c: #include "mi/mi-common.h".
1541 (print_it_exception): Rewrite to improve GDB/MI output.
1542
3352110b
PA
15432011-04-01 Pedro Alves <pedro@codesourcery.com>
1544
1545 * arm-tdep.h (struct address_space): Add forward declaration.
1546
18819fa6
UW
15472011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1548
1549 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1550 * arm-tdep.c (arm_override_mode): New global.
1551 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1552 execution mode heuristics.
1553 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1554 second single-step breakpoint if needed, using
1555 arm_insert_single_step_breakpoint.
1556 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1557 ARM execution mode, do not call thumb_get_next_pc_raw.
1558 (arm_get_next_pc): Encode execution mode in return value. Call
1559 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1560 (arm_insert_single_step_breakpoint): New function.
1561 (arm_software_single_step): Call it.
1562 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1563 argument to return execution mode of sigreturn target.
1564 (arm_linux_syscall_next_pc): Use it.
1565 (arm_linux_copy_svc): Update call.
1566 (arm_linux_software_single_step): Call
1567 arm_insert_single_step_breakpoint.
1568
a6e293d1
JK
15692011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1572 the comment.
1573
a4c8e806
TT
15742011-03-31 Tom Tromey <tromey@redhat.com>
1575
1576 * varobj.c (update_dynamic_varobj_children): Properly handle
1577 errors from iterator.
1578
df5c6c50
JK
15792011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1580
1581 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1582 struct linkage name twice.
1583
1dae3efc
TT
15842011-03-31 Tom Tromey <tromey@redhat.com>
1585
1586 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1587 missing ">" to message.
1588
f4f7ab05
TT
15892011-03-31 Tom Tromey <tromey@redhat.com>
1590
1591 * varobj.c (instantiate_pretty_printer): Remove duplicate
1592 'return'.
1593
fcf250e2
UW
15942011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1595
1596 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1597 if neither saved value nor register available (e.g. signal frame).
1598
ee6436e3
TJB
15992011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1600
1601 * macroexp.c (expand): Avoid uninitialized variable
1602 compiler warning.
1603
423f41a5
TJB
16042011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1605
1606 * breakpoint.c (break_range_command): Fix typo in comment.
1607
f1310107
TJB
16082011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1609 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1610
1611 Implement support for PowerPC BookE ranged breakpoints.
1612 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1613 * breakpoint.h (struct bp_target_info) <length>: New member
1614 variable.
1615 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1616 instead of struct breakpoint as argument, and also add ASPACE
1617 and BP_ADDR arguments. Update all callers.
1618 (struct breakpoint_ops) <print_one_detail>: New method.
1619 (struct breakpoint) <addr_string_range_end>: New member variable.
1620 * breakpoint.c (breakpoint_location_address_match): Add function
1621 prototype.
1622 (insert_bp_location): Set bl->target_info.length.
1623 (breakpoint_here_p): Call breakpoint_location_address_match.
1624 (moribund_breakpoint_here_p): Likewise.
1625 (regular_breakpoint_inserted_here_p): Likewise.
1626 (breakpoint_thread_match): Likewise.
1627 (bpstat_stop_status): Likewise.
1628 (bpstat_check_location): Move call to
1629 breakpoint_ops.breakpoint_hit to the top.
1630 (print_one_breakpoint_location): Call
1631 breakpoint_ops.print_one_detail if available.
1632 (breakpoint_address_match_range): New function.
1633 (breakpoint_location_address_match): Likewise.
1634 (breakpoint_locations_match): Compare the length field of the
1635 locations too.
1636 (hw_breakpoint_used_count): Count resources used by all locations
1637 in a breakpoint, and use breakpoint_ops.resources_needed if
1638 available.
1639 (breakpoint_hit_ranged_breakpoint): New function.
1640 (resources_needed_ranged_breakpoint): Likewise.
1641 (print_it_ranged_breakpoint): Likewise.
1642 (print_one_ranged_breakpoint): Likewise.
1643 (print_one_detail_ranged_breakpoint): Likewise.
1644 (print_mention_ranged_breakpoint): Likewise.
1645 (print_recreate_ranged_breakpoint): Likewise.
1646 (ranged_breakpoint_ops): New structure.
1647 (find_breakpoint_range_end): New function.
1648 (break_range_command): Likewise.
1649 (delete_breakpoint): Free addr_string_range_end.
1650 (update_breakpoint_locations): Add SALS_END argument. Update
1651 all callers. Calculate breakpoint length if a non-zero SALS_END
1652 is given. Call breakpoint_locations_match instead of
1653 breakpoint_address_match.
1654 (reset_breakpoint): Find SaL of the end of the range if B is a
1655 ranged breakpoint.
1656 (_initialize_breakpoint): Register break-range command.
1657 * defs.h (print_core_address): Add function prototype.
1658 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1659 function.
1660 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1661 (ppc_linux_remove_hw_breakpoint): Likewise.
1662 (_initialize_ppc_linux_nat): Initialize
1663 to_ranged_break_num_registers.
1664 * target.c (update_current_target): Add comment about
1665 to_ranged_break_num_registers.
1666 (target_ranged_break_num_registers): New function.
1667 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1668 New method.
1669 (target_ranged_break_num_registers): Add function prototype.
1670 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1671 * utils.c (print_core_address): ... here.
1672
02d20e4a
UW
16732011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1674
1675 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1676 variable compiler warning.
1677
ef23e705
TJB
16782011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1679
1680 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1681 code from here ...
1682 (re_set_breakpoint): ... to here ...
1683 (addr_string_to_sals): ... and here.
1684
311e6ab3
PM
16852011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1686
1687 * Makefile.in (SFILES): Add missing C sources.
1688 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1689 Add missing headers.
1690
acd1d99c
MF
16912011-03-29 Mike Frysinger <vapier@gentoo.org>
1692
1693 * .gitignore: New file.
1694
66ee2731
MF
16952011-03-29 Mike Frysinger <vapier@gentoo.org>
1696
1697 * NEWS: Mention new cfi device simulation.
1698
53832f31
TT
16992011-03-29 Tom Tromey <tromey@redhat.com>
1700
1701 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1702 otherwise anonymous types.
1703 (dwarf2_name): Likewise.
1704 * valops.c (value_struct_elt_for_reference): Refine artificial
1705 type logic. Call error if j==-1.
1706
09b58708
JK
17072011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1708
1709 Fix false GCC warning.
1710 * infcall.c (find_function_addr): Initialize funaddr.
1711
6023c606
PM
17122011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1713
1714 Fix mingw compilation with --enable-targets=all.
1715 * remote-mips.c (gdb_usleep.h): Include header.
1716 (mips_enter_debug): Use gdb_usleep instead of sleep.
1717
0e30163f
JK
17182011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 Support resolution of STT_GNU_IFUNC via breakpoints.
1721 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1722 bp_gnu_ifunc_resolver_return.
1723 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1724 the loop. Support bp_gnu_ifunc_resolver and
1725 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1726 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1727 breakpoints.
1728 (bptype_string, print_one_breakpoint_location): Support
1729 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1730 (user_settable_breakpoint): Return true also for
1731 bp_gnu_ifunc_resolver.
1732 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1733 bp_gnu_ifunc_resolver_return.
1734 (set_breakpoint_location_function): New parameter explicit_loc,
1735 describe it. Call find_pc_partial_function_gnu_ifunc with new
1736 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1737 EXPLICIT_LOC is not set.
1738 (set_raw_breakpoint): Set EXPLICIT_LOC for
1739 set_breakpoint_location_function.
1740 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1741 set_breakpoint_location_function.
1742 (mention): Support bp_gnu_ifunc_resolver and
1743 bp_gnu_ifunc_resolver_return.
1744 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1745 set_breakpoint_location_function.
1746 (update_breakpoint_locations): Remove static.
1747 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1748 bp_gnu_ifunc_resolver_return.
1749 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1750 bp_gnu_ifunc_resolver_return.
1751 (update_breakpoint_locations): New declaration.
1752 * elfread.c: Include gdbthread.h and regcache.h.
1753 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1754 functions.
1755 (elf_gnu_ifunc_fns): Install them.
1756 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1757 (stub_gnu_ifunc_resolver_return_stop): New functions.
1758 (stub_gnu_ifunc_fns): Install them.
1759 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1760 and gnu_ifunc_resolver_return_stop.
1761 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1762
07be84bf
JK
17632011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1764
1765 STT_GNU_IFUNC reader implementation.
1766 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1767 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1768 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1769 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1770 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1771 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1772 (elf_gnu_ifunc_resolve_addr): New.
1773 (elf_symfile_read): Call elf_rel_plt_read.
1774 (elf_gnu_ifunc_fns): New.
1775 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1776 Install elf_gnu_ifunc_fns.
1777 * infcall.c (find_function_return_type): New function.
1778 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1779 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1780 (stub_gnu_ifunc_resolve_name): New functions.
1781 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1782 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1783 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1784
300f8e10
JK
17852011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1786
1787 Code cleanup for later STT_GNU_IFUNC support.
1788 * infcall.c (find_function_addr): Remove variable code, use explicit
1789 dereferences for it. Move VALUE_TYPE initialization later.
1790
11c81455
JK
17912011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1792
1793 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1794 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1795 (clear_pc_function_cache): Clear it.
1796 (find_pc_partial_function): Rename to ...
1797 (find_pc_partial_function_gnu_ifunc): ... this function. New
1798 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1799 (find_pc_partial_function): New wrapper for this function.
1800 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1801
0875794a
JK
18022011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 GDB internal type support for STT_GNU_IFUNC.
1805 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1806 (elf_symtab_read): Set mst_text_gnu_ifunc for
1807 BSF_GNU_INDIRECT_FUNCTION.
1808 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1809 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1810 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1811 nodebug_got_plt_symbol.
1812 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1813 (TYPE_GNU_IFUNC): New.
1814 (struct main_type): New field flag_gnu_ifunc.
1815 (struct builtin_type): New field builtin_func_func.
1816 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1817 nodebug_got_plt_symbol.
1818 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1819 (in_gnu_ifunc_stub): New.
1820 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1821 mst_text_gnu_ifunc.
1822 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1823 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1824 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1825 in_gnu_ifunc_stub.
1826 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1827 * symtab.c (search_symbols): Likewise.
1828 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1829 and mst_slot_got_plt.
1830 (in_gnu_ifunc_stub): New declaration.
1831
d0fb5eae
JK
18322011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1833
1834 Support a ring of related breakpoints.
1835 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1836 other functions, add gdb_assert.
1837 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1838 watchpoint_del_at_next_stop.
1839 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1840 (bpstat_stop_status): Handle ring in related_breakpoint.
1841 (set_raw_breakpoint_without_location): Initialize ring in
1842 related_breakpoint.
1843 (delete_breakpoint): Handle ring in related_breakpoint, use
1844 watchpoint_del_at_next_stop.
1845 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1846
9cded63f
TT
18472011-03-28 Tom Tromey <tromey@redhat.com>
1848
1849 PR symtab/12441:
1850 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1851 with `language_minimal'.
1852
467d42c4
UW
18532011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1854
1855 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1856 instead of checking for STT_ARM_TFUNC symbol type.
1857
62853458
TT
18582011-03-25 Tom Tromey <tromey@redhat.com>
1859
1860 * linespec.c (symbol_found): Restore line-based result for
1861 non-LOC_LABEL symbols.
1862
a7417d46
KT
18632011-03-25 Kai Tietz <ktietz@redhat.com>
1864
1865 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1866 instead of strcmp for comparison.
1867 (tui_source_is_displayed): Likewise.
1868 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1869
55f1336d
TT
18702011-03-24 Mark Wielaard <mjw@redhat.com>
1871
f33edef8
PP
1872 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1873 complaint.
1874 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1875 (find_partial_die_in_comp_unit): Likewise in comment.
1876 (read_attribute_value): Likewise.
1877 (lookup_die_type): Likewise.
1878 (dwarf_form_name): Likewise.
1879 (dump_die_shallow): Likewise.
1880 (follow_die_ref_or_sig): Likewise.
55f1336d 1881
9ef07c8c
TT
18822011-03-24 Tom Tromey <tromey@redhat.com>
1883
1884 PR breakpoints/11816:
1885 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1886 (decode_compound): Update.
1887 (find_function_symbol): New function.
1888 (decode_dollar): Update.
1889 (decode_label): Add 'function_symbol' parameter. Handle
1890 function-relative labels.
1891 (decode_variable): Update.
1892 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1893 not its line. Set `special_display' and canonical name for
1894 labels.
1895
56435ebe
TT
18962011-03-24 Tom Tromey <tromey@redhat.com>
1897
1898 * linespec.h (struct linespec_result) <special_display>: New
1899 field.
1900 * breakpoint.h (struct breakpoint) <display_canonical>: New
1901 field.
1902 * breakpoint.c (print_breakpoint_location): Respect
1903 display_canonical.
1904 (create_breakpoint_sal): Add 'display_canonical' parameter.
1905 (create_breakpoints_sal): Update.
1906 (create_breakpoint): Update.
1907
7efd8fc2
TT
19082011-03-24 Tom Tromey <tromey@redhat.com>
1909
1910 * symtab.c (decode_line_spec): Update.
1911 * linespec.c (build_canonical_line_spec): Change type of
1912 'canonical'.
1913 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1914 (find_method, decode_all_digits, decode_dollar, decode_label)
1915 (symbol_found): Likewise.
1916 (init_linespec_result): New function.
1917 * breakpoint.c (struct captured_parse_breakpoint_args)
1918 <canonical_p>: New field, replaces addr_string_p.
1919 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1920 'addr_string'.
1921 (parse_breakpoint_sals): Likewise.
1922 (do_captured_parse_breakpoint): Update.
1923 (create_breakpoint): Use struct linespec_result.
1924 (until_break_command): Update.
1925 (breakpoint_re_set_one): Update.
1926 (decode_line_spec_1): Update.
1927 * linespec.h (struct linespec_result): New.
1928 (init_linespec_result): Declare.
1929
788c8b10
PA
19302011-03-23 Pedro Alves <pedro@codesourcery.com>
1931
1932 * regcache.c (regcache_raw_read): If the target didn't supply a
1933 given raw register, mark it as unavailable.
1934
0ba1096a
KT
19352011-03-23 Kai Tietz <ktietz@redhat.com>
1936
1937 * breakpoint.c (clear_command): Use filename_cmp
1938 instead of strcmp for comparison.
1939 * buildsym.c (watch_main_source_file_lossage): Likewise.
1940 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1941 checking just for slash.
1942 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1943 strrchr and filename_cmp instead of strcmp for filenames.
1944 (add_old_header_file): Use filename_cmp
1945 instead of strcmp for comparison.
1946 * exec.c (exec_set_section_address): Likewise.
1947 * macrotab.c (macro_lookup_inclusion): Likewise.
1948 (macro_lookup_inclusion): Likewise.
1949 * elfread.c (_initialize_elfread): Likewise.
1950 (elfstab_offset_sections): Likewise.
1951 (elfstab_offset_sections): Use lbasename instead of
1952 strrchr.
1953 * mdebugread.c (parse_partial_symbols): Likewise.
1954 (arse_partial_symbols): Use filename_(n)cmp instead of
1955 str(n)cmp for comparison.
1956 * minsyms.c (lookup_minimal_symbol): Likewise.
1957 * psymtab.c (read_psymtabs_with_filename): Likewise.
1958 * solib.c (solib_read_symbols): Likewise.
1959 (reload_shared_libraries_1): Likewise.
1960 * symmisc.c (maintenance_print_symbols): Likewise.
1961 * symfile.c (separate_debug_file_exists): Likewise.
1962 (reread_symbols): Likewise.
1963 (find_separate_debug_file_by_debuglink): Likewise.
1964 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1965 * source.c (add_path): Likewise.
1966 * symtab.c (filename_seen): Likewise.
1967 (file_matches): Likewise.
1968 (print_symbol_info): Likewise.
1969 (maybe_add_partial_symtab_filename): Likewise.
1970 (make_source_files_completion_list): Likewise.
1971 * xml-syscall.c (init_sysinfo): Likewise.
1972 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1973 IS_DIR_SEPARATOR for checking for trailing path separator.
1974
dd90784c
JK
19752011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1976
1977 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1978 label abort_expression.
1979 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1980 DWARF_VALUE_OPTIMIZED_OUT.
1981
3167638f
JK
19822011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1983
1984 Code cleanup.
1985 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1986 to linkage_name. Invert its value. Update the function comment.
1987 (c_type_print_varspec_suffix): Invert it at the caller.
1988 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1989
ce406537
PA
19902011-03-22 Pedro Alves <pedro@codesourcery.com>
1991
1992 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1993 errors when reading the `stop_pc'.
1994 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1995 get_frame_pc.
1996
da5d4055
PM
19972011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1998
1999 * NEWS: Document gdb.Write stream keyword.
2000
29e0eb9c
JK
20012011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2002
2003 Revert:
2004 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2005 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2006 (dwarf2_add_field): Fix new_field->accessibility for
2007 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2008
05775840
PM
20092011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2010
f33edef8 2011 PR python/12183
05775840
PM
2012
2013 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2014 other error classes. Do not print stack trace.
2015
a0cb7835
JK
20162011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2017
2018 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2019 (dwarf2_add_field): Fix new_field->accessibility for
2020 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2021
d19f7eee
UW
20222011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2023
2024 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2025 encountering a load via a non-SP register.
2026
4a2fbb50
UW
20272011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2028
2029 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2030 field in returned unwinder.
2031
3489610d
JB
20322012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2033
2034 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2035
8c1a34e7
JB
20362012-03-21 Joel Brobecker <brobecker@adacore.com>
2037
2038 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2039 of xmalloc.
2040
8fbca658
PA
20412012-03-18 Pedro Alves <pedro@codesourcery.com>
2042
2043 * frame.c (frame_unwind_register): Throw an error if unwinding the
2044 register failed.
2045 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2046 an unwind stop reason.
2047 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2048 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2049 UNWIND_UNAVAILABLE>: New.
2050 * inline-frame.c (inline_frame_unwind): Install
2051 default_frame_unwind_stop_reason.
2052 * frame-unwind.c: Include "exceptions.h".
2053 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2054 (default_frame_unwind_stop_reason): New.
2055 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2056 (default_frame_unwind_stop_reason): Declare.
2057 (struct frame_unwind) <stop_reason>: New function pointer.
2058
2059 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2060 * dwarf2-frame.c: Include exceptions.h.
2061 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2062 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2063 computing the CFA. If such an error was thrown, set
2064 unavailable_retaddr.
2065 (dwarf2_frame_unwind_stop_reason): New.
2066 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2067 unavailable.
2068 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2069 (dwarf2_signal_frame_unwind): Ditto.
2070
2071 * amd64-tdep.c: Include "exceptions.h".
2072 (struct amd64_frame_cache): New field "base_p".
2073 (amd64_init_frame_cache): Clear it.
2074 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2075 Avoid reading registers with functions that throw if the register
2076 is not necessary to compute the frame base.
2077 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2078 swallowing NOT_AVAILABLE_ERROR.
2079 (amd64_frame_unwind_stop_reason): New.
2080 (amd64_frame_this_id): Don't build a frame id if the frame base
2081 was unavailable.
2082 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2083 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2084 base_p if the frame base was computable.
2085 (amd64_sigtramp_frame_unwind_stop_reason): New.
2086 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2087 frame base was unavailable.
2088 (amd64_sigtramp_frame_unwind): Install
2089 amd64_sigtramp_frame_unwind_stop_reason.
2090 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2091 base_p if the frame base was computable.
2092 (amd64_epilogue_frame_unwind_stop_reason): New.
2093 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2094 frame base was unavailable.
2095 (amd64_epilogue_frame_unwind): Install
2096 amd64_epilogue_frame_unwind_stop_reason.
2097 * i386-tdep.c: Include "exceptions.h".
2098 (struct i386_frame_cache): New field "base_p".
2099 (i386_init_frame_cache): Clear it.
2100 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2101 Avoid reading registers with functions that throw if the register
2102 is not necessary to compute the frame base.
2103 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2104 swallowing NOT_AVAILABLE_ERROR.
2105 (i386_frame_unwind_stop_reason): New.
2106 (i386_frame_this_id): Don't build a frame id if the frame base was
2107 unavailable.
2108 (i386_frame_prev_register): Handle unavailable SP.
2109 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2110 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2111 base_p if the frame base was computable.
2112 (i386_epilogue_frame_unwind_stop_reason): New.
2113 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2114 base was unavailable.
2115 (i386_epilogue_frame_unwind): Install
2116 i386_epilogue_frame_unwind_stop_reason.
2117 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2118 base_p if the frame base was computable.
2119 (i386_sigtramp_frame_unwind_stop_reason): New.
2120 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2121 base was unavailable.
2122 (i386_sigtramp_frame_unwind): Install
2123 i386_sigtramp_frame_unwind_stop_reason.
2124 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2125 type's size, not the register's.
2126 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2127
2128 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2129 default_frame_unwind_stop_reason.
2130 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2131 (alpha_heuristic_frame_unwind): Ditto.
2132 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2133 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2134 * avr-tdep.c (avr_frame_unwind): Ditto.
2135 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2136 Ditto.
2137 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2138 * frv-tdep.c (frv_frame_unwind): Ditto.
2139 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2140 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2141 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2142 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2143 (hppa_stub_frame_unwind): Ditto.
2144 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2145 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2146 (ia64_libunwind_frame_unwind)
2147 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2148 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2149 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2150 * m32c-tdep.c (m32c_unwind): Ditto.
2151 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2152 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2153 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2154 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2155 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2156 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2157 * mep-tdep.c (mep_frame_unwind): Ditto.
2158 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2159 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2160 (mips_stub_frame_unwind): Ditto.
2161 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2162 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2163 * mt-tdep.c (mt_frame_unwind): Ditto.
2164 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2165 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2166 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2167 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2168 (s390_sigtramp_frame_unwind): Ditto.
2169 * score-tdep.c (score_prologue_unwind): Ditto.
2170 * sh-tdep.c (sh_frame_unwind): Ditto.
2171 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2172 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2173 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2174 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2175 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2176 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2177 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2178 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2179 (sparc64obsd_trapframe_unwind): Ditto.
2180 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2181 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2182 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2183 * v850-tdep.c (v850_frame_unwind): Ditto.
2184 * vax-tdep.c (vax_frame_unwind): Ditto.
2185 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2186 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2187 * xtensa-tdep.c (xtensa_unwind): Ditto.
2188
f23d1b92
PA
21892011-03-18 Pedro Alves <pedro@codesourcery.com>
2190
2191 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2192 there's always a frame. Use get_frame_pc_if_available instead of
2193 get_frame_pc, and if there's no PC available, don't look up a
2194 symtab.
2195
1d4f5741
PA
21962011-03-18 Pedro Alves <pedro@codesourcery.com>
2197
2198 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2199 unavailable PC.
2200
dba09041
PA
22012011-03-18 Pedro Alves <pedro@codesourcery.com>
2202
2203 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2204 gracefully.
2205
9a26e44c
PA
22062011-03-18 Pedro Alves <pedro@codesourcery.com>
2207
2208 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2209 * frame.c (frame_unwind_caller_pc_if_available): New.
2210 * stack.c (frame_info): Handle unavailable PC.
2211
22122011-03-18 Pedro Alves <pedro@codesourcery.com>
2213
2214 * frame.c (frame_unwind_pc): Rename to ...
2215 (frame_unwind_pc_if_available): ... this. New `pc' output
2216 parameter. Change return type to int. Gracefully handle
2217 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2218 happened, or 1 otherwise.
2219 (frame_unwind_pc): Reimplement on top of
2220 frame_unwind_pc_if_available.
2221 (get_frame_func): Rename to ...
2222 (get_frame_func_if_available): New `pc' output parameter. Change
2223 return type to int. Gracefully handle the PC not being available.
2224 (get_frame_func): Reimplement on top of
2225 get_frame_func_if_available.
2226 (select_frame): Handle the PC being unavailable.
2227 (get_prev_frame): Handle the PC being unavailable.
2228 (get_frame_pc_if_available): New.
2229 (get_frame_address_in_block_if_available): New.
2230 (find_frame_sal): Handle the frame PC not being available.
2231 * frame.h (get_frame_pc_if_available): Declare.
2232 (get_frame_address_in_block_if_available): Declare.
2233 (get_frame_func_if_available): Declare.
2234 * stack.c (print_frame_info): Handle the PC being unavailable.
2235 (find_frame_funname): Ditto.
2236 (print_frame): Handle the PC being unavailable.
2237 (get_frame_language): Ditto.
2238 * blockframe.c (get_frame_block): Ditto.
2239 * macroscope.c (default_macro_scope): Ditto.
2240 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2241
22422011-03-18 Pedro Alves <pedro@codesourcery.com>
2243
2244 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2245 NOT_AVAILABLE_ERROR when evaluating the location expression.
2246
22472011-03-18 Pedro Alves <pedro@codesourcery.com>
2248
2249 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2250 returning that the register piece is unavailable/optimized out.
2251 (write_pieced_value): Handle get_frame_register_bytes returning
2252 that the register piece is unavailable/optimized out when doing a
2253 read-modify write of a bitfield.
2254 * findvar.c (value_from_register): Handle get_frame_register_bytes
2255 returning that the register piece is unavailable/optimized out.
2256 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2257 and `unavailablep'. Throw error on bad debug info. Use
2258 frame_register instead of frame_register_read, to fill in the new
2259 arguments.
2260 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2261 and `unavailablep'.
2262 * valops.c: (value_assign): Adjust, and handle
2263 get_frame_register_bytes failing.
2264 * spu-tdep.c: Include exceptions.h.
2265 (spu_software_single_step): Adjust, and handle
2266 get_frame_register_bytes failing.
2267 (spu_get_longjmp_target): Ditto.
2268 * gdbarch.sh (register_to_value): Change to return int. New
2269 parameters `optimizedp' and `unavailablep'.
2270 * gdbarch.h, gdbarch.c: Regenerate.
2271 * i386-tdep.c (i386_register_to_value): Adjust to new
2272 gdbarch_register_to_value interface.
2273 * i387-tdep.c (i387_register_to_value): Ditto.
2274 * i387-tdep.h (i387_register_to_value): Ditto.
2275 * alpha-tdep.c (alpha_register_to_value): Ditto.
2276 * ia64-tdep.c (ia64_register_to_value): Ditto.
2277 * m68k-tdep.c (m68k_register_to_value): Ditto.
2278 * mips-tdep.c (mips_register_to_value): Ditto.
2279 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2280
0fdb4f18
PA
22812011-03-18 Pedro Alves <pedro@codesourcery.com>
2282
2283 * findvar.c (value_of_register): Mark the value as unavailable, if
2284 the register is unavailable.
2285 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2286 (frame_register): New `unavailablep' parameter.
2287 (frame_register_read): Update comment.
2288 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2289 Set it if the register is unavailable. If the register is
2290 unavailable, clear the output buffer.
2291 (frame_register): New `unavailablep' parameter. Pass it down.
2292 (frame_unwind_register): Adjust.
2293 (put_frame_register): Adjust.
2294 (frame_register_read): Adjust. Also return false if the register
2295 is not available.
2296 (frame_register_unwind_location): Adjust.
2297 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2298 is unavailable, mark the value accordingly.
2299 * stack.c (frame_info): Handle unavailable registers.
2300
e69aa73e
PA
23012011-03-18 Pedro Alves <pedro@codesourcery.com>
2302
2303 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2304 simplify, using regcache_cooked_read.
2305
05d1431c
PA
23062011-03-18 Pedro Alves <pedro@codesourcery.com>
2307
2308 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2309 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2310 (regcache_raw_read_unsigned, regcache_raw_read_part)
2311 (regcache_cooked_read, regcache_cooked_read_signed)
2312 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2313 (regcache_cooked_read_ftype): Change return to enum
2314 register_status.
2315 * regcache.c: Include exceptions.h
2316 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2317 (do_cooked_read): Change return to enum register_status. Always
2318 forward to regcache_cooked_read.
2319 (regcache_raw_read): Change return to enum register_status. If
2320 the register is not REG_VALID, memset the buffer. Return the
2321 register's status.
2322 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2323 return the register's status.
2324 (regcache_raw_read_unsigned): Ditto.
2325 (regcache_cooked_read): Change return to enum register_status.
2326 Assert that with read-only regcaches, the register's status must
2327 be known. If the regcache is read-only, and the register is not
2328 REG_VALID, memset the buffer. Return the register's status.
2329 (regcache_cooked_read_signed): Change return to enum
2330 register_status. Handle non-REG_VALID registers and return the
2331 register's status.
2332 (regcache_cooked_read_unsigned): Change return to enum
2333 register_status. Handle non-REG_VALID registers and return the
2334 register's status.
2335 (regcache_xfer_part, regcache_raw_read_part)
2336 (regcache_cooked_read_part): Change return to enum
2337 register_status. Return the register's status.
2338 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2339 unavailable.
2340 (regcache_dump): Handle unavailable cooked registers.
2341 * frame.c (do_frame_register_read): Adjust interface to match
2342 regcache_cooked_read_ftype.
2343 * gdbarch.sh (pseudo_register_read): Change return to enum
2344 register_status.
2345 * gdbarch.h, gdbarch.c: Regenerate.
2346
2347 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2348 register_status.
2349 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2350 register_status. If reading a raw register indicates the raw
2351 register is not valid, return the raw register's status,
2352 otherwise, return REG_VALID.
2353 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2354 register_status. Handle non-REG_VALID raw registers and return
2355 the register's status.
2356 * arm-tdep.c (arm_neon_quad_read)
2357 (arm_pseudo_read): Change return to enum register_status. Handle
2358 non-REG_VALID raw registers and return the register's status.
2359 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2360 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2361 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2362 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2363 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2364 register_status.
2365 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2366 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2367 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2368 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2369 (m32c_pseudo_register_read): Change return to enum
2370 register_status. Adjust.
2371 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2372 enum register_status. Return the register's status.
2373 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2374 register_status. Return the register's status.
2375 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2376 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2377 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2378 * rs6000-tdep.c (move_ev_register_func): New typedef.
2379 (e500_move_ev_register): Use it. Change return to enum
2380 register_status. Return the register's status.
2381 (do_regcache_raw_read): New function.
2382 (do_regcache_raw_write): New function.
2383 (e500_pseudo_register_read): Change return to enum
2384 register_status. Return the register's status. Use
2385 do_regcache_raw_read.
2386 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2387 (dfp_pseudo_register_read): Change return to enum register_status.
2388 Return the register's status.
2389 (vsx_pseudo_register_read): Ditto.
2390 (efpr_pseudo_register_read): Ditto.
2391 (rs6000_pseudo_register_read): Ditto.
2392 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2393 register_status. Return the register's status.
2394 * sh64-tdep.c (pseudo_register_read_portions): New function.
2395 (sh64_pseudo_register_read): Change return to enum
2396 register_status. Use pseudo_register_read_portions. Return the
2397 register's status.
2398 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2399 register_status. Return the register's status.
2400 * sh-tdep.c (pseudo_register_read_portions): New function.
2401 (sh_pseudo_register_read): Change return to enum register_status.
2402 Use pseudo_register_read_portions. Return the register's status.
2403 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2404 enum register_status. Return the register's status.
2405 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2406 * spu-tdep.c (spu_pseudo_register_read_spu)
2407 (spu_pseudo_register_read): Ditto.
2408 * xtensa-tdep.c (xtensa_register_read_masked)
2409 (xtensa_pseudo_register_read): Ditto.
2410 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2411
e10abd8f
PM
24122011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2413
2414 * python/py-value.c (valpy_getitem): Fix formatting of error function
2415 call.
2416
7ea6d463
PM
24172011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2418
2419 ARI fixes: Add missing internationalization markups throughout
2420 C source files.
2421 * darwin-nat-info.c: Ditto.
2422 * record.c: Ditto.
2423 * remote.c: Ditto.
2424 * mi/mi-main.c: Ditto.
2425
001083c6
PM
24262011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2427
2428 ARI fixes: Add missing internationalization markups throughout
2429 yacc files.
2430 * c-exp.y: Ditto.
2431 * cp-name-parser.y: Ditto.
2432 * f-exp.y: Ditto.
2433 * m2-exp.y: Ditto.
2434 * objc-exp.y: Ditto.
2435 * p-exp.y: Ditto.
2436
4f1cdeec
PM
24372011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2438
2439 ARI fixes: Messages should have no trailing new lines.
2440 * darwin-nat.c (mach_check_error): Remove trailing new line from
2441 warning function call message.
2442 * record.c (bfdcore_read): Idem for error call.
2443
28e698f1
PM
24442011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2445
2446 * common/signals.c (target_signal_from_host): Add _ markup to error
2447 function call message.
2448 (target_signal_to_host): Add _ markup and remove trailing new line
2449 from warning call message.
2450 (target_signal_from_command): Add _ markup to error function call
2451 message.
2452
99c3dc11
PM
24532011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2454
f33edef8 2455 PR python/12149
99c3dc11
PM
2456
2457 * python/python.c (gdbpy_write): Accept a stream argument and
2458 operate to the appropriate stream.
2459 (gdbpy_flush): Likewise.
2460 (_initialize_python): Add stream constants.
2461 (finish_python_initialization): Add GdbOutputErrorFile class.
2462
c20800be
KY
24632011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2464
2465 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2466
f4a1794a
KY
24672011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2468
2469 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
2470 to store_signed_integer. Add debug message when relocating CALL
2471 instructions. Fix formatting of debug message.
2472 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 2473
d4862372
JB
24742011-03-17 Joel Brobecker <brobecker@gnat.com>
2475
2476 * target.h (struct target_ops): Remove to_lookup_symbol field.
2477 (target_lookup_symbol): Delete macro.
2478 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2479 (update_current_target, setup_target_debug): Remove handling
2480 of to_lookup_symbol target_ops field.
2481 * ada-tasks.c (get_known_tasks_addr): Remove use of
2482 target_lookup_symbol.
2483 * coffread.c (coff_symtab_read): Likewise.
2484 * dbxread.c (read_dbx_symtab): Ditto.
2485
d645e32e
JB
24862011-03-17 Joel Brobecker <brobecker@gnat.com>
2487
2488 PR gdb/12116:
2489 * configure.ac: Add getthrds declaration check.
2490 * configure, config.in: Regenerate.
2491 * aix-thread.c (getthrds): Declare only if not already declared
2492 in procinfo.h. More declaration out of get_signaled_thread to
2493 global scope.
2494
29703da4
PM
24952011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2496
2497 * python/py-symtab.c: Populate symtab_object_methods,
2498 sal_object_methods.
2499 (stpy_is_valid): New function.
2500 (salpy_is_valid): Ditto.
2501 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2502 (sympy_is_valid): New function.
2503 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2504 (objfpy_is_valid): New function.
2505 * python/py-inferior.c: Populate inferior_object_methods.
2506 (infpy_is_valid): New function.
2507 * python/py-infthread.c: Populate thread_object_methods.
2508 (thpy_is_valid): New function.
2509 * python/py-block.c: Declare block_object_methods. Populate. Declare
2510 block_iterator_object_methods. Populate.
2511 (blpy_is_valid): New function.
2512 (blpy_iter_is_valid): Ditto.
2513
c00f8484
KS
25142011-03-16 Keith Seitz <keiths@redhat.com>
2515
2516 * linespec.c (find_methods): Canonicalize NAME before looking
2517 up the symbol.
2518 (name_end): New function.
2519 (keep_name_info): New function.
2520 (decode_line_1): Use keep_name_info.
2521 (decode_compound): Likewise.
2522 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2523 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2524
2525 PR c++/12273
2526 * linespec.c (locate_first_half): Keep overload information, too.
2527 (decode_compound): Use a string to represent break characters
2528 to escape the loop.
2529 If P points to a break character, do not increment it.
2530 For C++ and Java, keep overload information and relevant keywords.
2531 If we cannot find a symbol, search the minimal symbols.
2532
2533 PR c++/11734
2534 * linespec.c (decode_compound): Rename SAVED_ARG to
2535 THE_REAL_SAVED_ARG.
2536 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2537 single-quotes.
2538 Pass a valid block to lookup_symbol.
2539 (lookup_prefix_sym): Likewise.
2540 (find_method): Construct search name based on SYM_CLASS instead
2541 of SAVED_ARG.
2542 * psymtab.c (lookup_partial_symbol): Add language parameter.
2543 (lookup_symbol_aux_psymtabs): Likewise.
2544 Don't assume that the psymtab we found was the right one. Search
2545 for the desired symbol in the symtab to be certain.
2546 (psymtab_search_name): New function.
2547 (lookup_partial_symbol): Use psymtab_search_name.
2548 Add language parameter.
2549 (read_symtabs_for_function): Add language parameter and pass to
2550 lookup_partial_symbol.
2551 (find_symbol_file_from_partial): Likewise.
2552
c91513d8
PP
25532011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2554
2555 PR gdb/12528
2556 * dwarf2read.c (noop_record_line): New function.
2557 (dwarf_decode_lines): Ignore line tables for GCd functions.
2558
b37520b6
PM
25592011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2560
2561 Fix ARI warnings about new lines at the end of messages, which
2562 are unneeded as there is a new line added at the end of the message
2563 automatically.
2564 * darwin-nat.c (darwin_stop_inferior): Ditto.
2565 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2566 * dfp.c (decimal_to_number): Ditto.
2567 * exec.c (print_section_info): Ditto.
2568 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2569 * osdata.c (get_osdata): Ditto.
2570 * record.c (bfdcore_write): Ditto.
2571 * remote-mips.c (mips_readchar): Ditto.
2572 * remote.c (read_ptid): Ditto.
2573 * ser-mingw.c (ser_windows_raw): Ditto.
2574 * tracepoint.c (add_local_symbols): Ditto.
2575 * windows-nat.c (fake_create_process): Ditto.
2576
b08ee6a2
TT
25772011-03-16 Tom Tromey <tromey@redhat.com>
2578
2579 * tracepoint.c (stop_tracing): Don't declare.
2580 * event-top.c (after_char_processing_hook): Add `(void)'.
2581
9a6f1302
PM
25822011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2583
2584 * NEWS: Add Parameter sub-classing description.
2585
7ceb86b1
KT
25862011-03-16 Kai Tietz <ktietz@redhat.com>
2587
2588 * MAINTAINERS: Update my e-mail address.
2589
efeff6cf
AT
25902011-03-15 Andreas Tobler <andreast@fgznet.ch>
2591
2592 * MAINTAINERS: Add myself for write after approval privileges.
2593
681c238c
MS
25942011-03-15 Michael Snyder <msnyder@vmware.com>
2595
f3df5b08
MS
2596 * frame.c (find_frame_sal): Assert sym is not null.
2597
13f6513c
MS
2598 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2599
50412521
MS
2600 * objc-lang.c (selectors_info): Check strchr for null result.
2601
681c238c
MS
2602 * stabsread.c (define_symbol): Guard against bad stabstring input.
2603
6ced1581
PM
26042011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2605
2606 Remove trailing spaces and tabulations from pascal language
2607 support sources.
2608 p-exp.y: Ditto.
2609 p-lang.c: Ditto.
2610 p-lang.h: Ditto.
2611 p-valprint.c: Ditto.
2612
9373cf26
JK
26132011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2614
2615 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2616 than LOW. Comment it.
2617 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2618 HIGHPC not strictly higher than LOWPC.
2619
9a1edae6
PM
26202011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2621
2622 Fix formatting of function declarations returning a pointer in
2623 previous commit.
2624 * varobj.c (varobj_add_child): Ditto.
2625 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2626 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2627
24e9cda0
UW
26282011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2629
2630 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2631 for the "generic" vector ABI used with GCC 4.3 and later.
2632 (ppc64_sysv_abi_return_value): Likewise.
2633
26342011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
2635
2636 * infcall.c (call_function_by_hand): Function return value is
2637 always a non_lval, even when using struct_return.
2638
c9174737
PA
26392011-03-15 Pedro Alves <pedro@codesourcery.com>
2640
2641 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2642 (map_display_numbers): New.
2643 (do_delete_display): New.
2644 (undisplay_command): Use map_display_numbers.
2645 (do_enable_disable_display): New.
2646 (enable_disable_display_command): New function.
2647 (enable_display): Delete.
2648 (enable_display_command): New.
2649 (disable_display_command): Reimplement.
2650 (_initialize_printcmd): Adjust "enable display" command to use
2651 `enable_display_command' as callback.
2652
350c6c65
PM
26532011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2654
2655 * NEWS: Add Python breakpoint 'stop' operation.
2656
824446ad
PM
26572011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2658
2659 * NEWS: Delete duplicate entry. Fix typo.
2660
2021ad3a
PM
26612011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2662
2663 Fix ARI warning about function names in first column.
2664 Put prototype declaration on same line as return type.
2665 * objc-exp.y: Ditto.
2666 * p-exp.y: Ditto.
2667 * python/py-stopevent.h: Ditto.
2668 For long function names, split parameters to
2669 allow function name on same line as return type.
2670 * solib-pa64.c: Ditto.
2671 * varobj.c: Ditto.
2672 * varobj.h: Ditto.
2673 For long function declaration, use single line.
2674 * hppa-tdep.h: Ditto.
2675 * inferior.h: Ditto.
2676
7371cf6d
PM
26772011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2678
2679 * python/python.h: Declare gdbpy_should_stop and
2680 gdbpy_breakpoint_has_py_cond.
2681 * python/python.c: Add python.h to includes. Remove python.h from
2682 HAVE_PYTHON definition
2683 (gdbpy_should_stop): New dummy function.
2684 (gdbpy_breakpoint_has_py_cond): New dummy function.
2685 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2686 sub-classing capabilities.
2687 (gdbpy_should_stop): New function.
2688 (gdbpy_breakpoint_has_py_cond): New function.
2689 (local_setattro): New function.
2690 * breakpoint.c (condition_command): Add check for Python 'stop'
2691 operation.
2692 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2693 operation function as part of stop/continue tests.
2694
37b50a69
TT
26952011-03-14 Tom Tromey <tromey@redhat.com>
2696
2697 PR gdb/12576:
2698 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2699 (needs_frame_dwarf_call): Likewise.
2700
eeae04df
PM
27012011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2702
2703 Fix ARI warning about functions without parameters that do not
2704 use (void).
2705 * breakpoint.c (all_tracepoints): Replace () by (void).
2706 * f-exp.y (match_string_literal): Ditto.
2707 (yylex): Ditto.
2708 * m2-exp.y (yylex): Ditto.
2709 * mep-tdep.c (current_me_module): Ditto.
2710 (current_options): Ditto.
2711 (current_cop_data_bus_width): Ditto.
2712 (current_cr_names): Ditto.
2713 (current_cr_is_float): Ditto.
2714 (current_ccr_names): Ditto.
2715 * objc-exp.y (yylex): Ditto.
2716 * p-exp.y (yylex): Ditto.
2717 * remote.c (send_interrupt_sequence): Ditto.
2718 * tracepoint.c (current_trace_status): Ditto.
2719 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2720 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2721
6dc3565d
MS
27222011-03-11 Michael Snyder <msnyder@vmware.com>
2723
1427fe5e
MS
2724 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2725 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2726 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2727 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2728 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2729
60bc018f
MS
2730 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2731 (delete_async_event_handler): Ditto.
2732
f3be5b64
MS
2733 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2734
4c2d5724
MS
2735 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2736
6dc3565d
MS
2737 * top.c (set_verbose): Assert showcmd was found.
2738
4e6ca6d5
MG
27392011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2740
2741 * xtensa-tdep.c (warning_once): Correct style issues.
2742
815a83e4
YQ
27432011-03-11 Yao Qi <yao@codesourcery.com>
2744
2745 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2746
f2eb0bc8
AS
27472011-03-11 Andreas Schwab <schwab@redhat.com>
2748
2749 * common/aclocal.m4: Remove.
2750
b801de47
MG
27512011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2752
2753 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2754 (xtensa_write_register, xtensa_read_register): Likewise.
2755 (xtensa_hextochar): Removed.
2756 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2757
dbab50de
MG
27582011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2759
2760 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 2761 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
2762 (xtensa_alloc_frame_cache): Add initialization for new fields.
2763 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2764 (warning_once): New function.
2765 (xtensa_insn_kind): New item c0opc_and.
2766 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
2767 (call0_track_op): Change arguments. New local variable litbase.
2768 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2769 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2770 in the prologue.
dbab50de 2771 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 2772 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
2773 Add the variety of updates to handle extended prologues, which now can
2774 conduct dynamic stack adjustments.
2775 (call0_frame_cache): Likewise.
2776 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2777 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2778
b2c04452
MS
27792011-03-10 Michael Snyder <msnyder@vmware.com>
2780
f8f67713
MS
2781 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2782 (cmd_qtframe): Ditto.
2783 (cmd_qtbuffer): Ditto.
2784 (cmd_bigqtbuffer): Ditto.
2785
197f0a60
TT
27862011-03-10 Tom Tromey <tromey@redhat.com>
2787
2788 * tracepoint.c (trace_actions_command): Update.
2789 * thread.c (thread_apply_command): Update.
2790 * reverse.c (delete_bookmark_command): Update.
2791 (bookmarks_info): Update.
2792 * printcmd.c (undisplay_command): Update.
2793 * memattr.c (mem_enable_command): Update.
2794 (mem_disable_command): Update.
2795 (mem_delete_command): Update.
2796 * inferior.c (detach_inferior_command): Update.
2797 (kill_inferior_command): Update.
2798 (remove_inferior_command): Update.
2799 * cli/cli-utils.h (struct get_number_or_range_state): New.
2800 (init_number_or_range): Declare.
2801 (get_number_or_range): Update.
2802 * cli/cli-utils.c (init_number_or_range): New function.
2803 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2804 static variables.
2805 (number_is_in_list): Update.
2806 * breakpoint.h (get_tracepoint_by_number): Update.
2807 * breakpoint.c (map_breakpoint_numbers): Update for change to
2808 get_number_or_range.
2809 (find_location_by_number): Use get_number, not
2810 get_number_or_range.
2811 (trace_pass_set_count): New function.
2812 (trace_pass_command): Update for change to get_number_or_range.
2813 Rework loop logic.
2814 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2815 'state' parameter.
2816
ecec24e6
PM
28172011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2818
2819 * python/py-param.c (add_setshow_generic): Add set/show callback
2820 parameters. Register Python object context.
2821 (get_show_value): New function.
2822 (get_set_value): New function.
2823 (call_doc_function): New function.
2824 (get_doc_string): Move behind get_show_value/get_set_value.
2825
6d6c6b1f
JK
28262011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2827
2828 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2829
68d6df83
MG
28302011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2831
dbab50de 2832 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
2833 (xtensa_write_register): Likewise.
2834 (xtensa_hextochar): Add comment and update to match coding conventions.
2835 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2836 (execute_l32e, execute_s32e, execute_code): Update comments.
2837 (xtensa_exception_handler_t): Update to match coding conventions.
2838 (xtensa_insn_kind): Likewise.
2839
85c9d6a6
MS
28402011-03-09 Michael Snyder <msnyder@vmware.com>
2841
2842 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2843
91495617
PA
28442011-03-09 Pedro Alves <pedro@codesourcery.com>
2845
2846 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2847
eb8c0621
TT
28482011-03-09 Tom Tromey <tromey@redhat.com>
2849
2850 * thread.c (restore_selected_frame): Handle frame_level == -1.
2851 (make_cleanup_restore_current_thread): Use
2852 get_selected_frame_if_set.
2853 * frame.h (get_selected_frame_if_set): Declare.
2854 * frame.c (get_selected_frame_if_set): New function.
2855
9f37bbcc
PA
28562011-03-09 Pedro Alves <pedro@codesourcery.com>
2857
2858 * cli/cli-cmds.c (shell_escape): Use lbasename.
2859 * coffread.c (coff_start_symtab): Constify parameter.
2860 (complete_symtab): Constify `name' parameter.
2861 (coff_symtab_read): Constify `filestring' local.
2862 (coff_getfilename): Constify return and `result' local.
2863 Use lbasename.
2864 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2865 * linux-fork.c (info_checkpoints_command): Use lbasename.
2866 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2867 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2868 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2869 * procfs.c (procfs_make_note_section): Use lbasename.
2870 * tui/tui-io.c (printable_part): Constity return and parameter.
2871 Use lbasename.
2872 (print_filename): Constify parameters, and local `s'.
2873 (tui_rl_display_match_list): Constify local `temp'.
2874
f8de3c55
JK
28752011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2876
2877 Revert:
2878 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2879 Fix DWARF-3+ DW_AT_accessibility default assumption.
2880 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2881 cu->header.version >= 3.
2882
d9837b00
YQ
28832011-03-09 Yao Qi <yao@codesourcery.com>
2884
2885 * common/Makefile.in: Remove.
2886 * common/configure: Remove.
2887 * common/configure.ac: Remove.
2888
e637a4f5
YQ
28892011-03-09 Yao Qi <yao@codesourcery.com>
2890
2891 Revert:
2892 2011-02-11 Yao Qi <yao@codesourcery.com>
2893
2894 * common/Makefile.in: Add copyright header.
2895
2896 2011-02-11 Yao Qi <yao@codesourcery.com>
2897
2898 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2899 libcommon.a.
2900 * configure.ac: Add common to sub dir.
2901 * configure: Regenerate.
2902
f976a05d
MG
29032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2904
2905 * xtensa-tdep.c (call0_ret): New function.
2906 (xtensa_skip_prologue): Speed up analysis.
2907
57041825
MG
29082011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2909
2910 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2911 while executing MI command -data-list-changed-registers.
2912
08b9c608
MG
29132011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2914
2915 * xtensa-tdep.c (xtensa_read_register): New function.
2916 (xtensa_write_register): New function.
2917 (xtensa_find_register_by_name): New function.
2918 (xtensa_windowed_frame_cache): Update comments in type description.
2919 (xtensa_frame_cache): Likewise.
2920 (xtensa_window_interrupt_insn): New function.
2921 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2922 (xtensa_insn_kind): Add new instructions.
2923 (rwx_special_register): New function.
2924 (call0_classify_opcode): Add new instructions to the analysis.
2925 (a0_saved, a7_saved, a11_saved): New variables.
2926 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2927 (execute_l32e): New function.
2928 (execute_s32e): New function.
2929 (xtensa_exception_handler_t): New type.
2930 (execute_code): New function.
2931 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2932 analysis for Xtensa Window Exception handlers.
2933
4d1acb11
MG
29342011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2935
98689b25
MG
2936 * xtensa-tdep.c (TX_PS): New.
2937 (windowing_enabled): Update to count for Call0 ABI.
2938 (xtensa_hextochar): New.
2939 (xtensa_init_reggroups): Make algorithm generic.
2940 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2941
29422011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2943
2944 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 2945
d3f323f3
MS
29462011-03-08 Michael Snyder <msnyder@vmware.com>
2947
3dcabaa8
MS
2948 * i386-tdep.c (i386_follow_jump): Check return value of
2949 target_read_memory.
2950 (i386_analyze_struct_return): Ditto.
2951 (i386_skip_probe): Ditto.
2952 (i386_match_insn): Ditto.
2953 (i386_skip_noop): Ditto.
2954 (i386_analyze_frame_setup): Ditto.
2955 (i386_analyze_register_saves): Ditto.
2956 (i386_skip_prologue): Ditto.
2957 (i386_skip_main_prologue): Ditto.
2958
13b3fd9b
MS
2959 * target.c (read_whatever_is_readable): Fix memory leak.
2960
d3f323f3
MS
2961 * i386-tdep.c (i386_process_record): Document fall through.
2962
421d5c74
JK
29632011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2964
2965 Fix DWARF-3+ DW_AT_accessibility default assumption.
2966 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2967 cu->header.version >= 3.
2968
63154eca
PA
29692011-03-08 Pedro Alves <pedro@codesourcery.com>
2970
2971 * remote.c (remote_check_symbols): Skip if the target has no
2972 execution.
2973
f1a507a1
JB
29742011-03-08 Joel Brobecker <brobecker@adacore.com>
2975
2976 * target.c (read_whatever_is_readable): Reformat comment,
2977 with a minor typo fix. Minor reformatting of the code.
2978
36073a92
YQ
29792011-03-08 Yao Qi <yao@codesourcery.com>
2980
2981 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2982 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2983 Use cached result instead of calling displaced_in_arm_mode again.
2984 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2985 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2986 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2987 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2988 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2989 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2990 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2991 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2992 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2993 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2994 (arm_catch_kernel_helper_return): Likewise.
2995 * gdb/arm-tdep.h : Update function declarations.
2996
d3f323f3 29972011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 2998
e0e40094
MS
2999 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3000
0b2381f5
MS
3001 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3002
0350914a
MS
3003 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3004
69feea6f
MS
3005 * elfread.c (elf_symtab_read): Stop memory leak.
3006
e6040cbd
MS
3007 * main.c (captured_main): Fix memory leak.
3008
052874e8
AS
30092011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3010
3011 * ada-lang.c (compare_names): Call is_name_suffix with string1
3012 instead of string2.
3013
b11896a5
TT
30142011-03-07 Tom Tromey <tromey@redhat.com>
3015
3016 * xcoffread.c (xcoff_sym_fns): Update.
3017 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3018 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3019 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3020 (symbol_file_add_with_addrs_or_offsets): Likewise.
3021 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3022 * somread.c (som_sym_fns): Update.
3023 * psymtab.h (require_partial_symbols): Declare.
3024 * psymtab.c (require_partial_symbols): New function.
3025 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3026 (ALL_OBJFILE_PSYMTABS): Undef.
3027 (ALL_PSYMTABS): Move from psympriv.h.
3028 (lookup_partial_symtab, find_pc_sect_psymtab)
3029 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3030 (find_last_source_symtab_from_partial)
3031 (forget_cached_source_info_partial)
3032 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3033 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3034 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3035 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3036 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3037 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3038 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3039 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3040 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3041 psymtabs.
3042 * mipsread.c (ecoff_sym_fns): Update.
3043 * machoread.c (macho_sym_fns): Update.
3044 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3045 (read_psyms): New function.
3046 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3047 (elf_sym_fns_lazy_psyms): New global.
3048 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3049 dwarf2_build_psymtabs.
3050 * dbxread.c (aout_sym_fns): Update.
3051 * coffread.c (coff_sym_fns): Update.
3052
fda326dd
TT
30532011-03-07 Tom Tromey <tromey@redhat.com>
3054
3055 * infrun.c (print_exited_reason): Include inferior id and pid in
3056 message.
3057
aeaec162
TT
30582011-03-07 Tom Tromey <tromey@redhat.com>
3059
3060 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3061 parameter.
3062 (target_has_execution_1): Update.
3063 (target_has_execution_current): Declare.
3064 (target_has_execution): Call target_has_execution_current.
3065 (default_child_has_execution): Update.
3066 * target.c (default_child_has_execution): Add 'the_ptid'
3067 parameter.
3068 (target_has_execution_1): Likewise.
3069 (target_has_execution_current): New function.
3070 (add_target): Update.
3071 (init_dummy_target): Update.
3072 * remote-m32r-sdi.c (m32r_has_execution): New function.
3073 (init_m32r_ops): Use it.
3074 * record.c (record_core_has_execution): Now static. Add
3075 'the_ptid' parameter.
3076 * inferior.c (have_live_inferiors): Don't save current thread.
3077 Use target_has_execution_1.
3078
08e14083
YQ
30792011-03-07 Yao Qi <yao@codesourcery.com>
3080
3081 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3082
c05d19c5
JB
30832011-03-07 Joel Brobecker <brobecker@adacore.com>
3084
3085 * elfread.c (elf_symtab_read): Minor reformatting.
3086
3e6ef9e4
JB
30872011-03-07 Joel Brobecker <brobecker@adacore.com>
3088
3089 * objc-lang.c (selectors_info): Minor reformatting.
3090
dbb8534f
JB
30912011-03-07 Joel Brobecker <brobecker@adacore.com>
3092
3093 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3094
dd70cc93
JB
30952011-03-07 Joel Brobecker <brobecker@adacore.com>
3096 Michael Snyder <msnyder@vmware.com>
3097
3098 * ada-valprint.c (ada_val_print_array): Move the declaration of
3099 "byte_order" and "elttype" inside the block where these variables
3100 are actually used. Remove some special handling for the case
3101 where "elttype" and "eltlen" are null. Replace by a comment
3102 and a couple of assertion checks.
3103
b27cf2b3
MS
31042011-03-05 Michael Snyder <msnyder@vmware.com>
3105
3106 * source.c (add_path): Replace semicolon at end of block.
3107 * dwarf2expr.c (execute_stack_op): Ditto.
3108
5387a0c6
MF
31092011-03-05 Mike Frysinger <vapier@gentoo.org>
3110
3111 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3112 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3113 (bfin-*-*): Likewise.
3114
e3aa49af
MS
31152011-03-05 Michael Snyder <msnyder@vmware.com>
3116
82ae4854
MS
3117 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3118 * mdebugread.c (parse_symbol): Ditto.
3119 * parse.c (parse_exp_in_context): Ditto.
3120 * source.c (add_path): Ditto.
3121 * utils.c (gnu_debuglink_crc32): Ditto.
3122 * varobj.c (variable_language): Ditto.
3123
e3aa49af
MS
3124 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3125
154f592e
MS
31262011-03-04 Michael Snyder <msnyder@vmware.com>
3127
da3ecdc6
MS
3128 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3129
9cc89665
MS
3130 * symfile.c (simple_overlay_update): Check for null return value
3131 from lookup_minimal_symbol.
3132
154f592e
MS
3133 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3134
63ffa6ee
TJB
31352011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3136
3137 * eval.c (parse_and_eval_address_1): Remove function.
3138 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3139 instead of parse_and_eval_address_1.
3140 * value.h (parse_and_eval_address_1): Remove prototype.
3141
a17d146e
MS
31422011-03-04 Michael Snyder <msnyder@vmware.com>
3143
3144 * remote.c (putpkt_binary): Document that case stmt falls through.
3145
1a6a67de
TJB
31462011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3147
3148 * breakpointc (print_it_typical): Move NULL check from here...
3149 (print_bp_stop_message): ... to here.
3150
488919c4
MS
31512011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3152
3153 * breakpoint.c (enable_command): Use break instead of continue,
3154 and fill in a missing break.
3155 (disable_command): Ditto.
3156
1e182ce8
UW
31572011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3158
3159 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3160 (terminal_save_ours): Remove misleading comment.
3161 (inflow_inferior_data_cleanup): Free ttystate.
3162 (inflow_inferior_exit): Likewise.
3163 (copy_terminal_info): Copy ttystate.
3164
3165 * serial.c (serial_copy_tty_state): New function.
3166 * serial.h (serial_copy_tty_state): Add prototype.
3167 (struct serial_ops): Add copy_tty_state callback.
3168 * ser-base.c (ser_base_copy_tty_state): New function.
3169 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3170 * ser-go32.c (dos_copy_tty_state): New function.
3171 (dos_ops): Install copy_tty_state callback.
3172 * ser-mingw.c (_initialize_ser_windows): Likewise.
3173 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3174 * ser-unix.c (hardwire_copy_tty_state): New function.
3175 (_initialize_ser_hardwire): Install it.
3176
b2c5f112
MS
31772011-03-04 Michael Snyder <msnyder@vmware.com>
3178
2abae994
MS
3179 * breakpoint.c (create_breakpoint): Add missing break statement.
3180
7f5936f9
MS
3181 Reverting this patch:
3182 * infcall.c (call_function_by_hand): Add break statements for lint.
3183
b2c5f112
MS
3184 Reverting this patch:
3185 * cli/cli-script.c (script_from_file): Add break for lint.
3186
42b1321c
MS
31872011-03-04 Michael Snyder <msnyder@vmware.com>
3188
3189 * solib.c (reload_shared_libraries_1): Close memory leak.
3190
3e2a0cee
TT
31912011-03-03 Tom Tromey <tromey@redhat.com>
3192
3193 PR gdb/12538:
3194 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3195 DW_STRING is NULL.
3196
58397cb7
MS
31972011-03-03 Michael Snyder <msnyder@vmware.com>
3198
2e3fd767
MS
3199 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3200 fields of struct 'st' to zero.
3201
58397cb7
MS
3202 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3203 sal.pspace before calling set_current_source_symtab_and_line.
3204
ced54c8f
YQ
32052011-03-03 Yao Qi <yao@codesourcery.com>
3206
3207 * Makefile.in (configure-common): Remove. Let Makefile
3208 in dir common to rebuild itself.
3209 (common/Makefile): Likewise.
3210
3351ea09
JB
32112011-03-03 Joel Brobecker <brobecker@adacore.com>
3212
3213 * utils.c (parse_escape): Add i18n markup in error message.
3214
bf9f652a
YQ
32152011-03-03 Yao Qi <yao@codesourcery.com>
3216
3217 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3218 ARM_PC_REGNUM.
3219 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3220 (displaced_write_reg, displaced_read_reg): Likewise.
3221 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3222 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3223 (cleanup_branch): Replace magic number 14 and 15 with
3224 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3225
d42de051
MS
32262011-03-02 Michael Snyder <msnyder@vmware.com>
3227
240f9570
MS
3228 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3229
10dd8b54
MS
3230 * cli/cli-script.c (script_from_file): Add break for lint.
3231
b98bd911
MS
3232 * mdebugread.c (parse_partial_symbols): Fix indent.
3233
3494b66d
MS
3234 * target-descriptions.c (tdesc_gdb_type): No need to call
3235 xstrdup, callee saves a copy.
3236
daac021a
MS
3237 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3238
c38d16a7
MS
3239 * infcall.c (call_function_by_hand): Add break statements for lint.
3240
905b671b
MS
3241 * utils.c (parse_escape): Escape the escape char.
3242
f2eb0bc8 3243 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
3244 PyList_Append fails.
3245 (gdbpy_inferiors): Error out if build_inferior_list fails.
3246
8c6a60d1
MS
3247 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3248 a function call.
3249
d42de051
MS
3250 * record.c (record_restore): Move printf to before error return.
3251
4db71c0b
YQ
32522011-03-02 Yao Qi <yao@codesourcery.com>
3253
3254 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3255 is_thumb and insn_size.
3256 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3257 on both ARM and Thumb mode.
3258 (arm_process_displaced_insn): Set is_thumb and insn_size.
3259 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3260 (arm_displaced_step_fixup): Likewise.
3261
a9dc8dcc
MS
32622011-03-01 Michael Snyder <msnyder@vmware.com>
3263
53624a93
MS
3264 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3265
77766669
MS
3266 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3267
62d5b8da
MS
3268 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3269
5e9e105f
MS
3270 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3271
dc19db01
MS
3272 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3273 with xmalloc.
3274
5ce64950
MS
3275 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3276 which shadows function parameter.
3277
a0aa2878
MS
3278 * tracepoint.c (create_tsv_from_upload): Superfluous call
3279 to xstrdup. Callee already calls xstrdup.
3280
e325fb69
MS
3281 * linespec.c (decode_line_1): Remove unnecessary null check.
3282
21cbba77
MS
3283 * tracepoint.c (scope_info): Fix mem leak, remove underused
3284 variable.
3285
63360adc
MS
3286 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3287 superfluous null check.
3288
18ea20ac 3289 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 3290 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 3291
d014929c
MS
3292 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3293
6e9130cf
MS
3294 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3295 be null.
3296
5f01dbc0
MS
3297 * linespec.c (decode_line_1): Check for null before dereference.
3298
d684ab85
MS
3299 * reverse.c (record_restore): Move null-check to before pointer
3300 dereference.
3301
bfffb7e3
MS
3302 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3303
a9dc8dcc
MS
3304 * objc-lang.c (selectors_info): Add explanitory comment.
3305 (classes_info): Ditto.
3306
478fd957
UW
33072011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3308
3309 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3310 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3311 versions of the trampoline. Handle Thumb vs. ARM addresses.
3312 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3313 (arm_linux_init_abi): Install it.
3314 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3315 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3316
0480cefa
MS
33172011-02-28 Michael Snyder <msnyder@vmware.com>
3318
ac50ab3b
MS
3319 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3320 a little bigger, to avoid possibility of an overflow.
3321
f63fbe86
MS
3322 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3323 buffers a little bigger, to avoid possibility of an overflow.
3324
9e91a352
MS
3325 * coffread.c (coff_getfilename): Add check to avoid overflow.
3326
f2eb0bc8 3327 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
3328 avoid overflow.
3329 (classes_info): Error out on too long REGEXP.
3330
098ab512
MS
3331 * infrun.c (handle_inferior_event): Remove unused function call.
3332
bcbd1de9
MS
3333 * fork-child.c (fork_inferior): Remove ifdef'd code and
3334 unused variable.
3335
2e456570
MS
3336 * linux-thread-db.c (attach_thread): Discard unused value.
3337
14571dad
MS
3338 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3339
a9cbf802
MS
3340 * remote.c (remote_get_noisy_reply): Discard unused value.
3341 (remote_vcont_resume): Ditto.
3342 (remote_stop_ns): Ditto.
3343
5715d26e
MS
3344 * linespec.c (decode_objc): Delete unused variable.
3345
4a9bca80
MS
3346 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3347
f47fb265
MS
3348 * dwarf2read.c (add_partial_symbol): Discard unused values.
3349 (read_base_type): Delete unused variable.
3350
e81cff30
MS
3351 * dbxread.c (read_dbx_symtab): Discard unused value.
3352
262acaeb
MS
3353 * eval.c (evaluate_subexp_standard): Delete unused variable,
3354 and discard unused values.
3355
df983543
MS
3356 * infcmd.c (_initialize_infcmd): Discard unused values.
3357
89acf84d
MS
3358 * stabsread.c (rs6000_builtin_type): Missing break statement.
3359
ab8b8aca
MS
3360 * dbxread.c (process_one_symbol): Discard unused value.
3361
6b4511ab
MS
3362 * coffread.c (coff_end_symtab): Delete unused variable.
3363
e8e80198
MS
3364 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3365 (dwarf2_add_typedef): Delete unused variable.
3366 (read_namespace): Ditto.
3367 (dwarf_decode_macros): Ditto.
3368
976aa66e
MS
3369 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3370
5b92b49f
MS
3371 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3372
91e8df85
MS
3373 * p-valprint.c (pascal_val_print): Discard unused value.
3374
899500d6
MS
3375 * utils.c (nquery): Call va_end before return;
3376 (yquery): Ditto.
3377 (query): Ditto.
3378
0480cefa
MS
3379 * proc-service.c (ps_plog): Call va_end before return.
3380
fb6a3ed3
TT
33812011-02-28 Tom Tromey <tromey@redhat.com>
3382
3383 * python/python.c (gdbpy_value_cst): New global.
3384 (_initialize_python): Initialize it.
3385 * python/python-internal.h (gdbpy_value_cst): Declare.
3386 * python/py-value.c (convert_value_from_python): Use
3387 gdbpy_value_cst.
3388
c05202a1
MS
33892011-02-28 Michael Snyder <msnyder@vmware.com>
3390
e463f587
MS
3391 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3392
c38eea1a
MS
3393 * breakpoint.c (catch_syscall_completer): Free malloced list.
3394
3ef09ab5
MS
3395 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3396
8f9a01ee
MS
3397 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3398 (lval_func_check_synthetic_pointer): Ditto.
3399 (lval_func_free_closure): Fix use-after-free.
c05202a1 3400
477d0d57
TT
34012011-02-28 Tom Tromey <tromey@redhat.com>
3402
3403 * psymtab.c (expand_partial_symbol_tables): Use
3404 ALL_OBJFILE_PSYMTABS.
3405
20937029
JK
34062011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3407
3408 * objc-lang.c (selectors_info): Error on too long REGEXP.
3409
907b7f4f
MS
34102011-02-28 Michael Snyder <msnyder@vmware.com>
3411
92e96192
MS
3412 * python/py-param.c (set_parameter_value): Add missing
3413 break statement.
3414
907b7f4f
MS
3415 * linux-record.c (record_linux_system_call): Add missing
3416 break statement.
3417
12c5a436
UW
34182011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3419
3420 * breakpoint.c (print_one_breakpoint_location): Remove unused
3421 argument PRINT_ADDRESS_BITS. Update callers.
3422 (print_one_breakpoint): Likewise.
3423
170b53b2
UW
34242011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3425
3426 * breakpoint.c (wrap_indent_at_field): New function.
3427 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3428 Allocate ui_stream locally instead of using STB argument.
3429 (print_one_breakpoint_location): Update call.
3430 * ui-out.c (ui_out_query_field): New function.
3431 * ui-out.h (ui_out_query_field): Add prototype.
3432
8ab1f94d
JB
34332011-02-28 Joel Brobecker <brobecker@adacore.com>
3434
3435 From Michael Snyder <msnyder@vmware.com>
3436 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3437
7d488639
MS
34382011-02-27 Michael Snyder <msnyder@vmware.com>
3439
ae179fba
MS
3440 * objc-lang.c (selectors_info): Prevent string overrun.
3441
086dbf66
MS
3442 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3443 error in strncpy.
3444
f2eb0bc8 3445 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
3446 outer scope.
3447
7d488639
MS
3448 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3449 param with a local variable of the same name.
3450
3bd0f5ef
MS
34512011-02-27 Michael Snyder <msnyder@vmware.com>
3452
3453 * value.c (value_from_history_ref): New function.
3454 * value.h (value_from_history_ref): Export.
3455 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3456 to parse value history references.
3457 * cli/cli-utils.h (get_number_trailer): Update comment.
3458
34592011-02-27 Michael Snyder <msnyder@vmware.com>
3460
3461 * inferior.c (detach_inferior_command): Use get_number_or_range.
3462 (kill_inferior_command): Ditto.
3463 (remove_inferior_command): Ditto.
3464 (initialize_inferiors): Make command names plural.
3465 Update help strings.
3466
766062f6
MS
34672011-02-27 Michael Snyder <msnyder@vmware.com>
3468
3469 * darwin-nat-info.c: Fix comment typo.
3470 * dwarf2expr.h: Ditto.
3471 * fbsd-nat.c: Ditto.
3472 * fbsd-nat.h: Ditto.
3473 * frame-unwind.h: Ditto.
3474 * frame.h: Ditto.
3475 * hppa-hpux-tdep.c: Ditto.
3476 * i386-linux-nat.c: Ditto.
3477 * linux-nat.c: Ditto.
3478 * nbsd-nat.c: Ditto.
3479 * nbsd-nat.h: Ditto.
3480 * ppc-linux-tdep.c: Ditto.
3481 * serial.c: Ditto.
3482 * ui-file.h: Ditto.
3483 * tui/tui-winsource.c: Ditto.
3484
f2c4ead5
MS
34852011-02-26 Michael Snyder <msnyder@vmware.com>
3486
86b887df
MS
3487 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3488
66fd3b1e
MS
3489 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3490
8c814cdd
MS
3491 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3492 with a local variable of the same name.
3493
6d5e094a 3494 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 3495 param with a local variable of the same name.
6d5e094a 3496 (i387_supply_xsave): Ditto.
e5b3d7d6 3497
5eee517d
MS
3498 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3499 that it does not shadow a function parameter.
3500
8fbf6b93
MS
3501 * i386-nat.c (i386_length_and_rw_bits): Document that case
3502 statement is meant to fall through.
3503
cb969d61
MS
3504 * expprint.c (dump_subexp_body_standard): Document that case
3505 statement is meant to fall through.
3506
f2c4ead5
MS
3507 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3508 dead if statement. Condition can't be false.
3509
b021a221
MS
35102011-02-25 Michael Snyder <msnyder@vmware.com>
3511
3512 * arm-tdep.c: Fix typos in comments.
3513 * bsd-uthread.c: Ditto.
3514 * completer.c: Ditto.
3515 * corelow.c: Ditto.
3516 * cp-namespace.c: Ditto.
3517 * cp-support.c: Ditto.
3518 * cris-tdep.c: Ditto.
3519 * dbxread.c: Ditto.
3520 * dwarf2read.c: Ditto.
3521 * frame.h: Ditto.
3522 * gdbtypes.h: Ditto.
3523 * inferior.h: Ditto.
3524 * mdebugread.c: Ditto.
3525 * mips-tdep.c: Ditto.
3526 * ppc-linux-nat.c: Ditto.
3527 * ppc-linux-tdep.c: Ditto.
3528 * printcmd.c: Ditto.
3529 * sol-thread.c: Ditto.
3530 * solib-frv.c: Ditto.
3531 * solist.h: Ditto.
3532 * sparc64-tdep.c: Ditto.
3533 * spu-tdep.c: Ditto.
3534 * stabsread.c: Ditto.
3535 * symfile.c: Ditto.
3536 * valops.c: Ditto.
3537 * varobj.c: Ditto.
3538 * vax-nat.c: Ditto.
3539 * python/py-block.c: Ditto.
3540 * python/py-symbol.c: Ditto.
3541 * python/py-symtab.c: Ditto.
3542 * python/py-value.c: Ditto.
3543 * tui/tui-win.c: Ditto.
3544
c82c0b55
MS
35452011-02-25 Michael Snyder <msnyder@vmware.com>
3546
3547 * inferior.c (print_inferior): Accept a string instead of an int
3548 for requested_inferiors, and use get_number_or_range to parse it.
3549 (info_inferiors_command): Pass args string to print_inferior.
3550 (initialize_inferiors): Change help string for info inferiors.
3551 * inferior.h (print_inferior): Export prototype change.
3552
ee00cd23
TT
35532011-02-25 Tom Tromey <tromey@redhat.com>
3554
3555 * common/ax.def (invalid2): Set to 0x31.
3556
0502ed8c
JK
35572011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3558
3559 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3560 L and plongest.
3561 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3562 use L and plongest.
3563 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3564
2c9de912
MS
35652011-02-24 Michael Snyder <msnyder@vmware.com>
3566
3567 * Makefile.in (clean): Make clean should remove generated files
3568 observer.h and observer.inc.
3569
a04b0428
JB
35702011-02-24 Joel Brobecker <brobecker@adacore.com>
3571
3572 Revert the following patch (not approved yet):
3573 2011-02-21 Hui Zhu <teawater@gmail.com>
3574 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3575 * ax-gdb.c (gen_printf_expr_callback): New function.
3576 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3577 * ax-general.c (ax_memcpy): New function.
3578 (ax_print): Handle "printf".
3579 (ax_reqs): Ditto.
3580 * ax.h (ax_memcpy): Forward declare.
3581 * common/ax.def (invalid2): Removed.
3582 (printf): New entry.
3583 * printcmd.c (printcmd.h): New include.
3584 (string_printf): New function.
3585 (ui_printf): Removed.
3586 (printf_command): Remove static. Call string_printf.
3587 (eval_command): Call string_printf.
3588 * printcmd.h: New file.
3589 * tracepoint.c (validate_actionline,
3590 encode_actions_1): handle printf_command.
3591
2b52013f
TT
35922011-02-23 Tom Tromey <tromey@redhat.com>
3593
3594 * ax-general.c (ax_pick): Add missing newline.
3595
e5a67952
MS
35962011-02-23 Michael Snyder <msnyder@vmware.com>
3597
3598 * breakpoint.c (breakpoint_1): Change first argument from an int
3599 to a char pointer, so that the function now accepts a list of
f2eb0bc8 3600 breakpoints rather than just one. Use new function
e5a67952
MS
3601 'number_is_in_list' to implement.
3602 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3603 (watchpoints_info): Ditto.
3604 (tracepoints_info): Ditto.
3605 (maintenance_info_breakpoints): Ditto.
3606 (_initialize_breakpoint): Update help strings to reflect the fact
3607 that these functions can now take more than one argument.
3608 * cli/cli-utils.c (number_is_in_list): New function.
3609 * cli/cli-utils.h (number_is_in_list): Export.
3610
36112011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
3612
3613 * memattr.c (mem_enable_command): Use get_number_or_range.
3614 (mem_disable_command): Ditto.
3615 (mem_delete_command): Ditto.
3616 (_initialize_mem): Tweak usage message to reflect multiple
3617 arguments.
3618
6e6fbe60
DE
36192011-02-22 Doug Evans <dje@google.com>
3620
3621 Add gdb.lookup_global_symbol python function.
3622 * NEWS: Add entry.
3623 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3624 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3625 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3626
79b97fa8
TT
36272011-02-22 Tom Tromey <tromey@redhat.com>
3628
3629 * language.c (language_class_name_from_physname): Rename
3630 'curr_language' argument to 'lang'; use in body.
3631
298f437a
MS
36322011-02-22 Michael Snyder <msnyder@vmware.com>
3633
3634 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3635
b7ea3126
PA
36362011-02-22 Pedro Alves <pedro@codesourcery.com>
3637
3638 * frame-unwind.h: Fix comment to mention the this frame, not the
3639 next.
3640
58ee6d60
TT
36412011-02-22 Tom Tromey <tromey@redhat.com>
3642
3643 * symfile.c (auto_solib_limit): Remove.
3644 * symfile.h (auto_solib_limit): Remove.
3645
36238dbc
JB
36462011-02-22 Joel Brobecker <brobecker@adacore.com>
3647
3648 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3649
aea5b279
MS
36502011-02-21 Michael Snyder <msnyder@vmware.com>
3651
3652 * gdbthread.h (print_thread_info): Change prototype.
3653 * thread.c (print_thread_info): Accept char* instead of int for
3654 requested_threads argument. Use new function number_is_in_list
3655 to determine which threads to list.
3656 (info_threads_command): Pass char* to print_thread_info.
3657 * cli/cli-utils.c (number_is_in_list): New function.
3658 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 3659 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
3660 print_thread_info.
3661 (print_one_inferior): Ditto.
3662 (mi_cmd_list_thread_groups): Ditto.
3663
8caa75ee
JK
36642011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3665
3666 * common/Makefile.in (CFLAGS): New.
3667 (COMPILE): Add $(CFLAGS).
3668
ea666128
TT
36692011-02-21 Tom Tromey <tromey@redhat.com>
3670
3671 * breakpoint.c (catch_syscall_command_1): Fix typo.
3672
e9cafbcc
TT
36732011-02-21 Tom Tromey <tromey@redhat.com>
3674
3675 * reverse.c: Include cli-utils.h.
3676 * printcmd.c: Include cli-utils.h.
3677 (string_printf): Use skip_spaces.
3678 * cli/cli-utils.h: New file.
3679 * cli/cli-utils.c: New file.
3680 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3681 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3682 * breakpoint.h (get_number, get_number_or_range): Move to
3683 cli-utils.h.
3684 * breakpoint.c: Include cli-utils.h.
3685 (get_number_trailer, get_number, get_number_or_range)
3686 (ep_skip_leading_whitespace): Move to cli-utils.c.
3687 (create_breakpoint_sal, find_condition_and_thread)
3688 (decode_static_tracepoint_spec, watch_command_1)
3689 (watch_maybe_just_location, ep_parse_optional_if_clause)
3690 (catch_fork_command_1, catch_exec_command_1)
3691 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3692 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3693 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3694 (HFILES_NO_SRCDIR): Add cli-utils.h.
3695 (cli-utils.o): New target.
3696
f67fd822
PM
36972011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3698
3699 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3700 before calling discard_all_inferiors.
3701
c9def01d
UW
37022011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3703
3704 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3705 (struct builtin_opencl_type): Remove.
3706 (builtin_opencl_type): Change return type to "struct type **".
3707 (lookup_opencl_vector_type): Update caller.
3708 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3709 (build_opencl_types): Install plain array of "struct type *"
3710 instead of "struct builtin_opencl_type".
3711
e3039479
UW
37122011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3713 Ulrich Weigand <uweigand@de.ibm.com>
3714
3715 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3716 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3717 (struct arm_linux_hwbp_cap): New type.
3718 (arm_linux_get_hwbp_cap): New function.
3719 (arm_linux_get_hw_breakpoint_count): Likewise.
3720 (arm_linux_get_hw_watchpoint_count): Likewise.
3721 (arm_linux_can_use_hw_breakpoint): Likewise.
3722 (arm_hwbp_type): New type.
3723 (arm_hwbp_control_t): Likewise.
3724 (struct arm_linux_hw_breakpoint): Likewise.
3725 (struct arm_linux_thread_points): Likewise.
3726 (arm_threads): New global variable.
3727 (arm_linux_find_breakpoints_by_tid): New function.
3728 (arm_hwbp_control_initialize): Likewise.
3729 (arm_hwbp_control_is_enabled): Likewise.
3730 (arm_hwbp_control_disable): Likewise.
3731 (arm_linux_hw_breakpoint_initialize): Likewise.
3732 (arm_linux_get_hwbp_type): Likewise.
3733 (arm_linux_hw_watchpoint_initialize): Likewise.
3734 (arm_linux_hw_breakpoint_equal): Likewise.
3735 (arm_linux_insert_hw_breakpoint1): Likewise.
3736 (arm_linux_remove_hw_breakpoint1): Likewise.
3737 (arm_linux_insert_hw_breakpoint): Likewise.
3738 (arm_linux_remove_hw_breakpoint): Likewise.
3739 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3740 (arm_linux_insert_watchpoint): Likewise.
3741 (arm_linux_remove_watchpoint): Likewise.
3742 (arm_linux_stopped_data_address): Likewise.
3743 (arm_linux_stopped_by_watchpoint): Likewise.
3744 (arm_linux_watchpoint_addr_within_range): Likewise.
3745 (arm_linux_new_thread): Likewise.
3746 (arm_linux_thread_exit): Likewise.
3747 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3748 related target callbacks. Register arm_linux_new_thread and
3749 arm_linux_thread_exit.
3750 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3751 * arm-tdep.c (arm_pc_is_thumb): Make global.
3752 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3753
b5db5dfc
UW
37542011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3755
3756 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3757 per-frame locations while within a function epilogue.
3758
e25b2cfa
PM
37592011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3760
3761 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3762 to GNU coding standards.
3763
4af53f97
PM
37642011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3765
3766 Allow use of mingw native on Windows 95 OS.
e25b2cfa 3767 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
3768 (ser_windows_close): Only call CancelIo if function exists.
3769 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3770 to check for existence of CancelIo function in kernel32 DLL.
3771
d0e92d82
HZ
37722011-02-21 Hui Zhu <teawater@gmail.com>
3773
3774 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3775 * ax-gdb.c (gen_printf_expr_callback): New function.
3776 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3777 * ax-general.c (ax_memcpy): New function.
3778 (ax_print): Handle "printf".
3779 (ax_reqs): Ditto.
3780 * ax.h (ax_memcpy): Forward declare.
3781 * common/ax.def (invalid2): Removed.
3782 (printf): New entry.
3783 * printcmd.c (printcmd.h): New include.
3784 (string_printf): New function.
3785 (ui_printf): Removed.
3786 (printf_command): Remove static. Call string_printf.
3787 (eval_command): Call string_printf.
3788 * printcmd.h: New file.
3789 * tracepoint.c (validate_actionline,
3790 encode_actions_1): handle printf_command.
3791
7d357efd
MS
37922011-02-19 Michael Snyder <msnyder@vmware.com>
3793
3794 * reverse.c (delete_one_bookmark): Argument is now bookmark
3795 id rather than pointer to bookmark struct.
3796 (delete_bookmark_command): Use get_number_or_range.
3797 (goto_bookmark_command): Parse with get_number instead of strtoul.
3798 (bookmark_1): New function. Print info for one bookmark.
3799 (bookmarks_info): Use get_number_or_range and bookmark_1.
3800
7a45ebd7
MS
38012011-02-18 Michael Snyder <msnyder@vmware.com>
3802
f2eb0bc8 3803 * thread.c (info_threads_command): Re-implement using
7a45ebd7 3804 get_number_or_range.
65ebfb52 3805 (thread_apply_command): Ditto.
7a45ebd7 3806
94d5e490
TT
38072011-02-18 Tom Tromey <tromey@redhat.com>
3808
3809 * common/ax.def: New file.
3810 * ax.h (enum agent_op): Use ax.def.
3811 * ax-general.c (aop_map): Use ax.def.
3812
c7f96d2b
TT
38132011-02-18 Tom Tromey <tromey@redhat.com>
3814
3815 * ax-general.c (aop_map): Add pick and rot.
3816 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3817 <DW_OP_rot>: Implement.
3818 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3819 (ax_pick): Declare.
3820 * ax-general.c (ax_pick): New function.
3821
66694b75
TT
38222011-02-18 Tom Tromey <tromey@redhat.com>
3823
3824 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3825
eeaafae2
JK
38262011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3827 Tom Tromey <tromey@redhat.com>
3828
3829 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3830 make_symbol_overload_list_block with NULL BLOCK.
3831 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3832
3c3fe74c
PA
38332011-02-18 Pedro Alves <pedro@codesourcery.com>
3834
3835 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3836 * breakpoint.h (get_number_or_range): Declare.
3837 * printcmd.c (ALL_DISPLAYS): Declare.
3838 (delete_display): Reimplement taking a display pointer.
3839 (undisplay_command): Accept a range of displays to delete, using
3840 get_number_or_range.
3841
13163d80
PM
38422011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3843
3844 * c-valprint.c (c_val_print): Add embedded_offset to address
3845 for arrays of unspecified length.
3846 * p-valprint.c (pascal_val_print): Likewise.
3847
b434a28f
YQ
38482011-02-18 Yao Qi <yao@codesourcery.com>
3849
3850 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3851 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3852 (thumb_process_displaced_insn): New.
3853 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3854 call to arm_process_displaced_insn.
3855 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3856
9f6f94ff
TT
38572011-02-17 Tom Tromey <tromey@redhat.com>
3858
3859 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3860 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3861 compile_dwarf_to_ax. No longer static. Call
3862 dwarf2_compile_cfa_to_ax.
3863 (locexpr_tracepoint_var_ref): Update.
3864 (loclist_tracepoint_var_ref): Update.
3865 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3866 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3867 argument; add 'gdbarch' and 'pc'.
3868 (dwarf2_compile_cfa_to_ax): New function.
3869 (dwarf2_frame_cache): Update.
3870
e67ad678
JB
38712011-02-17 Joel Brobecker <brobecker@adacore.com>
3872
3873 * ada-lang.c (ada_type_of_array): Fix the size of the array
3874 in the case of an unconstrained packed array.
3875
946ebb0d
YQ
38762011-02-17 Yao Qi <yao@codesourcery.com>
3877
3878 * common/Makefile.in: Add more targets for make.
3879
1ba1b353
TT
38802011-02-16 Tom Tromey <tromey@redhat.com>
3881
3882 * dwarf2loc.c (unimplemented): Fix typo.
3883
b1bfef65
TT
38842011-02-16 Tom Tromey <tromey@redhat.com>
3885
3886 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3887 (compile_dwarf_to_ax) <default>: Use unimplemented.
3888 <DW_OP_deref>: Update.
3889 (disassemble_dwarf_expression): Update.
3890 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3891 (decode_locdesc): Update.
3892 * dwarf2expr.h (dwarf_stack_op_name): Update.
3893
5f1e6f19
TT
38942011-02-16 Tom Tromey <tromey@redhat.com>
3895
3896 * ax.h (struct aop_map) <name>: Now const.
3897
a0c78a73
PA
38982011-02-16 Tom Tromey <tromey@redhat.com>
3899
3900 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3901 than axs_rvalue.
3902
946ebb0d 39032011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
3904
3905 * infrun.c (get_displaced_step_closure_by_addr): New.
3906 * inferior.h: Declare it.
3907 * arm-tdep.c: (arm_pc_is_thumb): Call
3908 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3909 returns non-NULL.
3910
08807d5a
PA
39112011-02-16 Pedro Alves <pedro@codesourcery.com>
3912 Jan Kratochvil <jan.kratochvil@redhat.com>
3913
3914 gdb/
3915 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3916
29976f3f
PA
39172011-02-16 Pedro Alves <pedro@codesourcery.com>
3918 Jan Kratochvil <jan.kratochvil@redhat.com>
3919
3920 * value.c (value_contents_copy_raw): Extend describing comment.
3921 Assert that the destination contents we're overwriting are wholly
3922 available.
fb68ae73 3923 (value_contents_copy): Extend describing comment.
29976f3f 3924
cd24cfaa
PA
39252011-02-16 Pedro Alves <pedro@codesourcery.com>
3926 Jan Kratochvil <jan.kratochvil@redhat.com>
3927
3928 * value.c (value_available_contents_eq): Remove redundant local
3929 variables. Fix available contents comparision.
3930 * value.h (value_available_contents_eq): Extend describing
3931 comment.
3932
60bbf338
YQ
39332011-02-16 Yao Qi <yao@codesourcery.com>
3934
3935 * thread.c (info_threads_command): Add missing i18n markup and remove
3936 trailing newline.
3937
17450429
PP
39382011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3939
3940 * breakpoint.c (longjmp_names): New variable.
3941 (struct breakpoint_objfile_data): New type.
3942 (breakpoint_objfile_key): New variable.
3943 (msym_not_found): New variable.
3944 (msym_not_found_p): New predicate.
3945 (get_breakpoint_objfile_data): New function.
3946 (create_overlay_event_breakpoint): Check per-objfile cache for
3947 symbols first.
3948 (create_longjmp_master_breakpoint): Likewise.
3949 (create_std_terminate_master_breakpoint): Likewise.
3950 (create_exception_master_breakpoint): Likewise.
3951 (_initialize_breakpoint): Register per-objfile data key.
3952
af02033e
PP
39532011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3954
3955 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3956 parameter value.
3957 (create_longjmp_master_breakpoint): Loop over longjmp names.
3958 (create_std_terminate_master_breakpoint): Const-propagate parameter
3959 value.
3960 (update_breakpoints_after_exec): Adjust.
3961 (breakpoint_re_set): Adjust.
3962
60f98dde
MS
39632011-02-15 Michael Snyder <msnyder@vmware.com>
3964
cdf99611
MS
3965 * thread.c (info_threads_command): Process arg as thread id,
3966 or list of thread ids.
3967 (thread_find_command): New command.
3968 (_initialize_thread): Document argument for info threads.
3969 Document 'thread find' command.
3970 * NEWS: Document new command "thread find".
60f98dde 3971
0feedb2c
JK
39722011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3973
3974 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3975 * aclocal.m4: Regenerated with aclocal-1.11.1.
3976 * common/configure: Regenerate with autoconf-2.64.
3977
648cd113
KW
39782011-02-15 Ken Werner <ken.werner@de.ibm.com>
3979
3980 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3981 bool data type to a size of one byte.
3982
5657161f
PA
39832011-02-15 Pedro Alves <pedro@codesourcery.com>
3984 Jan Kratochvil <jan.kratochvil@redhat.com>
3985
3986 * target.c (memory_xfer_live_readonly_partial): Document where to
3987 look for interface description.
3988
494e194e
YQ
39892011-02-15 Yao Qi <yao@codesourcery.com>
3990
3991 PR tdep/12352
3992 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3993 order to store PC value on stack instead of text section.
3994
d9492458
TJB
39952011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3996
3997 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3998 the EFP register set size.
3999 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4000 data from the VMX register.
4001 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4002 and write data from/to the VMX register.
4003
cdf99611
MS
40042011-02-14 Michael Snyder <msnyder@vmware.com>
4005
4006 * command.h (enum command_class): New class 'no_set_class', for
4007 "show" commands without a corresponding "set" command.
4008 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4009 * copying.c (_initialize_copying): Ditto for "show copying" and
4010 "show warranty".
4011 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4012 "show version".
4013 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4014 which there is no corresponding "set" command (eg. "show copying").
4015
424447ee
PA
40162011-02-14 Pedro Alves <pedro@codesourcery.com>
4017 Jan Kratochvil <jan.kratochvil@redhat.com>
4018
4019 * exec.c (section_table_available_memory): Change `len' parameter
4020 type to ULONGEST.
4021 * exec.h (section_table_available_memory): Ditto.
4022 * value.h (read_value_memory): Rename the `offset' parameter to
4023 `embedded_offset'.
4024
c0f61f9c 40252011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 4026 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
4027
4028 * memrange.c (compare_mem_ranges): Mention sort order in
4029 describing comment.
4030 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4031 * tracepoint.c (traceframe_available_memory): Extend comment to
4032 mention what happens to RESULT when the target does not support
4033 the query.
4034
6bfc80c7
PA
40352011-02-14 Pedro Alves <pedro@codesourcery.com>
4036 Jan Kratochvil <jan.kratochvil@redhat.com>
4037
4038 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4039 range.
4040
e7303042
PA
40412011-02-14 Pedro Alves <pedro@codesourcery.com>
4042
4043 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4044 No longer handle NULL values.
4045
8af8e3bc
PA
40462011-02-14 Pedro Alves <pedro@codesourcery.com>
4047
4048 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4049 * value.c: Include "exceptions.h".
4050 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4051 generic error.
4052 * cp-abi.c: Include gdb_assert.h.
4053 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4054 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4055 errors.
4056 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4057 parameters. No longer returns -1 on error.
4058 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4059 `val' parameters.
4060 * cp-valprint.c: Include exceptions.h.
4061 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4062 the baseclass_offset. Handle unavailable base classes. Use
4063 val_print_invalid_address.
4064 * p-valprint.c: Include exceptions.h.
4065 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4066 when fetching the baseclass_offset. No longer expect
4067 baseclass_offset returning -1. Handle unavailable base classes.
4068 Use val_print_invalid_address.
4069 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4070 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4071 `embedded_offset' and `val' parameters. Adjust.
4072 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4073 parameter, and change its type to gdb_byte pointer. Add
4074 `embedded_offset' and `val' parameters. Adjust. No longer expect
4075 baseclass_offset returning -1.
4076 (value_dynamic_cast): Use value_contents_for_printing rather than
4077 value_contents. Adjust.
4078 (search_struct_field): No longer expect baseclass_offset returning
4079 -1.
4080 (search_struct_method): If reading memory from the target is
4081 necessary, wrap it in a new value to pass to baseclass_offset. No
4082 longer expect baseclass_offset returning -1.
4083 (find_method_list): No longer expect baseclass_offset returning
4084 -1. Use value_contents_for_printing rather than value_contents.
4085 * valprint.c (val_print_invalid_address): New function.
4086 * valprint.h (val_print_invalid_address): Declare.
4087 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4088 and `val' parameters. No longer expect baseclass_offset returning
4089 -1. Adjust.
4090 * gnu-v2-abi.c: Include "exceptions.h".
4091 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4092 parameters. Handle unavailable memory. Recurse through
4093 gnuv2_baseclass_offset directly, rather than through
4094 baseclass_offset. No longer returns -1 on not found, instead
4095 throw an error.
4096 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4097 `val' parameters. Adjust.
4098
1b28d0b3
PA
40992011-02-14 Pedro Alves <pedro@codesourcery.com>
4100
4101 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4102 almost but not quite adjacent.
4103
ec0a52e1
PA
41042011-02-14 Pedro Alves <pedro@codesourcery.com>
4105
4106 * value.h (value_entirely_available): Declare.
4107 * value.c (value_entirely_available): New function.
4108 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4109 real type if the pointer is unavailable.
4110
24e6bcee
PA
41112011-02-14 Pedro Alves <pedro@codesourcery.com>
4112
4113 * valops.c (value_repeat): Use read_value_memory instead of
4114 read_memory.
4115
39d37385
PA
41162011-02-14 Pedro Alves <pedro@codesourcery.com>
4117
4118 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4119 * value.c (value_contents_copy_raw, value_contents_copy): New
4120 functions.
4121 (value_primitive_field): Use value_contents_copy_raw instead of
4122 memcpy.
4123 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4124 memcpy.
4125 (value_array, value_slice): Ditto.
4126 * valarith.c (value_subscripted_rvalue): Use
4127 value_contents_copy_raw instead of memcpy.
4128
a3d34bf4
PA
41292011-02-14 Pedro Alves <pedro@codesourcery.com>
4130
4131 <unavailable> references.
4132
4133 * valops.c (get_value_at): Use value_from_contents_and_address,
4134 avoiding read_memory.
4135
9fc6d940
PA
41362011-02-14 Pedro Alves <pedro@codesourcery.com>
4137
4138 * c-valprint.c (c_val_print): Print a string with unavailable
4139 contents as an array.
4140
5467c6c8
PA
41412011-02-14 Pedro Alves <pedro@codesourcery.com>
4142
4143 * value.h (unpack_bits_as_long): Delete declaration.
4144 (unpack_value_bits_as_long): Declare.
4145 (unpack_value_field_as_long): Declare.
4146 (value_field_bitfield): Declare.
4147 * value.c (unpack_bits_as_long): Rename to...
4148 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4149 value parameters. Return the extracted result in a new output
4150 parameter. If the value contents are unavailable, return false,
4151 otherwise return true.
4152 (unpack_value_bits_as_long): New.
4153 (unpack_field_as_long): Rename to...
4154 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4155 Add embedded_offset and value parameters. Return the extracted
4156 result in a new output parameter. If the value contents are
4157 unavailable, return false, otherwise return true.
4158 (unpack_value_field_as_long): New.
4159 (unpack_field_as_long_1): New.
4160 (unpack_field_as_long): Reimplement as wrapper around
4161 unpack_value_field_as_long_1.
4162 (value_field_bitfield): New function.
4163 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4164 unpack_value_bits_as_long. Mark the value as unavailable, if it
4165 is unavailable.
4166 * jv-valprint.c (java_print_value_fields): Use
4167 value_field_bitfield.
4168 * p-valprint.c (pascal_object_print_value_fields): Use
4169 value_field_bitfield.
4170 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4171
3158c6ed
PA
41722011-02-14 Pedro Alves <pedro@codesourcery.com>
4173
4174 * value.c (get_internalvar_integer): Also return the int value of
4175 TYPE_CODE_INT INTERNALVAR_VALUE values.
4176 (set_internalvar): Don't special case TYPE_CODE_INT.
4177
9fbdca0d
PA
41782011-02-14 Pedro Alves <pedro@codesourcery.com>
4179
4180 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4181 INTERNALVAR_POINTER.
4182 <pointer>: Delete.
4183 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4184 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4185 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4186
c8c1c22f
PA
41872011-02-14 Pedro Alves <pedro@codesourcery.com>
4188
4189 * value.h (value_available_contents_eq): Declare.
4190 * value.c (find_first_range_overlap): New function.
4191 (value_available_contents_eq): New function.
4192 * valprint.c (val_print_array_elements): Use
4193 value_available_contents_eq.
4194 * ada-valprint.c (val_print_packed_array_elements): Use
4195 value_available_contents_eq.
4196 * jv-valprint.c (java_value_print): Use
4197 value_available_contents_eq.
4198
e6e4e701
PA
41992011-02-14 Pedro Alves <pedro@codesourcery.com>
4200
4201 * target.c (target_read_live_memory): New function.
4202 (memory_xfer_live_readonly_partial): New.
4203 (memory_xfer_partial): If reading from a traceframe, fallback to
4204 reading unavailable read-only memory from read-only regions of
4205 live target memory.
4206 * tracepoint.c (disconnect_tracing): Adjust.
4207 (set_current_traceframe): New, factored out from
4208 set_traceframe_number.
4209 (set_traceframe_number): Reimplement to only change the traceframe
4210 number on the GDB side.
4211 (do_restore_current_traceframe_cleanup): Adjust.
4212 (make_cleanup_restore_traceframe_number): New.
4213 (cur_traceframe_number): New global.
4214 (tfile_open): Set cur_traceframe_number to no traceframe.
4215 (set_tfile_traceframe): New function.
4216 (tfile_trace_find): If looking up a traceframe using any method
4217 other than by number, make sure the current tfile traceframe
4218 matches gdb's current traceframe. Update the current tfile
4219 traceframe if the lookup succeeded.
4220 (tfile_fetch_registers, tfile_xfer_partial)
4221 (tfile_get_trace_state_variable_value): Make sure the remote
4222 traceframe matches gdb's current traceframe.
4223 * remote.c (remote_traceframe_number): New global.
4224 (remote_open_1): Set it to -1.
4225 (set_remote_traceframe): New function.
4226 (remote_fetch_registers, remote_store_registers)
4227 (remote_xfer_memory, remote_xfer_partial)
4228 (remote_get_trace_state_variable_value): Make sure the remote
4229 traceframe matches gdb's current traceframe.
4230 (remote_trace_find): If looking up a traceframe using any method
4231 other than by number, make sure the current remote traceframe
4232 matches gdb's current traceframe. Update the current remote
4233 traceframe if the lookup succeeded.
4234 * infrun.c (fetch_inferior_event): Adjust.
4235 * tracepoint.h (set_current_traceframe): Declare.
4236 (get_traceframe_number, set_traceframe_number): Add describing
4237 comments.
4238
e6ca34fc
PA
42392011-02-14 Pedro Alves <pedro@codesourcery.com>
4240
4241 Mark pieces of values as unavailable if the corresponding memory
4242 is unavailable.
4243
4244 * valops.c: Include tracepoint.h.
4245 (value_fetch_lazy): Use read_value_memory.
4246 (read_value_memory): New.
4247 * value.h (read_value_memory): Declare.
4248 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4249 * exec.c (section_table_available_memory): New function.
4250 * exec.h (section_table_available_memory): Declare.
4251
2a7498d8
PA
42522011-02-14 Pedro Alves <pedro@codesourcery.com>
4253
4254 * Makefile.in (SFILES): Add memrange.c.
4255 (HFILES_NO_SRCDIR): Add memrange.h.
4256 (COMMON_OBS): Add memrange.o.
4257 * memrange.c: New file.
4258 * memrange.h: New file.
4259 * tracepoint.c: Include memrange.h.
4260 (struct mem_range): Delete.
4261 (mem_range_s): Delete.
4262 (traceframe_available_memory): New function.
4263 * tracepoint.h (traceframe_available_memory): Declare.
4264
b3b9301e
PA
42652011-02-14 Pedro Alves <pedro@codesourcery.com>
4266
4267 * target.h (struct traceframe_info): Forward declare.
4268 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4269 (struct target_ops) <to_traceframe_info>: New field.
4270 (target_traceframe_info): New.
4271 * target.c (update_current_target): Inherit and default
4272 to_traceframe_info.
4273 * remote.c (PACKET_qXfer_traceframe_info): New.
4274 (remote_protocol_features): Register qXfer:traceframe-info:read.
4275 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4276 (remote_traceframe_info): New.
4277 (init_remote_ops): Install it.
4278 (_initialize_remote): Install "set/show remote traceframe-info"
4279 commands.
4280 * tracepoint.h (parse_traceframe_info): Declare.
4281 * tracepoint.c (struct mem_range): New.
4282 (mem_range_s): New typedef.
4283 (struct traceframe_info): New.
4284 (traceframe_info): New global.
4285 (free_traceframe_info): New function.
4286 (clear_traceframe_info): New function.
4287 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4288 info.
4289 (build_traceframe_info): New function.
4290 (tfile_traceframe_info): New function.
4291 (init_tfile_ops): Install tfile_traceframe_info.
4292 (traceframe_info_start_memory, free_result): New functions.
4293 (memory_attributes, traceframe_info_elements): New globals.
4294 (parse_traceframe_info, get_traceframe_info): New functions.
4295 * features/traceframe-info.dtd: New file.
4296 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4297
4e07d55f
PA
42982011-02-14 Pedro Alves <pedro@codesourcery.com>
4299
4300 Base support for <unavailable> value contents.
4301
4e07d55f
PA
4302 * value.h (value_bytes_available): Declare.
4303 (mark_value_bytes_unavailable): Declare.
4304 * value.c (struct range): New struct.
4305 (range_s): New typedef.
4306 (ranges_overlap): New function.
4307 (range_lessthan): New function.
4308 (ranges_contain_p): New function.
4309 (struct value) <unavailable>: New field.
4310 (value_bytes_available): New function.
4311 (mark_value_bytes_unavailable): New function.
4312 (require_not_optimized_out): Constify parameter.
4313 (require_available): New function.
4314 (value_contents_all, value_contents): Require all bytes be
4315 available.
4316 (value_free): Free `unavailable'.
4317 (value_copy): Copy `unavailable'.
4318 * valprint.h (val_print_unavailable): Declare.
4319 * valprint.c (valprint_check_validity): Rename `offset' parameter
4320 to `embedded_offset'. If printing a scalar, check whether the
4321 value chunk is available.
4322 (val_print_unavailable): New.
4323 (val_print_scalar_formatted): Check whether the value is
4324 available.
4325 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4326 pretty-printing unavailable values.
4327
bc9a5551
JK
43282011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4331 * c-typeprint.c (c_type_print_args): Update the function comment. New
4332 variable param_type, initialize it. Remove const/volatile qualifiers
4333 for language_cplus and !show_artificial. Use param_type.
4334
93b55aa1
JK
43352011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4336
4337 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4338 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4339 * symtab.h (struct symtab) <next>: Comment extension.
4340
181d9476
YQ
43412011-02-12 Yao Qi <yao@codesourcery.com>
4342
4343 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4344
b708a5c7
JK
43452011-02-11 Yao Qi <yao@codesourcery.com>
4346
4347 * common/Makefile.in: Add copyright header.
4348
c5187ac6
PA
43492011-02-11 Pedro Alves <pedro@codesourcery.com>
4350
4351 * infrun.c (proceed): Move switching out and in of tfind mode from
4352 here ...
4353 (fetch_inferior_event): ... to here.
4354
4f3e6fb7
YQ
43552011-02-11 Yao Qi <yao@codesourcery.com>
4356
4357 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4358 libcommon.a.
4359 * configure.ac: Add common to sub dir.
4360 * configure: Regenerate.
4361
b708a5c7
JK
43622011-02-11 Yao Qi <yao@codesourcery.com>
4363
4364 Build libcommon.a.
4365
4366 * common/Makefile.in: New.
4367 * common/configure.ac: New.
4368 * common/aclocal.m4: New.
4369 * common/configure: Generate.
4370
2287cc7e
PA
43712011-02-10 Pedro Alves <pedro@codesourcery.com>
4372
4373 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4374 side of the parenthesis.
4375
4376 Merge from GCC:
4377 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 4378 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 4379
fd62cb89
MS
43802011-02-08 Michael Snyder <msnyder@vmware.com>
4381
4382 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4383
56d2815c
JK
43842011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4385
4386 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4387 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4388 psubd and paddd.
4389
4f7d61a8
JK
43902011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4391
4392 PR 12361.
4393 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4394 phsubsw.
4395 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4396 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4397
54fcddd0
UW
43982011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4399
4400 * dwarf2read.c (read_subroutine_type): Set special calling
4401 convention flag for functions compiled by IBM XL C for OpenCL.
4402 * ppc-sysv-tdep.c: Include "dwarf2.h"
4403 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4404 calling convention.
4405 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4406 IBM OpenCL vector types calling convention.
4407 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4408 (ppc_sysv_abi_broken_return_value): Likewise.
4409 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4410 types calling convention.
4411 (ppc64_sysv_abi_return_value): Likewise.
4412 * spu-tdep.c: Include "dwarf2.h"
4413 (spu_return_value): Implement IBM OpenCL vector types calling
4414 convention.
4415
d6dafb7c
UW
44162011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4417
4418 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4419 correct ABI for AltiVec vector arguments.
4420
32b72a42
PA
44212011-02-07 Pedro Alves <pedro@codesourcery.com>
4422
4423 * valprint.c (val_print): Extend comment.
4424 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4425 interface explanation to val_print.
4426 (ada_val_print_array): Adjust comment to current interface.
4427 (print_field_values): Adjust comment to current interface.
4428 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4429 explanation to val_print.
4430 * f-valprint.c (f_val_print): Ditto.
4431 * jv-valprint.c (java_val_print): Ditto.
4432 * m2-valprint.c (m2_val_print): Ditto.
4433 * p-valprint.c (pascal_val_print): Ditto.
4434
9998af43
TJB
44352011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4436
4437 * breakpoint.c (parse_breakpoint_sals): Fix description.
4438
505500db 44392011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 4440 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
4441
4442 * python/py-inferior.c (python_on_normal_stop): New function.
4443 (python_on_resume): New function.
4444 (python_inferior_exit): New function.
4445 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4446 inferior_exit observers.
4447 * python/py-evtregistry.c: New file.
4448 * python/py-threadevent.c : New file.
4449 * python/py-event.c: New file.
4450 * python/py-evts.c: New file.
4451 * python/py-continueevent.c: New file.
4452 * python/py-bpevent.c: New file.
4453 * python/py-signalevent.c: New file.
4454 * python/py-exetiedevent.c: New file.
4455 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4456 Move struct breakpoint_object from here...
4457 * python/python-internal.h: ... to here.
4458 * python/py-event.h: New file.
4459 * python/py-events.h: New file.
4460 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4461 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4462 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4463 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4464 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4465 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4466 Add build rules for all the above.
4467
9e0ac564
TT
44682011-02-04 Tom Tromey <tromey@redhat.com>
4469
4470 * dwarf2read.c (dwarf2_section_empty_p): New function.
4471 (dwarf2_read_section): Use dwarf2_section_empty_p.
4472 (dwarf2_section_size): New function.
4473 (dwarf2_get_section_info): Unconditionally read section.
4474 (dwarf2_read_index): Use dwarf2_section_empty_p.
4475 (partial_read_comp_unit_head): Use dwarf2_section_size.
4476 (dwarf2_symbol_mark_computed): Likewise.
4477
eee5b35e
DD
44782011-02-04 David Daney <ddaney@caviumnetworks.com>
4479
4480 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4481
385203ed
DD
44822011-02-04 David Daney <ddaney@caviumnetworks.com>
4483
4484 * mips-linux-tdep.c: Include xml-syscall.h.
4485 (mips_linux_get_syscall_number): New function.
4486 (mips_linux_init_abi): Add calls to
4487 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4488 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4489 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4490 * syscalls/mips-n32-linux.xml: New file.
4491 * syscalls/mips-n64-linux.xml: New file.
4492 * syscalls/mips-o32-linux.xml: New file.
4493
9277c30c
UW
44942011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4495
4496 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4497 Complain about inverted range entries.
4498 (dwarf2_record_block_ranges): Likewise.
4499
a3be7890
TJB
45002011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4501
4502 Fix some typos.
4503 * breakpoint.c (update_watchpoint): Fix name of the
4504 update_global_location_list function.
4505 (print_one_breakpoint): Fix typo.
4506 (_initialize_breakpoint): Remove extra space in hbreak help
4507 string.
4508 * breakpoint.h (struct bp_location) <length>: Fix field
4509 description.
4510
041274d8
PA
45112011-02-04 Pedro Alves <pedro@codesourcery.com>
4512
4513 * regcache.c (registers_changed_ptid): Don't explictly always
4514 clear `current_regcache'. Only clear current_thread_ptid and
4515 current_thread_arch when PTID matches. Only reinit the frame
4516 cache if PTID matches the current inferior_ptid. Move alloca(0)
4517 call to ...
4518 (registers_changed): ... here.
4519
c1c2ab58
UW
45202011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4521
4522 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4523 starts with __stack_chk_guard as stack guard symbol.
4524
9011945e
AB
45252011-02-03 Andrew Burgess <aburgess@broadcom.com>
4526
4527 * disasm.c (compare_lines): Handle the end of sequence markers
4528 within the line table to better support disassembling over
4529 compilation unit boundaries.
4530
e0634ccf
UW
45312011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4532
4533 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4534 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4535 implementation even if no symbols are available.
4536 (thumb_analyze_prologue): Update call to skip_prologue_function.
4537 (arm_analyze_prologue): Likewise.
4538
0e9e9abd
UW
45392011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4540
4541 * arm-tdep.c: Include "observer.h".
4542 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4543 (arm_exidx_data_key): New static variable.
4544 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4545 (struct arm_exidx_data): Likewise.
4546 (arm_exidx_data_free): New function.
4547 (arm_compare_exidx_entries): Likewise.
4548 (arm_obj_section_from_vma): Likewise.
4549 (arm_exidx_new_objfile): Likewise.
4550 (arm_find_exidx_entry): Likewise.
4551 (arm_exidx_fill_cache): Likewise.
4552 (arm_exidx_unwind_sniffer): Likewise.
4553 (arm_exidx_unwind): New global variable.
4554 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4555 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4556 observer. Register arm_exidx_data_key as objfile data.
4557
2e9e421f
UW
45582011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4559
4560 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4561 due to accessing uninitialized variable. Fix indentation.
4562
580688f3
PA
45632011-02-02 Pedro Alves <pedro@codesourcery.com>
4564
4565 * c-valprint.c (c_value_print): When doing virtual base pointer
4566 adjustment, create a new value with adjusted contents rather than
4567 changing the contents of the value being printed (and getting it
4568 wrong).
4569
3d2c1d41
PA
45702011-02-02 Pedro Alves <pedro@codesourcery.com>
4571
4572 * xml-support.c (xml_find_attribute): New.
4573 (xinclude_start_include): Use it.
4574 * xml-support.h (xml_find_attribute): Declare.
4575 * memory-map.c (memory_map_start_memory)
4576 (memory_map_start_property): Use xml_find_attribute.
4577 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4578 xml_find_attribute.
4579 * remote.c (start_thread): Use xml_find_attribute.
4580 * solib-target.c (library_list_start_segment)
4581 (library_list_start_section, library_list_start_library)
4582 (library_list_start_list): Use xml_find_attribute.
4583 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4584 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4585 (tdesc_start_field): Use xml_find_attribute.
4586
0af3e2db
UW
45872011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4588
4589 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4590 (BUILD_OCL_VTYPES): Update.
4591
c1039e3c
JB
45922011-02-02 Joel Brobecker <brobecker@adacore.com>
4593
4594 * configure.ac: Work around non-GNU sed limitation when computing
4595 python version number.
4596 * configure: Regenerate.
4597
600ea1be
JK
45982011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4599
4600 Fix debug printing of TYPE_INSTANCE.
4601 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4602 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4603
56c12414
JK
46042011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4605
4606 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4607 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4608 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4609 * ada-operator.inc: Rename the file to ...
4610 * ada-operator.def: ... here, wrap all the entries by macro OP.
4611 * expprint.c (op_name_standard): Remove all the entries. Include
4612 "std-operator.def" instead.
4613 * expression.h (enum exp_opcode): Include "std-operator.def" and
4614 "ada-operator.def". Move all the entries ...
4615 * std-operator.def: ... here, wrap all the entries by macro OP.
4616
c52b559d
PP
46172011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4618
4619 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4620 * breakpoint.c (remove_jit_event_breakpoints): New function.
4621 * jit.c (jit_descriptor_addr): Delete.
4622 (registering_code): Delete.
4623 (clear_int): Delete.
4624 (jit_inferior_data): New variable.
4625 (struct jit_inferior_data): New type.
4626 (get_jit_inferior_data): New function.
4627 (jit_inferior_data_cleanup): New function.
4628 (jit_read_descriptor): Adjust.
4629 (jit_register_code): Adjust.
4630 (jit_breakpoint_re_set_internal): New function; move code here ...
4631 (jit_inferior_init): ... from here.
4632 (jit_breakpoint_re_set): Adjust.
4633 (jit_reset_inferior_data_and_breakpoints): New function.
4634 (jit_inferior_created_observer): Adjust.
4635 (jit_inferior_exit_hook): Adjust.
4636 (jit_executable_changed_observer): New function.
4637 (jit_event_handler): Adjust.
4638 (_initialize_jit): Adjust.
4639
e839132d
MS
46402011-01-31 Michael Snyder <msnyder@vmware.com>
4641
4642 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4643 line.
4644
47a80e90
TT
46452011-01-31 Tom Tromey <tromey@redhat.com>
4646
4647 PR python/12216:
4648 * python/python.c (execute_gdb_command): Call
4649 prevent_dont_repeat.
4650 * top.c (suppress_dont_repeat): New global.
4651 (dont_repeat): Use it.
4652 (prevent_dont_repeat): New function.
4653 * command.h (prevent_dont_repeat): Declare.
4654
45a43567
TT
46552011-01-31 Tom Tromey <tromey@redhat.com>
4656
4657 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4658 * python/py-breakpoint.c (bppy_set_silent): Use
4659 breakpoint_set_silent.
4660 (bppy_set_thread): Use breakpoint_set_thread.
4661 (bppy_set_task): Use breakpoint_set_task.
4662 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4663 (breakpoint_set_task): Declare.
4664 (make_breakpoint_silent): Remove.
4665 * breakpoint.c (breakpoint_set_silent): New function.
4666 (breakpoint_set_thread): Likewise.
4667 (breakpoint_set_task): Likewise.
4668 (make_breakpoint_silent): Remove.
4669
09d682a4
TT
46702011-01-31 Tom Tromey <tromey@redhat.com>
4671
4672 * breakpoint.h (user_breakpoint_p): Declare.
4673 * breakpoint.c (user_breakpoint_p): New function.
4674 (breakpoint_1): Use it.
4675 (save_breakpoints): Likewise.
4676
9c4ea6c5
JB
46772011-01-31 Joel Brobecker <brobecker@adacore.com>
4678
4679 * configure.ac: Add handling of Python distribution on Windows.
4680 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4681 sysconfig variables are not defined, then do not use them.
4682 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4683 instead. On Windows, return all paths using forward-slashes
4684 rather than backslashes.
4685
ac534cba
JB
46862011-01-31 Joel Brobecker <brobecker@adacore.com>
4687
4688 * configure.ac: Remove fallback behavior for building
4689 against Python. Remove tweaking of Python include path.
4690 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4691 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4692 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4693 Always restore CPPFLAGS and LIBS after linking test.
4694 * configure: Regenerated.
4695 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4696 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4697 * python/python-internal.h: Adjust includes of Python .h files.
4698
c2f0d045
JB
46992011-01-31 Joel Brobecker <brobecker@adacore.com>
4700
4701 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4702 in error message.
4703
6b0c4c1f
JB
47042011-01-31 Joel Brobecker <brobecker@adacore.com>
4705
4706 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4707 value test.
4708
672c9795
YQ
47092011-01-31 Yao Qi <yao@codesourcery.com>
4710
4711 * arm-linux-nat.c: Update calls to regcache_register_status
4712 instead of regcache_valid_p.
4713 * aix-thread.c: Likewise.
4714 * i386gnu-nat.c: Likewise.
4715
80b23b6a
JK
47162011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4717
4718 Fix crash.
4719 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4720 touching TYPE_FIELD_ARTIFICIAL.
4721
4cd712bd
RE
47222011-01-28 Richard Earnshaw <rearnsha@arm.com>
4723
4724 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4725 Committers.
4726
ffd5ec24
PA
47272011-01-28 Pedro Alves <pedro@codesourcery.com>
4728
4729 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4730 selected, don't try iterating over the traceframe's blocks.
4731 (tfile_has_stack): If there's no traceframe selected, then there's
4732 no stack.
4733 (tfile_has_registers): If there's no traceframe selected, then
4734 there's no registers.
4735
e8c9e0a1
PA
47362011-01-28 Pedro Alves <pedro@codesourcery.com>
4737
4738 * target.c (memory_xfer_partial): No need to restore shadows if we
4739 haven't read anything.
4740
de15c4ab
PA
47412011-01-28 Pedro Alves <pedro@codesourcery.com>
4742
4743 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4744 and val_print_scalar_formatted.
4745
9f41c731
PA
47462011-01-27 Pedro Alves <pedro@codesourcery.com>
4747
4748 * tracepoint.c (tfile_read): New.
4749 (tfile_open): Use it.
4750 (tfile_get_traceframe_address): Use it.
4751 (tfile_trace_find): Use it.
4752 (walk_blocks_callback_func): New typedef.
4753 (match_blocktype): New function.
4754 (traceframe_walk_blocks): New function.
4755 (traceframe_find_block_type): New function.
4756 (tfile_fetch_registers, tfile_xfer_partial)
4757 (tfile_get_trace_state_variable_value): Use
4758 traceframe_find_block_type and tfile_read.
4759
cdefc55d
KB
47602011-01-26 Kevin Buettner <kevinb@redhat.com>
4761
4762 * remote-mips.c: Add internationalization mark ups. Remove
4763 trailing \n from already marked up strings.
4764
a81766d8
TT
47652011-01-26 Tom Tromey <tromey@redhat.com>
4766
4767 * python/py-prettyprint.c (print_string_repr): Clear
4768 'addressprint' option when calling val_print_string.
4769 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4770 option when calling val_print_string.
4771
74aedc46
TT
47722011-01-26 Tom Tromey <tromey@redhat.com>
4773
4774 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4775 GDB_PY_LL_ARG.
4776 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4777 macros.
4778 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4779 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4780 (gdb_py_long_as_ulongest): New defines.
4781 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4782 (gdb_py_int_as_long): Declare.
4783 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4784 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4785 (valpy_long): Add comment.
4786 * python/py-utils.c (get_addr_from_python): Use
4787 gdb_py_long_as_ulongest. Handle overflow properly.
4788 (gdb_py_object_from_longest): New function.
4789 (gdb_py_object_from_ulongest): Likewise.
4790 (gdb_py_int_as_long): Likewise.
4791 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4792 * python/py-symtab.c (salpy_get_pc): Use
4793 gdb_py_long_from_ulongest.
4794 (salpy_get_line): Use PyInt_FromLong.
4795 * python/py-param.c (set_parameter_value): Use
4796 gdb_py_int_as_long.
4797 * python/py-lazy-string.c (stpy_get_address): Use
4798 gdb_py_long_from_ulongest.
4799 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4800 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4801 * python/py-breakpoint.c (bppy_set_thread): Use
4802 gdb_py_int_as_long.
4803 (bppy_set_task): Likewise.
4804 (bppy_set_ignore_count): Likewise.
4805 (bppy_set_hit_count): Likewise.
4806 * python/py-block.c (blpy_get_start): Use
4807 gdb_py_object_from_ulongest.
4808 (blpy_get_end): Likewise.
4809 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4810
e4f6d2ec
TJB
48112011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4812
4813 PR/symtab 11766:
4814 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4815 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4816 equality test for objfile, initialize addr_low if needed.
4817
b30aa278
PA
48182011-01-25 Pedro Alves <pedro@codesourcery.com>
4819
4820 * tui/tui-regs.c (tui_register_format): Remove dead code.
4821
ab2188aa
PA
48222011-01-25 Pedro Alves <pedro@codesourcery.com>
4823
4824 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4825 instead of print_scalar_formatted.
4826 (print_scalar_formatted): Don't handle 's' format strings here,
4827 and add an assertion that we never see such format here.
4828 * valprint.h (val_print_scalar_formatted): Declare.
4829 * valprint.c (val_print_scalar_formatted): New.
4830 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4831 instead of print_scalar_formatted.
4832 * jv-valprint.c (java_val_print): Ditto.
4833 * p-valprint.c (pascal_val_print): Ditto.
4834 * ada-valprint.c (ada_val_print_1): Ditto.
4835 * f-valprint.c (f_val_print): Ditto.
4836 * infcmd.c (registers_info): Ditto.
4837 * m2-valprint.c (m2_val_print): Ditto.
4838
66d61a4c
PA
48392011-01-25 Pedro Alves <pedro@codesourcery.com>
4840
4841 * m2-valprint.c (print_unbounded_array): Pass
4842 value_contents_for_printing rather than value_contents, to
4843 m2_print_array_contents. Also pass in the value.
4844
831adc1f
JK
48452011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4846
4847 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4848 (save_gdb_index_command): Switch to .gdb_index version 4.
4849
20622269
PA
48502011-01-25 Pedro Alves <pedro@codesourcery.com>
4851
4852 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4853 than frame_register, and always pass a valid value to val_print.
4854
585fdaa1
PA
48552011-01-25 Pedro Alves <pedro@codesourcery.com>
4856
4857 Centralize printing "<optimized out>".
4858
4859 * valprint.h (val_print_optimized_out): Declare.
4860 * cp-valprint.c (cp_print_value_fields): Use
4861 val_print_optimized_out.
4862 * jv-valprint.c (java_print_value_fields): Ditto.
4863 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4864 * printcmd.c (print_formatted): Ditto.
4865 * valprint.c (valprint_check_validity): Ditto.
4866 (value_check_printable): Ditto.
4867 (val_print_optimized_out): New.
4868
29ec5263
PA
48692011-01-25 Pedro Alves <pedro@codesourcery.com>
4870
4871 * infcmd.c (default_print_registers_info): Allocate values so to
4872 never pass a NULL value to val_print.
4873
de4127a3
PA
48742011-01-25 Pedro Alves <pedro@codesourcery.com>
4875
4876 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4877 boolean. Make sure to always pass a value that matches the
4878 contents buffer to callees. Preserve `address' for following
4879 iterations.
4880 * value.c (value_contents_for_printing_const): New.
4881 (value_address): Constify value argument.
4882 * value.h (value_contents_for_printing_const): Declare.
4883 (value_address): Constify value argument.
4884
ee99023e
PA
48852011-01-25 Pedro Alves <pedro@codesourcery.com>
4886
4887 * regcache.c (struct regcache_descr): Rename
4888 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4889 and sizeof_cooked_register_valid_p to
4890 sizeof_cooked_register_status.
4891 (init_regcache_descr): Adjust.
4892 (struct regcache): Rename register_valid_p field to
4893 register_status.
4894 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4895 (do_cooked_read): Adjust.
4896 (regcache_valid_p): Rename to ...
4897 (regcache_register_status): ... this. Adjust.
4898 (regcache_invalidate): Adjust.
4899 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4900 Adjust.
4901 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4902 as unavailable, not valid.
4903 (regcache_dump): Adjust.
4904 * regcache.h (enum register_status): New.
4905 (regcache_register_status): Declare.
4906 (regcache_invalidate): Delete declaration.
4907 * corelow.c (get_core_registers): Adjust.
4908 * tracepoint.c (tfile_fetch_registers): Adjust.
4909 * trad-frame.c (REG_VALUE): Rename to ...
4910 (TF_REG_VALUE): ... this.
4911 (REG_UNKNOWN): Rename to ...
4912 (TF_REG_UNKNOWN): ... this.
4913 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4914 * mi/mi-main.c (register_changed_p): Adjust.
4915
99e42fd8
PA
49162011-01-25 Pedro Alves <pedro@codesourcery.com>
4917
4918 * regcache.c (struct regcache_descr): Remove outdated comment.
4919 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4920 overallocate hack.
4921 (regcache_xmalloc): Rename to ...
4922 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4923 Allocate the regcache type accordingly.
4924 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4925 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4926 cooked registers, not raw.
4927 (regcache_dup_no_passthrough): Delete.
4928 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4929 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4930 mention obsolete write_register_bytes.
4931 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4932
f7605bc2
PA
49332011-01-25 Pedro Alves <pedro@codesourcery.com>
4934
4935 Stop remote_read_bytes from handling partial reads itself.
4936
4937 * remote-fileio.c: Include target.h.
4938 (remote_fileio_write_bytes): Delete.
4939 (remote_fileio_func_open, remote_fileio_func_write)
4940 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4941 target_read_memory.
4942 (remote_fileio_func_stat): Use target_read_memory and
4943 target_write_memory.
4944 (remote_fileio_func_gettimeofday): Use target_write_memory.
4945 (remote_fileio_func_system): Use target_read_memory.
4946 * remote.c (remote_write_bytes): Make it static.
4947 (remote_read_bytes): Don't handle partial reads here.
4948 * remote.h (remote_read_bytes): Delete declaration.
4949
efc0eabd
PA
49502011-01-25 Pedro Alves <pedro@codesourcery.com>
4951
4952 Simplify XML parsing a bit.
4953
4954 * xml-support.h (gdb_xml_parse_quick): Declare.
4955 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4956 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4957 parameter.
4958 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4959 gdb_xml_create_parser_and_cleanup_1.
4960 (gdb_xml_parse_quick): New.
4961 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4962 * osdata.c (osdata_parse): Ditto.
4963 * remote.c (remote_threads_info): Ditto.
4964 * solib-target.c (solib_target_parse_libraries): Ditto.
4965 * xml-syscall.c (syscall_parse_xml): Ditto.
4966 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4967
314d366a
KB
49682011-01-24 Kevin Buettner <kevinb@redhat.com>
4969
4970 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4971 with remote-mips.o added to gdb_target_obs.
4972 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4973
a491d753
PA
49742011-01-24 Pedro Alves <pedro@codesourcery.com>
4975
4976 * ada-valprint.c (val_print_packed_array_elements): Pass the
4977 correct struct value to val_print.
4978 (ada_val_print_1): Ditto.
4979
490f124f
PA
49802011-01-24 Pedro Alves <pedro@codesourcery.com>
4981
4982 Don't lose embedded_offset in printing routines throughout.
4983
4984 * valprint.h (val_print_array_elements): Change prototype.
4985 * valprint.c (val_print_array_elements): Add `embedded_offset'
4986 parameter, and adjust to pass it down to val_print, while passing
4987 `valaddr' or `address' unmodified. Take embedded_offset into
4988 account when checking repetitions.
4989 * c-valprint.c (c_val_print): Pass embedded_offset to
4990 val_print_array_elements instead of adjusting `valaddr' and
4991 `address'.
4992 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4993 embedded_offset to val_print_array_elements instead of adjusting
4994 `valaddr'.
4995 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4996 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4997 val_print_array_elements and pascal_object_print_value_fields
4998 instead of adjusting `valaddr'.
4999 (pascal_object_print_value_fields): Add `offset' parameter, and
5000 adjust to use it.
5001 (pascal_object_print_value): Add `offset' parameter, and adjust to
5002 use it.
5003 (pascal_object_print_static_field): Use
5004 value_contents_for_printing/value_embedded_offset, rather than
5005 value_contents.
5006 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5007 parameter, and adjust to use it. Use
5008 value_contents_for_printing/value_embedded_offset, rather than
5009 value_contents.
5010 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5011 (ada_val_print_array): Add `offset' parameter, and adjust to use
5012 it.
5013 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5014 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5015 Instead work with offsets. Use
5016 value_contents_for_printing/value_embedded_offset, rather than
5017 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5018 and use value_from_pointer to extract a target pointer, rather
5019 than value_from_longest.
5020 (print_variant_part): Add `offset' parameter. Replace
5021 `outer_valaddr' parameter by a new `outer_offset' parameter.
5022 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5023 (ada_value_print): Use
5024 value_contents_for_printing/value_embedded_offset, rather than
5025 value_contents.
5026 (print_record): Add `offset' parameter, and adjust to pass it
5027 down.
5028 (print_field_values): Add `offset' parameter. Replace
5029 `outer_valaddr' parameter by a new `outer_offset' parameter.
5030 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5031 Use value_contents_for_printing/value_embedded_offset, rather than
5032 value_contents.
5033 * d-valprint.c (dynamic_array_type): Use
5034 value_contents_for_printing/value_embedded_offset, rather than
5035 value_contents.
5036 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5037 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5038 (java_print_value_fields): Take `offset' into account. Don't
5039 re-adjust `valaddr'. Instead pass down adjusted offsets.
5040 (java_val_print): Take `embedded_offset' into account. Pass it to
5041 java_print_value_fields.
5042 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5043 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5044 down adjusted offsets.
5045 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5046 (f_val_print): Take `embedded_offset' into account.
5047
7bfc9434
JB
50482011-01-21 Joel Brobecker <brobecker@adacore.com>
5049
5050 * inflow.c: Include "gdbcmd.h".
5051 (interactive_mode): New static global, moved here from top.c.
5052 (show_interactive_mode): New function, moved here from top.c.
5053 use gdb_has_a_terminal instead of input_from_terminal_p to
5054 determine the current mode.
5055 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5056 setting.
5057 (_initialize_inflow): Add the "set/show interactive-mode"
5058 commands. Moved here from top.c, after having adjusted slightly
5059 the help text.
5060 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5061 to inflow.c.
5062 (input_from_terminal_p): Remove handling of "interactive-mode"
5063 setting, moved to infow.c.
5064 (init_main): Remove creation of the "set/show interactive-mode"
5065 commands, moved to inflow.c.
5066
44603653
JB
50672011-01-19 Joel Brobecker <brobecker@adacore.com>
5068
5069 * NEWS: Add entry for native ia64-hpux support.
5070
4694da01
TT
50712011-01-19 Tom Tromey <tromey@redhat.com>
5072
5073 PR mi/8618:
5074 * thread.c (free_thread): Free 'name'.
5075 (print_thread_info): Emit thread name. Change CLI output.
5076 (thread_name_command): New function.
5077 (do_captured_thread_select): Emit newline.
5078 (_initialize_thread): Register 'thread name' command.
5079 * target.h (struct target_ops) <to_thread_name>: New field.
5080 (target_thread_name): New macro.
5081 * target.c (update_current_target): Handle to_thread_name.
5082 * python/py-infthread.c (thpy_get_name): New function.
5083 (thpy_set_name): Likewise.
5084 (thread_object_getset): Add "name".
5085 * linux-nat.c (linux_nat_thread_name): New function.
5086 (linux_nat_add_target): Set to_thread_name.
5087 * gdbthread.h (struct thread_info) <name>: New field.
5088
10d44370
JB
50892011-01-18 Joel Brobecker <brobecker@adacore.com>
5090
5091 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5092 (ada_val_print_1): Likewise.
5093
e3acb115
JB
50942011-01-18 Joel Brobecker <brobecker@adacore.com>
5095
5096 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5097 upper limit address is not greater than the function end address
5098 when the upper limit could not be computed using the debugging
5099 info.
5100
dc92e161
TT
51012011-01-17 Tom Tromey <tromey@redhat.com>
5102
5103 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5104 get_regcomp_error.
5105 * utils.c: Include gdb_regex.h.
5106 (do_regfree_cleanup): New function.
5107 (make_regfree_cleanup): Likewise.
5108 (get_regcomp_error): Likewise.
5109 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5110
f55af66d
TT
51112011-01-17 Tom Tromey <tromey@redhat.com>
5112
5113 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5114 re_compile_fastmap.
5115
a5a44b53
PM
51162011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5117
5118 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5119 for internal variables.
5120 (last_was_structop): New static variable.
5121 (COMPLETE): New token.
5122 (field_exp): New rule to group all '.' suffix handling.
5123 Add mark_struct_expression calls when approriate to be able
5124 to correctly find fields for completion.
5125 (yylex): Adapt to handle field completion and set INTVAR when
5126 required.
5127
2c291032
YQ
51282011-01-14 Yao Qi <yao@codesourcery.com>
5129
5130 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5131 save_reggroup, restore_reggroup and all_reggroup.
5132
447b483c
JB
51332011-01-14 Joel Brobecker <brobecker@adacore.com>
5134
5135 * ada-valprint. (ada_printchar): Use the correct type length
5136 in call to ada_emit_char.
5137 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5138
7b64a93b
PM
51392011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5140
5141 * solib-som.h (hpux_major_release): Declare variable here.
5142 * solib-som.c: Remove <sys/utsname.h> header.
5143 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5144 (hpux_major_release): Make global, change default value to
5145 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 5146 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
5147 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5148 Add "solib-som.h" header.
5149 (set_hpux_major_release): New function.
5150 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5151
4e18c053
MF
51522011-01-14 Mike Frysinger <vapier@gentoo.org>
5153
5154 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5155
a9df6b22
JB
51562011-01-14 Joel Brobecker <brobecker@adacore.com>
5157
5158 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5159 new-line at end of warning message.
5160 (ia64_hpux_store_register): Remove trailing new-line at end of
5161 error message.
5162 * ia64-hpux-tdep.c: Rephrase comment.
5163 * solib-ia64-hpux.c (struct dld_info): Change type of field
5164 dld_flags from "long long" to ULONGEST.
5165
ecb956dd
PA
51662011-01-14 Pedro Alves <pedro@codesourcery.com>
5167
5168 * target.h (deprecated_child_ops): Delete declaration.
5169 * target.c (deprecated_child_ops): Delete definition.
5170
76adfcae
PA
51712011-01-14 Pedro Alves <pedro@codesourcery.com>
5172
5173 * Makefile.in (hpux-thread.o): Delete rule.
5174 * configure.ac: Don't check for HPUX DCE threads support.
5175 * configure, config.in: Regenerate.
5176 * hppa-hpux-nat.c (child_suppress_run): Delete.
5177 (hppa_hpux_child_can_run): Delete.
5178 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5179 * hpux-thread.c: Delete.
5180
042e866e
JB
51812011-01-13 Joel Brobecker <brobecker@adacore.com>
5182
5183 * hpux-thread.c (hpux_pid_to_str): Delete.
5184
4ffa5a33
JB
51852011-01-13 Joel Brobecker <brobecker@adacore.com>
5186
5187 * ada-valprint.c (ada_emit_char): Remove strange code.
5188 Check that c is <= UCHAR_MAX before passing it to isascii.
5189 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5190
de8fa76c
JB
51912011-01-13 Joel Brobecker <brobecker@adacore.com>
5192
5193 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5194 to the case where instream is stdin.
5195
c4de7027
JB
51962011-01-13 Joel Brobecker <brobecker@adacore.com>
5197
5198 * ia64-tdep.h (struct regcache): Forward declare.
5199 (struct ia64_infcall_ops): New struct type.
5200 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5201 and "infcall_ops".
5202 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5203 Renames ia64_find_global_pointer.
5204 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5205 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5206 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5207 methods.
5208 (ia64_infcall_ops): New static global constant.
5209 (ia64_gdbarch_init): Set tdep->infcall_ops.
5210 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5211 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5212 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5213 (ia64_hpux_dummy_code): New static global constant.
5214 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5215 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5216 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5217 New function.
5218 (ia64_hpux_infcall_ops): New static global constant.
5219 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5220 for inferior function calls to work properly on ia64-hpux.
5221
77ca787b
JB
52222011-01-13 Joel Brobecker <brobecker@adacore.com>
5223
5224 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5225 * ia64-tdep.h (struct frame_info): forward declaration.
5226 (struct gdbarch_tdep): Add field size_of_register_frame.
5227 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5228 to determine the size of the register frame.
5229 (ia64_size_of_register_frame): New function.
5230 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5231 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5232 (IA64_HPUX_UREG_REASON): New macro.
5233 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5234 New functions.
5235 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5236 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5237 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5238 objects.
5239
92c9a463
JB
52402011-01-13 Joel Brobecker <brobecker@adacore.com>
5241
5242 Add support for ia64-hpux.
5243 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5244 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5245
5246 * configure.host: Add handling for ia64-hpux hosts. Add associated
5247 floatformats.
5248 * configure.tgt: Add handling for ia64-hpux targets.
5249 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5250 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5251 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5252
f688d93f
JB
52532011-01-13 Joel Brobecker <brobecker@adacore.com>
5254
5255 [ttrace] Compute thread list immediately after attach.
5256 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5257 New subprogram.
5258 (inf_ttrace_attach): Use it.
5259
1b89e62f
JB
52602011-01-13 Joel Brobecker <brobecker@adacore.com>
5261
5262 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5263 if we could not determine the frame's function address. Instead,
5264 use the frame's PC, and then continue.
5265
3e5e6e2a
JB
52662011-01-13 Joel Brobecker <brobecker@adacore.com>
5267
5268 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5269 not already defined.
5270
825d6d8a
JB
52712011-01-13 Joel Brobecker <brobecker@adacore.com>
5272
5273 * ia64-tdep.c (ia64_struct_type_p): New function.
5274 (ia64_extract_return_value): Handle integral values that are
5275 less than 8 bytes long.
5276 (ia64_push_dummy_call): Likewise.
5277
7458e667
JB
52782011-01-13 Joel Brobecker <brobecker@adacore.com>
5279
5280 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5281 floatformat_ia64_ext.
5282 (floatformat_ia64_ext_big): New static const.
5283 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5284
1b05df00
TT
52852011-01-12 Tom Tromey <tromey@redhat.com>
5286
5287 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5288 messages.
5289 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5290 (mi_cmd_thread_list_ids): Likewise.
5291 (mi_cmd_data_list_changed_registers): Likewise.
5292 (mi_cmd_data_list_register_values): Likewise.
5293 (mi_cmd_data_write_register_values): Likewise.
5294 (mi_cmd_data_evaluate_expression): Likewise.
5295 (mi_cmd_data_read_memory): Likewise.
5296 (mi_cmd_data_read_memory_bytes): Likewise.
5297 (mi_cmd_data_write_memory): Likewise.
5298 (mi_cmd_enable_timings): Likewise.
5299 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5300 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5301 (mi_cmd_var_delete): Likewise.
5302 (mi_cmd_var_set_format): Likewise.
5303 (mi_cmd_var_show_format): Likewise.
5304 (mi_cmd_var_info_num_children): Likewise.
5305 (mi_cmd_var_list_children): Likewise.
5306 (mi_cmd_var_info_type): Likewise.
5307 (mi_cmd_var_info_expression): Likewise.
5308 (mi_cmd_var_show_attributes): Likewise.
5309 (mi_cmd_var_assign): Likewise.
5310 (mi_cmd_var_update): Likewise.
5311 (mi_cmd_enable_pretty_printing): Likewise.
5312 (mi_cmd_var_set_update_range): Likewise.
5313 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5314 messages.
5315 (mi_cmd_target_file_put): Likewise.
5316 (mi_cmd_target_file_delete): Likewise.
5317 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5318 messages.
5319 (mi_cmd_stack_info_depth): Likewise.
5320 (mi_cmd_stack_list_locals): Likewise.
5321 (mi_cmd_stack_list_args): Likewise.
5322 (mi_cmd_stack_select_frame): Likewise.
5323 (mi_cmd_stack_select_frame): Likewise.
5324 (mi_cmd_stack_info_frame): Likewise.
5325 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5326 messages.
5327 (mi_cmd_file_list_exec_source_files): Likewise.
5328 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5329 (mi_cmd_env_cd): Likewise.
5330 (mi_cmd_env_path): Likewise.
5331 (mi_cmd_env_dir): Likewise.
5332 (mi_cmd_inferior_tty_show): Likewise.
5333 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5334 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5335 (mi_cmd_break_watch): Likewise.
5336
ad422571
TJB
53372011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5338
5339 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5340 (ppc_linux_insert_hw_breakpoint): Likewise.
5341 (ppc_linux_remove_hw_breakpoint): Likewise.
5342 (ppc_linux_insert_watchpoint): Likewise.
5343
c2ff108b
JK
53442011-01-12 Andrew Burgess <aburgess@broadcom.com>
5345 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 PR fortran/11104 and DWARF unbound arrays detection.
5348 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5349 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5350 unspecified upper bound.
5351 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5352 variables array_size_array, tmp_type and offset_item. New variable
5353 array. Remove call to f77_get_upperbound. New variables array_type
5354 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5355 the final call to deprecated_set_value_type.
5356
41e8491f
JK
53572011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5358
5359 Make value allocations more lazy.
5360 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5361 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 5362 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
5363 instead of allocate_value and set_value_lazy.
5364 * findvar.c (value_of_register_lazy): Likewise.
5365 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 5366 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
5367 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5368 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5369 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5370 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5371 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5372 the end, remove set_value_lazy there.
5373 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5374 instead of allocate_value and set_value_lazy when possible.
5375 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5376 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5377 of allocate_value and set_value_lazy.
5378 (value_from_contents_and_address): Use allocate_value_lazy instead of
5379 allocate_value and set_value_lazy when possible.
5380
b716877b
AB
53812011-01-12 Andrew Burgess <aburgess@broadcom.com>
5382
5383 * disasm.c (dump_insns): Support dumping opcodes for MI.
5384 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5385 dumping of instruction opcodes.
5386
d5ae309f
JB
53872011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5388
5389 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5390 appropiately.
5391
98871305
TT
53922011-01-11 Tom Tromey <tromey@redhat.com>
5393
5394 * thread.c (do_captured_thread_select): Emit newline before
5395 printing frame.
5396
c378eb4e
MS
53972011-01-11 Michael Snyder <msnyder@vmware.com>
5398
5399 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5400 * score-tdep.c: Ditto.
5401 * score-tdep.h: Ditto.
5402 * ser-base.c: Ditto.
5403 * ser-go32.c: Ditto.
5404 * serial.c: Ditto.
5405 * serial.h: Ditto.
5406 * ser-mingw.c: Ditto.
5407 * ser-pipe.c: Ditto.
5408 * ser-tcp.c: Ditto.
5409 * ser-unix.c: Ditto.
5410 * sh64-tdep.c: Ditto.
5411 * shnbsd-nat.c: Ditto.
5412 * sh-tdep.c: Ditto.
5413 * sh-tdep.h: Ditto.
5414 * solib.c: Ditto.
5415 * solib-darwin.c: Ditto.
5416 * solib-frv.c: Ditto.
5417 * solib.h: Ditto.
5418 * solib-irix.c: Ditto.
5419 * solib-osf.c: Ditto.
5420 * solib-pa64.c: Ditto.
5421 * solib-som.c: Ditto.
5422 * solib-spu.c: Ditto.
5423 * solib-sunos.c: Ditto.
5424 * solib-svr4.c: Ditto.
5425 * solist.h: Ditto.
5426 * sol-thread.c: Ditto.
5427 * somread.c: Ditto.
5428 * source.c: Ditto.
5429 * source.h: Ditto.
5430 * sparc64-linux-tdep.c: Ditto.
5431 * sparc64-tdep.c: Ditto.
5432 * sparc-linux-nat.c: Ditto.
5433 * sparc-linux-tdep.c: Ditto.
5434 * sparc-sol2-nat.c: Ditto.
5435 * sparc-sol2-tdep.c: Ditto.
5436 * sparc-tdep.c: Ditto.
5437 * sparc-tdep.h: Ditto.
5438 * spu-tdep.c: Ditto.
5439 * stabsread.c: Ditto.
5440 * stabsread.h: Ditto.
5441 * stack.c: Ditto.
5442 * symfile.c: Ditto.
5443 * symfile.h: Ditto.
5444 * symmisc.c: Ditto.
5445 * symtab.c: Ditto.
5446 * symtab.h: Ditto.
5447 * target.c: Ditto.
5448 * target-descriptions.c: Ditto.
5449 * target-descriptions.h: Ditto.
5450 * target.h: Ditto.
5451 * target-memory.c: Ditto.
5452 * terminal.h: Ditto.
5453 * thread.c: Ditto.
5454 * top.c: Ditto.
5455 * tracepoint.c: Ditto.
5456 * tracepoint.h: Ditto.
5457 * trad-frame.h: Ditto.
5458 * typeprint.c: Ditto.
5459
581e13c1
MS
54602011-01-11 Michael Snyder <msnyder@vmware.com>
5461
5462 * ui-file.c: Comment cleanup, mostly periods and spaces.
5463 * ui-file.h: Ditto.
5464 * ui-out.c: Ditto.
5465 * ui-out.h: Ditto.
5466 * utils.c: Ditto.
5467 * v850-tdep.c: Ditto.
5468 * valarith.c: Ditto.
5469 * valops.c: Ditto.
5470 * valprint.c: Ditto.
5471 * valprint.h: Ditto.
5472 * value.c: Ditto.
5473 * value.h: Ditto.
5474 * varobj.c: Ditto.
5475 * varobj.h: Ditto.
5476 * vax-tdep.c: Ditto.
5477 * vec.c: Ditto.
5478 * vec.h: Ditto.
5479 * version.h: Ditto.
5480 * windows-nat.c: Ditto.
5481 * windows-tdep.c: Ditto.
5482 * xcoffread.c: Ditto.
5483 * xcoffsolib.c: Ditto.
5484 * xml-support.c: Ditto.
5485 * xstormy16-tdep.c: Ditto.
5486 * xtensa-tdep.c: Ditto.
5487 * xtensa-tdep.h: Ditto.
5488
90e4670f
TJB
54892011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5490
5491 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5492 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5493
e09342b5
TJB
54942011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5495 Thiago Jung Bauermann <bauerman@br.ibm.com>
5496
5497 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 5498 * breakpoint.h
e09342b5
TJB
5499 (struct breakpoint_ops) <resources_needed>: New method.
5500 Initialize to NULL in all existing breakpoint_ops instances.
5501 (struct breakpoint) <exact>: New field.
5502 (target_exact_watchpoints): Declare external global.
5503 * breakpoint.c (target_exact_watchpoints): New global flag.
5504 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5505 b->enable_state to bp_enabled before calling
5506 hw_watchpoint_used_count.
5507 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5508 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5509 if available.
5510 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5511 if the watchpoint is exact.
5512 (resources_needed_watchpoint): New function.
5513 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5514 (watch_command_1): Set b->exact if the user asked for an exact
5515 watchpoint and one can be set.
5516 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5517 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5518 the user asks for an exact watchpoint and one can be set. Return
5519 number of needed debug registers to watch the expression.
5520 * gdbtypes.c (is_scalar_type): New function, based on
5521 valprint.c:scalar_type_p.
5522 (is_scalar_type_recursive): New function.
5523 * gdbtypes.h (is_scalar_type_recursive): Declare.
5524 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5525 handle regions when ranged watchpoints are available.
5526 (create_watchpoint_request): New function.
5527 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5528 create_watchpoint_request.
5529 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5530 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5531 `set powerpc' and `show powerpc' commands.
5532 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5533 Mention documentation comment in the target macro.
5534 (target_region_ok_for_hw_watchpoint): Document return value.
5535
9fa40276
TJB
55362011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5537
5538 * breakpoint.c (update_watchpoint): Decide on using a software or
5539 hardware watchpoint after the bp_locations are created.
5540
77b06cd7
TJB
55412010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5542
5543 Convert hardware watchpoints to use breakpoint_ops.
5544 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5545 <insert_location>: ... this. Return int instead of void.
5546 Accept pointer to struct bp_location instead of pointer to
5547 struct breakpoint. Adapt all implementations.
f2eb0bc8 5548 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
5549 <remove_location>: ... this. Accept pointer to struct bp_location
5550 instead of pointer to struct breakpoint. Adapt all implementations.
5551 * breakpoint.c (insert_catchpoint): Delete function.
5552 (insert_bp_location): Call the watchpoint or catchpoint's
5553 breakpoint_ops.insert method.
5554 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5555 breakpoint_ops.remove method.
5556 (insert_watchpoint, remove_watchpoint): New functions.
5557 (watchpoint_breakpoint_ops): New structure.
5558 (watch_command_1): Initialize the OPS field.
5559 * inf-child.c (inf_child_insert_fork_catchpoint)
5560 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5561 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5562 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5563 Delete functions.
5564 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5565 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5566 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5567 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5568 * target.c (update_current_target): Change default implementation of
5569 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5570 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5571 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5572 to_set_syscall_catchpoint to return_one.
5573 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5574 (debug_to_insert_exec_catchpoint): Report return value.
5575 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5576 (to_insert_exec_catchpoint): Change declaration to return int instead
5577 of void.
5578
9b20d036
MS
55792011-01-11 Michael Snyder <msnyder@vmware.com>
5580
5581 * arm-tdep.c: Internationalization.
5582 * c-lang.c: Ditto.
5583 * charset.c: Ditto.
5584 * fork-child.c: Ditto.
5585 * nto-procfs.c: Ditto.
5586 * ppc-sysv-tdep.c: Ditto.
5587 * procfs.c: Ditto.
5588 * remote-mips.c: Ditto.
5589 * remote.c: Ditto.
5590 * rs6000-nat.c: Ditto.
5591 * rs6000-tdep.c: Ditto.
5592 * target.c: Ditto.
5593 * valops.c: Ditto.
5594 * value.c: Ditto.
5595 * xml-support.c: Ditto.
5596 * mi/mi-cmd-break.c: Ditto.
5597 * mi/mi-cmd-var.c: Ditto.
5598 * mi/mi-interp.c: Ditto.
5599 * mi/mi-main.c: Ditto.
5600
dae477fe
AB
56012011-01-11 Andrew Burgess <aburgess@broadcom.com>
5602
5603 * remote-sim.c (gdbsim_store_register): Update API to
5604 sim_store_register to check more error conditions.
5605
0df8b418
MS
56062011-01-10 Michael Snyder <msnyder@vmware.com>
5607
5608 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5609 * nto-tdep.c: Ditto.
5610 * nto-tdep.h: Ditto.
5611 * objc-exp.y: Ditto.
5612 * objc-lang.c: Ditto.
5613 * objfiles.c: Ditto.
5614 * objfiles.h: Ditto.
5615 * observer.c: Ditto.
5616 * opencl-lang.c: Ditto.
5617 * osabi.c: Ditto.
5618 * parse.c: Ditto.
5619 * parser-defs.h: Ditto.
5620 * p-exp.y: Ditto.
5621 * p-lang.c: Ditto.
5622 * posix-hdep.c: Ditto.
5623 * ppcbug-rom.c: Ditto.
5624 * ppc-linux-nat.c: Ditto.
5625 * ppc-linux-tdep.c: Ditto.
5626 * ppc-linux-tdep.h: Ditto.
5627 * ppcnbsd-tdep.c: Ditto.
5628 * ppcobsd-tdep.c: Ditto.
5629 * ppcobsd-tdep.h: Ditto.
5630 * ppc-sysv-tdep.c: Ditto.
5631 * ppc-tdep.h: Ditto.
5632 * printcmd.c: Ditto.
5633 * proc-abi.c: Ditto.
5634 * proc-flags.c: Ditto.
5635 * procfs.c: Ditto.
5636 * proc-utils.h: Ditto.
5637 * progspace.h: Ditto.
5638 * prologue-value.c: Ditto.
5639 * prologue-value.h: Ditto.
5640 * psympriv.h: Ditto.
5641 * psymtab.c: Ditto.
5642 * p-typeprint.c: Ditto.
5643 * p-valprint.c: Ditto.
5644 * ravenscar-sparc-thread.c: Ditto.
5645 * ravenscar-thread.c: Ditto.
5646 * ravenscar-thread.h: Ditto.
5647 * record.c: Ditto.
5648 * regcache.c: Ditto.
5649 * regcache.h: Ditto.
5650 * remote.c: Ditto.
5651 * remote-fileio.c: Ditto.
5652 * remote-fileio.h: Ditto.
5653 * remote.h: Ditto.
5654 * remote-m32r-sdi.c: Ditto.
5655 * remote-mips.c: Ditto.
5656 * remote-sim.c: Ditto.
5657 * rs6000-aix-tdep.c: Ditto.
5658 * rs6000-nat.c: Ditto.
5659 * rs6000-tdep.c: Ditto.
5660
0d7a18f7
MS
56612011-01-10 Michael Snyder <msnyder@vmware.com>
5662
5663 * charset.c (validate): Internationalization.
5664 * coffread.c (read_one_sym): Ditto.
5665 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5666 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5667 * inflow.c (new_tty): Ditto.
5668 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5669 * m32c-tdep.c (m32c_return_value): Ditto.
5670 * mep-tdep.c (mep_store_return_value): Ditto.
5671 * score-tdep.c (score7_fetch_insn): Ditto.
5672 * ser-mingw.c (pipe_windows_open): Ditto.
5673 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5674 * spu-tdep.c (spu_register_type): Ditto.
5675 * tracepoint.c (trace_find_command): Ditto.
5676 * valarith.c (value_pos): Ditto.
5677
9a153e0b
JB
56782011-01-10 Joel Brobecker <brobecker@adacore.com>
5679
5680 * ada-valprint.c (printstr): Minor comment reformatting.
5681
35ecd2d6
MS
56822011-01-08 Michael Snyder <msnyder@vmware.com>
5683
5684 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5685 markup.
5686
1777feb0
MS
56872011-01-08 Michael Snyder <msnyder@vmware.com>
5688
5689 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5690 * hppa-hpux-tdep.c: Ditto.
5691 * hppa-linux-nat.c: Ditto.
5692 * hppa-linux-tdep.c: Ditto.
5693 * hppanbsd-tdep.c: Ditto.
5694 * hppa-tdep.c: Ditto.
5695 * hppa-tdep.h: Ditto.
5696 * hpux-thread.c: Ditto.
5697 * i386-cygwin-tdep.c: Ditto.
5698 * i386-darwin-nat.c: Ditto.
5699 * i386gnu-nat.c: Ditto.
5700 * i386-linux-nat.c: Ditto.
5701 * i386-linux-tdep.c: Ditto.
5702 * i386-nat.c: Ditto.
5703 * i386-nat.h: Ditto.
5704 * i386nbsd-tdep.c: Ditto.
5705 * i386-sol2-nat.c: Ditto.
5706 * i386-stub.c: Ditto.
5707 * i386-tdep.c: Ditto.
5708 * i386-tdep.h: Ditto.
5709 * i387-tdep.c: Ditto.
5710 * ia64-linux-nat.c: Ditto.
5711 * ia64-linux-tdep.c: Ditto.
5712 * ia64-tdep.c: Ditto.
5713 * infcall.c: Ditto.
5714 * infcall.h: Ditto.
5715 * infcmd.c: Ditto.
5716 * inferior.c: Ditto.
5717 * inferior.h: Ditto.
5718 * infloop.c: Ditto.
5719 * inflow.c: Ditto.
5720 * infrun.c: Ditto.
5721 * interps.c: Ditto.
5722 * interps.h: Ditto.
5723 * iq2000-tdep.c: Ditto.
5724 * irix5-nat.c: Ditto.
5725 * jit.c: Ditto.
5726 * jit.h: Ditto.
5727 * jv-exp.y: Ditto.
5728 * jv-lang.c: Ditto.
5729 * jv-lang.h: Ditto.
5730 * jv-typeprint.c: Ditto.
5731 * jv-valprint.c: Ditto.
5732 * language.c: Ditto.
5733 * language.h: Ditto.
5734 * linespec.c: Ditto.
5735 * linux-fork.c: Ditto.
5736 * linux-nat.c: Ditto.
5737 * linux-thread-db.c: Ditto.
5738 * lm32-tdep.c: Ditto.
5739
025bb325
MS
57402011-01-08 Michael Snyder <msnyder@vmware.com>
5741
5742 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5743 * m2-lang.c: Ditto.
5744 * m2-typeprint.c: Ditto.
5745 * m2-valprint.c: Ditto.
5746 * m32c-tdep.c: Ditto.
5747 * m32r-linux-nat.c: Ditto.
5748 * m32r-rom.c: Ditto.
5749 * m32r-tdep.c: Ditto.
5750 * m32r-tdep.h: Ditto.
5751 * m68hc11-tdep.c: Ditto.
5752 * m58klinux-nat.c: Ditto.
5753 * m68k-tdep.c: Ditto.
5754 * m88k-tdep.c: Ditto.
5755 * m88k-tdep.h: Ditto.
5756 * machoread.c: Ditto.
5757 * macrocmd.c: Ditto.
5758 * macroexp.c: Ditto.
5759 * macrotab.c: Ditto.
5760 * main.c: Ditto.
5761 * maint.c: Ditto.
5762 * mdebugread.c: Ditto.
5763 * mdebugread.h: Ditto.
5764 * memattr.c: Ditto.
5765 * memattr.h: Ditto.
5766 * memory-map.h: Ditto.
5767 * mep-tdep.c: Ditto.
5768 * microblaze-rom.c: Ditto.
5769 * microblaze-tdep.c: Ditto.
5770 * minsyms.c: Ditto.
5771 * mips-irix-tdep.c: Ditto.
5772 * mips-linux-nat.c: Ditto.
5773 * mips-linux-tdep.c: Ditto.
5774 * mips-linux-tdep.h: Ditto.
5775 * mipsnbsd-nat.c: Ditto.
5776 * mipsnbsd-tdep.c: Ditto.
5777 * mipsread.c: Ditto.
5778 * mips-tdep.c: Ditto.
5779 * mips-tdep.h: Ditto.
5780 * mn10300-linux-tdep.c: Ditto.
5781 * mn10300-tdep.c: Ditto.
5782 * mn10300-tdep.h: Ditto.
5783 * monitor.c: Ditto.
5784 * monitor.h: Ditto.
5785 * moxie-tdep.c: Ditto.
5786 * moxie-tdep.h: Ditto.
5787 * mt-tdep.c: Ditto.
5788
1642781b
MF
57892011-01-08 Mike Frysinger <vapier@gentoo.org>
5790
5791 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5792
394b0adb
JB
57932011-01-08 Robert Millan <rmh@gnu.org>
5794
5795 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5796
b670013c
MS
57972011-01-07 Michael Snyder <msnyder@vmware.com>
5798
5799 * charset.c (_initialize_charset): Fix typo in string.
5800
a743e542
MS
58012011-01-07 Michael Snyder <msnyder@vmware.com>
5802
5803 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5804 for i18n.
f2eb0bc8 5805 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
5806 Split line so that operator goes to beginning of line.
5807 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5808 assignment out of if statement.
5809
0963b4bd
MS
58102011-01-07 Michael Snyder <msnyder@vmware.com>
5811
5812 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5813 * ada-lang.h: Ditto.
5814 * ada-tasks.c: Ditto.
5815 * ada-valprint.c: Ditto.
5816 * aix-threads.c: Ditto.
5817 * alpha-linux-nat.c: Ditto.
5818 * alpha-linux-tdep.c: Ditto.
5819 * alpha-mdebug-tdep.c: Ditto.
5820 * alpha-nat.c: Ditto.
5821 * alpha-osf1-tdep.c: Ditto.
5822 * alpha-tdep.c: Ditto.
5823 * alphabsd-nat.c: Ditto.
5824 * alphabsd-tdep.c: Ditto.
5825 * amd64-darwin-tdep.c: Ditto.
5826 * amd64-linux-nat.c: Ditto.
5827 * amd64-linux-tdep.c: Ditto.
5828 * amd64-sol2-tdep.c: Ditto.
5829 * amd64-tdep.c: Ditto.
5830 * amd64-fbsd-tdep.c: Ditto.
5831 * amd64-nbsd-tdep.c: Ditto.
5832 * amd64-obsd-tdep.c: Ditto.
5833 * amd64-linux-nat.c: Ditto.
5834 * amd64-linux-tdep.c: Ditto.
5835 * arm-tdep.c: Ditto.
5836 * arm-tdep.h: Ditto.
5837 * armnbsd-nat.c: Ditto.
5838 * avr-tdep.c: Ditto.
5839 * bfin-tdep.c: Ditto.
5840 * bsd-kvm.c: Ditto.
5841 * c-typeprintc: Ditto.
5842 * c-valprint.c: Ditto.
5843 * coff-pe-read.h: Ditto.
5844 * coffreead.c: Ditto.
5845 * cris-tdep.c: Ditto.
5846 * d-lang.c: Ditto.
5847 * darwin-nat-info.c: Ditto.
5848 * darwin-nat.c: Ditto.
5849 * dbug-rom.c: Ditto.
5850 * dbxread.c: Ditto.
5851 * dcache.c: Ditto.
5852 * dcache.h: Ditto.
5853 * dec-thread.c: Ditto.
5854 * defs.h: Ditto.
5855 * demangle.c: Ditto.
5856 * dicos-tdep.c: Ditto.
5857 * dictionary.c: Ditto.
5858 * dictionary.h: Ditto.
5859 * dink32-rom.c: Ditto.
5860 * disasm.c: Ditto.
5861 * doublest.c: Ditto.
5862 * dsrec.c: Ditto.
5863 * dummy-frame.c: Ditto.
5864 * dwarf2-frame.c: Ditto.
5865 * dwarf2expr.c: Ditto.
5866 * dwarf2loc.c: Ditto.
5867 * dwarf2read.c: Ditto.
5868 * elfread.c: Ditto.
5869 * environ.c: Ditto.
5870 * eval.c: Ditto.
5871 * event-top.h: Ditto.
5872 * exceptions.c: Ditto.
5873 * exceptions.h: Ditto.
5874 * exec.c: Ditto.
5875 * expprint.c: Ditto.
5876 * expression.h: Ditto.
5877 * f-exp.y: Ditto.
5878 * f-lang.c: Ditto.
5879 * f-lang.h: Ditto.
5880 * f-typeprint.c: Ditto.
5881 * f-valprint.c: Ditto.
5882 * fbsd-nat.c: Ditto.
5883 * findvar.c: Ditto.
5884 * fork-child.c: Ditto.
5885 * frame.c: Ditto.
5886 * frame.h: Ditto.
5887 * frv-linux-tdep.c: Ditto.
5888 * frv-tdep.c: Ditto.
5889 * gcore.c: Ditto.
5890 * gdb-stabs.h: Ditto.
5891 * gdb_assert.h: Ditto.
5892 * gdb_string.h: Ditto.
5893 * gdb_thread_db.h: Ditto.
5894 * gdb_wait.h: Ditto.
5895 * gdbarch.sh: Ditto.
5896 * gdbcore.h: Ditto.
5897 * gdbthread.h: Ditto.
5898 * gdbtypes.c: Ditto.
5899 * gdbtypes.h: Ditto.
5900 * gnu-nat.c: Ditto.
5901 * gnu-nat.h: Ditto.
5902 * gnu-v2-abi.c: Ditto.
5903 * gnu-v3-abi.c: Ditto.
5904 * go32-nat.c: Ditto.
5905 * gdbarch.c: Regenerate.
5906 * gdbarch.h: Regenerate.
5907
ac74f770
MS
59082011-01-07 Michael Snyder <msnyder@vmware.com>
5909
5910 * ax-gdb.c: Adjust some long output strings.
5911 * breakpoint.c: Ditto.
5912 * charset.c: Ditto.
5913 * cp-abi.c: Ditto.
5914 * infcall.c: Ditto.
5915 * infrun.c: Ditto.
5916 * linux-nat.c: Ditto.
5917 * solib-pa64.c: Ditto.
5918 * solib-som.c: Ditto.
5919
d8e22779
TT
59202011-01-06 Tom Tromey <tromey@redhat.com>
5921
5922 PR python/12367:
5923 * NEWS: Add item.
5924 * python/python.c (GdbMethods): Add "newest_frame" method.
5925 * python/python-internal.h (gdbpy_newest_frame): Declare.
5926 * python/py-frame.c (gdbpy_newest_frame): New function.
5927
a255712f
PP
59282010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5929
5930 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5931 * jit.c (jit_debug): New variable.
5932 (show_jit_debug): New function.
5933 (struct target_buffer): Use ULONGEST.
5934 (bfd_open_from_target_memory): Likewise.
5935 (jit_register_code, jit_inferior_init): Add debug output.
5936 (_initialize_jit): Register "debug jit" command.
5937
ccfc3d6e
TT
59382011-01-06 Tom Tromey <tromey@redhat.com>
5939
5940 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5941 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5942 and ARCH_FRAME.
5943
57126e4a
TT
59442011-01-06 Tom Tromey <tromey@redhat.com>
5945
5946 * python/py-frame.c (frapy_block): Use get_frame_block.
5947
16dfc9ce
JB
59482011-01-06 Joel Brobecker <brobecker@adacore.com>
5949
5950 Do not stop on SIGPRIO signals by default
5951 * infrun.c (_initialize_infrun): Unset signal_stop and
5952 signal_print for TARGET_SIGNAL_PRIO.
5953
b1ce2347
JB
59542011-01-06 Joel Brobecker <brobecker@adacore.com>
5955
5956 * ada-tasks.c: Fix style violation in comment.
5957
8f7e195f
JB
59582011-01-06 Joel Brobecker <brobecker@adacore.com>
5959
5960 * linespec.c (decode_compound, find_method): Remove trailing \n
5961 at end of error string.
5962 * solib-irix.c (irix_current_sos): Likewise.
5963 * varobj.c (uninstall_variable): Likewise.
5964
e9bdf92c
JB
59652011-01-06 Joel Brobecker <brobecker@adacore.com>
5966
5967 * copyright.py: New script.
5968 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5969 Launch emacs without exec'ing. Call copyright.py afterwards.
5970
3e43a32a
MS
59712011-01-05 Michael Snyder <msnyder@vmware.com>
5972
5973 * addrmap.c: Shorten lines of >= 80 columns.
5974 * arch-utils.c: Ditto.
5975 * arch-utils.h: Ditto.
5976 * ax-gdb.c: Ditto.
5977 * ax-general.c: Ditto.
5978 * bcache.c: Ditto.
5979 * blockframe.c: Ditto.
5980 * breakpoint.c: Ditto.
5981 * buildsym.c: Ditto.
5982 * c-lang.c: Ditto.
5983 * c-typeprint.c: Ditto.
5984 * charset.c: Ditto.
5985 * coffread.c: Ditto.
5986 * command.h: Ditto.
5987 * corelow.c: Ditto.
5988 * cp-abi.c: Ditto.
5989 * cp-namespace.c: Ditto.
5990 * cp-support.c: Ditto.
5991 * dbug-rom.c: Ditto.
5992 * dbxread.c: Ditto.
5993 * defs.h: Ditto.
5994 * dfp.c: Ditto.
5995 * dfp.h: Ditto.
5996 * dictionary.c: Ditto.
5997 * disasm.c: Ditto.
5998 * doublest.c: Ditto.
5999 * dwarf2-frame.c: Ditto.
6000 * dwarf2expr.c: Ditto.
6001 * dwarf2loc.c: Ditto.
6002 * dwarf2read.c: Ditto.
6003 * elfread.c: Ditto.
6004 * eval.c: Ditto.
6005 * event-loop.c: Ditto.
6006 * event-loop.h: Ditto.
6007 * exceptions.h: Ditto.
6008 * exec.c: Ditto.
6009 * expprint.c: Ditto.
6010 * expression.h: Ditto.
6011 * f-lang.c: Ditto.
6012 * f-valprint.c: Ditto.
6013 * findcmd.c: Ditto.
6014 * frame-base.c: Ditto.
6015 * frame-unwind.c: Ditto.
6016 * frame-unwind.h: Ditto.
6017 * frame.c: Ditto.
6018 * frame.h: Ditto.
6019 * gcore.c: Ditto.
6020 * gdb-stabs.h: Ditto.
6021 * gdb_assert.h: Ditto.
6022 * gdb_dirent.h: Ditto.
6023 * gdb_obstack.h: Ditto.
6024 * gdbcore.h: Ditto.
6025 * gdbtypes.c: Ditto.
6026 * gdbtypes.h: Ditto.
6027 * inf-ttrace.c: Ditto.
6028 * infcall.c: Ditto.
6029 * infcmd.c: Ditto.
6030 * inflow.c: Ditto.
6031 * infrun.c: Ditto.
6032 * inline-frame.h: Ditto.
6033 * language.c: Ditto.
6034 * language.h: Ditto.
6035 * libunwind-frame.c: Ditto.
6036 * libunwind-frame.h: Ditto.
6037 * linespec.c: Ditto.
6038 * linux-nat.c: Ditto.
6039 * linux-nat.h: Ditto.
6040 * linux-thread-db.c: Ditto.
6041 * machoread.c: Ditto.
6042 * macroexp.c: Ditto.
6043 * macrotab.c: Ditto.
6044 * main.c: Ditto.
6045 * maint.c: Ditto.
6046 * mdebugread.c: Ditto.
6047 * memattr.c: Ditto.
6048 * minsyms.c: Ditto.
6049 * monitor.c: Ditto.
6050 * monitor.h: Ditto.
6051 * objfiles.c: Ditto.
6052 * objfiles.h: Ditto.
6053 * osabi.c: Ditto.
6054 * p-typeprint.c: Ditto.
6055 * p-valprint.c: Ditto.
6056 * parse.c: Ditto.
6057 * printcmd.c: Ditto.
6058 * proc-events.c: Ditto.
6059 * procfs.c: Ditto.
6060 * progspace.c: Ditto.
6061 * progspace.h: Ditto.
6062 * psympriv.h: Ditto.
6063 * psymtab.c: Ditto.
6064 * record.c: Ditto.
6065 * regcache.c: Ditto.
6066 * regcache.h: Ditto.
6067 * remote-fileio.c: Ditto.
6068 * remote.c: Ditto.
6069 * ser-mingw.c: Ditto.
6070 * ser-tcp.c: Ditto.
6071 * ser-unix.c: Ditto.
6072 * serial.c: Ditto.
6073 * serial.h: Ditto.
6074 * solib-frv.c: Ditto.
6075 * solib-irix.c: Ditto.
6076 * solib-osf.c: Ditto.
6077 * solib-pa64.c: Ditto.
6078 * solib-som.c: Ditto.
6079 * solib-sunos.c: Ditto.
6080 * solib-svr4.c: Ditto.
6081 * solib-target.c: Ditto.
6082 * solib.c: Ditto.
6083 * somread.c: Ditto.
6084 * source.c: Ditto.
6085 * stabsread.c: Ditto.
6086 * stabsread.c: Ditto.
6087 * stack.c: Ditto.
6088 * stack.h: Ditto.
6089 * symfile-mem.c: Ditto.
6090 * symfile.c: Ditto.
6091 * symfile.h: Ditto.
6092 * symmisc.c: Ditto.
6093 * symtab.c: Ditto.
6094 * symtab.h: Ditto.
6095 * target-descriptions.c: Ditto.
6096 * target-memory.c: Ditto.
6097 * target.c: Ditto.
6098 * target.h: Ditto.
6099 * terminal.h: Ditto.
6100 * thread.c: Ditto.
6101 * top.c: Ditto.
6102 * tracepoint.c: Ditto.
6103 * tracepoint.h: Ditto.
6104 * ui-file.c: Ditto.
6105 * ui-file.h: Ditto.
6106 * ui-out.h: Ditto.
6107 * user-regs.c: Ditto.
6108 * user-regs.h: Ditto.
6109 * utils.c: Ditto.
6110 * valarith.c: Ditto.
6111 * valops.c: Ditto.
6112 * valprint.c: Ditto.
6113 * valprint.h: Ditto.
6114 * value.c: Ditto.
6115 * varobj.c: Ditto.
6116 * varobj.h: Ditto.
6117 * vec.h: Ditto.
6118 * xcoffread.c: Ditto.
6119 * xcoffsolib.c: Ditto.
6120 * xcoffsolib.h: Ditto.
6121 * xml-syscall.c: Ditto.
6122 * xml-tdesc.c: Ditto.
6123
9a2b4c1b
MS
61242011-01-05 Michael Snyder <msnyder@vmware.com>
6125
6126 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6127 * cli/cli-decode.c: Ditto.
6128 * cli/cli-dump.c: Ditto.
6129 * cli/cli-logging.c: Ditto.
6130 * cli/cli-script.c: Ditto.
6131 * cli/cli-setshow.c: Ditto.
6132 * common/signals.c: Ditto.
6133 * mi/mi-cmd-break.c: Ditto.
6134 * mi/mi-cmd-disas.c: Ditto.
6135 * mi/mi-cmd-stack.c: Ditto.
6136 * mi/mi-cmd-var.c: Ditto.
6137 * mi/mi-cmds.c: Ditto.
6138 * mi/mi-common.h: Ditto.
6139 * mi/mi-console.c: Ditto.
6140 * mi/mi-interp.c: Ditto.
6141 * mi/mi-main.c: Ditto.
6142 * osf-share/cma_attr.c: Ditto.
6143 * osf-share/cma_deb_core.h: Ditto.
6144 * osf-share/cma_debug_client.h: Ditto.
6145 * osf-share/cma_handle.h: Ditto.
6146 * osf-share/cma_mutex.h: Ditto.
6147 * osf-share/cma_stack_int.h: Ditto.
6148 * osf-share/cma_tcb_defs.h: Ditto.
6149 * python/py-auto-load.c: Ditto.
6150 * python/py-breakpoint.c: Ditto.
6151 * python/py-cmd.c: Ditto.
6152 * python/py-frame.c: Ditto.
6153 * python/py-objfile.c: Ditto.
6154 * python/py-param.c: Ditto.
6155 * python/py-progspace.c: Ditto.
6156 * python/py-symbol.c: Ditto.
6157 * python/py-value.c: Ditto.
6158 * python/python-internal.h: Ditto.
6159 * python/python.c: Ditto.
6160 * tui/tui-data.c: Ditto.
6161 * tui/tui-disasm.c: Ditto.
6162 * tui/tui-hooks.c: Ditto.
6163 * tui/tui-io.c: Ditto.
6164 * tui/tui-layout.c: Ditto.
6165 * tui/tui-regs.c: Ditto.
6166 * tui/tui-source.c: Ditto.
6167 * tui/tui-stack.c: Ditto.
6168 * tui/tui-win.c: Ditto.
6169 * tui/tui-windata.c: Ditto.
6170 * tui/tui-winsource.c: Ditto.
6171
44944448
JB
61722011-01-05 Joel Brobecker <brobecker@adacore.com>
6173
6174 * configure.ac, gdb.1: Copyright year update.
6175
ebedcab5
JK
61762011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6177
6178 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6179 this_pc_in_block, morestack_msym and morestack_name. Check for
6180 "__morestack" minimal symbol there.
6181
e5cc9f32
JB
61822011-01-03 Joel Brobecker <brobecker@adacore.com>
6183
6184 * symfile.c (find_sym_fns): Add call to dont_repeat.
6185
7b6bb8da
JB
61862011-01-01 Joel Brobecker <brobecker@adacore.com>
6187
6188 Copyright year update in most files (performed by copyright.sh).
6189
71ce852c
JB
61902011-01-01 Joel Brobecker <brobecker@adacore.com>
6191
6192 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 6193
c3c1ebe8 6194For older changes see ChangeLog-2010.
c906108c
SS
6195\f
6196Local Variables:
6197mode: change-log
6198left-margin: 8
6199fill-column: 74
6200version-control: never
57da7796 6201coding: utf-8
c906108c 6202End:
This page took 1.513027 seconds and 4 git commands to generate.