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