* mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ca9c94ef
MR
12013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
4 if $fp is used as the virtual frame pointer.
5
24c274a1
AM
62013-02-23 Alan Modra <amodra@gmail.com>
7
8 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9 symbol size.
10 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
12 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
13 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
14
bfada189
JK
152013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
16
17 Code cleanup.
18 * elfread.c (build_id_bfd_get): Make the return type const.
19 (build_id_verify): Make the check parameter const.
20 (build_id_to_debug_filename): Make the build_id parameter and variable
21 data const.
22 (find_separate_debug_file_by_buildid): Make the variable build_id const.
23
c0355132
AM
242013-02-21 Alan Modra <amodra@gmail.com>
25
26 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
27
9f44fbc0
SCR
282013-02-20 Siva Chandra Reddy <sivachandra@google.com>
29
30 Add a new method 'disassemble' to gdb.Architecture class.
31 * python/py-arch.c (archpy_disassmble): Implementation of the
32 new method gdb.Architecture.disassemble.
33 (arch_object_methods): Add entry for the new method.
34
b74ea3eb
JW
352013-02-20 Jiong Wang <jiwang@tilera.com>
36
37 * MAINTAINERS (Write After Approval): Add myself to the list.
38
61a672f1
PA
392013-02-19 Pedro Alves <palves@redhat.com>
40
41 Garbage collect 'struct monitor_ops'::load_routine.
42
43 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
44 * monitor.c (monitor_load): No longer call
45 current_monitor->load_routine.
46 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
47 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
48 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
49
40e397df
PA
502013-02-19 Pedro Alves <palves@redhat.com>
51
52 PR gdb/15161
53
54 Harmonize with generic_load.
55
56 * monitor.c: Include "readline/readline.h".
57 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
58 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
59 long/strtol for the 'load_offset' local. Error out if no argument
60 is given or if too many arguments are given. Tilde expand the
61 passed in file name.
62
f698ca8e
KT
632013-02-19 Kai Tietz <ktietz@redhat.com>
64
65 PR gdb/15161
66 * symfile.c (load_section_data): Change type of load_offset
67 to CORE_ADDR.
68 (generic_load): User strtoulst instead of strtoul for conversion
69 of load_offset.
70
3361b059
WL
712013-02-19 Jiong Wang <jiwang@tilera.com>
72
73 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
74 for return address, "lr" register, saved on stack.
75 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
76 after we invoke tilegx_analyze_prologue.
77
3e9d5130
WL
782013-02-19 Jiong Wang <jiwang@tilera.com>
79
bb1bcd86
WL
80 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
81
3361b059 822013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 83
b74ea3eb 84 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 85
4aaf2503
WL
862013-02-19 Jiong Wang <jiwang@tilera.com>
87
b74ea3eb 88 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
89 (tilegx_write_pc): New function.
90 (tilegx_cannot_reference_register): Return zero if REGNO
91 is TILEGX_FAULTNUM_REGNUM.
92 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
93 (tilegx_register_name): Add handling of "faultnum" register.
94 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
95 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
96 handling of TILEGX_FAULTNUM_REGNUM.
97 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
98
bc23a956
WL
992013-02-19 Jiong Wang <jiwang@tilera.com>
100
101 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 102 should be aligned to 64bit.
bc23a956 103
42f45f1a
KT
1042013-02-19 Kai Tietz <ktietz@redhat.com>
105
106 * windows-nat.c (windows_xfer_memory): Fix debug-output
107 for LLP64.
108
6ce4c112
LL
1092013-02-19 Lei Liu <lei.liu2@windriver.com>
110
111 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
112 Don't check DSP register number if HAVE_DSP is not set.
113
30e8ee25
AM
1142013-02-19 Alan Modra <amodra@gmail.com>
115
116 * elfread.c (struct build_id): Delete. Use struct elf_build_id
117 throughout file instead.
118 (build_id_bfd_get): Update to use new elf_tdata build_id field.
119 Don't xmalloc return value.
120 (build_id_verify): Similarly. Don't xfree.
121 (build_id_to_debug_filename): Update.
122 (find_separate_debug_file_by_buildid): Update, don't xfree.
123
4c9ad8c2
TT
1242013-02-18 Tom Tromey <tromey@redhat.com>
125
126 PR gdb/15102:
127 * dwarf2read.c (read_subrange_type): Use result of
128 'check_typedef'.
129
983dc440
YQ
1302013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
131
132 * frame.c: Remove one extra white space after #include
133 directive.
134
7fb2b84a
JK
1352013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
136
137 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
138
edceb2a9
JK
1392013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
140
141 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
142 and dir commands into an if block.
143
e81b7af8
TT
1442013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
145
146 * python/py-breakpoint (struct pybp_code): Use int instead of
147 enum type_code.
148
f5911ea1
HAQ
1492013-02-15 Pedro Alves <pedro@codesourcery.com>
150 Hafiz Abid Qadeer <abidh@codesourcery.com>
151
152 * NEWS: Mention new field "trace-file".
153 * tracepoint.c (trace_status_mi): Output "trace-file" field.
154 (tfile_open): Record the trace file's filename in the trace
155 status.
156 (tfile_files_info): Mention the name of the trace file.
157 Check the "filename" field explicitely.
158 (trace_status_command): Explicitely check "filename" field.
159 (trace_find_command): Ditto.
160 (trace_find_pc_command): Ditto.
161 (trace_find_tracepoint_command): Ditto.
162 (trace_find_line_command): Ditto.
163 (trace_find_range_command): Ditto.
164 (trace_find_outside_command): Ditto.
165 * tracepoint.h (struct trace_status) <from_file>: Rename it
166 to "filename" and make it hold the trace file's filename
167 instead of a boolean.
168 * remote.c (remote_get_trace_status): Initialize "filename"
169 field with NULL instead of 0.
170
796cb314
YQ
1712013-02-15 Yao Qi <yao@codesourcery.com>
172
173 * remote.c: Fix a typo.
174
42e79b1d
PM
1752013-02-14 Pierre Muller <muller@sourceware.org>
176
177 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
178
baea0dae
PA
1792013-02-14 Pedro Alves <palves@redhat.com>
180
181 * utils.c (savestring): Don't #undef it. Move function to
182 common/common-utils.c.
183 * common/common-utils.c: Include gdb_string.h.
184 (savestring): Move here from utils.c.
185 * common/common-utils.h (savestring): Declare.
186
57c3b6ed
PA
1872013-02-14 Pedro Alves <palves@redhat.com>
188
189 * utils.c (savestring): Rename parameter 'size' to 'len'.
190
d6c44983
YZ
1912013-02-14 Pedro Alves <palves@redhat.com>
192 Yufeng Zhang <yufeng.zhang@arm.com>
193
194 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
195 (aarch64_inferior_data, struct aarch64_inferior_data):
196 Delete.
197 (struct aarch64_process_info): New.
198 (aarch64_process_list): New global.
199 (aarch64_find_process_pid, aarch64_add_process)
200 (aarch64_process_info_get): New functions.
201 (aarch64_inferior_data_get): Delete.
202 (aarch64_process_info_get): New function.
203 (aarch64_forget_process): New function.
204 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
205 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
206 aarch64_get_debug_reg_state.
207 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
208 instead of linux_nat_iterate_watchpoint_lwps.
209 (aarch64_linux_new_fork): New function.
210 (aarch64_linux_child_post_startup_inferior): Use
211 aarch64_forget_process instead of aarch64_init_debug_reg_state.
212 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
213 (aarch64_linux_remove_hw_breakpoint)
214 (aarch64_handle_aligned_watchpoint)
215 (aarch64_handle_unaligned_watchpoint)
216 (aarch64_linux_insert_watchpoint)
217 (aarch64_linux_remove_watchpoint)
218 (aarch64_linux_stopped_data_address): Adjust to pass the current
219 process id to aarch64_debug_reg_state.
220 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
221 linux_nat_new_fork hook, and aarch64_forget_process as
222 linux_nat_forget_process hook; remove the call to
223 register_inferior_data_with_cleanup.
224
4819b3f8
PA
2252013-02-14 Pedro Alves <palves@redhat.com>
226
227 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
228 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
229 lval_memory.
230
1773c82c
HAQ
2312013-02-14 Pedro Alves <pedro@codesourcery.com>
232 Hafiz Abid Qadeer <abidh@codesourcery.com>
233
234 * tracepoint.h (validate_trace_state_variable_name): Declare.
235 * tracepoint.c (validate_trace_state_variable_name): New.
236 (trace_variable_command): Parse the trace state variable's name
237 without using parse_expression. Do several validations.
238 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
239 trace state variable's name with parse_expression. Validate it.
240
53778a97
YQ
2412013-02-14 Yao Qi <yao@codesourcery.com>
242
243 * infcmd.c (breakpoint_proceeded): Remove it.
244
7b3ae3a6
YQ
2452013-02-14 Yao Qi <yao@codesourcery.com>
246
247 * tracepoint.c (end_actions_pseudocommand): Make it static.
248 (while_stepping_pseudocommand): Likewise.
249 * tracepoint.h (end_actions_pseudocommand): Remove the
250 declaration.
251 (while_stepping_pseudocommand): Likewise.
252
64580925
YQ
2532013-02-14 Yao Qi <yao@codesourcery.com>
254
255 * cli/cli-decode.c (help_cmd): Remove the declaration of
256 "cmdlist".
257 (help_all): Likewise.
258
26cb8b7c
PA
2592013-02-13 Pedro Alves <palves@redhat.com>
260
261 * amd64-linux-nat.c (update_debug_registers_callback):
262 Update comment.
263 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
264 iterate_over_lwps.
265 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
266 i386_debug_reg_state.
267 (amd64_linux_new_fork): New function.
268 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
269 linux_nat_new_fork hook, and i386_forget_process as
270 linux_nat_forget_process hook.
271 * i386-linux-nat.c (update_debug_registers_callback):
272 Update comment.
a8256ea1 273 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
274 iterate_over_lwps.
275 (i386_linux_prepare_to_resume): Pass the lwp's pid to
276 i386_debug_reg_state.
277 (i386_linux_new_fork): New function.
278 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
279 linux_nat_new_fork hook, and i386_forget_process as
280 linux_nat_forget_process hook.
281 * i386-nat.c (i386_init_dregs): Delete.
282 (i386_inferior_data, struct i386_inferior_data):
283 Delete.
284 (struct i386_process_info): New.
285 (i386_process_list): New global.
286 (i386_find_process_pid, i386_add_process, i386_process_info_get):
287 New functions.
288 (i386_inferior_data_get): Delete.
289 (i386_process_info_get): New function.
290 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
291 (i386_forget_process): New function.
292 (i386_cleanup_dregs): Rewrite.
293 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
294 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
295 (i386_stopped_data_address, i386_insert_hw_breakpoint)
296 (i386_remove_hw_breakpoint): Adjust to pass the current process id
297 to i386_debug_reg_state.
298 (i386_use_watchpoints): Don't register inferior data.
299 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
300 adjust comment.
301 (i386_forget_process): Declare.
302 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
303 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
304 New static globals.
305 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
306 (add_initial_lwp): New, factored out from ...
307 (add_lwp): ... this. Don't check the number of lwps before
308 calling linux_nat_new_thread.
309 (linux_nat_iterate_watchpoint_lwps): Delete.
310 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
311 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
312 forks and vforks.
313 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
314 initial lwp.
315 (linux_nat_kill, linux_nat_mourn_inferior): Call
316 linux_nat_forget_process.
317 (linux_nat_set_new_fork, linux_nat_set_forget_process)
318 (linux_nat_forget_process): New functions.
319 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
320 type.
321 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
322 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
323 types.
324 (linux_nat_set_new_fork, linux_nat_set_forget_process)
325 (linux_nat_forget_process): New declarations.
326
327 * amd64fbsd-nat.c (super_mourn_inferior): New global.
328 (amd64fbsd_mourn_inferior): New function.
329 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
330 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
331
5befea72
MS
3322013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
333
55015247
YQ
334 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
335 Adding _().
5befea72 336
1d3ffd6b
MS
3372013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
338
339 * aarch64-linux-nat.c (debug_reg_change_callback)
340 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
341 %s and phex().
342
6eb04473
MS
3432013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
344
345 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
346 with LONGEST.
347
a016fc87
HAQ
3482013-02-13 Pedro Alves <palves@redhat.com>
349 Hafiz Abid Qadeer <abidh@codesourcery.com>
350
351 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
352
e234dfaf
TT
3532013-02-12 Tom Tromey <tromey@redhat.com>
354
355 PR symtab/11464:
356 * c-exp.y (lex_one_token): Initialize other fields of yylval on
357 NAME return.
358 (classify_inner_name): Remove 'first_name' argument, add
359 'context'. Remove unused variable.
360 (yylex): Explicitly maintain the context type. Exit loop earlier
361 if NAME result is seen.
362
0b1afbb3
PA
3632013-02-12 Pedro Alves <palves@redhat.com>
364
365 * amd64-darwin-tdep.c: Add (C) after Copyright.
366 * cli/cli-cmds.h: Ditto.
367 * cli/cli-decode.c: Ditto.
368 * cli/cli-decode.h: Ditto.
369 * cli/cli-dump.c: Ditto.
370 * cli/cli-dump.h: Ditto.
371 * cli/cli-interp.c: Ditto.
372 * cli/cli-logging.c: Ditto.
373 * cli/cli-script.c: Ditto.
374 * cli/cli-script.h: Ditto.
375 * cli/cli-setshow.c: Ditto.
376 * cli/cli-setshow.h: Ditto.
377 * cli/cli-utils.c: Ditto.
378 * cli/cli-utils.h: Ditto.
379 * config/alpha/nm-osf3.h: Ditto.
380 * config/djgpp/djconfig.sh: Ditto.
381 * config/i386/nm-fbsd.h: Ditto.
382 * config/i386/nm-i386gnu.h: Ditto.
383 * config/nm-linux.h: Ditto.
384 * config/nm-nto.h: Ditto.
385 * config/rs6000/nm-rs6000.h: Ditto.
386 * config/sparc/nm-sol2.h: Ditto.
387 * darwin-nat-info.c: Ditto.
388 * dfp.c: Ditto.
389 * dfp.h: Ditto.
390 * gdb-demangle.h: Ditto.
391 * i386-darwin-nat.c: Ditto.
392 * i386-darwin-tdep.c: Ditto.
393 * linux-fork.h: Ditto.
394 * m32c-tdep.c: Ditto.
395 * microblaze-linux-tdep.c: Ditto.
396 * microblaze-rom.c: Ditto.
397 * microblaze-tdep.c: Ditto.
398 * microblaze-tdep.h: Ditto.
399 * mips-linux-tdep.h: Ditto.
400 * ppc-ravenscar-thread.c: Ditto.
401 * ppc-ravenscar-thread.h: Ditto.
402 * prologue-value.c: Ditto.
403 * prologue-value.h: Ditto.
404 * ravenscar-thread.c: Ditto.
405 * ravenscar-thread.h: Ditto.
406 * sparc-ravenscar-thread.c: Ditto.
407 * sparc-ravenscar-thread.h: Ditto.
408 * tilegx-linux-tdep.c: Ditto.
409 * unwind_stop_reasons.def: Ditto.
410 * windows-nat.h: Ditto.
411 * xtensa-linux-tdep.c: Ditto.
412 * xtensa-xtregs.c: Ditto.
413 * regformats/regdat.sh: Ditto.
414 * regformats/regdef.h: Ditto.
415
6c01dd94
PA
4162013-02-12 Pedro Alves <palves@redhat.com>
417
418 * break-catch-sig.c: Update copyright years.
419
b65a2bd9
SCR
4202013-02-11 Siva Chandra Reddy <sivachandra@google.com>
421
422 Add support for a destructor for ui_out data and use it to
423 provide a ui_out destructor.
424 * ui-out.h: Declare the new ui_out destructor.
425 (ui_out_impl): Add a field for data destructor in ui_out_impl.
426 * ui-out.c (default_data_destroy): Add a default data destructor
427 which does nothing.
428 (default_ui_out_impl): Set the new data_destroy field to
429 default_data_destroy
430 (uo_data_destroy): Local function which invokes the data
431 destructor if present.
432 (clear_table): Local function which clears the table data of a
433 ui_out object.
434 (ui_out_destroy): Public function which frees a ui_out object.
435 (ui_out_table_end): Use the new clear_table function.
436 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
437 NULL.
438 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
439 to NULL.
440
c2792f5a
DE
4412013-02-11 Doug Evans <dje@google.com>
442
443 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
444 (printf_decfloat): New function. Broken out from ui_printf.
445 Remove unnecessary code to shift the entire format string down.
446 (printf_pointer): New function.
447 (ui_printf): Code to print C strings, wide C strings, decfloats,
448 and pointers moved to separate functions.
449
d9e98382
SDJ
4502013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
451
452 * valops.c (value_assign): Handling bitfield offset in
453 `lval_internalvar_component' case.
454
4ff3ce77
DE
4552013-02-08 Doug Evans <dje@google.com>
456
457 * common/format.c (parse_format_string): Fix whitespace.
458
901900c4
MGD
4592013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
460
461 * stack.c (return_command): Work around uninitialized variable
462 warning.
463
b5dbc8d4
YZ
4642013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
465
466 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
467 number of the registers from 36 to 34.
468
51d66578
MS
4692013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
470
471 * NEWS: Mention new AArch64 native and target support.
472
176b1c95
MS
4732013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
474
475 * MAINTAINERS (Write After Approval): Add myself.
476
9d19df75
MS
4772013-02-08 Jim MacArthur <jim.macarthur@arm.com>
478 Marcus Shawcroft <marcus.shawcroft@arm.com>
479 Nigel Stephens <nigel.stephens@arm.com>
480 Yufeng Zhang <yufeng.zhang@arm.com>
481
482 * aarch64-linux-nat.c: New file.
483 * config/aarch64/linux.mh: New file.
484 * configure.host: Add AArch64.
485 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
486
7e1e0340
DE
4872013-02-07 Doug Evans <dje@google.com>
488
489 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
490 disassemble command.
491
45e25a36
MS
4922013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
493
494 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
495 set_gdbarch_fetch_tls_load_module_address.
496
bbfdfe1c
DM
4972013-02-06 David S. Miller <davem@davemloft.net>
498
499 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
500 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
501 * value.c (struct_return_convention): New function.
502 (using_struct_return): Implement in terms of struct_return_convention.
503 * value.h (struct_return_convention): Declare.
504 * stack.c (return_command): Allow successful overriding of the return
505 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
506
bc9abe4a
TT
5072013-02-06 Tom Tromey <tromey@redhat.com>
508
509 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
510 outside of TRY_CATCH.
511
134a2066
YQ
5122013-02-06 Yao Qi <yao@codesourcery.com>
513
514 * mi/mi-interp.c: Include "tracepoint.h".
515 (mi_tsv_modified): Declare.
516 (mi_tsv_created, mi_tsv_deleted): Update declaration.
517 (mi_interpreter_init): Call observer_attach_tsv_modified.
518 (mi_tsv_modified): New.
519 (mi_tsv_created, mi_tsv_deleted): Update.
520 * tracepoint.c (trace_variable_command): Call
521 observer_notify_tsv_modified if the initial value of tsv is
522 changed.
523 (delete_trace_state_variable): Call
524 observer_notify_tsv_deleted earlier.
525 (trace_variable_command): Caller update.
526 (create_tsv_from_upload): Likewise.
527 * observer.sh: Declare "struct trace_state_variable".
528
529 * NEWS: Mention the new MI notification "=tsv-modified".
530
59be2b6a
DE
5312013-02-05 Doug Evans <dje@google.com>
532
533 * completer.c (location_completer): Fix typo in comment.
534
d30113d4
JK
5352013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
536
537 * breakpoint.c (add_location_to_breakpoint): Insert the location with
538 ADDRESS sorted.
539
14ac654f
MS
5402013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
541
542 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
543 Refactor if statement to avoid trailing || operator.
544
543bf33d
AT
5452013-02-05 Andreas Tobler <andreast@fgznet.ch>
546
547 * NEWS: Add PowerPC FreeBSD as a new native configuration.
548
dc18f110
AT
5492013-02-04 Andreas Tobler <andreast@fgznet.ch>
550
551 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
552 * configure.host: Add powerpc*-*-freebsd* target.
553 * configure.tgt: Add target info for powerpc*-*-freebsd*.
554 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
555 * config/powerpc/fbsd.mh: New file.
556
b3ac9c77
SDJ
5572013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
558 Denys Vlasenko <dvlasenk@redhat.com>
559 Pedro Alves <palves@redhat.com>
560
561 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
562 (struct elf_internal_linux_prpsinfo): Forward declare.
563 * gdbarch.h, gdbarch.c: Regenerate.
564 * linux-tdep.c: Include `cli/cli-utils.h'.
565 (linux_fill_prpsinfo): New function.
566 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
567 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
568 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
569 depending on gdbarch pointer bitness.
570 * ppc-linux-tdep.c: Include elf-bfd.h.
571 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
572 on 32-bit.
573
176eb98c
MS
5742013-02-04 Jim MacArthur <jim.macarthur@arm.com>
575 Marcus Shawcroft <marcus.shawcroft@arm.com>
576 Nigel Stephens <nigel.stephens@arm.com>
577 Yufeng Zhang <yufeng.zhang@arm.com>
578
579 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
580
cf0dbd6f
MS
5812013-02-04 Jim MacArthur <jim.macarthur@arm.com>
582 Marcus Shawcroft <marcus.shawcroft@arm.com>
583 Nigel Stephens <nigel.stephens@arm.com>
584 Yufeng Zhang <yufeng.zhang@arm.com>
585
586 * aarch64-newlib-tdep.c: New file.
587 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
588 aarch64*-*-elf.
589 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
590 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
591 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
592 * osabi.c (gdb_osabi_names): Add "Newlib".
593
1ae3db19
MS
5942013-02-04 Jim MacArthur <jim.macarthur@arm.com>
595 Marcus Shawcroft <marcus.shawcroft@arm.com>
596 Nigel Stephens <nigel.stephens@arm.com>
597 Yufeng Zhang <yufeng.zhang@arm.com>
598
599 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
600 (ALLDEPFILES): Add aarch64-linux-tdep.c.
601 * aarch64-linux-tdep.c: New file.
602 * aarch64-linux-tdep.h: New file.
603 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
604 * configure.tgt: Add aarch64-none-linux-gnu.
605
07b287a0
MS
6062013-02-04 Jim MacArthur <jim.macarthur@arm.com>
607 Marcus Shawcroft <marcus.shawcroft@arm.com>
608 Nigel Stephens <nigel.stephens@arm.com>
609 Yufeng Zhang <yufeng.zhang@arm.com>
610
611 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
612 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
613 (ALLDEPFILES): Add aarch64-tdep.c.
614 * aarch64-tdep.c: New file.
615 * aarch64-tdep.h: New file.
616 * configure.tgt: Add AArch64.
617 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
618 (aarch64-expedite): New definition.
619 * features/aarch64-core.xml: New file.
620 * features/aarch64-fpu.xml: New file.
621 * features/aarch64-without-fpu.c: New file (generated).
622 * features/aarch64-without-fpu.xml: New file.
623 * features/aarch64.c: New file (generated).
624 * features/aarch64.xml: New file.
625 * regformats/aarch64-without-fpu.dat: New file (generated).
626 * regformats/aarch64.dat: New file (generated).
627
0f1b18ab
JK
6282013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 * contrib/expect-read1.c: New file.
631 * contrib/expect-read1.sh: New file.
632
233d95b5
JK
6332013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
634
635 * dwarf2read.c (file_file_name): New function with code from
636 file_full_name.
637 (file_full_name): Move most of the code to file_file_name.
638 (macro_start_file): Rename variable full_name to file_name and use
639 file_file_name for it. Add comp_dir parameter to new_macro_table.
640 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
641 macro_source_file->filename access by macro_source_fullname call.
642 * macroscope.c (_initialize_macroscope): Update the new_macro_table
643 caller.
644 * macrotab.c (struct macro_table): New field comp_dir.
645 (macro_include): New variables link_fullname and source_fullname.
646 Replace any macro_source_file->filename access by macro_source_fullname
647 call.
648 (macro_lookup_inclusion): Remove the partial filenames checking code.
649 (check_for_redefinition): New variables source_fullname and
650 found_key_fullname. Replace any macro_source_file->filename access by
651 macro_source_fullname call.
652 (macro_undef): New variables source_fullname and key_fullname. Replace
653 any macro_source_file->filename access by macro_source_fullname call.
654 (macro_lookup_definition): New variables retval and source_fullname.
655 Replace any macro_source_file->filename access by macro_source_fullname
656 call.
657 (foreach_macro): New variable key_fullname. Replace any
658 macro_source_file->filename access by macro_source_fullname call.
659 (foreach_macro_in_scope): New variable datum_fullname. Replace any
660 macro_source_file->filename access by macro_source_fullname call.
661 (new_macro_table): Add parameter comp_dir. Initialize T with it.
662 (macro_source_fullname): New function.
663 * macrotab.h (struct macro_source_file): Extent the filename field
664 comment.
665 (new_macro_table): New parameter comp_dir, add a comment for it.
666 (macro_source_fullname): new declaration.
667
da235a7c
JK
6682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
669
670 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
671 this_real_name to outer block. Use it also for
672 compare_filenames_for_search.
673 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
674 with dw2_get_real_path for file_matcher, considering also
675 BASENAMES_MAY_DIFFER.
676 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
677
fbd9ab74
JK
6782013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
681 to the file_matcher parameter. Pass 0 to it.
682 (dwarf2_create_include_psymtab): Copy also DIRNAME.
683 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
684 NULL psymtab_to_fullname result.
685 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
686 an expected filename instead.
687 (expand_symtabs_matching_via_partial): Add basenames parameter to the
688 file_matcher parameter. Call also psymtab_to_fullname, after newly
689 considering BASENAMES_MAY_DIFFER.
690 * source.c (rewrite_source_path): Remove static.
691 * source.h (rewrite_source_path): New declaration.
692 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
693 the expand_symtabs_matching field. Comment it.
694 * symtab.c (file_matches): New function comment. Add parameter
695 basenames, implement it.
696 (search_symbols_file_matches): Add basenames parameter. Update the
697 file_matches caller.
698 (search_symbols): Match FILES also against symtab_to_fullname.
699 Optimize it for BASENAMES_MAY_DIFFER.
700
56d397a3
JK
7012013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
702
703 * source.c (print_source_lines_base): Print for TUI also "fullname".
704 * tui/tui-data.c (init_content_element): Change tui_locator_element
705 field to full_name.
706 * tui/tui-data.h (struct tui_locator_element): Likewise.
707 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
708 tui_update_locator_filename calls to tui_update_locator_fullname.
709 Replace symtab->filename refererence by symtab_to_fullname call.
710 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
711 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
712 field to full_name. Replace symtab->filename refererence by
713 symtab_to_fullname call.
714 (tui_show_symtab_source): Rename parameter to fullname. Change
715 tui_locator_element field to full_name.
716 * tui/tui-stack.c: Include source.h.
717 (tui_set_locator_filename): Rename the declaration to ...
718 (tui_set_locator_fullname): ... here. Rename its parameter to
719 fullname, updates its comment.
720 (tui_set_locator_info): Rename its parameter to fullname.
721 (tui_set_locator_filename): Rename the definition to ...
722 (tui_set_locator_fullname): ... here. Rename its parameter to
723 fullname, updates its comment. Change tui_locator_element field to
724 full_name.
725 (tui_set_locator_info): Rename its parameter to fullname.
726 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
727 (tui_update_locator_filename): Rename to ...
728 (tui_update_locator_fullname): ... here. Rename callee to
729 tui_set_locator_fullname.
730 (tui_show_frame_info): Replace symtab->filename refererence by
731 symtab_to_fullname call.
732 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
733 (tui_update_locator_fullname): ... here.
734 * tui/tui-winsource.c (tui_display_main): Rename the callee to
735 tui_update_locator_fullname. Replace symtab->filename refererence by
736 symtab_to_fullname call.
737 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
738 Rename the callee to tui_update_locator_fullname.
739 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
740
05cba821
JK
7412013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
742
743 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
744 by symtab_to_filename_for_display calls.
745 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
746 (clear_command): New variable sal_fullname, initialize it. Replace
747 compare_filenames_for_search by filename_cmp with sal_fullname.
748 (say_where, update_static_tracepoint): Replace symtab->filename
749 refererences by symtab_to_filename_for_display calls.
750 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
751 Likewise.
752 * dwarf2read.c: Include source.h.
753 (fixup_go_packaging): Replace symtab->filename refererences by
754 symtab_to_filename_for_display calls.
755 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
756 Replace symtab->filename refererences by symtab_to_filename_for_display
757 calls.
758 (create_sals_line_offset, convert_linespec_to_sals): New variable
759 fullname, initialize it, replace symtab->filename reference by the
760 variable.
761 * linux-fork.c: Include source.h.
762 (info_checkpoints_command): Replace symtab->filename refererences by
763 symtab_to_filename_for_display calls.
764 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
765 by symtab_to_filename_for_display calls.
766 * mdebugread.c: Include source.h.
767 (psymtab_to_symtab_1): Replace symtab->filename refererences by
768 symtab_to_filename_for_display calls.
769 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
770 (mi_cmd_file_list_exec_source_files): Likewise.
771 * printcmd.c: Include source.h.
772 (build_address_symbolic): Replace symtab->filename refererences by
773 symtab_to_filename_for_display calls.
774 * psymtab.c (partial_map_symtabs_matching_filename)
775 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
776 with psymtab_to_fullname.
777 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
778 by symtab_to_filename_for_display calls.
779 (stpy_get_filename): New variable filename, initialize it, use instead
780 of symtab->filename refererences.
781 (salpy_str): Make variable filename const char *. Replace
782 symtab->filename refererences by symtab_to_filename_for_display calls.
783 * skip.c: Include source.h and filenames.h.
784 (skip_file_command): Remove const from the symtab variable. Replace
785 symtab->filename refererences by symtab_to_fullname call.
786 (function_name_is_marked_for_skip): New variables searched_for_fullname
787 and fullname. Use them to search also with symtab's fullname.
788 * source.c (find_source_lines): Replace symtab->filename refererences
789 by symtab_to_filename_for_display calls.
790 (print_source_lines_base): New variable filename, use it instead of
791 symtab->filename. Replace symtab->filename refererences by
792 symtab_to_filename_for_display calls.
793 (line_info, forward_search_command): Replace symtab->filename
794 refererences by symtab_to_filename_for_display calls.
795 (reverse_search_command): Replace symtab->filename refererences by
796 symtab_to_filename_for_display calls. New variable filename for it.
797 * stack.c (frame_info): Likewise.
798 * symmisc.c: Include source.h.
799 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
800 (maintenance_info_symtabs): Replace symtab->filename refererences by
801 symtab_to_filename_for_display calls.
802 * symtab.c (iterate_over_some_symtabs): Call
803 compare_filenames_for_search also with symtab_to_fullname.
804 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
805 symtab->filename refererences by symtab_to_filename_for_display calls.
806 (find_line_symtab): Replace symtab->filename refererences by
807 symtab_to_filename_for_display calls.
808 (file_matches): Replace filename_cmp by compare_filenames_for_search.
809 (print_symbol_info): Make the last parameter const char *. New
810 variable s_filename. Use it in the function.
811 (symtab_symbol_info): Make the last_filename variable const char *.
812 Replace symtab->filename refererences by symtab_to_filename_for_display
813 calls.
814 (rbreak_command): New variable fullname. Use it. Replace
815 symtab->filename refererence by symtab_to_filename_for_display call.
816 * tracepoint.c (set_traceframe_context, trace_find_line_command)
817 (print_one_static_tracepoint_marker): Replace symtab->filename
818 refererences by symtab_to_filename_for_display calls.
819 * tui/tui-source.c (tui_set_source_content): New variables filename and
820 s_filename. Replace symtab->filename refererences by this variable.
821 Replace other symtab->filename refererences by
822 symtab_to_filename_for_display calls.
823
1b56eb55
JK
8242013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
825 Jan Kratochvil <jan.kratochvil@redhat.com>
826
827 Add a new variable that controls a way in which filenames are
828 displayed.
829 * NEWS (set filename-display): New entry.
830 * source.c (filename_display_basename, filename_display_relative)
831 (filename_display_absolute, filename_display_kind_names)
832 (filename_display_string, show_filename_display_string)
833 (symtab_to_filename_for_display): New.
834 (_initialize_source): Added initialization of 'filename-display'
835 variable.
836 * source.h (symtab_to_filename_for_display): Added declaration.
837 * stack.c (print_frame): Added new variable and calling of a new
838 function and condition with this variable. Changed third argument of
839 calling of a function.
840
aa079c93
JK
8412013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
842
843 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
844 Rename field reference filename to fullname.
845 * tui/tui-data.h (struct tui_source_info): Rename field filename to
846 fullname. New comment for it.
847 * tui/tui-source.c (tui_set_source_content): Rename field reference
848 filename to fullname. Initialize field by symtab_to_fullname now.
849 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
850 reference filename to fullname. Use symtab_to_fullname during
851 comparison.
852
652a8996
JK
8532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
854
855 Code cleanup.
856 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
857 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
858 filename to fullname. Rename variable this_name to this_fullname.
859 Lowercase FILENAME_CMP call.
860 (dw2_find_symbol_file): New comment for the returned string.
861 (dwarf2_gdb_index_functions): Rename the function to
862 dw2_expand_symtabs_with_fullname.
863 * psymtab.c (read_psymtabs_with_filename): Rename to ...
864 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
865 fullname.
866 (psym_functions): Rename the function to read_psymtabs_with_fullname.
867 * symfile.h (struct quick_symbol_functions): Rename field
868 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
869 parameter filename to fullname. Document returned string meaning for
870 find_symbol_file.
871 * symtab.c (find_line_symtab): Rename the called function to
872 expand_symtabs_with_fullname.
873
af529f8f
JK
8742013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
875
876 Code cleanup.
877 * breakpoint.c (clear_command): Remove variable is_abs, unify the
878 call of filename_cmp with compare_filenames_for_search.
879 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
880 is_abs, unify the call of FILENAME_CMP with
881 compare_filenames_for_search. New gdb_asserts for real_path and name.
882 Unify the call of compare_filenames_for_search with FILENAME_CMP.
883 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
884 * symfile.h (struct quick_symbol_functions): Extend the comment for
885 map_symtabs_matching_filename.
886 * symtab.c (compare_filenames_for_search): Remove the function comment
887 relative path requirement. Handle absolute filenames, with a comment.
888 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
889 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
890 real_path and name. Unify the call of compare_filenames_for_search
891 with FILENAME_CMP.
892 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
893
2f202fde
JK
8942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
895
896 Code cleanup.
897 * breakpoint.c (print_breakpoint_location): Replace bp_location field
898 source_file references by symtab field references. Remove variables
899 sal and fullname.
900 (momentary_breakpoint_from_master, add_location_to_breakpoint):
901 (clear_command, say_where): Replace bp_location field source_file
902 references by symtab field references.
903 (bp_location_dtor): Remove the source_file reference.
904 (update_static_tracepoint): Replace bp_location field source_file
905 references by symtab field references.
906 (breakpoint_free_objfile): New function.
907 * breakpoint.h (struct bp_location): Extend the comment for line_number.
908 Replace the field source_file by field symtab, extend its comment.
909 (breakpoint_free_objfile): New declaration.
910 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
911 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
912 field source_file references by symtab field references.
913
f5b95b50
JK
9142013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 Replace xfullpath calls by gdb_realpath calls.
917 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
918 function comment.
919 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
920 Remove it from the iterate_over_some_symtabs call.
921 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
922 Remove it from the dw2_map_expand_apply calls, remove a block handling
923 it.
924 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
925 Remove it from the iterate_over_some_symtabs call.
926 (partial_map_symtabs_matching_filename): Remove parameter full_path.
927 Remove it from the partial_map_expand_apply calls, remove a block
928 handling it. Drop gdb_realpath call and cleanups from the real_path
929 handling.
930 * source.c (openp): Drop the comment part about xfullpath. Replace
931 xfullpath calls by gdb_realpath calls.
932 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
933 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
934 from method map_symtabs_matching_filename and its comment.
935 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
936 gdb_realpath call.
937 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
938 remove it also from the function comment, remove a block handling it.
939 Drop gdb_realpath call and cleanups from the real_path handling.
940 (iterate_over_symtabs): Drop variable full_path and its use.
941 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
942 * utils.c (xfullpath): Remove.
943 * utils.h (xfullpath): Remove.
944
d78489bf
AT
9452013-02-01 Andreas Tobler <andreast@fgznet.ch>
946
947 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
948 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
949 (ALLDEPFILES): Add ppc64-tdep.c.
950 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
951 ppc64-tdep.o to gdb_target_obs.
952 * ppc64-tdep.h: New file.
953 * ppc64-tdep.c: New file.
954 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
955 ppc-linux-tdep.c to here.
956 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
957 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
958 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
959 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
960 from ppc-linux-tdep.c to here.
961 (ppc64_convert_from_func_ptr_addr): Rename from
962 ppc64_linux_convert_from_func_ptr_addr to
963 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
964 here.
965 * rs6000-tdep.c:
966 (read_insn): Move from ppc-linux-tdep.c to here.
967 (insns_match_pattern, insn_d_field, insn_ds_field): Move
968 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
969 * ppc-linux-tdep.c: Include ppc64-tdep.h.
970 Removed above functions.
971 (ppc_linux_init_abi): Adjust.
972
8db60374
AR
9732013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
974
975 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
976
f2e5f4ce
AR
9772013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
978
979 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
980
c1f7d745
PA
9812013-02-01 Pedro Alves <palves@redhat.com>
982
983 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
984 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
985
8a92335b
JK
9862013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
987
988 * elfread.c (elf_symfile_read): Limit separate debug info additions to
989 files with no separate debug info.
990 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
991 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
992 only for files with no separate debug info.
993
8eacb197
TT
9942013-01-31 Tom Tromey <tromey@redhat.com>
995
996 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
997 change type.
998 (struct jit_program_space_data): Rename from jit_inferior_data.
999 Update comments.
1000 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1001 Change return type. Attach data to program space.
1002 (jit_program_space_data_cleanup): Rename from
1003 jit_inferior_data_cleanup; change argument type.
1004 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1005 change type.
1006 (jit_register_code): Update.
1007 (jit_update_inferior_cache): Remove.
1008 (jit_breakpoint_deleted): Get jit data from the location's program
1009 space.
1010 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1011 'ps_data', change type.
1012 (jit_inferior_init, jit_breakpoint_re_set_internal)
1013 (jit_event_handler): Update.
1014 (free_objfile_data): Get data from objfile's program space.
1015 (_initialize_jit): Update.
1016
f25c0135
TT
10172013-01-31 Tom Tromey <tromey@redhat.com>
1018
1019 PR gdb/13987:
1020 * jit.c (struct jit_inferior_data) <cached_code_address,
1021 jit_breakpoint>: New fields.
1022 (jit_breakpoint_re_set_internal): Fix logging. Only create
1023 breakpoint if cached address has changed.
1024 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1025 functions.
1026 (_initialize_jit): Register breakpoint deleted observer.
1027
974a734b
AR
10282013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1029
1030 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1031 (save_infcall_suspend_state): Ifdef out unused inf.
1032 (restore_infcall_suspend_state): Ifdef out unused inf.
1033 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1034 (jit_frame_sniffer): Remove unused inf_data.
1035
df54f8eb
AR
10362013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1037
1038 * c-exp.y (classify_inner_name): Remove unused type.
1039 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1040 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1041 need_escape.
1042 (c_get_string): Remove unused kind.
1043 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1044
5799c0b9
AR
10452013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1046
1047 * charset.c (intermediate_encoding): Remove unused i.
1048 * completer.c (signal_completer): Remove unused i.
1049 * continuations.c (discard_my_continuations_1): Remove unused
1050 continuation_ptr.
1051 * corelow.c (core_close): Remove unuseD name.
1052 (get_core_siginfo): Remove unused pid.
1053 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1054 i, cps.
1055 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1056 (loclist_describe_location): Remove unused first.
1057 * event-top.c (command_line_handler): Remove unused got_eof.
1058 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1059 (resize_section_table): Remove unused old_value.
1060 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1061 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1062 * i386-tdep.c (i386_process_record): Remove unused rex.
1063 * infcmd.c (get_return_value): Remove unused uiout.
1064 * jv-lang.c (type_from_class): Remove unused is_array.
1065 * jv-valprint.c (java_val_print): Remove unused i.
1066 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1067 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1068 * m2-typeprint.c (m2_print_type): Remove unused code.
1069 * macroexp.c (get_character_constant): Remove unused body_start.
1070 (macro_stringify): Remove unused result.
1071 * objc-lang.c (find_methods): Remove unused gdbarch.
1072 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1073 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1074 * stack.c (print_frame_args): Remove unused summary.
1075 * thread.c (thread_apply_command): Remove unused p.
1076 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1077 * valops.c (search_struct_method): Remove unused skip.
1078 * valprint.c (generic_val_print): Remove unused byte_order.
1079 * varobj.c (varobj_update): Remove unused changed.
1080 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1081 (alias_command): Remove unused c.
1082 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1083 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1084 format.
1085 (mi_cmd_data_write_memory): Remove unused word_format.
1086 (mi_cmd_data_write_memory_bytes): Remove unused r.
1087 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1088 p_start, p_end.
1089 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1090 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1091 line_width.
1092
c656bca5
AR
10932013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1094
1095 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1096 * symtab.c (iterate_over_symtabs): Remove unused s.
1097 (find_pc_sect_symtab): Remove unused pspAce.
1098 (find_pc_sect_line): Remove unused alt_symtab.
1099 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1100 (completion_list_add_name): Remove unused newsize.
1101
7078baeb
TT
11022013-01-31 Tom Tromey <tromey@redhat.com>
1103
1104 PR c++/14998:
1105 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1106 TYPE_CODE_FUNC.
1107
c2e8b827
AR
11082013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1109
1110 * target.c (target_read_string): Remove unused origlen.
1111
0e43993a
AR
11122013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1113
1114 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1115 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1116 * ax-general.c (ax_print): Remove unused is_float.
1117 * blockframe.c (block_innermost_frame): Remove unused start, end.
1118 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1119
765a97ab
AR
11202013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1121
1122 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1123 (svr4_read_so_list): Remove unused lmo.
1124 * solib-target.c (solib_target_relocate_section_addresses): Remove
1125 unused flags.
1126
a99dad3d
TT
11272013-01-30 Tom Tromey <tromey@redhat.com>
1128
1129 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1130
3bff1ecd
TT
11312013-01-30 Tom Tromey <tromey@redhat.com>
1132
1133 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1134 * utils.c (gnu_debuglink_crc32): Remove.
1135 * utils.h (gnu_debuglink_crc32): Don't declare.
1136
7d455152
TT
11372013-01-30 Tom Tromey <tromey@redhat.com>
1138
1139 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1140 (read_structure_type, read_enumeration_type): Remove cast.
1141
abee88f2
TT
11422013-01-30 Tom Tromey <tromey@redhat.com>
1143
1144 * dwarf2read.c (read_namespace_type): Remove cast.
1145 (read_typedef): Likewise.
1146
8d9878a4
TT
11472013-01-29 Tom Tromey <tromey@redhat.com>
1148
1149 * dwarf2read.c (free_dwo_file): Remove assert.
1150
a543d2a9
TT
11512013-01-29 Tom Tromey <tromey@redhat.com>
1152
1153 * value.c (deprecated_set_value_modifiable): Remove.
1154 * value.h (deprecated_set_value_modifiable): Remove.
1155
bed911e5
DE
11562013-01-28 Doug Evans <dje@google.com>
1157
1158 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1159 to addresses from dwo files.
1160
28c64fc2
SCR
11612013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1162
1163 * valops.c (find_overload_match): Remove unused argument 'lax'.
1164 * value.h: Remove unused argument 'lax' from the declaration of
1165 find_overload_match.
1166 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1167 to find_overload_match.
1168 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1169 argument to find_overload_match.
1170
4d4ec4e5
TT
11712013-01-25 Tom Tromey <tromey@redhat.com>
1172
1173 * dwarf2read.c (processing_has_namespace_info): Remove.
1174 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1175 (process_die, read_func_scope, dwarf2_start_symtab)
1176 (new_symbol_full): Update.
1177
195a3f6c
TT
11782013-01-25 Tom Tromey <tromey@redhat.com>
1179
1180 * cp-namespace.c (cp_set_block_scope): Remove.
1181 * cp-support.h (cp_set_block_scope): Remove.
1182 * dbxread.c: Include block.h.
1183 (cp_set_block_scope): New function.
1184 (process_one_symbol): Update.
1185 * dwarf2read.c (read_func_scope): Use block_set_scope.
1186
8ba0730a
PA
11872013-01-25 Pedro Alves <palves@redhat.com>
1188
1189 * remote.c (add_current_inferior_and_thread): Tweak comment.
1190
12aaed36
TT
11912013-01-25 Tom Tromey <tromey@redhat.com>
1192
1193 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1194 (cp_add_using_directive): Add 'copy_names' argument.
1195 * cp-support.h (cp_add_using_directive): Update.
1196 (struct using_direct) <import_src, import_dest, alias,
1197 declaration>: Now const.
1198 * dwarf2read.c (read_import_statement): Use obconcat.
1199 Don't copy names passed to cp_add_using_directive.
1200
7fc75ca7
TT
12012013-01-25 Tom Tromey <tromey@redhat.com>
1202
1203 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1204
3405876a
PA
12052013-01-25 Pedro Alves <palves@redhat.com>
1206
1207 * remote.c (stop_reply_extract_thread): New.
1208 (add_current_inferior_and_thread): New parameter 'wait_status'.
1209 Handle it.
1210 (remote_start_remote): Pass wait status to
1211 add_current_inferior_and_thread.
1212 (extended_remote_run): Update comment.
1213 (extended_remote_create_inferior_1): Pass wait status to
1214 add_current_inferior_and_thread.
1215
8954db33
AB
12162013-01-25 Andrew Burgess <aburgess@broadcom.com>
1217 Ulrich Weigand <uweigand@de.ibm.com>
1218
1219 * valarith.c (value_vector_widen): New function for replicating a
1220 scalar into a vector.
1221 (value_binop): Use value_vector_widen to widen scalar to vector
1222 rather than casting, this better matches gcc C behaviour.
1223 * valops.c (value_casst): Update logic for casting between vector
1224 types, and for casting from scalar to vector, try to match gcc C
1225 behaviour.
1226 * value.h (value_vector_widen): Declare.
1227 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1228 function, handle special case for casting scalar to vector.
1229 (opencl_relop): Use opencl_value_cast.
1230 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1231 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1232 in order to use opencl_value_cast.
1233
843b20dc
YQ
12342013-01-25 Yao Qi <yao@codesourcery.com>
1235
1236 * event-loop.c: Include "queue.h".
1237 (gdb_event_p): New typedef.
1238 (DECLARE_QUEUE_P): Use.
1239 (DEFINE_QUEUE_P): Use.
1240 (async_queue_event): Remove.
1241 (gdb_event_xfree): New.
1242 (initialize_event_loop): New.
1243 (process_event): Use QUEUE macros.
1244 (event_queue): Remove.
1245 (gdb_wait_for_event): Caller update.
1246 (check_async_event_handlers): Likewise.
1247 (poll_timers): Likewise.
1248 * event-loop.h (initialize_event_loop): Declare.
1249 * event-loop.c (gdb_event_xfree): New.
1250 * top.c (gdb_init): Call initialize_event_loop.
1251
20ad8856
YQ
12522013-01-25 Yao Qi <yao@codesourcery.com>
1253
1254 * event-loop.c (async_queue_event): Remove one parameter
1255 'position'. Remove code handling 'position' == TAIL.
1256 (gdb_wait_for_event): Caller update.
1257 (check_async_event_handlers): Caller update.
1258 (poll_timers): Caller update.
1259 * event-loop.h (enum queue_position): Remove.
1260
3bbbe775
MK
12612013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1262
1263 * MAINTAINERS: Update my email.
1264
a87d9ac4
YQ
12652013-01-25 Yao Qi <yao@codesourcery.com>
1266
1267 * main.c (print_gdb_help): Remove "--epoch" from the help
1268 message.
1269
2077afdd
TD
12702013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1271
1272 * symtab.c (skip_prologue_using_sal): Consider a file
1273 change the same as an increased line number
1274
63da4037
TD
12752013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1276
30e8ee25 1277 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 1278
45e6c716
TT
12792013-01-24 Tom Tromey <tromey@redhat.com>
1280
1281 * ada-lang.h (ada_decode_symbol): Make return type const.
1282 * ada-lang.c (ada_decode_symbol): Likewise.
1283
b1ae631a
DE
12842013-01-23 Doug Evans <dje@google.com>
1285
1286 * linespec.c (find_linespec_symbols): Make static.
1287
55a78401
SDJ
12882013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1289
1290 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1291 type on float conversion for complex type.
1292
bea883fd
SCR
12932013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1294
1295 Add a new class gdb.Architecture which exposes GDB's
1296 internal representation of architecture via GDB Python API.
1297 * Makefile.in: Add entries corresponding to the new file
1298 python/py-arch.c.
1299 * NEWS (Python Scripting): Add entries for the new class
1300 gdb.Architecture and the new method gdb.Frame.architecture.
1301 * python/py-arch.c: Implement gdb.Architecture class.
1302 * python/py-frame.c (frapy_arch): Implement the method
1303 gdb.Frame.architecture().
1304 (frame_object_methods): Add 'architecture' to the method table.
1305 * python/python-internal.h: Add declarations of new utility
1306 functions.
1307 * python/python.c (_initialize_python): Initialize
1308 gdb.Architecture class.
1309
796a7ff8
DE
13102013-01-23 Doug Evans <dje@google.com>
1311
1312 Work around binutils/15021.
1313 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1314 type_unit_group out of union s. All uses updated.
1315 (read_index_from_section): Watch for index version 8.
1316 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1317 an imported symtab.
1318 (write_psymtabs_to_index): Increment version number to 8.
1319
0928e93d
PA
13202013-01-22 Pedro Alves <palves@redhat.com>
1321
1322 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1323 user-visible.
1324
9c97429f
PA
13252013-01-22 Pedro Alves <palves@redhat.com>
1326
1327 * annotate.c (annotate_breakpoints_changed): Rename to ...
1328 (annotate_breakpoints_invalid): ... this. Make static.
1329 (breakpoint_changed): Adjust.
1330 (_initialize_annotate): Always install the observers. Install a
1331 "breakpoint_created" observer.
1332 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1333 * breakpoint.c (set_breakpoint_condition)
1334 (breakpoint_set_commands, do_map_commands_command)
1335 (init_raw_breakpoint, clear_command, set_ignore_count)
1336 (enable_breakpoint_disp): No longer call
1337 annotate_breakpoints_changed.
1338
bd00c694
PA
13392013-01-22 Pedro Alves <palves@redhat.com>
1340
1341 * annotate.c: Include "inferior.h".
1342 (frames_invalid_emitted)
1343 (breakpoints_invalid_emitted): New globals.
1344 (async_background_execution_p): New function.
1345 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1346 emitting the annotation if it has already been emitted.
1347 (annotate_display_prompt): New function.
1348 * annotate.h (annotate_display_prompt): New declaration.
1349 * event-top.c: Include annotate.h.
1350 (display_gdb_prompt): Call annotate_display_prompt.
1351
187d10dd
PA
13522013-01-22 Pedro Alves <palves@redhat.com>
1353
1354 * annotate.c (ignore_count_changed): Delete.
1355 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1356 (annotate_ignore_count_change): Delete.
1357 (annotate_stopped): Don't emit a delayed breakpoints-changed
1358 annotation.
1359 * annotate.h (annotate_ignore_count_change): Delete.
1360 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1361 annotate_ignore_count_change.
1362
d84cf7eb
TT
13632013-01-22 Tom Tromey <tromey@redhat.com>
1364
1365 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1366 require_rvalue for a register location.
1367
8f1d5693
MK
13682013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1369
1370 * breakpoint.c (print_one_breakpoint_location): Add MI
1371 field 'thread-groups' when printing a breakpoint.
1372 (output_thread_groups): New function.
1373
aa6199c6
SCR
13742013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1375
1376 * python/lib/gdb/commands/explore.py
1377 (CompoundExplorer.explore_expr): Correct the name of a method
1378 being invoked.
1379 (ExploreTypeCommand.invoke): Add a missing 'return'.
1380
d2afef13
TT
13812013-01-21 Tom Tromey <tromey@redhat.com>
1382
1383 * gdb_obstack.h (obconcat): Move declaration here, from...
1384 * symfile.h (obconcat): ... here.
1385 * gdb_obstack.c: New file.
1386 (obconcat): Move from...
1387 * symfile.c (obconcat): ... here.
1388 * Makefile.in (SFILES): Add gdb_obstack.c.
1389 (COMMON_OBS): Add gdb_obstack.o.
1390
10f0c4bb
TT
13912013-01-21 Tom Tromey <tromey@redhat.com>
1392
1393 * symfile.h (obsavestring): Don't declare.
1394 * symfile.c (obsavestring): Remove.
1395 * ada-exp.y: Use obstack_copy0, not obsavestring.
1396 * ada-lang.c: Use obstack_copy0, not obsavestring.
1397 * coffread.c: Use obstack_copy0, not obsavestring.
1398 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1399 * dbxread.c: Use obstack_copy0, not obsavestring.
1400 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1401 * jit.c: Use obstack_copy0, not obsavestring.
1402 * mdebugread.c: Use obstack_copy0, not obsavestring.
1403 * psymtab.c: Use obstack_copy0, not obsavestring.
1404 * stabsread.c: Use obstack_copy0, not obsavestring.
1405 * xcoffread.c: Use obstack_copy0, not obsavestring.
1406
86f62fd7
TT
14072013-01-21 Tom Tromey <tromey@redhat.com>
1408
1409 * dwarf2read.c (fixup_go_packaging): Save package name
1410 on objfile obstack.
1411 * gdbtypes.c (init_type): Don't copy name.
1412
15d034d0
TT
14132013-01-21 Tom Tromey <tromey@redhat.com>
1414
1415 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1416 const.
1417 (struct attribute) <u.str>: Now const.
1418 (struct fnfieldlist) <name>: Now const.
1419 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1420 (partial_die_parent_scope): Make return type const.
1421 (partial_die_full_name, add_partial_symbol): Update.
1422 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1423 'name' const.
1424 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1425 (read_file_scope, read_func_scope, dwarf2_add_field)
1426 (dwarf2_add_member_fn, read_structure_type)
1427 (process_enumeration_scope, read_array_type, read_module_type)
1428 (read_base_type, read_subrange_type): Update.
1429 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1430 (new_symbol_full, guess_full_die_structure_name): Update.
1431 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1432 (dwarf2_name): Return const type.
1433 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1434 const.
1435
748e18ae
TT
14362013-01-21 Tom Tromey <tromey@redhat.com>
1437
1438 * gdbtypes.c (init_type): Make 'name' const.
1439 * gdbtypes.h (init_type): Update.
1440
46212e0b
TT
14412013-01-21 Tom Tromey <tromey@redhat.com>
1442
1443 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1444 (start_symtab): Make 'name' and 'dirname' const. Use
1445 set_last_source_file.
1446 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1447 (last_source_file): Define. Now static.
1448 (set_last_source_file, get_last_source_file): New functions.
1449 * buildsym.h (last_source_file): Don't declare.
1450 (start_symtab): Update.
1451 (set_last_source_file, get_last_source_file): Declare.
1452 * coffread.c (complete_symtab): Use set_last_source_file.
1453 (coff_end_symtab): Likewise.
1454 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1455 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1456 set_last_source_file.
1457 (process_one_symbol): Use get_last_source_file.
1458 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1459 (psymtab_to_symtab_1): Use get_last_source_file.
1460 * xcoffread.c (process_linenos): Use get_last_source_file.
1461 (complete_symtab): Use set_last_source_file.
1462 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1463 (scan_xcoff_symtab): Use set_last_source_file.
1464
9d2ceabe
TT
14652013-01-21 Tom Tromey <tromey@redhat.com>
1466
1467 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1468 (symbol_set_names): Remove casts. Handle field const-ness.
1469
cfc594ee
TT
14702013-01-21 Tom Tromey <tromey@redhat.com>
1471
1472 * dwarf2read.c (new_symbol_full): Remove cast.
1473 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1474 * symtab.h (symbol_set_demangled_name): Update.
1475
5484b13a
TT
14762013-01-21 Tom Tromey <tromey@redhat.com>
1477
1478 * main.c (captured_main): Call bfd_init.
1479
1605ef26
TT
14802013-01-21 Tom Tromey <tromey@redhat.com>
1481
1482 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1483 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1484 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1485 * NEWS: Update.
1486
3b74cdc3
JK
14872013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1490
5a352474
JK
14912013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1492
1493 Fix gdb.fortran/common-block.exp crash in PIE mode.
1494 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1495 LOC_COMMON_BLOCK.
1496 * f-valprint.c (info_common_command_for_block): Expect
1497 LOC_COMMON_BLOCK in gdb_assert.
1498 * symtab.h (struct general_symbol_info): Update comment for the
1499 common_block member.
1500 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1501 (enum address_class): New member LOC_COMMON_BLOCK.
1502
c60797fd
DB
15032013-01-18 David Blaikie <dblaikie@gmail.com>
1504
1505 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 1506
46f35228
TT
15072013-01-18 Tom Tromey <tromey@redhat.com>
1508
1509 PR c++/14999:
1510 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1511 Call require_rvalue.
1512
257e7a09
YQ
15132013-01-18 Yao Qi <yao@codesourcery.com>
1514
1515 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1516 (dbx_read_symtab): New declaration.
1517 (dbx_psymtab_to_symtab): Delete.
1518 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1519 Rename parameter PST to SELF. Exchanged two parameters.
1520 (start_psymtab): Caller update.
1521 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1522 (dwarf2_read_symtab): New declaration.
1523 (dwarf2_psymtab_to_symtab): Delete.
1524 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1525 Rename parameter PST to SELF. Exchanged two parameters.
1526 (create_partial_symtab): Caller update.
1527 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1528 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1529 Rename parameter PST to SELF. Exchanged two parameters.
1530 (parse_partial_symbols, new_psymtab): Caller update.
1531 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1532 two parameters.
1533 * psymtab.c (psymtab_to_symtab): Caller update.
1534 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1535 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1536 Rename parameter PST to SELF. Exchanged two parameters.
1537 (xcoff_start_psymtab): Caller update.
1538
0de5618e
YQ
15392013-01-18 Yao Qi <yao@codesourcery.com>
1540
1541 * infrun.c (proceed): Rename local variable 'oneproc' to
1542 'force_step'.
1543
5c04624b
DE
15442013-01-17 Doug Evans <dje@google.com>
1545
848e3e78
DE
1546 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1547 (dw2_build_type_unit_groups): Delete. All uses updated.
1548
5c04624b
DE
1549 * symtab.h (struct symbol_search): Add comment.
1550
d84fca2c
JK
15512013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1552
1553 * symtab.c (compare_filenames_for_search): New comment for
1554 HAS_DRIVE_SPEC.
1555
6108433d
TT
15562013-01-17 Tom Tromey <tromey@redhat.com>
1557
1558 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1559
c89ffd86
JK
15602013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1561
1562 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1563 initialize it by existing make_cleanup. Call new do_cleanups.
1564
db2b2972
TT
15652013-01-17 Tom Tromey <tromey@redhat.com>
1566
1567 * cp-abi.c (cp_abi_completer): New function.
1568 (_initialize_cp_abi): Set completer for "set cp-abi".
1569
be7d37a2
TT
15702013-01-17 Tom Tromey <tromey@redhat.com>
1571
1572 * mem-break.c: Remove obsolete comment.
1573 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1574
c9fb1240
SD
15752012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1576
1577 * jit.c (jit_reader_load_command): Interpret the jit reader name
1578 as an absolute path if it begins with a forward slash.
1579
db334a01
SD
15802012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1581
1582 PR gdb/14550
1583
1584 * jit.c (finalize_symtab): Ensure that only the global block has a
1585 NULL superblock.
1586
7d928dac
PA
15872013-01-17 Pedro Alves <palves@redhat.com>
1588
1589 * acinclude.m4: Include ../config/plugins.m4,
1590 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1591 * Makefile.in (aclocal_m4_deps): Update.
1592 * aclocal.m4: Renegerate.
1593
fb8cf7c5
DE
15942013-01-16 Doug Evans <dje@google.com>
1595
1596 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1597
ab04a2af
TT
15982013-01-16 Pedro Alves <palves@redhat.com>
1599 Tom Tromey <tromey@redhat.com>
1600
1601 PR cli/7221:
1602 * NEWS: Add "catch signal".
1603 * breakpoint.c (base_breakpoint_ops): No longer static.
1604 (bpstat_explains_signal): New function.
1605 (init_catchpoint): No longer static.
1606 (base_breakpoint_explains_signal): New function.
1607 (base_breakpoint_ops): Initialize new field.
1608 * breakpoint.h (enum bpstat_signal_value): New.
1609 (struct breakpoint_ops) <explains_signal>: New field.
1610 (bpstat_explains_signal): Remove macro, declare as function.
1611 (base_breakpoint_ops, init_catchpoint): Declare.
1612 * break-catch-sig.c: New file.
1613 * inferior.h (signal_catch_update): Declare.
1614 * infrun.c (signal_catch): New global.
1615 (handle_syscall_event): Update for change to
1616 bpstat_explains_signal.
1617 (handle_inferior_event): Likewise. Always handle random signals
1618 via bpstats.
1619 (signal_cache_update): Check signal_catch.
1620 (signal_catch_update): New function.
1621 (_initialize_infrun): Initialize signal_catch.
1622 * Makefile.in (SFILES): Add break-catch-sig.c.
1623 (COMMON_OBS): Add break-catch-sig.o.
1624
8ac3646f
TT
16252013-01-16 Tom Tromey <tromey@redhat.com>
1626
1627 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1628 (print_one_catch_solib, print_one_catch_syscall)
1629 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1630 "catch-type".
1631
5a18e302
YQ
16322013-01-16 Yao Qi <yao@codesourcery.com>
1633
1634 * printcmd.c (current_display_number): Make it static.
1635
3f01d0d0
YQ
16362013-01-16 Yao Qi <yao@codesourcery.com>
1637
1638 * infcmd.c (step_once): Don't check '!single_inst' as it was
1639 checked before.
1640
1ed59174
JK
16412013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1642
1643 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1644
44478ab3
TT
16452013-01-14 Tom Tromey <tromey@redhat.com>
1646
1647 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1648 set command.
1649 * command.h (add_setshow_string_noescape_cmd): Update.
1650 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1651 (complete_set_gnutarget): New function.
1652 (_initialize_core): Set the "set gnutarget" completer.
1653
06d66ee9
TT
16542013-01-14 Tom Tromey <tromey@redhat.com>
1655
1656 PR symtab/14442:
1657 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1658 (c_type_print_modifier): Likewise.
1659 * dwarf2read.c (read_tag_restrict_type): New function.
1660 (read_type_die_1): Handle DW_TAG_restrict_type.
1661 * gdbtypes.c (make_restrict_type): New function.
1662 (recursive_dump_type): Handle TYPE_RESTRICT.
1663 * gdbtypes.h (enum type_flag_values): Renumber.
1664 (enum type_instance_flag_value): Add
1665 TYPE_INSTANCE_FLAG_RESTRICT.
1666 (TYPE_RESTRICT): New macro.
1667 (make_restrict_type): Declare.
1668
c9bf0622
TT
16692013-01-14 Tom Tromey <tromey@redhat.com>
1670
1671 PR symtab/14931:
1672 * psymtab.c (struct psymtab_state): New.
1673 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1674 functions.
1675 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1676 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1677
44d594fd
PA
16782013-01-14 Richard Sharman <richard_sharman@mitel.com>
1679 Pedro Alves <palves@redhat.com>
1680
1681 PR remote/14786
1682
1683 * remote.c (remote_threads_info): Make a copy of the reply from
1684 qfThreadInfo and use that instead of rs->buf.
1685
442e4d9c
YQ
16862013-01-14 Yao Qi <yao@codesourcery.com>
1687
1688 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1689 (dbx_psymtab_to_symtab): Likewise.
1690 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1691 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1692 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1693
5b12a61c
JK
16942013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1697 make_cleanup_restore_current_language. Call set_language. Move
1698 OLD_CHAIN and INNER_CHAIN cleanups.
1699 * utils.c (do_restore_current_language)
1700 (make_cleanup_restore_current_language): New functions.
1701 * utils.h (make_cleanup_restore_current_language): New declaration.
1702
f0a4b570
JK
17032013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1706 non-existing files.
1707
57b3c00c
JK
1708 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1709 non-existing files if FILENAME is already absolute.
1710
daefa854
JK
17112013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1712
1713 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1714 fputs_filtered. Append trailing newline.
1715
ca9c6ee2
YQ
17162013-01-11 Yao Qi <yao@codesourcery.com>
1717 Stan Shebs <stan@codesourcery.com>
1718
1719 * psymtab.c (init_psymbol_list): Clarify the comment.
1720
f28045c2
YQ
17212013-01-11 Yao Qi <yao@codesourcery.com>
1722
1723 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1724 (update_dprintf_command_list): Assert that 'printf_line' is
1725 non-null. Remove condition check.
1726
da5132d3
JK
17272013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1728
1729 Code cleanup.
1730 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1731 type const char *.
1732 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1733 const char *.
1734 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1735
843e694d
AG
17362013-01-09 Anthony Green <green@moxielogic.com>
1737
1738 * cp-abi.c (cplus_print_vtable): Don't return value from void
1739 function.
1740 * ada-lang.c (re_set_catch_assert): Ditto.
1741
da51c347
DE
17422013-01-09 Doug Evans <dje@google.com>
1743
1744 * symfile.h (quick_symbol_functions): Delete member
1745 pre_expand_symtabs_matching. All uses removed.
1746 * dwarf2read.c (dw2_lookup_symbol): Implement.
1747 (dw2_do_expand_symtabs_matching): Delete.
1748 (dw2_pre_expand_symtabs_matching): Delete.
1749 (struct dw2_symtab_iterator): New type.
1750 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1751 (dw2_expand_symtabs_for_function): Rewrite.
1752 (dwarf2_gdb_index_functions): Update.
1753 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1754 (psym_functions): Update.
1755
b2259038
TT
17562013-01-09 Tom Tromey <tromey@redhat.com>
1757
1758 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1759 * configure: Rebuild.
1760 * configure.ac: Add somread.o to the build if BFD has SOM
1761 support.
1762 * somread.c: Include som/aout.h, not syms.h.
1763 (som_symtab_read): Use som_external_symbol_dictionary_record.
1764 Unpack records manually.
1765 (_initialize_somread): Declare.
1766
bdad4180
MF
17672012-01-08 Mike Frysinger <vapier@gentoo.org>
1768
1769 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1770 Cast return_address to 64bits.
1771
03cdf680
HZ
17722013-01-08 Hui Zhu <hui_zhu@mentor.com>
1773
1774 * printcmd.c: Remove define of function output_command.
1775 * tracepoint.c: Remove extern of function output_command.
1776 * valprint.h: (output_command): New extern.
1777
8a808554
TT
17782013-01-07 Tom Tromey <tromey@redhat.com>
1779
1780 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1781 Remove.
1782 (objc_language_defn): Use c_printchar, c_printstr,
1783 c_emit_char.
1784
e93a8774
TT
17852013-01-07 Tom Tromey <tromey@redhat.com>
1786
1787 PR cli/7719:
1788 * NEWS: Update.
1789 * ada-valprint.c (printstr, print_field_values): Remove
1790 "inspect_it" code.
1791 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1792 code.
1793 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1794 code.
1795 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1796 * main.c (captured_main): Remove "epoch" argument.
1797 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1798 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1799 * p-valprint.c (pascal_object_print_value_fields): Remove
1800 "inspect_it" code.
1801 * printcmd.c (print_command_1): Remove 'inspect' argument.
1802 (print_command, call_command): Update.
1803 (inspect_command): Remove.
1804 (_initialize_printcmd): Make "inspect" an alias for "print".
1805 * top.c (epoch_interface): Remove.
1806 * top.h (epoch_interface): Remove.
1807 * valprint.c (user_print_options): Update.
1808 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1809 * valprint.h (struct value_print_options) <inspect_it>: Remove
1810 field.
1811
18122013-01-04 Tom Tromey <tromey@redhat.com>
1813
1814 * valprint.h (read_string): Add 'extern'.
1815
b967eb24
JB
18162013-01-07 Joel Brobecker <brobecker@adacore.com>
1817
1818 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1819 used to decide whether to define darwin_read_dyld_info or not.
1820
78a8b30e
PM
18212013-01-03 Pierre Muller <muller@sourceware.org>
1822
1823 * main.c (relocate_gdb_directory): Avoid calling stat function
1824 if DIR is empty.
1825
50da2f25
YQ
18262013-01-03 Yao Qi <yao@codesourcery.com>
1827
1828 * psymtab.c (fixup_psymbol_section): Update declaration.
1829 (fixup_psymbol_section): Remove code returning value.
1830
e7e8980f
YQ
18312013-01-03 Yao Qi <yao@codesourcery.com>
1832
1833 * symtab.h: Remove some out of date comments.
1834 (enum exception_event_kind): Move it ...
1835 * breakpoint.c: ... here.
1836
569283d4
MF
18372013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1838
9f9d9a96 1839 PR gdb/14405
569283d4
MF
1840 * darwin-nat.c (darwin_read_dyld_info): Only build if
1841 TASK_DYLD_INFO_COUNT is defined.
1842 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1843 TASK_DYLD_INFO_COUNT is defined.
1844
2e36fbea
TT
18452013-01-02 Tom Tromey <tromey@redhat.com>
1846
1847 * symfile.h (struct ecoff_debug_hack): Remove.
1848 * objfiles.c: Don't include mdebugread.h.
1849
4f05add4
TT
18502013-01-02 Tom Tromey <tromey@redhat.com>
1851
1852 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1853 * configure.ac: Check for Mach-O support in BFD. Update
1854 CONFIG_OBS.
1855 * configure: Rebuild.
1856
def63ff0
TT
18572013-01-02 Tom Tromey <tromey@redhat.com>
1858
1859 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1860 * configure.ac: Use GDB_AC_CHECK_BFD.
1861 * configure: Rebuild.
1862
60c5dd93
MK
18632013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1864
1865 * MAINTAINERS: Update my email.
1866
6e58437e
JB
18672013-01-01 Joel Brobecker <brobecker@adacore.com>
1868
1869 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1870
627fe805
JB
18712013-01-01 Joel Brobecker <brobecker@adacore.com>
1872
1873 * rs6000-nat.c (bss_data_overlap): New function.
1874 (vmap_symtab): Use it to adjust the .bss section's offset.
1875
28e7fd62
JB
18762013-01-01 Joel Brobecker <brobecker@adacore.com>
1877
1878 Update year range in copyright notice of all files.
1879
e93a8774 18802013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
1881
1882 * top.c (print_gdb_version): Update copyright year.
1883
72b20e9c 1884For older changes see ChangeLog-2012.
c906108c
SS
1885\f
1886Local Variables:
1887mode: change-log
1888left-margin: 8
1889fill-column: 74
1890version-control: never
57da7796 1891coding: utf-8
c906108c 1892End:
This page took 1.623345 seconds and 4 git commands to generate.