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