Add a new "python-interactive" command that starts a standard
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8315665e
YPK
12012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2
3 Add a new "python-interactive" command that starts a standard
4 Python interactive prompt with "pi" as alias, and add "py" as
5 an alias to "python".
6 * NEWS: Mention the new commands.
7 * doc/gdb.texinfo (Python Commands): Document the new
8 commands.
9 * python/python.c (eval_python_command): New function.
10 (python_interactive_command): For "python-interactive" with
11 arguments, call eval_python_command. For "python-interactive"
12 without arguments, call PyRun_InteractiveLoop.
13 (_initialize_python): Add "python-interactive" command with
14 "pi" as alias, and add "py" as an alias to "python".
15
522002f9
TT
162012-08-22 Tom Tromey <tromey@redhat.com>
17
18 * defs.h (quit_flag): Don't declare.
19 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
20 (QUIT): Use new functions.
21 * event-top.c (command_handler): Use clear_quit_flag.
22 (handle_sigint): Use set_quit_flag.
23 (async_request_quit): Use check_quit_flag. Don't check
24 immediate_quit.
25 * exceptions.c (throw_exception): Use clear_quit_flag.
26 * main.c (captured_main): Use clear_quit_flag.
27 * python/python.c (clear_quit_flag, set_quit_flag)
28 (check_quit_flag): New functions.
29 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
30 clear_quit_flag.
31 * remote.c (remote_wait_as): Use check_quit_flag,
32 clear_quit_flag.
33 (remote_start_remote): Call QUIT.
34 * symfile.c (load_progress): Use check_quit_flag.
35 * top.c (command_loop): Use clear_quit_flag.
36 (command_line_input): Call QUIT.
37 * utils.c (quit_flag): Conditionally define.
38 (clear_quit_flag, check_quit_flag, set_quit_flag): New
39 functions.
40 (prompt_for_continue): Call QUIT. Use quit, not
41 async_request_quit.
42 * remote-mips.c (mips_expect_timeout): Call QUIT.
43 * monitor.c (monitor_expect): Call QUIT.
44
b583003e
TT
452012-08-22 Tom Tromey <tromey@redhat.com>
46
47 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
48 (async_init_signals): Update.
49 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
50 (SIGWINCH_HANDLER_BODY): Remove.
51
e1507e95
TT
522012-08-22 Tom Tromey <tromey@redhat.com>
53
54 * jit.c (jit_object_close_impl): Don't malloc the objfile
55 name.
56 * objfiles.c (allocate_objfile): Don't malloc the objfile
57 name.
58 (free_objfile): Don't free the objfile name.
59 * objfiles.h (struct objfile) <name>: Update comment.
60 * symfile.c (reread_symbols): Fix reference counting. Don't
61 malloc objfile name.
62
1c00ec6b
TT
632012-08-22 Tom Tromey <tromey@redhat.com>
64
65 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
66 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
67 (symfile_bfd_open): Likewise.
68 (generic_load): Likewise.
69 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
70 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
71 gdb_bfd_open.
72 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
73 Use gdb_bfd_open.
74 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
75 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
76 (pmon_load_fast): Likewise.
77 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
78 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
79 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
80 (macho_check_dsym): Likewise.
81 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
82 (m32r_upload_command): Likewise.
83 * gdb_bfd.h (gdb_bfd_cache): Declare.
84 * gdb_bfd.c (struct gdb_bfd_data): New.
85 (gdb_bfd_cache): New global.
86 (struct gdb_bfd_cache_search): New.
87 (hash_bfd): New function.
88 (eq_bfd): Likewise.
89 (gdb_bfd_open): Likewise.
90 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
91 (gdb_bfd_unref): Remove closed BFD from cache. Update for
92 gdb_bfd_data.
93 * exec.c (exec_file_attach): Use gdb_bfd_open.
94 * dsrec.c (load_srec): Use gdb_bfd_open.
95
6532ff36
TT
962012-08-22 Tom Tromey <tromey@redhat.com>
97
98 * dwarf2read.c (macro_start_file): Update.
99 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
100 (free_objfile_per_bfd_storage): Destroy macro_cache.
101 (allocate_objfile, free_objfile): Update.
102 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
103 New field.
104 (struct objfile) <macro_cache>: Remove.
105 * symfile.c (reread_symbols): Update.
106 * symmisc.c (print_symbol_bcache_statistics): Update.
107 (print_objfile_statistics): Update.
108
706e3705
TT
1092012-08-22 Tom Tromey <tromey@redhat.com>
110
111 * elfread.c (elf_symtab_read): Update.
112 * objfiles.c (objfiles_bfd_data): New global.
113 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
114 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
115 (allocate_objfile, free_objfile): Update.
116 (_initialize_objfiles): Initialize objfiles_bfd_data.
117 * objfiles.h (struct objfile_per_bfd_storage): New.
118 (struct objfile) <per_bfd>: New field.
119 <filename_cache>: Remove.
120 (set_objfile_per_bfd): Declare.
121 * symfile.c (reread_symbols): Update. Call
122 set_objfile_per_bfd.
123 (allocate_symtab): Update.
124 * symmisc.c (print_symbol_bcache_statistics): Update.
125 (print_objfile_statistics): Print the size of the BFD obstack.
126
e992eda4
TT
1272012-08-22 Tom Tromey <tromey@redhat.com>
128
129 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
130 * gdb_bfd.c: Use DEFINE_REGISTRY.
131 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
132 (gdb_bfd_ref): Call bfd_alloc_data.
133 (gdb_bfd_unref): Call bfd_free_data.
134
6b81941e
TT
1352012-08-22 Tom Tromey <tromey@redhat.com>
136
137 * registry.h (struct registry_fields): New.
138 (REGISTRY_FIELDS): Redefine.
139 (REGISTRY_ACCESS_FIELD): New macro.
140 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
141 functions.
142
8e260fc0
TT
1432012-08-22 Tom Tromey <tromey@redhat.com>
144
145 * auto-load.c (_initialize_auto_load): Update.
146 * solib-svr4.c (_initialize_svr4_solib): Update
147 * solib-dsbt.c (_initialize_dsbt_solib): Update.
148 * solib-darwin.c (_initialize_darwin_solib): Update.
149 * registry.h: New file.
150 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
151 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
152 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
153 (register_program_space_data_with_cleanup)
154 (register_program_space_data, program_space_alloc_data)
155 (clear_program_space_data, set_program_space_data)
156 (program_space_data): Don't declare.
157 * progspace.c: Use DEFINE_REGISTRY.
158 (struct program_space_data, struct
159 program_space_data_registration, struct
160 program_space_data_registry, program_space_data_registry)
161 (register_program_space_data_with_cleanup)
162 (register_program_space_data, program_space_alloc_data)
163 (program_space_free_data, clear_program_space_data)
164 (set_program_space_data, program_space_data): Remove.
165 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
166 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
167 (register_objfile_data_with_cleanup, register_objfile_data)
168 (clear_objfile_data, set_objfile_data, objfile_data): Don't
169 declare.
170 * objfiles.c: Use DEFINE_REGISTRY.
171 (struct objfile_data, struct objfile_data_registration, struct
172 objfile_data_registry, objfile_data_registry)
173 (register_objfile_data_with_cleanup, register_objfile_data)
174 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
175 (set_objfile_data, objfile_data): Remove.
176 (_initialize_objfiles): Update.
177 * jit.c (_initialize_jit): Update.
178 * inflow.c (_initialize_inflow): Update.
179 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
180 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
181 (register_inferior_data_with_cleanup, register_inferior_data)
182 (clear_inferior_data, set_inferior_data, inferior_data): Don't
183 declare.
184 * inferior.c: Use DEFINE_REGISTRY.
185 (struct inferior_data, struct inferior_data_registration, struct
186 inferior_data_registry, inferior_data_registry)
187 (register_inferior_data_with_cleanup, register_inferior_data)
188 (inferior_alloc_data, inferior_free_data clear_inferior_data)
189 (set_inferior_data, inferior_data): Remove.
190 * auxv.c (_initialize_auxv): Update.
191 * ada-lang.c (_initialize_ada_language): Update.
192 * breakpoint.c (_initialize_breakpoint): Update.
193 * i386-nat.c (i386_use_watchpoints): Update.
194
ed9eebaf
TT
1952012-08-22 Tom Tromey <tromey@redhat.com>
196
197 * exec.c (exec_close, exec_file_attach): Update.
198 (add_to_section_table): Initialize 'key' field.
199 (add_target_sections, remove_target_sections): Add 'key' argument.
200 * exec.h (add_target_sections, remove_target_sections): Add
201 'key' argument.
202 * solib.c (solib_map_sections, update_solib_list, clear_solib)
203 (reload_shared_libraries_1): Update.
204 * target.h (struct target_section) <key>: New field.
205
2f2e97fa
TT
2062012-08-22 Tom Tromey <tromey@redhat.com>
207
208 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
209
b3dbbd6f
PM
2102012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
211
212 * symfile.c (allocate_symtab): Use host_address_to_string
213 function instead of cast of pointer to long which is not
214 compatible with x86_64-w64-mingw32 build.
215
f94363d7
AP
2162012-08-19 Andrew Pinski <apinski@cavium.com>
217
218 * mips-tdep.c (is_octeon): New function.
219 (is_octeon_bbit_op): New function.
220 (mips32_next_pc): Handle Octeon's bbit instructions.
221 (mips32_instruction_has_delay_slot): Likewise.
222
78a59c2f
AP
2232012-08-19 Andrew Pinski <apinski@cavium.com>
224
225 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
226 before the function.
227
4f5bcb50
AP
2282012-08-19 Andrew Pinski <apinski@cavium.com>
229
230 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
231
e5afdbd7
KS
2322012-08-19 Keith Seitz <keiths@redhat.com>
233
234 PR c++/14365
235 * c-typeprint.c (c_type_print_varspec_prefix): Pass
236 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
237
13c9750e
EZ
2382012-08-18 Eli Zaretskii <eliz@gnu.org>
239
240 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
241 The typo broke "make TAGS".
242
db761810 2432012-08-17 Joel Brobecker <brobecker@adacore.com>
244
245 GDB 7.5 released.
246
a451cb65
KS
2472012-08-17 Keith Seitz <keiths@redhat.com>
248
249 PR c++/13356
250 * gdbtypes.c (strict_type_checking): New variable.
251 (show_strict_type_checking): New function.
252 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
253 if strict type checking is disabled.
254 (_initialize_gdbtypes): Add "check type" subcommand.
255 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
256
2572012-08-17 Keith Seitz <keiths@redhat.com>
258
259 * language.h (type_mode): Remove.
260 (type_check): Remove.
261 (struct language_defn): Remove la_type_check.
262 (STRICT_TYPE): Remove unused macro.
263 (type_error): Remove.
264 * language.c (set_type_range_case): Renamed to ...
265 (set_range_case): ... this. Update all callers.
266 Remove type_mode/type_check.
267 (type_mode): Remove.
268 (type_check): Remove.
269 (show_type_command): Remove.
270 (set_type_command): Remove.
271 (language_info): Remove type checking output.
272 (type_error): Remove unused function.
273 (range_error): Update comment.
274 (unknown_language_defn): Remove la_type_check.
275 (auto_language_defn): Likewise.
276 (local_language_defn): Likewise.
277 (_initialize_language): Remove "check type" subcommand.
278 * ada-lang.c (ada_language_defn): Remove la_type_check.
279 * c-lang.c (c_language_defn): Likewise.
280 (cplus_language_defn): Likewise.
281 (asm_language_defn): Likewise.
282 (minimal_language_defn): Likewise.
283 * d-lang.c (d_language_defn): Likewise.
284 * f-lang.c (f_language_defn): Likewise.
285 * go-lang.c (go_language_defn): Likewise.
286 * jv-lang.c (java_language_defn): Likewise.
287 * m2-lang.c (m2_language_defn): Likewise.
288 * objc-lang.c (objc_language_defn): Likewise.
289 * opencl-lang.c (opencl_language_defn): Likewise.
290 * p-lang.c (pascal_language_defn): Likewise.
291
dbf6a605
MF
2922012-08-16 Mike Frysinger <vapier@gentoo.org>
293
294 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
295
973e3cf7
JB
2962012-08-16 Joel Brobecker <brobecker@adacore.com>
297
298 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
299 New function.
300 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
301 using the regache. Use ia64_hpux_get_register_from_save_state_t
302 to access the bsp and bspstore registers if not.
303
d80ee84f
JB
3042012-08-16 Joel Brobecker <brobecker@adacore.com>
305
306 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
307 * breakpoint.c (detach_breakpoints): Change pid parameter into
308 a ptid. Adjust code accordingly.
309 * infrun.c (handle_inferior_event): Delete variable child_pid.
310 Update call to detach_breakpoints to pass the child ptid for
311 fork events.
312 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
313 assert that inferior_ptid's lwp is zero.
314 (linux_handle_extended_wait): Update call to detach_breakpoints.
315 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
316 detach_breakpoints.
317
2dcc6086
JB
3182012-08-16 Joel Brobecker <brobecker@adacore.com>
319
320 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
321 parent, only call detach_breakpoints if tts.tts_event ==
322 TTEVT_VFORK.
323
0c92d8c1
JB
3242012-08-16 Joel Brobecker <brobecker@adacore.com>
325
326 * dwarf2-frame.c (dwarf2_frame_cache): Use
327 get_frame_address_in_block instead of get_frame_pc as
328 the bound for executing the frame's FDE.
329
6b1755ce
YQ
3302012-08-16 Yao Qi <yao@codesourcery.com>
331
332 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
333 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
334 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
335 (c_type_print_varspec_suffix): Likewise.
336 * eval.c (evaluate_subexp_standard): Likewise.
337 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
338 (f_type_print_varspec_suffix): Likewise.
339 * gdbtypes.c (is_scalar_type): Likewise.
340 (recursive_dump_type): Likewise.
341 * infcall.c (value_arg_coerce): Likewise.
342 * m2-valprint.c (m2_val_print): Likewise.
343 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
344 (pascal_type_print_varspec_suffix): Likewise.
345 (pascal_type_print_base): Likewise.
346 * p-valprint.c (pascal_val_print): Likewise.
347 (pascal_val_print): Likewise.
348 * valops.c (value_slice): Likewise.
349 * valprint.c (scalar_type_p): Likewise.
350 * valarith.c (value_bitstring_subscript): Remove.
351 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
352 Remove comment on TYPE_CODE_BITSTRING.
353
354 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
355 TYPE_CODE_BITSTRING.
356
357 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
358 slot 0.
359
8acc4065
YQ
3602012-08-16 Yao Qi <yao@codesourcery.com>
361
362 * tracepoint.c (trace_find_none_command): Remove.
363 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
364
8128fd8e
YQ
3652012-08-16 Yao Qi <yao@codesourcery.com>
366
367 * remote.c (handle_notification): Remove parameter 'length'.
368 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
369
2873700e
KS
3702012-08-15 Keith Seitz <keiths@redhat.com>
371
372 * gdbtypes.c (opaque_type_resolution): Make static.
373 Add missing comment.
374 (overload_debug): Add missing comment.
375 (show_opaque_type_resolution): Likewise.
376 (show_overload_debug): Likewise.
377 (print_bit_vector): Remove unnecessary forward declaration.
378 (print_arg_types): Likewise.
379 (dump_fn_fieldlists): Likewise.
380 (print_cplus_stuff): Likewise.
381
b82d08cd
TT
3822012-08-15 Tom Tromey <tromey@redhat.com>
383
384 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
385 (gdb_bfd_ref): Initialize new field.
386 (gdb_bfd_unref): Unref the archive BFD.
387 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
388 parent archive.
389
db6573d6
TT
3902012-08-15 Tom Tromey <tromey@redhat.com>
391
392 PR python/14387:
393 * python/py-bpevent.c (create_breakpoint_event_object): Update
394 comment.
395 * python/py-event.c (evpy_add_attribute): Update comment.
396 * python/py-exitedevent.c (create_exited_event_object): Fix
397 reference counting and error handling.
398 * python/py-newobjfileevent.c (create_new_objfile_event_object):
399 Fix reference counting.
400 * python/py-signalevent.c (create_signal_event_object): Fix
401 reference counting and error handling.
402 * python/py-stopevent.c (emit_stop_event): Fix reference
403 counting.
404 * python/py-threadevent.c (get_event_thread): Return a
405 borrowed reference.
406 * python/py-type.c (convert_field): Fix reference counting.
407
a036ba48
TT
4082012-08-15 Tom Tromey <tromey@redhat.com>
409
410 * dwarf2read.c (dwarf_decode_macro_bytes)
411 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
412 as hash key.
413
486c7739
MF
4142012-08-14 Mike Frysinger <vapier@gentoo.org>
415
416 * infcmd.c (_initialize_infcmd): Update help text for the signal,
417 stepi, nexti, finish, next, step, jump, and continue commands.
418 * infrun.c (_initialize_infrun): Update help text for the handle
419 command.
420
4cf93a03
DE
4212012-08-14 Doug Evans <dje@google.com>
422
70b099cf
DE
423 * gdbtypes.c (struct extra): Delete, unused.
424
5212577a
DE
425 * gdbtypes.c: Whitespace cleanup.
426 (address_space_name_to_int): Remove "extern" from definition.
427 (_initialize_gdbtypes): Declare with initialize_file_ftype.
428
4cf93a03
DE
429 * gdbtypes.c (make_pointer_type): Remove redundant setting of
430 TYPE_POINTER_TYPE (type).
431
3756ef7e
GB
4322012-08-14 Gary Benson <gbenson@redhat.com>
433
434 * solib-svr4.c (svr4_free_library_list): Use free_so.
435
40d72643
MF
4362012-08-13 Mike Frysinger <vapier@gentoo.org>
437
438 * .gitignore: Add go-exp.c.
439
f47f77df
DE
4402012-08-13 Doug Evans <dje@google.com>
441
442 * value.c (show_convenience): Tweak comment.
443 (_initialize_values): Mention convenience functions in the help text
444 for "show convenience".
445
7507c54a
YQ
4462012-08-13 Yao Qi <yao@codesourcery.com>
447
448 * std-operator.def: Remove TERNOP_SLICE_COUNT.
449 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
450 TERNOP_SLICE_COUNT.
451 * eval.c (evaluate_subexp_standard): Likewise.
452 * expprint.c (print_subexp_standard): Likewise.
453 (dump_subexp_body_standard): Likewise.
454 * parse.c (operator_length_standard): Likewise.
455
5cad9736
YQ
4562012-08-13 Yao Qi <yao@codesourcery.com>
457
458 * std-operator.def: Remove OP_BITSTRING.
459 * breakpoint.c (watchpoint_exp_is_const): Update.
460 * eval.c (evaluate_subexp_standard): Remove handling to
461 OP_BITSTRING.
462 * expprint.c (print_subexp_standard): Likewise.
463 (dump_subexp_body_standard): Likewise.
464 * parse.c (operator_length_standard): Likewise.
465 * valops.c (value_bitstring): Remove.
466 * value.h: Remove the declaration of 'value_bitstring'.
467
bad7670a
SDJ
4682012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
469
470 * linespec.c (find_methods): Remove unused variables `i1' and
471 `name_len'.
472 (decode_line_full): Likewise for `arg_start'.
473
d9dce7fa
SDJ
4742012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
475
476 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
477 (zlib_decompress_section): Likewise for `section_data'.
478 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
479
a72c3253
DE
4802012-08-10 Doug Evans <dje@google.com>
481
482 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
483 * NEWS: Document them.
484 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
485 function/strfns.py.
486 * python/py-type.c (typy_array_1): New function.
487 (typy_array): Call it.
488 (typy_vector): New function.
489 (type_object_methods): Add "vector".
490 * python/lib/gdb/function/__init__.py: New file.
491 * python/lib/gdb/function/strfns.py: New file.
492
200bc880
SP
4932012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
494
495 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
496 for TYPE_FIELD_BITPOS.
497 (typy_get_sizeof): Likewise for TYPE_LENGTH.
498
de0bea00
MF
4992012-08-10 Mike Frysinger <vapier@gentoo.org>
500
501 PR cli/10436:
502 * common/vec.h (VEC_merge): Define.
503 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
504 (DEF_VEC_ALLOC_FUNC_P): Likewise.
505 (DEF_VEC_ALLOC_FUNC_O): Likewise.
506 * completer.c: Include gdb_signals.h.
507 (signal_completer): Define.
508 * completer.h (signal_completer): Add prototype.
509 * infcmd.c (_initialize_infcmd): Assign the command
510 completer for "signal" to handle_completer.
511 * infrun.c: Include completer.h.
512 (handle_completer): Define.
513 (_initialize_infrun): Declare a new local variable c. Store the
514 result of add_com("handle") to it. Assign the command
515 completer for "handle" to handle_completer.
516
5b9afe8a
YQ
5172012-08-09 Yao Qi <yao@codesourcery.com>
518
519 * cli/cli-decode.c (set_cmd_prefix): New.
520 (lookup_cmd_for_prefixlist): New.
521 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
522 of each cmd_list_element in *prefixlist.
523 (add_setshow_cmd_full): set_cmd_prefix.
524 (add_alias_cmd): Likewise.
525 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
526 Declare 'auto_boolean_enums'.
527 * cli/cli-setshow.c: Include "observer.h".
528 (notify_command_param_changed_p): New.
529 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
530 Remove 'static'.
531 (do_setshow_command): Split it to ...
532 (do_set_command, do_show_command): ... them. New.
533 (do_set_command): Call observer_notify_command_param_changed if
534 notify_command_param_changed_p returns true.
535 (cmd_show_list): Caller update.
536 * auto-load.c (set_auto_load_cmd): Likewise.
537 * remote.c (show_remote_cmd): Likewise.
538 * cli/cli-setshow.h: Update declarations.
539 * top.c (execute_command): Call do_set_command and do_show_command.
540
541 * NEWS: Mention new MI notification.
542 * mi/mi-interp.c: Declare mi_command_param_changed.
543 (mi_interpreter_init): Attach mi_command_param_changed to
544 observer command_param_changed.
545 (mi_command_param_changed): New.
546 Remove mi_suppress_breakpoint_notifications.
547 Define global variable mi_suppress_notification.
548 (mi_breakpoint_created): Update.
549 (mi_breakpoint_deleted): Likewise.
550 (mi_breakpoint_modified): Likewise.
551 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
552 'gdb-set' and set mi_suppress_notification.
553 * mi/mi-main.h: (mi_suppress_notification): New struct.
554
1969df89
JK
5552012-08-09 Andreas Tobler <andreast@fgznet.ch>
556 Jan Kratochvil <jan.kratochvil@redhat.com>
557
558 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
559
8bfd80db
YQ
5602012-08-09 Yao Qi <yao@codesourcery.com>
561
562 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
563 (skiplist): Move it to skip.c.
564 (init_cmd_lists): Remove code setting enablebreaklist and
565 skiplist to NULL.
566 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
567 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
568 skiplist.
569 * gdbcmd.h: Likewise.
570 * skip.c (_initialize_step_skip): Move 'skiplist' from
571 cli/cli-cmds.c.
572
28578e6b
YQ
5732012-08-09 Yao Qi <yao@codesourcery.com>
574
575 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
576 * gnu-nat.c, symfile.c: Likewise.
577
260c0b2a
DE
5782012-08-08 Aaron Gamble <agamble@google.com>
579
580 * utils.c (prompt_for_continue_wait_time): New static global.
581 (make_command_stats_cleanup): Initialize it.
582 (report_command_stats): Subtract time waiting for user.
583 (prompt_for_continue): Track time waiting for user.
584 (defaulted_query): Track time waiting for user.
585
4f485ebc
DE
5862012-08-08 Doug Evans <dje@google.com>
587
588 * eval.c (evaluate_subexp_standard): Fix thinko in handling
589 UNOP_MEMVAL_TYPE.
590 * expprint.c (print_subexp_standard, case OP_TYPE): New.
591 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
592 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
593 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
594 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
595 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
596 elt.
597 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
598 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
599 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
600 (dump_prefix_expression): Handle OP_TYPE.
601
2acf2b39
KS
6022012-08-08 Keith Seitz <keiths@redhat.com>
603
604 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
605 addr_start.
606
e6712ff1
DE
6072012-08-08 Doug Evans <dje@google.com>
608
609 * linux-thread-db.c: #include "gdb_vecs.h".
610 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
611 updated.
612 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
613 (thread_db_load_search): Use a vector to iterate over path elements.
614 Handle text appearing after "$pdir".
615
616 * gdb_string.h: Moved to ...
617 * common/gdb_string.h: ... here.
618 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
619 gdb_string.h and gdb_assert.h.
620
ab854e54
YQ
6212012-08-08 Yao Qi <yao@codesourcery.com>
622
623 * tic6x-tdep.c (tic6x_register_to_value): Remove.
624 (tic6x_value_to_register): Likewise.
625 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
626 and set_gdbarch_value_to_register.
627
4f69f4c2
JK
6282012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
629 Jean-Marc Saffroy <saffroy@gmail.com>
630
631 PR 11804
632 * defs.h (find_memory_region_ftype): New comment. New arg modified.
633 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
634 * gcore.c (gcore_create_callback): New function comment. Add modified
635 parameter. Only write modified regions. Set SEC_READONLY exactly
636 according to MODIFIED.
637 (objfile_find_memory_regions): Ignore separate debug info files. Ass
638 the passed modified value to FUNC.
639 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
640 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
641 first. New variables modified and has_anonymous. Parse the lines of
642 smaps file. Add the passed MODIFIED value to FUNC.
643 * procfs.c (find_memory_regions_callback): Add the passed modified
644 value.
645
78ac5f83
TT
6462012-08-06 Tom Tromey <tromey@redhat.com>
647
648 * dwarf2-frame.c (clear_pointer_cleanup): New function.
649 (dwarf2_frame_cache): Use it.
650 * frame-unwind.h (frame_sniffer_ftype): Document prologue
651 cache initialization constraint.
652
2c12abee
TT
6532012-08-06 Tom Tromey <tromey@redhat.com>
654
655 PR python/14386:
656 * varobj.c (update_dynamic_varobj_children): Don't call
657 PyIter_Check.
658
4979d7f0
TT
6592012-08-06 Tom Tromey <tromey@redhat.com>
660
661 PR cli/14392:
662 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
663
f3c8a52a
JK
6642012-08-06 Nathaniel Flath <flat0103@gmail.com>
665
666 * NEWS: New entry for 'cd' default parameters.
667 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
668
5a1cf4d6
TT
6692012-08-03 Tom Tromey <tromey@redhat.com>
670
671 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
672 return.
673
7c3270ae
UW
6742012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
675
676 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
677 to attempting lseek/write.
678 (inf_child_fileio_pread): Likewise for pread.
679
ccce17b0
YQ
6802012-08-02 Yao Qi <yao@codesourcery.com>
681
682 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
683 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
684 add_setshow_zinteger_cmd.
685 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
686 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
687 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
688 instead of add_setshow_zinteger_cmd.
689 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
690 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
691 instead of add_setshow_zinteger_cmd.
692 * frame.c (frame_debug): Add 'unsigned'.
693 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
694 add_setshow_zinteger_cmd.
695 * frame.h: Update the declaration of 'frame_debug'.
696 * gdbtypes.c (overload_debug): Add 'unsigned'.
697 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
698 add_setshow_zinteger_cmd.
699 * inferior.h: Update declaration of 'debug_infrun'.
700 * infrun.c (debug_infrun): Add 'unsigned'.
701 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
702 add_setshow_zinteger_cmd.
703 * jit.c (jit_debug): Add 'unsigned'.
704 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
705 add_setshow_zinteger_cmd.
706 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
707 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
708 instead of add_setshow_zinteger_cmd.
709 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
710 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
711 add_setshow_zinteger_cmd.
712 * machoread.c (mach_o_debug_level): Add 'unsigned'.
713 (_initialize_machoread): Call add_setshow_zuinteger_cmd
714 instead of add_setshow_zinteger_cmd.
715 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
716 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
717 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
718 intead of add_setshow_zinteger_cmd.
719 * mips-tdep.c (mips_debug): Add 'unsigned'.
720 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
721 instead of add_setshow_zinteger_cmd.
722 * monitor.c (monitor_debug): Add 'unsigned'.
723 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
724 add_setshow_zinteger_cmd.
725 * observer.c (observer_debug): Add 'unsigned'.
726 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
727 add_setshow_zinteger_cmd.
728 * parse.c (expressiondebug): Add 'unsigned'.
729 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
730 add_setshow_zinteger_cmd.
731 * record.c (record_debug): Add 'unsigned'.
732 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
733 add_setshow_zinteger_cmd.
734 * record.h: Update the declaration of 'record_debug'.
735 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
736 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
737 add_setshow_zinteger_cmd.
738 * serial.c (global_serial_debug_p): Add 'unsigned'.
739 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
740 add_setshow_zinteger_cmd.
741 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
742 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
743 add_setshow_zinteger_cmd.
744 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
745 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
746 add_setshow_zinteger_cmd.
747 * target.c (targetdebug): Add 'unsigned'.
748 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
749 add_setshow_zinteger_cmd.
750 * valops.c (overload_debug): Add 'unsigned'.
751 * varobj.c (varobjdebug): Add 'unsigned'.
752 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
753 add_setshow_zinteger_cmd.
754 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
755 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
756 instead of add_setshow_zinteger_cmd.
757
758 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
759 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
760 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
761 instead of add_setshow_zinteger_cmd.
762 * gdbarch.c, gdbarch.h: Re-generated.
763
95b07c96
YQ
7642012-08-02 Yao Qi <yao@codesourcery.com>
765
766 * nto-tdep.c: Don't include cli/cli-decode.h and
767 cli/cli-cmds.h.
768 (_initialize_nto_tdep): Remove.
769 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
770 Remove field.
771 Remove macro nto_internal_debugging.
772
57295b0b
RH
7732012-08-01 Richard Henderson <rth@redhat.com>
774
775 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
776 (mep-*-*) [gdb_target_obs]: Likewise.
777
f782ad9b
AS
7782012-07-31 Andreas Schwab <schwab@linux-m68k.org>
779
780 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
781 linux_get_siginfo_type.
782
a14dd77e
JK
7832012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
784
785 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
786 AT_ENTRY_POINT.
787 (call_function_by_hand) <ON_STACK>: Call write_memory with
788 gdbarch_breakpoint_from_pc, if possible.
789 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
790 here.
791
1467929f
YQ
7922012-07-31 Yao Qi <yao@codesourcery.com>
793
794 * tracepoint.c: Add 'static' for some variables.
795
70976b65
YQ
7962012-07-31 Yao Qi <yao@codesourcery.com>
797
798 * go32-nat.c: Declare _initialize_go32_nat.
799 * ser-go32.c: Declare _initialize_ser_dos.
800 * top.c (do_chdir_cleanup): Add 'static'.
801
eff9c3e6
KS
8022012-07-30 Keith Seitz <keiths@redhat.com>
803
804 * linespec.c (linespec_lex_number): A number followed
805 by quotes is a valid number, too.
806
728400d7
TT
8072012-07-30 Tom Tromey <tromey@redhat.com>
808
809 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
810
fcf303ab
UW
8112012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
812
813 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
814 attempt to 4-byte-align HW breakpoint addresses for Thumb.
815
4e969b4f
AB
8162012-07-30 Andrew Burgess <aburgess@broadcom.com>
817
818 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
819 invalid or reevaluated to prevent prevent references to possibly
820 delete'd type objects being left in the varobj.
821
c4bfde41
JK
8222012-07-27 Tom Tromey <tromey@redhat.com>
823 Jan Kratochvil <jan.kratochvil@redhat.com>
824
825 * copying.awk: Print buffer-read-only and vi ro markers.
826 * copying.c: Rebuild.
827 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
828 * gdbarch.c, gdbarch.h: Rebuild.
829 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
830 buffer-read-only and vi ro markers.
831 * features/arm-with-iwmmxt.c: Rebuild.
832 * features/arm-with-m-fpa-layout.c: Rebuild.
833 * features/arm-with-m-vfp-d16.c: Rebuild.
834 * features/arm-with-m.c: Rebuild.
835 * features/arm-with-neon.c: Rebuild.
836 * features/arm-with-vfpv2.c: Rebuild.
837 * features/arm-with-vfpv3.c: Rebuild.
838 * features/i386/amd64-avx-linux.c: Rebuild.
839 * features/i386/amd64-avx.c: Rebuild.
840 * features/i386/amd64-linux.c: Rebuild.
841 * features/i386/amd64.c: Rebuild.
842 * features/i386/i386-avx-linux.c: Rebuild.
843 * features/i386/i386-avx.c: Rebuild.
844 * features/i386/i386-linux.c: Rebuild.
845 * features/i386/i386-mmx-linux.c: Rebuild.
846 * features/i386/i386-mmx.c: Rebuild.
847 * features/i386/i386.c: Rebuild.
848 * features/i386/x32-avx-linux.c: Rebuild.
849 * features/i386/x32-avx.c: Rebuild.
850 * features/i386/x32-linux.c: Rebuild.
851 * features/i386/x32.c: Rebuild.
852 * features/mips-dsp-linux.c: Rebuild.
853 * features/mips-linux.c: Rebuild.
854 * features/mips64-dsp-linux.c: Rebuild.
855 * features/mips64-linux.c: Rebuild.
856 * features/rs6000/powerpc-32.c: Rebuild.
857 * features/rs6000/powerpc-32l.c: Rebuild.
858 * features/rs6000/powerpc-403.c: Rebuild.
859 * features/rs6000/powerpc-403gc.c: Rebuild.
860 * features/rs6000/powerpc-405.c: Rebuild.
861 * features/rs6000/powerpc-505.c: Rebuild.
862 * features/rs6000/powerpc-601.c: Rebuild.
863 * features/rs6000/powerpc-602.c: Rebuild.
864 * features/rs6000/powerpc-603.c: Rebuild.
865 * features/rs6000/powerpc-604.c: Rebuild.
866 * features/rs6000/powerpc-64.c: Rebuild.
867 * features/rs6000/powerpc-64l.c: Rebuild.
868 * features/rs6000/powerpc-7400.c: Rebuild.
869 * features/rs6000/powerpc-750.c: Rebuild.
870 * features/rs6000/powerpc-860.c: Rebuild.
871 * features/rs6000/powerpc-altivec32.c: Rebuild.
872 * features/rs6000/powerpc-altivec32l.c: Rebuild.
873 * features/rs6000/powerpc-altivec64.c: Rebuild.
874 * features/rs6000/powerpc-altivec64l.c: Rebuild.
875 * features/rs6000/powerpc-cell32l.c: Rebuild.
876 * features/rs6000/powerpc-cell64l.c: Rebuild.
877 * features/rs6000/powerpc-e500.c: Rebuild.
878 * features/rs6000/powerpc-e500l.c: Rebuild.
879 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
880 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
881 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
882 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
883 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
884 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
885 * features/rs6000/powerpc-vsx32.c: Rebuild.
886 * features/rs6000/powerpc-vsx32l.c: Rebuild.
887 * features/rs6000/powerpc-vsx64.c: Rebuild.
888 * features/rs6000/powerpc-vsx64l.c: Rebuild.
889 * features/rs6000/rs6000.c: Rebuild.
890 * features/s390-linux32.c: Rebuild.
891 * features/s390-linux32v1.c: Rebuild.
892 * features/s390-linux32v2.c: Rebuild.
893 * features/s390-linux64.c: Rebuild.
894 * features/s390-linux64v1.c: Rebuild.
895 * features/s390-linux64v2.c: Rebuild.
896 * features/s390x-linux64.c: Rebuild.
897 * features/s390x-linux64v1.c: Rebuild.
898 * features/s390x-linux64v2.c: Rebuild.
899 * features/tic6x-c62x-linux.c: Rebuild.
900 * features/tic6x-c62x.c: Rebuild.
901 * features/tic6x-c64x-linux.c: Rebuild.
902 * features/tic6x-c64x.c: Rebuild.
903 * features/tic6x-c64xp-linux.c: Rebuild.
904 * features/tic6x-c64xp.c: Rebuild.
905
826f0041
TT
9062012-07-27 Tom Tromey <tromey@redhat.com>
907
908 * c-exp.y (classify_name): Avoid assignment in condition.
909
84552b16
PA
9102012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
911
912 * amd64-windows-tdep.c: Include "frame.h".
913 (amd64_windows_skip_trampoline_code): New function.
914 (amd64_windows_init_abi): Add trampoline registration.
915
a8a64aa8
YQ
9162012-07-27 Yao Qi <yao@codesourcery.com>
917
918 * tracepoint.c (cur_traceframe_number): Remove.
919 (set_tfile_traceframe): Remove.
920 (tfile_trace_find, tfile_fetch_registers): Update callers.
921 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
922 (tfile_open, tfile_trace_find): Likewise.
923
d99067cb
YQ
9242012-07-27 Yao Qi <yao@codesourcery.com>
925
926 * thread.c (switch_to_thread): Don't call registers_changed.
927
f2e8016f
TT
9282012-07-26 Tom Tromey <tromey@redhat.com>
929
f782ad9b
AS
930 * Makefile.in (SFILES): Remove objc-exp.y.
931 (YYFILES): Remove objc-exp.c.
932 (YYOBJ): Remove objc-exp.o.
933 (local-maintainer-clean): Don't mention objc-exp.c.
934 * c-exp.y: Include objc-lang.h.
935 (%union) <class>: New field.
936 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
937 (exp): Clone subscript production for OBJC_LBRAC. Add various
938 Objective C productions.
939 (msglist, msgarglist, msgarg): New productions.
940 (array_mod, func_mod, operator): Clone productions for
941 OBJC_LBRAC.
942 (parse_string_or_char): Handle '@' strings.
943 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
944 (classify_name): Check la_name_of_this. Recognize ObjC class
945 names.
946 * objc-exp.y: Remove.
947 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
948 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 949
f66713d2
JK
9502012-07-26 Markus Metzger <markus.t.metzger@intel.com>
951
952 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
953
7cfe01b4
JK
9542012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
957 and decrement.
958
5ba19b4c
TT
9592012-07-26 Tom Tromey <tromey@redhat.com>
960
961 * copying.c: Rebuild.
962 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
963 'no_class'.
964
27618ce4
TT
9652012-07-26 Tom Tromey <tromey@redhat.com>
966
967 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
968 immediate_quit.
969 (print_objfile_statistics): Likewise.
970 (maintenance_print_symbols): Likewise.
971 (maintenance_print_msymbols): Likewise.
972 (maintenance_print_objfiles): Likewise.
973 * psymtab.c (print_partial_symbols): Call QUIT.
974 (maintenance_print_psymbols): Likewise. Don't modify
975 immediate_quit.
976 * copying.c (show_copying_command): Don't modify immediate_quit.
977 (show_warranty_command): Likewise.
978 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
979
dd3818c8
KS
9802012-07-26 Keith Seitz <keiths@redhat.com>
981
982 * linespec.c (linespec_lexer_lex_number): The input
983 is also a valid number if the next character is a comma
984 or colon.
985
23a80689
JB
9862012-07-26 Joel Brobecker <brobecker@adacore.com>
987
988 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
989 configure options.
990
29f77997
TG
9912012-07-26 Tristan Gingold <gingold@adacore.com>
992
993 * machoread.c: Include gdb_bfd.h.
994
a55c1f32
TG
9952012-07-26 Tristan Gingold <gingold@adacore.com>
996
997 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
998 offset.
999
56eb65bd
SP
10002012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1001
1002 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1003 SIZE to size_t.
1004 (dwarf2_evaluate_loc_desc): Likewise.
1005 (dwarf2_loc_desc_needs_frame): Likewise.
1006 (locexpr_describe_location_1): Likewise.
1007 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1008 size_t.
1009 (struct dwarf2_loclist_baton): Likewise.
1010 * dwarf2read.c (struct dwarf_block): Likewise.
1011 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1012 (decode_locdesc): Expand SIZE and I to size_t.
1013
aec8845c
JK
10142012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1015
1016 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1017
33d7655b
JB
10182012-07-25 Joel Brobecker <brobecker@adacore.com>
1019
1020 * doublest.c (convert_doublest_to_floatformat): If the exponent
1021 is too small, treat the value as zero. If the exponent is too
1022 large, treat the value as infinity.
1023
a22d44ff
JB
10242012-07-25 Joel Brobecker <brobecker@adacore.com>
1025
1026 * configure.ac: Add --enable-lmcheck configure option.
1027 * configure: Regenerate.
1028
d6b28940
TT
10292012-07-25 Tom Tromey <tromey@redhat.com>
1030
f782ad9b
AS
1031 * NEWS: Mention maint info bfds.
1032 * gdb_bfd.c (all_bfds): New global.
1033 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1034 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1035 New functions.
d6b28940 1036
6e73ba20
RC
10372012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1038
1039 * configure.tgt: Add v850*-*-rtems*.
1040
d560eebd
TT
10412012-07-25 Tom Tromey <tromey@redhat.com>
1042
1043 * macrotab.c (macro_bcache_str): Remove cast.
1044
d7cbec71
HZ
10452012-07-25 Hui Zhu <hui_zhu@mentor.com>
1046
1047 * linespec.c (linespec_lexer_lex_number): Update comments,
1048 change the return and add check to make sure the input is
1049 the decimal numbers.
1050 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1051 false, call linespec_lexer_lex_string.
1052
882f447f
TT
10532012-07-24 Tom Tromey <tromey@redhat.com>
1054
1055 * symfile.c (symbol_file_add): Don't open BFD twice.
1056
53ab4066 10572012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1058
1059 * breakpoint.c (create_breakpoint): Store condition for pending
1060 breakpoints.
1061
108fb0f7
AS
10622012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1063
1064 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1065 (m68k_return_value): Handle complex types like structures.
1066 (m68k_svr4_return_value): Likewise.
1067
1634dcbe
JK
10682012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1069
1070 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1071 parameters to bfd_get_section_name.
1072
e2d12c21
YQ
10732012-07-24 Yao Qi <yao@codesourcery.com>
1074
1075 * cli/cli-setshow.c: Handle case 'var_uinteger'
1076 and 'var_zuninteger' together. Handle case 'var_integer' and
1077 'var_zinteger' together.
1078
64b92e45
KS
10792012-07-23 Keith Seitz <keiths@redhat.com>
1080
1081 * linespec.c (convert_linespec_to_sal): Don't add
1082 any symbols to the result vector if symbol_to_sal
1083 returns zero.
1084
0f5f4ffe
KS
10852012-07-23 Keith Seitz <keiths@redhat.com>
1086
1087 * linespec.c (decode_objc): Record the function name
1088 in the linespec.
1089
da1cc82f
TT
10902012-07-23 Tom Tromey <tromey@redhat.com>
1091
1092 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1093 counting.
1094 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1095 (map_vmap): Acquire a reference to the BFD.
1096
6c18f3e0
SP
10972012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1098
1099 * p-valprint.c (pascal_object_print_value): Replace potentially
1100 unsafe alloca with xmalloc/xfree.
1101 * valops.c (search_struct_method): Likewise.
1102
695c3173
TT
11032012-07-23 Tom Tromey <tromey@redhat.com>
1104
1105 * solib-svr4.c (enable_break): Update.
1106 * bfd-target.h (target_bfd_reopen): Update documentation.
1107
08d2cd74
TT
11082012-07-23 Tom Tromey <tromey@redhat.com>
1109
1110 * symfile.c (separate_debug_file_exists): Update.
1111 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1112 (reread_symbols): Update.
1113 * elfread.c (build_id_verify): Update.
1114 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1115 bfd_open_maybe_remote.
1116
596f7d67
TT
11172012-07-23 Tom Tromey <tromey@redhat.com>
1118
1119 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1120
8ac244b4
TT
11212012-07-23 Tom Tromey <tromey@redhat.com>
1122
1123 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1124 and 'abfd'.
1125 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1126 and 'abfd'.
1127 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1128 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1129 'abfd'.
1130 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1131 * objfiles.c (allocate_objfile): Acquire a new reference.
1132 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1133 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1134 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1135 a cleanup for 'nbfd'.
1136 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1137 for 'nbfd'.
1138 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1139 make a cleanup for 'abfd'.
1140 (symbol_file_add): Make a BFD cleanup.
1141
64c31149
TT
11422012-07-23 Tom Tromey <tromey@redhat.com>
1143
1144 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1145 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1146 * corelow.c (core_open): Use gdb_bfd_fopen.
1147 * dsrec.c (load_srec): Use gdb_bfd_openr.
1148 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1149 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1150 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1151 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1152 (gdb_bfd_fdopenr): New functions.
1153 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1154 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1155 (gdb_bfd_fdopenr): Declare.
1156 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1157 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1158 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1159 gdb_bfd_openr_next_archived_file.
1160 (macho_check_dsym): Use gdb_bfd_openr.
1161 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1162 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1163 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1164 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1165 gdb_bfd_openr.
1166 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1167 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1168 gdb_bfd_openr_next_archived_file.
1169 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1170 Use gdb_bfd_openr.
1171 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1172 gdb_bfd_openr.
1173 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1174 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1175 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1176 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1177 (symfile_bfd_open): Use gdb_bfd_fopen.
1178 (generic_load): Use gdb_bfd_openr.
1179 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1180
520b0001
TT
11812012-07-23 Tom Tromey <tromey@redhat.com>
1182
1183 * bfd-target.c (target_bfd_reopen): Update.
1184 * cli/cli-dump.c (bfd_openr_with_cleanup)
1185 (bfd_openw_with_cleanup): Update.
1186 * corelow.c (core_open): Update.
1187 * dsrec.c (load_srec): Update.
1188 * exec.c (exec_file_attach): Update.
1189 * gcore.c (create_gcore_bfd): Update.
1190 * gdb_bfd.c (gdb_bfd_ref): Return void.
1191 (gdb_bfd_open): Update.
1192 * gdb_bfd.h (gdb_bfd_ref): Return void.
1193 Update comments.
1194 * jit.c (jit_bfd_try_read_symtab): Update.
1195 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1196 * machoread.c (macho_symfile_read_all_oso): Update.
1197 (macho_check_dsym): Update.
1198 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1199 * remote-m32r-sdi.c (m32r_load): Update.
1200 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1201 * rs6000-nat.c (add_vmap): Update.
1202 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1203 Update.
1204 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1205 * solib-spu.c (spu_bfd_open): Update.
1206 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1207 * spu-linux-nat.c (spu_bfd_open): Update.
1208 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1209 (generic_load): Update.
1210 * windows-nat.c (windows_make_so): Update.
1211
2322ff16
SP
12122012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1213
1214 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1215
3def0b36
PA
12162012-07-20 Jeff Kenton <jkenton@tilera.com>
1217
1218 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1219 SIGTRAMP_FRAME unwinding.
1220
e615022a
DE
12212012-07-20 Doug Evans <dje@google.com>
1222
1223 * NEWS: Document new options "set/show use-deprecated-index-sections",
1224 and delete reference to --use-deprecated-index-sections.
1225 * symfile.h (use_deprecated_index_sections): Delete.
1226 * dwarf2read.c (use_deprecated_index_sections): Make static.
1227 (read_index_from_section): Update wording of how to load
1228 deprecated index sections.
1229 (_initialize_dwarf2_read): New options
1230 "set/show use-deprecated-index-sections".
1231 * main.c (captured_main): Delete --use-deprecated-index-sections.
1232
64776a0b
PA
12332012-07-20 Pedro Alves <palves@redhat.com>
1234
1235 PR threads/11692
1236 PR gdb/12203
1237
1238 * infrun.c (handle_inferior_event) <new thread>: Don't special
1239 case minus_one_ptid.
1240 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1241 * linux-thread-db.c (thread_get_info_callback): Don't return early
1242 if the thread is zombie.
1243 (thread_from_lwp): Change return type to void. Rewrite stale
1244 comment.
1245 (attach_thread): Don't return early if the thread is zombie,
1246 instead set its "dying" flag.
1247 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1248 (find_new_threads_callback): Don't return early if the thread is
1249 zombie.
1250
09826ec5
PA
12512012-07-20 Pedro Alves <palves@redhat.com>
1252
1253 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1254 * target.c (target_wait): Likewise.
1255 (str_comma_list_concat_elem, do_option, target_options_to_string):
1256 New functions.
1257 * target.h (target_options_to_string): Declare.
1258
f7a35f02
TT
12592012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1260 Tom Tromey <tromey@redhat.com>
1261
1262 * dwarf2read.c (dwarf_decode_macros)
1263 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1264 DW_MACRO_GNU_transparent_include_alt>: New cases.
1265 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1266 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1267
b81e1ee0
TT
12682012-07-20 Tom Tromey <tromey@redhat.com>
1269
1270 * dwarf2read.c (try_open_dwo_file): Don't call
1271 gdb_bfd_stash_filename.
1272
99c1624c
PA
12732012-07-20 Pedro Alves <palves@redhat.com>
1274
1275 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1276 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1277 (i386_process_record): Tweak description comments.
1278
4ffa4fc7
PA
12792012-07-20 Pedro Alves <palves@redhat.com>
1280
1281 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1282 (i386_process_record): Use record_read_memory.
1283 * record.c (record_read_memory): New function.
1284 (record_arch_list_add_mem, record_exec_insn): Use
1285 record_read_memory.
1286 * record.h (record_read_memory): Declare.
1287
c24343e2
YQ
12882012-07-20 Yao Qi <yao@codesourcery.com>
1289
1290 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1291 NULL for xfree.
1292
90f47860
PA
12932012-07-19 Pedro Alves <palves@redhat.com>
1294
1295 * record.c (record_resume): Ask the target beneath to report all
1296 signals.
1297
01093045
DE
12982012-07-19 Doug Evans <dje@google.com>
1299
1300 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1301 there's no section at address zero.
1302 (dwarf2_record_block_ranges): Ditto.
1303
a7c3d162
YQ
13042012-07-19 Yao Qi <yao@codesourcery.com>
1305
1306 * command.h, remote.c: Fix a typo in comment.
1307
608b4967
TT
13082012-07-19 Tom Tromey <tromey@redhat.com>
1309
1310 PR exp/13206:
1311 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1312 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1313 OP_DECLTYPE>: New cases.
1314 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1315 (type_exp): Add new productions.
1316 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1317 and decltype.
1318 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1319 New case.
1320 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1321 OP_DECLTYPE>: New case.
1322 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1323 New case.
1324 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1325 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1326
274b54d7
TT
13272012-07-19 Tom Tromey <tromey@redhat.com>
1328
1329 * c-exp.y (enum token_flags): New.
1330 (struct token) <cxx_only>: Remove.
1331 <flags>: New field.
1332 (tokentab3, tokentab2, ident_tokens): Update.
1333 (lex_one_token): Update. Handle FLAG_SHADOW.
1334
9eaf6705
TT
13352012-07-19 Tom Tromey <tromey@redhat.com>
1336
1337 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1338 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1339 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1340 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1341 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1342 type_exp production where appropriate.
1343 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1344 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1345 <UNOP_MEMVAL_TYPE>: New case.
1346 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1347 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1348 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1349 <UNOP_MEMVAL_TYPE>: New case.
1350 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1351 UNOP_REINTERPRET_CAST>: Update.
1352 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1353 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1354 UNOP_REINTERPRET_CAST>: Update.
1355 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1356 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1357 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1358 constants.
1359
6ace3df1
YQ
13602012-07-19 Yao Qi <yao@codesourcery.com>
1361 Jan Kratochvil <jan.kratochvil@redhat.com>
1362
1363 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1364 and case 'var_optional_filename' together.
1365 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1366 instead of add_setshow_optional_filename_cmd for setshow command
1367 'args'. Set completer for 'set args'.
1368
48faced0
DE
13692012-07-18 Doug Evans <dje@google.com>
1370
1371 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1372 * common/gdb_vecs.c: New file, contents from utils.c.
1373 * common/host-defs.h: New file, contents from defs.h.
1374 * utils.h: New file, contents from defs.h.
1375 * defs.h: Move all declarations of objects defined in utils.c
1376 to utils.h (except QUIT() and related).
1377 #include "utils.h", "host-defs.h".
1378 * probe.h (probe_p): Move here from gdb_vecs.h.
1379 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1380 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1381 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1382 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1383 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1384 (COMMON_OBS): Add gdb_vecs.o.
1385 (gdb_vecs.o): New rule.
1386
66f1999b
KS
13872012-07-18 Keith Seitz <keiths@redhat.com>
1388
1389 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1390 parameter. If non-zero, use SYMNAME as the canonical name
1391 for the SaL.
1392 Update all callers.
1393 (convert_linespec_to_sals): Use add_sal_to_sals for
1394 expressions, too.
1395 (decode_line_full): No need to "fill in missing canonical names"
1396 anymore. Simply make cleanups for the allocated names.
1397
5d94e27b
KS
13982012-07-18 Keith Seitz <keiths@redhat.com>
1399
1400 * linespec.c (struct linespec): Constify expression,
1401 source_filename, function_name, and label_name.
1402 (symbol_not_found_error): Make all parameters const.
1403 (linespec_parser_delete): No need to check for NULL
1404 when using xfree. Cast const char * to char * for xfree.
1405
af4908ba
KS
14062012-07-18 Keith Seitz <keiths@redhat.com>
1407
1408 * breakpoint.c (invalid_thread_id_error): New function.
1409 (find_condition_and_thread): Use invalid_thread_id_error.
1410 (watch_command_1): Likewise.
1411
853254db
TT
14122012-07-18 Tom Tromey <tromey@redhat.com>
1413
1414 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1415 * contrib/cc-with-tweaks.sh: New file.
1416
2ec9a5e0
TT
14172012-07-18 Tom Tromey <tromey@redhat.com>
1418
1419 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1420 (locate_dwz_sections): Recognize .gdb_index.
1421 (create_cus_from_index_list): New function.
1422 (create_cus_from_index): Use it. Handle .dwz data.
1423 (read_index_from_section): New function, extracted from
1424 dwarf2_read_index.
1425 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1426 if needed.
1427
36586728
TT
14282012-07-18 Tom Tromey <tromey@redhat.com>
1429
1430 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1431 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1432 <is_dwz>: New field.
1433 (struct dwz_file): New.
1434 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1435 (locate_dwz_sections, dwarf2_get_dwz_file)
1436 (get_abbrev_section_for_cu): New functions.
1437 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1438 (read_and_check_type_unit_head): Add abbrev_section argument.
1439 (create_debug_types_hash_table): Update.
1440 (init_cutu_and_read_dies): Use proper abbrev section.
1441 (init_cutu_and_read_dies_no_follow): Likewise.
1442 (set_partial_user): Do nothing if PST==NULL.
1443 (read_comp_units_from_section): New function.
1444 (create_all_comp_units): Use it.
1445 (scan_partial_symbols, partial_die_parent_scope): Update.
1446 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1447 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1448 (find_partial_die): Add offset_in_dwz argument. Update.
1449 (guess_partial_die_structure_name, fixup_partial_die): Update.
1450 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1451 DW_FORM_GNU_strp_alt.
1452 (read_indirect_string_from_dwz): New function.
1453 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1454 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1455 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1456 (follow_die_offset): Add offset_in_dwz argument.
1457 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1458 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1459 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1460 Handle new macro forms.
1461 (dwarf_decode_macros): Update.
1462 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1463 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1464 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1465 (create_debug_types_hash_table): Use correct abbrev section.
1466 (get_debug_line_section): New function.
1467 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1468 (process_full_comp_unit): Pass 'required' argument to
1469 end_symtab_get_static_block.
1470 * buildsym.h (end_symtab_get_static_block): Update.
1471 * buildsym.c (end_symtab_get_static_block): Add 'required'
1472 argument.
1473 (end_symtab, end_expandable_symtab): Update.
1474
4bf44c1c
TT
14752012-07-18 Tom Tromey <tromey@redhat.com>
1476
1477 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1478 (pagesize): Remove.
1479 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1480 (zlib_decompress_section): Remove.
1481 (dwarf2_read_section): Use gdb_bfd_map_section.
1482 (munmap_section_buffer): Remove.
1483 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1484 munmap_section_buffer.
1485 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1486 (struct gdb_bfd_section_data): New.
1487 (free_one_bfd_section): New function.
1488 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1489 (get_section_descriptor, zlib_decompress_section)
1490 (gdb_bfd_map_section): New functions.
1491 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1492
bb397797
TT
14932012-07-18 Tom Tromey <tromey@redhat.com>
1494
1495 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1496
6ec53d05
TT
14972012-07-18 Tom Tromey <tromey@redhat.com>
1498
1499 * gdb_bfd.c (struct gdb_bfd_data): New.
1500 (gdb_bfd_cache): New global.
1501 (struct gdb_bfd_cache_search): New.
1502 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1503 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1504 * gdb_bfd.h (gdb_bfd_open): Declare.
1505
f9a062ff
TT
15062012-07-18 Tom Tromey <tromey@redhat.com>
1507
1508 * utils.c (make_cleanup_bfd_unref): Rename from
1509 make_cleanup_bfd_close.
1510 * defs.h (make_cleanup_bfd_unref): Rename from
1511 make_cleanup_bfd_close.
1512 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1513 (bfd_openw_with_cleanup): Update.
1514 * corelow.c (core_open): Update.
1515 * dsrec.c (load_srec): Update.
1516 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1517 * remote-m32r-sdi.c (m32r_load): Update.
1518 * remote-mips.c (mips_load_srec): Update.
1519 (pmon_load_fast): Update.
1520 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1521 Update.
1522 (darwin_bfd_open): Update.
1523 * solib.c (solib_bfd_fopen): Update.
1524 * symfile-mem.c (symbol_file_add_from_memory): Update.
1525 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1526 (symfile_bfd_open): Update.
1527 (generic_load): Update.
1528
d6ad71ba
TT
15292012-07-18 Tom Tromey <tromey@redhat.com>
1530
1531 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1532 (pmon_load_fast): Likewise.
1533 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1534 (m32r_upload_command): Likewise.
1535 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1536 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1537 Use make_cleanup_bfd_close.
1538
a4453b7e
TT
15392012-07-18 Tom Tromey <tromey@redhat.com>
1540
1541 * symfile.c (symfile_bfd_open): Don't copy name. Call
1542 gdb_bfd_stash_filename.
1543 (load_command): Open the new BFD before freeing the old.
1544 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1545 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1546 Call gdb_bfd_stash_filename.
1547 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1548 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1549 gdb_bfd_stash_filename.
1550 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1551 Free found_pathname.
1552 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1553 gdb_bfd_stash_filename.
1554 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1555 * machoread.c (macho_add_oso_symfile): Call
1556 gdb_bfd_stash_filename.
1557 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1558 gdb_bfd_stash_filename.
1559 (macho_check_dsym): Don't copy filename. Call
1560 gdb_bfd_stash_filename.
1561 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1562 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1563 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1564 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1565 * exec.c (exec_close): Don't free the BFD's filename.
1566 (exec_file_attach): Don't copy the filename. Call
1567 gdb_bfd_stash_filename.
1568 * corelow.c (core_close): Don't free the BFD's filename.
1569 (core_open): Call gdb_bfd_stash_filename.
1570 * corefile.c (reopen_exec_file): Remove #if 0 code.
1571 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1572 pathname.
1573 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1574
cbb099e8
TT
15752012-07-18 Tom Tromey <tromey@redhat.com>
1576
1577 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1578 gdb_bfd_unref.
1579 (free_dwo_file): Use gdb_bfd_unref.
1580 * cli/cli-dump.c: Include gdb_bfd.h.
1581 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1582 (bfd_openr_with_cleanup): Likewise.
1583 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1584 gdb_bfd_unref.
1585 * utils.c: Include gdb_bfd.h.
1586 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1587 * symfile.c: Include gdb_bfd.h.
1588 (separate_debug_file_exists): Use gdb_bfd_unref.
1589 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1590 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1591 (generic_load): Use gdb_bfd_ref.
1592 (reread_symbols): Use gdb_bfd_unref.
1593 * symfile-mem.c: Include gdb_bfd.h.
1594 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1595 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1596 * solib.c: Include gdb_bfd.h.
1597 (solib_bfd_fopen): Use gdb_bfd_ref.
1598 (solib_bfd_open): Use gdb_bfd_unref.
1599 (free_so_symbols): Use gdb_bfd_unref.
1600 (reload_shared_libraries_1): Use gdb_bfd_unref.
1601 * solib-spu.c: Include gdb_bfd.h.
1602 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1603 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1604 gdb_bfd_unref.
1605 * solib-frv.c: Include gdb_bfd.h.
1606 (enable_break2): Use gdb_bfd_unref.
1607 * solib-dsbt.c: Include gdb_bfd.h.
1608 (enable_break2): Use gdb_bfd_unref.
1609 * solib-darwin.c: Include gdb_bfd.h.
1610 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1611 gdb_bfd_unref.
1612 (darwin_bfd_open): Use gdb_bfd_unref.
1613 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1614 * remote-mips.c: Include gdb_bfd.h.
1615 (mips_load_srec): Use gdb_bfd_ref.
1616 (pmon_load_fast): Use gdb_bfd_ref.
1617 * remote-m32r-sdi.c: Include gdb_bfd.h.
1618 (m32r_load): Use gdb_bfd_ref.
1619 * record.c: Include gdb_bfd.h.
1620 (record_save_cleanups): Use gdb_bfd_unref.
1621 (cmd_record_save): Use gdb_bfd_unref.
1622 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1623 gdb_bfd_unref.
1624 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1625 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1626 * objfiles.c: Include gdb_bfd.h.
1627 (free_objfile): Use gdb_bfd_unref.
1628 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1629 gdb_bfd.c.
1630 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1631 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1632 (macho_check_dsym): Likewise.
1633 * m32r-rom.c: Include gdb_bfd.h.
1634 (m32r_load): Use gdb_bfd_ref.
1635 (m32r_upload_command): Use gdb_bfd_ref.
1636 * jit.c: Include gdb_bfd.h.
1637 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1638 * gdb_bfd.h: New file.
1639 * gdb_bfd.c: New file.
1640 * gcore.c: Include gdb_bfd.h.
1641 (create_gcore_bfd): Use gdb_bfd_ref.
1642 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1643 (gcore_command): Use gdb_bfd_unref.
1644 * exec.c: Include gdb_bfd.h.
1645 (exec_close): Use gdb_bfd_unref.
1646 (exec_close_1): Use gdb_bfd_unref.
1647 (exec_file_attach): Use gdb_bfd_ref.
1648 * elfread.c: Include gdb_bfd.h.
1649 (build_id_verify): Use gdb_bfd_unref.
1650 * dsrec.c: Include gdb_bfd.h.
1651 (load_srec): Use gdb_bfd_ref.
1652 * corelow.c: Include gdb_bfd.h.
1653 (core_close): Use gdb_bfd_unref.
1654 (core_open): Use gdb_bfd_ref.
1655 * bfd-target.c: Include gdb_bfd.h.
1656 (target_bfd_xclose): Use gdb_bfd_unref.
1657 (target_bfd_reopen): Use gdb_bfd_ref.
1658 * Makefile.in (SFILES): Add gdb_bfd.c.
1659 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1660 (COMMON_OBS): Add gdb_bfd.o.
1661
ed1d1739
KS
16622012-07-18 Keith Seitz <keiths@redhat.com>
1663
1664 * breakpoint.c (find_condition_and_thread): Initialize
1665 TASK and REST.
1666 (create_breakpiont): find_condition_and_thread will now
1667 initialize COND_STRING, THREAD, and REST (and TASK).
1668 (addr_string_to_sals): Likewise.
1669
eab402df
PA
16702012-07-18 Pedro Alves <palves@redhat.com>
1671
1672 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1673 Pull the single step breakpoints out of the target.
1674
2b963b68
SDJ
16752012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1676
1677 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1678 * stap-probe.c (compile_probe_arg): Likewise.
1679
6bac7473
SDJ
16802012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1681
1682 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1683 (elf_compile_to_ax): Likewise.
1684 * infrun.c (insert_exception_resume_from_probe): Likewise.
1685 (check_exception_resume): Remove `objfile' variable.
1686 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1687 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1688 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1689 (compare_entries): Rename to...
1690 (compare_probes): ...this. Adjust function to work with
1691 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1692 respectively.
1693 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1694 `VEC (probe_p) *'.
1695 (print_ui_out_info): Adjust argument to be `struct probe *'.
1696 (info_probes_for_ops): Adjust internal computations to use
1697 `VEC (probe_p) *'.
1698 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1699 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1700 gen_info_probes_table_values>: Remove `objfile' argument.
1701 (struct probe) <objfile>: New field.
1702 (find_probe_by_pc): Remove `objfile' argument.
1703 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1704 (stap_get_probe_argument_count): Likewise.
1705 (stap_get_arg): Likewise.
1706 (stap_evaluate_probe_argument): Likewise.
1707 (stap_compile_to_ax): Likewise.
1708 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1709 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1710 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1711 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1712 sym_compile_to_ax>: Likewise.
1713
3347eb1a 17142012-07-18 Terry Guo <terry.guo@arm.com>
1715
1716 PR 14329
1717 * defs.h (GDB_MI_MSG_WIDTH): New.
1718 * ser_base (ser_base_read_error_fd): New function.
1719 (do_ser_base_readchar): Poll error file descriptor as well as
1720 standard output.
f782ad9b 1721 (generic_readchar): Refactor error handling.
3347eb1a 1722
80c8d323
JB
17232012-07-18 Joel Brobecker <brobecker@adacore.com>
1724
1725 * NEWS: Create a new section for the next release branch.
1726 Rename the section of the current branch, now that it has
1727 been cut.
1728
b45a0664 17292012-07-18 Joel Brobecker <brobecker@adacore.com>
1730
1731 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1732 * version.in: Bump version to 7.5.50.20120718-cvs.
1733
09cf2b22
KS
17342012-07-17 Keith Seitz <keiths@redhat.com>
1735
1736 * linespec.c (linespec_parse_line_offset): Make parameter
1737 const.
1738
8f043999
JK
17392012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1740
1741 PR 11914
1742 * f-valprint.c (info_common_command): New variable frame_id.
1743 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1744 * printcmd.c (print_variable_and_value): Extend function comment.
1745 Add comment for invalidated FRAME.
1746 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1747 FI form FRAME_ID after each print_frame_local_vars.
1748 (struct print_variable_and_value_data): Change frame to frame_id.
1749 (do_print_variable_and_value): New variable frame, initialize it from
1750 p->frame_id. Add comment for invalidated FRAME.
1751 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1752 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1753 for invalidated FRAME.
1754
ae5e0686
MK
17552012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1756 Pedro Alves <palves@redhat.com>
1757
1758 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1759 loop.
1760
5049c5be
TT
17612012-07-16 Tom Tromey <tromey@redhat.com>
1762
1763 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1764
2908cac6
DE
17652012-07-15 Doug Evans <dje@google.com>
1766
094b34ac
DE
1767 * dwarf2read.c (stmt_list_hash): New struct.
1768 (type_unit_group): Embed "per_cu" member, remove pointer.
1769 New union member "t", move member "tus" into it, all uses updated.
1770 New member "hash", replaces member "line_offset, all uses updated.
1771 (quick_file_names): Replace member "offset" with "hash", all uses
1772 updated.
1773 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1774 (hash_file_name_entry, eq_file_name_entry): Call them.
1775 (hash_type_unit_group, eq_type_unit_group): Ditto.
1776 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1777 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1778 (dw2_get_file_names): Update.
1779 (create_type_unit_group): Replace "per_cu" arg with "cu".
1780 All callers updated. Fix "quick" (.gdb_index) handling.
1781 (get_type_unit_group): Replace "per_cu" arg with "cu".
1782 All callers updated.
1783 (build_type_unit_groups): Don't reset tu_stats.
1784
2908cac6
DE
1785 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1786 "tab_cur_size". Change member "tab" to be a htab_t.
1787 (create_filename_seen_cache): Update.
1788 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1789 (filename_seen): Update.
1790
a2b6eff5
DE
17912012-07-13 Doug Evans <dje@google.com>
1792
1793 * symtab.c (filename_seen): Update comment.
1794
4359dff1
JK
17952012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1796 Doug Evans <dje@google.com>
1797
1798 * buildsym.c (end_symtab_1): Split it to ...
1799 (end_symtab_get_static_block): ... this ...
1800 (end_symtab_from_static_block): ... and this function.
1801 (end_symtab, end_expandable_symtab): Call them.
1802 * buildsym.h (end_symtab_get_static_block)
1803 (end_symtab_from_static_block): New declarations.
1804 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1805 Set its valid CU ranges.
1806
a24f71ab
JK
18072012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1808
1809 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1810 DW_OP_GNU_parameter_ref.
1811
d76b7dbc
JK
18122012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1813
1814 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1815 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1816
9fdc877b
DE
18172012-07-13 Doug Evans <dje@google.com>
1818
1819 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1820 (filename_seen_cache): New struct.
1821 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1822 (create_filename_seen_cache): New function.
1823 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1824 (filename_seen): Delete arg "first". New arg "cache". All callers
1825 updated.
1826 (output_source_filename_data): New struct.
1827 (output_source_filename): Delete arg "first". New arg "data".
1828 All callers updated.
1829 (sources_info): Delete local "first". New locals "data", "cleanups".
1830 Rewrite to use filename_seen_cache.
1831 (add_partial_filename_data): Delete member "first". New member
1832 "filename_seen_cache". All uses updated.
1833 (make_source_files_completion_list): Rewrite to use
1834 filename_seen_cache.
1835
f80c6f3f
DE
18362012-07-12 Doug Evans <dje@google.com>
1837
1838 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1839
0bfa869d
DE
18402012-07-10 Doug Evans <dje@google.com>
1841
f4dc4d17
DE
1842 PR gdb/13498
1843 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1844 all_type_unit_groups, type_unit_groups, tu_stats.
1845 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1846 All uses updated. Add type_unit_group to union "s".
1847 (type_unit_group): New struct.
1848 (IS_TYPE_UNIT_GROUP): New macro.
1849 (abbrev_table): Delete unused member "section".
1850 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1851 (dw2_get_cu): Assert not used with type_unit_group.
1852 (dw2_get_primary_cu): New function.
1853 (dw2_build_type_unit_groups_reader): New function.
1854 (dw2_build_type_unit_groups): New function.
1855 (dw2_get_file_names): Assert not called on type units.
1856 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1857 Redo loop to iterate over type unit groups instead of type units.
1858 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1859 (read_abbrev_offset): New function.
1860 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1861 updated.
1862 (create_partial_symtab): New function.
1863 (process_psymtab_comp_unit_reader): Assert not used with type units.
1864 Call create_partial_symtab.
1865 (process_psymtab_type_unit): Delete.
1866 (hash_type_unit_group, eq_type_unit_group): New functions.
1867 (allocate_type_unit_groups_table): New function.
1868 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1869 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1870 (create_type_unit_group, get_type_unit_group): New functions.
1871 (tu_abbrev_offset): New struct.
1872 (sort_tu_by_abbrev_offset): New function.
1873 (add_type_unit_group_to_table): New function.
1874 (build_type_unit_groups): New function.
1875 (build_type_psymtabs_reader): New function.
1876 (build_type_psymtab_dependencies): New function.
1877 (build_type_psymtabs): Rewrite.
1878 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1879 is seen in a type unit.
1880 (process_queue): Move symtab expansion debugging printfs here.
1881 Call process_full_type_unit for type units.
1882 (compute_symtab_includes): Assert not called for type units.
1883 (process_cu_includes): Don't call compute_symtab_includes for
1884 type units.
1885 (process_full_type_unit): New function.
1886 (process_imported_unit_die): Flag an error if called for type units.
1887 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1888 updated. Assert not called for type units.
1889 (read_file_scope): Call dwarf2_start_symtab.
1890 (setup_type_unit_groups): New function.
1891 (read_type_unit_scope): Rewrite.
1892 (abbrev_table_read_table): Initialize abbrev_table->offset.
1893 (abbrev_table_free_cleanup): New function.
1894 (dwarf2_start_symtab): New function.
1895 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
1896 * buildsym.c (finish_block_internal): New arg "expandable".
1897 All callers updated.
1898 (start_symtab): Move most contents to ...
1899 (restart_symtab): ... here. New function.
1900 (reset_symtab_globals): New function.
1901 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1902 Call reset_symtab_globals.
1903 (end_symtab, end_expandable_symtab): New functions.
1904 (set_missing_symtab, augment_type_symtab): New functions.
1905 * buildsym.h (end_expandable_symtab): Declare.
1906 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
1907 * psympriv.h (struct partial_symtab): New member "anonymous".
1908 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1909 anonymous psymtabs.
1910 (read_psymtabs_with_filename): Ditto.
1911 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1912 (expand_symtabs_matching_via_partial): Ditto.
1913 (dump_psymtab): Update.
0bfa869d
DE
1914 * dictionary.c (dict_add_pending): New function.
1915 * dictionary.h (dict_add_pending): Declare.
1916
45e58e77
DE
19172012-07-09 Doug Evans <dje@google.com>
1918
b74db436
DE
1919 * buildsym.c (start_subfile): Remove unnecessary check for
1920 name == NULL.
1921
fd55216c
DE
1922 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1923
6721b2ec
DE
1924 * dwarf2read.c (load_full_type_unit): Simplify.
1925
b4dd5633
DE
1926 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1927 to struct signatured_type **. All uses updated.
1928
45e58e77
DE
1929 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1930 All callers updated.
1931
e314d629
TT
19322012-07-09 Tom Tromey <tromey@redhat.com>
1933
1934 * c-exp.y (check_parameter_typelist): New function.
1935 (parameter_typelist): Call it.
1936 * eval.c (make_params): Handle '(void)' case.
1937 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1938 '(void)' case.
1939
aa7c7447
JK
19402012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1941
1942 * common/linux-ptrace.c: Include gdb_assert.h.
1943 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1944 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1945 stdint.h.
1946 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1947 functions.
1948 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1949 * linux-nat.c (linux_child_post_attach)
1950 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1951
889003ed
JK
19522012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1953
1954 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1955 nptl <2.7 bug workaround for core files.
1956
da559b09
JK
19572012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1958
1959 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1960 clearing.
1961 (save_siginfo): Remove.
1962 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1963 call.
1964 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1965 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1966 * linux-nat.h (struct lwp_info): Remove field siginfo.
1967
f865ee35
JK
19682012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1969
1970 Code cleanup for the next patch.
1971 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1972 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1973 call for it.
1974 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1975 (ia64_linux_stopped_data_address):
1976 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1977 the return value.
1978 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1979 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1980 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1981 call for it.
1982
76b83c51
JK
19832012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 PR 14321
1986 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1987 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1988
a6fb9c08
TT
19892012-07-06 Tom Tromey <tromey@redhat.com>
1990
1991 * c-exp.y (DOTDOTDOT): New token.
1992 (func_mod, exp): Use parameter_typelist.
1993 (parameter_typelist): New production.
1994 (tokentab3): Add "..." token.
1995 * eval.c (make_params): Handle varargs.
1996 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1997 varargs.
1998
71918a86
TT
19992012-07-06 Tom Tromey <tromey@redhat.com>
2000
2001 PR exp/9608:
2002 * c-exp.y (%union) <tvec>: Change type.
2003 (func_mod): Now uses <tvec> type.
2004 (exp): Update for tvec change.
2005 (direct_abs_decl): Push the typelist.
2006 (func_mod): Return a typelist.
2007 (nonempty_typelist): Update for tvec change.
2008 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2009 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2010 * parse.c (pop_type_list): New function.
2011 (push_typelist): New function.
2012 (follow_types): Handle tp_function_with_arguments.
2013 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2014 (enum type_pieces) <tp_function_with_arguments>: New constant.
2015 (union type_stack_elt) <typelist_val>: New field.
2016 (push_typelist): Declare.
2017
fcde5961
TT
20182012-07-06 Tom Tromey <tromey@redhat.com>
2019
2020 * c-exp.y (%union) <type_stack>: New field.
2021 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2022 (ptr_operator_ts): New production.
2023 (ptype): Update.
2024 * parse.c (type_stack_reserve): New function.
2025 (check_type_stack_depth): Use it.
2026 (pop_type_stack, append_type_stack, push_type_stack)
2027 (get_type_stack, type_stack_cleanup): New functions.
2028 (follow_types): Handle tp_type_stack.
2029 (_initialize_parse): Simplify initialization.
2030 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2031 constant.
2032 (union type_stack_elt) <stack_val>: New field.
2033 (get_type_stack, append_type_stack, push_type_stack)
2034 (type_stack_cleanup): Declare.
2035
1a7d0ce4
TT
20362012-07-06 Tom Tromey <tromey@redhat.com>
2037
2038 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2039 Remove.
2040 (struct type_stack): New.
2041 * parse.c (type_stack, type_stack_size, type_stack_depth):
2042 Remove.
2043 (type_stack): New global.
2044 (parse_exp_in_context, check_type_stack_depth)
2045 (insert_into_type_stack, insert_type, push_type, push_type_int)
2046 (insert_type_address_space, pop_type, pop_type_int)
2047 (_initialize_parse): Update.
2048
16d01384
TT
20492012-07-06 Tom Tromey <tromey@redhat.com>
2050
2051 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2052 Remove %type.
2053
9bfc60bf
SP
20542012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2055
2056 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2057
d5161074
SP
20582012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2059 Jan Kratochvil <jan.kratochvil@redhat.com>
2060
2061 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2062 alloca with xmalloc/xfree.
2063
a74bc576
SP
20642012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2065
2066 * MAINTAINERS (Write After Approval): Add myself to the list.
2067
667e0a4b
DE
20682012-07-05 Doug Evans <dje@google.com>
2069
2070 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2071
34b536a8
HZ
20722012-07-05 Hui Zhu <hui_zhu@mentor.com>
2073
2074 * ax-gdb.c (cli/cli-utils.h): New include.
2075 (linespec.h): Ditto.
2076 (agent_eval_command_one): New function.
2077 (agent_command_1): Ditto.
2078 (agent_command): Call function agent_command_1.
2079 (agent_eval_command): Ditto.
2080 (_initialize_ax_gdb): Change help for "maint agent"
2081 and "maint agent-eval".
2082
e6f0bce7
HZ
20832012-07-05 Hui Zhu <hui_zhu@mentor.com>
2084
2085 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2086 * cli/cli-utils.c (check_for_argument): New function.
2087 * cli/cli-utils.h (check_for_argument): Ditto.
2088
1b3371b1
L
20892012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2090
2091 * NEWS: Mention x32 ABI support.
2092
23e2d720
L
20932012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2094
2095 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2096 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2097
2098 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2099 and pc_regnum_from_eax to -1. Update SP regnum from
2100 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2101 needed.
2102
2103 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2104 pc_regnum_from_eax.
2105
836bf454
JK
21062012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2109 * dwarf2expr.h: Include gdbtypes.h.
2110 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2111 these forward declarations.
2112 (cu_offset, sect_offset): Move these ...
2113 * gdbtypes.h: Remove include dwarf2expr.h.
2114 (cu_offset, sect_offset): ... here.
2115
1e55e04f
L
21162012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2117
2118 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2119 (amd64_linux_sigtramp_code): This.
2120 (amd64_x32_linux_sigtramp_code): New.
2121 (LINUX_SIGTRAMP_LEN): Updated.
2122 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2123
7d0e21ad
JK
21242012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2127
8775fd2d
JK
21282012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2129
2130 * config.in: Regenerate.
2131 * configure: Regenerate.
2132 * configure.ac: Remove check for gnu/libc-version.h.
2133 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2134 gnu/libc-version.h.
2135 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2136 variables libc_version, libc_major and libc_minor. Replace sscanf by
2137 inferior_has_bug. Extend the comment.
2138
fcb44371
JK
21392012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
2141 * linux-thread-db.c (inferior_has_bug): New function.
2142 (thread_db_find_new_threads_silently): Return boolean as checked by
2143 inferior_has_bug, describe it in the comments.
2144 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2145 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2146 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2147 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2148 if UNTIL_NO_NEW,
2149
09406207
DE
21502012-07-02 Doug Evans <dje@google.com>
2151
0907af0c
DE
2152 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2153 related to queue management.
2154
09406207
DE
2155 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2156 instead of "debug dwarf2-die" in debugging printfs.
2157 (create_debug_info_hash_table_reader): Ditto.
2158 (create_debug_info_hash_table): Ditto.
2159 (init_dwo_file): Ditto.
2160 (init_cutu_and_read_dies): Add debugging printf.
2161 (init_cutu_and_read_dies_no_follow): Ditto.
2162 (process_psymtab_comp_unit_reader): Ditto.
2163
d3ce09f5
SS
21642012-07-02 Stan Shebs <stan@codesourcery.com>
2165
2166 Add target-side support for dynamic printf.
2167 * NEWS: Mention the additional style.
2168 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2169 (struct bp_location): New field cmd_bytecode.
2170 * breakpoint.c: Include format.h.
2171 (disconnected_dprintf): New global.
2172 (parse_cmd_to_aexpr): New function.
2173 (build_target_command_list): New function.
2174 (insert_bp_location): Call it.
2175 (remove_breakpoints_pid): Skip dprintf breakpoints.
2176 (print_one_breakpoint_location): Ditto.
2177 (dprintf_style_agent): New global.
2178 (dprintf_style_enums): Add dprintf_style_agent.
2179 (update_dprintf_command_list): Add agent case.
2180 (agent_printf_command): New function.
2181 (_initialize_breakpoint): Add new commands.
2182 * common/ax.def (printf): New bytecode.
2183 * ax.h (ax_string): Declare.
2184 * ax-gdb.h (gen_printf): Declare.
2185 * ax-gdb.c: Include cli-utils.h, format.h.
2186 (gen_printf): New function.
2187 (maint_agent_print_command): New function.
2188 (_initialize_ax_gdb): Add maint agent-printf command.
2189 * ax-general.c (ax_string): New function.
2190 (ax_print): Add printf disassembly.
2191 * Makefile.in (SFILES): Add format.c
2192 (COMMON_OBS): Add format.o.
2193 * common/format.h: New file.
2194 * common/format.c: New file.
2195 * printcmd.c: Include format.h.
2196 (ui_printf): Call parse_format_string.
2197 * remote.c (remote_state): New field breakpoint_commands.
2198 (PACKET_BreakpointCommands): New enum.
2199 (remote_breakpoint_commands_feature): New function.
2200 (remote_protocol_features): Add new BreakpointCommands entry.
2201 (remote_can_run_breakpoint_commands): New function.
2202 (remote_add_target_side_commands): New function.
2203 (remote_insert_breakpoint): Call it.
2204 (remote_insert_hw_breakpoint): Ditto.
2205 (_initialize_remote): Add new packet configuration for
2206 target-side breakpoint commands.
2207 * target.h (struct target_ops): New field
2208 to_can_run_breakpoint_commands.
2209 (target_can_run_breakpoint_commands): New macro.
2210 * target.c (update_current_target): Handle
2211 to_can_run_breakpoint_commands.
2212
2d7b58e8
JK
22132012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2214
2215 Execute -ix and -iex only after system and user gdbinit files.
2216 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2217 processing down after gdbinit files.
2218
8690e634
JK
22192012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2220
2221 Add fnmatch-gnu module.
2222 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2223 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2224 * gnulib/aclocal.m4: Regenerate.
2225 * gnulib/config.in: Regenerate.
2226 * gnulib/configure: Regenerate.
2227 * gnulib/import/dummy.c: Remove.
2228 * gnulib/import/Makefile.am: Regenerate.
2229 * gnulib/import/Makefile.in: Likewise.
2230 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2231 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2232 * gnulib/import/alloca.c: New file.
2233 * gnulib/import/alloca.in.h: Likewise.
2234 * gnulib/import/config.charset: Likewise.
2235 * gnulib/import/fnmatch.c: Likewise.
2236 * gnulib/import/fnmatch.in.h: Likewise.
2237 * gnulib/import/fnmatch_loop.c: Likewise.
2238 * gnulib/import/localcharset.c: Likewise.
2239 * gnulib/import/localcharset.h: Likewise.
2240 * gnulib/import/m4/alloca.m4: Likewise.
2241 * gnulib/import/m4/codeset.m4: Likewise.
2242 * gnulib/import/m4/configmake.m4: Likewise.
2243 * gnulib/import/m4/fcntl-o.m4: Likewise.
2244 * gnulib/import/m4/fnmatch.m4: Likewise.
2245 * gnulib/import/m4/glibc21.m4: Likewise.
2246 * gnulib/import/m4/localcharset.m4: Likewise.
2247 * gnulib/import/m4/locale-fr.m4: Likewise.
2248 * gnulib/import/m4/locale-ja.m4: Likewise.
2249 * gnulib/import/m4/locale-zh.m4: Likewise.
2250 * gnulib/import/m4/mbrtowc.m4: Likewise.
2251 * gnulib/import/m4/mbsinit.m4: Likewise.
2252 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2253 * gnulib/import/m4/mbstate_t.m4: Likewise.
2254 * gnulib/import/m4/stdbool.m4: Likewise.
2255 * gnulib/import/m4/wchar_h.m4: Likewise.
2256 * gnulib/import/m4/wctype_h.m4: Likewise.
2257 * gnulib/import/m4/wint_t.m4: Likewise.
2258 * gnulib/import/mbrtowc.c: Likewise.
2259 * gnulib/import/mbsinit.c: Likewise.
2260 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2261 * gnulib/import/mbsrtowcs-state.c: Likewise.
2262 * gnulib/import/mbsrtowcs.c: Likewise.
2263 * gnulib/import/ref-add.sin: Likewise.
2264 * gnulib/import/ref-del.sin: Likewise.
2265 * gnulib/import/stdbool.in.h: Likewise.
2266 * gnulib/import/streq.h: Likewise.
2267 * gnulib/import/strnlen1.c: Likewise.
2268 * gnulib/import/strnlen1.h: Likewise.
2269 * gnulib/import/verify.h: Likewise.
2270 * gnulib/import/wchar.in.h: Likewise.
2271 * gnulib/import/wctype.in.h: Likewise.
2272
202cbf1c
JK
22732012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2274
2275 Support shell wildcards for 'set auto-load safe-path'.
2276 * auto-load.c: Include fnmatch.h.
2277 (filename_is_in_dir): Rename to ...
2278 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2279 it. Update function comment. Rename dir_len to pattern_len. New
2280 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2281 messages. Use gdb_filename_fnmatch.
2282 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2283 pattern.
2284 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2285 * defs.h (gdb_filename_fnmatch): New declaration.
2286 * utils.c: Include fnmatch.h.
2287 (gdb_filename_fnmatch): New function.
2288
fb7b5af4
SDJ
22892012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2290
2291 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2292 `-probe' and `-probe-stap' options.
2293
72d0e2c5
YQ
22942012-07-01 Yao Qi <yao@codesourcery.com>
2295
2296 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2297 always_inserted_off, and always_inserted_enums.
2298 Change always_inserted_mode's type to 'enum auto_boolean'.
2299 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2300 callers.
2301 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2302 of add_setshow_enum_cmd.
2303 * infrun.c: Remove can_use_displaced_stepping_auto,
2304 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2305 can_use_displaced_stepping_enum.
2306 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2307 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2308 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2309 add_setshow_enum_cmd.
2310
42e7ad6c
DE
23112012-06-30 Doug Evans <dje@google.com>
2312
2313 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2314 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2315 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2316
39cf75f7
DE
23172012-06-29 Doug Evans <dje@google.com>
2318
2319 * linespec.c: #include "stack.h".
2320 (decode_line_with_current_source): Moved here from symtab.c and
2321 renamed from decode_line_spec. All callers updated.
2322 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2323 renamed from decode_line_spec_1. All callers updated.
2324 * linespec.h (decode_line_with_current_source): Move declaration here
2325 from symtab.h and renamed from decode_line_spec.
2326 (decode_line_with_last_displayed): Move declaration here from symtab.h
2327 and renamed from decode_line_spec_1.
2328 * macrocmd.c: #include "linespec.h".
2329 * symtab.c: Remove #include "linespec.h".
2330
433df2d4
DE
23312012-06-28 Doug Evans <dje@google.com>
2332
1ce1cefd
DE
2333 * dwarf2read.c (get_cu_length): New function.
2334 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2335 (create_debug_types_hash_table): Ditto.
2336 (init_cutu_and_read_dies): Ditto.
2337 (init_cutu_and_read_dies_no_follow): Ditto.
2338
3b80fe9b
DE
2339 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2340
433df2d4
DE
2341 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2342 (struct abbrev_table): Define.
2343 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2344 abbrev_table.
2345 (init_cutu_and_read_dies): Update.
2346 (abbrev_table_alloc_abbrev): New function. Replaces
2347 dwarf_alloc_abbrev. All callers updated.
2348 (abbrev_table_add_abbrev): New function.
2349 (abbrev_table_lookup_abbrev): New function. Replaces
2350 dwarf2_lookup_abbrev. All callers updated.
2351 (abbrev_table_read_table): New function. Contents moved here from
2352 dwarf2_read_abbrevs.
2353 (dwarf2_read_abbrevs): Call it.
2354 (abbrev_table_free): New function.
2355 (dwarf2_free_abbrev_table): Call it.
2356
71caed83
SS
23572012-06-28 Stan Shebs <stan@codesourcery.com>
2358
2359 * osdata.c (info_osdata_command): Filter out "Title" columns
2360 from non-MI uses.
2361 * common/linux-osdata.c (struct osdata_type): Add title field.
2362 (osdata_table): Add titles to each entry.
2363 (linux_command_xfer_osdata): Add a column for title data.
2364
37ce89eb
SS
23652012-06-28 Stan Shebs <stan@codesourcery.com>
2366
2367 Make logging work for MI.
2368 * NEWS: Mention it.
2369 * interps.h (interp_set_logging_ftype): New typedef.
2370 (struct interp_procs): New field set_logging_proc.
2371 (current_interp_set_logging): Declare.
2372 * interps.c (current_interp_set_logging): New function.
2373 * cli/cli-logging.c: Include interps.h.
2374 (set_logging_redirect): Call current_interp_set_logging.
2375 (pop_output_files): Ditto.
2376 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2377 * mi/mi-console.h (mi_console_set_raw): Declare.
2378 * mi/mi-console.c (mi_console_set_raw): New function.
2379 * mi/mi-interp.c (saved_raw_stdout): New global.
2380 (mi_set_logging): New function.
2381 (_initialize_mi_interp): Add it to interp procs.
2382
659c9f3a
DE
23832012-06-28 Doug Evans <dje@google.com>
2384
a743abeb
DE
2385 * symtab.c (lookup_symbol_aux_objfile): Use
2386 ALL_OBJFILE_PRIMARY_SYMTABS.
2387
659c9f3a
DE
2388 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2389
da2d6d3d
JK
23902012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2391
2392 * common/buffer.c: Include inttypes.h and stdint.h.
2393 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2394
e5ef252a
PA
23952012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2396 Pedro Alves <palves@redhat.com>
2397
2398 * gdbthread.h (ALL_THREADS): New macro.
2399 (thread_list): Declare.
2400 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2401 going, but instead fall through to the stepping handling.
2402 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2403 the passed in signal. Adjust debug output.
2404 (resume_callback): Rename to ...
2405 (linux_nat_resume_callback): ... this. Pass the thread's last
2406 stop signal, if in "pass" state.
2407 (linux_nat_resume): Adjust to rename.
2408 (stop_wait_callback): New assertion. Don't respawn signals;
2409 instead let the LWP remain with SIGNALLED set.
2410 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2411 * remote.c (append_pending_thread_resumptions): New.
2412 (remote_vcont_resume): Call it.
2413 * target.h (target_resume): Extend comment.
2414
1d7975eb
IS
24152012-06-28 Iain Sandoe <iain@codesourcery.com>
2416
2417 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2418
2e3cf129
DE
24192012-06-27 Doug Evans <dje@google.com>
2420
2421 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2422 Delete have_addr_base, unused. All uses updated.
2423 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2424 (dwarf2_get_pc_bounds): Add ranges_base.
2425 (dwarf2_record_block_ranges): Ditto.
2426
1bb9788d
TT
24272012-06-27 Tom Tromey <tromey@redhat.com>
2428
2429 PR macros/7961:
2430 * varobj.c (varobj_create): Update.
2431 (varobj_set_value): Update.
2432 * tracepoint.c (validate_actionline): Update.
2433 (encode_actions_1): Update.
2434 * parse.c (parse_exp_1): Add 'pc' argument.
2435 (parse_exp_in_context): Add 'pc' argument. Change how
2436 expression_context_pc is set.
2437 (parse_expression): Update.
2438 (parse_field_expression): Update.
2439 * expression.h (parse_exp_1): Update.
2440 * eval.c (parse_to_comma_and_eval): Update.
2441 * breakpoint.c (set_breakpoint_condition): Update.
2442 (update_watchpoint): Update.
2443 (init_breakpoint_sal): Update
2444 (find_condition_and_thread): Update.
2445 (watch_command_1): Update.
2446 (update_breakpoint_locations): Update.
2447 * ada-lang.c (ada_read_renaming_var_value): Update.
2448 (create_excep_cond_exprs): Update.
2449
0bc3a05c
DE
24502012-06-27 Doug Evans <dje@google.com>
2451
2452 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2453 type units.
2454
4bdcc0c1
DE
24552012-06-26 Doug Evans <dje@google.com>
2456
2457 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2458 prototype.
2459 (error_check_comp_unit_head): New arg abbrev_section. All callers
2460 updated.
2461 (read_and_check_comp_unit_head): Ditto.
2462 (read_and_check_type_unit_head): Ditto.
2463
ee0bf529
SCR
24642012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2465
2466 New attribute 'last' for gdb.Symtab_and_line.
2467 * NEWS (Python Scripting): Add entry about the new attribute.
2468 * python/py-symtab.c (salpy_get_last): New function which
2469 implements the get method for the 'last' attribute of
2470 gdb.Symtab_and_line.
2471 (sal_object_getset): Add entry for the 'last' attribute.
2472
1c658ad5
DE
24732012-06-26 Doug Evans <dje@google.com>
2474
09262596
DE
2475 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2476 (dwo_sections): Add macinfo, macro.
2477 (dwarf2_locate_dwo_sections): Watch for macro sections.
2478 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2479 All callers updated. Handle DWO files.
2480
45cfd468
DE
2481 * NEWS: Mention new options "set debug dwarf2-read" and
2482 "set debug symtab-create".
2483 * dwarf2read.c (dwarf2_read_debug): New static global.
2484 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2485 (process_queue): Ditto.
2486 (process_full_comp_unit): Ditto.
2487 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2488 * elfread.c (elf_symfile_read): Add debugging printf.
2489 * minsyms.c (install_minimal_symbols): Ditto.
2490 * psymtab.c (allocate_psymtab): Ditto.
2491 * symfile.c (allocate_symtab): Ditto.
2492 * symtab.c (symtab_create_debug): New global.
2493 (_initialize_symtab): Add new option "set debug symtab-create".
2494 * symtab.h (symtab_create_debug): Declare.
2495
1c658ad5
DE
2496 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2497 (lookup_dwo_type_unit): Ditto.
2498
6fea9e18
L
24992012-06-26 Roland McGrath <roland@hack.frob.com>
2500 H.J. Lu <hongjiu.lu@intel.com>
2501
2502 * amd64-linux-nat.c: Include <sys/user.h>.
2503 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2504 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2505 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2506
2507 * configure.ac: Check if the fs_base and gs_base members of
2508 `struct user_regs_struct' exist.
2509 * config.in: Regenerated.
2510 * configure: Likewise.
2511
adb4fe3b
ME
25122012-06-25 Michael Eager <eager@eagercon.com>
2513
2514 PR python/14291
f782ad9b 2515 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 2516
fc51cce1
MGD
25172012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2518
2519 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2520 register as a stack alignment in ARM mode.
2521
40a73391
JK
25222012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2523
2524 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2525 * gnulib/config.in: Regenerate.
2526 * gnulib/configure: Likewise.
2527 * gnulib/import/m4/extensions.m4: Update it.
2528 * gnulib/import/m4/gnulib-common.m4: Likewise.
2529 * gnulib/import/m4/memmem.m4: Likewise.
2530 * gnulib/import/m4/mmap-anon.m4: Likewise.
2531 * gnulib/import/m4/multiarch.m4: Likewise.
2532 * gnulib/import/stdint.in.h: Likewise.
2533
972daa01
YQ
25342012-06-24 Yao Qi <yao@codesourcery.com>
2535
2536 * corefile.c (write_memory_with_notification): New.
2537 * gdbcore.h: Declare write_memory_with_notification.
2538 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2539 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2540 * valops.c (value_assign): Likewise.
2541 * python/py-inferior.c (infpy_write_memory): Call
2542 'write_memory_with_notification'.
2543
8d6e0714
JK
25442012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 * cc-with-index.sh: Use also -ex "set auto-load no".
2547
156942c7
DE
25482012-06-23 Doug Evans <dje@google.com>
2549
2550 PR 14125
2551 * NEWS: Document additions to .gdb_index.
2552 * dwarf2read.c: #include "gdb/gdb-index.h".
2553 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2554 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2555 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2556 (dwarf2_read_index): Recognize version 7.
2557 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2558 block_kind, domain): All callers updated.
2559 (dw2_find_symbol_file): Handle new index CU values.
2560 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2561 (add_index_entry): New args is_static, kind. All callers updated.
2562 (offset_type_compare, uniquify_cu_indices): New functions
2563 (symbol_kind): New function.
2564 (write_psymtabs_to_index): Remove duplicate CU values.
2565 (write_psymtabs_to_index): Write .gdb_index version 7.
2566
352b3eda
JB
25672012-06-22 Joel Brobecker <brobecker@adacore.com>
2568
2569 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2570 * configure: Regenerate.
2571
2678e2af
YQ
25722012-06-20 Yao Qi <yao@codesourcery.com>
2573
2574 * python/py-inferior.c: Update comments of infpy_read_memory
2575 and infpy_write_memory.
2576
95c391b6
TT
25772012-06-19 Tom Tromey <tromey@redhat.com>
2578
2579 PR exp/9514:
2580 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2581 (push_type_address_space): Remove.
2582 * parse.c (insert_into_type_stack): New function.
2583 (insert_type): Likewise.
2584 (insert_type_address_space): Rename from push_type_address_space.
2585 Insert tp_space_identifier.
2586 * c-exp.y (ptr_operator): New production.
2587 (abs_decl): Use ptr_operator.
2588 (space_identifier): Call insert_type_address_space.
2589 (ptype): Don't use const_or_volatile_or_space_identifier.
2590 (const_or_volatile_noopt): Call insert_type.
2591 (conversion_type_id, conversion_declarator): New productions.
2592 (operator): Use conversion_type_id.
2593
6ac9ef80
DE
25942012-06-18 Doug Evans <dje@google.com>
2595
422d65e7
DE
2596 * symtab.h (minimal_symbol): New member created_by_gdb.
2597 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2598 created by gdb.
2599 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2600 (search_symbols): Call it instead of lookup_symbol.
2601 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2602
49f6c839
DE
2603 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2604 Adjust address for DW_OP_GNU_addr_index.
2605 * dwarf2expr.h (dwarf_expr_context): Update comment.
2606 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2607 all callers updated. Handle TLS vars described with
2608 DW_OP_GNU_const_index.
2609 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2610 and DW_OP_GNU_const_index.
2611 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2612
6ac9ef80
DE
2613 * block.c (find_block_in_blockvector): Make explicit the fact that we
2614 ignore GLOBAL_BLOCK.
2615
4cd18215
TT
26162012-06-18 Tom Tromey <tromey@redhat.com>
2617
2618 * c-exp.y (operator): Remove trailing space after "delete" and
2619 "delete[]".
2620
a9b8d892
JK
26212012-06-18 Mark Kettenis <kettenis@gnu.org>
2622 Jan Kratochvil <jan.kratochvil@redhat.com>
2623
2624 Switch i386 and derived targets to ON_STACK.
2625 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2626 (amd64_dicos_init_abi): Remove its installment.
2627 * dicos-tdep.c (dicos_init_abi): Remove the
2628 set_gdbarch_call_dummy_location call. Update the comment here.
2629 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2630 (i386_dicos_init_abi): Remove its installment.
2631 * i386-tdep.c (i386_push_dummy_code): New function.
2632 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2633 i386_push_dummy_code.
2634
e2e4d78b
JK
26352012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2636
2637 Remove stale dummy frames.
2638 * breakpoint.c: Include dummy-frame.h.
2639 (longjmp_breakpoint_ops): New variable.
2640 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2641 bp_longjmp_call_dummy.
2642 (bpstat_what, bptype_string, print_one_breakpoint_location)
2643 (init_bp_location): Support bp_longjmp_call_dummy.
2644 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2645 (set_longjmp_breakpoint_for_call_dummy)
2646 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2647 functions.
2648 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2649 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2650 FIXME comment and extend the other comment for bp_call_dummy.
2651 (set_longjmp_breakpoint_for_call_dummy)
2652 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2653 * dummy-frame.c: Include gdbthread.h.
2654 (pop_dummy_frame_bpt): New function.
2655 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2656 (dummy_frame_discard): New function.
2657 (cleanup_dummy_frames): Update the comment about longjmps.
2658 * dummy-frame.h (dummy_frame_discard): New declaration.
2659 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2660 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2661 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2662 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2663 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2664 keep_going if IS_LONGJMP and there is no other reason to stop.
2665
09d5912c
TT
26662012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2667
2668 * remote-sim.c (sim_command_completer): Initialize
2669 variable 'result'.
2670
1788b2d3
JK
26712012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2672
2673 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2674 * dwarf2loc.c (call_site_parameter_matches): Support
2675 CALL_SITE_PARAMETER_PARAM_OFFSET.
2676 (needs_dwarf_reg_entry_value): Push stub value.
2677 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2678 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2679 * gdbtypes.h (enum call_site_parameter_kind): New item
2680 CALL_SITE_PARAMETER_PARAM_OFFSET.
2681 (struct call_site.parameter.u): New field param_offset.
2682
24c5c679
JK
26832012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2684
2685 Code cleanup: Generalize call_site.parameter key.
2686 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2687 variable dwarf_reg. New variable kind_u. Update parameters to
2688 push_dwarf_reg_entry_value.
2689 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2690 * dwarf2expr.h (enum call_site_parameter_kind)
2691 (union call_site_parameter_u): Forward declarations.
2692 (struct dwarf_expr_context_funcs): Update parameters and their
2693 description for push_dwarf_reg_entry_value.
2694 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2695 * dwarf2loc.c (call_site_parameter_matches): New function.
2696 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2697 description. Use call_site_parameter_matches.
2698 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2699 Update parameters and their description.
2700 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2701 New variable kind_u. Adjust the caller for updated parameters.
2702 (needs_dwarf_reg_entry_value): Update parameters.
2703 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2704 instead of attr. Update for the changed fields of struct
2705 call_site_parameter.
2706 * gdbtypes.h: Include dwarf2expr.h.
2707 (enum call_site_parameter_kind): New.
2708 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2709 fb_offset into new union u.
2710
ac142d96
L
27112012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2712
2713 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2714 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2715 for x32.
2716
ba224c70
L
27172012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2718
2719 * amd64-linux-nat.c (compat_x32_clock_t): New.
2720 (compat_x32_siginfo_t): Likewise.
2721 (compat_x32_siginfo_from_siginfo): Likewise.
2722 (siginfo_from_compat_x32_siginfo): Likewise.
2723 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2724 and siginfo_from_compat_x32_siginfo for x32.
2725
7ecbc825
HZ
27262012-06-15 Hui Zhu <hui_zhu@mentor.com>
2727
2728 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2729
233dfcf0
L
27302012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2731
2732 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2733 instead of gdbarch_ptr_bit.
2734 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2735 (amd64_supply_native_gregset): Likewise.
2736 (amd64_collect_native_gregset): Likewise.
2737 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2738 (amd64_supply_xsave): Likewise.
2739 (amd64_collect_fxsave): Likewise.
2740 (amd64_collect_xsave): Likewise.
2741
6da38f42
L
27422012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2743
2744 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2745 (amd64_linux_read_description): Check DS segment register for
2746 x32 process.
2747
663b969e
TT
27482012-06-15 Tom Tromey <tromey@redhat.com>
2749
2750 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2751 init_cutu_and_read_dies.
2752
d6f05027
IS
27532012-06-15 Iain Sandoe <iain@codesourcery.com>
2754
2755 * MAINTAINERS (Write After Approval): Add myself to the list.
2756
6598ed07
TT
27572012-06-15 Tom Tromey <tromey@redhat.com>
2758
2759 * valops.c (value_find_oload_method_list): Now static.
2760 * value.h (value_find_oload_method_list): Don't declare.
2761
2b214ea6
TT
27622012-06-15 Tom Tromey <tromey@redhat.com>
2763
2764 * valops.c (find_overload_match): Use value_ind.
2765
a210c238
MR
27662012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2767
2768 * infrun.c (handle_inferior_event): Correct indentation.
2769
3771a44c
DE
27702012-06-14 Doug Evans <dje@google.com>
2771
2772 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2773 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2774 All uses updated.
2775 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2776 updated. Handle DEBUG_LOC_START_LENGTH.
2777 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2778 (loclist_describe_location): Ditto.
2779
1c5a993e
MR
27802012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2781
2782 PR backtrace/13866
2783 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2784 after hiding inline functions.
2785
0b155465
JB
27862012-06-13 Joel Brobecker <brobecker@adacore.com>
2787
2788 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2789 _initialize_inf_ttrace.
2790
45717bac
JB
27912012-06-13 Joel Brobecker <brobecker@adacore.com>
2792
2793 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2794 _initialize_hppa_hpux_nat.
2795
34370865
JB
27962012-06-13 Joel Brobecker <brobecker@adacore.com>
2797
2798 * remote-sim.c (sim_command_completer): Change type of return
2799 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2800
284c5a60
MK
28012012-06-13 Mark Kettenis <kettenis@gnu.org>
2802 Jan Kratochvil <jan.kratochvil@redhat.com>
2803
2804 PR tdep/14222
2805 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2806 stack on a 16-byte boundary.
2807
2535757a
TT
28082012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2809
2810 * jit.c (finalize_symtab): Set function's return type to 'void' by
2811 default.
2812
fff4548b
MK
28132012-06-13 Mark Kettenis <kettenis@gnu.org>
2814 H.J. Lu <hongjiu.lu@intel.com>
2815
5a83521a
MK
2816 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2817 Move bits common to both the classic LP64 and the new x32 ILP32
2818 ABI here.
2819 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2820 (amd64_x32_linux_init_abi): New function.
2821 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2822 subtype.
2823
fff4548b
MK
2824 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2825 * i386-tdep.c (i386_pseudo_register_name): Make public.
2826 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2827 * amd64-tdep.c (amd64_dword_names): Add "eip".
2828 (amd64_x32_pseudo_register_type): New function
2829 (amd64_x32_init_abi): New function.
2830
dd80ea3c
JK
28312012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2832
2833 PR build/14003
2834 * inferior.h (struct inferior_suspend_state): Comment out.
2835 (struct inferior): Comment out the field suspend.
2836 * infrun.c (struct infcall_suspend_state): Comment out the field
2837 inferior_suspend.
2838 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2839 out its assignment.
2840
50af5481
JK
28412012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2842
2843 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2844 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2845 function comment. Return ERROR for unresolved cases. Implement
2846 returning proper NAME.
2847 (yylex): Accept also NAME from classify_inner_name.
2848 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2849 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2850 LOC_TYPEDEF type.
2851 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2852
d55637df
TT
28532012-06-13 Tom Tromey <tromey@redhat.com>
2854
2855 * breakpoint.c (condition_completer): New function.
2856 (_initialize_breakpoint): Use it.
2857 * value.c (complete_internalvar): New function.
2858 * value.h (complete_internalvar): Declare.
2859
49c4e619
TT
28602012-06-13 Tom Tromey <tromey@redhat.com>
2861
2862 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2863 * breakpoint.c (catch_syscall_completer): Return a VEC.
2864 * cli/cli-cmds.c (complete_command): Update.
2865 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2866 (complete_on_enum): Likewise.
2867 * command.h: Include gdb_vecs.h.
2868 (completer_ftype): Change return type.
2869 (complete_on_cmdlist, complete_on_enum): Likewise.
2870 * completer.c (noop_completer, filename_completer)
2871 (location_completer): Return a VEC.
2872 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2873 to a VEC.
2874 (expression_completer, complete_line_internal, complete_line)
2875 (command_completer): Return a VEC.
2876 (gdb_completion_word_break_characters, line_completion_function):
2877 Update.
2878 * completer.h: Include gdb_vecs.h.
2879 (complete_line, noop_completer, filename_completer)
2880 (expression_completer, location_completer, command_completer):
2881 Update.
2882 * f-lang.c (f_word_break_characters): Return a VEC.
2883 * interps.c (interpreter_completer): Return a VEC.
2884 * language.h (struct language_defn)
2885 <la_make_symbol_completion_list>: Return a VEC.
2886 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2887 * symtab.c (free_completion_list): Take a VEC.
2888 (return_val_size, return_val_index): Remove.
2889 (return_val): Now a VEC.
2890 (completion_list_add_name): Update.
2891 (default_make_symbol_completion_list_break_on)
2892 (default_make_symbol_completion_list, make_symbol_completion_list)
2893 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2894 Return a VEC.
2895 (add_filename_to_list): Update.
2896 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2897 <list>: Now a VEC.
2898 (maybe_add_partial_symtab_filename): Update.
2899 (make_source_files_completion_list): Return a VEC.
2900 * symtab.h (default_make_symbol_completion_list_break_on)
2901 (default_make_symbol_completion_list, make_symbol_completion_list)
2902 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2903 (make_source_files_completion_list): Update.
2904
625e8578
TT
29052012-06-13 Tom Tromey <tromey@redhat.com>
2906
2907 * breakpoint.c (add_catch_command): Use completer_ftype.
2908 * breakpoint.h: Include command.h.
2909 (add_catch_command): Use completer_ftype.
2910 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2911 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2912 Use completer_ftype.
2913 * command.h (completer_ftype): New typedef.
2914 (set_cmd_completer): Use it.
2915 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2916 completer_ftype.
2917
5eb3b062
PA
29182012-06-13 Pedro Alves <palves@redhat.com>
2919
2920 Partial revert of previous change.
2921
2922 * serial.c (scb_base): New global.
2923 (serial_for_fd): New.
2924 (serial_open, serial_fdopen_ops): Link new serial in open serials
2925 chain.
2926 (do_serial_close): Unlink serial from the open serials chain.
2927
8b3ee56d
PA
29282012-06-12 Pedro Alves <palves@redhat.com>
2929
2930 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2931 threads here.
2932 (prepare_for_detach): No longer context switch here in non-stop
2933 mode.
2934 (fetch_inferior_event): Ditto.
2935 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2936 to the event thread before removing breakpoints. Switch to the
2937 event thread before inserting breakpoints and resuming.
2938 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2939 event thread before resuming.
2940 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2941 Switch to the event thread before removing breakpoints.
2942
5d60742e
EZ
29432012-06-12 Eli Zaretskii <eliz@gnu.org>
2944
2945 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2946 special characters correctly for the Windows shells. See
2947 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2948 report.
2949 [!__MINGW32__]: Remove extra double quote character from special
2950 characters.
2951
a6feecf7
SS
29522012-06-11 Stan Shebs <stan@codesourcery.com>
2953
2954 * ui-out.h: Remove #if 0 declarations.
2955 * ui-out.c: Remove #if 0 functions.
2956
ddefb60f
PA
29572012-06-11 Pedro Alves <palves@redhat.com>
2958
2959 * ser-base.c (run_async_handler_and_reschedule): New.
2960 (fd_event, push_event): Use it.
2961 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2962 reference count to 1.
2963 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2964 instead of xfree.
2965 (serial_is_open, serial_ref, serial_unref): New.
2966 * serial.h (serial_open): Adjust comment.
2967 (serial_is_open): Declare.
2968 (serial_close): Adjust comment.
2969 (serial_ref, serial_unref) Declare.
2970 (struct serial): New field 'refcnt'.
2971
d5ad6aa5
PA
29722012-06-11 Pedro Alves <palves@redhat.com>
2973
2974 Remove #if 0'd "connect" command, and unnecessary associated
2975 refcounting and serial reuse bits.
2976
2977 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2978 * serial.c (last_serial_opened): Delete.
2979 (scb_base): Delete.
2980 (serial_open): Adjust.
2981 (serial_for_fd): Delete.
2982 (serial_fdopen_ops, do_serial_close): Adjust.
2983 (serial_fdopen_ops): Adjust.
2984
318aa544
PA
29852012-06-11 Pedro Alves <palves@redhat.com>
2986
2987 * serial.c (do_serial_close): Remove early return when SCB is
2988 null.
2989
07261596
TT
29902012-06-11 Tom Tromey <tromey@redhat.com>
2991
2992 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2993
cc80f267
JK
29942012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2995
2996 Fix regression by the "ambiguous linespec" series.
2997 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2998 get_last_displayed_symtab and get_last_displayed_line and depending
2999 on CURSAL.
3000
356d9f9d
TT
30012012-06-11 Tom Tromey <tromey@redhat.com>
3002
3003 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3004 (dw2_find_symbol_file): Use it.
3005
232b8704
ME
30062012-06-11 Michael Eager <eager@eagercon.com>
3007
3008 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3009 * mips-linux-tdep.h (mips_signals): New
3010
e81a37f7
TT
30112012-06-11 Tom Tromey <tromey@redhat.com>
3012
3013 * infrun.c (handle_inferior_event)
3014 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3015 breakpoint.
3016 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3017 exception logic in all cases. Update comments.
3018 (insert_longjmp_resume_breakpoint): Set the exception resume
3019 breakpoint.
3020
2e81047f
MR
30212012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3022
3023 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3024
4e32eda7
SCR
30252012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3026
3027 * valarith.c (binop_types_user_defined_p): Fix a typo.
3028
18648a37 30292012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3030 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3031
3032 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3033 * arch-utils.h: Declare.
3034 * gdbarch.sh: Add return_in_first_hidden_param_p.
3035 * gdbarch.c, gdbarch.h: Regenerated.
3036 * infcall.c (call_function_by_hand): Call
3037 gdbarch_return_in_first_hidden_param_p instead of
3038 language_pass_by_reference.
3039
3040 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3041 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3042 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3043 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3044 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3045 `cplus_return_struct_by_reference'.
3046 (tic6x_return_value): Handle language cplusplus.
3047 (tic6x_return_in_first_hidden_param_p): New.
3048 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3049
034e5797
DE
30502012-06-07 Doug Evans <dje@google.com>
3051
3052 * dwarf2read.c (dwarf2_cu): Add comment.
3053
6a00aa1e
MR
30542012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3055
3056 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3057 variable.
3058 (mips_eabi_push_dummy_call): Likewise.
3059 (mips_n32n64_push_dummy_call): Likewise.
3060 (mips_o32_push_dummy_call): Likewise.
3061 (mips_o64_push_dummy_call): Likewise.
3062
eaa05d59
MR
30632012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3064
3065 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3066
de13fcf2
MR
30672012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3068
3069 * mips-tdep.c (mips_pseudo_register_type): Use
3070 mips_float_register_p.
3071
c3a01a22
PA
30722012-06-06 Pedro Alves <palves@redhat.com>
3073
3074 * infrun.c (handle_inferior_event): Remove calls to
3075 reinit_frame_cache that follow a context_switch call.
3076
d25f45d9
PA
30772012-06-06 Pedro Alves <palves@redhat.com>
3078
3079 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3080 context_switch and remove stale comment.
3081
359f5fe6
PA
30822012-06-06 Pedro Alves <palves@redhat.com>
3083
3084 * infrun.c (struct execution_control_state): Remove
3085 `new_thread_event' field.
3086 (handle_inferior_event): Simplify new threads handling; don't
3087 resume the inferior if we find a new thread.
3088
2d4c29c5
TS
30892012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3090
3091 * NEWS: Document the deprecation of SH's 'regs' command.
3092 * inferior.h (all_registers_info): Add function declaration.
3093 * sh-tdep.c (sh_show_regs): Remove variable.
3094 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3095 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3096 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3097 (sh_show_regs_command): Remove functions.
3098 (sh_gdbarch_init): Don't set sh_show_regs.
3099 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3100 'info all-registers'.
3101 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3102 (sh64_show_regs): Remove functions.
3103 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3104
f5f1cdb6
JK
31052012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3106
3107 * configure.ac: Move development=true below AC_INIT.
3108 * configure: Regenerate.
3109
bf6309af
SS
31102012-06-05 Stan Shebs <stan@codesourcery.com>
3111
3112 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3113 gdb_stdout.
3114
45aa4659
JK
31152012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3116
3117 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3118 argument as ssize_t.
3119 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3120 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3121 * target.c (target_read_stack, target_write_memory)
3122 (target_write_raw_memory): Likewise.
3123 * target.h (target_read_stack, target_write_memory)
3124 (target_write_raw_memory): Likewise.
3125
1b162304
JK
31262012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3127
3128 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3129 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3130 * target.c (target_read_memory): Change LEN to ssize_t.
3131 * target.h (target_read_memory): Change LEN to ssize_t.
3132
8556afb4
PA
31332012-06-05 Pedro Alves <palves@redhat.com>
3134
3135 PR backtrace/13866
3136
3137 * breakpoint.c (until_break_command): Only fetch the selected
3138 frame after decode_line_1.
3139
fb139f32
PA
31402012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3141
3142 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3143 event breakpoint at _start, __start or main if a program
3144 interpreter is not found.
3145
a8e1bb34
JB
31462012-06-05 Joel Brobecker <brobecker@adacore.com>
3147
3148 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3149 Add declaration.
3150 * windows-tdep.c: #include "objfiles.h".
3151 (windows_iterate_over_objfiles_in_search_order): New function.
3152 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3153 iterate_over_objfiles_in_search_order gdbarch method to
3154 windows_iterate_over_objfiles_in_search_order.
3155 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3156
19630284
JB
31572012-06-05 Joel Brobecker <brobecker@adacore.com>
3158
3159 * gdbarch.sh: Add generation of
3160 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3161 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3162 (iterate_over_objfiles_in_search_order): New gdbarch method.
3163 * gdbarch.h, gdbarch.c: Regenerate.
3164 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3165 Add declaration.
3166 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3167 New function.
3168 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3169 out of lookup_symbol_aux_symtabs.
3170 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3171 call to lookup_symbol_aux_objfile.
3172 (struct global_sym_lookup_data): New type.
3173 (lookup_symbol_global_iterator_cb): New function.
3174 (lookup_symbol_global): Search for symbol using
3175 gdbarch_iterate_over_objfiles_in_search_order and
3176 lookup_symbol_global_iterator_cb.
3177 * findvar.c (struct minsym_lookup_data): New type.
3178 (minsym_lookup_iterator_cb): New function.
3179 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3180 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3181 and minsym_lookup_iterator_cb.
3182
67ff19f7
JB
31832012-06-05 Joel Brobecker <brobecker@adacore.com>
3184
3185 Revert the following patch:
3186 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3187 try locating the symbol in the symbol's own objfile first, before
3188 extending the search to all objfiles.
3189 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3190 out of lookup_symbol_aux_symtabs.
3191 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3192 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3193 Do not search EXCLUDE_OBJFILE.
3194 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3195 (lookup_symbol_global): Search for matches in the block's objfile
3196 first, before searching all other objfiles.
3197
ccab2054
JB
31982012-06-05 Joel Brobecker <brobecker@adacore.com>
3199
3200 * breakpoint.c (find_condition_and_thread): Stop parsing
3201 as soon as the first invalid keyword is found.
3202
e23d4a9c
JB
32032012-06-05 Joel Brobecker <brobecker@adacore.com>
3204
3205 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3206
70160166
JB
32072012-06-05 Joel Brobecker <brobecker@adacore.com>
3208
3209 * config/djgpp/djcheck.sh: Add copyright header.
3210
399501a5
JB
32112012-06-05 Joel Brobecker <brobecker@adacore.com>
3212
3213 * copyright.py (update_files, main): Fix path to update-copyright
3214 script.
3215
3770a159
JB
32162012-06-05 Joel Brobecker <brobecker@adacore.com>
3217
3218 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3219 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3220 for which a reminder to update by hand is printed.
3221
4aad0dfc
DE
32222012-06-04 Doug Evans <dje@google.com>
3223
3224 * buildsym.c (make_blockvector): Add comment.
3225
1f8cf220
PA
32262012-06-04 Pedro Alves <palves@redhat.com>
3227
3228 * arch-utils.c (default_gdb_signal_from_target): Delete.
3229 * arch-utils.h (default_gdb_signal_from_target): Delete.
3230 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3231 gdbarch_gdb_signal_from_target_p.
3232 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3233 predicate).
3234 * gdbarch.h: Regenerate.
3235 * gdbarch.c: Regenerate.
3236
86b49880
PA
32372012-06-04 Pedro Alves <palves@redhat.com>
3238
3239 * gdbarch.sh (gdb_signal_from_target): Mention that the
3240 implementation of the method must be host independent.
3241 * gdbarch.h: Regenerate.
3242
fe78531d
JK
32432012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3244
3245 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3246 parameters.
3247 (target_read_memory_bfd): New function.
3248 (symbol_file_add_from_memory): Use it.
3249
d790cf0a
DE
32502012-06-03 Doug Evans <dje@google.com>
3251
78e5175a
DE
3252 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3253 of primary symtab.
3254 (basic_lookup_transparent_type): Ditto.
3255
d790cf0a
DE
3256 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3257 (ALL_PRIMARY_SYMTABS): Use it.
3258 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3259 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3260 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3261 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3262 (basic_lookup_transparent_type): Ditto.
3263
c6e5ee5e
SDJ
32642012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3265
3266 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3267 it to optimize resolution of demangled name.
3268
a68ffae9
JK
32692012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 * configure.ac (development): Define new variable.
3272 Call AC_CHECK_LIB for mcheck if $development.
3273 (ERROR_ON_WARNING): Enable it by default only if $development.
3274 * config.in: Regenerate.
3275 * configure: Regenerate.
3276
5299c1c4
JK
32772012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3278
3279 * target.c (target_read_memory): Make LEN argument as size_t.
3280 * target.h (target_read_memory): Likewise.
3281
32822012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3283
3284 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3285
0c56f59b
EBM
32862012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3287
3288 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3289 BookE interface for PowerPC server processors if not available
3290 in the Linux Kernel.
3291
71bdabee
KS
32922012-05-31 Keith Seitz <keiths@redhat.com>
3293
3294 * linespec.c (decode_objc): Add cleanup to free
3295 INFO.FILE_SYMTABS.
3296 (find_linespec_symbols): Add cleanup to free CLASSES.
3297 * symfile.c (find_separate_debug_file_by_debuglink): Add
3298 cleanup to free DEBUGLINK.
3299 * ui-out.c (clear_header_list): No need to check if
3300 HEADER_NEXT.COLHDR is NULL.
3301 Free HEADER_NEXT.COL_NAME.
3302
acbd605d
MGD
33032012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3304
3305 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3306 warning.
3307
65662cde
PA
33082012-05-30 Jeff Kenton <jkenton@tilera.com>
3309
3310 * configure.host (gdb_host_cpu): Handle tilegx*.
3311 (gdb_host): Handle tilegx-*-linux*.
3312 * tilegx-linux-nat.c: New file.
3313 * config/tilegx/linux.mh: New file.
3314
ade64f0e
PA
33152012-05-30 Jeff Kenton <jkenton@tilera.com>
3316
3317 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3318 tilegx-linux-tdep.o.
3319 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3320 tilegx-linux-tdep.c.
3321 * configure.tgt: Handle tilegx-*-linux*.
3322 * tilegx-tdep.h: New file.
3323 * tilegx-tdep.c: New file.
3324 * tilegx-linux-tdep.c: New file.
3325 * regformats/reg-tilegx.dat: New file.
3326
bb08bdbd
EBM
33272012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3328
3329 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3330 accounting of hw watchpoints on ppc.
3331
ebd86fb5
TJB
33322012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3333
3334 * source.c (openp): Expand tilde in path entries.
3335
0a0edcd5
DE
33362012-05-29 Doug Evans <dje@google.com>
3337
98cc87bd
DE
3338 * buildsym.c (block_compar): Fix comment.
3339 (end_symtab): Fix and clarify some comments.
3340
0a0edcd5
DE
3341 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3342 cleanup_undefined_types.
3343 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3344 All callers updated.
3345
6f0c7050
TT
33462012-05-29 Tom Tromey <tromey@redhat.com>
3347
3348 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3349 fails.
3350 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3351 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3352 fails.
3353 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3354 fails.
3355
ec95993c
TG
33562012-05-29 Tristan Gingold <gingold@adacore.com>
3357
3358 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3359 (struct darwin_info): ... New struct.
3360 (solib_darwin_pspace_data): New variable.
3361 (darwin_pspace_data_cleanup): New function.
3362 (get_darwin_info): Likewise.
3363 (darwin_dyld_version_ok, darwin_load_image_infos)
3364 (darwin_solib_get_all_image_info_addr_at_init)
3365 (darwin_solib_read_all_image_info_addr): Add info argument.
3366 Adjust code.
3367 (darwin_current_sos): Use per pspace structure.
3368 (darwin_solib_create_inferior_hook): Likewise.
3369 (darwin_clear_solib): Likewise.
3370 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3371
ae25568b
PA
33722012-05-28 Pedro Alves <palves@redhat.com>
3373
3374 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3375 block that uses them. Clear ecss before handling each event.
3376
0c5bf5a9
JK
33772012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3378
3379 * solib-svr4.c (svr4_current_sos): New comment on
3380 svr4_current_sos_via_xfer_libraries fall back.
3381
bfb05775
JK
33822012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3385 it as a fallback for TYPE_IS_OPAQUE.
3386 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3387 symbols for lookup_symbol.
3388
685b1105
JK
33892012-05-24 John Steele Scott <toojays@toojays.net>
3390
3391 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3392 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3393 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3394 (check_producer): ... this new function, which also checks for ICC
3395 and caches the result.
3396 (producer_is_icc): New function.
3397 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3398 producer was ICC.
3399
22203bbf
PA
34002012-05-24 Pedro Alves <palves@redhat.com>
3401
3402 PR gdb/7205
3403
3404 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3405 (default_gdb_signal_to_target): ... this. Add comment.
3406 (default_gdb_signal_from_host): Rename to ...
3407 (default_gdb_signal_from_target): ... this. Add comment.
3408 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3409 (default_gdb_signal_to_target): ... this.
3410 (default_gdb_signal_from_host): Rename to ...
3411 (default_gdb_signal_from_target): ... this.
3412 * corelow.c (core_open): Adjust to naming change. Replace comment.
3413 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3414 (gdb_signal_from_target): ... this. Adjust to
3415 default_gdb_signal_from_host naming change. Extend comment.
3416 (gdb_signal_to_host): Rename to ...
3417 (gdb_signal_to_target): ... this. Adjust to
3418 default_gdb_signal_to_host naming change.
3419 * gdbarch.h, gdbarch.c: Renegerate.
3420
a493e3e2
PA
34212012-05-24 Pedro Alves <palves@redhat.com>
3422
3423 PR gdb/7205
3424
f782ad9b 3425 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3426
2ea28649
PA
34272012-05-24 Pedro Alves <palves@redhat.com>
3428
3429 PR gdb/7205
3430
3431 Replace target_signal with gdb_signal throughout.
3432
b09846a9
PA
34332012-05-24 Pedro Alves <palves@redhat.com>
3434
3435 PR tui/14159
3436
3437 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3438 string, instead of reusing the va_list argument.
3439
e77c107e
TT
34402012-05-24 Tom Tromey <tromey@redhat.com>
3441
3442 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3443 Remove.
3444
9fccedf7
DE
34452012-05-23 Doug Evans <dje@google.com>
3446
d50bd42b
DE
3447 * symtab.c (search_symbols): Formatting fixes.
3448 (print_symbol_info): Formatting fixes.
3449
9fccedf7
DE
3450 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3451 int64_t change to leb128 API.
3452 (read_encoded_value, decode_frame_entry_1): Ditto.
3453 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3454 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3455 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3456 (execute_stack_op): Ditto.
3457 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3458 (safe_read_uleb128, safe_read_sleb128): Ditto.
3459 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3460 (dwarf2_compile_expr_to_ax): Ditto.
3461 (locexpr_describe_location_piece): Ditto.
3462 (disassemble_dwarf_expression): Ditto.
3463 (locexpr_describe_location_1): Ditto.
3464
f3e0e960
SS
34652012-05-23 Stan Shebs <stan@codesourcery.com>
3466 Kwok Cheung Yeung <kcy@codesourcery.com>
3467
3468 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3469 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3470 (mi-cmd-info.o): New rule.
3471 * osdata.h (info_osdata_command): New declaration.
3472 * osdata.c (info_osdata_command): Change to non-static.
3473 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3474 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3475 * mi/mi-cmd-info.c: New file.
3476
c51fe631
DE
34772012-05-23 Doug Evans <dje@google.com>
3478
71cddcc1
DE
3479 * symtab.c (search_symbols): Pass NULL for file_matcher to
3480 expand_symtabs_matching if there are no files to match.
3481
c51fe631
DE
3482 * gdbtypes.c (lookup_typename): Simplify.
3483
a79378d4
PA
34842012-05-23 Pedro Alves <palves@redhat.com>
3485
3486 * arch-utils.h (default_target_signal_to_host): Delete.
3487 * arch-utils.c (default_target_signal_to_host): Delete.
3488 * gdbarch.sh (target_signal_to_host): Remove.
3489 * gdbarch.h, gdbarch.c: Regenerate.
3490
f664829e
DE
34912012-05-22 Doug Evans <dje@google.com>
3492
3493 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3494 "const gdb_byte *".
3495 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3496 (execute_cfa_program): Update to match API of leb128 functions.
3497 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3498 "const gdb_byte *".
3499 (read_unsigned_leb128, read_signed_leb128): Delete.
3500 (read_initial_length): Change type of buf argument to
3501 "const gdb_byte *".
3502 (read_encoded_value): Update to match API of leb128 functions.
3503 (decode_frame_entry): Change result to "const gdb_byte *", and
3504 similarly for "start" parameter.
3505 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3506 (dwarf2_build_frame_info): Change local frame_ptr to
3507 "const gdb_byte *".
3508 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3509 read_uleb128, read_sleb128. All callers updated.
3510 (safe_skip_leb128): New function.
3511 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3512 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3513 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3514 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3515 read_uleb128, read_sleb128.
3516 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3517 (execute_stack_op): Update to match API of leb128 functions.
3518 * dwarf2expr.h: #include "leb128.h".
3519 (read_uleb128, read_sleb128): Delete.
3520 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3521 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3522 * dwarf2loc.c (debug_loc_kind): New enum.
3523 (decode_debug_loc_addresses): New function.
3524 (decode_debug_loc_dwo_addresses): New function.
3525 (dwarf2_find_location_expression): Rewrite.
3526 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3527 (locexpr_describe_location_piece): Ditto.
3528 (disassemble_dwarf_expression): Ditto.
3529 (locexpr_describe_location_1): Ditto.
3530 (loclist_describe_location): Rewrite.
3531 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3532 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3533 (dwarf2_section_buffer_overflow_complaint): Renamed from
3534 dwarf2_macros_too_long_complaint. All callers updated.
3535 (skip_leb128): Delete.
3536 (init_cu_die_reader): Initialize reader->buffer_end.
3537 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3538 (skip_form_bytes): New arg buffer_end. All callers updated.
3539 Replace call to skip_leb128 with gdb_skip_leb128.
3540 (skip_unknown_opcode): New arg mac_end. All callers updated.
3541 (fill_in_loclist_baton): Initialize baton->from_dwo.
3542
837a1b32
MR
35432012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3544
3545 * mips-linux-nat.c (mips_linux_read_description): Use a more
3546 verbose error message.
3547
d0e64392
MR
35482012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3549
3550 * NEWS: Add MIPS/Linux DSP support.
3551 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3552 (SIGCONTEXT_DSPCTL): New macro.
3553 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3554 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3555 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3556 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3557 (N64_SIGCONTEXT_HI3): Likewise.
3558 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3559 (N64_SIGCONTEXT_LO3): Likewise.
3560 (N64_SIGCONTEXT_DSPCTL): Likewise.
3561 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3562 (mips_linux_o32_sigframe_init): Handle DSP registers.
3563 (mips_linux_n32n64_sigframe_init): Likewise.
3564
8bea7ed1
PM
35652012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3566
3567 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3568 call to abort.
3569
dab06dbe
PA
35702012-05-22 Pedro Alves <palves@redhat.com>
3571
3572 * target.h (store_waitstatus): Move declaration ...
3573 * inf-child.h (store_waitstatus): ... here.
3574 * target.c: Move inclusion of gdb_wait.h, and ...
3575 (store_waitstatus): ... this ...
3576 * inf-child.c: ... here.
3577 * linux-nat.c: Include inf-child.h.
3578 * rs6000-nat.c: Include inf-child.h.
3579 * spu-linux-nat.c: Include inf-child.h.
3580
43011e52
PM
35812012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3582
3583 * tracepoint.c (start_tracing): Add missing i18n markup.
3584 (stop_tracing, set_trace_user): Ditto.
3585 (set_trace_notes, set_trace_stop_notes): Ditto.
3586
b1af9e97
TT
35872012-05-21 Tom Tromey <tromey@redhat.com>
3588
3589 PR c++/7173:
3590 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3591 types.
3592 * value.h (value_cast_pointers): Update.
3593 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3594 (value_cast): Update.
3595 (update_search_result): New function.
3596 (do_search_struct_field): New, from search_struct_field. Check
3597 for ambiguous results.
3598 (search_struct_field): Rewrite.
3599 * infcall.c (value_arg_coerce): Update.
3600 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3601 value_cast_pointers.
3602 * ada-lang.c (ada_convert_actual): Update.
3603
e9e5e6b3
TT
36042012-05-21 Tom Tromey <tromey@redhat.com>
3605
3606 * macroexp.c (macro_stringify): Terminate the string.
3607
1564a261
JK
36082012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3611 Describe it.
3612 * auto-load.c (auto_load_expand_dir_vars): New function.
3613 (auto_load_safe_path_vec_update): Use it, remove the
3614 substitute_path_component call thanks to it.
3615 (auto_load_objfile_script): Remove the debug_file_directory processing.
3616 Use auto_load_expand_dir_vars, remove the substitute_path_component
3617 call thanks to it.
3618 * configure: Regenerate.
3619 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3620 path. Escape $ also for $debugdir.
3621 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3622 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3623
a3ec0bb1
DE
36242012-05-20 Doug Evans <dje@google.com>
3625
3626 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3627 before use. Check for symtab->includes == NULL before scanning it.
3628
d467df4e
MR
36292012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3630
3631 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3632
4cc0665f
MR
36332012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3634
3635 * NEWS: Add microMIPS support and "set mips compression",
3636 "show mips compression" commands.
3637 * mips-tdep.h (mips_isa): New enum.
3638 (gdbarch_tdep): Add mips_isa.
3639 (mips_pc_is_mips16): Update prototype.
3640 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3641 * mips-tdep.c (mips_compression_mips16): New variable.
3642 (mips_compression_micromips): Likewise.
3643 (mips_compression_strings): Likewise.
3644 (mips_compression_string): Likewise.
3645 (is_mips16_isa, is_micromips_isa): New functions.
3646 (is_mips16_addr): Rename to...
3647 (is_compact_addr): ... this.
3648 (unmake_mips16_addr): Likewise to...
3649 (unmake_compact_addr): ... this.
3650 (make_mips16_addr): Likewise to...
3651 (make_compact_addr): ... this.
3652 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3653 functions.
3654 (mips_elf_make_msymbol_special): Handle microMIPS code.
3655 (msymbol_is_special): Rename to...
3656 (msymbol_is_mips16): ... this.
3657 (mips_make_symbol_special, mips_pc_is_mips16): Update
3658 accordingly.
3659 (msymbol_is_mips, msymbol_is_micromips): New functions.
3660 (mips16_to_32_reg): Rename to...
3661 (mips_reg3_to_reg): ... this.
3662 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3663 (mips_pc_isa): Likewise.
3664 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3665 code.
3666 (mips_fetch_instruction): Pass return status instead of printing
3667 an error message if requested. Handle microMIPS code. Bail out
3668 on an invalid ISA.
3669 (micromips_op): New macro.
3670 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3671 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3672 (b6s4_op, b7s3_reg): Likewise.
3673 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3674 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3675 (mips_insn_size): New function.
3676 (mips32_next_pc): Update mips_fetch_instruction call.
3677 (micromips_relative_offset7): New function.
3678 (micromips_relative_offset10): Likewise.
3679 (micromips_relative_offset16): Likewise.
3680 (micromips_pc_insn_size): Likewise.
3681 (micromips_bc1_pc): Likewise.
3682 (micromips_next_pc): Likewise.
3683 (unpack_mips16): Update mips_fetch_instruction call.
3684 (extended_mips16_next_pc): Update according to change to
3685 mips16_to_32_reg.
3686 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3687 code.
3688 (mips16_scan_prologue): Update mips_fetch_instruction call.
3689 Update according to change to mips16_to_32_reg.
3690 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3691 (mips_insn16_frame_base_sniffer): Likewise.
3692 (micromips_decode_imm9): New function.
3693 (micromips_scan_prologue): Likewise.
3694 (mips_micro_frame_cache): Likewise.
3695 (mips_micro_frame_this_id): Likewise.
3696 (mips_micro_frame_prev_register): Likewise.
3697 (mips_micro_frame_sniffer): Likewise.
3698 (mips_micro_frame_unwind): New variable.
3699 (mips_micro_frame_base_address): New function.
3700 (mips_micro_frame_base): New variable.
3701 (mips_micro_frame_base_sniffer): New function.
3702 (mips32_scan_prologue): Update mips_fetch_instruction call.
3703 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3704 rather than for MIPS16.
3705 (mips_insn32_frame_base_sniffer): Likewise.
3706 (mips_addr_bits_remove): Handle microMIPS code.
3707 (deal_with_atomic_sequence): Rename to...
3708 (mips_deal_with_atomic_sequence): ... this. Update the type
3709 of the variable used to hold an instruction. Remove the ISA bit
3710 check. Update mips_fetch_instruction call.
3711 (micromips_deal_with_atomic_sequence): New function.
3712 (deal_with_atomic_sequence): Likewise.
3713 (mips_about_to_return): Handle microMIPS code. Update
3714 mips_fetch_instruction call.
3715 (heuristic_proc_start): Check for the standard MIPS ISA rather
3716 than for MIPS16. Update mips_pc_is_mips16 and
3717 mips_fetch_instruction calls. Handle microMIPS code.
3718 (mips_push_dummy_code): Handle microMIPS code.
3719 (mips_eabi_push_dummy_call): Likewise.
3720 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3721 (mips_o64_push_dummy_call): Handle microMIPS code.
3722 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3723 (is_delayed): Remove function.
3724 (mips_single_step_through_delay): Replace the call to is_delayed
3725 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3726 Handle microMIPS code.
3727 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3728 microMIPS code.
3729 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3730 call.
3731 (micromips_in_function_epilogue_p): New function.
3732 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3733 call.
3734 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3735 Handle microMIPS.
3736 (gdb_print_insn_mips): Likewise.
3737 (mips_breakpoint_from_pc): Likewise.
3738 (mips_remote_breakpoint_from_pc): New function.
3739 (mips32_instruction_has_delay_slot): Simplify making use of the
3740 updated mips_fetch_instruction interface.
3741 (micromips_instruction_has_delay_slot): New function.
3742 (mips16_instruction_has_delay_slot): Simplify making use of the
3743 updated mips_fetch_instruction interface.
3744 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 3745 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
3746 calls. Handle microMIPS code.
3747 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3748 (mips_skip_trampoline_code): Handle microMIPS code.
3749 (global_mips_compression): New function.
3750 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3751 file flags. Register the microMIPS remote breakpoint handler
3752 and heuristic frame unwinder.
3753 (show_mips_compression): New function.
3754 (_initialize_mips_tdep): Add the "set mips compression" and
3755 "show mips compression" commands.
3756
22e048c9
SDJ
37572012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3758
3759 * ada-lang.c:
3760 * ada-tasks.c:
3761 * ada-varobj.c:
3762 * amd64-darwin-tdep.c:
3763 * arm-symbian-tdep.c:
3764 * arm-tdep.c:
3765 * avr-tdep.c:
3766 * ax-gdb.c:
3767 * bfin-linux-tdep.c:
3768 * breakpoint.c:
3769 * c-valprint.c:
3770 * cli/cli-cmds.c:
3771 * coffread.c:
3772 * cp-support.c:
3773 * cris-tdep.c:
3774 * dwarf2-frame-tailcall.c:
3775 * dwarf2-frame.c:
3776 * dwarf2expr.c:
3777 * dwarf2loc.c:
3778 * dwarf2read.c:
3779 * elfread.c:
3780 * eval.c:
3781 * expprint.c:
3782 * f-valprint.c:
3783 * frv-tdep.c:
3784 * h8300-tdep.c:
3785 * hppa-hpux-tdep.c:
3786 * hppa-tdep.c:
3787 * hppanbsd-tdep.c:
3788 * i386-nto-tdep.c:
3789 * i386-tdep.c:
3790 * i387-tdep.c:
3791 * ia64-tdep.c:
3792 * jit.c:
3793 * linespec.c:
3794 * linux-tdep.c:
3795 * lm32-tdep.c:
3796 * m2-valprint.c:
3797 * m32c-tdep.c:
3798 * m32r-rom.c:
3799 * m32r-tdep.c:
3800 * m68k-tdep.c:
3801 * m68klinux-tdep.c:
3802 * mi/mi-main.c:
3803 * microblaze-tdep.c:
3804 * mips-linux-tdep.c:
3805 * mips-tdep.c:
3806 * mn10300-tdep.c:
3807 * p-valprint.c:
3808 * parse.c:
3809 * ppc-linux-tdep.c:
3810 * ppc-sysv-tdep.c:
3811 * printcmd.c:
3812 * python/py-finishbreakpoint.c:
3813 * python/py-inferior.c:
3814 * python/py-infthread.c:
3815 * python/py-type.c:
3816 * python/python.c:
3817 * remote-fileio.c:
3818 * remote-m32r-sdi.c:
3819 * remote-mips.c:
3820 * reverse.c:
3821 * rl78-tdep.c:
3822 * rs6000-aix-tdep.c:
3823 * rs6000-tdep.c:
3824 * s390-tdep.c:
3825 * score-tdep.c:
3826 * sh64-tdep.c:
3827 * skip.c:
3828 * solib-darwin.c:
3829 * solib-dsbt.c:
3830 * solib-frv.c:
3831 * sparc-tdep.c:
3832 * spu-multiarch.c:
3833 * spu-tdep.c:
3834 * stack.c:
3835 * symfile.c:
3836 * symtab.c:
3837 * tic6x-tdep.c:
3838 * tracepoint.c:
3839 * v850-tdep.c:
3840 * valarith.c:
3841 * valprint.c:
3842 * value.c:
3843 * xcoffread.c:
3844 * xtensa-tdep.c:
3845 * ada-lang.c:
3846 * ada-tasks.c:
3847 * ada-varobj.c:
3848 * amd64-darwin-tdep.c:
3849 * arm-symbian-tdep.c:
3850 * arm-tdep.c: Delete unused variables.
3851
aff139ff
JK
38522012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3853
3854 Rename $ddir to $datadir.
3855 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3856 * auto-load.c (auto_load_safe_path_vec_update)
3857 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3858 * configure: Regenerate.
3859 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3860 Likewise. Remove the 'use $ddir' help string.
3861
f7bfa992
JK
38622012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3863
3864 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3865 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3866
9cb709b6
TT
38672012-05-18 Tom Tromey <tromey@redhat.com>
3868
3869 PR exp/13907:
3870 * valprint.h (struct value_print_options) <symbol_print>: New
3871 field.
3872 * valprint.c (user_print_options): Add default for symbol_print.
3873 (show_symbol_print): New function.
3874 (generic_val_print): Respect symbol_print.
3875 (_initialize_valprint): Add "print symbol" setting.
3876 * f-valprint.c (f_val_print): Respect symbol_print.
3877 * c-valprint.c (c_val_print): Respect symbol_print.
3878 * NEWS: Update.
3879 * printcmd.c (print_address_symbolic): Return int. Ignore some
3880 zero-size symbols.
3881 (print_address_demangle): Return int.
3882 * defs.h: (print_address_symbolic): Return int.
3883 * value.h (print_address_demangle): Return int.
3884
b012acdd
TT
38852012-05-18 Tom Tromey <tromey@redhat.com>
3886
3887 * valprint.c (val_print_string): Don't print leading space.
3888 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3889 print space before string or vtbl.
3890 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3891 before string.
3892 * jv-valprint.c (java_value_print): Print space before string.
3893 * go-valprint.c (print_go_string): Print space before string.
3894 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3895 space before string.
3896 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3897 space before string or vtbl.
3898 * auxv.c (fprint_target_auxv): Print space after address.
3899
1d51a733
TT
39002012-05-18 Tom Tromey <tromey@redhat.com>
3901
3902 * printcmd.c (print_address_demangle): Remove special case for 0.
3903
edf0c1b7
TT
39042012-05-18 Tom Tromey <tromey@redhat.com>
3905
3906 * printcmd.c (print_address_demangle): Add 'opts' argument.
3907 * p-valprint.c (pascal_val_print): Update.
3908 * jv-valprint.c (java_val_print): Update.
3909 * value.h: Update.
3910 * valprint.c (generic_val_print): Update.
3911 (print_function_pointer_address): Add 'options' argument. Remove
3912 'addressprint' argument. Update.
3913 * m2-valprint.c (print_unpacked_pointer): Update.
3914 * gnu-v3-abi.c (print_one_vtable): Update.
3915 (gnuv3_print_method_ptr): Update.
3916 * f-valprint.c (f_val_print): Update.
3917 * cp-valprint.c (cp_print_value_fields): Update.
3918 * valprint.h (print_function_pointer_address): Update.
3919 * c-valprint.c (c_val_print): Update.
3920
9703b513
TT
39212012-05-18 Tom Tromey <tromey@redhat.com>
3922
3923 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3924 directly corresponding to the found psymtab.
3925 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3926 (dw2_find_pc_sect_symtab): Use it.
3927 * block.h (blockvector_contains_pc): Declare.
3928 * block.c (find_block_in_blockvector): New function.
3929 (blockvector_for_pc_sect): Use it.
3930 (blockvector_contains_pc): New function.
3931
5a439849
MR
39322012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3933
3934 * mips-tdep.h (mips_write_pc): New prototype.
3935 * mips-tdep.c (mips_write_pc): Make external, add description.
3936 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3937 add description.
3938
8376de04
MR
39392012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3940
3941 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3942 mips_regnum->pc.
3943 (mips_unwind_pc, mips_write_pc): Likewise.
3944 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3945 gdbarch_read_pc.
3946
d3581e61
JB
39472012-05-17 Joel Brobecker <brobecker@adacore.com>
3948
3949 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3950 proc_warn, proc_error, proc_get_status, proc_flags,
3951 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3952 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3953 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3954 proc_stop_process, proc_wait_for_stop, proc_run_process,
3955 proc_set_traced_signals, proc_set_traced_faults,
3956 proc_set_traced_sysentry, proc_set_traced_sysexit,
3957 proc_set_held_signals, proc_get_held_signals,
3958 proc_get_traced_signals, proc_get_traced_faults,
3959 proc_get_traced_sysentry, proc_get_traced_sysexit,
3960 proc_clear_current_fault, proc_set_current_signal,
3961 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3962 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3963 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3964 proc_get_current_thread, proc_get_current_thread,
3965 proc_get_current_thread, proc_update_threads,
3966 proc_update_threads, proc_update_threads, proc_update_threads,
3967 proc_iterate_over_threads, procfs_find_new_threads,
3968 procfs_pid_to_str): Make static. Remove advance declaration.
3969 (proc_cursig): Make static. Conditionalized defintion on
3970 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3971 (proc_syscall, proc_set_kill_on_last_close,
3972 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3973 proc_get_pending_signals, proc_get_signal_actions,
3974 proc_trace_signal, proc_ignore_signal): Delete.
3975
81b9b86e
SDJ
39762012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3977
3978 * coffread.c (cs_section_address): Passing proper argument for
3979 `bfd_get_section_vma'.
3980 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3981 `bfd_get_section_flags'.
3982 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3983 `bfd_get_section_vma'.
3984
abc9d0dc
TT
39852012-05-16 Tom Tromey <tromey@redhat.com>
3986
3987 PR macros/13205:
3988 * macrotab.h: (macro_define_special): Declare.
3989 (enum macro_special_kind): New.
3990 (struct macro_definition) <argc, replacement>: Update comments.
3991 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3992 (macro_define_object_internal): New function.
3993 (macro_define_object): Use it.
3994 (macro_define_special): New function.
3995 (fixup_definition): New function.
3996 (macro_lookup_definition, foreach_macro_in_scope)
3997 (foreach_macro): Use fixup_definition.
3998 * macroexp.h (macro_stringify): Declare.
3999 * macroexp.c (free_buffer_return_text): New function.
4000 (stringify): Constify "arg".
4001 (macro_stringify): New function.
4002 * dwarf2read.c (macro_start_file): Call macro_define_special.
4003
6a3a010b 40042012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4005 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4006
4007 * breakpoint.h (bp_location): Add related_address member.
4008 * inferior.h (get_return_value): Take a pointer to struct value
4009 instead of struct type for the function requested.
4010 * value.h (using_struct_return): Likewise.
4011 * gdbarch.sh (return_value): Take a pointer to struct value
4012 instead of struct type for the function requested.
4013 * breakpoint.c (set_breakpoint_location_function): Initialize
4014 related_address for bp_gnu_ifunc_resolver breakpoints.
4015 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4016 requested function's address to gdbarch_return_value.
4017 * eval.c (evaluate_subexp_standard): Pass the requested
4018 function's address to using_struct_return.
4019 * infcall.c (call_function_by_hand): Pass the requested
4020 function's address to using_struct_return and
4021 gdbarch_return_value.
4022 * infcmd.c (get_return_value): Take a pointer to struct value
4023 instead of struct type for the function requested.
4024 (print_return_value): Update accordingly.
4025 (finish_command_continuation): Likewise.
4026 * stack.c (return_command): Pass the requested function's
4027 address to using_struct_return and gdbarch_return_value.
4028 * value.c (using_struct_return): Take a pointer to struct value
4029 instead of struct type for the function requested. Pass the
4030 requested function's address to gdbarch_return_value.
4031 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4032 New function_value member, replacing function_type.
4033 (bpfinishpy_dealloc): Update accordingly.
4034 (bpfinishpy_pre_stop_hook): Likewise.
4035 (bpfinishpy_init): Likewise. Record the requested function's
4036 address.
4037 * mips-tdep.c (mips_fval_reg): New enum.
4038 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4039 words put in GP registers.
4040 (mips_o64_push_dummy_call): Update a comment.
4041 (mips_o32_return_value): Take a pointer to struct value instead
4042 of struct type for the function requested and use it to check if
4043 using the MIPS16 calling convention. Return the designated
4044 general purpose registers for floating-point values returned in
4045 MIPS16 mode.
4046 (mips_o64_return_value): Likewise.
4047 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4048 (ppc_sysv_abi_broken_return_value): Likewise.
4049 (ppc64_sysv_abi_return_value): Likewise.
4050 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4051 value instead of struct type for the function requested.
4052 * amd64-tdep.c (amd64_return_value): Likewise.
4053 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4054 * arm-tdep.c (arm_return_value): Likewise.
4055 * avr-tdep.c (avr_return_value): Likewise.
4056 * bfin-tdep.c (bfin_return_value): Likewise.
4057 * cris-tdep.c (cris_return_value): Likewise.
4058 * frv-tdep.c (frv_return_value): Likewise.
4059 * h8300-tdep.c (h8300_return_value): Likewise.
4060 (h8300h_return_value): Likewise.
4061 * hppa-tdep.c (hppa32_return_value): Likewise.
4062 (hppa64_return_value): Likewise.
4063 * i386-tdep.c (i386_return_value): Likewise.
4064 * ia64-tdep.c (ia64_return_value): Likewise.
4065 * iq2000-tdep.c (iq2000_return_value): Likewise.
4066 * lm32-tdep.c (lm32_return_value): Likewise.
4067 * m32c-tdep.c (m32c_return_value): Likewise.
4068 * m32r-tdep.c (m32r_return_value): Likewise.
4069 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4070 * m68k-tdep.c (m68k_return_value): Likewise.
4071 (m68k_svr4_return_value): Likewise.
4072 * m88k-tdep.c (m88k_return_value): Likewise.
4073 * mep-tdep.c (mep_return_value): Likewise.
4074 * microblaze-tdep.c (microblaze_return_value): Likewise.
4075 * mn10300-tdep.c (mn10300_return_value): Likewise.
4076 * moxie-tdep.c (moxie_return_value): Likewise.
4077 * mt-tdep.c (mt_return_value): Likewise.
4078 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4079 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4080 (ppc_sysv_abi_broken_return_value): Likewise.
4081 (ppc64_sysv_abi_return_value): Likewise.
4082 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4083 * rl78-tdep.c (rl78_return_value): Likewise.
4084 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4085 * rx-tdep.c (rx_return_value): Likewise.
4086 * s390-tdep.c (s390_return_value): Likewise.
4087 * score-tdep.c (score_return_value): Likewise.
4088 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4089 (sh_return_value_fpu): Likewise.
4090 * sh64-tdep.c (sh64_return_value): Likewise.
4091 * sparc-tdep.c (sparc32_return_value): Likewise.
4092 * sparc64-tdep.c (sparc64_return_value): Likewise.
4093 * spu-tdep.c (spu_return_value): Likewise.
4094 * tic6x-tdep.c (tic6x_return_value): Likewise.
4095 * v850-tdep.c (v850_return_value): Likewise.
4096 * vax-tdep.c (vax_return_value): Likewise.
4097 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4098 * xtensa-tdep.c (xtensa_return_value): Likewise.
4099 * gdbarch.c: Regenerate.
4100 * gdbarch.h: Regenerate.
4101
29ca12b3
TT
41022012-05-15 Tom Tromey <tromey@redhat.com>
4103
4104 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4105
588ae58c
JB
41062012-05-15 Joel Brobecker <brobecker@adacore.com>
4107
4108 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4109 of command in two error message.
4110
855a6e68
JB
41112012-05-15 Joel Brobecker <brobecker@adacore.com>
4112
4113 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4114
d634f2de
JB
41152012-05-15 Joel Brobecker <brobecker@adacore.com>
4116
4117 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4118
9cc815f5
JK
41192012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 * NEWS (show auto-load scripts-directory): Add forgotten command.
4122
6a609e58
JK
41232012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4124
4125 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4126 parameters.
4127
ac1438b5
L
41282012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4129
4130 * amd64-tdep.c: Include features/i386/x32.c and
4131 features/i386/x32-avx.c.
4132 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4133 initialize_tdesc_x32_avx.
4134
e7e0cddf
SS
41352012-05-14 Stan Shebs <stan@codesourcery.com>
4136
4137 Add dynamic printf.
4138 * breakpoint.h (enum bptype): New type bp_dprintf.
4139 (struct breakpoint): New field extra_string.
4140 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4141 (create_breakpoint): Add extra_string arg.
4142 * breakpoint.c (dprintf_breakpoint_ops): New.
4143 (is_breakpoint): Add bp_dprintf.
4144 (bpstat_what): Add dprintf case.
4145 (bptype_string): Ditto.
4146 (print_one_breakpoint_location): Ditto.
4147 (init_bp_location): Ditto.
4148 (bkpt_print_mention): Ditto.
4149 (dprintf_style_enums): New array.
4150 (dprintf_style): New global.
4151 (dprintf_function): New global.
4152 (dprintf_channel): New global.
4153 (update_dprintf_command_list): New function.
4154 (update_dprintf_commands): New function.
4155 (init_breakpoint_sal): Add extra_string argument, handle it.
4156 (create_breakpoint_sal): Add extra_string argument.
4157 (create_breakpoints_sal): Add extra_string argument, update callers.
4158 (find_condition_and_thread): Add extra argument.
4159 (create_breakpoint): Add extra_string argument, record it.
4160 (dprintf_command): New function.
4161 (break_command_1): Add arg to create_breakpoint call.
4162 (handle_gnu_v3_exceptions): Ditto.
4163 (trace_command): Ditto.
4164 (ftrace_command): Ditto.
4165 (strace_command): Ditto.
4166 (bkpt_print_mention): Add dprintf case.
4167 (create_breakpoint_sal_default): Add extra_string argument.
4168 (_initialize_breakpoint): Add new commands.
4169 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4170 * python/py-breakpoint.c (bppy_init): Ditto.
4171 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4172
8ae38c14
MR
41732012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4174
4175 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4176
9f676e66
SCR
41772012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4178
4179 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4180 unsigned long long.
4181
7efc75aa
SCR
41822012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4183
4184 Add a new function gdb.find_pc_line to the Python API.
4185 * NEWS (Python Scripting): Add entry about the new function.
4186 * python/python.c (gdbpy_find_pc_line): New function which
4187 implements gdb.find_pc_line.
4188 (GdbMethods): Add entry for the new function.
4189
70af3797
PA
41902012-05-12 Pedro Alves <palves@redhat.com>
4191
4192 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4193 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4194
06da564e
EZ
41952012-05-12 Eli Zaretskii <eliz@gnu.org>
4196
4197 * inferior.c: Include completer.h
4198 (initialize_inferiors): Set completer of add-inferior to
4199 filename_completer.
4200
0288cee2
L
42012012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4202
4203 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4204 gdbarch_ptr_bit for x32 core dump.
4205
f6537a2c
L
42062012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4207
4208 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4209 and features/i386/x32-avx-linux.c.
4210
85d4a676
SS
42112012-05-11 Stan Shebs <stan@codesourcery.com>
4212 Kwok Cheung Yeung <kcy@codesourcery.com>
4213
4214 * NEWS: Describe new info os commands.
4215 * common/linux-osdata.c (PID_T, TIME_T): Define.
4216 (MAX_PID_T_STRLEN): New.
4217 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4218 MAX_PID_T_STRLEN.
4219 (command_from_pid): Add comment. Change to use PID_T.
4220 (commandline_from_pid): Change to use PID_T.
4221 (user_from_pid): Add comment.
4222 (get_process_owner): Add comment. Change to use PID_T and
4223 MAX_PID_T_STRLEN.
4224 (get_number_of_cpu_cores): Add comment.
4225 (get_cores_used_by_process): Add comment. Change to use PID_T and
4226 MAX_PID_T_STRLEN.
4227 (linux_xfer_osdata_processes): Change to use PID_T and
4228 MAX_PID_T_STRLEN.
4229 (compare_processes): New function.
4230 (linux_xfer_osdata_processgroups): New function.
4231 (linux_xfer_osdata_threads): Change to use PID_T.
4232 (linux_xfer_osdata_fds): New function.
4233 (format_socket_state, print_sockets): New functions.
4234 (union socket_addr): New union.
4235 (linux_xfer_osdata_isockets): New function.
4236 (time_from_time_t, group_from_gid): New functions.
4237 (linux_xfer_osdata_shm): New function.
4238 (linux_xfer_osdata_sem): New function.
4239 (linux_xfer_osdata_msg): New function.
4240 (linux_xfer_osdata_modules): New function.
4241 (osdata_table): Add new entries.
4242 * common/buffer.c (buffer_xml_printf): Add support for long and
4243 long long format specifiers.
4244
f24afd6d
L
42452012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4246
4247 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4248 (tdesc_x32_avx_linux): Likewise.
4249
7349ff92
JK
42502012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4251
4252 Implement multi-component --with-auto-load-dir.
4253 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4254 entries.
4255 (--with-auto-load-safe-path): Update the default value description.
4256 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4257 New.
4258 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4259 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4260 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4261 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4262 "set auto-load scripts-directory".
4263 * config.in: Regenerate.
4264 * configure: Regenerate.
4265 * configure.ac (--with-auto-load-dir): New configure option.
4266 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4267
6dea1fbd
JK
42682012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4269
4270 Provide $ddir substitution for --with-auto-load-safe-path.
4271 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4272 entries.
4273 * auto-load.c: Include observer.h.
4274 (auto_load_safe_path_vec_update): Call substitute_path_component for
4275 each component. New variable ddir_subst.
4276 (auto_load_gdb_datadir_changed): New function.
4277 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4278 AUTO_LOAD_SAFE_PATH. New comment.
4279 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4280 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4281 * config.in: Regenerate.
4282 * configure: Regenerate.
4283 * configure.ac (--auto-load-safe-path): Rename
4284 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4285 GDB_DATADIR/auto-load.
4286 * defs.h (substitute_path_component): New declaration.
4287 * top.c: Include observer.h.
4288 (set_gdb_datadir): New function.
4289 (init_main): Install it for "set data-directory".
4290 * utils.c (substitute_path_component): New function.
4291
b09aca3a
JK
42922012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4293
4294 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4295 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4296 DEBUG_FILE_DIRECTORY. Handle multiple components of
4297 DEBUG_FILE_DIRECTORY.
4298
95554aad
TT
42992012-05-10 Tom Tromey <tromey@redhat.com>
4300
4301 * dwarf2read.c (recursively_write_psymbols): New function.
4302 (write_psymtabs_to_index): Use it.
4303
4304 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4305 field.
4306 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4307 (load_partial_comp_unit): Update.
4308 (queue_comp_unit): Add argument 'pretend_language'.
4309 (process_queue): Update.
4310 (psymtab_to_symtab_1): Skip dependencies that have a user.
4311 (load_partial_comp_unit_reader): Give meaning to the 'data'
4312 argument.
4313 (load_full_comp_unit): Add 'pretend_language' argument.
4314 (process_full_comp_unit): Add 'pretend_language' argument. Set
4315 language on CU.
4316 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4317 Update.
4318 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4319 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4320 Update.
4321 (prepare_one_comp_unit): Add 'pretend_language' argument.
4322
4323 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4324 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4325 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4326 (dw2_do_instantiate_symtab): Check whether symtab was read in
4327 before queueing.
4328 (dw2_instantiate_symtab): Add assertion. Call
4329 process_cu_includes.
4330 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4331 (partial_symtab_p): New typedef.
4332 (set_partial_user): New function.
4333 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4334 (scan_partial_symbols): Add imported CU to imported_symtabs.
4335 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4336 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4337 (get_symtab, recursively_compute_inclusions)
4338 (compute_symtab_includes, process_cu_includes)
4339 (process_imported_unit_die): New functions.
4340 (process_die) <DW_TAG_imported_unit>: New case.
4341 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4342
4343 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4344 comment.
4345 (struct partial_die_info) <locdesc>: Remove.
4346 <d>: New field.
4347 (process_psymtab_comp_unit): Add 'read_partial' argument.
4348 Update.
4349 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4350 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4351 (add_partial_symbol): Update.
4352 (process_die): Handle DW_TAG_partial_unit.
4353 (read_file_scope): Update comment.
4354 (load_partial_dies): Handle DW_TAG_imported_unit.
4355 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4356 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4357
e871fbb9
TT
43582012-05-10 Tom Tromey <tromey@redhat.com>
4359
4360 * cc-with-dwz.sh: New file.
4361
b5b04b5b
TT
43622012-05-10 Tom Tromey <tromey@redhat.com>
4363
4364 * symtab.h (struct symtab) <includes, user>: New fields.
4365 * block.h (struct block_iterator) <d, idx, which>: New fields.
4366 * block.c (initialize_block_iterator, find_iterator_symtab)
4367 (block_iterator_step, block_iter_name_step)
4368 (block_iter_match_step): New functions.
4369 (block_iterator_first, block_iterator_next)
4370 (block_iter_name_first, block_iter_name_next)
4371 (block_iter_match_first, block_iter_match_next): Rewrite.
4372 (get_block_symtab): New function.
4373
84a146c9
TT
43742012-05-10 Tom Tromey <tromey@redhat.com>
4375
4376 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4377 set_block_symtab.
4378 * jit.c (finalize_symtab): Use allocate_global_block,
4379 set_block_symtab.
4380 * buildsym.c (finish_block_internal): New function, from old
4381 finish_block.
4382 (finish_block): Rewrite.
4383 (end_symtab): Use finish_block_internal, set_block_symtab.
4384 * block.h (struct global_block): New.
4385 (allocate_global_block, set_block_symtab): Declare.
4386 * block.c (allocate_global_block, set_block_symtab): New
4387 functions.
4388
9439a077
TT
43892012-05-10 Tom Tromey <tromey@redhat.com>
4390
4391 * psymtab.c (partial_map_expand_apply): Add assertion.
4392 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4393 (psymtab_to_symtab): Find unshared psymtab.
4394 (dump_psymtab): Print including psymtabs.
4395 (recursively_search_psymtabs): New function.
4396 (expand_symtabs_matching_via_partial): Use it.
4397 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4398 fields.
4399 (enum psymtab_search_status): New.
4400
8157b174
TT
44012012-05-10 Tom Tromey <tromey@redhat.com>
4402
4403 * tracepoint.c (scope_info): Update.
4404 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4405 (find_pc_sect_symtab, search_symbols)
4406 (default_make_symbol_completion_list_break_on)
4407 (make_file_symbol_completion_list): Update.
4408 * symmisc.c (dump_symtab_1): Update.
4409 * stack.c (print_frame_args, iterate_over_block_locals)
4410 (print_frame_labels, iterate_over_block_arg_vars): Update.
4411 * python/py-block.c (block_object) <dict>: Remove.
4412 <block>: New field.
4413 <iter>: Change type.
4414 (blpy_iter): Update.
4415 (blpy_block_syms_iternext): Update.
4416 * psymtab.c (map_block): Use block iterators.
4417 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4418 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4419 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4420 * infrun.c (check_exception_resume): Update.
4421 * cp-support.c (make_symbol_overload_list_block): Update.
4422 * coffread.c (patch_opaque_types): Update.
4423 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4424 * block.h (struct block_iterator): New.
4425 (block_iterator_first, block_iterator_next, block_iter_name_first)
4426 (block_iter_name_next, block_iter_match_first)
4427 (block_iter_match_next): Declare.
4428 (ALL_BLOCK_SYMBOLS): Redefine.
4429 * block.c (block_iterator_first, block_iterator_next)
4430 (block_iter_name_first, block_iter_name_next)
4431 (block_iter_match_first, block_iter_match_next): New functions.
4432 * ada-lang.c (ada_add_block_symbols)
4433 (ada_make_symbol_completion_list): Use block iterator.
4434
a2ca7a52
TT
44352012-05-10 Tom Tromey <tromey@redhat.com>
4436
4437 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4438 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4439 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4440 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4441 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4442 Update.
4443
64ea88dc
JB
44442012-05-10 Joel Brobecker <brobecker@adacore.com>
4445
4446 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4447 print-file-var-lib2.c, print-file-var-main.c and
4448 print-file-var.exp (located in gdb/testsuite/gdb.base).
4449
99a547d6
JB
44502012-05-10 Joel Brobecker <brobecker@adacore.com>
4451
4452 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4453 try locating the symbol in the symbol's own objfile first, before
4454 extending the search to all objfiles.
4455 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4456 out of lookup_symbol_aux_symtabs.
4457 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4458 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4459 Do not search EXCLUDE_OBJFILE.
4460 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4461 (lookup_symbol_global): Search for matches in the block's objfile
4462 first, before searching all other objfiles.
4463
0ece64fd
TG
44642012-05-10 Tristan Gingold <gingold@adacore.com>
4465
4466 * printcmd.c (set_command): Add pre/post inc/dec.
4467
3d16a105
FCE
44682012-05-09 Frank Ch. Eigler <fche@redhat.com>
4469
4470 * gdb.1: Document -ex option.
4471
2efbc0f7
JB
44722012-05-09 Joel Brobecker <brobecker@adacore.com>
4473
4474 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4475 * inferior.h (AT_SYMBOL): Delete.
4476
2c76a0c7
JB
44772012-05-09 Joel Brobecker <brobecker@adacore.com>
4478
4479 * mips-tdep.c (mips_push_dummy_code): New function.
4480 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4481 ON_STACK and install mips_push_dummy_code as our gdbarch
4482 push_dummy_code routine.
4483
9401a810
PA
44842012-05-09 Pedro Alves <palves@redhat.com>
4485
4486 * target.c (set_maintenance_target_async_permitted): Rename to ...
4487 (set_target_async_command): ... this.
4488 (show_maintenance_target_async_permitted): Rename to ...
4489 (show_target_async_command): ... this.
4490 (initialize_targets): Adjust.
4491
3929b321
DE
44922012-05-08 Doug Evans <dje@google.com>
4493
4494 * go-exp.y (classify_name): Add missing assignment of fields of
4495 yylval.ssym.
4496
c41535fd
EZ
44972012-05-08 Eli Zaretskii <eliz@gnu.org>
4498
4499 Display the ">" prompt in interactive mode while reading canned
4500 commands, even when the current interpreter is MI.
4501
4502 * interps.c (interp_set_temp): New function.
4503
4504 * interps.h (interp_set_temp): Add prototype.
4505
4506 * cli/cli-script.c (restore_interp): New cleanup function.
4507 (read_command_lines): Temporarily override the current interpreter
4508 with CLI and arrange for restoring the original one.
4509
c0749c4d
JS
45102012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4511
4512 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4513
d7333987
SDJ
45142012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4515
4516 * probe.c (parse_probes): Move conditional to check for
4517 debuginfo files from here...
4518 * stap-probe.c (stap_get_probes): ... to here.
4519
649e6d92
MK
45202012-05-07 Mark Kettenis <kettenis@gnu.org>
4521 H.J. Lu <hongjiu.lu@intel.com>
4522
4523 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4524 `movl %esp, %ebp' for the X32 ABI.
4525
f39c6ffd
TT
45262012-05-07 Tom Tromey <tromey@redhat.com>
4527
4528 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4529 get_DW_TAG_name.
4530 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4531 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4532 (dwarf_stack_op_name): Remove.
4533 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4534 (decode_locdesc): Use get_DW_OP_name.
4535 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4536 (dwarf2_compile_expr_to_ax): Likewise.
4537 (disassemble_dwarf_expression): Likewise.
4538 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4539
1e1f6591
CLT
45402012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4541
4542 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4543 (sh_linux_sigtramp_cache): New function.
4544 (sh_linux_sigreturn_init): New function.
4545 (sh_linux_rt_sigreturn_init): New function.
4546 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4547 patterns.
4548 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4549 syscall codes.
4550 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4551 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4552 (sh_linux_init_abi): Add init calls to register new tramp_frame
4553 definitions under 32-bit SH, update comments.
4554
545c08b4
PA
45552012-05-07 Pedro Alves <palves@redhat.com>
4556
daac165e
PA
4557 PR gdb/10952
4558
545c08b4
PA
4559 * amd64-linux-tdep.c: Include glibc-tdep.h.
4560 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4561 gdbarch_skip_solib_resolver callback.
4562
af2c1515
JK
45632012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4564
4565 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4566 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4567 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4568 (add_auto_load_safe_path): Change the error message.
4569 (_initialize_auto_load): Change the "safe-path" help text.
4570 * configure: Regenerate
4571 * configure.ac (--without-auto-load-safe-path): Set
4572 WITH_AUTO_LOAD_SAFE_PATH to /.
4573
1067f998
SDJ
45742012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4575
4576 * stap-probe.h: Do not include unecessary `probe.h'.
4577
45dfa85a
AM
45782012-05-05 Alan Modra <amodra@gmail.com>
4579
4580 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4581 bfd_und_section_ptr.
4582 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4583 and bfd_com_section_ptr.
4584
cf093994
JB
45852012-05-04 Joel Brobecker <brobecker@adacore.com>
4586
762ebb75 4587 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 4588
d40dc7a8
JB
45892012-05-04 Joel Brobecker <brobecker@adacore.com>
4590
4591 * windows-nat.h (segment_register_p_ftype): New typedef.
4592 (windows_set_segment_register_p): Add declaration.
4593 * windows-nat.c (segment_register_p): New static global.
4594 (windows_set_segment_register_p): New function.
4595 (do_windows_fetch_inferior_registers): Add special handling
4596 for segment registers.
4597 * amd64-windows-nat.c: #include "amd64-tdep.h".
4598 (amd64_windows_segment_register_p): New function.
4599 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4600 * i386-windows-nat.c: #include "i386-tdep.h".
4601 (i386_windows_segment_register_p): New function.
4602 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4603
52b3699b
TG
46042012-05-04 Tristan Gingold <gingold@adacore.com>
4605
4606 * printcmd.c (set_command): Emit a warning if the expression is not
4607 an assignment.
4608
94c74239
JB
46092012-05-03 Joel Brobecker <brobecker@adacore.com>
4610
4611 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4612 Make static.
4613
fcf57f19
SDJ
46142012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4615
4616 * stap-probe.c (stap_is_operator): Change declaration.
4617 (stap_get_opcode): Change return value.
4618 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4619 `stap_parse_argument_1'.
4620
27d2932e
PA
46212012-05-03 Pedro Alves <pedro@codesourcery.com>
4622
4623 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4624 debug log.
4625
a20ee7a4
SCR
46262012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4627
4628 Add two new methods global_block and static_block to gdb.Symtab
4629 objects.
4630 * NEWS (Python scripting): Add entry about the new methods.
4631 * python/py-symtab.c (stpy_global_block): New function which
4632 implements the gdb.Symtab.global_block() method.
4633 (stpy_static_block): New function which implements the
4634 gdb.Symtab.static_block() method.
4635 (symtab_object_methods): Add entries for the two new methods.
4636
943cb756
DE
46372012-05-03 Doug Evans <dje@google.com>
4638
4639 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4640 files.
4641
f4644a3f
YQ
46422012-05-03 Yao Qi <yao@codesourcery.com>
4643
4644 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4645 space.
4646 (i386_process_record): Ditto.
4647
ef61f180
JB
46482012-05-02 Joel Brobecker <brobecker@adacore.com>
4649
4650 * infcall.c (unwind_on_signal_p): Make static.
4651
02f1df11
JB
46522012-05-02 Joel Brobecker <brobecker@adacore.com>
4653
4654 * sol-thread.c (solaris_pid_to_str): Make static.
4655 (_initialize_sol_thread): Add prototype.
4656
39023530
JB
46572012-05-02 Joel Brobecker <brobecker@adacore.com>
4658
4659 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4660
c6b0c501
CF
46612012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4662
4663 * MAINTAINERS: Remove myself.
4664
1ef71717
JK
46652012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4666
4667 Fix --without-auto-load-safe-path for MS-Windows host platform.
4668 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4669
b31b86a7
EZ
46702012-05-02 Eli Zaretskii <eliz@gnu.org>
4671
4672 * gdb_curses.h: Undefine KEY_EVENT before including curses
4673 headers. Move "#undef MOUSE_MOVED" before any curses header
4674 inclusion.
4675
777532fc
SDJ
46762012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4677
4678 * features/i386/i386-mmx-linux.c: Regenerate.
4679 * features/rs6000/powerpc-32.c: Likewise.
4680 * features/rs6000/powerpc-32l.c: Likewise.
4681 * features/rs6000/powerpc-403.c: Likewise.
4682 * features/rs6000/powerpc-403gc.c: Likewise.
4683 * features/rs6000/powerpc-405.c: Likewise.
4684 * features/rs6000/powerpc-505.c: Likewise.
4685 * features/rs6000/powerpc-601.c: Likewise.
4686 * features/rs6000/powerpc-602.c: Likewise.
4687 * features/rs6000/powerpc-603.c: Likewise.
4688 * features/rs6000/powerpc-604.c: Likewise.
4689 * features/rs6000/powerpc-64.c: Likewise.
4690 * features/rs6000/powerpc-64l.c: Likewise.
4691 * features/rs6000/powerpc-750.c: Likewise.
4692 * features/rs6000/powerpc-860.c: Likewise.
4693 * features/rs6000/powerpc-e500.c: Likewise.
4694 * features/rs6000/powerpc-e500l.c: Likewise.
4695 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4696 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4697 * features/rs6000/rs6000.c: Likewise.
4698
d71871bc
SDJ
46992012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4700
4701 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4702 variable.
4703 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4704 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4705 (stap_parse_argument) <e>: Likewise.
4706 (handle_stap_probe) <byte_order>: Likewise.
4707
fd820528
DE
47082012-04-30 Doug Evans <dje@google.com>
4709
4710 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4711 init_and_read_dies_worker. All callers updated.
4712 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4713 replaced with init_cutu_and_read_dies.
4714 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4715 (find_partial_die): Remove FIXME. Don't free current CU.
4716
ec3f619d 47172012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
4718
4719 * contrib: New directory.
4720 * contrib/test_pubnames_and_indexes.py: New file.
4721
fceca515
DE
47222012-04-30 Doug Evans <dje@google.com>
4723
4724 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4725 All callers updated.
4726 (init_cu_die_reader): Verify the section is non-empty.
4727 (dwarf_decode_line_header): Don't dereference section->asection
4728 until we know the section is present.
4729
311fe7e1
SDJ
47302012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4731
4732 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4733 probes.
4734
5977971a
YQ
47352012-04-29 Yao Qi <yao@codesourcery.com>
4736
4737 * gdb-code-style.el: New hook gdb-markup-hook
4738 and gdb-comment-hook.
4739
dee91e82
DE
47402012-04-28 Doug Evans <dje@google.com>
4741
3019eac3
DE
4742 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4743 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4744 objfile->obfd.
4745 * symfile.h (dwarf2_debug_sections): New member addr.
4746 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4747 (ctx_no_get_addr_index): New function.
4748 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4749 (ctx_no_get_addr_index): Declare.
4750 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4751 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4752 (dwarf_expr_ctx_funcs): Update.
4753 (needs_get_addr_index): New function.
4754 (needs_frame_ctx_funcs): Update.
4755 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4756 * dwarf2read.c: #include "gdbcore.h".
4757 (dwarf2_per_objfile): New members addr, dwo_files.
4758 (dwarf2_elf_names): Add entry for addr.
4759 (struct dwo_section_names): New type.
4760 (dwo_section_names): New static global.
4761 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4762 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4763 old debug_types_section member updated to use this.
4764 Rename member debug_types_section to info_or_types_section,
4765 all uses updated.
4766 (signatured_type): Rename member type_offset to type_offset_in_tu,
4767 all uses updated. New member type_offset_in_section.
4768 (struct dwo_sections): New type.
4769 (struct dwo_unit): New type.
4770 (struct dwo_file): New type.
4771 (die_reader_specs): New member dwo_file.
4772 (dwarf2_locate_sections): Watch for .debug_addr.
4773 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4774 (dwarf2_read_section): Get bfd of section from bfd's asection,
4775 instead of objfile.
4776 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4777 (create_signatured_type_table_from_index): Initialize
4778 sig_type->info_or_types_section.
4779 (dw2_get_file_names): Statement lists for type units with DWO files
4780 live in the DWO file.
4781 (create_debug_types_hash_table): New function.
4782 (create_all_type_units): Rewrite.
4783 (init_cu_die_reader): New arg dwo_file, all callers updated.
4784 (init_and_read_dies_worker): Get section from
4785 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4786 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4787 continue reading the CU/TU from there.
4788 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4789 updated. Get section from this_cu->info_or_types_section.
4790 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4791 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4792 DW_FORM_GNU_str_index.
4793 (hash_dwo_file, eq_dwo_file): New functions.
4794 (allocate_dwo_file_hash_table): New function.
4795 (hash_dwo_unit, eq_dwo_unit): New functions.
4796 (allocate_dwo_unit_table): New function.
4797 (dwarf2_locate_dwo_sections): New function.
4798 (struct create_dwo_info_table_data): New type.
4799 (create_debug_info_hash_table_reader): New function.
4800 (create_debug_info_hash_table): New function.
4801 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4802 (lookup_dwo_file): New function.
4803 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4804 (free_dwo_file, free_dwo_file_cleanup): New functions.
4805 (free_dwo_file_from_slot, free_dwo_files): New functions.
4806 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4807 (dwarf2_record_block_ranges): Ditto.
4808 (read_partial_die): Ditto.
4809 (process_enumeration_scope): Update to use type_offset_in_section.
4810 (read_full_die_1): New function.
4811 (read_full_die): Rewrite.
4812 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4813 DW_FORM_GNU_str_index.
4814 (read_addr_index_1, read_addr_index): New functions.
4815 (read_addr_index_from_leb128): New function.
4816 (struct dwarf2_read_addr_index_data): New type.
4817 (dwarf2_read_addr_index_reader): New function.
4818 (dwarf2_read_addr_index): New function.
4819 (read_str_index): New function.
4820 (leb128_size): New function.
4821 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4822 If processing a type unit from a DWO file, get the line section
4823 from the DWO file.
4824 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4825 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4826 DW_FORM_GNU_str_index.
4827 (lookup_die_type): Check whether section offset of type's die is
4828 known before looking it up. Remove assert. Condition can
4829 legimately happen for inter-cu type references.
4830 (dwarf_attr_name): Handle Fission attributes.
4831 (dwarf_form_name): Handle Fission forms.
4832 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4833 DW_FORM_GNU_str_index.
4834 (follow_die_sig): Update to use type_offset_in_section.
4835 (decode_locdesc): New case DW_OP_GNU_addr_index.
4836 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4837 DW_FORM_GNU_str_index.
4838 (cu_debug_loc_section): New function.
4839 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4840 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4841 Free DWO files if present.
4842 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4843
dee91e82
DE
4844 Refactor DIE reading.
4845 * dwarf2read.c (dwarf2_per_objfile): Replace members
4846 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4847 (die_reader_specs): New member "die_section". Temporarily make
4848 member "buffer" non-const, pending constifying all info_ptr uses.
4849 (die_reader_func_ftype): New typedef.
4850 (dw2_get_file_names_reader): New function.
4851 (dw2_get_file_names): Rewrite.
4852 (read_and_check_type_unit_head): Rename arg type_offset to
4853 type_offset_in_tu.
4854 (create_all_type_units): Improve debugging message.
4855 Improve dummy type unit check.
4856 (init_cu_die_reader): New arg "section". All callers updated.
4857 (init_and_read_dies_worker): New function.
4858 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4859 (init_cutu_and_read_dies_no_follow): New function.
4860 (init_cutu_and_read_dies_simple): New function.
4861 (process_psymtab_comp_unit_reader): New function.
4862 (process_psymtab_comp_unit): Delete args section,
4863 is_debug_types_section. Rewrite. All callers updated.
4864 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4865 All callers updated. Rewrite.
4866 (load_partial_comp_unit_reader): New function.
4867 (load_partial_comp_unit): Rewrite.
4868 (skip_children): New arg reader. Delete args buffer, cu.
4869 All callers updated.
4870 (skip_one_die): New arg reader. Delete args buffer, cu.
4871 All callers updated.
4872 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4873 All callers updated.
4874 (load_full_comp_unit_reader): New function.
4875 (load_full_comp_unit): Rewrite.
4876 (read_comp_unit): Delete.
4877 (read_die_and_children_1): Delete, contents moved ...
4878 (read_die_and_children): ... here.
4879 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4880 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4881 All callers updated.
4882 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4883 All callers updated.
4884 (find_partial_die): Rewrite load_all_dies support.
4885 (read_attribute_value): New arg reader. Delete args abfd, cu.
4886 All callers updated.
4887 (read_attribute): New arg reader. Delete args abfd, cu.
4888 All callers updated.
4889 (load_full_type_unit): Add assert.
4890 (read_signatured_type_reader): New function.
4891 (read_signatured_type): Rewrite.
4892 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4893 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4894 All callers updated. Set per_cu->cu = NULL after freeing it.
4895 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4896 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4897 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4898 (set_die_type): Update.
4899 (get_die_type_at_offset): Update.
4900 (read_file_scope): Call prepare_one_comp_unit.
4901 (read_type_unit_scope): Ditto.
4902 (prepare_one_comp_unit): Set producer if present.
4903
72d59e0d
SDJ
49042012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4905
4906 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4907 gettext function on `error'.
4908
0fefef59
DE
49092012-04-27 Doug Evans <dje@google.com>
4910
4911 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4912 is empty.
4913
28106bc2
SDJ
49142012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4915 Tom Tromey <tromey@redhat.com>
4916
4917 * breakpoint.c (struct breakpoint_objfile_data)
4918 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4919 <exception_probes>: New fields.
4920 (free_breakpoint_probes): New function.
4921 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4922 `_Unwind_DebugHook'.
4923 (create_exception_master_breakpoint): Likewise.
4924 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4925 * infrun.c: Including necessary header files for handling SystemTap
4926 probes.
4927 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4928 via SystemTap probes.
4929 (check_exception_resume): Remove `func' argument. Handle exception
4930 unwinding breakpoint set via a SystemTap probe.
4931 (insert_exception_resume_from_probe): New function.
4932
55aa24fb
SDJ
49332012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4934 Tom Tromey <tromey@redhat.com>
4935 Jan Kratochvil <jan.kratochvil@redhat.com>
4936
4937 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4938 (COMMON_OBS): Likewise.
4939 (HFILES_NO_SRCDIR): Add `probe'.
4940 * NEWS: Mention support for static and SystemTap probes.
4941 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4942 SystemTap probes' arguments parser.
4943 * arm-linux-tdep.c: Including headers needed to perform the parsing
4944 of SystemTap probes' arguments.
4945 (arm_stap_is_single_operand): New function.
4946 (arm_stap_parse_special_token): Likewise.
4947 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4948 probes' arguments parser.
4949 * ax-gdb.c (require_rvalue): Removing static declaration.
4950 (gen_expr): Likewise.
4951 * ax-gdb.h (gen_expr): Declaring function.
4952 (require_rvalue): Likewise.
4953 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4954 (bkpt_probe_breakpoint_ops): New variable.
4955 (momentary_breakpoint_from_master): Set the `probe' value.
4956 (add_location_to_breakpoint): Likewise.
4957 (break_command_1): Using proper breakpoint_ops according to the
4958 argument passed by the user in the command line.
4959 (bkpt_probe_insert_location): New function.
4960 (bkpt_probe_remove_location): Likewise.
4961 (bkpt_probe_create_sals_from_address): Likewise.
4962 (bkpt_probe_decode_linespec): Likewise.
4963 (tracepoint_probe_create_sals_from_address): Likewise.
4964 (tracepoint_probe_decode_linespec): Likewise.
4965 (tracepoint_probe_breakpoint_ops): New variable.
4966 (trace_command): Using proper breakpoint_ops according to the
4967 argument passed by the user in the command line.
4968 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4969 static probes on breakpoints and tracepoints.
4970 * breakpoint.h (struct bp_location) <probe>: New field.
4971 * cli-utils.c (skip_spaces_const): New function.
4972 (extract_arg): Likewise.
4973 * cli-utils.h (skip_spaces_const): Likewise.
4974 (extract_arg): Likewise.
4975 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4976 * configure.ac: Append `stap-probe.o' to be generated when ELF
4977 support is present.
4978 * configure: Regenerate.
4979 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4980 * elfread.c: Include `probe.h' and `arch-utils.h'.
4981 (probe_key): New variable.
4982 (elf_get_probes): New function.
4983 (elf_get_probe_argument_count): Likewise.
4984 (elf_evaluate_probe_argument): Likewise.
4985 (elf_compile_to_ax): Likewise.
4986 (elf_symfile_relocate_probe): Likewise.
4987 (stap_probe_key_free): Likewise.
4988 (elf_probe_fns): New variable.
4989 (elf_sym_fns): Add `sym_probe_fns' value.
4990 (elf_sym_fns_lazy_psyms): Likewise.
4991 (elf_sym_fns_gdb_index): Likewise.
4992 (_initialize_elfread): Initialize objfile cache for static
4993 probes.
4994 * gdb_vecs.h (struct probe): New forward declaration.
4995 (probe_p): New VEC declaration.
4996 * gdbarch.c: Regenerate.
4997 * gdbarch.h: Regenerate.
4998 * gdbarch.sh (stap_integer_prefix): New variable.
4999 (stap_integer_suffix): Likewise.
5000 (stap_register_prefix): Likewise.
5001 (stap_register_suffix): Likewise.
5002 (stap_register_indirection_prefix): Likewise.
5003 (stap_register_indirection_suffix): Likewise.
5004 (stap_gdb_register_prefix): Likewise.
5005 (stap_gdb_register_suffix): Likewise.
5006 (stap_is_single_operand): New function.
5007 (stap_parse_special_token): Likewise.
5008 (struct stap_parse_info): Forward declaration.
5009 * i386-tdep.c: Including headers needed to perform the parsing
5010 of SystemTap probes' arguments.
5011 (i386_stap_is_single_operand): New function.
5012 (i386_stap_parse_special_token): Likewise.
5013 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5014 probes' arguments parser.
5015 * i386-tdep.h (i386_stap_is_single_operand): New function.
5016 (i386_stap_parse_special_token): Likewise.
5017 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5018 * mipsread.c (ecoff_sym_fns): Likewise.
5019 * objfiles.c (objfile_relocate1): Support relocation for static
5020 probes.
5021 * parse.c (prefixify_expression): Remove static declaration.
5022 (initialize_expout): Likewise.
5023 (reallocate_expout): Likewise.
5024 * parser-defs.h (initialize_expout): Declare function.
5025 (reallocate_expout): Likewise.
5026 (prefixify_expression): Likewise.
5027 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5028 of SystemTap probes' arguments.
5029 (ppc_stap_is_single_operand): New function.
5030 (ppc_stap_parse_special_token): Likewise.
5031 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5032 probes' arguments parser.
5033 * probe.c: New file, for generic statically defined probe support.
5034 * probe.h: Likewise.
5035 * s390-tdep.c: Including headers needed to perform the parsing of
5036 SystemTap probes' arguments.
5037 (s390_stap_is_single_operand): New function.
5038 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5039 probes' arguments parser.
5040 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5041 * stap-probe.c: New file, for SystemTap probe support.
5042 * stap-probe.h: Likewise.
5043 * symfile.h: Include `gdb_vecs.h'.
5044 (struct sym_probe_fns): New struct.
5045 (struct sym_fns) <sym_probe_fns>: New field.
5046 * symtab.c (init_sal): Initialize `probe' field.
5047 * symtab.h (struct probe): Forward declaration.
5048 (struct symtab_and_line) <probe>: New field.
5049 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5050 locations.
5051 (stop_tracing): Likewise.
5052 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5053
22d2b532
SDJ
50542012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5055 Tom Tromey <tromey@redhat.com>
5056
5057 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5058 and to compile agent expressions.
5059 * infrun.c (siginfo_make_value): New argument `ignore'.
5060 (siginfo_funcs): New struct.
5061 (_initialize_infrun): New argument when calling
5062 `create_internalvar_type_lazy'.
5063 * thread.c (thread_id_make_value): New argument `ignore'.
5064 (thread_funcs): New struct.
5065 (_initialize_thread): New argument when calling
5066 `create_internalvar_type_lazy'.
5067 * tracepoint.c (sdata_make_value): New argument `ignore'.
5068 (sdata_funcs): New struct.
5069 (_initialize_tracepoint): New argument when calling
5070 `create_internalvar_type_lazy'.
5071 * value.c (make_value): New struct.
5072 (create_internalvar_type_lazy): New argument `data'.
5073 (compile_internalvar_to_ax): New function.
5074 (value_of_internalvar): Properly handling `make_value' case.
5075 (clear_internalvar): Likewise.
5076 (show_convenience): Adding `TRY_CATCH' block.
5077 * value.h (internalvar_make_value): Delete, replace by...
5078 (struct internalvar_funcs): ... this.
5079 (create_internalvar_type_lazy) <fun>: Delete argument.
5080 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5081 (compile_internalvar_to_ax): New function.
5082 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5083 (tlb_funcs): New struct.
5084 (_initialize_windows_tdep): New argument when calling
5085 `create_internalvar_type_lazy'.
5086
91da1414
MW
50872012-04-27 Mark Wielaard <mjw@redhat.com>
5088
5089 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5090 see whether it is an address or a constant offset from DW_AT_low_pc.
5091 (dwarf2_record_block_ranges): Likewise.
5092 (read_partial_die): Likewise.
5093
4ab9d8ec
MW
50942012-04-26 Mark Wielaard <mjw@redhat.com>
5095
5096 * MAINTAINERS (Write After Approval): Add myself to the list.
5097
a0911fd0
MR
50982012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5099
5100 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5101 (proc_prettyprint_signal): Likewise.
5102 (proc_prettyprint_faultset): Likewise.
5103 (proc_prettyprint_fault): Likewise.
5104 (proc_prettyprint_actionset): Likewise.
5105 (proc_prettyprint_flags): Move to new proc-flags.c section.
5106 (proc_prettyfprint_flags): New prototype.
5107 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5108 (proc_syscall, proc_cursig): Likewise.
5109 (proc_set_kill_on_last_close): Likewise.
5110 (proc_unset_kill_on_last_close): Likewise.
5111 (proc_set_watchpoint): Make static.
5112 (proc_delete_dead_threads): Likewise.
5113 (procfs_set_watchpoint): Likewise.
5114 (_initialize_procfs): Add prototype.
5115 * proc-events.c: Include proc-utils.h.
5116 (init_syscall_table): Make static.
5117 * proc-api.c (_initialize_proc_api): Add prototype.
5118 * proc-flags.c: Include proc-utils.h.
5119
9009e1ae
MR
51202012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5121
5122 * configure.ac: Add AC_ARG_PROGRAM.
5123 * configure: Regenerate.
5124
4fae6e18
JK
51252012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5126
5127 Fix DW_AT_lower_bound defaults for DWARF-4+.
5128 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5129 high. New variable low_default_is_valid. Implement DWARF-4+
5130 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5131 no default by the DWARF standard.
5132
14132e89 51332012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5134 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5135
5136 * infrun.c (handle_inferior_event): Move the check for return
5137 trampolines ahead of the check for function trampolines.
5138 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5139 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5140 (mips_str_mips16_ret_stub): Likewise.
5141 (mips_str_call_fp_stub): Likewise.
5142 (mips_str_call_stub): Likewise.
5143 (mips_str_fn_stub): Likewise.
5144 (mips_str_pic): Likewise.
5145 (mips_in_frame_stub): New function.
5146 (mips_unwind_pc): Return the return address rather than the PC
5147 if the PC of an intermediate frame is inside a call thunk.
5148 (mips_is_stub_suffix): New function.
5149 (mips_is_stub_mode): Likewise.
5150 (mips_get_mips16_fn_stub_pc): Likewise.
5151 (mips_skip_mips16_trampoline_code): Update to handle all the
5152 currently generated stub types. Don't recurse into __fn_stub
5153 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5154 Use cooked register accesses.
5155 (mips_in_return_stub): Reintroduce function.
5156 (mips_skip_trampoline_code): Traverse trampolines recursively.
5157 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5158
518f0db5 51592012-04-26 Joel Brobecker <brobecker@adacore.com>
5160
5161 GDB 7.4.1 released.
5162
3184d3f9
JL
51632012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5164
5165 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5166 * features/arm-with-m-vfp-d16.xml: New file. Describes
5167 Cortex-M with VFPv4-sp-d16 FPU register layout.
5168 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5169 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5170 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5171 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5172 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5173
b6201d44
DE
51742012-04-25 Doug Evans <dje@google.com>
5175
5176 * cli/cli-decode.c (print_doc_line): Use stream instead of
5177 current_uiout.
5178
4e2f8df6
SDJ
51792012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5180
5181 * features/arm-with-iwmmxt.c: Regenerate.
5182 * features/arm-with-m-fpa-layout.c: Likewise.
5183 * features/arm-with-m.c: Likewise.
5184 * features/arm-with-neon.c: Likewise.
5185 * features/arm-with-vfpv2.c: Likewise.
5186 * features/arm-with-vfpv3.c: Likewise.
5187 * features/mips-dsp-linux.c: Likewise.
5188 * features/mips-linux.c: Likewise.
5189 * features/mips64-dsp-linux.c: Likewise.
5190 * features/mips64-linux.c: Likewise.
5191 * features/s390-linux32.c: Likewise.
5192 * features/s390-linux32v1.c: Likewise.
5193 * features/s390-linux32v2.c: Likewise.
5194 * features/s390-linux64.c: Likewise.
5195 * features/s390-linux64v1.c: Likewise.
5196 * features/s390-linux64v2.c: Likewise.
5197 * features/s390x-linux64.c: Likewise.
5198 * features/s390x-linux64v1.c: Likewise.
5199 * features/s390x-linux64v2.c: Likewise.
5200 * features/tic6x-c62x-linux.c: Likewise.
5201 * features/tic6x-c62x.c: Likewise.
5202 * features/tic6x-c64x-linux.c: Likewise.
5203 * features/tic6x-c64x.c: Likewise.
5204 * features/tic6x-c64xp-linux.c: Likewise.
5205 * features/tic6x-c64xp.c: Likewise.
5206 * target-descriptions.c: Only generate `field_type' and `type'
5207 variables when needed.
5208
2def3e66
JB
52092012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5210
5211 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5212
a766d390
DE
52132012-04-25 Doug Evans <dje@google.com>
5214
5215 Initial pass at Go language support.
5216 * NEWS: Mention Go.
5217 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5218 go-valprint.c.
5219 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5220 (YYFILES): Add go-exp.c.
5221 (YYOBJ): Add go-exp.o.
5222 (local-maintainer-clean): Delete go-exp.c.
5223 * defs.h (enum language): Add language_go.
5224 * dwarf2read.c: #include "go-lang.h".
5225 (fixup_go_packaging): New function.
5226 (process_full_comp_unit): Call it when processing Go CUs.
5227 (dwarf2_physname): Add Go support.
5228 (read_file_scope): Handle missing language spec for GNU Go.
5229 (set_cu_language): Handle DW_LANG_Go.
5230 * go-exp.y: New file.
5231 * go-lang.h: New file.
5232 * go-lang.c: New file.
5233 * go-typeprint.c: New file.
5234 * go-valprint.c: New file.
5235 * symtab.c: #include "go-lang.h".
5236 (symbol_set_language): Handle language_go.
5237 (symbol_find_demangled_name, symbol_set_names): Ditto.
5238 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5239
4e2af517
JM
52402012-04-24 Jim Meyering <meyering@redhat.com>
5241
5242 avoid a few strncpy-induced buffer overruns
5243 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5244 fname and psargs before trying to concatenate.
5245 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5246 "name" before applying strchr.
5247
b77b7f52
SCR
52482012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5249
5250 * CONTRIBUTE: Use unified diff instead of context diff when
5251 generating patches.
5252
6321c22a
MR
52532012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5254
5255 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5256 code. Handle JR.HB correctly.
5257
742c84f6
MR
52582012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5259
5260 * mips-tdep.c
5261 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5262 with the other MIPS16 helpers.
5263
7fc7e0c3
SDJ
52642012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5265
5266 * observer.sh: Conditionally declare `args', thus cleaning up
5267 unused instances of this variable.
5268
20388dd6
YQ
52692012-04-24 Yao Qi <yao@codesourcery.com>
5270
5271 Revert this patch to allow breakpoint always-inserted
5272 in record target.
5273 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5274 * breakpoint.c: Include record.h.
5275 (breakpoints_always_inserted_mode): Return false when the record
5276 target is in use.
20388dd6
YQ
5277
5278 * breakpoint.c (iterate_over_bp_locations): New.
5279 * breakpoint.h: Declare.
5280 New typedef walk_bp_location_callback.
5281 * record.c (record_open): Call record_init_record_breakpoints.
5282 (record_sync_record_breakpoints): New.
5283 (record_init_record_breakpoints): New.
5284 * NEWS: Mention supporting breakpoint always-inserted mode in
5285 record target.
5286
4734f50e
MK
52872012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5288
5289 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5290 any thread.
5291
c326b90e
YQ
52922012-04-24 Yao Qi <yao@codesourcery.com>
5293
5294 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5295 (is_catchpoint): ... it.
5296 (print_one_breakpoint_location): Caller update.
5297 * breakpoint.h: Update declaration.
5298
d8fb5a1e
DM
52992012-04-23 David S. Miller <davem@davemloft.net>
5300
5301 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5302
34431a2a
TT
53032012-04-23 Tom Tromey <tromey@redhat.com>
5304
5305 * buildsym.c (add_free_pendings): Remove.
5306 * buildsym.h (add_free_pendings): Remove.
5307
4568ecf9
DE
53082012-04-23 Doug Evans <dje@google.com>
5309
5310 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5311 attr.u.unsnd instead of attr.u.addr.
5312 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5313 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5314 DW_FORM_ref_udata.
5315 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5316 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5317 DW_FORM_ref_udata.
5318 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5319
dca9aa3a
MR
53202012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5321
5322 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5323 (mips_o32_return_value): Likewise.
5324 (mips_o64_return_value): Likewise.
5325
c8ea1972
PH
53262012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5327
5328 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5329 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5330 their treatment in eval.c.
c8ea1972 5331
8d1b3521
DM
53322012-04-21 David S. Miller <davem@davemloft.net>
5333
5334 * sparc-tdep.c (X_DISP10): Define.
5335 (sparc_analyze_control_transfer): Handle compare-and-branch.
5336
03145bf4
JL
53372012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5338
5339 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5340 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5341
004159a2 53422012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5343 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5344
5345 * mips-tdep.c (mips_float_register_p): New function.
5346 (mips_convert_register_float_case_p): Use mips_float_register_p.
5347 (mips_register_type): Likewise.
5348 (mips_print_register): Likewise.
5349 (print_gp_register_row): Likewise.
5350 (mips_print_registers_info): Likewise.
5351
7f0e6aae
MR
53522012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5353
5354 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5355 of mips16 symbols.
5356
bc17beea
AP
53572012-04-20 Andrew Pinski <apinski@cavium.com>
5358
5359 * MAINTAINERS (Write After Approval): Add myself to the list.
5360
1730a5a5
SDJ
53612012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5362
5363 * MAINTAINERS: Update my e-mail address.
5364
38ea300a
PA
53652012-04-20 Pedro Alves <palves@redhat.com>
5366
5367 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5368 $srcdir.
5369 * configure: Regenerate.
5370
111dfaae
SDJ
53712012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5372
5373 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5374 declaration.
5375 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5376
4fb2c64a
JK
53772012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5378
5379 Fix compilation compatibility with python-2.4
5380 * python/py-type.c (convert_field): Cast ADDRSTRING for
5381 PyObject_SetAttrString as non-const. New comment.
5382
6328eb38
TT
53832012-04-19 Tom Tromey <tromey@redhat.com>
5384
5385 * top.c (quit_target): Use all_cleanups.
5386 * main.c (captured_command_loop): Use all_cleanups.
5387 * exceptions.c (throw_exception): Use all_cleanups.
5388
c971b7fa
PA
53892012-04-19 Pedro Alves <palves@redhat.com>
5390
5391 * Makefile.in (GNULIB_BUILDDIR): New.
5392 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5393 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5394 (CLEANDIRS). Remove gnulib/import.
5395 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5396 (all-lib): Ditto.
5397 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5398 (gnulib/import/Makefile): Replace gnulib/import with
5399 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5400 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5401 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5402 acx_configure_dir.m4.
5403 * acinclude.m4: Include acx_configure_dir.m4.
5404 * acx_configure_dir.m4: New file.
5405 * aclocal.m4: Regenerate.
a09130f9
PA
5406 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5407 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5408 (GNULIB): New variable.
5409 (GNULIB_STDINT_H): Adjust.
5410 (AC_OUTPUT): Don't output gnulib/Makefile.
5411 * gdb/defs.h: Include build-gnulib/config.h.
5412 * aclocal.m4: Regenerate.
5413 * config.in: Regenerate.
5414 * configure: Regenerate.
5415
5416 * gnulib/Makefile.in: New file.
5417 * gnulib/configure.ac: New file.
5418 * gnulib/aclocal.m4: New file.
5419 * gnulib/config.in: New file.
5420 * gnulib/configure: New file.
c971b7fa
PA
5421 * gnulib/: Re-run gnulib-tool to adjust.
5422
b10faa68
DE
54232012-04-19 Doug Evans <dje@google.com>
5424
5425 * cleanups.h (struct cleanup): Move to cleanups.c.
5426 (make_cleanup_dtor_ftype): New typedef.
5427 (make_cleanup_dtor): Use it.
5428 (ALL_CLEANUPS): Replace with ...
5429 (all_cleanups): ... this. Declare. All uses updated.
5430 * cleanups.c: #include "gdb_assert.h".
5431 (sentinel_cleanup): New static global.
5432 (SENTINEL_CLEANUP): Define.
5433 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5434 (make_my_cleanup2): Assert result is non-NULL.
5435 (all_cleanups): New function.
5436 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5437 of NULL.
5438
d8c267cc
PA
54392012-04-19 Pedro Alves <palves@redhat.com>
5440
5441 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5442 Adjust paths to gnulib imported files.
5443
809277f8
PA
54442012-04-19 Pedro Alves <palves@redhat.com>
5445
5446 * gnulib/: Move whole directory ...
5447 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5448 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5449 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5450 (aclocal_m4_deps): Adjust.
5451 * aclocal.m4: Regenerate.
5452 * configure: Regenerate.
5453 * configure.ac: Adjust AC_OUTPUT output.
5454
aad9eab9
YQ
54552012-04-19 Yao Qi <yao@codesourcery.com>
5456
5457 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5458 (vec.o): New rule.
5459 * vec.c: Move it ...
5460 * common/vec.c: ... here.
5461 * vec.h: Move it ...
5462 * common/vec.h: ... here.
5463
48fe4669
YQ
54642012-04-19 Yao Qi <yao@codesourcery.com>
5465
5466 * gdb-code-style.el: New.
5467
770d76d7
PA
54682012-04-18 Pedro Alves <palves@redhat.com>
5469
5470 Update gnulib from latest git.
5471 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5472
5473 * gnulib/Makefile.am: Update.
5474 * gnulib/dummy.c: Update.
5475 * gnulib/extra/arg-nonnull.h: Update.
5476 * gnulib/extra/c++defs.h: Update.
5477 * gnulib/extra/update-copyright: Update.
5478 * gnulib/extra/warn-on-use.h: Update.
5479 * gnulib/inttypes.in.h: Update.
5480 * gnulib/m4/00gnulib.m4: Update.
5481 * gnulib/m4/extensions.m4: Update.
5482 * gnulib/m4/gnulib-cache.m4: Update.
5483 * gnulib/m4/gnulib-common.m4: Update.
5484 * gnulib/m4/gnulib-comp.m4: Update.
5485 * gnulib/m4/gnulib-tool.m4: Update.
5486 * gnulib/m4/include_next.m4: Update.
5487 * gnulib/m4/inttypes-pri.m4: Update.
5488 * gnulib/m4/inttypes.m4: Update.
5489 * gnulib/m4/longlong.m4: Update.
5490 * gnulib/m4/memchr.m4: Update.
5491 * gnulib/m4/memmem.m4: Update.
5492 * gnulib/m4/mmap-anon.m4: Update.
5493 * gnulib/m4/multiarch.m4: Update.
5494 * gnulib/m4/onceonly.m4: Update.
5495 * gnulib/m4/stddef_h.m4: Update.
5496 * gnulib/m4/stdint.m4: Update.
5497 * gnulib/m4/string_h.m4: Update.
5498 * gnulib/m4/warn-on-use.m4: Update.
5499 * gnulib/m4/wchar_h.m4: Update.
5500 * gnulib/m4/wchar_t.m4: Update.
5501 * gnulib/m4/wint_t.m4: Update.
5502 * gnulib/memchr.c: Update.
5503 * gnulib/memmem.c: Update.
5504 * gnulib/stddef.in.h: Update.
5505 * gnulib/stdint.in.h: Update.
5506 * gnulib/str-two-way.h: Update.
5507 * gnulib/string.in.h: Update.
5508 * gnulib/wchar.in.h: Update.
5509
5510 * gnulib/extra/arg-nonnull.h: Delete.
5511 * gnulib/extra/c++defs.h: Delete.
5512 * gnulib/extra/warn-on-use.h: Delete.
5513 * gnulib/m4/wchar_h.m4: Delete.
5514 * gnulib/m4/wint_t.m4: Delete.
5515 * gnulib/wchar.in.h: Delete.
5516
5517 * gnulib/extra/snippets/arg-nonnull.h: New.
5518 * gnulib/extra/snippets/c++defs.h: New.
5519 * gnulib/extra/snippets/warn-on-use.h: New.
5520
5521 * aclocal.m4: Regenerate.
5522 * config.in: Regenerate.
5523 * configure: Regenerate.
5524 * gnulib/Makefile.in: Regenerate.
5525
174e088e
PA
55262012-04-18 Pedro Alves <palves@redhat.com>
5527
5528 Reimport the update-copyright module from gnulib
5529 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5530
5531 * configure: Regenerate.
5532 * gnulib/Makefile.am: Update.
5533 * gnulib/Makefile.in: Regenerate.
5534 * gnulib/extra/update-copyright: Update.
5535 * gnulib/m4/gnulib-cache.m4: Update.
5536 * gnulib/m4/gnulib-comp.m4: Update.
5537
7f533142
JB
55382012-04-18 Tristan Gingold <gingold@adacore.com>
5539
5540 * configure.ac (aix): Put -lpthread into libs.
5541 * configure: Regenerate.
5542
001822aa
TT
55432012-04-18 Tom Tromey <tromey@redhat.com>
5544
5545 * linespec.c (convert_linespec_to_sals): Don't use
5546 SYMBOL_OBJ_SECTION.
5547 (compare_msymbols): Arguments are minsym_and_objfile, not
5548 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5549
db026a31
PA
55502012-04-18 Pedro Alves <palves@redhat.com>
5551
5552 Revert gnulib/ part of:
5553 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5554 Copyright year update in most files (performed by copyright.sh).
5555
12df843f
JK
55562012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5557
5558 Fix 64-bit constants on 32-bit hosts.
5559 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5560 from unsigned long to ULONGEST.
5561 (read_signed_leb128): Change declaration return type from long to
5562 LONGEST.
5563 (dwarf2_const_value_attr): Change declaration parameter value from long
5564 to LONGEST.
5565 (dwarf2_compute_name): Change variable value from long to LONGEST.
5566 (read_unsigned_leb128): Change return type, variable result and some
5567 casts from unsigned long to ULONGEST.
5568 (read_signed_leb128): Change return type, variable result and some
5569 casts from long to LONGEST.
5570 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5571 value from long to LONGEST.
5572 (dwarf2_const_value): Change variable value from long to LONGEST.
5573 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5574 plongest and hex_string.
5575 * symtab.h (struct general_symbol_info): Change ivalue from long to
5576 LONGEST, remove the comment.
5577 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5578 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5579
14e75d8e
JK
55802012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5581
5582 PR symtab/7259:
5583 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5584 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
5585 (ada_discrete_type_low_bound): Fix function comment. Use
5586 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
5587 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5588 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5589 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5590 Use TYPE_FIELD_ENUMVAL.
5591 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5592 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5593 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5594 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5595 TYPE_CODE_ENUM.
5596 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5597 * dwarf2read.c (process_enumeration_scope): Likewise.
5598 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5599 field.bitpos.
5600 (class StructMainTypePrettyPrinter): Support also
5601 FIELD_LOC_KIND_ENUMVAL.
5602 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5603 TYPE_CODE_ENUM.
5604 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5605 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5606 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5607 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5608 field enumval.
5609 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5610 accommodate enumval.
5611 (struct call_site): Adjust loc_kind to accommodate enumval.
5612 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5613 (TYPE_FIELD_ENUMVAL): New macros.
5614 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5615 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5616 TYPE_CODE_ENUM.
5617 * p-typeprint.c (pascal_type_print_base): Likewise.
5618 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5619 enumval.
5620 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5621 * python/py-type.c (convert_field): New variable addrstring. Use
5622 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5623 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5624 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5625 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5626 TYPE_CODE_ENUM.
5627 * valprint.c (generic_val_print): Likewise.
5628
380bca97
DE
56292012-04-17 Doug Evans <dje@google.com>
5630
dcc07052
DE
5631 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5632
380bca97
DE
5633 * dwarf2read.c: Whitespace fixes.
5634 (lookup_signatured_type): Tweak comment.
5635 (get_die_type_at_offset): Fix comment.
5636
ec92004f
JB
56372012-04-17 Joel Brobecker <brobecker@adacore.com>
5638
5639 * xcoffread.c (xcoff_secnum_to_sections): New function.
5640 (secnum_to_section, secnum_to_bfd_section): Reimplement
5641 using xcoff_secnum_to_sections. Rename "secnum" parameter
5642 into "n_scnum".
5643 (RECORD_MINIMAL_SYMBOL): Delete.
5644 (record_minimal_symbol): New function.
5645 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5646 by call to record_minimal_symbol and set misc_func_recorded
5647 to 1. Set last_csect_sec to the XCOFF section index instead
5648 of GDB's section_offset index. Update calls to
5649 prim_record_minimal_symbol_and_info to pass the BFD section
5650 as well.
5651
40301fb7
JB
56522012-04-17 Joel Brobecker <brobecker@adacore.com>
5653
5654 * xcoffread.c (read_xcoff_symtab): Delete variables
5655 last_csect_val and last_csect_sec and associated code.
5656
e0088cfd
DE
56572012-04-17 Doug Evans <dje@google.com>
5658
58d5e2c3
DE
5659 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5660 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5661 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5662 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5663
c27f5738
DE
5664 * cleanups.h: New file.
5665 * cleanups.c: New file.
5666 * Makefile.in (SFILES): Add cleanups.c.
5667 (HFILES_NO_SRCDIR): Add cleanups.h.
5668 (COMMON_OBS): Add cleanups.o.
5669 * defs.h (struct cleanup): Moved to cleanups.h.
5670 (do_cleanups,do_final_cleanups): Ditto.
5671 (discard_cleanups,discard_final_cleanups): Ditto
5672 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5673 (save_cleanups,save_final_cleanups): Ditto.
5674 (restore_cleanups,restore_final_cleanups): Ditto.
5675 (null_cleanup): Ditto.
5676 (make_my_cleanup,make_my_cleanup2): Ditto.
5677 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5678 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5679 (do_cleanups,do_final_cleanups): Ditto.
5680 (discard_cleanups,discard_final_cleanups): Ditto
5681 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5682 (save_cleanups,save_final_cleanups): Ditto.
5683 (restore_cleanups,restore_final_cleanups): Ditto.
5684 (null_cleanup): Ditto.
5685 (make_my_cleanup,make_my_cleanup2): Ditto.
5686 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5687
e0088cfd
DE
5688 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5689 make_my_cleanup.
5690 (make_cleanup_dyn_string_delete): Ditto.
5691 (make_cleanup_ui_file_delete): Ditto.
5692 (make_cleanup_ui_out_redirect_pop): Ditto.
5693 (make_cleanup_free_section_addr_info): Ditto.
5694 (make_cleanup_restore_integer): Ditto.
5695 (make_cleanup_unpush_target): Ditto.
5696 (make_cleanup_value_free_to_mark): Ditto.
5697 (make_cleanup_value_free): Ditto.
5698 (make_cleanup_free_so): Ditto.
5699
4dc84fd1
JK
57002012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5701
5702 New option "set debug auto-load".
5703 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5704 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5705 (auto_load_safe_path_vec_update)
5706 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5707 if DEBUG_AUTO_LOAD.
5708 (file_is_auto_load_safe): New parameters debug_fmt and ....
5709 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5710 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5711 caller by explanatory string.
5712 (_initialize_auto_load): Register "set debug auto-load".
5713 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5714 and ....
5715 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5716 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5717 by explanatory string.
5718 * main.c (captured_main): Likewise.
5719 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5720 (source_section_scripts): Likewise.
5721
bccbefd2
JK
57222012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 New option "set auto-load safe-path".
5725 * NEWS: New commands "set auto-load safe-path"
5726 and "show auto-load safe-path".
5727 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5728 (auto_load_safe_path, auto_load_safe_path_vec)
5729 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5730 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5731 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5732 (source_gdb_script_for_objfile): New variable is_safe. Call
5733 file_is_auto_load_safe. Return if it is not.
5734 (struct loaded_script): New field loaded.
5735 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5736 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5737 output "Missing" to "No".
5738 (_initialize_auto_load): New variable cmd. Initialize
5739 auto_load_safe_path. Register "set auto-load safe-path",
5740 "show auto-load safe-path" and "add-auto-load-safe-path".
5741 * auto-load.h (maybe_add_script): Add parameter loaded.
5742 (file_is_auto_load_safe): New declaration.
5743 * config.in: Regenerate.
5744 * configure: Regenerate.
5745 * configure.ac: New parameters --with-auto-load-safe-path
5746 and --without-auto-load-safe-path.
5747 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5748 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5749 * main.c (captured_main): Check file_is_auto_load_safe for
5750 LOCAL_GDBINIT.
5751 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5752 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5753 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5754 not.
5755
bf88dd68
JK
57562012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5757
5758 auto-load: Implementation.
5759 * NEWS: New descriptions for "info auto-load",
5760 "info auto-load gdb-scripts", "info auto-load python-scripts",
5761 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5762 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5763 and "show auto-load-scripts". New description for "set auto-load",
5764 "show auto-load", "set auto-load gdb-scripts",
5765 "show auto-load gdb-scripts", "set auto-load python-scripts",
5766 "show auto-load python-scripts", "set auto-load local-gdbinit",
5767 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5768 "show auto-load libthread-db".
5769 * auto-load.c: Remove include python/python-internal.h. Add includes
5770 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5771 cli/cli-setshow.h.
5772 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5773 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5774 (gdbpy_global_auto_load): Rename to ...
5775 (global_auto_load): ... here.
5776 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5777 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5778 (script_language_gdb, source_gdb_script_for_objfile): New.
5779 (struct loaded_script): New field language.
5780 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5781 LANGUAGE.
5782 (maybe_add_script): Add parameter language. Drop redundant
5783 entry.full_path initialization. Initialize entry.language and
5784 (*slot)->language.
5785 (auto_load_objfile_script): Change parameter suffix to language.
5786 Remove the call of maybe_add_script.
5787 Call language->source_script_for_objfile.
5788 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5789 New.
5790 (collect_matching_scripts): Adjust it for
5791 struct collect_matching_scripts_data.
5792 (auto_load_info_scripts_pattern_nl): New variable.
5793 (info_auto_load_scripts): Rename to ...
5794 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5795 for struct collect_matching_scripts_data.
5796 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5797 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5798 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5799 (auto_load_info_cmdlist_get): New.
5800 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5801 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5802 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5803 "info auto-load local-gdbinit".
5804 * auto-load.h (struct script_language): New.
5805 (gdbpy_global_auto_load): Rename to ...
5806 (global_auto_load): ... here.
5807 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5808 (auto_load_local_gdbinit_loaded): New declarations.
5809 (maybe_add_script): New parameter language.
5810 (auto_load_objfile_script): Change parameter suffix to language.
5811 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5812 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5813 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5814 declarations.
5815 * linux-thread-db.c: Include auto-load.h and ctype.h.
5816 (auto_load_thread_db, show_auto_load_thread_db): New.
5817 (struct thread_db_info): New field filename.
5818 (delete_thread_db_info): Call xfree for FILENAME.
5819 (try_thread_db_load): Initialize FILENAME.
5820 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5821 if !AUTO_LOAD_THREAD_DB.
5822 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5823 (_initialize_thread_db): Install auto_load_thread_db
5824 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5825 as "info auto-load libthread-db".
5826 * main.c (captured_main): Rename gdbpy_global_auto_load to
5827 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5828 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5829 (print_gdb_help): Extend the help for 'local init file'.
5830 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5831 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5832 (auto_load_scripts): Rename to ...
5833 (auto_load_python_scripts): ... here, update the comment.
5834 (gdbpy_load_auto_script_for_objfile): New declaration.
5835 (show_auto_load_python_scripts, script_language_python)
5836 (gdbpy_load_auto_script_for_objfile): New.
5837 (source_section_scripts): Refactor the code.
5838 (load_auto_scripts_for_objfile): Rename to ...
5839 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5840 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5841 (info_auto_load_python_scripts): New.
5842 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5843 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5844 Register "set auto-load-scripts" as its deprecated alias. Register
5845 "info auto-load python-scripts". Register "info auto-load-scripts" as
5846 its deprecated alias.
5847 (load_auto_scripts_for_objfile): Rename to ...
5848 (gdbpy_load_auto_scripts_for_objfile): ... here.
5849 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5850 (gdbpy_load_auto_scripts_for_objfile): ... here.
5851
e2207b9a
JK
58522012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5853
5854 auto-load: Move files.
5855 * Makefile.in (SFILES): Add auto-load.c.
5856 (HFILES_NO_SRCDIR): Add auto-load.h.
5857 (COMMON_OBS): Add auto-load.o.
5858 (distclean): Change .gdbinit for gdb-gdb.gdb.
5859 * auto-load.c: New file, with parts from python/py-auto-load.c.
5860 * auto-load.h: New file, with parts from python/python.h.
5861 * configure: Regenerate.
5862 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5863 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5864 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5865 * main.c: Include auto-load.h.
5866 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5867 command.h, observer.h and progspace.h to auto-load.c. Add include
5868 auto-load.h.
5869 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5870 (struct loaded_script, auto_load_pspace_data)
5871 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5872 (hash_loaded_script_entry, eq_loaded_script_entry)
5873 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5874 (maybe_add_script): Move to auto-load.c.
5875 (source_section_scripts): Change maybe_add_script parameters passing,
5876 use script_not_found_warning_print.
5877 (clear_section_scripts, auto_load_objfile_script)
5878 (auto_load_new_objfile, loaded_script_ptr)
5879 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5880 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5881 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5882 auto_load_new_objfile and info_auto_load_scripts initizations to
5883 auto-load.c.
5884 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5885
e4ab2fad
JK
58862012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5887
5888 Code cleanup.
5889 * charset.c (find_charset_names): Remove variables ix and elt.
5890 Use free_char_ptr_vec.
5891 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5892 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5893 debugdir_end. New variable debugdir_len.
5894 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5895 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5896 declarations.
5897 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5898 and elt. Use free_char_ptr_vec.
5899 * source.c (add_path): Remove variables argv, arg and argv_index.
5900 New variables dir_vec, back_to, ix and name.
5901 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5902 make_cleanup_freeargv. Remove variable separator. Simplify the code
5903 no longer expecting DIRNAME_SEPARATOR.
5904 (openp): Remove variable p, p1 and len. New variables dir_vec,
5905 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5906 no longer expecting DIRNAME_SEPARATOR.
5907 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5908 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5909 debugdir_end.
5910 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5911 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5912 (dirnames_to_char_ptr_vec): New functions.
5913
5ee4ed9f
JK
59142012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5915
5916 Code cleanup.
5917 * source.c (add_path): Remove always true conditional 'p == 0' and
5918 unindent its code block.
5919
f41f5e61
PA
59202012-04-17 Pedro Alves <palves@redhat.com>
5921
5922 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5923 (FIELD_BITPOS_LVAL): ... this.
5924 (FIELD_BITPOS): New.
5925 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5926 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5927 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5928 SET_FIELD_BITPOS.
5929 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5930 SET_FIELD_BITPOS.
5931 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5932 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5933 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5934 SET_FIELD_BITPOS.
5935
945b3a32
JK
59362012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5937
5938 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5939 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5940 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5941 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5942 * jv-lang.c (java_link_class_type): Likewise, once.
5943 * stabsread.c (read_enum_type): Likewise.
5944
42476b70
YQ
59452012-04-16 Yao Qi <yao@codesourcery.com>
5946
5947 * common/agent.c (agent_run_command): Add one more parameter `len'.
5948 Update callers.
5949 * common/agent.h: Update declaration.
5950 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5951 Update.
5952 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5953
8264ba82
AG
59542012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5955
5956 PR mi/13393
5957 * value.c (value_actual_type): New function.
5958 * value.h (value_actual_type): New declaration.
5959 * varobj.c (update_type_if_necessary): New function.
5960 (varobj_create): Call value_actual_type instead of
5961 value_type.
5962 (install_dynamic_child): distinct changed and type changed MI variable
5963 objects.
5964 (update_dynamic_varobj_children): Updated for install_dynamic_child
5965 change. All callers updated.
a09130f9 5966 (varobj_update): Support for MI variable object type change if
8264ba82
AG
5967 the value changed and RTTI is used to determine the type.
5968 (create_child_with_value): Call value_actual_type instead of
5969 value_type.
a09130f9 5970 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
5971 specify whether the given value should be casted to enclosing type.
5972 All callers updated.
5973
55a8c076
YQ
59742012-04-14 Yao Qi <yao@codesourcery.com>
5975
5976 Import gnulib module inttypes from git
5977 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5978 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
5979 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5980 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
5981 * aclocal.m4, config.in, configure: Regenerated.
5982 * gnulib/Makefile.am: Update.
5983 * gnulib/Makefile.in: Update.
5984 * gnulib/m4/gnulib-cache.m4: Update.
5985 * gnulib/m4/gnulib-comp.m4: Update.
5986 * gnulib/inttypes.in.h: New.
5987 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 5988 * gnulib/m4/inttypes.m4: New.
55a8c076 5989
ca7781d2
LM
59902012-04-13 Luis Machado <lgustavo@codesourcery.com>
5991
5992 * infrun.c (resume): Update PC address to the real PC after
5993 preparing to do displaced stepping.
5994
e319fa28
DE
59952012-04-12 Doug Evans <dje@google.com>
5996
5997 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5998 All callers updated.
5999
15add3f5
MK
60002012-04-12 Mark Kettenis <kettenis@gnu.org>
6001
6002 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6003
52dc124a
DE
60042012-04-12 Doug Evans <dje@google.com>
6005
0e50663e
DE
6006 * dwarf2read.c (create_all_type_units): Renamed from
6007 create_debug_types_hash_table. All callers updated.
6008
52dc124a
DE
6009 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6010 local type_sig to sig_type, type_offset to type_offset_in_tu.
6011 (hash_signatured_type): Renamed from hash_type_signature,
6012 all callers updated.
6013 (eq_signatured_type): Renamed from eq_type_signature,
6014 all callers updated.
6015 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6016 (process_enumeration_scope): Ditto.
6017 (lookup_signatured_type_at_offset): Ditto.
6018 (load_full_type_unit, read_signatured_type): Ditto.
6019
248fd3bf
YQ
60202012-04-12 Yao Qi <yao@codesourcery.com>
6021
6022 * remote.c (async_remote_interrupt): Correct function name in
6023 debug message.
6024 (async_remote_interrupt_twice): Ditto.
6025
bc3aa6c3
DE
60262012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6027
6028 * source.c (find_and_open_source): Consistently pass resulting
6029 full path through xfullpath.
6030
9e529e1d
JK
60312012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6032
6033 Provide more specific displaced-stepping memory error message.
6034 * infrun.c (displaced_step_prepare): New variable status. Call
6035 target_read_memory instead of read_memory, provide more specific
6036 error message.
6037
82e0cec1
TG
60382012-04-11 Tristan Gingold <gingold@adacore.com>
6039
6040 PR gdb/13901
6041 * darwin-nat.c (darwin_execvp): Revert previous patch.
6042
d987a266
TG
60432012-04-11 Tristan Gingold <gingold@adacore.com>
6044
6045 PR gdb/13901
6046 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6047 in case of change.
6048
016b7430
TG
60492012-04-11 Tristan Gingold <gingold@adacore.com>
6050
6051 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6052 warning.
6053
06fc020f
SCR
60542012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6055
6056 New command 'explore' which helps explore values and types in
6057 scope.
6058 * NEWS: Add an entry about the new 'explore' command.
6059 * data-directory/Makefile.in: Add gdb/command/explore.py
6060 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6061 command using the GDB Python API.
06fc020f 6062
de0919f8 60632012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6064
6065 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6066 extension in jump target calculation.
6067
de0919f8 60682012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6069
6070 * mips-tdep.c (mips32_next_pc): Handle JALX.
6071
2f26ef89
YQ
60722012-04-10 Yao Qi <yao@codesourcery.com>
6073
6074 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6075
2e505b66
YQ
60762012-04-10 Yao Qi <yao@codesourcery.com>
6077
6078 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6079 and gnulib/m4/gnulib-tool.m4.
6080
0d99eb77
DE
60812012-04-10 Doug Evans <dje@google.com>
6082
6083 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6084 (load_partial_dies): Clarify comment.
6085 (find_partial_die): Support rereading type units.
6086 Clarify CU handling, if we know offset is in CU, don't search for the
6087 containing CU. Add comment regarding memory waste.
6088
9a82b8ff
L
60892012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6090
6091 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6092 i386/x32-avx and i386/x32-avx-linux.
6093 (i386/x32-expedite): New.
6094 (i386/x32-linux-expedite): Likewise.
6095 (i386/x32-avx-expedite): Likewise.
6096 (i386/x32-avx-linux-expedite): Likewise.
6097 ($(outdir)/i386/x32.dat): Likewise.
6098 ($(outdir)/i386/x32-linux.dat): Likewise.
6099 ($(outdir)/i386/x32-avx.dat): Likewise.
6100 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6101
6102 * features/i386/x32-avx-linux.xml: New file.
6103 * features/i386/x32-avx.xml: Likewise.
6104 * features/i386/x32-core.xml: Likewise.
6105 * features/i386/x32-linux.xml: Likewise.
6106 * features/i386/x32.xml: Likewise.
6107
6108 * features/i386/x32-avx-linux.c: New. Generated.
6109 * features/i386/x32-avx.c: Likewise.
6110 * features/i386/x32-linux.c: Likewise.
6111 * features/i386/x32.c: Likewise.
6112 * regformats/i386/x32-avx-linux.dat: Likewise.
6113 * regformats/i386/x32-avx.dat: Likewise.
6114 * regformats/i386/x32-linux.dat: Likewise.
6115 * regformats/i386/x32.dat: Likewise.
6116
ee41036f
TG
61172012-04-10 Tristan Gingold <gingold@adacore.com>
6118
6119 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6120 code to kill the inferior.
6121
a7aa5b8a
MK
61222012-04-09 Mark Kettenis <kettenis@gnu.org>
6123
6124 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6125 defines.
6126 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6127 defines.
a09130f9 6128 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6129 (yyvsp): New defines.
6130 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6131 defines.
6132 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6133 defines.
6134 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6135 defines.
6136 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6137 defines.
6138 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6139 defines.
6140
fb57d452
MK
61412012-04-09 Mark Kettenis <kettenis@gnu.org>
6142
a09130f9 6143 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6144 (sparc64_store_arguments): Fix coding style.
6145
cdc7b32f
MK
61462012-04-07 Mark Kettenis <kettenis@gnu.org>
6147
6148 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6149 complex floats, adjust some related comments and tighten a related
6150 assertion.
6151 (sparc64_extract_return_value): Handle complex floats.
6152
7adf1e79
DE
61532012-04-07 Doug Evans <dje@google.com>
6154
6155 * dwarf2read.c (load_partial_dies): Change condition to assert.
6156
50f1ae7b
DE
61572012-04-06 Doug Evans <dje@google.com>
6158
6159 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6160 "mov %rsp,%rbp".
6161
55fa75c3
KB
61622012-04-05 Kevin Buettner <kevinb@redhat.com>
6163
6164 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6165 fencepost error.
6166 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6167 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6168 architecture.
6169
40e084e1
KS
61702012-04-05 Keith Seitz <keiths@redhat.com>
6171
6172 * linespec.c (decode_compound): Remove.
6173 (enum offset_relative_sign): New enum.
6174 (struct line_offset): New struct.
6175 (struct linespec): New struct.
6176 (struct linespec_state): Move file_symtabs,
6177 user_filename, and user_function into struct linespec.
6178 Make result an anonymous struct holding vectors of
6179 symbolp and minsym_and_objfile_d.
6180 Add language member.
6181 (enum ls_token_type): New enum.
6182 (linespec_keywords): New array.
6183 (struct ls_token): New struct.
6184 (struct ls_parser): New struct.
6185 (linespec_lexer_lex_number): New function.
6186 (linespec_lexer_lex_keyword): New function.
6187 (is_ada_operator): New function.
6188 (skip_quote_char): New function.
6189 (copy_token_string): New function.
6190 (is_closing_quote_enclosed): New function.
6191 (find_parameter_list_end): New function.
6192 (linespec_lexer_lex_string): New function.
6193 (linespec_lexer_lex_one): New function.
6194 (linespec_lexer_consume_token): New function.
6195 (linespec_lexer_peek_token): New function.
6196 (cplusplus_error): Remove unused function.
6197 (find_methods): Update comment.
6198 (find_toplevel_char): Return const.
6199 (is_objc_method_format): Remove unused function.
6200 (find_toplevel_string): New function.
6201 (is_linespec_boundary): Remove.
6202 (symbol_not_found_error): New function.
6203 (find_method_overload_end): Remove function.
6204 (unexpected_linespec_error): New function.
6205 (keep_name_info): Remove.
6206 (linespec_parse_line_offset): New function.
6207 (linespec_parse_basic): New function.
6208 (canonicalize_linespec): New function.
6209 (decode_line_internal): Remove.
6210 (create_sals_line_offset): New function adapted from
6211 decode_all_digits.
6212 (convert_linespec_to_sals): New function.
6213 (parse_linespec): New function.
6214 (linespec_parser_new): New function.
6215 (linespec_state_destructor): Change parameter type to
6216 struct linespec_state *.
6217 Add language parameter.
6218 Remove freeing of moved members.
6219 (linespec_parser_delete): New function.
6220 (decode_line_full): Use parse_linespec and linespec_parser_new.
6221 (decode_line_1): Likewise.
6222 (decode_indirect): Rename to ...
6223 (linespec_expression_to_pc): ... this and rewrite
6224 to simply find CORE_ADDR, storing this result for later
6225 conversion to SALs.
6226 (locate_first_half): Remove.
6227 (deocde_objc): Add parameter LS.
6228 Initialize new struct collect_info members.
6229 Handle minimal symbols, too.
6230 (decode_compound): Delete.
6231 (lookup_prefix_sym): Rewrite.
6232 (compare_msymbols): New function.
6233 (find_method): Rewrite.
6234 Do not call cplusplus_error.
6235 (symtabs_from_filename): Rewrite.
6236 (collect_function_symbols): Delete.
6237 (find_function_symbols): Rewrite without ARGPTR-style
6238 processing.
6239 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6240 (decode_dollar): Adapted and renamed to ...
6241 (linespec_parse_variable): ... this.
6242 (find_linespec_symbols): New function.
6243 (decode_label): Adapted and renamed to ...
6244 (find_label_symbols): ... this.
6245 (decode_digits_list_mode): Add and use LS argument.
6246 (decode_digits_ordinary): Likewise.
6247 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6248 If in list mode, allow any symbol class. Otherwise, only
6249 permit LOC_BLOCK symbols.
6250 (minsym_found): Update comments.
6251 (search_minsyms_for_name): Do not convert the matching symbol
6252 into a SAL. Simply push the symbol and objfile into the
6253 result vector.
6254 (decode_variable): Delete. Contents adapted into
6255 find_linespec_symbols.
6256
6257 * cp-support.c (SKIP_SPACE): Remove.
6258 (operator_tokens): Remove unused global.
6259 (cp_validate_operator): Remove.
6260 * cp-support.h (cp_validate_operator): Remove declaration.
6261
a72c8f6a
JK
62622012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6263
6264 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6265 for TYPE_VPTR_FIELDNO.
6266 * valprint.c (valprint_check_validity): Make it global, move the
6267 function comment ...
6268 * value.h (valprint_check_validity): ... to this new declaration.
6269
cf9bb588
TG
62702012-04-02 Tristan Gingold <gingold@adacore.com>
6271
6272 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6273 the STATE32 api for i386 state.
6274 (i386_darwin_store_inferior_registers): Likewise.
6275
17092398
TG
62762012-04-02 Tristan Gingold <gingold@adacore.com>
6277
6278 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6279 SS offset.
6280 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6281 format_string.
6282
ece0061f
TG
62832012-04-02 Tristan Gingold <gingold@adacore.com>
6284
6285 PR gdb/13901
d987a266 6286 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6287
cf65ecd3
JK
62882012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6289
6290 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6291
9bc3523d
TT
62922012-03-30 Tom Tromey <tromey@redhat.com>
6293
6294 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6295 of TRY_CATCH. Fix error handling.
6296 * python/py-value.c (convert_value_from_python): Move 'old'
6297 declaration to innermost scope.
6298
b1ed564a
JB
62992012-03-29 Joel Brobecker <brobecker@adacore.com>
6300 Andrey Smirnov <andrew.smirnov@gmail.com>
6301
6302 -Wshadow warning fix.
6303 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6304 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6305 Adjust code accordingly.
6306
cb8e9b97
JB
63072012-03-29 Joel Brobecker <brobecker@adacore.com>
6308
6309 * ada-lang.c (symbol_completion_add): Rename parameter
6310 "encoded" into "encoded_p". Ajust code and documentation
6311 accordingly.
6312
c0af1706
JB
63132012-03-29 Joel Brobecker <brobecker@adacore.com>
6314 Andrey Smirnov <andrew.smirnov@gmail.com>
6315
6316 -Wshadow warning fix.
6317 * ada-lang.c (symbol_completion_add): Rename parameter
6318 "wild_match" into wild_match_p. Update code and documentation
6319 accordingly.
6320
6ea35997
JB
63212012-03-29 Joel Brobecker <brobecker@adacore.com>
6322
6323 * ada-lang.c (symbol_completion_match): Rename parameter
6324 "encoded" into "encoded_p". Ajust code and documentation
6325 accordingly.
6326
e701b3c0
JB
63272012-03-29 Joel Brobecker <brobecker@adacore.com>
6328 Andrey Smirnov <andrew.smirnov@gmail.com>
6329
6330 -Wshadow warning fix.
6331 * ada-lang.c (symbol_completion_match): Rename parameter
6332 "wild_match" into "wild_match_p". Adjust code and function
6333 documentation accordingly.
6334
5e2336be
JB
63352012-03-29 Joel Brobecker <brobecker@adacore.com>
6336 Andrey Smirnov <andrew.smirnov@gmail.com>
6337
6338 -Wshadow warning fix.
6339 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6340 "symbol_info" into "info". Adjust code accordingly.
6341 (ada_lookup_symbol): Likewise.
6342
9f88c959
JB
63432012-03-29 Joel Brobecker <brobecker@adacore.com>
6344
6345 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6346 of this function's documentation.
6347
82ccd55e
JB
63482012-03-29 Joel Brobecker <brobecker@adacore.com>
6349 Andrey Smirnov <andrew.smirnov@gmail.com>
6350
6351 -Wshadow warning fix.
6352 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6353 variable into "wild_match_p". Adjust code accordingly.
6354
d0a8ab18
JB
63552012-03-29 Joel Brobecker <brobecker@adacore.com>
6356 Andrey Smirnov <andrew.smirnov@gmail.com>
6357
6358 -Wshadow warning fix.
6359 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6360 parameter into "wild_match_p". Adjust code accordingly.
6361 Document this parameter in the function description.
6362
48b78332
JB
63632012-03-29 Joel Brobecker <brobecker@adacore.com>
6364 Andrey Smirnov <andrew.smirnov@gmail.com>
6365
6366 -Wshadow warning fix.
6367 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6368 "wild_match" parameter to "wild_match_p" (-Wshadow).
6369
2e6e0353
JB
63702012-03-29 Joel Brobecker <brobecker@adacore.com>
6371
6372 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6373 in function documentation.
6374
dc4024cd
JB
63752012-03-29 Joel Brobecker <brobecker@adacore.com>
6376 Andrey Smirnov <andrew.smirnov@gmail.com>
6377
6378 -Wshadow warning fix.
6379 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6380 variable into wild_match_p. Adjust code accordingly.
6381
6c88661c
JB
63822012-03-29 Joel Brobecker <brobecker@adacore.com>
6383 Andrey Smirnov <andrew.smirnov@gmail.com>
6384
6385 * ada-valprint.c (ada_val_print_1): Move the code handling
6386 TYPE_CODE_ENUM inside its own lexical block. Declare
6387 variables len and val there, instead of in the function's
6388 top level block. Avoid declaring deref_val again in a way
6389 that shadows another variable of the same name declared
6390 in one of the up-level blocks. Just re-use the up-level
6391 variable instead.
6392
4e5c77fe
JB
63932012-03-29 Joel Brobecker <brobecker@adacore.com>
6394
6395 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6396 Replace block_found argument by symbol_info. Adjust
6397 implementation accordingly. Add function documentation.
6398 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6399 Fix documentation.
6400 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6401 * ada-exp.y (write_object_renaming): Adjust to new
6402 ada_lookup_encoded_symbol API.
6403
1c0ac8c7
JB
64042012-03-29 Joel Brobecker <brobecker@adacore.com>
6405
6406 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6407 documentation.
6408
2aaed979
KB
64092012-03-28 Rathish C <rathish.c@kpitcummins.com>
6410
6411 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6412 (v850_register_name): Add the mpu and fpu register names.
6413 (v850e_register_name): Add the mpu and fpu register names.
6414 (v850e2_register_name): New function.
a09130f9 6415 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
6416 bfd_mach_v850e2v3.
6417
927fbba6
JB
64182012-03-28 Joel Brobecker <brobecker@adacore.com>
6419
6420 * NEWS: Add entry for Ada varobj support.
6421
d32cafc7
JB
64222012-03-28 Joel Brobecker <brobecker@adacore.com>
6423
6424 * varobj.c (default_value_is_changeable_p): New function,
6425 extracted from varobj_value_is_changeable_p. Add declaration.
6426 (ada_value_is_changeable_p): New function, extracted from
6427 varobj_value_is_changeable_p. Add declaration.
6428 (struct language_specific): New field "value_is_changeable_p".
6429 (languages): Add entries for new field.
6430 (varobj_create): Set language before calling install_new_value.
6431 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6432 "value_is_changeable_p" language callback.
6433
181875a4
JB
64342012-03-28 Joel Brobecker <brobecker@adacore.com>
6435
6436 * ada-varobj.h, ada-varobj.c: New files.
6437 * Makefile.in (SFILES): Add ada-varobj.c.
6438 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6439 (COMMON_OBS): Add ada-varobj.o.
6440
7a290c40
JB
64412012-03-28 Joel Brobecker <brobecker@adacore.com>
6442
6443 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6444 (struct language_specific): New field "value_has_mutated".
6445 (languages): Set field "value_has_mutated" in each entry of array.
6446 (varobj_value_has_mutated): New function.
6447 (varobj_udpdate): Add handling of type mutation.
6448 (value_of_root): Add handling of type mutation.
6449 (ada_value_has_mutated): New function.
6450
ca9b8b9c
PA
64512012-03-28 Pedro Alves <palves@redhat.com>
6452
6453 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6454 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6455
cc0265cd
TT
64562012-03-28 Tom Tromey <tromey@redhat.com>
6457
6458 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6459 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6460 before returning.
6461
3ad2ec6f
TT
64622012-03-28 Tom Tromey <tromey@redhat.com>
6463
6464 * .dir-locals.el: New file.
6465
4a6510ba
PA
64662012-03-28 Pedro Alves <palves@redhat.com>
6467
6468 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6469
5a75128f
JB
64702012-03-28 Joel Brobecker <brobecker@adacore.com>
6471
6472 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6473 handling for r0.
6474
f99d8bf4
PA
64752012-03-27 Pedro Alves <palves@redhat.com>
6476
6477 Eliminate struct ui_stream.
6478
6479 * ui-out.h (struct ui_stream): Delete.
6480 (ui_out_field_stream): Adjust prototype.
6481 (ui_out_stream_new, ui_out_stream_delete)
6482 (make_cleanup_ui_out_stream_delete): Delete declarations.
6483 * ui-out.c (ui_out_field_stream): Change prototype to take a
6484 ui_file instead of a ui_stream. Adjust.
6485 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6486 (make_cleanup_ui_out_stream_delete): Delete.
6487 * breakpoint.c (print_breakpoint_location)
6488 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6489 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6490 * disasm.c (dump_insns): Ditto.
6491 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6492 prototype.
6493 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6494 ui_stream/ui_out_stream_new.
6495 * infcmd.c (print_return_value): Ditto.
6496 * osdata.c (info_osdata_command): Don't allocate a local
6497 ui_stream.
6498 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6499 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6500 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6501 allocate a local ui_stream.
6502 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6503 instead of ui_stream/ui_out_stream_new.
6504 (list_args_or_locals): Don't allocate a local ui_stream.
6505 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6506 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6507 ui_stream/ui_out_stream_new.
6508 * cli/cli-setshow.c (do_setshow_command): Ditto.
6509
6350a066 65102012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 6511
6350a066
PA
6512 * arm-linux-tdep.c (arm_linux_init_abi): Call
6513 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6514 * arm-tdep.c (arm_process_record): New function.
6515 (deallocate_reg_mem): New function.
6516 (decode_insn): New function.
6517 (thumb_record_branch): New function.
6518 (thumb_record_ldm_stm_swi(): New function.
6519 (thumb_record_misc): New function.
6520 (thumb_record_ld_st_stack): New function.
6521 (thumb_record_ld_st_imm_offset): New function.
6522 (thumb_record_ld_st_reg_offset(): New function.
6523 (thumb_record_add_sub_cmp_mov): New function.
6524 (thumb_record_shift_add_sub): New function.
6525 (arm_record_coproc_data_proc): New function.
6526 (arm_record_coproc): New function.
6527 (arm_record_b_bl): New function.
6528 (arm_record_ld_st_multiple): New function.
6529 (arm_record_ld_st_reg_offset): New function.
6530 (arm_record_ld_st_imm_offset): New function.
6531 (arm_record_data_proc_imm): New function.
6532 (arm_record_data_proc_misc_ld_str): New function.
6533 (arm_record_extension_space): New function.
6534 (arm_record_strx): New function.
6535 (sbo_sbz): New function.
6536 (struct insn_decode_record): New structure for arm insn record.
6537 (REG_ALLOC): New macro for reg allocations.
6538 (MEM_ALLOC): New macro for memory allocations.
6539 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 6540
89e028e2
AS
65412012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6542
6543 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6544 (store_register): Likewise.
6545
6350a066 65462012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 6547
6350a066 6548 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 6549
5b43fab2
JK
65502012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6551
6552 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6553 Describe also the option "auto".
6554
b5453b95
RH
65552012-03-22 Richard Henderson <rth@redhat.com>
6556
6557 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6558 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6559
227ee7fc
RH
65602012-03-22 Richard Henderson <rth@redhat.com>
6561
6562 * jit.c (jit_read_code_entry): Compute alignment and offset of
6563 int64_t member before computing entry_size.
6564
7b282c5a
SCR
65652012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6566
6567 Python scripting: Add new method Value.referenced_value to
6568 gdb.Value which can dereference pointer as well as reference
6569 values.
6570 * NEWS: Add entry under 'Python scripting' about the new method
6571 Value.referenced_value on gdb.Value objects.
6572 * python/py-value.c (valpy_referenced_value): New function
6573 defining a new method on gdb.Value objects which can dereference
6574 pointer and reference values.
6575
0c83539f
SCR
65762012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6577
6578 * MAINTAINERS (Write After Approval): Add myself to the list.
6579
7ccffd7c
KB
65802012-03-21 Kevin Buettner <kevinb@redhat.com>
6581
6582 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6583 in addition to "main".
6584
bd0b9f9e
JB
65852012-03-21 Joel Brobecker <brobecker@adacore.com>
6586
6587 * expression.h (op_name): Add declaration.
6588 * expprint.c (op_name): Remove declaration. Make non-static.
6589 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6590
a5362b9a
TS
65912012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6592
6593 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6594 of struct siginfo.
6595 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6596 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6597 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6598 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6599 (linux_nat_get_siginfo): Likewise.
6600 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6601 (linux_nat_get_siginfo): Likewise.
6602 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6603 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6604 * procfs.c (gdb_siginfo_t): Likewise.
6605
adcadaab
MF
66062012-03-21 Mike Frysinger <vapier@gentoo.org>
6607
6608 * .gitignore: Ignore more files.
6609
e278ad5b
PA
66102012-03-20 Pedro Alves <palves@redhat.com>
6611
6612 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6613 returns.
6614
741e63d7
YQ
66152012-03-20 Yao Qi <yao@codesourcery.com>
6616
6617 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6618 comment.
6619
b64f50a1
JK
66202012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6621
6622 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6623 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6624 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6625 sect_offset.
6626 * dwarf2expr.h (cu_offset, sect_offset): New types.
6627 (struct dwarf_expr_context_funcs) <dwarf_call>
6628 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6629 sect_offset.
6630 (struct dwarf_expr_context) <len>: Improve the comment.
6631 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6632 cu_offset and sect_offset.
6633 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6634 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6635 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6636 * dwarf2loc.h: Include dwarf2expr.h.
6637 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6638 and sect_offset.
6639 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6640 Improve the comment.
6641 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6642 (struct signatured_type, struct line_header, struct partial_die_info)
6643 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6644 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6645 (get_die_type_at_offset, create_cus_from_index)
6646 (create_signatured_type_table_from_index, dw2_get_file_names)
6647 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6648 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6649 (create_debug_types_hash_table, process_psymtab_comp_unit)
6650 (load_partial_comp_unit, create_all_comp_units)
6651 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6652 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6653 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6654 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6655 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6656 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6657 (find_partial_die, read_attribute_value, lookup_die_type)
6658 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6659 (is_ref_attr): New function comment.
6660 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6661 Use cu_offset and sect_offset.
6662 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6663 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6664 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6665 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6666 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6667 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6668 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6669 sect_offset.
6670
e97a38f7
JK
66712012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6672
6673 Code cleanup.
6674 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6675 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6676 with xfree.
6677 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6678
8320cc4f
JK
66792012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6680
6681 * NEWS: Describe new options --init-command=FILE, -ix and
6682 --init-eval-command=COMMAND, -iex.
6683 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6684 CMDARG_INIT_COMMAND.
6685 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6686 "init-command", "init-eval-command", "ix" and "iex" to the variable
6687 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6688 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6689 (print_gdb_help): Describe --init-command=FILE, -ix and
6690 --init-eval-command=COMMAND, -iex.
6691
26743505
JK
66922012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6693
6694 Code cleanup.
6695 * main.c (struct cmdarg): Move it here from main. Add more comments.
6696 (cmdarg_s, VEC (cmdarg_s)): New.
6697 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6698 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6699 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6700 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6701 of CMDARG.
6702
5ff5c7b4
TT
67032012-03-19 Tom Tromey <tromey@redhat.com>
6704
6705 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6706
ab260dad
JK
67072012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6708
6709 PR symtab/13777
6710 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6711 GCC >=4.5.
6712
c366c1f0
TT
67132012-03-16 Chris January <chris.january@allinea.com>
6714
6715 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6716 of clear.
6717
e16edb45
TT
67182012-03-16 Chris January <chris.january@allinea.com>
6719
6720 * source.c (add_path): Use memmove instead of strcpy because the
6721 strings overlap.
6722
53ba8333
JB
67232012-03-16 Joel Brobecker <brobecker@adacore.com>
6724
6725 * value.h (set_value_parent): Add declaration.
6726 * value.c (set_value_parent): New function.
6727 (value_address): If VALUE->PARENT is not NULL, then use it as
6728 the base address instead of VALUE->LOCATION.address.
6729 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6730 the same as OBJ's address. Adjust V's offset accordingly.
6731 Set V's parent.
6732
481860b3
GB
67332012-03-16 Gary Benson <gbenson@redhat.com>
6734
6735 PR breakpoints/10738
6736 * dwarf2read.c (use_deprecated_index_sections): New global.
6737 (struct partial_die_info): New member may_be_inlined.
6738 (read_partial_die): Set may_be_inlined where appropriate.
6739 (add_partial_subprogram): Add partial symbols for partial
6740 DIEs that may be inlined.
6741 (new_symbol_full): Add inlined subroutines to the current
6742 scope.
6743 (write_psymtabs_to_index): Bump version number.
6744 (dwarf2_read_index): Read only version 6 indices unless
6745 use_deprecated_index_sections is set.
6746 * linespec.c (symbol_and_data_callback): New structure.
6747 (iterate_inline_only): New function.
6748 (iterate_over_all_matching_symtabs): New argument
6749 "include_inline". If nonzero, also call the callback for
6750 symbols representing inlined subroutines.
6751 (lookup_prefix_sym): Pass extra argument to the above.
6752 (find_function_symbols): Likewise.
6753 (add_matching_symbols_to_info): Likewise.
6754 * NEWS: Mention that GDB can now set breakpoints on inlined
6755 functions.
6756
d0e7e15a
PM
67572012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6758
6759 * p-typeprint.c (pascal_type_print_method_args):
6760 Fix display of parameter of methods.
6761
3d354654
PM
67622012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6763
6764 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6765 Add missing prototype.
6766
cafe75b0
JK
67672012-03-16 Yao Qi <yao@codesourcery.com>
6768 Jan Kratochvil <jan.kratochvil@redhat.com>
6769
6770 Fix false compilation warning.
6771 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6772
25f8c692
JL
67732012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6774 Pedro Alves <pedro@codesourcery.com>
6775
6776 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6777 (arm_register_g_packet_guesses): New function.
6778 (arm_gdbarch_init): Don't force a target description with
6779 registers when the executable is detected as M-profile. Instead
6780 set gdbarch->tdep->is_m. Register `g' packet guesses.
6781 (_initialize_arm_tdep): Initialize the new target description.
6782 * features/arm-with-m-fpa-layout.xml: New description.
6783 * features/arm-with-m-fpa-layout.c: New, generated.
6784
35c63cd8
JB
67852012-03-15 Joel Brobecker <brobecker@adacore.com>
6786
6787 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6788 Update function description.
6789 (insert_bp_location): Do not wipe bl->target_info out.
6790 * mem-break.c: #include "gdb_string.h".
6791 (default_memory_insert_breakpoint): Do not call target_read_memory
6792 with a pointer to the breakpoint's shadow_contents buffer. Use
6793 a local buffer instead.
6794 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6795
57651221
TT
67962012-03-15 Tom Tromey <tromey@redhat.com>
6797
6798 * NEWS: Mention "info vtbl", not "info vtable".
6799 * cp-support.c (info_vtbl_command): Fix comment.
6800 (_initialize_cp_support): Fix text.
6801
410528f0
TT
68022012-03-15 Tom Tromey <tromey@redhat.com>
6803
6804 * cp-valprint.c (cp_print_value_fields): Use
6805 print_function_pointer_address for vtable slot.
6806
c4aeac85
TT
68072012-03-15 Tom Tromey <tromey@redhat.com>
6808
6809 * gnu-v3-abi.c (struct value_and_voffset): New.
6810 (hash_value_and_voffset, eq_value_and_voffset)
6811 (compare_value_and_voffset, compute_vtable_size)
6812 (print_one_vtable, gnuv3_print_vtable): New functions.
6813 (init_gnuv3_ops): Initialize 'print_vtable' field.
6814 * cp-support.c (info_vtbl_command): New function.
6815 (_initialize_cp_support): Add "info vtbl".
6816 * cp-abi.h (cplus_print_vtable): Declare.
6817 (struct cp_abi_ops) <print_vtable>: New field.
6818 * cp-abi.c (cplus_print_vtable): New function.
6819 * NEWS: Update.
6820
95cbceff
TT
68212012-03-15 Tom Tromey <tromey@redhat.com>
6822
6823 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6824 iterate_over_symbols.
6825
589b4a32
DE
68262012-03-14 Doug Evans <dje@google.com>
6827
6828 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6829 DW_OP_GNU_parameter_ref.
6830
e837f12a
JK
68312012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6832
6833 Fix double prompt of 'interpreter-exec mi'.
6834 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6835 (mi_interpreter_resume): use it.
6836 (mi_execute_command_input_handler): New function.
6837 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6838 mi_execute_command_input_handler.
6839
ff1e4526 68402012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
6841
6842 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6843 prototype.
6844 (darwin_debug_port_info): Make static.
6845 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6846 * machoread.c (_initialize_machoread): Add prototype.
6847 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6848 (i386_darwin_set_control, i386_darwin_get_control)
6849 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6850 i386_darwin_get_status, i386_darwin_get_control):
6851 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6852
d8a5d6ee
JB
68532012-03-13 Joel Brobecker <brobecker@adacore.com>
6854
6855 * ax-gdb.c (gen_usual_unary): Remove special handling of
6856 enum and bool types.
6857
af381b8c
JB
68582012-03-13 Joel Brobecker <brobecker@adacore.com>
6859
6860 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6861
786c562f
JB
68622012-03-13 Joel Brobecker <brobecker@adacore.com>
6863
6864 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6865
e3ebf1bb
JB
68662012-03-13 Chris January <chris.january@allinea.com>
6867
6868 * aix-thread.c (fill_sprs): Store the floating point registers
6869 at the correct offsets into vals.
6870
c5b7e1cb
DE
68712012-03-13 Doug Evans <dje@google.com>
6872
16899756
DE
6873 * NEWS: Mention symbol-reloading has been deleted.
6874 * symfile.c (symbol_reloading): Delete.
6875 (show_symbol_reloading): Delete.
6876 (_initialize_symfile): Delete set/show symbol-reloading.
6877
c5b7e1cb
DE
6878 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6879 read_in_chain until we have successfully read it in.
6880 (load_full_comp_unit): Ditto.
6881 (read_signatured_type): Add comment.
6882
46cb6474
JB
68832012-03-13 Chris January <chris.january@allinea.com>
6884
6885 * stabsread.c (fix_common_block): Change type of valu argument
6886 to CORE_ADDR.
6887
76219d77
JB
68882012-03-13 Chris January <chris.january@allinea.com>
6889
6890 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6891 instruction.
6892
87b0bb13
JK
68932012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 * common/linux-procfs.c (linux_proc_get_int): New, from
6896 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6897 field.
6898 (linux_proc_get_tgid): Only call linux_proc_get_int.
6899 (linux_proc_get_tracerpid): New.
6900 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6901 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6902 linux_proc_pid_has_state.
6903 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6904 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6905 (linux_ptrace_attach_warnings): New.
6906 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6907 New declaration.
6908 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6909 (linux_nat_attach): New variables ex, buffer, message and message_s.
6910 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6911
5f572dec
JK
69122012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6913
6914 * Makefile.in (linux-ptrace.o): New.
6915 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6916 from linux-nat.c.
6917 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6918 * common/linux-ptrace.c: New file.
6919 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6920 * config/arm/linux.mh: Likewise.
6921 * config/i386/linux.mh: Likewise.
6922 * config/i386/linux64.mh: Likewise.
6923 * config/ia64/linux.mh: Likewise.
6924 * config/m32r/linux.mh: Likewise.
6925 * config/m68k/linux.mh: Likewise.
6926 * config/mips/linux.mh: Likewise.
6927 * config/pa/linux.mh: Likewise.
6928 * config/powerpc/linux.mh: Likewise.
6929 * config/powerpc/ppc64-linux.mh: Likewise.
6930 * config/powerpc/spu-linux.mh: Likewise.
6931 * config/s390/s390.mh: Likewise.
6932 * config/sparc/linux.mh: Likewise.
6933 * config/sparc/linux64.mh: Likewise.
6934 * config/xtensa/linux.mh: Likewise.
6935 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6936 common/linux-procfs.c.
6937 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6938
44f238bb
PA
69392012-03-13 Hui Zhu <teawater@gmail.com>
6940 Pedro Alves <palves@redhat.com>
6941
6942 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6943 CREATE_BREAKPOINT_FLAGS_INSERTED.
6944 (create_breakpoint_sal, create_breakpoints_sal)
6945 (base_breakpoint_create_breakpoints_sal)
6946 (tracepoint_create_breakpoints_sal)
6947 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6948 down.
6949 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6950 (ftrace_command, strace_command): Adjust.
6951 (create_tracepoint_from_upload): Pass
6952 CREATE_BREAKPOINT_FLAGS_INSERTED.
6953 * breakpoint.h (enum breakpoint_create_flags): New.
6954 (create_breakpoint): New flags parameter.
6955 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6956 * python/py-breakpoint.c (bppy_init): Adjust.
6957 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6958 * spu-tdep.c (spu_catch_start): Adjust.
6959
1e51243a
PA
69602012-03-13 Pedro Alves <palves@redhat.com>
6961 Hui Zhu <teawater@gmail.com>
6962 Yao Qi <yao@codesourcery.com>
6963
6964 * remote.c (struct remote_state): New field `starting_up'.
6965 (remote_start_remote): Set and clear it.
6966 (remote_can_download_tracepoint): If starting up, return false.
6967
fa3064dd
YQ
69682012-03-13 Yao Qi <yao@codesourcery.com>
6969
6970 * inferior.h (struct inferior): Remove fields any_syscall_count,
6971 syscalls_counts and total_syscalls_count. Move them to new
6972 struct catch_syscall_inferior_data in breakpoint.c.
6973 * breakpoint.c: Call DEF_VEC_I(int).
6974 (struct catch_syscall_inferior_data): New.
6975 (get_catch_syscall_inferior_data): New.
6976 (catch_syscall_inferior_data_cleanup): New.
6977 (insert_catch_syscall): Update to access data in
6978 struct catch_syscall_inferior_data.
6979 (insert_catch_syscall): Likewise.
6980 (remove_catch_syscall): Likewise.
6981 (remove_catch_syscall): Likewise.
6982 (is_syscall_catchpoint_enabled): Likewise.
6983 (add_catch_command): Likewise.
6984 (_initialize_breakpoint): Register cleanup.
6985 * breakpoint.h: Removed DEF_VEC_I(int).
6986 * dwarf2loc.c: Call DEF_VEC_I(int).
6987 * mi/mi-main.c: Likewise.
6988
460fac3c
MK
69892012-03-12 Mark Kettenis <kettenis@gnu.org>
6990
6991 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6992
e1aca11e
JB
69932012-03-12 Chris January <chris.january@allinea.com>
6994
6995 * aix-thread.c (_initialize_aix_thread): Add prototype.
6996 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6997 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6998
649c7061
JB
69992012-03-12 Joel Brobecker <brobecker@adacore.com>
7000
7001 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7002 include of "amd64-nat.h".
7003
0b49e518
TT
70042012-03-12 Tom Tromey <tromey@redhat.com>
7005
7006 * buildsym.c (record_pending_block): Now static.
7007 * buildsym.h: (record_pending_block): Remove.
7008
fd24fa94
AT
70092012-03-12 Andreas Tobler <andreast@fgznet.ch>
7010
7011 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7012
ba919b58
TT
70132012-03-09 Tom Tromey <tromey@redhat.com>
7014
7015 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7016 producer_is_gxx_lt_4_6>: New fields.
7017 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7018
a48e046c
TT
70192012-03-09 Tom Tromey <tromey@redhat.com>
7020
7021 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7022
6f5e9362
JB
70232012-03-08 Joel Brobecker <brobecker@adacore.com>
7024
7025 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7026 prototype.
7027
8d037db9
JB
70282012-03-08 Joel Brobecker <brobecker@adacore.com>
7029
7030 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7031
4e841acf
JK
70322012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7033
7034 Fix -Wmissing-prototypes build.
7035 * arm-linux-nat.c (get_thread_id): Make it static.
7036 * xtensa-linux-nat.c (get_thread_id): Likewise.
7037
c6030312
JB
70382012-03-08 Joel Brobecker <brobecker@adacore.com>
7039
7040 * server.c (process_point_options): If a conditional expression
7041 is found, only print a message if remote_debug is nonzero.
7042
52323be9
LM
70432012-03-08 Luis Machado <lgustavo@codesourcery.com>
7044
7045 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7046 of internal error for unknown/unsupported types.
7047
7fe25d9b
JK
70482012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7049
7050 Fix CU relative vs. absolute DIE offsets.
7051 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7052 offset to offset_in_cu.
7053 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7054 TYPE_OFFSET.
7055 (dwarf2_fetch_die_location_block): Rename parameter offset to
7056 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7057
05e7c244
JK
70582012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7059
7060 * libunwind-frame.c: Rename to ...
7061 * ia64-libunwind-tdep.c: ... here.
7062 * libunwind-frame.h: Rename to ...
7063 * ia64-libunwind-tdep.h: ... here.
7064 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7065 ia64-libunwind-tdep.h.
7066 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7067 * README (--with-libunwind): Rename to ...
7068 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7069 * config.in: Regenerate.
7070 * configure: Regenerate.
7071 * configure.ac: New option --with-libunwind-ia64, make the
7072 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7073 Remove AC_DEFINE for HAVE_LIBUNWIND.
7074 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7075 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7076 Rename libunwind-frame in the general comment.
7077 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7078 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7079 Move forward declarations inside #ifndef. Rename libunwind-frame in
7080 the general comment.
7081 * ia64-tdep.c: Rename libunwind-frame.h #include to
7082 ia64-libunwind-tdep.h.
7083 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7084 (ia64_libunwind_descr): Rename libunwind-frame to
7085 ia64-libunwind-tdep in these function comments.
7086 * ia64-tdep.h: Rename libunwind-frame.h #include to
7087 ia64-libunwind-tdep.h.
7088 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7089 ia64-libunwind-tdep in that data comment.
7090
3755cbfd
JK
70912012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7092
7093 * libunwind-frame.h (struct frame_unwind): New declaration.
7094
d1cda5d9
JB
70952012-03-08 Joel Brobecker <brobecker@adacore.com>
7096
7097 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7098 "set breakpoint condition-evaluation" command.
7099
a0ba0aa2
TG
71002012-03-08 Tristan Gingold <gingold@adacore.com>
7101
7102 * sparc-stub.c: Move to stubs/
7103 * sh-stub.c: Likewise.
7104 * m68k-stub.c: Likewise.
7105 * m32r-stub.c: Likewise.
7106 * i386-stub.c: Likewise.
7107
7b8b6d6d
AS
71082012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7109
007cafee
AS
7110 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7111 linux_get_siginfo_type.
7112
7b8b6d6d
AS
7113 * m68klinux-nat.c: Include "gdb_proc_service.h".
7114 (PTRACE_GET_THREAD_AREA): Define.
7115 (ps_get_thread_area): New function.
7116
bba74b36
YQ
71172012-03-08 Yao Qi <yao@codesourcery.com>
7118
7119 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7120 `xsnprintf'.
7121 (remote_query_attached): Likewise.
7122 (remote_static_tracepoint_marker_at): Likewise.
7123 (remote_set_permissions): Likewise.
7124 (remote_detach_1, extended_remote_attach_1): Likewise.
7125 (send_g_packet, remote_vkill): Likewise.
7126 (extended_remote_disable_randomization): Likewise.
7127 (remote_add_target_side_condition): Likewise.
7128 (remote_insert_breakpoint): Likewise.
7129 (remote_remove_breakpoint): Likewise.
7130 (remote_insert_watchpoint): Likewise.
7131 (remote_remove_watchpoint): Likewise.
7132 (remote_insert_hw_breakpoint): Likewise.
7133 (remote_insert_hw_breakpoint): Likewise.
7134 (remote_remove_hw_breakpoint): Likewise.
7135 (remote_download_command_source): Likewise.
7136 (remote_download_tracepoint): Likewise.
7137 (remote_download_trace_state_variable): Likewise.
7138 (remote_disable_tracepoint): Likewise.
7139 (remote_trace_set_readonly_regions): Likewise.
7140 (remote_get_tracepoint_status): Likewise.
7141 (remote_trace_find): Likewise.
7142 (remote_get_trace_state_variable_value): Likewise.
7143 (remote_set_disconnected_tracing): Likewise.
7144 (remote_set_circular_trace_buffer): Likewise.
7145 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7146 (remote_use_agent): Likewise.
7147 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7148 Update callers.
7149
9b224c5e
PA
71502012-03-07 Pedro Alves <palves@redhat.com>
7151
7152 * NEWS: Mention QProgramSignals.
7153 * inferior.h (update_signals_program_target): Declare.
7154 * infrun.c: (update_signals_program_target): New.
7155 (handle_command): Update the target of the new program signals
7156 array changes.
7157 * remote.c (PACKET_QProgramSignals): New enum.
7158 (last_program_signals_packet): New global.
7159 (remote_program_signals): New.
7160 (remote_start_remote): Update the target with the program signals
7161 list.
7162 (remote_protocol_features): Add entry for QPassSignals.
7163 (remote_open_1): Free anc clear last_program_signals_packet.
7164 (init_remote_ops): Install remote_program_signals.
7165 * target.c (update_current_target): Adjust.
7166 (target_program_signals): New.
7167 * target.h (struct target_ops) <to_program_signals>: New field.
7168 (target_program_signals): Declare.
7169
74c48cbb
PA
71702012-03-07 Pedro Alves <palves@redhat.com>
7171
7172 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7173 extensions.
7174
0c13fc49
AS
71752012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7176
7177 * m68klinux-nat.c (getregs_supplies): Make static.
7178 (getfpregs_supplies): Likewise.
7179 (have_ptrace_getregs): Likewise.
7180
1281d2a3
JB
71812012-03-06 Joel Brobecker <brobecker@adacore.com>
7182
7183 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7184 in call to get_die_type_at_offset.
7185
2b03b41d
SS
71862012-03-06 Stan Shebs <stan@codesourcery.com>
7187
7188 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7189 * mi/mi-cmd-disas.c: Ditto.
7190 * mi/mi-cmd-env.c: Ditto.
7191 * mi/mi-cmd-file.c: Ditto.
7192 * mi/mi-cmd-stack.c: Ditto.
7193 * mi/mi-cmd-target.c: Ditto.
7194 * mi/mi-cmd-var.c: Ditto.
7195 * mi/mi-cmds.c: Ditto.
7196 * mi/mi-cmds.h: Ditto.
7197 * mi/mi-console.c: Ditto.
7198 * mi/mi-getopt.c: Ditto.
7199 * mi/mi-getopt.h: Ditto.
7200 * mi/mi-interp.c: Ditto.
7201 * mi/mi-main.c: Ditto.
7202 * mi/mi-out.c: Ditto.
7203 * mi/mi-parse.c: Ditto.
7204 * mi/mi-parse.h: Ditto.
7205 * mi/mi-symbol-cmds.c: Ditto.
7206
7207 * mi/mi-getopt.h: Move mi_opt struct up.
7208 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7209 return.
7210 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7211
c988ad87
TT
72122012-03-06 Tom Tromey <tromey@redhat.com>
7213
7214 * proc-service.c (ps_pglobal_lookup): Set the current program
7215 space.
7216
1b7c1b10
PA
72172012-03-06 Pedro Alves <palves@redhat.com>
7218
7219 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7220
3c182069
JB
72212012-03-05 Joel Brobecker <brobecker@adacore.com>
7222
7223 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7224
2e794194
JK
72252012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7226
7227 Code cleanup.
7228 * common/linux-osdata.c (linux_common_core_of_thread): New function
7229 comment.
7230 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7231 call by linux_common_core_of_thread.
7232 (linux_nat_core_of_thread_1): Remove.
7233 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7234 * linux-thread-db.c: Include linux-osdata.h.
7235 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7236 linux_common_core_of_thread.
7237
9f9f1f31
TT
72382012-03-05 Tom Tromey <tromey@redhat.com>
7239
7240 * value.c (value_primitive_field): Don't fetch contents for
7241 non-virtual bases.
7242
b7b189f3
TT
72432012-03-05 Tom Tromey <tromey@redhat.com>
7244
7245 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7246
05b8a789 72472012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7248
5538f557
JB
7249 * s390-nat.c: Include "gregset.h".
7250
75528772
JK
72512012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7252
7253 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7254 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7255 (libunwind_load): New variable so_error, use it for dlerror. Try to
7256 load also LIBUNWIND_SO_7.
7257
275418ae
PA
72582012-03-05 Pedro Alves <palves@redhat.com>
7259
7260 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7261 is not NULL, and remove resulting dead code.
7262
5cbb9812
TS
72632012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7264
7265 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7266 prologue to sh_analyze_prologue.
7267 (sh_analyze_prologue): Make better use of such an upper limit, and
7268 generally be more cautious about accessing memory.
7269
541515ad
TT
72702012-03-05 Tom Tromey <tromey@redhat.com>
7271
7272 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7273 _initialize_ia64_hpux_tdep.
7274
b4d36fb8
PA
72752012-03-05 Pedro Alves <palves@redhat.com>
7276
24490249
PA
7277 PR gdb/13766
7278
b4d36fb8
PA
7279 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7280 the register state is clear, supply explicit zero, instead of
7281 marking the register unavailable.
7282
60c9a3c0
TG
72832012-03-05 Tristan Gingold <gingold@adacore.com>
7284
7285 * NEWS: Mention OpenVMS ia64 new target.
7286
696759ad
TG
72872012-03-05 Tristan Gingold <gingold@adacore.com>
7288
7289 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7290 (ia64_unw_accessors, ia64_unw_rse_accessors)
7291 (ia64_libunwind_descr): Declare.
7292 * ia64-vms-tdep.c: New file.
7293 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7294 (ia64_libunwind_descr): Make them public.
7295 * configure.tgt: Add ia64-*-*vms*.
7296 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7297 (ALLDEPFILES): Add ia64-vms-tdep.c
7298
34864976
TG
72992012-03-05 Tristan Gingold <gingold@adacore.com>
7300
169081d0
TG
7301 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7302 * remote.c (PACKET_qXfer_uib): New enum value.
7303 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7304 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7305 (_initialize_remote): Call add_packet_config_cmd for
7306 xfer:uib packet.
7307
73082012-03-05 Tristan Gingold <gingold@adacore.com>
7309
7310 * osabi.c (gdb_osabi_names): Add OpenVMS.
7311 (generic_elf_osabi_sniffer): Likewise.
7312 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7313
6597b100
JK
73142012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7315
7316 Removed unused code.
7317 * libunwind-frame.c (libunwind_frame_unwind)
7318 (libunwind_frame_base_address): Remove.
7319 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7320
87399aa1
YQ
73212012-03-04 Yao Qi <yao@codesourcery.com>
7322
7323 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7324 remove trailing new line.
7325 (agent_run_command, agent_run_command): Add _ markup.
7326 (agent_capability_check): Likewise.
7327
abf1152a
JK
73282012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7329
7330 * breakpoint.c (set_condition_evaluation_mode): Set
7331 CONDITION_EVALUATION_MODE unconditionally.
7332
5808517f
YQ
73332012-03-03 Yao Qi <yao@codesourcery.com>
7334
7335 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7336 * common/agent.h: Update declaration.
7337 * inf-child.c (inf_child_use_agent): New.
7338 (inf_child_can_use_agent): New.
7339 (inf_child_target): Initialize fields `to_use_agent'
7340 and `to_can_use_agent'.
7341 * agent.c (agent_new_objfile): New.
89b7509a 7342 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7343 observer.
7344
7345 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7346 New.
89b7509a 7347 (linux_target_install_ops): Initialize field
5808517f
YQ
7348 `to_static_tracepoint_markers_by_strid'.
7349 * remote.c (free_current_marker): Move it to ...
7350 * tracepoint.c (free_current_marker): ... here. New.
7351 (cleanup_target_stop): New.
7352 * tracepoint.h: Declare free_current_marker.
7353 * NEWS: Add one entry about `info static-tracepoint-marker'.
7354
58b4daa5
YQ
73552012-03-03 Yao Qi <yao@codesourcery.com>
7356
7357 * common/agent.c (agent_loaded_p): New.
89b7509a 7358 (agent_look_up_symbols): New global.
58b4daa5
YQ
7359 * common/agent.h: Declare agent_loaded_p.
7360
8ffcbaaf
YQ
73612012-03-03 Yao Qi <yao@codesourcery.com>
7362
7363 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7364 (agent_capability_check, agent_capability_invalidate): New.
7365 (symbol_list): New array element.
7366 * common/agent.h (enum agent_capa): New.
7367 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7368
d1feda86
YQ
73692012-03-03 Yao Qi <yao@codesourcery.com>
7370
7371 * target.h (struct target_ops) <to_use_agent>: New field.
7372 (struct target_ops) <to_can_use_agent>: New field.
7373 (target_use_agent, target_can_use_agent): New macro.
7374 * target.c (update_current_target): Update.
7375 * remote.c: New enum `PACKET_QAgent'.
7376 (remote_protocol_features): Add a new element.
7377 (remote_use_agent, remote_can_use_agent): New.
7378 (init_remote_ops): Initialize field `can_use_agent' with
7379 remote_can_use_agent. Intiailize field `use_agent' with
7380 remote_use_agent.
7381 * common/agent.c (use_agent): New global.
7382 * common/agent.h: Declare it.
7383 * tracepoint.c (info_static_tracepoint_markers_command): Add
7384 comment.
7385 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7386 (COMMON_OBS): Add common/agent.o and agent.o
7387 (common-agent.o): New rule.
7388 * agent.c: New.
7389
2fa291ac
YQ
73902012-03-03 Yao Qi <yao@codesourcery.com>
7391
7392 * common/agent.c: New.
7393 * common/agent.h: New.
7394 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7395 AC_CHECK_HEADERS.
7396 * configure, configh.in: Regenerated.
7397
9fc05685
KB
73982012-03-02 Kevin Buettner <kevinb@redhat.com>
7399
7400 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7401 unless it exists for this architecture.
7402
a5ee536b
JB
74032012-03-02 Joel Brobecker <brobecker@adacore.com>
7404
7405 * language.h (struct language_defn): New "method" la_read_var_value.
7406 * findvar.c: #include "language.h".
7407 (default_read_var_value): Renames read_var_value. Rewrite
7408 function description.
7409 (read_var_value): New function.
7410 * value.h (default_read_var_value): Add prototype.
7411 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7412 New functions.
7413 (ada_language_defn): Add entry for la_read_var_value.
7414 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7415 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7416 language_defn structures to add entry for new la_read_var_value
7417 field.
7418
f59f708a
PA
74192012-03-02 Tom Tromey <tromey@redhat.com>
7420 Pedro Alves <palves@redhat.com>
7421
7422 PR breakpoints/13776:
7423 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7424 breakpoints.
7425 (delete_longjmp_breakpoint_at_next_stop): New.
7426 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7427 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7428 before deleting the inferior. Add comments.
7429 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7430 breakpoints immediately, but only on next stop. Move that code
7431 next to where we mark other breakpoints for deletion.
7432
44099a67
JB
74332012-03-02 Joel Brobecker <brobecker@adacore.com>
7434
7435 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7436 marker.
7437 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7438 violation.
7439
2a2ef594
PA
74402012-03-02 Pedro Alves <palves@redhat.com>
7441
7442 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7443
b261e0c5
UW
74442012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7445
7446 Fix -Wmissing-prototypes build.
7447 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7448 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7449 (gdbsim_has_memory): Likewise.
7450
a95babbf
YQ
74512012-03-02 Yao Qi <yao@codesourcery.com>
7452
7453 Fix -Wmissing-prototypes build.
7454 * charset.c (phony_iconv_open): Make static.
7455 (phony_iconv_close, phony_iconv): Likewise.
7456 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7457 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7458 prototype.
7459 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7460 * ser-mingw.c (create_select_thread): Make static.
7461 * windows-termcap.c (tgetent): New prototype.
7462 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7463
d603d4b3
JK
74642012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7465
7466 Fix -Wmissing-prototypes build.
7467 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7468 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7469 (_initialize_loadable): New prototypes.
7470
7fb3ad1f
DE
74712012-03-02 Doug Evans <dje@google.com>
7472
7473 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7474 abbrev table, read_comp_unit will do it.
7475
693be288
JK
74762012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7477
7478 Fix -Wmissing-prototypes build.
7479 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7480 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7481 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7482 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7483 (_initialize_arm_symbian_tdep): New prototype.
7484 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7485 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7486 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7487 static.
7488 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7489 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7490 prototype.
7491 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7492 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7493 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7494 static.
7495 * moxie-tdep.c (moxie_process_record): Likewise.
7496 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7497 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7498 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7499 (_initialize_rl78_tdep): New prototype.
7500 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7501 (_initialize_rx_tdep): New prototype.
7502 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7503 (_initialize_darwin_solib): New prototype.
7504 * solib-spu.c: Include solib-spu.h.
7505 (_initialize_spu_solib): New prototype.
7506 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7507 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7508 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7509 (tic6x_software_single_step): Make it static.
7510 (_initialize_tic6x_tdep): New prototype.
7511
638234e5
JK
75122012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7513
7514 Fix -Wmissing-prototypes build.
7515 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7516 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7517
f4a6f16d
JK
75182012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7519
7520 Fix -Wmissing-prototypes build.
7521 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7522 (frv_have_stopped_data_address): Remove.
7523
04dcf5fa
JK
75242012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7525
7526 Fix -Wmissing-prototypes build.
7527 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7528 * sh-tdep.c: Include sh64-tdep.h.
7529 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7530 * sh64-tdep.c: Include sh64-tdep.h.
7531 * sh64-tdep.h: New file.
7532
19080931
MR
75332012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7534
7535 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7536
9aac7884
MR
75372012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7538
7539 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7540 sp_regnum once the gdbarch_init_osabi hook has been called.
7541
a385295e
MR
75422012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7543
7544 * mips-tdep.c (mips32_bc1_pc): New function.
7545 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7546 BPOSGE32 and BPOSGE64 instructions.
7547 (deal_with_atomic_sequence): Likewise.
7548 (mips32_instruction_has_delay_slot): Likewise.
7549
1faeff08 75502012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
7551 Chris Dearman <chris@mips.com>
7552 Maciej W. Rozycki <macro@codesourcery.com>
7553 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
7554
7555 * features/mips-dsp.xml: New file.
7556 * features/mips64-dsp.xml: New file.
7557 * features/mips-dsp-linux.xml: New file.
7558 * features/mips64-dsp-linux.xml: New file.
7559 * features/Makefile (WHICH): Add mips-dsp-linux and
7560 mips64-dsp-linux.
7561 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7562 * features/mips-dsp-linux.c: New file.
7563 * features/mips64-dsp-linux.c: New file.
7564 * regformats/mips-dsp-linux.dat: New file.
7565 * regformats/mips64-dsp-linux.dat: New file.
7566 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7567 registers.
7568 (mips64_linux_register_addr): Likewise.
7569 (mips64_linux_regsets_fetch_registers): Likewise.
7570 (mips64_linux_regsets_store_registers): Likewise.
7571 (mips64_linux_fetch_registers): Update call to
7572 mips64_linux_regsets_fetch_registers.
7573 (mips64_linux_store_registers): Update call to
7574 mips64_linux_regsets_store_registers.
7575 (mips_linux_read_description): Probe for DSP registers.
7576 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7577 and initialize_tdesc_mips64_dsp_linux.
7578 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7579 Remove padding of no longer used embedded register slots.
7580 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7581 (MIPS_RESTART_REGNUM): Redefine enum value.
7582 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7583 strings.
7584 (mips_tx39_reg_names): Likewise.
7585 (mips_linux_reg_names): New array of register names for Linux
7586 targets.
7587 (mips_register_name): Check for a null pointer in
7588 mips_processor_reg_names and return an empty string.
7589 (mips_register_type): Exclude embedded registers for the IRIX
7590 and Linux ABIs.
7591 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7592 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7593 DSP registers.
7594 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7595 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7596 (mips_gdbarch_init): Likewise. Initialize internal register
7597 indices for the Linux ABI. Use dynamic numbers to refer to
7598 registers, as applicable, while parsing the target description.
7599 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7600
263689d8
JB
76012012-03-01 Joel Brobecker <brobecker@adacore.com>
7602
7603 * frame.h (read_frame_register_unsigned): Fix typo in function
7604 description.
7605
f3b4f45c
PA
76062012-03-01 Pedro Alves <palves@redhat.com>
7607
7608 * jit-reader.in [!__cplusplus]
7609 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7610
b03a2011
PA
76112012-03-01 Pedro Alves <palves@redhat.com>
7612
7613 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7614 * configure: Regenerate.
7615
70221824
PA
76162012-03-01 Pedro Alves <palves@redhat.com>
7617
7618 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7619 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7620 (ftrace_command, strace_command): Make static.
7621 * d-lang.c (_initialize_d_language): Declare.
7622 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7623 * dwarf2loc.c (_initialize_dwarf2loc):
7624 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7625 * exec.c (exec_get_section_table): Make static.
7626 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7627 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7628 * inferior.c (remove_inferior_command, add_inferior_command)
7629 (clone_inferior_command): Make static.
7630 * linux-nat.c (linux_nat_thread_address_space)
7631 (linux_nat_core_of_thread): Make static.
7632 * linux-tdep.c (_initialize_linux_tdep): Declare.
7633 * objc-lang.c (_initialize_objc_lang): Declare.
7634 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7635 Make static.
7636 (_initialize_opencl_language): Declare.
7637 * record.c (_initialize_record): Declare.
7638 * remote.c (demand_private_info, remote_get_tib_address)
7639 (remote_supports_cond_tracepoints)
7640 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7641 Make static.
7642 * skip.c (_initialize_step_skip): Declare.
7643 * symtab.c (skip_prologue_using_lineinfo): Make static.
7644 * tracepoint.c (delete_trace_state_variable)
7645 (trace_variable_command, delete_trace_variable_command)
7646 (get_uploaded_tsv, find_matching_tracepoint_location)
7647 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7648 Make static.
7649 * value.c (pack_unsigned_long): Make static.
7650 * varobj.c (varobj_ensure_python_env): Make static.
7651 * windows-tdep.c (_initialize_windows_tdep): Declare.
7652 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7653
33fbcbee
PA
76542012-03-01 Pedro Alves <palves@redhat.com>
7655
7656 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7657 gdbarch parameter.
7658 (linux_init_abi): Install it as has_shared_address_space gdbarch
7659 callback.
7660
44d0cd3b
PA
76612012-03-01 Pedro Alves <palves@redhat.com>
7662
7663 * observer.c (observer_test_first_notification_function)
7664 (observer_test_second_notification_function)
7665 (observer_test_third_notification_function): Add declarations.
7666
ed01b82c
PA
76672012-03-01 Pedro Alves <palves@redhat.com>
7668
7669 * common/signals.c (default_target_signal_to_host)
7670 (default_target_signal_from_host): Move ...
7671 * arch-utils.c: ... here.
7672 * arch-utils.h (default_target_signal_to_host)
7673 (default_target_signal_from_host): Declare.
7674
7675 * common/signals.c (target_signal_from_command): Move ...
7676 * infrun.c: ... here.
7677 * inferior.h (target_signal_from_command): Declare.
7678 * target.h (target_signal_from_command)
7679 (default_target_signal_from_host, default_target_signal_to_host):
7680 Delete declarations.
7681
7682 * common/signals.c (_initialize_signals): Delete.
7683
c9b87335
PA
76842012-03-01 Pedro Alves <palves@redhat.com>
7685
7686 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7687 both __cplusplus and !__cplusplus.
7688
9340a6c0
PA
76892012-03-01 Pedro Alves <palves@redhat.com>
7690
7691 * psymtab.c (find_and_open_source): Delete declaration.
7692 * source.c (find_and_open_source): Move comment ...
7693 * source.h (find_and_open_source): ... to this new declaration.
7694
e451c4a1
PA
76952012-03-01 Pedro Alves <palves@redhat.com>
7696
7697 * inline-frame.c: Include inline-frame.h.
7698
983fb104
PA
76992012-03-01 Pedro Alves <palves@redhat.com>
7700
7701 * tui/tui-data.c (set_gen_win_origin): Delete.
7702 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7703 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7704
5fbce5df
PA
77052012-03-01 Pedro Alves <palves@redhat.com>
7706
7707 * remote.c (encode_actions): Delete declaration.
7708 * tracepoint.c (encode_actions): Make extern.
7709 * tracepoint.h (encode_actions): Declare.
7710
49a8461d
PA
77112012-03-01 Pedro Alves <palves@redhat.com>
7712
7713 * python/py-breakpoint.c: Include python.h.
7714 * python/py-continueevent.c (create_continue_event_object): Make
7715 static.
7716 * python/py-lazy-string.c (stpy_get_type): Make static.
7717 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7718 Make static.
7719 * python/py-utils.c (unicode_to_target_python_string): Make
7720 static.
7721 * python/py-value.c: Include python.h.
7722
9079102f
PA
77232012-03-01 Pedro Alves <palves@redhat.com>
7724
7725 * inferior.c (delete_threads_of_inferior): Delete.
7726
a298c5e8
PA
77272012-03-01 Pedro Alves <palves@redhat.com>
7728
7729 Import fallback definitions from glibc.
7730
7731 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7732 ps_prochandle): Forward declare.
7733 (ps_err_e): Use glibc's comments.
7734 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7735 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7736 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7737 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7738 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7739 (struct ps_prochandle): Adjust comment.
7740
e3084549
PA
77412012-03-01 Pedro Alves <palves@redhat.com>
7742
7743 * ada-lang.c (ada_modulus_from_name): Delete.
7744 * ada-lex.l (lexer_init): Make static.
7745
ad5f7d6e
PA
77462012-03-01 Pedro Alves <palves@redhat.com>
7747
7748 PR gdb/13767
7749
7750 * frame.c (read_frame_register_unsigned): New.
7751 * frame.h (read_frame_register_unsigned): Declare.
7752 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7753 Handle it.
7754 (print_i387_control_word): New parameter `control_p'. Handle it.
7755 (i387_print_float_info): Handle unavailable float registers.
7756
e0a4d108
KS
77572012-03-01 Keith Seitz <keiths@redhat.com>
7758
7759 * linespec.c (decode_line_2): Sort the list of methods
7760 alphabetically before presenting the user with a selection
7761 menu.
7762
122d1940
DE
77632012-03-01 Doug Evans <dje@google.com>
7764
7765 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7766 has_namespace_info.
7767 (dwarf2_read_abbrevs): Remove corresponding initialization.
7768
7d74f244
DE
77692012-03-01 Scott J. Goldman <scottjg@vmware.com>
7770
7771 * NEWS: Mention new python command class gdb.COMMAND_USER.
7772 * cli/cli-cmds.c (show_user): Print error when used on a python
7773 command.
7774 (init_cli_cmds): Update documentation strings for "show user" and
7775 "set/show max-user-call-depth" to clarify that it does not apply to
7776 python commands.
7777 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7778 error check.
7779 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7780 gdb python api.
7781 * top.c (execute_command): Only execute a user-defined command as a
7782 legacy macro if c->user_commands is set.
7783
e88acd96
TT
77842012-03-01 Tom Tromey <tromey@redhat.com>
7785
7786 * valprint.h (struct generic_val_print_decorations): New.
7787 (generic_val_print): Declare.
7788 * valprint.c (generic_val_print): New function.
7789 * p-valprint.c (p_decorations): New global.
7790 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7791 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7792 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7793 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7794 * m2-valprint.c (m2_decorations): New global.
7795 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7796 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7797 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7798 TYPE_CODE_ERROR>: Call generic_val_print.
7799 * f-valprint.c (f_decorations): New global.
7800 (f_val_print): Use print_function_pointer_address.
7801 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7802 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7803 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7804 generic_val_print.
7805 * c-valprint.c (c_decorations): New global.
7806 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7807 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7808 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7809 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7810 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7811 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7812 case.
7813
d3eab38a
TT
78142012-03-01 Tom Tromey <tromey@redhat.com>
7815
7816 * valprint.c (val_print): Update.
7817 * p-valprint (pascal_val_print): Return void.
7818 * p-lang.h (pascal_val_print): Return void.
7819 * m2-valprint.c (m2_val_print): Return void.
7820 * m2-lang.h (m2_val_print): Return void.
7821 * language.h (struct language_defn) <la_val_print>: Return void.
7822 * language.c (unk_lang_val_print): Return void.
7823 * jv-valprint.c (java_val_print): Return void.
7824 * jv-lang.h (java_val_print): Return void.
7825 * f-valprint.c (f_val_print): Return void.
7826 * f-lang.h (f_val_print): Return void.
7827 * d-valprint.c (d_val_print): Return void.
7828 (dynamic_array_type): Update.
7829 * d-lang.h (d_val_print): Return void.
7830 * c-valprint.c (c_val_print): Return void.
7831 * c-lang.h (c_val_print): Return void.
7832 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7833 void.
7834 * ada-lang.h (ada_val_print): Return void.
7835
35c0084b
TT
78362012-03-01 Tom Tromey <tromey@redhat.com>
7837
7838 * value.h (val_print): Return void.
7839 * valprint.c (val_print): Return void.
7840
a1f5dd1b
TT
78412012-03-01 Tom Tromey <tromey@redhat.com>
7842
7843 * value.h (common_val_print): Return void.
7844 * valprint.c (common_val_print): Return void.
7845
8e069a98
TT
78462012-03-01 Tom Tromey <tromey@redhat.com>
7847
7848 * value.h (value_print): Return void.
7849 * valprint.c (value_print): Return void.
7850 * p-valprint.c (pascal_value_print): Return void.
7851 * p-lang.h (pascal_value_print): Return void.
7852 * language.h (struct language_defn) <la_value_print>: Return
7853 void.
7854 * language.c (unk_lang_value_print): Return void.
7855 * jv-valprint.c (java_value_print): Return void.
7856 * jv-lang.h (java_value_print): Return void.
7857 * f-valprint.c (c_value_print): Don't declare.
7858 Include c-lang.h.
7859 * c-valprint.c (c_value_print): Return void.
7860 * c-lang.h (c_value_print): Return void.
7861 * ada-valprint.c (ada_value_print): Return void.
7862 * ada-lang.h (ada_value_print): Return void.
7863
be335936
TT
78642012-03-01 Tom Tromey <tromey@redhat.com>
7865
7866 * value.c (value_primitive_field): Handle virtual base classes.
7867
b0db66a7
TT
78682012-03-01 Tom Tromey <tromey@redhat.com>
7869
7870 * gdbtypes.h (struct vbase): Remove.
7871
132c57b4
TT
78722012-03-01 Tom Tromey <tromey@redhat.com>
7873
7874 * c-valprint.c (print_function_pointer_address): Move...
7875 * valprint.c: ... here. Make non-static.
7876 * m2-valprint.c (print_function_pointer_address): Remove.
7877 * valprint.h (print_function_pointer_address): Declare.
7878
e41eec66
JB
78792012-03-01 Joel Brobecker <brobecker@adacore.com>
7880
7881 * NEWS: Document the fact that one can provide a condition when
7882 creating an Ada exception catchpoint.
7883
19c37f24
TT
78842012-03-01 Tom Tromey <tromey@redhat.com>
7885
7886 * valprint.c (val_print_type_code_flags): Fix placement of
7887 trailing brace.
7888
f0fed3a3
JB
78892012-03-01 Joel Brobecker <brobecker@adacore.com>
7890
7891 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7892 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7893 environment variable before calling update-copyright.
7894
8ba85d85
JB
78952012-03-01 Joel Brobecker <brobecker@adacore.com>
7896
7897 * gnulib/extra/update-copyright: Update to the latest from
7898 gnulib's git repository.
7899 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7900 variable to 2 instead of 1.
7901
8219b1e8
JB
79022012-02-29 Joel Brobecker <brobecker@adacore.com>
7903
7904 * varobj.c (c_value_of_variable): Remove dead code.
7905
718cb7da
JB
79062012-02-29 Joel Brobecker <brobecker@adacore.com>
7907
7908 * ada-lex.p (processId): Do not modify already encoded IDs.
7909 Update function documentation.
7910
739593e0
JB
79112012-02-29 Joel Brobecker <brobecker@adacore.com>
7912
7913 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7914 "name" with "struct symbol *name_sym".
7915 * ada-exp.y (write_var_or_type): Update call to
7916 ada_find_renaming_symbol.
7917 "name" with "struct symbol *name_sym". Adjust Implementation
7918 accordingly. Adjust the function documentation.
7919
852dff6c
JB
79202012-02-29 Joel Brobecker <brobecker@adacore.com>
7921
7922 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7923 * ada-lang.c (ada_find_any_type): Add advance declaration.
7924 Make static. Replace ada_find_any_symbol by
7925 ada_find_any_type_symbol.
7926 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7927 Improve function description. Make static.
7928 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7929 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7930
1b611343
JB
79312012-02-29 Joel Brobecker <brobecker@adacore.com>
7932
7933 * ada-lang.c (struct tag_args): Delete.
7934 (ada_get_tsd_type): Function body moved up in source file.
7935 (ada_tag_name_1, ada_tag_name_2): Delete.
7936 (ada_get_tsd_from_tag): New function.
7937 (ada_tag_name_from_tsd): New function.
7938 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7939 to determine the tag name.
7940
41246937
JB
79412012-02-29 Joel Brobecker <brobecker@adacore.com>
7942
7943 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7944 declaration.
7945 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7946 function.
7947
ffde82bf
JB
79482012-02-29 Joel Brobecker <brobecker@adacore.com>
7949
7950 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7951
2ad01556
JB
79522012-02-29 Joel Brobecker <brobecker@adacore.com>
7953
7954 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7955 full searches.
7956
99b1c762
JB
79572012-02-29 Joel Brobecker <brobecker@adacore.com>
7958
7959 * ada-lang.c (constrained_packed_array_type): If there is a
7960 parallel XA type, use it to determine the array index type.
7961
2d4a02ee
JB
79622012-02-29 Joel Brobecker <brobecker@adacore.com>
7963
7964 * ada-valprint.c (ada_val_print_1): If our value is a reference
7965 to an array descriptor, dereference it before converting it
7966 to a simple array.
7967
c48db5ca
JB
79682012-02-29 Joel Brobecker <brobecker@adacore.com>
7969
7970 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7971 creating fixed value.
7972 (ada_value_ind, ada_coerce_ref, assign_component)
7973 (ada_evaluate_subexp): Remove call to unwrap_value before
7974 call to ada_to_fixed_value.
7975
2e6fda7d
JB
79762012-02-29 Joel Brobecker <brobecker@adacore.com>
7977
7978 * ada-lang.c (to_fixed_array_type): Set result's type name.
7979
5845583d
JB
79802012-02-29 Joel Brobecker <brobecker@adacore.com>
7981
7982 * ada-lang.c (catch_ada_exception_command_split): Add new
7983 argument cond_string. Add support for condition at end of
7984 "catch exception" commands.
7985 (ada_decode_exception_location): Add new argument cond_string.
7986 Update call to catch_ada_exception_command_split.
7987 (create_ada_exception_catchpoint): Add new argument cond_string.
7988 Set the breakpoint condition if needed.
7989 (catch_ada_exception_command): Update call to
7990 ada_decode_exception_location.
7991 (ada_decode_assert_location): Add function documentation.
7992 Add support for condition at end of "catch assert" command.
7993 (catch_assert_command): Update calls to ada_decode_assert_location
7994 and create_ada_exception_catchpoint.
7995
9a7f938f
JK
79962012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7997
7998 Fix disp-step-syscall.exp: fork: single step over fork.
7999 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8000 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8001 comment, change parameters gdbarch and ptid to regcache. Remove
8002 parameter regcache, initialize gdbarch from regcache here.
8003 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8004 New functions.
8005 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8006 instead.
8007 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8008 'syscall'. Make the 'int' check more strict.
8009
ffdf6de5
JK
80102012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8011
8012 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8013 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8014 (i386_linux_intx80_sysenter_syscall_record): ... here.
8015 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8016 Use the renamed function name.
8017
c70a6932
JK
80182012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8019
8020 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8021 * breakpoint.c (until_break_command): Likewise.
8022 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8023 * infcall.c (call_function_by_hand): Likewise.
8024 * infcmd.c (finish_forward): Likewise.
8025 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8026
05b8a789 80272012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8028
d4cd3da9
JB
8029 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8030 avoid variable assignments inside condition.
8031
6425366c
JK
80322012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8033
8034 Fix static analysis issue found by cppcheck.
8035 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8036 uninitialized BUF for size 2.
8037
c8cef75f 80382012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8039 Nathan Froyd <froydnj@codesourcery.com>
8040 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8041
8042 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8043 (mips16_instruction_has_delay_slot): Likewise.
8044 (mips_segment_boundary): Likewise.
8045 (mips_adjust_breakpoint_address): Likewise.
8046 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8047
473347ad 80482012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8049 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8050
8051 * infrun.c (handle_inferior_event): Don't proceed through
8052 shared library trampolines if stepping at the machine
8053 instruction level.
8054
cf233303
MR
80552012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8056
8057 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8058 too.
8059
cb2cf4ce
TS
80602012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8061
8062 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8063 (sh_stub_unwind_sniffer): New functions.
8064 (sh_stub_unwind): New variable.
8065 (sh_gdbarch_init): Wire everything.
8066
644cebc9
PA
80672012-02-27 Pedro Alves <palves@redhat.com>
8068
8069 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8070 (linux_nat_post_attach_wait): Adjust to use
8071 linux_proc_pid_is_stopped.
8072 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8073 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8074 based on pid_is_stopped from both linux-nat.c and
8075 gdbserver/linux-low.c, and renamed.
8076
283002cf
MR
80772012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8078
8079 * remote.c (remote_watchpoint_addr_within_range): New function.
8080 (init_remote_ops): Use it.
8081
9b3e86b1
MR
80822012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8083
8084 * target.h (target_watchpoint_addr_within_range): Document macro.
8085
e36930bb
PA
80862012-02-24 Pedro Alves <palves@redhat.com>
8087
8088 * stack.c (set_last_displayed_sal): Issue internal_error instead
8089 of warning, and issue it after clearing the last displayed sal.
8090
883bc8d1
PA
80912012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8092 Pedro Alves <palves@redhat.com>
8093
8094 * breakpoint.c (until_break_command): Install breakpoints after
8095 all frame manipulations.
8096
b775012e
LM
80972012-02-24 Luis Machado <lgustavo@codesourcery.com>
8098
8099 * remote.c (remote_supports_cond_breakpoints): New forward
8100 declaration.
8101 (remote_add_target_side_condition): New function.
8102 (remote_insert_breakpoint): Add target-side breakpoint
8103 conditional if supported.
8104 (remote_insert_hw_breakpoint): Likewise.
8105 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8106 hook.
8107
8108 * target.c (update_current_target): Inherit
8109 to_supports_evaluation_of_breakpoint_conditions.
8110 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8111
8112 * target.h (struct target_ops)
8113 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8114 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8115
8116 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8117 (condition_evaluation_both, condition_evaluation_auto,
8118 condition_evaluation_host, condition_evaluation_target,
8119 condition_evaluation_enums, condition_evaluation_mode_1,
8120 condition_evaluation_mode): New static globals.
8121 (translate_condition_evaluation_mode): New function.
8122 (breakpoint_condition_evaluation_mode): New function.
8123 (gdb_evaluates_breakpoint_condition_p): New function.
8124 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8125 (mark_breakpoint_modified): New function.
8126 (mark_breakpoint_location_modified): New function.
8127 (set_condition_evaluation_mode): New function.
8128 (show_condition_evaluation_mode): New function.
8129 (bp_location_compare_addrs): New function.
8130 (get_first_location_gte_addr): New helper function.
8131 (set_breakpoint_condition): Free condition bytecode if locations
8132 has become unconditional. Call mark_breakpoint_modified (...).
8133 (condition_command): Call update_global_location_list (1) for
8134 breakpoints.
8135 (breakpoint_xfer_memory): Use is_breakpoint (...).
8136 (is_breakpoint): New function.
8137 (parse_cond_to_aexpr): New function.
8138 (build_target_condition_list): New function.
8139 (insert_bp_location): Handle target-side conditional
8140 breakpoints and call build_target_condition_list (...).
8141 (update_inserted_breakpoint_locations): New function.
8142 (insert_breakpoint_locations): Handle target-side conditional
8143 breakpoints.
8144 (bpstat_check_breakpoint_conditions): Add comment.
8145 (bp_condition_evaluator): New function.
8146 (bp_location_condition_evaluator): New function.
8147 (print_breakpoint_location): Print information on where the condition
8148 will be evaluated.
8149 (print_one_breakpoint_location): Likewise.
8150 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8151 breakpoint location.
8152 (force_breakpoint_reinsertion): New functions.
8153 (update_global_location_list): Handle target-side breakpoint
8154 conditions.
8155 Reinsert locations that are already inserted if conditions have
8156 changed.
8157 (bp_location_dtor): Free agent expression bytecode.
8158 (disable_breakpoint): Call mark_breakpoint_modified (...).
8159 Call update_global_location_list (...) with parameter 1 for breakpoints.
8160 (disable_command): Call mark_breakpoint_location_modified (...).
8161 Call update_global_location_list (...) with parameter 1 for breakpoints.
8162 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8163 (enable_command): mark_breakpoint_location_modified (...).
8164 (_initialize_breakpoint): Update documentation and add
8165 condition-evaluation breakpoint subcommand.
8166
8167 * breakpoint.h: Include ax.h.
8168 (condition_list): New data structure.
8169 (condition_status): New enum.
8170 (bp_target_info) <cond_list>: New field.
8171 (bp_location) <condition_changed, cond_bytecode>: New fields.
8172 (is_breakpoint): New prototype.
8173
3788aec7
LM
81742012-02-24 Luis Machado <lgustavo@codesourcery.com>
8175
8176 * remote.c (remote_state) <cond_breakpoints>: New field.
8177 (PACKET_ConditionalBreakpoints): New enum.
8178 (remote_cond_breakpoint_feature): New function.
8179 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8180 (remote_supports_cond_breakpoints): New function.
8181 (_initialize_remote): Add new packet configuration for
8182 target-side conditional breakpoints.
8183
72895ff6
LM
81842012-02-24 Luis Machado <lgustavo@codesourcery.com>
8185
8186 * NEWS: Mention target-side conditional breakpoint support,
8187 new condition-evaluation breakpoint subcommand and remote
8188 packet extensions.
8189
dea2aa5f
LM
81902012-02-24 Luis Machado <lgustavo@codesourcery.com>
8191
8192 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8193 number.
8194
8a8bc27f
TS
81952012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8196
8197 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8198 (after_prologue): Remove.
8199
6b446fdf
TT
82002012-02-23 Tom Tromey <tromey@redhat.com>
8201
8202 * jv-valprint.c (java_val_print): Remove dead code.
8203
ef59abfb
TG
82042012-02-23 Tristan Gingold <gingold@adacore.com>
8205
a09130f9
PA
8206 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8207 known_tasks_element and known_tasks_length fields.
8208 (read_known_tasks_array): Change argument type. Use pointer type
8209 and number of elements from DATA. Adjust.
8210 (read_known_tasks_list): Likewise.
8211 (get_known_tasks_addr): Remove.
8212 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8213 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8214 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8215
def166f6
JK
82162012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8217
8218 PR backtrace/13716
8219 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8220 it after set_momentary_breakpoint.
8221
aeaa2474
SA
82222012-02-22 Sterling Augustine <saugustine@google.com>
8223
8224 PR 13689:
8225 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8226
feea76c2
GB
82272012-02-22 Gary Benson <gbenson@redhat.com>
8228
8229 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8230 (find_slot_in_mapped_hash): Likewise.
8231
f06e05e0
JK
82322012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8233
8234 PR build/13638
8235 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8236 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8237 * configure: Regenerate.
8238
b54a8fd7
PA
82392012-02-21 Tristan Gingold <gingold@adacore.com>
8240 Pedro Alves <palves@redhat.com>
8241
8242 * ia64-tdep.c: Do not include libunwind-ia64.h.
8243 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8244 Include libunwind-ia64.h instead of libunwind.h.
8245 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8246 for libunwind.h existence.
8247 * configure, config.in: Regenerate.
8248
dfcee124
AG
82492012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8250
8251 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8252 instead of value_rtti_target_type.
8253 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8254 instead of value_rtti_target_type.
8255 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8256 value_rtti_target_type.
8257 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8258 (value_rtti_target_type): Rename to ...
8259 (value_rtti_indirect_type): ... here and make it indirect. Update
8260 function comment.
8261 * value.c (readjust_indirect_value_type): New function.
8262 (coerce_ref): Support for enclosing type setting for references
8263 with readjust_indirect_value_type.
8264 * value.h (readjust_value_type): New declaration.
8265 (value_rtti_target_type): Rename to ...
8266 (value_rtti_indirect_type): ... here.
8267
02568277
AG
82682012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8269
8270 * MAINTAINERS (Write After Approval): Add myself to the list.
8271
10c07b7e 82722012-02-20 Doug Evans <dje@google.com>
28ee876a 8273
d82ea6a8
DE
8274 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8275 Rename objfile_p_char parameter to objfilep.
8276 (build_objfile_section_table): Result is now void. All callers
8277 updated.
8278 * objfiles.h (struct objfile): Tweak comments, whitespace.
8279 (build_objfile_section_table): Update.
8280
28ee876a
DE
8281 * elfread.c (elf_symfile_segments): Fix warning text.
8282
24c79950
TT
82832012-02-20 Tom Tromey <tromey@redhat.com>
8284
8285 PR gdb/13498:
8286 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8287 particular set of file names once.
8288 (dw2_map_symbol_filenames): Likewise.
8289
3a9b40b6
JK
82902012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8291
8292 Code cleanup.
8293 * main.c (write_files): Remove the declaration.
8294 (external_editor_command): Move the declaration ...
8295 [GDBTK] (external_editor_command): ... here. Fix the comment.
8296
4d0795ca
TT
82972012-02-20 Tom Tromey <tromey@redhat.com>
8298
8299 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8300 extraneous block.
8301
637fd620
TG
83022012-02-20 Tristan Gingold <gingold@adacore.com>
8303
8304 * darwin-nat.h (enum darwin_msg_state): Add comments.
8305
6f124894
TG
83062012-02-20 Tristan Gingold <gingold@adacore.com>
8307
8308 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8309 value.
8310
2e6e3d9c
JB
83112012-20-18 Joel Brobecker <brobecker@adacore.com>
8312
8313 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8314 between function description and implementation.
8315
2e8265fd
TT
83162012-02-17 Tom Tromey <tromey@redhat.com>
8317
8318 PR python/12070:
8319 * python/py-event.c (event_object_getset): New global.
8320 (event_object_type): Reference it.
8321 * python/py-type.c (field_object_getset): New global.
8322 (field_object_type): Reference it.
8323 * python/python-internal.h (gdb_py_generic_dict): Declare.
8324 * python/py-utils.c (gdb_py_generic_dict): New function.
8325
8544a150 83262012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8327
8544a150 8328 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8329
ca193e27
TS
83302012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8331
8332 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8333 TYPE_CALLING_CONVENTION annotation.
8334
e5586183
KB
83352012-02-16 Kevin Buettner <kevinb@redhat.com>
8336
8337 * MAINTAINERS: Add rx to target ISA section.
8338 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8339 (ALLDEPFILES): Add rx-tdep.c.
8340
7dcd53a0
TT
83412012-02-16 Tom Tromey <tromey@redhat.com>
8342
8343 * symfile.c (symbol_file_add_main_1): Use inferior's
8344 symfile_flags.
8345 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8346 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8347 inferior.
8348 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8349 inferior.
8350 (follow_exec): Use inferior's symfile_flags.
8351 * inferior.h (struct inferior) <symfile_flags>: New field.
8352
ddd60447
MF
83532012-02-16 Mike Frysinger <vapier@gentoo.org>
8354
8355 PR gdb/9734:
8356 * remote-sim.c (gdbsim_create_inferior): Call error() when
8357 sim_create_inferior() fails.
8358
b0d32fb6
TG
83592012-02-16 Josh Matthews <josh@joshmatthews.net>
8360
8361 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8362
9addecb9
TT
83632012-02-16 Tom Tromey <tromey@redhat.com>
8364
8365 PR c++/13653:
8366 * thread.c (struct current_thread_cleanup) <was_removable>: New
8367 field.
8368 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8369 (make_cleanup_restore_current_thread): Initialize new field.
8370
a58b110a
KB
83712012-02-15 Kevin Buettner <kevinb@redhat.com>
8372
8373 * MAINTAINERS: Add rl78 to target ISA section.
8374 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8375 (ALLDEPFILES): Add rl78-tdep.c.
8376 * NEWS: Mention rl78 as a new target.
8377
4cb6da1c
AR
83782012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8379
8380 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8381 data.
8382 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8383
3af2590d
TT
83842012-02-15 Tom Tromey <tromey@redhat.com>
8385
8386 PR gdb/12659:
8387 * infcmd.c (registers_info): Print just the current register's
8388 name.
8389
c6910659
TT
83902012-02-15 Tom Tromey <tromey@redhat.com>
8391
8392 * python/py-symbol.c (sympy_value): Use _().
8393
7cee1e54
PA
83942012-02-15 Pedro Alves <palves@redhat.com>
8395
8396 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8397 output to be like native targets'.
8398 (remote_pid_to_str): Special case the null ptid.
8399
816338b5
SS
84002012-02-14 Stan Shebs <stan@codesourcery.com>
8401
8402 * NEWS: Mention enable count command.
8403 * breakpoint.h (struct breakpoint): New field enable_count.
8404 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8405 (enable_breakpoint): Add arg to call.
8406 (struct disp_data): New struct.
8407 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8408 (do_map_enable_once_breakpoint): Create a struct and pass it.
8409 (do_map_enable_delete_breakpoint): Ditto.
8410 (do_map_enable_count_breakpoint): New function.
8411 (enable_count_command): New function.
8412 (bpstat_stop_status): Decrement enable_count.
8413 (print_one_breakpoint_location): Report enable count.
8414 (_initialize_breakpoint): Add enable count command.
8415
c47a44f4
KB
84162012-02-14 Kevin Buettner <kevinb@redhat.com>
8417
8418 * rl78-tdep.c (reggroups.h): Include.
8419 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8420 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8421 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8422 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8423 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8424 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8425 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8426 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8427 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8428 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8429 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8430 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8431 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8432 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8433 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8434 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8435 beginning of register list.
8436 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8437 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8438 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8439 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8440 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8441 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8442 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8443 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8444 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8445 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8446 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8447 the pseudo registers. Rearrange other pseudo registers too so
8448 that the bank registers appear at the end.
8449 (rl78_register_type): Account for the fact that the byte sized
8450 bank registers are now pseudo-registers.
8451 (rl78_register_name): Rearrange the register name array. Make
8452 initial set of raw banked registers inaccessible.
8453 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8454 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8455 case for copying bytes back and forth between raw and pseudo
8456 versions of the banked registers. Update other cases to reflect
8457 the changed names.
8458 (rl78_return_value): Update to account for changed names of
8459 raw registers.
8460 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8461 rl78_register_sim_regno().
8462
e4569f1e
KB
84632012-02-14 Kevin Buettner <kevinb@redhat.com>
8464
8465 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8466 the name parameter being passed to find_pc_partial_function().
8467
7a05aae7
JK
84682012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8469
8470 * MAINTAINERS: Step down from being ia64 target maintainer.
8471
11fde611
JK
84722012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8473
8474 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8475 compilation warning.
8476
57008375
JK
84772012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8478
8479 Fix crash on loaded shlibs without loaded exec_bfd.
8480 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8481 (set_section_command): Replace exec_bfd by p->bfd.
8482
ff3c9849
TT
84832012-02-10 Tom Tromey <tromey@redhat.com>
8484
8485 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8486 when we have a C++ qualified name.
8487
db2b9fdd
PA
84882012-02-10 Pedro Alves <palves@redhat.com>
8489
8490 * inferior.c (inferior_pid_to_str): New.
8491 (print_inferior, inferior_command): Use it.
8492
12cd34f3
PA
84932012-02-10 Pedro Alves <palves@redhat.com>
8494
8495 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8496 the test CFLAGS.
8497 * configure: Regenerate.
8498
e871429d
JK
84992012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8500
8501 * linespec.c (decode_line_internal): Fix comment correctness.
8502
1916efaf
PA
85032012-02-09 Valery Khromov <valery.khromov@gmail.com>
8504
8505 PR gdb/12953
8506 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8507 * amd64bsd-nat.c: Add support for debug registers (adapted from
8508 i386bsd-nat.c).
8509 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8510 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8511 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8512 (amd64bsd_dr_get_control): New functions.
8513 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8514 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8515 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8516 watchpoints initialization.
8517 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8518
f4859d94
JK
85192012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8520
8521 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8522 flds_bnds.fields.
8523 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8524
c56a97f9
JK
85252012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8526
8527 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8528
1a119f36
JB
85292012-02-08 Joel Brobecker <brobecker@adacore.com>
8530
8531 * language.h (symbol_name_cmp_ftype): Renames
8532 symbol_name_match_p_ftype.
8533 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8534 la_get_symbol_name_match_p.
8535 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8536 ada_get_symbol_name_match_p. Update comment.
8537 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8538 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8539 Renames symbol_name_match_p. Update field type.
8540 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8541 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8542 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8543 "la_get_symbol_name_cmp" in comments.
8544 * language.c: Likewise.
8545
c71bb1cf
RO
85462012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8547
8548 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8549 %eflags offset.
8550 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8551 (amd64_sol2_gregset32_reg_offs): Likewise.
8552
4b2d20a5
TG
85532012-02-08 Joel Brobecker <brobecker@adacore.com>
8554
8555 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8556 of the returned BFD is allocated by GDB.
8557
f0823d2c
TT
85582012-02-07 Tom Tromey <tromey@redhat.com>
8559
8560 PR python/12027:
8561 * python/python-internal.h (frame_object_type): Declare.
8562 * python/py-symbol.c (sympy_needs_frame): New function.
8563 (sympy_value): New function.
8564 (symbol_object_getset): Add "needs_frame".
8565 (symbol_object_methods): Add "value".
8566 * python/py-frame.c (frame_object_type): No longer static.
8567
64e7d9dd
TT
85682012-02-07 Tom Tromey <tromey@redhat.com>
8569
8570 PR python/13599:
8571 * python/py-symbol.c (sympy_line): New function.
8572 (symbol_object_getset): Add "line".
8573
1d6b2d2b
TT
85742012-02-07 Tom Tromey <tromey@redhat.com>
8575
8576 * charset.c (find_charset_names): Check 'in' against NULL.
8577
0d5cff50
DE
85782012-02-06 Doug Evans <dje@google.com>
8579
8580 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8581 and fields.name members from char * to const char *. All uses updated.
8582 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8583 from char * to const char *. All uses updated.
8584 (type_name_no_tag): Update.
8585 (lookup_unsigned_typename, lookup_signed_typename): Update.
8586 * gdbtypes.c (type_name_no_tag): Change result type
8587 from char * to const char *. All callers updated.
8588 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8589 name parameter from char * to const char *.
8590 * symtab.h (struct cplus_specific): Change type of demangled_name
8591 member from char * to const char *. All uses updated.
8592 (struct general_symbol_info): Change type of name and
8593 mangled_lang.demangled_name members from char * to const char *.
8594 All uses updated.
8595 (symbol_get_demangled_name, symbol_natural_name): Update.
8596 (symbol_demangled_name, symbol_search_name): Update.
8597 * symtab.c (symbol_get_demangled_name): Change result type
8598 from char * to const char *. All callers updated.
8599 (symbol_natural_name, symbol_demangled_name): Ditto.
8600 (symbol_search_name): Ditto.
8601 (completion_list_add_name): Change type of symname,sym_text,
8602 text,word parameters from char * to const char *.
8603 (completion_list_objc_symbol): Change type of sym_text,
8604 text,word parameters from char * to const char *.
8605 * ada-lang.c (find_struct_field): Change type of name parameter
8606 from char * to const char *.
8607 (encoded_ordered_before): Similarly for N0,N1 parameters.
8608 (old_renaming_is_invisible): Similarly for function_name parameter.
8609 (ada_type_name): Change result type from char * to const char *.
8610 All callers updated.
8611 * ada-lang.h (ada_type_name): Update.
8612 * buildsym.c (hashname): Change type of name parameter
8613 from char * to const char *.
8614 * buildsym.h (hashname): Update.
8615 * dbxread.c (end_psymtab): Change type of include_list parameter
8616 from char ** to const char **.
8617 * dwarf2read.c (determine_prefix): Change result type
8618 from char * to const char *. All callers updated.
8619 * f-lang.c (find_common_for_function): Change type of name, funcname
8620 parameters from char * to const char *.
8621 * f-lang.c (find_common_for_function): Update.
8622 * f-valprint.c (list_all_visible_commons): Change type of funcname
8623 parameters from char * to const char *.
8624 * gdbarch.sh (static_transform_name): Change type of name parameter
8625 and result from char * to const char *.
8626 * gdbarch.c: Regenerate.
8627 * gdbarch.h: Regenerate.
8628 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8629 of name parameter from char * to const char *.
8630 * jv-lang.c (java_primitive_type_from_name): Ditto.
8631 (java_demangled_signature_length): Similarly for signature parameter.
8632 (java_demangled_signature_copy): Ditto.
8633 (java_demangle_type_signature): Ditto.
8634 * jv-lang.h (java_primitive_type_from_name): Update.
8635 (java_demangle_type_signature): Update.
8636 * objc-lang.c (specialcmp): Change type of a,b parameters
8637 from char * to const char *.
8638 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8639 from char * to const char *. All callers updated.
8640 * p-lang.h (is_pascal_string_type): Update.
8641 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8642 of name parameter from char * to const char *.
8643 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8644 * utils.c (fprintf_symbol_filtered): Ditto.
8645 * defs.h (fprintf_symbol_filtered): Update.
8646 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8647 * stabsread.h (end_psymtab): Update.
8648 * stack.c (find_frame_funname): Change type of funname parameter
8649 from char ** to const char **.
8650 * stack.h (find_frame_funname): Update.
8651 * typeprint.c (type_print): Change type of varstring parameter
8652 from char * to const char *.
8653 * value.h (type_print): Update.
8654 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8655 from char * to const char *. All callers updated.
8656 (xcoff_end_psymtab): Change type of include_list parameter
8657 from char ** to const char **. All callers updated.
8658 (swap_sym): Similarly for name parameter. All callers updated.
8659 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8660 Use xstrdup.
8661 (process_coff_symbol): Use xstrdup.
8662 * stabsread.c (stabs_method_name_from_physname): Renamed from
8663 update_method_name_from_physname. Change result type from void
8664 to char *. All callers updated.
8665 (read_member_functions): In has_destructor case, store name in objfile
8666 obstack instead of malloc space. In !has_stub case, fix mem leak.
8667
5579a92e
TT
86682012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8669
8670 * configure: Rebuild.
8671 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8672 LDFLAGS.
8673
9058f767
KB
86742012-02-03 Kevin Buettner <kevinb@redhat.com>
8675
8676 * configure.tgt (rl78-*-elf): New target.
8677 * rl78-tdep.c: New file.
8678
5b37825d
PW
86792012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8680
8681 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8682 and continue the loop. Add QUIT statement.
8683
e009ee71
TT
86842012-02-03 Tom Tromey <tromey@redhat.com>
8685
8686 PR gdb/13596:
8687 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8688 bfd_lookup_symbol_from_symtab.
8689 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8690 gdb_bfd_lookup_symbol_from_symtab.
8691
f7e44f65
JB
86922012-02-03 Joel Brobecker <brobecker@adacore.com>
8693
8694 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8695 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8696 symbol. Add assertion that sym2 is never NULL.
8697
2c02bd72
DE
86982012-02-02 Doug Evans <dje@google.com>
8699
8700 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8701 "name" parameter to const char ** from char **. All callers updated.
8702 (find_pc_partial_function): Ditto.
8703 (cache_pc_function_name): Change type to const char * from char *.
8704 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8705 (find_pc_partial_function): Update.
8706 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8707 type of "name" parameter to const char * from char *.
8708 All uses updated.
8709 * arch-utils.c (generic_in_solib_return_trampoline): Change
8710 type of "name" parameter to const char * from char *.
8711 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8712 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8713 type of "name" parameter to const char * from char *.
8714 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8715 * gdbarch.c: Regenerate.
8716 * gdbarch.h: Regenerate.
8717 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8718 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8719 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8720 type of "name" parameter to const char * from char *.
8721 * skip.c (skip_function_pc): Ditto.
8722 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8723 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8724 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8725 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8726 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8727 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8728 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8729 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8730 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8731
e886a173
PA
87322012-02-02 Pedro Alves <palves@redhat.com>
8733
8734 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8735 the current inferior has no execution. Make sure the current
8736 remote process matches gdb's current inferior.
8737
c709a7c2
TT
87382012-02-02 Tom Tromey <tromey@redhat.com>
8739
8740 PR gdb/13405:
8741 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8742 read-only memory.
8743
f149aabd
TT
87442012-02-02 Tom Tromey <tromey@redhat.com>
8745
8746 PR gdb/9307:
8747 * symtab.c (lookup_language_this): Set block_found.
8748
03bef283
TT
87492012-02-01 Tom Tromey <tromey@redhat.com>
8750
8751 PR gdb/13431:
8752 * jit.c (struct jit_inferior_data): Rewrite.
8753 (struct jit_objfile_data): New.
8754 (get_jit_objfile_data): New function.
8755 (add_objfile_entry): Update.
8756 (jit_read_descriptor): Return int. Replace descriptor_addr
8757 argument with inf_data. Update. Don't call error.
8758 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8759 descriptor here.
8760 (jit_inferior_init): Don't look up descriptor. Don't call error.
8761 (jit_reset_inferior_data_and_breakpoints)
8762 (jit_inferior_created_observer): Remove.
8763 (jit_inferior_exit_hook): Update.
8764 (jit_executable_changed_observer): Remove.
8765 (jit_event_handler): Update.
8766 (free_objfile_data): Reset inferior data if needed.
8767 (_initialize_jit): Update.
8768
f0bbc364
TT
87692012-02-01 Tom Tromey <tromey@redhat.com>
8770
8771 * jit.c (bfd_open_from_target_memory): Move higher in file.
8772
47c1316c
TG
87732012-02-01 Tristan Gingold <gingold@adacore.com>
8774
8775 * libunwind-frame.c (libunwind_load): Display message if dlopen
8776 failed.
8777
8e704927
GB
87782012-02-01 Gary Benson <gbenson@redhat.com>
8779
09c7a31f 8780 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
8781 (iterate_over_symbols): Use the above.
8782 * symtab.c (iterate_over_symbols): Likewise.
8783 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8784 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8785 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8786 (iterate_name_matcher): Document return values.
8787 (collect_one_symbol): Likewise.
8788 (collect_function_symbols): Likewise.
8789 (collect_symbols): Likewise.
8790
d9680e73
TT
87912012-02-01 Tom Tromey <tromey@redhat.com>
8792
8793 * ada-lang.c (resolve_subexp): Update.
8794 (ada_lookup_symbol_list): Add 'full_search' argument.
8795 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8796 ada_lookup_symbol_list.
8797 (ada_lookup_encoded_symbol): Update.
8798 (get_var_value): Update.
8799 * ada-exp.y (block_lookup): Update.
8800 (write_var_or_type): Update.
8801 (write_name_assoc): Update.
8802 * ada-lang.h (ada_lookup_symbol_list): Update.
8803
72e1143f
TT
88042012-01-31 Tom Tromey <tromey@redhat.com>
8805
8806 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8807 comment.
8808
ab2d2ad3
DE
88092012-01-31 Doug Evans <dje@google.com>
8810
8811 * symtab.h: Remove outdated comment.
e9111bf7 8812 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 8813
bc884eba
JB
88142012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8815
8816 Fix build error in Darwin port.
8817 * i386-darwin-nat.c: Include i386-nat.h.
8818
8fc3fc34
TT
88192012-01-30 Tom Tromey <tromey@redhat.com>
8820
8821 PR breakpoints/13568:
8822 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8823 argument. Check for recursive includes.
8824 (dwarf_decode_macros): Create an include hash.
8825
5d853008
ME
88262012-01-30 Michael Eager <eager@eagercon.com>
8827
8828 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8829 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 8830 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
8831 (powerpc_linux_in_plt_stub): New function.
8832 (powerpc_linux_in_dynsym_resolve_code): New function.
8833 (ppc_skip_trampoline_code): New function.
8834 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8835 Use glibc_skip_solib_resolver.
8836
40478521
JK
88372012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8838
8839 Code cleanup: Make 1440 bytes of data segment read-only.
8840 * arch-utils.c (endian_enum): Make it const char *const [].
8841 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8842 Likewise.
8843 * breakpoint.c (always_inserted_enums): Likewise.
8844 * cli/cli-cmds.c (script_ext_enums): Likewise.
8845 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8846 enumlist parameter const char *const *.
8847 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8848 const char *const *.
8849 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8850 parameter const char *const *.
8851 * cris-tdep.c (cris_modes): Make it const char *const [].
8852 * filesystem.c (target_file_system_kinds): Likewise.
8853 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8854 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8855 (can_use_displaced_stepping_enum, scheduler_enums)
8856 (exec_direction_names): Likewise.
8857 * language.c (_initialize_language): Make the type_or_range_names and
8858 case_sensitive_names variables const char *const [].
8859 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8860 * python/python.c (python_excp_enums): Likewise.
8861 * remote.c (interrupt_sequence_modes): Likewise.
8862 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8863 * serial.c (logbase_enums): Likewise.
8864 * sh-tdep.c (sh_cc_enum): Likewise.
8865 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8866 Likewise.
8867 * symtab.c (multiple_symbols_modes): Likewise.
8868 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8869 Likewise.
8870 * utils.c (internal_problem_modes): Likewise.
8871
b3b8b934
JK
88722012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8873
8874 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8875 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8876 result.
8877
8c85a4e2
DE
88782012-01-27 Doug Evans <dje@google.com>
8879
8880 * configure.ac (with_python): Fix absolute path handling for win32.
8881 * configure: Regenerate.
8882
78d8b4d7
DE
88832012-01-26 Doug Evans <dje@google.com>
8884
eca864fe
DE
8885 * symtab.c: Whitespace cleanup, no code changes.
8886
7e082072
DE
8887 * symtab.c (lookup_symbol_in_language): Improve comment.
8888 (lookup_symbol_aux): Fix comment.
8889
7dc25483
DE
8890 * psymtab.c (add_psymbol_to_list): Result is now "void".
8891 * psympriv.h (add_psymbol_to_list): Update.
8892
78d8b4d7
DE
8893 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8894
4c63965b
JK
88952012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 Do not open script filenames twice.
8898 * cli/cli-cmds.c (source_script_from_stream): Pass to
8899 source_python_script also STREAM.
8900 * python/py-auto-load.c (source_section_scripts): Pass to
8901 source_python_script_for_objfile also STREAM.
8902 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8903 also INPUT.
8904 * python/python-internal.h (source_python_script_for_objfile): New
8905 parameter file, rename parameter file to filename.
8906 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8907 instead if !_WIN32. Update the function comment.
8908 (source_python_script, source_python_script_for_objfile)
8909 (source_python_script): New parameter file, rename parameter file to
8910 filename. Pass FILENAME to python_run_simple_file.
8911 * python/python.h (source_python_script): New parameter file, rename
8912 parameter file to filename.
8913
88f38a04
PA
89142012-01-26 Pedro Alves <palves@redhat.com>
8915
8916 * corelow.c (core_has_fake_pid): Delete.
8917 (core_close): Delete references to `core_has_fake_pid'.
8918 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8919 (core_open): Delete references to `core_has_fake_pid'.
8920 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8921 the removed global.
8922
e078317b
JB
89232012-01-26 Joel Brobecker <brobecker@adacore.com>
8924
8925 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8926 Remove language parameter from name_matcher. Adjust the comment.
8927 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8928 Remove language parameter.
8929 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8930 * linespec.c (iterate_name_matcher): Likewise.
8931 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8932 name_matcher. Adjust call accordingly.
8933 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8934 (maintenance_check_symtabs): Adjust type of parameter "fun".
8935 * psymtab.h (maintenance_check_symtabs): Likewise.
8936
74ccd7f5
JB
89372012-01-26 Joel Brobecker <brobecker@adacore.com>
8938
8939 * language.h (symbol_name_match_p_ftype): New typedef.
8940 (struct language_defn): Replace field la_symbol_name_compare
8941 by la_get_symbol_name_match_p.
8942 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8943 (ada_language_defn): Use it.
8944 * linespec.c (struct symbol_matcher_data): New type.
8945 (iterate_name_matcher): Rewrite.
8946 (iterate_over_all_matching_symtabs): Pass a pointer to
8947 a symbol_matcher_data struct to expand_symtabs_matching
8948 instead of just the lookup name.
8949 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8950 opencl-lang.c, p-lang.c, language.c: Delete field
8951 la_symbol_name_compare, and replace by NULL for new field
8952 la_get_symbol_name_match_p.
8953 * symfile.h (struct quick_symbol_functions): Update comment.
8954
5d268276
TT
89552012-01-25 Tom Tromey <tromey@redhat.com>
8956
8957 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8958 dereferencing.
8959
edcc5120
TT
89602012-01-24 Tom Tromey <tromey@redhat.com>
8961
8962 PR symtab/12406:
8963 * solib.c (update_solib_list): Update the program space's
8964 added_solibs and deleted_solibs fields.
8965 * progspace.h (struct program_space) <added_solibs,
8966 deleted_solibs>: New fields.
8967 (clear_program_space_solib_cache): Declare.
8968 * progspace.c (release_program_space): Call
8969 clear_program_space_solib_cache.
8970 (clear_program_space_solib_cache): New function.
8971 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8972 bpstat_stop_status. Use handle_solib_event.
8973 * breakpoint.c: Include gdb_regex.h.
8974 (print_solib_event): New function.
8975 (bpstat_print): Use print_solib_event.
8976 (bpstat_stop_status): Add special case for bp_shlib_event.
8977 (handle_solib_event): New function.
8978 (bpstat_what): Use handle_solib_event.
8979 (struct solib_catchpoint): New.
8980 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8981 (breakpoint_hit_catch_solib, check_status_catch_solib)
8982 (print_it_catch_solib, print_one_catch_solib)
8983 (print_mention_catch_solib, print_recreate_catch_solib): New
8984 functions.
8985 (catch_solib_breakpoint_ops): New global.
8986 (catch_load_or_unload, catch_load_command_1)
8987 (catch_unload_command_1): New functions.
8988 (internal_bkpt_check_status): Add special case for
8989 bp_shlib_event.
8990 (internal_bkpt_print_it): Use print_solib_event.
8991 (initialize_breakpoint_ops): Initialize
8992 catch_solib_breakpoint_ops.
8993 (_initialize_breakpoint): Register "catch load" and "catch
8994 unload".
8995 * breakpoint.h (handle_solib_event): Declare.
8996 * NEWS: Add entry for "catch load" and "catch unload".
8997
fa864999
TT
89982012-01-24 Tom Tromey <tromey@redhat.com>
8999
9000 * ada-lang.c: Include gdb_vecs.h.
9001 * charset.c: Include gdb_vecs.h.
9002 * tracepoint.h: Include gdb_vecs.h.
9003 * gdb_vecs.h: New file.
9004
f90263c1
TT
90052012-01-24 Pedro Alves <pedro@codesourcery.com>
9006
9007 * breakpoint.c (breakpoint_hit_catch_fork)
9008 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9009 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9010 * infrun.c (inferior_has_forked, inferior_has_vforked)
9011 (inferior_has_execd, inferior_has_called_syscall): Delete.
9012 (handle_syscall_event): Get syscall_number from the execution
9013 control state's wait status.
9014 (wait_for_inferior): Don't clear syscall_number.
9015
09ac7c10
TT
90162012-01-24 Pedro Alves <palves@redhat.com>
9017
9018 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9019 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9020 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9021 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9022 `ws' parameter.
9023 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9024 false for events other than TARGET_SIGNAL_TRAP.
9025 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9026 Add `ws' parameter.
9027 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9028 events other than TARGET_SIGNAL_TRAP.
9029 (tracepoint_breakpoint_hit): Add `ws' parameter.
9030 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9031 parameter.
9032 (bpstat_stop_status): Same.
9033 (pc_at_non_inline_function): Same.
9034 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9035 to pass the current event's waitstatus to bpstat_stop_status
9036 and pc_at_non_inline_function.
9037
86eb7e95
JK
90382012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9039
9040 Code cleanup.
9041 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9042 Update the function comment for it.
9043 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9044 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9045 for STREAM.
9046
a9b3a50f
PA
90472012-01-24 Pedro Alves <palves@redhat.com>
9048
9049 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9050 outside `bs->stop' block.
9051 (bpstat_what): Rework bp_shlib_event handling.
9052 (internal_bkpt_check_status): If the breakpoint is a
9053 bp_shlib_event, then set bs->stop and bs->print if
9054 stop_on_solib_events is set.
9055
53fe1783
GB
90562012-01-24 Gary Benson <gbenson@redhat.com>
9057
9058 Delete #if 0'd out code.
9059 * stack.c (print_frame_label_vars): Remove.
9060 (catch_info): Likewise.
9061 (_initialize_stack): Remove "info catch" command.
9062 * NEWS: Mention the above.
9063
49c62f2e
PA
90642012-01-24 Pedro Alves <palves@redhat.com>
9065
9066 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9067 it.
9068 (remote_notice_new_inferior): If the remote end doesn't support
9069 the multiprocess extensions, then the PID is fake.
9070 (add_current_inferior_and_thread): New.
9071 (remote_start_remote): Use it.
9072 (extended_remote_attach_1): Adjust.
9073 (extended_remote_create_inferior_1): Use
9074 add_current_inferior_and_thread.
9075
d0d8b0c6
JK
90762012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9077
9078 Fix watchpoints to be specific for each inferior.
9079 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9080 current_program_space.
9081 * i386-nat.c (i386_inferior_data_cleanup): New.
9082 (i386_inferior_data_get): Replace variable inf_data_local by an
9083 inferior_data call.
9084 (i386_use_watchpoints): Initialize i386_inferior_data.
9085 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9086 specific iterate_over_lwps.
9087
4403d8e9
JK
90882012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9089
9090 Fix watchpoints across inferior fork.
9091 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9092 comment for linux_nat_iterate_watchpoint_lwps.
9093 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9094 linux_nat_iterate_watchpoint_lwps.
9095 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9096 * i386-linux-nat.c (update_debug_registers_callback): Update the
9097 comment for linux_nat_iterate_watchpoint_lwps.
9098 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9099 linux_nat_iterate_watchpoint_lwps.
9100 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9101 * i386-nat.c: Include inferior.h.
9102 (dr_mirror): Remove.
9103 (i386_inferior_data, struct i386_inferior_data)
9104 (i386_inferior_data_get): New.
9105 (i386_debug_reg_state): Use i386_inferior_data_get.
9106 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9107 (i386_insert_watchpoint, i386_remove_watchpoint)
9108 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9109 (i386_remove_hw_breakpoint): New variable state, use
9110 i386_debug_reg_state instead of DR_MIRROR.
9111 * linux-nat.c (delete_lwp): New declaration.
9112 (num_lwps): Move here from downwards.
9113 (delete_lwp_cleanup): New.
9114 (linux_child_follow_fork): Create new child_lp, call
9115 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9116 PTRACE_DETACH.
9117 (num_lwps): Move upwards.
9118 (linux_nat_iterate_watchpoint_lwps): New.
9119 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9120 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9121
2992c9a7 91222012-01-24 Joel Brobecker <brobecker@adacore.com>
9123
9124 GDB 7.4 released.
9125
e360902b
PA
91262012-01-23 Pedro Alves <palves@redhat.com>
9127
9128 * top.c (caution): Rename to ...
9129 (confirm): ... this.
9130 (show_caution): Rename to ...
9131 (show_confirm): ... this.
9132 (quit_cover): Adjust.
9133 (init_main): Adjust.
9134 * top.h (caution): Rename to ...
9135 (confirm): ... this.
9136 * utils.c (internal_vproblem, defaulted_query): Adjust.
9137
050a2e1d
PA
91382012-01-23 Pedro Alves <palves@redhat.com>
9139
9140 * top.c (caution): Update comment.
9141 (execute_command): Don't consider the current value of `caution'.
9142
77a35dd8
JK
91432012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9144
9145 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9146
a71b5a38
UW
91472012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9148
9149 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9150 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9151 * target.c (target_fileio_pwrite): Remove buffer address from
9152 debug output.
9153 (target_fileio_pread): Likewise.
9154
d99bd577
UW
91552012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9156
9157 * NEWS: Document remote "info proc" and "generate-core-file".
9158
35c2fab7
UW
91592012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9160
9161 * gdbarch.sh (find_memory_regions): New callback.
9162 * gdbarch.c, gdbarch.h: Regenerate.
9163
9164 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9165 callback before falling back to target method.
9166
9167 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9168 (linux_target_install_ops): No longer install it.
9169
9170 * linux-tdep.c (linux_find_memory_regions): New function.
9171 (linux_init_abi): Install it.
9172
6432734d
UW
91732012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9174
9175 * gdbarch.sh (make_corefile_notes): New architecture callback.
9176 * gdbarch.c: Regenerate.
9177 * gdbarch.h: Likewise.
9178
9179 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9180 before target_make_corefile_notes. If NULL is returned, the
9181 target does not support core file generation.
9182
9183 * linux-nat.c: Include "linux-tdep.h".
9184 (find_signalled_thread, find_stop_signal): Remove.
9185 (linux_nat_do_thread_registers): Likewise.
9186 (struct linux_nat_corefile_thread_data): Likewise.
9187 (linux_nat_corefile_thread_callback): Likewise.
9188 (iterate_over_spus): Likewise.
9189 (struct linux_spu_corefile_data): Likewise.
9190 (linux_spu_corefile_callback): Likewise.
9191 (linux_spu_make_corefile_notes): Likewise.
9192 (linux_nat_collect_thread_registers): New function.
9193 (linux_nat_make_corefile_notes): Replace contents by call to
9194 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9195 as native-only callback.
9196
9197 * linux-tdep.h: Include "bfd.h".
9198 (struct regcache): Add forward declaration.
9199 (linux_collect_thread_registers_ftype): New typedef.
9200 (linux_make_corefile_notes): Add prototype.
9201 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9202 "regset.h", and "elf-bfd.h".
9203 (find_signalled_thread, find_stop_signal): New functions.
9204 (linux_spu_make_corefile_notes): Likewise.
9205 (linux_collect_thread_registers): Likewise.
9206 (struct linux_corefile_thread_data): New data structure.
9207 (linux_corefile_thread_callback): New funcion.
9208 (linux_make_corefile_notes): Likewise.
9209 (linux_make_corefile_notes_1): Likewise.
9210 (linux_init_abi): Install it.
9211
3030c96e
UW
92122012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9213
9214 * gdbarch.sh (info_proc): New callback.
9215 * gdbarch.c, gdbarch.h: Regenerate.
9216
9217 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9218 before falling back to the target info_proc callback.
9219
9220 * linux-nat.c: Do not include "cli/cli-utils.h".
9221 (linux_nat_info_proc): Remove.
9222 (linux_target_install_ops): No longer install it.
9223
9224 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9225 (read_mapping): New function.
9226 (linux_info_proc): Likewise.
9227 (linux_init_abi): Install it.
9228
145b16a9
UW
92292012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9230
9231 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9232 * infcmd.c: (info_proc_cmd_1): New function.
9233 (info_proc_cmd): New function, moved here from equivalent routine
9234 orignally in linux-nat.c.
9235 (info_proc_cmd_mappings): Likewise.
9236 (info_proc_cmd_stat): Likewise.
9237 (info_proc_cmd_status): Likewise.
9238 (info_proc_cmd_cwd): Likewise.
9239 (info_proc_cmd_cmdline): Likewise.
9240 (info_proc_cmd_exe): Likewise.
9241 (info_proc_cmd_all): Likewise.
9242 (_initialize_infcmd): Install "info proc" command and subcommands.
9243
9244 * target.h (struct target_ops): Add to_info_proc.
9245 (target_info_proc): Add prototype.
9246 * target.c (target_info_proc): New function.
9247
9248 * procfs.c (procfs_info_proc): Add prototype.
9249 (info_proc_cmd): Rename into ...
9250 (procfs_info_proc): ... this. Update argument types as appropriate
9251 for a to_info_proc implementation. Handle "what" argument.
9252 (procfs_target): Install procfs_info_proc.
9253 (_initialize_procfs): No longer install "info proc" command.
9254
9255 * linux-nat.c: (enum info_proc_what): Remove.
9256 (linux_nat_info_proc_cmd_1): Rename into ...
9257 (linux_nat_info_proc): ... this. Update argument types as appropriate
9258 for a to_info_proc implementation.
9259 (linux_nat_info_proc_cmd): Remove.
9260 (linux_nat_info_proc_cmd_mappings): Likewise.
9261 (linux_nat_info_proc_cmd_stat): Likewise.
9262 (linux_nat_info_proc_cmd_status): Likewise.
9263 (linux_nat_info_proc_cmd_cwd): Likewise.
9264 (linux_nat_info_proc_cmd_cmdline): Likewise.
9265 (linux_nat_info_proc_cmd_exe): Likewise.
9266 (linux_nat_info_proc_cmd_all): Likewise.
9267 (linux_target_install_ops): Install linux_nat_info_proc.
9268 (_initialize_linux_nat): No longer install "info proc" command
9269 and subcommands.
9270
b9e7b9c3
UW
92712012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9272
9273 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9274 * config.in, configure: Regenerate.
9275
9276 * target.h (struct target_ops): Add to_fileio_readlink.
9277 (target_fileio_readlink): Add prototype.
9278 * target.c (target_fileio_readlink): New function.
9279
9280 * inf-child.c: Conditionally include <sys/param.h>.
9281 (inf_child_fileio_readlink): New function.
9282 (inf_child_target): Install it.
9283
9284 * remote.c (PACKET_vFile_readlink): New enum value.
9285 (remote_hostio_readlink): New function.
9286 (init_remote_ops): Install it.
9287 (_initialize_remote): Handle vFile:readlink packet type.
9288
7313baad
UW
92892012-01-20 Pedro Alves <palves@redhat.com>
9290 Ulrich Weigand <ulrich.weigand@linaro.org>
9291
9292 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9293 * config.in, configure: Regenerate.
9294
9295 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9296 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9297 (target_fileio_open): Add prototype.
9298 (target_fileio_pwrite): Likewise.
9299 (target_fileio_pread): Likewise.
9300 (target_fileio_close): Likewise.
9301 (target_fileio_unlink): Likewise.
9302 (target_fileio_read_alloc): Likewise.
9303 (target_fileio_read_stralloc): Likewise.
9304
9305 * target.c: Include "gdb/fileio.h".
9306 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9307 (default_fileio_target): New function.
9308 (target_fileio_open): Likewise.
9309 (target_fileio_pwrite): Likewise.
9310 (target_fileio_pread): Likewise.
9311 (target_fileio_close): Likewise.
9312 (target_fileio_unlink): Likewise.
9313 (target_fileio_close_cleanup): Likewise.
9314 (target_fileio_read_alloc_1): Likewise.
9315 (target_fileio_read_alloc): Likewise.
9316 (target_fileio_read_stralloc): Likewise.
9317
9318 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9319 <fcntl.h>, and <unistd.h>.
9320 (inf_child_fileio_open_flags_to_host): New function.
9321 (inf_child_errno_to_fileio_error): Likewise.
9322 (inf_child_fileio_open): Likewise.
9323 (inf_child_fileio_pwrite): Likewise.
9324 (inf_child_fileio_pread): Likewise.
9325 (inf_child_fileio_close): Likewise.
9326 (inf_child_fileio_unlink): Likewise.
9327 (inf_child_target): Install to_fileio routines.
9328
9329 * remote.c (init_remote_ops): Install to_fileio routines.
9330
901f9912
UW
93312012-01-20 Pedro Alves <palves@redhat.com>
9332 Ulrich Weigand <ulrich.weigand@linaro.org>
9333
9334 * remote.c (remote_multi_process_p): Only check for multi-process
9335 protocol feature, do not check for extended protocol.
9336 (remote_supports_multi_process): Check for extended protocol here.
9337 (set_general_process): Likewise.
9338 (extended_remote_kill): Likewise.
9339 (remote_pid_to_str): Likewise.
9340 (remote_query_supported): Always query multiprocess mode.
9341
e714e1bf
UW
93422012-01-20 Pedro Alves <palves@redhat.com>
9343 Ulrich Weigand <ulrich.weigand@linaro.org>
9344
9345 * inferior.h (struct inferior): Add fake_pid_p.
9346 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9347 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9348 magic_null_ptid since the remote side doesn't provide a real PID.
9349
50897289
TT
93502012-01-19 Tom Tromey <tromey@redhat.com>
9351
9352 * NEWS: Combine the two Python sections.
9353
1afc2033
JK
93542012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9355
9356 * target.h (target_close): Update comment on the target's unpush state.
9357
305436e0
PA
93582012-01-19 Pedro Alves <palves@redhat.com>
9359
9360 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9361 linux_nat_async directly instead of going through the target
9362 vector.
9363 * target.c (unpush_target): Close target after unpushing it, not
9364 before.
9365
49323895
GB
93662012-01-19 Gary Benson <gbenson@redhat.com>
9367
9368 * mdebugread.c (sort_blocks): Replace integer constants with ones
9369 derived from FIRST_LOCAL_BLOCK.
9370
1db33378
PP
93712012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9372 Jan Kratochvil <jan.kratochvil@redhat.com>
9373
9374 PR gdb/9538
9375 * symfile.c (find_separate_debug_file): New function.
9376 (terminate_after_last_dir_separator): Likewise.
9377 (find_separate_debug_file_by_debuglink): Also try realpath.
9378 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9379 * configure: Regenerate.
9380 * config.in: Regenerate.
9381
f83d8a90
DE
93822012-01-18 Doug Evans <dje@google.com>
9383
9384 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9385 (main.o): Remove rule.
9386 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9387 (--with-sysroot): Rewrite.
9388 * configure: Regenerate.
9389 * config.in: Regenerate.
9390
2dbca4d6
SDJ
93912012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9392
9393 * parse.c (initialize_expout): New function.
9394 (reallocate_expout): Likewise.
9395 (parse_exp_in_context): Use `initialize_expout' and
9396 `reallocate_expout' when appropriate.
9397
0695b514
PA
93982012-01-18 Pedro Alves <palves@redhat.com>
9399
9400 * record.c (struct record_breakpoint, record_breakpoint_p)
9401 (record_breakpoints): New.
9402 (record_insert_breakpoint, record_remove_breakpoint): Manage
9403 record breakpoints list. Only remove breakpoints from the
9404 inferior if they had been inserted there in the first place.
9405
136e1c30
DE
94062012-01-17 Doug Evans <dje@google.com>
9407
9408 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9409 if we know we don't have a file name to look for.
9410
c0bf857d
PA
94112012-01-17 Pedro Alves <palves@redhat.com>
9412
9413 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9414 the frame's stop reason is UNWIND_UNAVAILABLE.
9415
b486de60
JK
94162012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9417
9418 Fix compilation error.
9419 * m2-exp.y (yyerror): Use ANSI C prototype.
9420
d04550a6
SDJ
94212012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9422
9423 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9424 (growbuf_by_size): Likewise.
9425 (yyerror): Likewise.
9426 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9427 (modblock): Remove variable (was #if 0'ed).
9428 (parse_number): Convert prototype from K&R to ANSI C.
9429 (yyerror): Likewise.
9430 * objc-exp.y (parse_number): Likewise.
9431 (yyerror): Likewise.
9432 (yylex): Remove #if 0'ed code.
9433 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9434 (yyerror): Likewise.
9435
4aac40c8
TT
94362012-01-16 Tom Tromey <tromey@redhat.com>
9437
9438 * NEWS: Add item.
9439 * symtab.h (compare_filenames_for_search): Declare.
9440 * symtab.c (compare_filenames_for_search): New function.
9441 (iterate_over_some_symtabs): Use it.
9442 * symfile.h (struct quick_symbol_functions)
9443 <map_symtabs_matching_filename>: Change spec.
9444 * psymtab.c (partial_map_symtabs_matching_filename): Use
9445 compare_filenames_for_search. Update for new spec.
9446 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9447 compare_filenames_for_search. Update for new spec.
9448 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9449
cafec441
TT
94502012-01-16 Tom Tromey <tromey@redhat.com>
9451
9452 PR python/13281:
9453 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9454 (struct main_type) <flag_flag_enum>: New field.
9455 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9456 * NEWS: Add entries.
9457 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9458 enums.
9459 * python/lib/gdb/printing.py (_EnumInstance): New class.
9460 (FlagEnumerationPrinter): Likewise.
9461
983af33b
SDJ
94622012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9463
9464 * breakpoint.c (create_sals_from_address_default): New function.
9465 (create_breakpoints_sal_default): Likewise.
9466 (decode_linespec_default): Likewise.
9467 (is_marker_spec): Removed.
9468 (strace_marker_p): New function.
9469 (init_breakpoint_sal): Using `strace_marker_p' instead of
9470 `is_marker_spec'.
9471 (create_breakpoint): Call method `create_sals_from_address' from
9472 breakpoint_ops, replacing code that created SALs conditionally
9473 on the type of the breakpoint. Call method `create_breakpoints_sal',
9474 replacing code that created breakpoints conditionally on the type
9475 wanted.
9476 (base_breakpoint_create_sals_from_address): New function.
9477 (base_breakpoint_create_breakpoints_sal): Likewise.
9478 (base_breakpoint_decode_linespec): Likewise.
9479 (base_breakpoint_ops): Add methods
9480 `base_breakpoint_create_sals_from_address',
9481 `base_breakpoint_create_breakpoints_sal' and
9482 `base_breakpoint_decode_linespec'.
9483 (bkpt_create_sals_from_address): New function.
9484 (bkpt_create_breakpoints_sal): Likewise.
9485 (bkpt_decode_linespec): Likewise.
9486 (tracepoint_create_sals_from_address): Likewise.
9487 (tracepoint_create_breakpoints_sal): Likewise.
9488 (tracepoint_decode_linespec): Likewise.
9489 (strace_marker_create_sals_from_address): Likewise.
9490 (strace_marker_create_breakpoints_sal): Likewise.
9491 (strace_marker_decode_linespec): Likewise.
9492 (strace_marker_breakpoint_ops): New variable.
9493 (addr_string_to_sals): Remove `marker_spec'. Call method
9494 `decode_linespec' from breakpoint_ops, replacing code that decoded
9495 an address string into a SAL. Use `strace_marker_p' instead of
9496 `marker_spec'.
9497 (strace_command): Decide whether we are dealing with a static
9498 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9499 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9500 * breakpoint.h (linespec_result, linespec_sals): New forward
9501 declarations.
9502 (breakpoint_ops) <create_sals_from_address>,
9503 <create_breakpoints_sal>, <decode_linespec>: New methods.
9504
4795f398
DE
95052012-01-14 Doug Evans <dje@google.com>
9506
9507 * NEWS: Update text for "maint set python print-stack".
9508 It is deprecated in gdb 7.4 and deleted in 7.5.
9509
ee5106fe
EZ
95102012-01-13 Eli Zaretskii <eliz@gnu.org>
9511
9512 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9513 including curses.h.
9514
b161e06f
JK
95152012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9516
9517 * configure: Regenerate.
9518 * config.in: Regenerate.
9519
85254831
KS
95202012-01-12 Keith Seitz <keiths@redhat.com>
9521
9522 PR mi/10586
9523 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9524 (ANONYMOUS_UNION_NAME): Define.
9525 (is_path_expr_parent): New function.
9526 (get_path_expr_parent): New function.
9527 (is_anonymous_child): New function.
9528 (create_child_with_value): If the child is anonymous and without
9529 a name, assign an object name to it.
9530 (c_describe_child): Use get_path_expr_parent to determine
9531 the parent expression.
9532 If there field represents an anonymous struct or union and
9533 has no name, set an appropriate display name and expression.
9534 (cplus_describe_child): Likewise.
9535
620fa63a
PA
95362012-01-12 Pedro Alves <palves@redhat.com>
9537
9538 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9539 available when %ebp is found to be zero (outermost).
9540
2efa2c79
AT
95412012-01-11 Andreas Tobler <andreast@fgznet.ch>
9542
9543 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9544 an internal gdb_static_assert.
9545 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9546
88e7d25d
TT
95472012-01-11 Tom Tromey <tromey@redhat.com>
9548
9549 PR gdb/9598:
9550 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9551 catch" and "catch throw".
9552
72384ba3
PH
95532012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9554
9555 * blockframe.c (block_innermost_frame): Start search from selected
9556 frame, if present, or otherwise the current frame.
9557
9558 * c-exp.y (variable): Update innermost_block for
9559 'block COLONCOLON NAME' clause.
9560 * m2-exp.y (variable): Ditto.
9561 * objc-exp.y (variable): Ditto.
9562
065a711f
TT
95632012-01-10 Tom Tromey <tromey@redhat.com>
9564
9565 PR python/13199:
9566 * python/python.c (finish_python_initialization): Set sys.argv.
9567
f3f5162e
DE
95682012-01-10 Doug Evans <dje@google.com>
9569
9570 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9571 "want_line_info". All callers updated.
9572 (dwarf_decode_lines_1): New function.
9573 (handle_DW_AT_stmt_list): Add function comment.
9574 New arg "want_line_info". All callers updated.
9575 (read_file_scope,read_type_unit_scope): Move comment from
9576 handle_DW_AT_stmt_list to here.
9577
9934703b
JK
95782012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9579
9580 Fix regression after libiberty/ update for GCC PR 6057 and others.
9581 * c-exp.y (operator) <OPERATOR DELETE>
9582 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9583 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9584 (make_builtin_type, make_name): New variable i, add gdb_assert.
9585 (operator) <OPERATOR NEW>: Update ARGS to 3.
9586 (operator) <OPERATOR DELETE>: Add trailing space.
9587 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9588 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9589 * cp-support.c (cp_canonicalize_string): Check NULL from
9590 cp_comp_to_string, call warning and return.
9591
06b9f45f
JK
95922012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9593
9594 Fix duplicate .o files after omitting libbfd.a.
9595 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9596 (SFILES): Add corelow.c.
9597 (COMMON_OBS): Add corelow.o.
9598 (ALLDEPFILES): Remove corelow.c.
9599 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9600 * config/alpha/alpha-osf3.mh: Likewise.
9601 * config/alpha/fbsd.mh: Likewise.
9602 * config/arm/nbsdaout.mh: Likewise.
9603 * config/arm/nbsdelf.mh: Likewise.
9604 * config/i386/i386gnu.mh: Likewise.
9605 * config/ia64/hpux.mh: Likewise.
9606 * config/ia64/linux.mh: Likewise.
9607 * config/m32r/linux.mh: Likewise.
9608 * config/m68k/linux.mh: Likewise.
9609 * config/mips/irix5.mh: Likewise.
9610 * config/mips/irix6.mh: Likewise.
9611 * config/pa/hpux.mh: Likewise.
9612 * config/pa/linux.mh: Likewise.
9613 * config/powerpc/aix.mh: Likewise.
9614 * config/sparc/linux.mh: Likewise.
9615 * config/sparc/linux64.mh: Likewise.
9616 * config/sparc/sol2.mh: Likewise.
9617 * config/vax/vax.mh: Likewise.
9618 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9619 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9620 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9621 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9622 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9623 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9624 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9625 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9626 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9627 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9628 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9629 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9630 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9631 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9632 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9633 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9634 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9635 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9636 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9637 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9638 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9639 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9640 corelow.o from gdb_target_obs.
9641 * corefile.c (core_target): Update the comment on NULL value.
9642 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9643 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9644 MATCHES. Drop YUMMY set on NULL.
9645 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9646 reclaim CORE_DATA if it is already NULL.
9647
34365054
DE
96482012-01-09 Doug Evans <dje@google.com>
9649
9650 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9651 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9652
696166a3
KS
96532012-01-09 Keith Seitz <keiths@redhat.com>
9654
9655 * breakpoint.c (wrapper.h): Don't include.
9656
8e7b59a5
KS
96572012-01-09 Keith Seitz <keiths@redhat.com>
9658
9659 * Makefile.in (SFILES): Remove wrapper.c.
9660 (HFILES_NO_SRCDIR): Remove wrapper.h.
9661 (COMMON_OBS): Remove wrapper.o.
9662 * cli/cli-interp.c: Don't inlude wrapper.h.
9663 * corelow.c: Likewise.
9664 (core_open): Replace gdb_target_find_new_threads with
9665 TRY_CATCH around target_find_new_threads.
9666 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9667 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9668 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9669 evaluate_expression.
9670 (varobj_set_value): Likewise for evaluate_expression and
9671 value_assign.
9672 (install_new_variable): Likewise for value_fetch_lazy.
9673 (adjust_value_for_child_access): Likewise for value_ind.
9674 (c_describe_child): Likewise for value_subscript and
9675 value_ind.
9676 (c_value_of_root): Likewise for evaluate_expression.
9677 * wrapper.c: Remove.
9678 * wrapper.h: Remove.
9679
1a4eeb98
DE
96802012-01-09 Doug Evans <dje@google.com>
9681
9ff913ba
DE
9682 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9683 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9684 "abfd" args with "section". All callers updated.
9685 Error checking code moved ...
9686 (error_check_comp_unit_head): ... here. New function.
9687 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9688 Delete arg "abfd". New arg "type_offset". All callers updated.
9689 (create_debug_types_hash_table): Simplify by using
9690 read_and_check_type_unit_head.
9691
1a4eeb98
DE
9692 * parser-defs.h (namecopy): Delete.
9693 * parse.c (namecopy, namecopy_size): Move into copy_name.
9694
2e6af8c0
JK
96952012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 Partially fix duplicate .o files after omitting libbfd.a.
9698 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9699 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9700 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9701 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9702 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9703 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9704 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9705
9f2f828a
PA
97062012-01-09 Pedro Alves <palves@redhat.com>
9707
9708 * MAINTAINERS: Update my email address.
9709
4d72c0bc
DE
97102012-01-08 Doug Evans <dje@google.com>
9711
d467dd73
DE
9712 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9713 n_type_units. Rename type_comp_units to all_type_units.
9714 All uses updated.
9715 (add_signatured_type_cu_to_table): Renamed from
9716 add_signatured_type_cu_to_list. All callers updated.
9717
4d72c0bc
DE
9718 * gdbtypes.h (struct cplus_struct_type): Delete member
9719 nfn_fields_total. All uses removed.
9720
21b2bd31
DE
97212012-01-06 Doug Evans <dje@google.com>
9722
9723 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9724 to top of file.
9725 (dwarf2_find_comp_unit): Delete.
9726 (process_psymtab_comp_unit): Make result "void".
9727 Delete args buffer, info_ptr, buffer_size, and replace with
9728 "section". All callers updated.
9729 (dwarf2_build_psymtabs_hard): Simplify.
9730
bfd189b1
SDJ
97312012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9732 Thiago Jung Bauermann <bauerman@br.ibm.com>
9733
9734 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9735 before `struct gdb_exception'.
9736 * breakpoint.c (update_global_location_list_nothrow)
9737 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9738 * cp-abi.c (value_rtti_type): Likewise.
9739 * cp-support.c (cp_validate_operator): Likewise.
9740 * infrun.c (insert_exception_resume_breakpoint)
9741 (check_exception_resume, keep_going): Likewise.
9742 * mi-interp.c (mi_breakpoint_created)
9743 (mi_breakpoint_modified): Likewise.
9744 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9745 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9746 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9747
6b07635f
DE
97482012-01-05 Doug Evans <dje@google.com>
9749
0b30b85c
DE
9750 * dwarf2read.c (statement_prologue): Delete, unused.
9751
98714339
DE
9752 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9753 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9754
6b07635f
DE
9755 * dwarf2read.c (comp_unit_header): Delete, unused.
9756
761f4555
UW
97572012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9758
9759 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9760 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9761
2ca0b532
PA
97622012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9763
9764 * infrun.c (normal_stop): Don't skip calling the normal_stop
9765 observers if the thread was doing a multi-step, but stopped for
9766 some reason other than stepping.
9767
50aeff07
PA
97682012-01-05 Pedro Alves <alves.ped@gmail.com>
9769
9770 * cli/cli-decode.h: Add comments.
9771 (CMD_LIST_AMBIGUOUS): Moved to command.h
9772 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9773 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9774 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9775 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9776 (add_com, add_com_alias, add_info, add_info_alias)
9777 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9778 declarations.
9779 * command.h: Add and adjust comments.
9780 (CMD_LIST_AMBIGUOUS): Moved here.
9781 (help_cmd, help_cmd_list): Delete declarations.
9782
5953832c
DE
97832012-01-04 Doug Evans <dje@google.com>
9784
e5fe5e75
DE
9785 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9786 All callers updated.
9787 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9788 Replace all arguments with "per_cu". All callers updated.
9789
28dee7f5
DE
9790 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9791
23745b47
DE
9792 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9793 New arg "per_cu". All callers updated.
9794
5953832c
DE
9795 Delete #if 0'd out code.
9796 * language.c (binop_result_type): Delete.
9797 (simple_type, ordered_type, same_type, integral_type): Delete.
9798 (numeric_type, character_type, string_type, boolean_type): Delete.
9799 (float_type, structured_type): Delete.
9800 * language.h: Update.
9801
0f5b7562
TT
98022012-01-04 Tom Tromey <tromey@redhat.com>
9803
9804 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9805
78218f56
JB
98062012-01-04 Joel Brobecker <brobecker@adacore.com>
9807
9808 * corefile.c (close_exec_file): Delete.
9809 (reopen_exec_file): Remove commented out code that seems related
9810 to close_exec_file, which is being deleted here.
9811 * inferior.h (close_exec_file): Delete.
9812 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9813
0fcd72ba
JB
98142012-01-04 Joel Brobecker <brobecker@adacore.com>
9815
9816 * ada-lang.c: #include "cli/cli-utils.h".
9817 (get_selections): Use skip_spaces.
9818 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9819 (catch_ada_exception_command_split): Use skip_spaces.
9820 (ada_decode_assert_location): Likewise.
9821
1dabb4c4
JB
98222012-01-04 Joel Brobecker <brobecker@adacore.com>
9823
9824 * linespec.c (decode_line_internal): Check for C++ or Java
9825 compound constructs only if the current language is C, C++
9826 or Java.
9827
5931a2fa
JK
98282012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9829
9830 Revert:
9831 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9832 Joel Brobecker <brobecker@adacore.com>
9833 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9834 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9835 3 times.
9836 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9837 fall through into AT_ENTRY_POINT.
9838 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9839 DUMMY_ADDR with it.
9840 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9841 PPC_INSN_SIZE skip to 3 times.
9842
1a2da5ee
JB
98432012-01-04 Joel Brobecker <brobecker@adacore.com>
9844
9845 * linespec.c (add_minsym): Preserve function descriptors.
9846
8645ff69
UW
98472012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9848
9849 * breakpoint.c (all_locations_are_pending): Consider locations
9850 in program spaces executing during startup pending as well.
9851
0b302171
JB
98522012-01-04 Joel Brobecker <brobecker@adacore.com>
9853
9854 Copyright year update in most files of the GDB Project.
9855
8ba098ad
JB
98562012-01-04 Joel Brobecker <brobecker@adacore.com>
9857
9858 * copyright.sh: Delete.
9859 * copyright.py: Rewrite.
9860
09c01c30
JB
98612012-01-04 Joel Brobecker <brobecker@adacore.com>
9862
9863 * gnulib/extra/update-copyright: New file, imported from gnulib.
9864
3c36c0af
JB
98652012-01-04 Joel Brobecker <brobecker@adacore.com>
9866
9867 * README (Copyright and License Notices): New section.
9868
888fe1e1
TT
98692012-01-03 Tom Tromey <tromey@redhat.com>
9870
9871 PR python/12533:
9872 * python/py-value.c (valpy_dereference, valpy_get_address
9873 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9874 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9875 (valpy_absolute, valpy_richcompare): Free intermediate values.
9876
6e681866
JB
98772011-01-03 Joel Brobecker <brobecker@adacore.com>
9878
9879 * ada-lang.c: Reformat the copyright notice.
9880
0cd09acb
JK
98812012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9882
9883 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9884 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9885 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9886 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9887 Revert this part of:
9888 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9889 Build gdb directly from *.o files not using libgdb.a.
9890 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9891
12c3e59c
JB
98922012-01-02 Joel Brobecker <brobecker@adacore.com>
9893
9894 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9895 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9896 Reformat the copyright header.
9897
11bf1490
JK
98982012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9899
9900 Revert this part of:
9901 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9902 Remove the gdbtui binary.
9903 * gdb.c (main): Remove args.interpreter_p initialization.
9904 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9905 * main.h (struct captured_main_args): Remove interpreter_p.
9906
1fef196f
JB
99072012-01-02 Joel Brobecker <brobecker@adacore.com>
9908
9909 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9910
67827812
JB
99112012-01-02 Joel Brobecker <brobecker@adacore.com>
9912
9913 * top.c (print_gdb_version): Update copyright year.
9914
a4d0b831
YQ
99152012-01-02 Yao Qi <yao@codesourcery.com>
9916
9917 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9918
b5914469
JK
99192012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9920 Joel Brobecker <brobecker@adacore.com>
9921
9922 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9923 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9924 3 times.
9925 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9926 fall through into AT_ENTRY_POINT.
9927 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9928 DUMMY_ADDR with it.
9929 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9930 PPC_INSN_SIZE skip to 3 times.
9931
8da828f7
JK
99322012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9933
9934 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9935 the return value.
9936 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9937
8574e74b
JK
99382012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9939
9940 Build gdb directly from *.o files not using libgdb.a.
9941 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9942 (COMMON_OBS): Remove solib-target.o.
9943 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9944 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9945 (LIBGDB_OBS, libgdb.a): Move it above.
9946 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9947 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9948 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9949 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9950 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9951 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9952 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9953 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9954 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9955 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9956 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9957 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9958 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9959 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9960 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9961 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9962 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9963 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9964 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9965 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9966 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9967 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9968 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9969 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9970 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9971 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9972 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9973
217bff3e
JK
99742012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9975
9976 Remove the gdbtui binary.
9977 * .gitignore (/gdbtui): Remove.
9978 * Makefile.in (TUI): Remove.
9979 (SUBDIR_TUI_OBS): Remove tui-main.o.
9980 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9981 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9982 (tui-main.o): Remove.
9983 (all_object_files): Remove tui-main.o.
9984 * NEWS: New note for the gdbtui removal.
9985 * configure: Rebuilt.
9986 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9987 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9988 CONFIG_UNINSTALL respectively.
9989 * gdb.c (main): Remove args.interpreter_p initialization.
9990 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9991 * main.h (struct captured_main_args): Remove interpreter_p.
9992 * tui/tui-main.c: Remove.
9993
9cdd5dbd
DE
99942012-01-01 Doug Evans <dje@google.com>
9995
bb5ed363
DE
9996 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9997 (dwarf2_physname, read_import_statement): Ditto.
9998 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9999 (process_structure_scope read_subroutine_type): Ditto.
10000 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10001 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10002 (dwarf2_fetch_die_location_block): Ditto.
10003 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10004
a0f42c21
DE
10005 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10006 All callers updated.
10007 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10008 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10009 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10010
2dc860c0
DE
10011 * dwarf2read.c (load_cu): Move assert to more useful location.
10012
68dc6402
DE
10013 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10014 All callers updated.
10015
9cdd5dbd
DE
10016 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10017 (dwarf2_elf_names): Minor reformat.
10018 (dwarf2_per_cu_data): Tweak comment.
10019 (dwarf2_read_section): Fix comment.
10020 (create_all_comp_units): Fix comment.
10021 (load_full_comp_unit): Fix comment.
10022 (process_full_comp_unit): Fix comment.
10023 (read_signatured_type): Fix comment.
10024
0c10e53e 10025For older changes see ChangeLog-2011.
c906108c
SS
10026\f
10027Local Variables:
10028mode: change-log
10029left-margin: 8
10030fill-column: 74
10031version-control: never
57da7796 10032coding: utf-8
c906108c 10033End:
This page took 1.878913 seconds and 4 git commands to generate.